@connectedxm/client 0.0.61 → 0.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +322 -318
- package/dist/index.d.ts +322 -318
- package/dist/index.js +484 -388
- package/dist/index.mjs +489 -391
- package/package.json +4 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// src/ConnectedXMProvider.tsx
|
|
2
2
|
import React from "react";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
QueryClientProvider
|
|
5
|
+
} from "@tanstack/react-query";
|
|
4
6
|
var ConnectedXMClientContext = React.createContext({});
|
|
5
7
|
var ConnectedXMProvider = ({
|
|
6
8
|
queryClient,
|
|
@@ -8,30 +10,15 @@ var ConnectedXMProvider = ({
|
|
|
8
10
|
...state
|
|
9
11
|
}) => {
|
|
10
12
|
const [ssr, setSSR] = React.useState(true);
|
|
11
|
-
const [token, setToken] = React.useState();
|
|
12
|
-
const [executeAs, setExecuteAs] = React.useState();
|
|
13
13
|
React.useEffect(() => {
|
|
14
14
|
setSSR(false);
|
|
15
15
|
}, []);
|
|
16
16
|
const render = () => {
|
|
17
|
-
return /* @__PURE__ */ React.createElement(
|
|
18
|
-
ConnectedXMClientContext.Provider,
|
|
19
|
-
{
|
|
20
|
-
value: {
|
|
21
|
-
...state,
|
|
22
|
-
token,
|
|
23
|
-
setToken,
|
|
24
|
-
executeAs,
|
|
25
|
-
setExecuteAs
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
children
|
|
29
|
-
);
|
|
17
|
+
return /* @__PURE__ */ React.createElement(ConnectedXMClientContext.Provider, { value: state }, children);
|
|
30
18
|
};
|
|
31
19
|
if (ssr)
|
|
32
20
|
return /* @__PURE__ */ React.createElement(QueryClientProvider, { client: queryClient }, render());
|
|
33
|
-
|
|
34
|
-
return render();
|
|
21
|
+
return render();
|
|
35
22
|
};
|
|
36
23
|
|
|
37
24
|
// src/hooks/useConnectedXM.ts
|
|
@@ -44,36 +31,6 @@ var useConnectedXM = () => {
|
|
|
44
31
|
return context;
|
|
45
32
|
};
|
|
46
33
|
|
|
47
|
-
// src/hooks/useClientAPI.ts
|
|
48
|
-
import axios from "axios";
|
|
49
|
-
var getClientAPI = (apiUrl, organizationId, token, executeAs, locale) => {
|
|
50
|
-
return axios.create({
|
|
51
|
-
baseURL: apiUrl,
|
|
52
|
-
headers: {
|
|
53
|
-
authorization: token,
|
|
54
|
-
organization: organizationId,
|
|
55
|
-
executeAs,
|
|
56
|
-
locale
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
var useClientAPI = (locale) => {
|
|
61
|
-
const {
|
|
62
|
-
apiUrl,
|
|
63
|
-
token,
|
|
64
|
-
organizationId,
|
|
65
|
-
executeAs,
|
|
66
|
-
locale: _locale
|
|
67
|
-
} = useConnectedXM();
|
|
68
|
-
return getClientAPI(
|
|
69
|
-
apiUrl,
|
|
70
|
-
organizationId,
|
|
71
|
-
token,
|
|
72
|
-
executeAs,
|
|
73
|
-
locale || _locale
|
|
74
|
-
);
|
|
75
|
-
};
|
|
76
|
-
|
|
77
34
|
// src/interfaces.ts
|
|
78
35
|
var RegistrationStatus = /* @__PURE__ */ ((RegistrationStatus2) => {
|
|
79
36
|
RegistrationStatus2["registered"] = "registered";
|
|
@@ -331,10 +288,10 @@ var AppendInfiniteQuery = (queryClient, key, newData) => {
|
|
|
331
288
|
};
|
|
332
289
|
|
|
333
290
|
// src/utilities/GetErrorMessage.ts
|
|
334
|
-
import
|
|
291
|
+
import axios from "axios";
|
|
335
292
|
var GetErrorMessage = (error, fallback = "Something went wrong") => {
|
|
336
293
|
let message = fallback;
|
|
337
|
-
if (
|
|
294
|
+
if (axios.isAxiosError(error)) {
|
|
338
295
|
message = error.response?.data?.message || message;
|
|
339
296
|
} else {
|
|
340
297
|
message = error.message;
|
|
@@ -358,25 +315,33 @@ var GetBaseSingleQueryKeys = (locale) => {
|
|
|
358
315
|
return [locale];
|
|
359
316
|
};
|
|
360
317
|
var useConnectedSingleQuery = (queryKeys, queryFn, options) => {
|
|
361
|
-
const {
|
|
362
|
-
|
|
318
|
+
const {
|
|
319
|
+
locale,
|
|
320
|
+
onModuleForbidden,
|
|
321
|
+
onNotAuthorized,
|
|
322
|
+
onNotFound,
|
|
323
|
+
apiUrl,
|
|
324
|
+
organizationId,
|
|
325
|
+
getToken,
|
|
326
|
+
getExecuteAs
|
|
327
|
+
} = useConnectedXM();
|
|
363
328
|
return useQuery({
|
|
364
329
|
staleTime: 60 * 1e3,
|
|
365
330
|
// 60 Seconds
|
|
366
331
|
retry: (failureCount, error) => {
|
|
367
332
|
if (error.response?.status === 404) {
|
|
368
333
|
if (onNotFound)
|
|
369
|
-
onNotFound(error);
|
|
334
|
+
onNotFound(error, queryKeys);
|
|
370
335
|
return false;
|
|
371
336
|
}
|
|
372
337
|
if (error.response?.status === 403) {
|
|
373
338
|
if (onModuleForbidden)
|
|
374
|
-
onModuleForbidden(error);
|
|
339
|
+
onModuleForbidden(error, queryKeys);
|
|
375
340
|
return false;
|
|
376
341
|
}
|
|
377
342
|
if (error.response?.status === 401) {
|
|
378
343
|
if (onNotAuthorized)
|
|
379
|
-
onNotAuthorized(error);
|
|
344
|
+
onNotAuthorized(error, queryKeys);
|
|
380
345
|
return false;
|
|
381
346
|
}
|
|
382
347
|
if (failureCount < 3)
|
|
@@ -386,7 +351,13 @@ var useConnectedSingleQuery = (queryKeys, queryFn, options) => {
|
|
|
386
351
|
...options,
|
|
387
352
|
queryKey: [...queryKeys, ...GetBaseSingleQueryKeys(locale)],
|
|
388
353
|
queryFn: () => queryFn({
|
|
389
|
-
|
|
354
|
+
clientApiParams: {
|
|
355
|
+
apiUrl,
|
|
356
|
+
organizationId,
|
|
357
|
+
getToken,
|
|
358
|
+
getExecuteAs,
|
|
359
|
+
locale
|
|
360
|
+
}
|
|
390
361
|
})
|
|
391
362
|
});
|
|
392
363
|
};
|
|
@@ -463,8 +434,7 @@ var CacheIndividualQueries = (page, queryClient, queryKeyFn, locale = "en", item
|
|
|
463
434
|
|
|
464
435
|
// src/queries/useConnectedInfiniteQuery.ts
|
|
465
436
|
import {
|
|
466
|
-
useInfiniteQuery
|
|
467
|
-
useQueryClient
|
|
437
|
+
useInfiniteQuery
|
|
468
438
|
} from "@tanstack/react-query";
|
|
469
439
|
var GetBaseInfiniteQueryKeys = (locale, search = "") => {
|
|
470
440
|
return [locale, search];
|
|
@@ -476,9 +446,16 @@ var setFirstPageData = (response) => {
|
|
|
476
446
|
};
|
|
477
447
|
};
|
|
478
448
|
var useConnectedInfiniteQuery = (queryKeys, queryFn, params = {}, options) => {
|
|
479
|
-
const {
|
|
480
|
-
|
|
481
|
-
|
|
449
|
+
const {
|
|
450
|
+
locale,
|
|
451
|
+
onModuleForbidden,
|
|
452
|
+
onNotAuthorized,
|
|
453
|
+
onNotFound,
|
|
454
|
+
apiUrl,
|
|
455
|
+
getToken,
|
|
456
|
+
organizationId,
|
|
457
|
+
getExecuteAs
|
|
458
|
+
} = useConnectedXM();
|
|
482
459
|
const getNextPageParam = (lastPage, allPages) => {
|
|
483
460
|
if (lastPage.data.length === params.pageSize) {
|
|
484
461
|
return allPages.length + 1;
|
|
@@ -491,17 +468,17 @@ var useConnectedInfiniteQuery = (queryKeys, queryFn, params = {}, options) => {
|
|
|
491
468
|
retry: (failureCount, error) => {
|
|
492
469
|
if (error.response?.status === 404) {
|
|
493
470
|
if (onNotFound)
|
|
494
|
-
onNotFound(error);
|
|
471
|
+
onNotFound(error, queryKeys);
|
|
495
472
|
return false;
|
|
496
473
|
}
|
|
497
474
|
if (error.response?.status === 403) {
|
|
498
475
|
if (onModuleForbidden)
|
|
499
|
-
onModuleForbidden(error);
|
|
476
|
+
onModuleForbidden(error, queryKeys);
|
|
500
477
|
return false;
|
|
501
478
|
}
|
|
502
479
|
if (error.response?.status === 401) {
|
|
503
480
|
if (onNotAuthorized)
|
|
504
|
-
onNotAuthorized(error);
|
|
481
|
+
onNotAuthorized(error, queryKeys);
|
|
505
482
|
return false;
|
|
506
483
|
}
|
|
507
484
|
if (failureCount < 3)
|
|
@@ -513,12 +490,34 @@ var useConnectedInfiniteQuery = (queryKeys, queryFn, params = {}, options) => {
|
|
|
513
490
|
...queryKeys,
|
|
514
491
|
...GetBaseInfiniteQueryKeys(params?.locale || locale, params?.search)
|
|
515
492
|
],
|
|
516
|
-
queryFn: ({ pageParam }) => queryFn({ ...params, pageSize: params.pageSize || 25, locale: params.locale || locale, pageParam,
|
|
493
|
+
queryFn: ({ pageParam }) => queryFn({ ...params, pageSize: params.pageSize || 25, locale: params.locale || locale, pageParam, clientApiParams: {
|
|
494
|
+
apiUrl,
|
|
495
|
+
getToken,
|
|
496
|
+
organizationId,
|
|
497
|
+
getExecuteAs,
|
|
498
|
+
locale
|
|
499
|
+
} }),
|
|
517
500
|
initialPageParam: 1,
|
|
518
501
|
getNextPageParam
|
|
519
502
|
});
|
|
520
503
|
};
|
|
521
504
|
|
|
505
|
+
// src/ClientAPI.ts
|
|
506
|
+
import axios2 from "axios";
|
|
507
|
+
var GetClientAPI = async (params) => {
|
|
508
|
+
const token = await params.getToken();
|
|
509
|
+
const executeAs = params.getExecuteAs ? await params.getExecuteAs() : void 0;
|
|
510
|
+
return axios2.create({
|
|
511
|
+
baseURL: params.apiUrl,
|
|
512
|
+
headers: {
|
|
513
|
+
organization: params.organizationId,
|
|
514
|
+
locale: params.locale,
|
|
515
|
+
authorization: token,
|
|
516
|
+
executeAs
|
|
517
|
+
}
|
|
518
|
+
});
|
|
519
|
+
};
|
|
520
|
+
|
|
522
521
|
// src/queries/accounts/useGetAccounts.ts
|
|
523
522
|
var ACCOUNTS_QUERY_KEY = () => ["ACCOUNTS"];
|
|
524
523
|
var SET_ACCOUNTS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
@@ -535,9 +534,10 @@ var GetAccounts = async ({
|
|
|
535
534
|
orderBy,
|
|
536
535
|
search,
|
|
537
536
|
queryClient,
|
|
538
|
-
|
|
537
|
+
clientApiParams,
|
|
539
538
|
locale
|
|
540
539
|
}) => {
|
|
540
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
541
541
|
const { data } = await clientApi.get(`/accounts`, {
|
|
542
542
|
params: {
|
|
543
543
|
pageSize: pageSize || void 0,
|
|
@@ -556,14 +556,12 @@ var GetAccounts = async ({
|
|
|
556
556
|
return data;
|
|
557
557
|
};
|
|
558
558
|
var useGetAccounts = (params = {}, options = {}) => {
|
|
559
|
-
const { token } = useConnectedXM();
|
|
560
559
|
return useConnectedInfiniteQuery(
|
|
561
560
|
ACCOUNTS_QUERY_KEY(),
|
|
562
561
|
(params2) => GetAccounts({ ...params2 }),
|
|
563
562
|
params,
|
|
564
563
|
{
|
|
565
|
-
...options
|
|
566
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
564
|
+
...options
|
|
567
565
|
}
|
|
568
566
|
);
|
|
569
567
|
};
|
|
@@ -584,19 +582,19 @@ var SET_ACCOUNT_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) =>
|
|
|
584
582
|
};
|
|
585
583
|
var GetAccount = async ({
|
|
586
584
|
accountId,
|
|
587
|
-
|
|
585
|
+
clientApiParams
|
|
588
586
|
}) => {
|
|
587
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
589
588
|
const { data } = await clientApi.get(`/accounts/${accountId}`);
|
|
590
589
|
return data;
|
|
591
590
|
};
|
|
592
|
-
var useGetAccount = (accountId, options = {}) => {
|
|
593
|
-
const { token } = useConnectedXM();
|
|
591
|
+
var useGetAccount = (accountId = "", options = {}) => {
|
|
594
592
|
return useConnectedSingleQuery(
|
|
595
593
|
ACCOUNT_QUERY_KEY(accountId),
|
|
596
594
|
(_params) => GetAccount({ accountId, ..._params }),
|
|
597
595
|
{
|
|
598
596
|
...options,
|
|
599
|
-
enabled: !!
|
|
597
|
+
enabled: !!accountId && (options?.enabled ?? true)
|
|
600
598
|
}
|
|
601
599
|
);
|
|
602
600
|
};
|
|
@@ -618,9 +616,10 @@ var GetActivities = async ({
|
|
|
618
616
|
orderBy,
|
|
619
617
|
search,
|
|
620
618
|
queryClient,
|
|
621
|
-
|
|
619
|
+
clientApiParams,
|
|
622
620
|
locale
|
|
623
621
|
}) => {
|
|
622
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
624
623
|
const { data } = await clientApi.get(`/activities`, {
|
|
625
624
|
params: {
|
|
626
625
|
page: pageParam || void 0,
|
|
@@ -640,13 +639,12 @@ var GetActivities = async ({
|
|
|
640
639
|
return data;
|
|
641
640
|
};
|
|
642
641
|
var useGetActivities = (params = {}, options = {}) => {
|
|
643
|
-
const { token } = useConnectedXM();
|
|
644
642
|
return useConnectedInfiniteQuery(
|
|
645
643
|
ACTIVITIES_QUERY_KEY(),
|
|
646
644
|
(params2) => GetActivities(params2),
|
|
647
645
|
params,
|
|
648
646
|
{
|
|
649
|
-
|
|
647
|
+
...options
|
|
650
648
|
}
|
|
651
649
|
);
|
|
652
650
|
};
|
|
@@ -667,19 +665,19 @@ var SET_ACTIVITY_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) =
|
|
|
667
665
|
};
|
|
668
666
|
var GetActivity = async ({
|
|
669
667
|
activityId,
|
|
670
|
-
|
|
668
|
+
clientApiParams
|
|
671
669
|
}) => {
|
|
670
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
672
671
|
const { data } = await clientApi.get(`/activities/${activityId}`);
|
|
673
672
|
return data;
|
|
674
673
|
};
|
|
675
|
-
var useGetActivity = (activityId, options = {}) => {
|
|
676
|
-
const { token } = useConnectedXM();
|
|
674
|
+
var useGetActivity = (activityId = "", options = {}) => {
|
|
677
675
|
return useConnectedSingleQuery(
|
|
678
676
|
ACTIVITY_QUERY_KEY(activityId),
|
|
679
677
|
(params) => GetActivity({ activityId: activityId || "unknown", ...params }),
|
|
680
678
|
{
|
|
681
679
|
...options,
|
|
682
|
-
enabled: !!
|
|
680
|
+
enabled: !!activityId && (options?.enabled ?? true)
|
|
683
681
|
}
|
|
684
682
|
);
|
|
685
683
|
};
|
|
@@ -705,9 +703,10 @@ var GetAccountActivities = async ({
|
|
|
705
703
|
search,
|
|
706
704
|
accountId,
|
|
707
705
|
queryClient,
|
|
708
|
-
|
|
706
|
+
clientApiParams,
|
|
709
707
|
locale
|
|
710
708
|
}) => {
|
|
709
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
711
710
|
const { data } = await clientApi.get(`/accounts/${accountId}/activities`, {
|
|
712
711
|
params: {
|
|
713
712
|
page: pageParam || void 0,
|
|
@@ -726,15 +725,14 @@ var GetAccountActivities = async ({
|
|
|
726
725
|
}
|
|
727
726
|
return data;
|
|
728
727
|
};
|
|
729
|
-
var useGetAccountActivities = (accountId, params = {}, options = {}) => {
|
|
730
|
-
const { token } = useConnectedXM();
|
|
728
|
+
var useGetAccountActivities = (accountId = "", params = {}, options = {}) => {
|
|
731
729
|
return useConnectedInfiniteQuery(
|
|
732
730
|
ACCOUNT_ACTIVITIES_QUERY_KEY(accountId),
|
|
733
731
|
(params2) => GetAccountActivities({ accountId, ...params2 }),
|
|
734
732
|
params,
|
|
735
733
|
{
|
|
736
734
|
...options,
|
|
737
|
-
enabled: !!
|
|
735
|
+
enabled: !!accountId
|
|
738
736
|
}
|
|
739
737
|
);
|
|
740
738
|
};
|
|
@@ -752,19 +750,19 @@ var SET_ACCOUNT_BY_SHARE_CODE_QUERY_DATA = (client, keyParams, response, baseKey
|
|
|
752
750
|
};
|
|
753
751
|
var GetAccountByShareCode = async ({
|
|
754
752
|
shareCode,
|
|
755
|
-
|
|
753
|
+
clientApiParams
|
|
756
754
|
}) => {
|
|
755
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
757
756
|
const { data } = await clientApi.get(`/accounts/shareCode/${shareCode}`);
|
|
758
757
|
return data;
|
|
759
758
|
};
|
|
760
|
-
var useGetAccountByShareCode = (shareCode, options = {}) => {
|
|
761
|
-
const { token } = useConnectedXM();
|
|
759
|
+
var useGetAccountByShareCode = (shareCode = "", options = {}) => {
|
|
762
760
|
return useConnectedSingleQuery(
|
|
763
761
|
ACCOUNT_BY_SHARE_CODE_QUERY_KEY(shareCode),
|
|
764
762
|
(params) => GetAccountByShareCode({ shareCode: shareCode || "unknown", ...params }),
|
|
765
763
|
{
|
|
766
764
|
...options,
|
|
767
|
-
enabled: !!
|
|
765
|
+
enabled: !!shareCode && (options?.enabled ?? true),
|
|
768
766
|
retry: false
|
|
769
767
|
}
|
|
770
768
|
);
|
|
@@ -788,7 +786,7 @@ var GetCommunities = async ({
|
|
|
788
786
|
search,
|
|
789
787
|
privateCommunities,
|
|
790
788
|
queryClient,
|
|
791
|
-
|
|
789
|
+
clientApiParams,
|
|
792
790
|
locale
|
|
793
791
|
}) => {
|
|
794
792
|
if (privateCommunities) {
|
|
@@ -798,6 +796,7 @@ var GetCommunities = async ({
|
|
|
798
796
|
data: []
|
|
799
797
|
};
|
|
800
798
|
}
|
|
799
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
801
800
|
const { data } = await clientApi.get(`/communities`, {
|
|
802
801
|
params: {
|
|
803
802
|
page: pageParam || void 0,
|
|
@@ -843,12 +842,13 @@ var SET_COMMUNITY_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"],
|
|
|
843
842
|
};
|
|
844
843
|
var GetCommunity = async ({
|
|
845
844
|
communityId,
|
|
846
|
-
|
|
845
|
+
clientApiParams
|
|
847
846
|
}) => {
|
|
847
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
848
848
|
const { data } = await clientApi.get(`/communities/${communityId}`);
|
|
849
849
|
return data;
|
|
850
850
|
};
|
|
851
|
-
var useGetCommunity = (communityId, options = {}) => {
|
|
851
|
+
var useGetCommunity = (communityId = "", options = {}) => {
|
|
852
852
|
return useConnectedSingleQuery(
|
|
853
853
|
COMMUNITY_QUERY_KEY(communityId),
|
|
854
854
|
(params) => GetCommunity({ communityId, ...params }),
|
|
@@ -880,9 +880,10 @@ var GetAccountCommunities = async ({
|
|
|
880
880
|
search,
|
|
881
881
|
accountId,
|
|
882
882
|
queryClient,
|
|
883
|
-
|
|
883
|
+
clientApiParams,
|
|
884
884
|
locale
|
|
885
885
|
}) => {
|
|
886
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
886
887
|
const { data } = await clientApi.get(`/accounts/${accountId}/communities`, {
|
|
887
888
|
params: {
|
|
888
889
|
page: pageParam || void 0,
|
|
@@ -901,15 +902,14 @@ var GetAccountCommunities = async ({
|
|
|
901
902
|
}
|
|
902
903
|
return data;
|
|
903
904
|
};
|
|
904
|
-
var useGetAccountCommunities = (accountId, params = {}, options = {}) => {
|
|
905
|
-
const { token } = useConnectedXM();
|
|
905
|
+
var useGetAccountCommunities = (accountId = "", params = {}, options = {}) => {
|
|
906
906
|
return useConnectedInfiniteQuery(
|
|
907
907
|
ACCOUNT_COMMUNITIES_QUERY_KEY(accountId),
|
|
908
908
|
(params2) => GetAccountCommunities({ accountId, ...params2 }),
|
|
909
909
|
params,
|
|
910
910
|
{
|
|
911
911
|
...options,
|
|
912
|
-
enabled: !!
|
|
912
|
+
enabled: !!accountId && (options?.enabled ?? true)
|
|
913
913
|
}
|
|
914
914
|
);
|
|
915
915
|
};
|
|
@@ -935,9 +935,10 @@ var GetAccountFollowers = async ({
|
|
|
935
935
|
search,
|
|
936
936
|
accountId,
|
|
937
937
|
queryClient,
|
|
938
|
-
|
|
938
|
+
clientApiParams,
|
|
939
939
|
locale
|
|
940
940
|
}) => {
|
|
941
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
941
942
|
const { data } = await clientApi.get(`/accounts/${accountId}/followers`, {
|
|
942
943
|
params: {
|
|
943
944
|
page: pageParam || void 0,
|
|
@@ -956,15 +957,14 @@ var GetAccountFollowers = async ({
|
|
|
956
957
|
}
|
|
957
958
|
return data;
|
|
958
959
|
};
|
|
959
|
-
var useGetAccountFollowers = (accountId, params = {}, options = {}) => {
|
|
960
|
-
const { token } = useConnectedXM();
|
|
960
|
+
var useGetAccountFollowers = (accountId = "", params = {}, options = {}) => {
|
|
961
961
|
return useConnectedInfiniteQuery(
|
|
962
962
|
ACCOUNT_FOLLOWERS_QUERY_KEY(accountId),
|
|
963
963
|
(params2) => GetAccountFollowers({ accountId, ...params2 }),
|
|
964
964
|
params,
|
|
965
965
|
{
|
|
966
966
|
...options,
|
|
967
|
-
enabled: !!
|
|
967
|
+
enabled: !!accountId && (options?.enabled ?? true)
|
|
968
968
|
}
|
|
969
969
|
);
|
|
970
970
|
};
|
|
@@ -990,9 +990,10 @@ var GetAccountFollowings = async ({
|
|
|
990
990
|
search,
|
|
991
991
|
accountId,
|
|
992
992
|
queryClient,
|
|
993
|
-
|
|
993
|
+
clientApiParams,
|
|
994
994
|
locale
|
|
995
995
|
}) => {
|
|
996
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
996
997
|
const { data } = await clientApi.get(`/accounts/${accountId}/following`, {
|
|
997
998
|
params: {
|
|
998
999
|
page: pageParam || void 0,
|
|
@@ -1011,15 +1012,14 @@ var GetAccountFollowings = async ({
|
|
|
1011
1012
|
}
|
|
1012
1013
|
return data;
|
|
1013
1014
|
};
|
|
1014
|
-
var useGetAccountFollowings = (accountId, params = {}, options = {}) => {
|
|
1015
|
-
const { token } = useConnectedXM();
|
|
1015
|
+
var useGetAccountFollowings = (accountId = "", params = {}, options = {}) => {
|
|
1016
1016
|
return useConnectedInfiniteQuery(
|
|
1017
1017
|
ACCOUNT_FOLLOWINGS_QUERY_KEY(accountId),
|
|
1018
1018
|
(params2) => GetAccountFollowings({ accountId, ...params2 }),
|
|
1019
1019
|
params,
|
|
1020
1020
|
{
|
|
1021
1021
|
...options,
|
|
1022
|
-
enabled: !!
|
|
1022
|
+
enabled: !!accountId && (options?.enabled ?? true)
|
|
1023
1023
|
}
|
|
1024
1024
|
);
|
|
1025
1025
|
};
|
|
@@ -1045,9 +1045,10 @@ var GetActivityComments = async ({
|
|
|
1045
1045
|
orderBy,
|
|
1046
1046
|
search,
|
|
1047
1047
|
queryClient,
|
|
1048
|
-
|
|
1048
|
+
clientApiParams,
|
|
1049
1049
|
locale
|
|
1050
1050
|
}) => {
|
|
1051
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1051
1052
|
const { data } = await clientApi.get(`/activities/${activityId}/comments`, {
|
|
1052
1053
|
params: {
|
|
1053
1054
|
page: pageParam || void 0,
|
|
@@ -1066,14 +1067,13 @@ var GetActivityComments = async ({
|
|
|
1066
1067
|
}
|
|
1067
1068
|
return data;
|
|
1068
1069
|
};
|
|
1069
|
-
var useGetActivityComments = (activityId, params = {}, options = {}) => {
|
|
1070
|
-
const { token } = useConnectedXM();
|
|
1070
|
+
var useGetActivityComments = (activityId = "", params = {}, options = {}) => {
|
|
1071
1071
|
return useConnectedInfiniteQuery(
|
|
1072
1072
|
ACTIVITY_COMMENTS_QUERY_KEY(activityId),
|
|
1073
1073
|
(params2) => GetActivityComments({ activityId, ...params2 }),
|
|
1074
1074
|
params,
|
|
1075
1075
|
{
|
|
1076
|
-
enabled: !!
|
|
1076
|
+
enabled: !!activityId && (options?.enabled ?? true)
|
|
1077
1077
|
}
|
|
1078
1078
|
);
|
|
1079
1079
|
};
|
|
@@ -1093,8 +1093,9 @@ var SET_ADVERTISEMENT_QUERY_DATA = (client, keyParams, response, baseKeys = ["en
|
|
|
1093
1093
|
);
|
|
1094
1094
|
};
|
|
1095
1095
|
var GetAdvertisement = async ({
|
|
1096
|
-
|
|
1096
|
+
clientApiParams
|
|
1097
1097
|
}) => {
|
|
1098
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1098
1099
|
const { data } = await clientApi.get(`/advertisement`);
|
|
1099
1100
|
return data;
|
|
1100
1101
|
};
|
|
@@ -1125,8 +1126,9 @@ var GetBenefits = async ({
|
|
|
1125
1126
|
pageSize,
|
|
1126
1127
|
orderBy,
|
|
1127
1128
|
search,
|
|
1128
|
-
|
|
1129
|
+
clientApiParams
|
|
1129
1130
|
}) => {
|
|
1131
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1130
1132
|
const { data } = await clientApi.get(`/benefits`, {
|
|
1131
1133
|
params: {
|
|
1132
1134
|
page: pageParam || void 0,
|
|
@@ -1138,14 +1140,12 @@ var GetBenefits = async ({
|
|
|
1138
1140
|
return data;
|
|
1139
1141
|
};
|
|
1140
1142
|
var useGetBenefits = (params = {}, options = {}) => {
|
|
1141
|
-
const { token } = useConnectedXM();
|
|
1142
1143
|
return useConnectedInfiniteQuery(
|
|
1143
1144
|
BENEFITS_QUERY_KEY(),
|
|
1144
1145
|
(params2) => GetBenefits(params2),
|
|
1145
1146
|
params,
|
|
1146
1147
|
{
|
|
1147
|
-
...options
|
|
1148
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
1148
|
+
...options
|
|
1149
1149
|
}
|
|
1150
1150
|
);
|
|
1151
1151
|
};
|
|
@@ -1168,9 +1168,10 @@ var GetCommunityActivities = async ({
|
|
|
1168
1168
|
search,
|
|
1169
1169
|
communityId,
|
|
1170
1170
|
queryClient,
|
|
1171
|
-
|
|
1171
|
+
clientApiParams,
|
|
1172
1172
|
locale
|
|
1173
1173
|
}) => {
|
|
1174
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1174
1175
|
const { data } = await clientApi.get(
|
|
1175
1176
|
`/communities/${communityId}/activities`,
|
|
1176
1177
|
{
|
|
@@ -1192,15 +1193,14 @@ var GetCommunityActivities = async ({
|
|
|
1192
1193
|
}
|
|
1193
1194
|
return data;
|
|
1194
1195
|
};
|
|
1195
|
-
var useGetCommunityActivities = (communityId, params = {}, options = {}) => {
|
|
1196
|
-
const { token } = useConnectedXM();
|
|
1196
|
+
var useGetCommunityActivities = (communityId = "", params = {}, options = {}) => {
|
|
1197
1197
|
return useConnectedInfiniteQuery(
|
|
1198
1198
|
COMMUNITY_ACTIVITIES_QUERY_KEY(communityId),
|
|
1199
1199
|
(params2) => GetCommunityActivities({ communityId, ...params2 }),
|
|
1200
1200
|
params,
|
|
1201
1201
|
{
|
|
1202
1202
|
...options,
|
|
1203
|
-
enabled: !!
|
|
1203
|
+
enabled: !!communityId && (options?.enabled ?? true)
|
|
1204
1204
|
}
|
|
1205
1205
|
);
|
|
1206
1206
|
};
|
|
@@ -1222,8 +1222,9 @@ var GetCommunityAnnouncements = async ({
|
|
|
1222
1222
|
pageSize,
|
|
1223
1223
|
orderBy,
|
|
1224
1224
|
search,
|
|
1225
|
-
|
|
1225
|
+
clientApiParams
|
|
1226
1226
|
}) => {
|
|
1227
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1227
1228
|
const { data } = await clientApi.get(
|
|
1228
1229
|
`/communities/${communityId}/announcements`,
|
|
1229
1230
|
{
|
|
@@ -1237,15 +1238,14 @@ var GetCommunityAnnouncements = async ({
|
|
|
1237
1238
|
);
|
|
1238
1239
|
return data;
|
|
1239
1240
|
};
|
|
1240
|
-
var useGetCommunityAnnouncements = (communityId, params = {}, options = {}) => {
|
|
1241
|
-
const { token } = useConnectedXM();
|
|
1241
|
+
var useGetCommunityAnnouncements = (communityId = "", params = {}, options = {}) => {
|
|
1242
1242
|
return useConnectedInfiniteQuery(
|
|
1243
1243
|
COMMUNITY_ANNOUNCEMENTS_QUERY_KEY(communityId),
|
|
1244
1244
|
(params2) => GetCommunityAnnouncements({ communityId, ...params2 }),
|
|
1245
1245
|
params,
|
|
1246
1246
|
{
|
|
1247
1247
|
...options,
|
|
1248
|
-
enabled: !!
|
|
1248
|
+
enabled: !!communityId && (options?.enabled ?? true)
|
|
1249
1249
|
}
|
|
1250
1250
|
);
|
|
1251
1251
|
};
|
|
@@ -1274,9 +1274,10 @@ var GetEvents = async ({
|
|
|
1274
1274
|
search,
|
|
1275
1275
|
past,
|
|
1276
1276
|
queryClient,
|
|
1277
|
-
|
|
1277
|
+
clientApiParams,
|
|
1278
1278
|
locale
|
|
1279
1279
|
}) => {
|
|
1280
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1280
1281
|
const { data } = await clientApi.get(`/events`, {
|
|
1281
1282
|
params: {
|
|
1282
1283
|
page: pageParam || void 0,
|
|
@@ -1318,12 +1319,13 @@ var SET_EVENT_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
|
1318
1319
|
};
|
|
1319
1320
|
var GetEvent = async ({
|
|
1320
1321
|
eventId,
|
|
1321
|
-
|
|
1322
|
+
clientApiParams
|
|
1322
1323
|
}) => {
|
|
1324
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1323
1325
|
const { data } = await clientApi.get(`/events/${eventId}`);
|
|
1324
1326
|
return data;
|
|
1325
1327
|
};
|
|
1326
|
-
var useGetEvent = (eventId, options = {}) => {
|
|
1328
|
+
var useGetEvent = (eventId = "", options = {}) => {
|
|
1327
1329
|
return useConnectedSingleQuery(
|
|
1328
1330
|
EVENT_QUERY_KEY(eventId),
|
|
1329
1331
|
(params) => GetEvent({ eventId, ...params }),
|
|
@@ -1357,9 +1359,10 @@ var GetCommunityEvents = async ({
|
|
|
1357
1359
|
communityId,
|
|
1358
1360
|
past,
|
|
1359
1361
|
queryClient,
|
|
1360
|
-
|
|
1362
|
+
clientApiParams,
|
|
1361
1363
|
locale
|
|
1362
1364
|
}) => {
|
|
1365
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1363
1366
|
const { data } = await clientApi.get(`/communities/${communityId}/events`, {
|
|
1364
1367
|
params: {
|
|
1365
1368
|
page: pageParam || void 0,
|
|
@@ -1379,7 +1382,7 @@ var GetCommunityEvents = async ({
|
|
|
1379
1382
|
}
|
|
1380
1383
|
return data;
|
|
1381
1384
|
};
|
|
1382
|
-
var useGetCommunityEvents = (communityId, past = false, params = {}, options = {}) => {
|
|
1385
|
+
var useGetCommunityEvents = (communityId = "", past = false, params = {}, options = {}) => {
|
|
1383
1386
|
return useConnectedInfiniteQuery(
|
|
1384
1387
|
COMMUNITY_EVENTS_QUERY_KEY(communityId, past),
|
|
1385
1388
|
(params2) => GetCommunityEvents({ communityId, past, ...params2 }),
|
|
@@ -1411,8 +1414,9 @@ var GetCommunityMembers = async ({
|
|
|
1411
1414
|
orderBy,
|
|
1412
1415
|
search,
|
|
1413
1416
|
communityId,
|
|
1414
|
-
|
|
1417
|
+
clientApiParams
|
|
1415
1418
|
}) => {
|
|
1419
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1416
1420
|
const { data } = await clientApi.get(`/communities/${communityId}/members`, {
|
|
1417
1421
|
params: {
|
|
1418
1422
|
page: pageParam || void 0,
|
|
@@ -1423,15 +1427,14 @@ var GetCommunityMembers = async ({
|
|
|
1423
1427
|
});
|
|
1424
1428
|
return data;
|
|
1425
1429
|
};
|
|
1426
|
-
var useGetCommunityMembers = (communityId, params = {}, options = {}) => {
|
|
1427
|
-
const { token } = useConnectedXM();
|
|
1430
|
+
var useGetCommunityMembers = (communityId = "", params = {}, options = {}) => {
|
|
1428
1431
|
return useConnectedInfiniteQuery(
|
|
1429
1432
|
COMMUNITY_MEMBERS_QUERY_KEY(communityId),
|
|
1430
1433
|
(params2) => GetCommunityMembers({ communityId, ...params2 }),
|
|
1431
1434
|
params,
|
|
1432
1435
|
{
|
|
1433
1436
|
...options,
|
|
1434
|
-
enabled: !!
|
|
1437
|
+
enabled: !!communityId && (options?.enabled ?? true)
|
|
1435
1438
|
}
|
|
1436
1439
|
);
|
|
1437
1440
|
};
|
|
@@ -1453,8 +1456,9 @@ var GetCommunityModerators = async ({
|
|
|
1453
1456
|
orderBy,
|
|
1454
1457
|
search,
|
|
1455
1458
|
communityId,
|
|
1456
|
-
|
|
1459
|
+
clientApiParams
|
|
1457
1460
|
}) => {
|
|
1461
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1458
1462
|
const { data } = await clientApi.get(
|
|
1459
1463
|
`/communities/${communityId}/moderators`,
|
|
1460
1464
|
{
|
|
@@ -1468,15 +1472,14 @@ var GetCommunityModerators = async ({
|
|
|
1468
1472
|
);
|
|
1469
1473
|
return data;
|
|
1470
1474
|
};
|
|
1471
|
-
var useGetCommunityModerators = (communityId, params = {}, options = {}) => {
|
|
1472
|
-
const { token } = useConnectedXM();
|
|
1475
|
+
var useGetCommunityModerators = (communityId = "", params = {}, options = {}) => {
|
|
1473
1476
|
return useConnectedInfiniteQuery(
|
|
1474
1477
|
COMMUNITY_MODERATORS_QUERY_KEY(communityId),
|
|
1475
1478
|
(params2) => GetCommunityModerators({ communityId, ...params2 }),
|
|
1476
1479
|
params,
|
|
1477
1480
|
{
|
|
1478
1481
|
...options,
|
|
1479
|
-
enabled: !!
|
|
1482
|
+
enabled: !!communityId && (options?.enabled ?? true)
|
|
1480
1483
|
}
|
|
1481
1484
|
);
|
|
1482
1485
|
};
|
|
@@ -1497,8 +1500,9 @@ var GetSponsors = async ({
|
|
|
1497
1500
|
pageSize,
|
|
1498
1501
|
orderBy,
|
|
1499
1502
|
search,
|
|
1500
|
-
|
|
1503
|
+
clientApiParams
|
|
1501
1504
|
}) => {
|
|
1505
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1502
1506
|
const { data } = await clientApi.get(`/sponsors`, {
|
|
1503
1507
|
params: {
|
|
1504
1508
|
page: pageParam || void 0,
|
|
@@ -1534,12 +1538,13 @@ var SET_SPONSOR_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) =>
|
|
|
1534
1538
|
};
|
|
1535
1539
|
var GetSponsor = async ({
|
|
1536
1540
|
accountId,
|
|
1537
|
-
|
|
1541
|
+
clientApiParams
|
|
1538
1542
|
}) => {
|
|
1543
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1539
1544
|
const { data } = await clientApi.get(`/sponsors/${accountId}`);
|
|
1540
1545
|
return data;
|
|
1541
1546
|
};
|
|
1542
|
-
var useGetSponsor = (accountId, options = {}) => {
|
|
1547
|
+
var useGetSponsor = (accountId = "", options = {}) => {
|
|
1543
1548
|
return useConnectedSingleQuery_default(
|
|
1544
1549
|
SPONSOR_QUERY_KEY(accountId),
|
|
1545
1550
|
(params) => GetSponsor({ accountId, ...params }),
|
|
@@ -1571,9 +1576,10 @@ var GetCommunitySponsors = async ({
|
|
|
1571
1576
|
search,
|
|
1572
1577
|
communityId,
|
|
1573
1578
|
queryClient,
|
|
1574
|
-
|
|
1579
|
+
clientApiParams,
|
|
1575
1580
|
locale
|
|
1576
1581
|
}) => {
|
|
1582
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1577
1583
|
const { data } = await clientApi.get(`/communities/${communityId}/sponsors`, {
|
|
1578
1584
|
params: {
|
|
1579
1585
|
page: pageParam || void 0,
|
|
@@ -1592,7 +1598,7 @@ var GetCommunitySponsors = async ({
|
|
|
1592
1598
|
}
|
|
1593
1599
|
return data;
|
|
1594
1600
|
};
|
|
1595
|
-
var useGetCommunitySponsors = (communityId, params = {}, options = {}) => {
|
|
1601
|
+
var useGetCommunitySponsors = (communityId = "", params = {}, options = {}) => {
|
|
1596
1602
|
return useConnectedInfiniteQuery(
|
|
1597
1603
|
COMMUNITY_SPONSORS_QUERY_KEY(communityId),
|
|
1598
1604
|
(params2) => GetCommunitySponsors({ communityId, ...params2 }),
|
|
@@ -1621,9 +1627,10 @@ var GetContents = async ({
|
|
|
1621
1627
|
orderBy,
|
|
1622
1628
|
search,
|
|
1623
1629
|
queryClient,
|
|
1624
|
-
|
|
1630
|
+
clientApiParams,
|
|
1625
1631
|
locale
|
|
1626
1632
|
}) => {
|
|
1633
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1627
1634
|
const { data } = await clientApi.get(`/contents`, {
|
|
1628
1635
|
params: {
|
|
1629
1636
|
page: pageParam || void 0,
|
|
@@ -1667,12 +1674,13 @@ var SET_CONTENT_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) =>
|
|
|
1667
1674
|
};
|
|
1668
1675
|
var GetContent = async ({
|
|
1669
1676
|
contentId,
|
|
1670
|
-
|
|
1677
|
+
clientApiParams
|
|
1671
1678
|
}) => {
|
|
1679
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1672
1680
|
const { data } = await clientApi.get(`/contents/${contentId}`);
|
|
1673
1681
|
return data;
|
|
1674
1682
|
};
|
|
1675
|
-
var useGetContent = (contentId, options = {}) => {
|
|
1683
|
+
var useGetContent = (contentId = "", options = {}) => {
|
|
1676
1684
|
return useConnectedSingleQuery_default(
|
|
1677
1685
|
CONTENT_QUERY_KEY(contentId),
|
|
1678
1686
|
(params) => GetContent({ contentId: contentId || "", ...params }),
|
|
@@ -1704,9 +1712,10 @@ var GetContentActivities = async ({
|
|
|
1704
1712
|
search,
|
|
1705
1713
|
contentId,
|
|
1706
1714
|
queryClient,
|
|
1707
|
-
|
|
1715
|
+
clientApiParams,
|
|
1708
1716
|
locale
|
|
1709
1717
|
}) => {
|
|
1718
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1710
1719
|
const { data } = await clientApi.get(`/contents/${contentId}/activities`, {
|
|
1711
1720
|
params: {
|
|
1712
1721
|
page: pageParam || void 0,
|
|
@@ -1725,15 +1734,14 @@ var GetContentActivities = async ({
|
|
|
1725
1734
|
}
|
|
1726
1735
|
return data;
|
|
1727
1736
|
};
|
|
1728
|
-
var useGetContentActivities = (contentId, params = {}, options = {}) => {
|
|
1729
|
-
const { token } = useConnectedXM();
|
|
1737
|
+
var useGetContentActivities = (contentId = "", params = {}, options = {}) => {
|
|
1730
1738
|
return useConnectedInfiniteQuery(
|
|
1731
1739
|
CONTENT_ACTIVITIES_QUERY_KEY(contentId),
|
|
1732
1740
|
(params2) => GetContentActivities({ contentId, ...params2 }),
|
|
1733
1741
|
params,
|
|
1734
1742
|
{
|
|
1735
1743
|
...options,
|
|
1736
|
-
enabled: !!
|
|
1744
|
+
enabled: !!contentId && (options.enabled ?? true)
|
|
1737
1745
|
}
|
|
1738
1746
|
);
|
|
1739
1747
|
};
|
|
@@ -1755,9 +1763,10 @@ var GetContentTypes = async ({
|
|
|
1755
1763
|
orderBy,
|
|
1756
1764
|
search,
|
|
1757
1765
|
queryClient,
|
|
1758
|
-
|
|
1766
|
+
clientApiParams,
|
|
1759
1767
|
locale
|
|
1760
1768
|
}) => {
|
|
1769
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1761
1770
|
const { data } = await clientApi.get(`/contentTypes`, {
|
|
1762
1771
|
params: {
|
|
1763
1772
|
page: pageParam || void 0,
|
|
@@ -1801,12 +1810,13 @@ var SET_CONTENT_TYPE_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"
|
|
|
1801
1810
|
};
|
|
1802
1811
|
var GetContentType = async ({
|
|
1803
1812
|
contentTypeId,
|
|
1804
|
-
|
|
1813
|
+
clientApiParams
|
|
1805
1814
|
}) => {
|
|
1815
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1806
1816
|
const { data } = await clientApi.get(`/contentTypes/${contentTypeId}`);
|
|
1807
1817
|
return data;
|
|
1808
1818
|
};
|
|
1809
|
-
var useGetContentType = (contentTypeId, options = {}) => {
|
|
1819
|
+
var useGetContentType = (contentTypeId = "", options = {}) => {
|
|
1810
1820
|
return useConnectedSingleQuery_default(
|
|
1811
1821
|
CONTENT_TYPE_QUERY_KEY(contentTypeId),
|
|
1812
1822
|
(params) => GetContentType({ contentTypeId: contentTypeId || "", ...params }),
|
|
@@ -1835,9 +1845,10 @@ var GetContentTypeContents = async ({
|
|
|
1835
1845
|
search,
|
|
1836
1846
|
contentTypeId,
|
|
1837
1847
|
queryClient,
|
|
1838
|
-
|
|
1848
|
+
clientApiParams,
|
|
1839
1849
|
locale
|
|
1840
1850
|
}) => {
|
|
1851
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1841
1852
|
const { data } = await clientApi.get(
|
|
1842
1853
|
`/contentTypes/${contentTypeId}/contents`,
|
|
1843
1854
|
{
|
|
@@ -1859,7 +1870,7 @@ var GetContentTypeContents = async ({
|
|
|
1859
1870
|
}
|
|
1860
1871
|
return data;
|
|
1861
1872
|
};
|
|
1862
|
-
var useGetContentTypeContents = (contentTypeId, params = {}, options = {}) => {
|
|
1873
|
+
var useGetContentTypeContents = (contentTypeId = "", params = {}, options = {}) => {
|
|
1863
1874
|
return useConnectedInfiniteQuery(
|
|
1864
1875
|
CONTENT_TYPE_CONTENTS_QUERY_KEY(contentTypeId),
|
|
1865
1876
|
(params2) => GetContentTypeContents({ ...params2, contentTypeId: contentTypeId || "" }),
|
|
@@ -1892,9 +1903,10 @@ var GetEventActivities = async ({
|
|
|
1892
1903
|
orderBy,
|
|
1893
1904
|
search,
|
|
1894
1905
|
queryClient,
|
|
1895
|
-
|
|
1906
|
+
clientApiParams,
|
|
1896
1907
|
locale
|
|
1897
1908
|
}) => {
|
|
1909
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1898
1910
|
const { data } = await clientApi.get(`/events/${eventId}/activities`, {
|
|
1899
1911
|
params: {
|
|
1900
1912
|
page: pageParam || void 0,
|
|
@@ -1913,15 +1925,14 @@ var GetEventActivities = async ({
|
|
|
1913
1925
|
}
|
|
1914
1926
|
return data;
|
|
1915
1927
|
};
|
|
1916
|
-
var useGetEventActivities = (eventId, params = {}, options = {}) => {
|
|
1917
|
-
const { token } = useConnectedXM();
|
|
1928
|
+
var useGetEventActivities = (eventId = "", params = {}, options = {}) => {
|
|
1918
1929
|
return useConnectedInfiniteQuery(
|
|
1919
1930
|
EVENT_ACTIVITIES_QUERY_KEY(eventId),
|
|
1920
1931
|
(params2) => GetEventActivities({ eventId, ...params2 }),
|
|
1921
1932
|
params,
|
|
1922
1933
|
{
|
|
1923
1934
|
...options,
|
|
1924
|
-
enabled: !!
|
|
1935
|
+
enabled: !!eventId
|
|
1925
1936
|
}
|
|
1926
1937
|
);
|
|
1927
1938
|
};
|
|
@@ -1947,9 +1958,10 @@ var GetEventFaqSections = async ({
|
|
|
1947
1958
|
orderBy,
|
|
1948
1959
|
search,
|
|
1949
1960
|
queryClient,
|
|
1950
|
-
|
|
1961
|
+
clientApiParams,
|
|
1951
1962
|
locale
|
|
1952
1963
|
}) => {
|
|
1964
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1953
1965
|
const { data } = await clientApi.get(`/events/${eventId}/faqs`, {
|
|
1954
1966
|
params: {
|
|
1955
1967
|
page: pageParam || void 0,
|
|
@@ -1968,7 +1980,7 @@ var GetEventFaqSections = async ({
|
|
|
1968
1980
|
}
|
|
1969
1981
|
return data;
|
|
1970
1982
|
};
|
|
1971
|
-
var useGetEventFaqSections = (eventId, params = {}, options = {}) => {
|
|
1983
|
+
var useGetEventFaqSections = (eventId = "", params = {}, options = {}) => {
|
|
1972
1984
|
return useConnectedInfiniteQuery(
|
|
1973
1985
|
EVENT_FAQ_SECTIONS_QUERY_KEY(eventId),
|
|
1974
1986
|
(params2) => GetEventFaqSections({ eventId, ...params2 }),
|
|
@@ -1994,12 +2006,13 @@ var SET_EVENT_FAQ_SECTION_QUERY_DATA = (client, keyParams, response, baseKeys =
|
|
|
1994
2006
|
var GetEventFAQSection = async ({
|
|
1995
2007
|
eventId,
|
|
1996
2008
|
sectionId,
|
|
1997
|
-
|
|
2009
|
+
clientApiParams
|
|
1998
2010
|
}) => {
|
|
2011
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
1999
2012
|
const { data } = await clientApi.get(`/events/${eventId}/faqs/${sectionId}`);
|
|
2000
2013
|
return data;
|
|
2001
2014
|
};
|
|
2002
|
-
var useGetEventFAQSection = (eventId, sectionId, options = {}) => {
|
|
2015
|
+
var useGetEventFAQSection = (eventId = "", sectionId = "", options = {}) => {
|
|
2003
2016
|
return useConnectedSingleQuery(
|
|
2004
2017
|
EVENT_FAQ_SECTION_QUERY_KEY(eventId, sectionId),
|
|
2005
2018
|
(params) => GetEventFAQSection({ eventId, sectionId, ...params }),
|
|
@@ -2032,9 +2045,10 @@ var GetEventFaqs = async ({
|
|
|
2032
2045
|
orderBy,
|
|
2033
2046
|
search,
|
|
2034
2047
|
queryClient,
|
|
2035
|
-
|
|
2048
|
+
clientApiParams,
|
|
2036
2049
|
locale
|
|
2037
2050
|
}) => {
|
|
2051
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2038
2052
|
const { data } = await clientApi.get(
|
|
2039
2053
|
`/events/${eventId}/faqs/${sectionId}/questions`,
|
|
2040
2054
|
{
|
|
@@ -2056,7 +2070,7 @@ var GetEventFaqs = async ({
|
|
|
2056
2070
|
}
|
|
2057
2071
|
return data;
|
|
2058
2072
|
};
|
|
2059
|
-
var useGetEventFaqs = (eventId, sectionId, params = {}, options = {}) => {
|
|
2073
|
+
var useGetEventFaqs = (eventId = "", sectionId = "", params = {}, options = {}) => {
|
|
2060
2074
|
return useConnectedInfiniteQuery(
|
|
2061
2075
|
EVENT_FAQ_SECTION_QUESTIONS_QUERY_KEY(eventId, sectionId),
|
|
2062
2076
|
(params2) => GetEventFaqs({ eventId, sectionId, ...params2 }),
|
|
@@ -2086,14 +2100,15 @@ var GetEventFAQSectionQuestion = async ({
|
|
|
2086
2100
|
eventId,
|
|
2087
2101
|
sectionId,
|
|
2088
2102
|
questionId,
|
|
2089
|
-
|
|
2103
|
+
clientApiParams
|
|
2090
2104
|
}) => {
|
|
2105
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2091
2106
|
const { data } = await clientApi.get(
|
|
2092
2107
|
`/events/${eventId}/faqs/${sectionId}/questions/${questionId}`
|
|
2093
2108
|
);
|
|
2094
2109
|
return data;
|
|
2095
2110
|
};
|
|
2096
|
-
var useGetEventFAQSectionQuestion = (eventId, sectionId, questionId, options = {}) => {
|
|
2111
|
+
var useGetEventFAQSectionQuestion = (eventId = "", sectionId = "", questionId = "", options = {}) => {
|
|
2097
2112
|
return useConnectedSingleQuery(
|
|
2098
2113
|
EVENT_FAQ_SECTION_QUESTION_QUERY_KEY(eventId, sectionId, questionId),
|
|
2099
2114
|
(params) => GetEventFAQSectionQuestion({ eventId, sectionId, questionId, ...params }),
|
|
@@ -2125,9 +2140,10 @@ var GetEventPages = async ({
|
|
|
2125
2140
|
orderBy,
|
|
2126
2141
|
search,
|
|
2127
2142
|
queryClient,
|
|
2128
|
-
|
|
2143
|
+
clientApiParams,
|
|
2129
2144
|
locale
|
|
2130
2145
|
}) => {
|
|
2146
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2131
2147
|
const { data } = await clientApi.get(`/events/${eventId}/pages`, {
|
|
2132
2148
|
params: {
|
|
2133
2149
|
page: pageParam || void 0,
|
|
@@ -2146,7 +2162,7 @@ var GetEventPages = async ({
|
|
|
2146
2162
|
}
|
|
2147
2163
|
return data;
|
|
2148
2164
|
};
|
|
2149
|
-
var useGetEventPages = (eventId, params = {}, options = {}) => {
|
|
2165
|
+
var useGetEventPages = (eventId = "", params = {}, options = {}) => {
|
|
2150
2166
|
return useConnectedInfiniteQuery(
|
|
2151
2167
|
EVENT_PAGES_QUERY_KEY(eventId),
|
|
2152
2168
|
(params2) => GetEventPages({ eventId, ...params2 }),
|
|
@@ -2172,12 +2188,13 @@ var SET_EVENT_PAGE_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"])
|
|
|
2172
2188
|
var GetEventPage = async ({
|
|
2173
2189
|
eventId,
|
|
2174
2190
|
pageId,
|
|
2175
|
-
|
|
2191
|
+
clientApiParams
|
|
2176
2192
|
}) => {
|
|
2193
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2177
2194
|
const { data } = await clientApi.get(`/events/${eventId}/pages/${pageId}`);
|
|
2178
2195
|
return data;
|
|
2179
2196
|
};
|
|
2180
|
-
var useGetEventPage = (eventId, pageId, options = {}) => {
|
|
2197
|
+
var useGetEventPage = (eventId = "", pageId, options = {}) => {
|
|
2181
2198
|
return useConnectedSingleQuery(
|
|
2182
2199
|
EVENT_PAGE_QUERY_KEY(eventId, pageId),
|
|
2183
2200
|
(params) => GetEventPage({ eventId, pageId, ...params }),
|
|
@@ -2197,8 +2214,9 @@ var GetEventQuestionSearchValues = async ({
|
|
|
2197
2214
|
pageSize,
|
|
2198
2215
|
orderBy,
|
|
2199
2216
|
search,
|
|
2200
|
-
|
|
2217
|
+
clientApiParams
|
|
2201
2218
|
}) => {
|
|
2219
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2202
2220
|
const { data } = await clientApi.get(
|
|
2203
2221
|
`/events/${eventId}/questions/${questionId}/values`,
|
|
2204
2222
|
{
|
|
@@ -2212,7 +2230,7 @@ var GetEventQuestionSearchValues = async ({
|
|
|
2212
2230
|
);
|
|
2213
2231
|
return data;
|
|
2214
2232
|
};
|
|
2215
|
-
var useGetEventQuestionSearchValues = (eventId, questionId, params = {}, options = {}) => {
|
|
2233
|
+
var useGetEventQuestionSearchValues = (eventId = "", questionId = "", params = {}, options = {}) => {
|
|
2216
2234
|
return useConnectedInfiniteQuery(
|
|
2217
2235
|
EVENT_QUESTION_VALUES_QUERY_KEY(eventId, questionId),
|
|
2218
2236
|
(params2) => GetEventQuestionSearchValues({
|
|
@@ -2249,9 +2267,10 @@ var GetEventRegistrants = async ({
|
|
|
2249
2267
|
orderBy,
|
|
2250
2268
|
search,
|
|
2251
2269
|
queryClient,
|
|
2252
|
-
|
|
2270
|
+
clientApiParams,
|
|
2253
2271
|
locale
|
|
2254
2272
|
}) => {
|
|
2273
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2255
2274
|
const { data } = await clientApi.get(`/events/${eventId}/registrants`, {
|
|
2256
2275
|
params: {
|
|
2257
2276
|
page: pageParam || void 0,
|
|
@@ -2270,15 +2289,14 @@ var GetEventRegistrants = async ({
|
|
|
2270
2289
|
}
|
|
2271
2290
|
return data;
|
|
2272
2291
|
};
|
|
2273
|
-
var useGetEventRegistrants = (eventId, params = {}, options = {}) => {
|
|
2274
|
-
const { token } = useConnectedXM();
|
|
2292
|
+
var useGetEventRegistrants = (eventId = "", params = {}, options = {}) => {
|
|
2275
2293
|
return useConnectedInfiniteQuery(
|
|
2276
2294
|
EVENT_REGISTRANTS_QUERY_KEY(eventId),
|
|
2277
2295
|
(params2) => GetEventRegistrants({ eventId, ...params2 }),
|
|
2278
2296
|
params,
|
|
2279
2297
|
{
|
|
2280
2298
|
...options,
|
|
2281
|
-
enabled: !!
|
|
2299
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
2282
2300
|
}
|
|
2283
2301
|
);
|
|
2284
2302
|
};
|
|
@@ -2304,9 +2322,10 @@ var GetEventSessions = async ({
|
|
|
2304
2322
|
orderBy,
|
|
2305
2323
|
search,
|
|
2306
2324
|
queryClient,
|
|
2307
|
-
|
|
2325
|
+
clientApiParams,
|
|
2308
2326
|
locale
|
|
2309
2327
|
}) => {
|
|
2328
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2310
2329
|
const { data } = await clientApi.get(`/events/${eventId}/sessions`, {
|
|
2311
2330
|
params: {
|
|
2312
2331
|
page: pageParam || void 0,
|
|
@@ -2325,7 +2344,7 @@ var GetEventSessions = async ({
|
|
|
2325
2344
|
}
|
|
2326
2345
|
return data;
|
|
2327
2346
|
};
|
|
2328
|
-
var useGetEventSessions = (eventId, params = {}, options = {}) => {
|
|
2347
|
+
var useGetEventSessions = (eventId = "", params = {}, options = {}) => {
|
|
2329
2348
|
return useConnectedInfiniteQuery(
|
|
2330
2349
|
EVENT_SESSIONS_QUERY_KEY(eventId),
|
|
2331
2350
|
(params2) => GetEventSessions({ eventId, ...params2 }),
|
|
@@ -2351,14 +2370,15 @@ var SET_EVENT_SESSION_QUERY_DATA = (client, keyParams, response, baseKeys = ["en
|
|
|
2351
2370
|
var GetEventSession = async ({
|
|
2352
2371
|
eventId,
|
|
2353
2372
|
sessionId,
|
|
2354
|
-
|
|
2373
|
+
clientApiParams
|
|
2355
2374
|
}) => {
|
|
2375
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2356
2376
|
const { data } = await clientApi.get(
|
|
2357
2377
|
`/events/${eventId}/sessions/${sessionId}`
|
|
2358
2378
|
);
|
|
2359
2379
|
return data;
|
|
2360
2380
|
};
|
|
2361
|
-
var useGetEventSession = (eventId, sessionId, options = {}) => {
|
|
2381
|
+
var useGetEventSession = (eventId = "", sessionId = "", options = {}) => {
|
|
2362
2382
|
return useConnectedSingleQuery(
|
|
2363
2383
|
EVENT_SESSION_QUERY_KEY(eventId, sessionId),
|
|
2364
2384
|
(params) => GetEventSession({ eventId, sessionId, ...params }),
|
|
@@ -2390,9 +2410,10 @@ var GetEventSpeakers = async ({
|
|
|
2390
2410
|
orderBy,
|
|
2391
2411
|
search,
|
|
2392
2412
|
queryClient,
|
|
2393
|
-
|
|
2413
|
+
clientApiParams,
|
|
2394
2414
|
locale
|
|
2395
2415
|
}) => {
|
|
2416
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2396
2417
|
const { data } = await clientApi.get(`/events/${eventId}/speakers`, {
|
|
2397
2418
|
params: {
|
|
2398
2419
|
page: pageParam || void 0,
|
|
@@ -2411,7 +2432,7 @@ var GetEventSpeakers = async ({
|
|
|
2411
2432
|
}
|
|
2412
2433
|
return data;
|
|
2413
2434
|
};
|
|
2414
|
-
var useGetEventSpeakers = (eventId, params = {}, options = {}) => {
|
|
2435
|
+
var useGetEventSpeakers = (eventId = "", params = {}, options = {}) => {
|
|
2415
2436
|
return useConnectedInfiniteQuery(
|
|
2416
2437
|
EVENT_SPEAKERS_QUERY_KEY(eventId),
|
|
2417
2438
|
(params2) => GetEventSpeakers({ eventId, ...params2 }),
|
|
@@ -2437,14 +2458,15 @@ var SET_EVENT_SPEAKER_QUERY_DATA = (client, keyParams, response, baseKeys = ["en
|
|
|
2437
2458
|
var GetEventSpeaker = async ({
|
|
2438
2459
|
eventId,
|
|
2439
2460
|
speakerId,
|
|
2440
|
-
|
|
2461
|
+
clientApiParams
|
|
2441
2462
|
}) => {
|
|
2463
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2442
2464
|
const { data } = await clientApi.get(
|
|
2443
2465
|
`/events/${eventId}/speakers/${speakerId}`
|
|
2444
2466
|
);
|
|
2445
2467
|
return data;
|
|
2446
2468
|
};
|
|
2447
|
-
var useGetEventSpeaker = (eventId, speakerId, options = {}) => {
|
|
2469
|
+
var useGetEventSpeaker = (eventId = "", speakerId = "", options = {}) => {
|
|
2448
2470
|
return useConnectedSingleQuery(
|
|
2449
2471
|
EVENT_SPEAKER_QUERY_KEY(eventId, speakerId),
|
|
2450
2472
|
(params) => GetEventSpeaker({ eventId, speakerId, ...params }),
|
|
@@ -2475,8 +2497,9 @@ var GetEventTickets = async ({
|
|
|
2475
2497
|
pageSize,
|
|
2476
2498
|
orderBy,
|
|
2477
2499
|
search,
|
|
2478
|
-
|
|
2500
|
+
clientApiParams
|
|
2479
2501
|
}) => {
|
|
2502
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2480
2503
|
const { data } = await clientApi.get(`/events/${eventId}/tickets`, {
|
|
2481
2504
|
params: {
|
|
2482
2505
|
page: pageParam || void 0,
|
|
@@ -2487,7 +2510,7 @@ var GetEventTickets = async ({
|
|
|
2487
2510
|
});
|
|
2488
2511
|
return data;
|
|
2489
2512
|
};
|
|
2490
|
-
var useGetEventTickets = (eventId, params = {}, options = {}) => {
|
|
2513
|
+
var useGetEventTickets = (eventId = "", params = {}, options = {}) => {
|
|
2491
2514
|
return useConnectedInfiniteQuery(
|
|
2492
2515
|
EVENT_TICKETS_QUERY_KEY(eventId),
|
|
2493
2516
|
(params2) => GetEventTickets({ eventId, ...params2 }),
|
|
@@ -2520,9 +2543,10 @@ var GetEventSponsors = async ({
|
|
|
2520
2543
|
orderBy,
|
|
2521
2544
|
search,
|
|
2522
2545
|
queryClient,
|
|
2523
|
-
|
|
2546
|
+
clientApiParams,
|
|
2524
2547
|
locale
|
|
2525
2548
|
}) => {
|
|
2549
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2526
2550
|
const { data } = await clientApi.get(`/events/${eventId}/sponsors`, {
|
|
2527
2551
|
params: {
|
|
2528
2552
|
page: pageParam || void 0,
|
|
@@ -2541,7 +2565,7 @@ var GetEventSponsors = async ({
|
|
|
2541
2565
|
}
|
|
2542
2566
|
return data;
|
|
2543
2567
|
};
|
|
2544
|
-
var useGetEventSponsors = (eventId, params = {}, options = {}) => {
|
|
2568
|
+
var useGetEventSponsors = (eventId = "", params = {}, options = {}) => {
|
|
2545
2569
|
return useConnectedInfiniteQuery(
|
|
2546
2570
|
EVENT_TICKETS_QUERY_KEY(eventId),
|
|
2547
2571
|
(params2) => GetEventSponsors({ eventId, ...params2 }),
|
|
@@ -2572,9 +2596,10 @@ var GetFeaturedEvents = async ({
|
|
|
2572
2596
|
pageSize,
|
|
2573
2597
|
orderBy,
|
|
2574
2598
|
queryClient,
|
|
2575
|
-
|
|
2599
|
+
clientApiParams,
|
|
2576
2600
|
locale
|
|
2577
2601
|
}) => {
|
|
2602
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2578
2603
|
const { data } = await clientApi.get(`/events/featured`, {
|
|
2579
2604
|
params: {
|
|
2580
2605
|
page: pageParam || void 0,
|
|
@@ -2604,8 +2629,9 @@ var useGetFeaturedEvents = (params = {}, options = {}) => {
|
|
|
2604
2629
|
// src/queries/organization/useGetOrganization.ts
|
|
2605
2630
|
var ORGANIZATION_QUERY_KEY = () => ["ORGANIZATION"];
|
|
2606
2631
|
var GetOrganization = async ({
|
|
2607
|
-
|
|
2632
|
+
clientApiParams
|
|
2608
2633
|
}) => {
|
|
2634
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2609
2635
|
const { data } = await clientApi.get(`/organization`);
|
|
2610
2636
|
return data;
|
|
2611
2637
|
};
|
|
@@ -2623,8 +2649,9 @@ var ORGANIZATION_EXPLORE_QUERY_KEY = () => [
|
|
|
2623
2649
|
"ORGANIZATION"
|
|
2624
2650
|
];
|
|
2625
2651
|
var GetOrganizationExplore = async ({
|
|
2626
|
-
|
|
2652
|
+
clientApiParams
|
|
2627
2653
|
}) => {
|
|
2654
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2628
2655
|
const { data } = await clientApi.get(`/organization/explore`);
|
|
2629
2656
|
return data;
|
|
2630
2657
|
};
|
|
@@ -2653,8 +2680,9 @@ var SET_ORGANIZATION_PAGE_QUERY_DATA = (queryClient, keyParams, response, baseKe
|
|
|
2653
2680
|
};
|
|
2654
2681
|
var GetOrganizationPage = async ({
|
|
2655
2682
|
type,
|
|
2656
|
-
|
|
2683
|
+
clientApiParams
|
|
2657
2684
|
}) => {
|
|
2685
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2658
2686
|
const { data } = await clientApi.get(`/organization/pages/${type}`);
|
|
2659
2687
|
return data;
|
|
2660
2688
|
};
|
|
@@ -2675,8 +2703,9 @@ var ORGANIZATION_SUBSCRIPTIONS_QUERY_KEY = () => [
|
|
|
2675
2703
|
"SUBSCRIPTIONS"
|
|
2676
2704
|
];
|
|
2677
2705
|
var GetOrganizationSubscriptionProducts = async ({
|
|
2678
|
-
|
|
2706
|
+
clientApiParams
|
|
2679
2707
|
}) => {
|
|
2708
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2680
2709
|
const { data } = await clientApi.get(`/organization/subscriptions`);
|
|
2681
2710
|
return data;
|
|
2682
2711
|
};
|
|
@@ -2695,8 +2724,9 @@ var ORGANIZATION_PAYMENT_INTEGRATION_QUERY_KEY = () => [
|
|
|
2695
2724
|
"PAYMENT_INTEGRATION"
|
|
2696
2725
|
];
|
|
2697
2726
|
var GetOrganizationPaymentIntegration = async ({
|
|
2698
|
-
|
|
2727
|
+
clientApiParams
|
|
2699
2728
|
}) => {
|
|
2729
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2700
2730
|
const { data } = await clientApi.get(`/organization/payment-integration`);
|
|
2701
2731
|
return data;
|
|
2702
2732
|
};
|
|
@@ -2725,9 +2755,10 @@ var GetSelfChatChannels = async ({
|
|
|
2725
2755
|
orderBy,
|
|
2726
2756
|
search,
|
|
2727
2757
|
queryClient,
|
|
2728
|
-
|
|
2758
|
+
clientApiParams,
|
|
2729
2759
|
locale
|
|
2730
2760
|
}) => {
|
|
2761
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2731
2762
|
const { data } = await clientApi.get(`/self/chat/channels`, {
|
|
2732
2763
|
params: {
|
|
2733
2764
|
page: pageParam || void 0,
|
|
@@ -2753,14 +2784,12 @@ var GetSelfChatChannels = async ({
|
|
|
2753
2784
|
return data;
|
|
2754
2785
|
};
|
|
2755
2786
|
var useGetSelfChatChannels = (params = {}, options = {}) => {
|
|
2756
|
-
const { token } = useConnectedXM();
|
|
2757
2787
|
return useConnectedInfiniteQuery(
|
|
2758
2788
|
SELF_CHAT_CHANNELS_QUERY_KEY(),
|
|
2759
2789
|
(params2) => GetSelfChatChannels(params2),
|
|
2760
2790
|
params,
|
|
2761
2791
|
{
|
|
2762
|
-
...options
|
|
2763
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
2792
|
+
...options
|
|
2764
2793
|
}
|
|
2765
2794
|
);
|
|
2766
2795
|
};
|
|
@@ -2781,13 +2810,13 @@ var SET_SELF_CHAT_CHANNEL_QUERY_DATA = (client, keyParams, response, baseKeys =
|
|
|
2781
2810
|
};
|
|
2782
2811
|
var GetSelfChatChannel = async ({
|
|
2783
2812
|
channelId,
|
|
2784
|
-
|
|
2813
|
+
clientApiParams
|
|
2785
2814
|
}) => {
|
|
2815
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2786
2816
|
const { data } = await clientApi.get(`/self/chat/channels/${channelId}`);
|
|
2787
2817
|
return data;
|
|
2788
2818
|
};
|
|
2789
2819
|
var useGetSelfChatChannel = (channelId, options = {}) => {
|
|
2790
|
-
const { token } = useConnectedXM();
|
|
2791
2820
|
return useConnectedSingleQuery(
|
|
2792
2821
|
SELF_CHAT_CHANNEL_QUERY_KEY(channelId),
|
|
2793
2822
|
(params) => GetSelfChatChannel({
|
|
@@ -2797,7 +2826,7 @@ var useGetSelfChatChannel = (channelId, options = {}) => {
|
|
|
2797
2826
|
{
|
|
2798
2827
|
staleTime: Infinity,
|
|
2799
2828
|
...options,
|
|
2800
|
-
enabled: !!
|
|
2829
|
+
enabled: !!channelId && (options?.enabled ?? true)
|
|
2801
2830
|
}
|
|
2802
2831
|
);
|
|
2803
2832
|
};
|
|
@@ -2819,8 +2848,9 @@ var GetSelfChatChannelMembers = async ({
|
|
|
2819
2848
|
pageSize,
|
|
2820
2849
|
orderBy,
|
|
2821
2850
|
search,
|
|
2822
|
-
|
|
2851
|
+
clientApiParams
|
|
2823
2852
|
}) => {
|
|
2853
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2824
2854
|
const { data } = await clientApi.get(
|
|
2825
2855
|
`/self/chat/channels/${channelId}/members`,
|
|
2826
2856
|
{
|
|
@@ -2835,14 +2865,13 @@ var GetSelfChatChannelMembers = async ({
|
|
|
2835
2865
|
return data;
|
|
2836
2866
|
};
|
|
2837
2867
|
var useGetSelfChatChannelMembers = (channelId, params = {}, options = {}) => {
|
|
2838
|
-
const { token } = useConnectedXM();
|
|
2839
2868
|
return useConnectedInfiniteQuery(
|
|
2840
2869
|
SELF_CHAT_CHANNEL_MEMBERS_QUERY_KEY(channelId),
|
|
2841
2870
|
(params2) => GetSelfChatChannelMembers({ ...params2, channelId }),
|
|
2842
2871
|
params,
|
|
2843
2872
|
{
|
|
2844
2873
|
...options,
|
|
2845
|
-
enabled: !!
|
|
2874
|
+
enabled: !!channelId && (options?.enabled ?? true)
|
|
2846
2875
|
}
|
|
2847
2876
|
);
|
|
2848
2877
|
};
|
|
@@ -2865,8 +2894,9 @@ var GetSelfChatChannelMessages = async ({
|
|
|
2865
2894
|
orderBy,
|
|
2866
2895
|
search,
|
|
2867
2896
|
queryClient,
|
|
2868
|
-
|
|
2897
|
+
clientApiParams
|
|
2869
2898
|
}) => {
|
|
2899
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2870
2900
|
const { data } = await clientApi.get(
|
|
2871
2901
|
`/self/chat/channels/${channelId}/messages`,
|
|
2872
2902
|
{
|
|
@@ -2890,14 +2920,13 @@ var GetSelfChatChannelMessages = async ({
|
|
|
2890
2920
|
return data;
|
|
2891
2921
|
};
|
|
2892
2922
|
var useGetSelfChatChannelMessages = (channelId, params = {}, options = {}) => {
|
|
2893
|
-
const { token } = useConnectedXM();
|
|
2894
2923
|
return useConnectedInfiniteQuery(
|
|
2895
2924
|
SELF_CHAT_CHANNEL_MESSAGES_QUERY_KEY(channelId),
|
|
2896
2925
|
(params2) => GetSelfChatChannelMessages({ ...params2, channelId }),
|
|
2897
2926
|
params,
|
|
2898
2927
|
{
|
|
2899
2928
|
...options,
|
|
2900
|
-
enabled: !!
|
|
2929
|
+
enabled: !!channelId && (options?.enabled ?? true)
|
|
2901
2930
|
}
|
|
2902
2931
|
);
|
|
2903
2932
|
};
|
|
@@ -2917,20 +2946,21 @@ var SET_SELF_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
|
2917
2946
|
};
|
|
2918
2947
|
var GetSelf = async ({
|
|
2919
2948
|
authenticated,
|
|
2920
|
-
|
|
2949
|
+
clientApiParams
|
|
2921
2950
|
}) => {
|
|
2922
|
-
|
|
2923
|
-
|
|
2951
|
+
const clientApi = await GetClientAPI({
|
|
2952
|
+
...clientApiParams,
|
|
2953
|
+
getExecuteAs: authenticated ? void 0 : clientApiParams.getExecuteAs
|
|
2954
|
+
});
|
|
2924
2955
|
const { data } = await clientApi.get(`/self`);
|
|
2925
2956
|
return data;
|
|
2926
2957
|
};
|
|
2927
2958
|
var useGetSelf = (authenticated, options = {}) => {
|
|
2928
|
-
const { token } = useConnectedXM();
|
|
2929
2959
|
return useConnectedSingleQuery(
|
|
2930
2960
|
SELF_QUERY_KEY(authenticated),
|
|
2931
2961
|
(params) => GetSelf({ authenticated, ...params }),
|
|
2932
2962
|
{
|
|
2933
|
-
|
|
2963
|
+
...options
|
|
2934
2964
|
}
|
|
2935
2965
|
);
|
|
2936
2966
|
};
|
|
@@ -2951,8 +2981,9 @@ var GetSelfEventRegistration = async ({
|
|
|
2951
2981
|
ticket,
|
|
2952
2982
|
quantity,
|
|
2953
2983
|
coupon,
|
|
2954
|
-
|
|
2984
|
+
clientApiParams
|
|
2955
2985
|
}) => {
|
|
2986
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2956
2987
|
const { data } = await clientApi.get(`/self/events/${eventId}/registration`, {
|
|
2957
2988
|
params: {
|
|
2958
2989
|
ticket: ticket || void 0,
|
|
@@ -2963,7 +2994,6 @@ var GetSelfEventRegistration = async ({
|
|
|
2963
2994
|
return data;
|
|
2964
2995
|
};
|
|
2965
2996
|
var useGetSelfEventRegistration = (eventId, ticket, quantity, coupon, options = {}) => {
|
|
2966
|
-
const { token } = useConnectedXM();
|
|
2967
2997
|
return useConnectedSingleQuery_default(
|
|
2968
2998
|
SELF_EVENT_REGISTRATION_QUERY_KEY(eventId),
|
|
2969
2999
|
(params) => GetSelfEventRegistration({
|
|
@@ -2978,7 +3008,7 @@ var useGetSelfEventRegistration = (eventId, ticket, quantity, coupon, options =
|
|
|
2978
3008
|
staleTime: Infinity,
|
|
2979
3009
|
refetchOnMount: false,
|
|
2980
3010
|
...options,
|
|
2981
|
-
enabled: !!
|
|
3011
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
2982
3012
|
}
|
|
2983
3013
|
);
|
|
2984
3014
|
};
|
|
@@ -2992,15 +3022,15 @@ var SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY = (eventId, registrationId) => [
|
|
|
2992
3022
|
var GetSelfEventRegistrationCheckout = async ({
|
|
2993
3023
|
eventId,
|
|
2994
3024
|
registrationId,
|
|
2995
|
-
|
|
3025
|
+
clientApiParams
|
|
2996
3026
|
}) => {
|
|
3027
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
2997
3028
|
const { data } = await clientApi.get(
|
|
2998
3029
|
`/self/events/${eventId}/registration/${registrationId}/draft/checkout`
|
|
2999
3030
|
);
|
|
3000
3031
|
return data;
|
|
3001
3032
|
};
|
|
3002
3033
|
var useGetSelfEventRegistrationCheckout = (eventId, registrationId = "", options = {}) => {
|
|
3003
|
-
const { token } = useConnectedXM();
|
|
3004
3034
|
return useConnectedSingleQuery_default(
|
|
3005
3035
|
SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY(eventId, registrationId),
|
|
3006
3036
|
(params) => GetSelfEventRegistrationCheckout({ eventId, registrationId, ...params }),
|
|
@@ -3009,7 +3039,7 @@ var useGetSelfEventRegistrationCheckout = (eventId, registrationId = "", options
|
|
|
3009
3039
|
retry: false,
|
|
3010
3040
|
retryOnMount: false,
|
|
3011
3041
|
...options,
|
|
3012
|
-
enabled: !!
|
|
3042
|
+
enabled: !!eventId && !!registrationId
|
|
3013
3043
|
}
|
|
3014
3044
|
);
|
|
3015
3045
|
};
|
|
@@ -3029,9 +3059,10 @@ var GetSelfSubscriptions = async ({
|
|
|
3029
3059
|
orderBy,
|
|
3030
3060
|
search,
|
|
3031
3061
|
queryClient,
|
|
3032
|
-
|
|
3062
|
+
clientApiParams,
|
|
3033
3063
|
locale
|
|
3034
3064
|
}) => {
|
|
3065
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3035
3066
|
const { data } = await clientApi.get(`/self/subscriptions`, {
|
|
3036
3067
|
params: {
|
|
3037
3068
|
page: pageParam || void 0,
|
|
@@ -3052,14 +3083,12 @@ var GetSelfSubscriptions = async ({
|
|
|
3052
3083
|
return data;
|
|
3053
3084
|
};
|
|
3054
3085
|
var useGetSelfSubscriptions = (status, params = {}, options = {}) => {
|
|
3055
|
-
const { token } = useConnectedXM();
|
|
3056
3086
|
return useConnectedInfiniteQuery(
|
|
3057
3087
|
SELF_SUBSCRIPTIONS_QUERY_KEY(status),
|
|
3058
3088
|
(params2) => GetSelfSubscriptions({ status, ...params2 }),
|
|
3059
3089
|
params,
|
|
3060
3090
|
{
|
|
3061
|
-
...options
|
|
3062
|
-
enabled: !!token
|
|
3091
|
+
...options
|
|
3063
3092
|
}
|
|
3064
3093
|
);
|
|
3065
3094
|
};
|
|
@@ -3068,19 +3097,19 @@ var useGetSelfSubscriptions = (status, params = {}, options = {}) => {
|
|
|
3068
3097
|
var SELF_SUBSCRIPTION_QUERY_KEY = (subscriptionId) => [...SELF_SUBSCRIPTIONS_QUERY_KEY(), subscriptionId];
|
|
3069
3098
|
var GetSelfSubcription = async ({
|
|
3070
3099
|
subscriptionId,
|
|
3071
|
-
|
|
3100
|
+
clientApiParams
|
|
3072
3101
|
}) => {
|
|
3102
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3073
3103
|
const { data } = await clientApi.get(`/self/subscriptions/${subscriptionId}`);
|
|
3074
3104
|
return data;
|
|
3075
3105
|
};
|
|
3076
3106
|
var useGetSelfSubcription = (subscriptionId = "", options = {}) => {
|
|
3077
|
-
const { token } = useConnectedXM();
|
|
3078
3107
|
return useConnectedSingleQuery(
|
|
3079
3108
|
SELF_SUBSCRIPTION_QUERY_KEY(subscriptionId),
|
|
3080
3109
|
(params) => GetSelfSubcription({ subscriptionId, ...params }),
|
|
3081
3110
|
{
|
|
3082
3111
|
...options,
|
|
3083
|
-
enabled: !!
|
|
3112
|
+
enabled: !!subscriptionId
|
|
3084
3113
|
}
|
|
3085
3114
|
);
|
|
3086
3115
|
};
|
|
@@ -3093,8 +3122,9 @@ var GetSelfSubscriptionPayments = async ({
|
|
|
3093
3122
|
pageSize,
|
|
3094
3123
|
orderBy,
|
|
3095
3124
|
search,
|
|
3096
|
-
|
|
3125
|
+
clientApiParams
|
|
3097
3126
|
}) => {
|
|
3127
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3098
3128
|
const { data } = await clientApi.get(
|
|
3099
3129
|
`/self/subscriptions/${subscriptionId}/payments`,
|
|
3100
3130
|
{
|
|
@@ -3109,14 +3139,12 @@ var GetSelfSubscriptionPayments = async ({
|
|
|
3109
3139
|
return data;
|
|
3110
3140
|
};
|
|
3111
3141
|
var useGetSelfSubscriptionPayments = (subscriptionId, params = {}, options = {}) => {
|
|
3112
|
-
const { token } = useConnectedXM();
|
|
3113
3142
|
return useConnectedInfiniteQuery(
|
|
3114
3143
|
SELF_SUBSCRIPTION_PAYMENTS_QUERY_KEY(subscriptionId),
|
|
3115
3144
|
(params2) => GetSelfSubscriptionPayments({ ...params2, subscriptionId }),
|
|
3116
3145
|
params,
|
|
3117
3146
|
{
|
|
3118
|
-
...options
|
|
3119
|
-
enabled: !!token
|
|
3147
|
+
...options
|
|
3120
3148
|
}
|
|
3121
3149
|
);
|
|
3122
3150
|
};
|
|
@@ -3132,9 +3160,10 @@ var GetSelfActivities = async ({
|
|
|
3132
3160
|
orderBy,
|
|
3133
3161
|
search,
|
|
3134
3162
|
queryClient,
|
|
3135
|
-
|
|
3163
|
+
clientApiParams,
|
|
3136
3164
|
locale
|
|
3137
3165
|
}) => {
|
|
3166
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3138
3167
|
const { data } = await clientApi.get(`/self/activities`, {
|
|
3139
3168
|
params: {
|
|
3140
3169
|
page: pageParam || void 0,
|
|
@@ -3154,14 +3183,13 @@ var GetSelfActivities = async ({
|
|
|
3154
3183
|
return data;
|
|
3155
3184
|
};
|
|
3156
3185
|
var useGetSelfActivities = (params = {}, options = {}) => {
|
|
3157
|
-
const { token } = useConnectedXM();
|
|
3158
3186
|
return useConnectedInfiniteQuery(
|
|
3159
3187
|
SELF_ACTIVITIES_QUERY_KEY(),
|
|
3160
3188
|
(params2) => GetSelfActivities({ ...params2 }),
|
|
3161
3189
|
params,
|
|
3162
3190
|
{
|
|
3163
3191
|
...options,
|
|
3164
|
-
enabled:
|
|
3192
|
+
enabled: options.enabled ?? true
|
|
3165
3193
|
}
|
|
3166
3194
|
);
|
|
3167
3195
|
};
|
|
@@ -3170,19 +3198,19 @@ var useGetSelfActivities = (params = {}, options = {}) => {
|
|
|
3170
3198
|
var SELF_ANNOUNCEMENT_QUERY_KEY = (announcementId) => [...SELF_QUERY_KEY(), "ANNOUNCEMENT", announcementId];
|
|
3171
3199
|
var GetSelfAnnouncement = async ({
|
|
3172
3200
|
announcementId,
|
|
3173
|
-
|
|
3201
|
+
clientApiParams
|
|
3174
3202
|
}) => {
|
|
3203
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3175
3204
|
const { data } = await clientApi.get(`/self/announcements/${announcementId}`);
|
|
3176
3205
|
return data;
|
|
3177
3206
|
};
|
|
3178
3207
|
var useGetSelfAnnouncement = (announcementId, options = {}) => {
|
|
3179
|
-
const { token } = useConnectedXM();
|
|
3180
3208
|
return useConnectedSingleQuery(
|
|
3181
3209
|
SELF_ANNOUNCEMENT_QUERY_KEY(announcementId),
|
|
3182
3210
|
(params) => GetSelfAnnouncement({ announcementId, ...params }),
|
|
3183
3211
|
{
|
|
3184
3212
|
...options,
|
|
3185
|
-
enabled: !!
|
|
3213
|
+
enabled: !!announcementId && (options?.enabled ?? true)
|
|
3186
3214
|
}
|
|
3187
3215
|
);
|
|
3188
3216
|
};
|
|
@@ -3197,8 +3225,9 @@ var GetSelfCommunityMemberships = async ({
|
|
|
3197
3225
|
pageSize,
|
|
3198
3226
|
orderBy,
|
|
3199
3227
|
search,
|
|
3200
|
-
|
|
3228
|
+
clientApiParams
|
|
3201
3229
|
}) => {
|
|
3230
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3202
3231
|
const { data } = await clientApi.get(`/self/communities`, {
|
|
3203
3232
|
params: {
|
|
3204
3233
|
page: pageParam || void 0,
|
|
@@ -3210,14 +3239,12 @@ var GetSelfCommunityMemberships = async ({
|
|
|
3210
3239
|
return data;
|
|
3211
3240
|
};
|
|
3212
3241
|
var useGetSelfCommunityMemberships = (params = {}, options = {}) => {
|
|
3213
|
-
const { token } = useConnectedXM();
|
|
3214
3242
|
return useConnectedInfiniteQuery(
|
|
3215
3243
|
SELF_COMMUNITY_MEMBERSHIPS_QUERY_KEY(),
|
|
3216
3244
|
(params2) => GetSelfCommunityMemberships({ ...params2 }),
|
|
3217
3245
|
params,
|
|
3218
3246
|
{
|
|
3219
|
-
...options
|
|
3220
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
3247
|
+
...options
|
|
3221
3248
|
}
|
|
3222
3249
|
);
|
|
3223
3250
|
};
|
|
@@ -3235,21 +3262,21 @@ var SET_SELF_COMMUNITY_MEMBERSHIP_QUERY_DATA = (client, keyParams, response, bas
|
|
|
3235
3262
|
};
|
|
3236
3263
|
var GetSelfCommunityMembership = async ({
|
|
3237
3264
|
communityId,
|
|
3238
|
-
|
|
3265
|
+
clientApiParams
|
|
3239
3266
|
}) => {
|
|
3267
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3240
3268
|
const { data } = await clientApi.get(
|
|
3241
3269
|
`/self/communities/${communityId}/membership`
|
|
3242
3270
|
);
|
|
3243
3271
|
return data;
|
|
3244
3272
|
};
|
|
3245
3273
|
var useGetSelfCommunityMembership = (communityId, options = {}) => {
|
|
3246
|
-
const { token } = useConnectedXM();
|
|
3247
3274
|
return useConnectedSingleQuery(
|
|
3248
3275
|
SELF_COMMUNITY_MEMBERSHIP_QUERY_KEY(communityId),
|
|
3249
3276
|
(params) => GetSelfCommunityMembership({ communityId, ...params }),
|
|
3250
3277
|
{
|
|
3251
3278
|
...options,
|
|
3252
|
-
enabled: !!
|
|
3279
|
+
enabled: !!communityId && (options?.enabled ?? true)
|
|
3253
3280
|
}
|
|
3254
3281
|
);
|
|
3255
3282
|
};
|
|
@@ -3265,9 +3292,10 @@ var GetSelfDelegateOf = async ({
|
|
|
3265
3292
|
orderBy,
|
|
3266
3293
|
search,
|
|
3267
3294
|
queryClient,
|
|
3268
|
-
|
|
3295
|
+
clientApiParams,
|
|
3269
3296
|
locale
|
|
3270
3297
|
}) => {
|
|
3298
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3271
3299
|
const { data } = await clientApi.get(`/self/delegateof`, {
|
|
3272
3300
|
params: {
|
|
3273
3301
|
page: pageParam || void 0,
|
|
@@ -3287,14 +3315,12 @@ var GetSelfDelegateOf = async ({
|
|
|
3287
3315
|
return data;
|
|
3288
3316
|
};
|
|
3289
3317
|
var useGetSelfDelegateOf = (params = {}, options = {}) => {
|
|
3290
|
-
const { token } = useConnectedXM();
|
|
3291
3318
|
return useConnectedInfiniteQuery(
|
|
3292
3319
|
SELF_DELEGATE_OF_QUERY_KEY(),
|
|
3293
3320
|
(params2) => GetSelfDelegateOf({ ...params2 }),
|
|
3294
3321
|
params,
|
|
3295
3322
|
{
|
|
3296
|
-
...options
|
|
3297
|
-
enabled: !!token
|
|
3323
|
+
...options
|
|
3298
3324
|
}
|
|
3299
3325
|
);
|
|
3300
3326
|
};
|
|
@@ -3310,9 +3336,10 @@ var GetSelfDelegates = async ({
|
|
|
3310
3336
|
orderBy,
|
|
3311
3337
|
search,
|
|
3312
3338
|
queryClient,
|
|
3313
|
-
|
|
3339
|
+
clientApiParams,
|
|
3314
3340
|
locale
|
|
3315
3341
|
}) => {
|
|
3342
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3316
3343
|
const { data } = await clientApi.get(`/self/delegates`, {
|
|
3317
3344
|
params: {
|
|
3318
3345
|
page: pageParam || void 0,
|
|
@@ -3332,14 +3359,12 @@ var GetSelfDelegates = async ({
|
|
|
3332
3359
|
return data;
|
|
3333
3360
|
};
|
|
3334
3361
|
var useGetSelfDelegates = (params = {}, options = {}) => {
|
|
3335
|
-
const { token } = useConnectedXM();
|
|
3336
3362
|
return useConnectedInfiniteQuery(
|
|
3337
3363
|
SELF_DELEGATES_QUERY_KEY(),
|
|
3338
3364
|
(params2) => GetSelfDelegates(params2),
|
|
3339
3365
|
params,
|
|
3340
3366
|
{
|
|
3341
|
-
...options
|
|
3342
|
-
enabled: !!token
|
|
3367
|
+
...options
|
|
3343
3368
|
}
|
|
3344
3369
|
);
|
|
3345
3370
|
};
|
|
@@ -3357,9 +3382,10 @@ var GetSelfEventListings = async ({
|
|
|
3357
3382
|
search,
|
|
3358
3383
|
past,
|
|
3359
3384
|
queryClient,
|
|
3360
|
-
|
|
3385
|
+
clientApiParams,
|
|
3361
3386
|
locale
|
|
3362
3387
|
}) => {
|
|
3388
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3363
3389
|
const { data } = await clientApi.get(`/self/events/listings`, {
|
|
3364
3390
|
params: {
|
|
3365
3391
|
page: pageParam || void 0,
|
|
@@ -3380,14 +3406,12 @@ var GetSelfEventListings = async ({
|
|
|
3380
3406
|
return data;
|
|
3381
3407
|
};
|
|
3382
3408
|
var useGetSelfEventListings = (past = false, params = {}, options = {}) => {
|
|
3383
|
-
const { token } = useConnectedXM();
|
|
3384
3409
|
return useConnectedInfiniteQuery(
|
|
3385
3410
|
SELF_EVENT_LISTINGS_QUERY_KEY(past),
|
|
3386
3411
|
(params2) => GetSelfEventListings({ past, ...params2 }),
|
|
3387
3412
|
params,
|
|
3388
3413
|
{
|
|
3389
|
-
...options
|
|
3390
|
-
enabled: !!token
|
|
3414
|
+
...options
|
|
3391
3415
|
}
|
|
3392
3416
|
);
|
|
3393
3417
|
};
|
|
@@ -3408,19 +3432,19 @@ var SET_SELF_EVENT_LISTING_QUERY_DATA = (client, keyParams, response, baseKeys =
|
|
|
3408
3432
|
};
|
|
3409
3433
|
var GetSelfEventListing = async ({
|
|
3410
3434
|
eventId,
|
|
3411
|
-
|
|
3435
|
+
clientApiParams
|
|
3412
3436
|
}) => {
|
|
3437
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3413
3438
|
const { data } = await clientApi.get(`self/events/listings/${eventId}`);
|
|
3414
3439
|
return data;
|
|
3415
3440
|
};
|
|
3416
3441
|
var useGetSelfEventListing = (eventId, options = {}) => {
|
|
3417
|
-
const { token } = useConnectedXM();
|
|
3418
3442
|
return useConnectedSingleQuery(
|
|
3419
3443
|
SELF_EVENT_LISTING_QUERY_KEY(eventId),
|
|
3420
3444
|
(params) => GetSelfEventListing({ eventId, ...params }),
|
|
3421
3445
|
{
|
|
3422
3446
|
...options,
|
|
3423
|
-
enabled: !!
|
|
3447
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
3424
3448
|
}
|
|
3425
3449
|
);
|
|
3426
3450
|
};
|
|
@@ -3438,8 +3462,9 @@ var GetSelfEventListingRegistrations = async ({
|
|
|
3438
3462
|
orderBy,
|
|
3439
3463
|
search,
|
|
3440
3464
|
checkedIn,
|
|
3441
|
-
|
|
3465
|
+
clientApiParams
|
|
3442
3466
|
}) => {
|
|
3467
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3443
3468
|
const { data } = await clientApi.get(
|
|
3444
3469
|
`/self/events/listings/${eventId}/registrations`,
|
|
3445
3470
|
{
|
|
@@ -3455,14 +3480,13 @@ var GetSelfEventListingRegistrations = async ({
|
|
|
3455
3480
|
return data;
|
|
3456
3481
|
};
|
|
3457
3482
|
var useGetSelfEventListingsRegistrations = (eventId, checkedIn = false, params = {}, options = {}) => {
|
|
3458
|
-
const { token } = useConnectedXM();
|
|
3459
3483
|
return useConnectedInfiniteQuery(
|
|
3460
3484
|
SELF_EVENT_LISTING_REGISTRATIONS_QUERY_KEY(eventId, checkedIn),
|
|
3461
3485
|
(params2) => GetSelfEventListingRegistrations({ eventId, checkedIn, ...params2 }),
|
|
3462
3486
|
params,
|
|
3463
3487
|
{
|
|
3464
3488
|
...options,
|
|
3465
|
-
enabled: !!
|
|
3489
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
3466
3490
|
}
|
|
3467
3491
|
);
|
|
3468
3492
|
};
|
|
@@ -3480,9 +3504,10 @@ var GetSelfEvents = async ({
|
|
|
3480
3504
|
search,
|
|
3481
3505
|
past,
|
|
3482
3506
|
queryClient,
|
|
3483
|
-
|
|
3507
|
+
clientApiParams,
|
|
3484
3508
|
locale
|
|
3485
3509
|
}) => {
|
|
3510
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3486
3511
|
const { data } = await clientApi.get(`/self/events`, {
|
|
3487
3512
|
params: {
|
|
3488
3513
|
page: pageParam || void 0,
|
|
@@ -3503,14 +3528,13 @@ var GetSelfEvents = async ({
|
|
|
3503
3528
|
return data;
|
|
3504
3529
|
};
|
|
3505
3530
|
var useGetSelfEvents = (past = false, params = {}, options = {}) => {
|
|
3506
|
-
const { token } = useConnectedXM();
|
|
3507
3531
|
return useConnectedInfiniteQuery(
|
|
3508
3532
|
SELF_EVENTS_QUERY_KEY(past),
|
|
3509
3533
|
(params2) => GetSelfEvents({ ...params2, past }),
|
|
3510
3534
|
params,
|
|
3511
3535
|
{
|
|
3512
3536
|
...options,
|
|
3513
|
-
enabled:
|
|
3537
|
+
enabled: options.enabled ?? true
|
|
3514
3538
|
}
|
|
3515
3539
|
);
|
|
3516
3540
|
};
|
|
@@ -3528,9 +3552,10 @@ var GetSelfEventSessions = async ({
|
|
|
3528
3552
|
orderBy,
|
|
3529
3553
|
search,
|
|
3530
3554
|
queryClient,
|
|
3531
|
-
|
|
3555
|
+
clientApiParams,
|
|
3532
3556
|
locale
|
|
3533
3557
|
}) => {
|
|
3558
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3534
3559
|
const { data } = await clientApi.get(`/self/events/${eventId}/sessions`, {
|
|
3535
3560
|
params: {
|
|
3536
3561
|
eventId: eventId || void 0,
|
|
@@ -3551,14 +3576,13 @@ var GetSelfEventSessions = async ({
|
|
|
3551
3576
|
return data;
|
|
3552
3577
|
};
|
|
3553
3578
|
var useGetSelfEventSessions = (eventId, params = {}, options = {}) => {
|
|
3554
|
-
const { token } = useConnectedXM();
|
|
3555
3579
|
return useConnectedInfiniteQuery(
|
|
3556
3580
|
SELF_EVENT_SESSIONS_QUERY_KEY(eventId),
|
|
3557
3581
|
(params2) => GetSelfEventSessions({ eventId, ...params2 }),
|
|
3558
3582
|
params,
|
|
3559
3583
|
{
|
|
3560
3584
|
...options,
|
|
3561
|
-
enabled: !!
|
|
3585
|
+
enabled: !!eventId && (options.enabled ?? true)
|
|
3562
3586
|
}
|
|
3563
3587
|
);
|
|
3564
3588
|
};
|
|
@@ -3574,9 +3598,10 @@ var GetSelfFeed = async ({
|
|
|
3574
3598
|
orderBy,
|
|
3575
3599
|
search,
|
|
3576
3600
|
queryClient,
|
|
3577
|
-
|
|
3601
|
+
clientApiParams,
|
|
3578
3602
|
locale
|
|
3579
3603
|
}) => {
|
|
3604
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3580
3605
|
const { data } = await clientApi.get(`/self/activities/feed`, {
|
|
3581
3606
|
params: {
|
|
3582
3607
|
page: pageParam || void 0,
|
|
@@ -3596,14 +3621,12 @@ var GetSelfFeed = async ({
|
|
|
3596
3621
|
return data;
|
|
3597
3622
|
};
|
|
3598
3623
|
var useGetSelfFeed = (params = {}, options = {}) => {
|
|
3599
|
-
const { token } = useConnectedXM();
|
|
3600
3624
|
return useConnectedInfiniteQuery(
|
|
3601
3625
|
SELF_FEED_QUERY_KEY(),
|
|
3602
3626
|
(params2) => GetSelfFeed(params2),
|
|
3603
3627
|
params,
|
|
3604
3628
|
{
|
|
3605
|
-
...options
|
|
3606
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
3629
|
+
...options
|
|
3607
3630
|
}
|
|
3608
3631
|
);
|
|
3609
3632
|
};
|
|
@@ -3618,8 +3641,9 @@ var GetSelfInterests = async ({
|
|
|
3618
3641
|
pageSize,
|
|
3619
3642
|
orderBy,
|
|
3620
3643
|
search,
|
|
3621
|
-
|
|
3644
|
+
clientApiParams
|
|
3622
3645
|
}) => {
|
|
3646
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3623
3647
|
const { data } = await clientApi.get(`/self/interests`, {
|
|
3624
3648
|
params: {
|
|
3625
3649
|
page: pageParam || void 0,
|
|
@@ -3631,14 +3655,12 @@ var GetSelfInterests = async ({
|
|
|
3631
3655
|
return data;
|
|
3632
3656
|
};
|
|
3633
3657
|
var useGetSelfInterests = (params = {}, options = {}) => {
|
|
3634
|
-
const { token } = useConnectedXM();
|
|
3635
3658
|
return useConnectedInfiniteQuery(
|
|
3636
3659
|
SELF_INTERESTS_QUERY_KEY(),
|
|
3637
3660
|
(params2) => GetSelfInterests({ ...params2 }),
|
|
3638
3661
|
params,
|
|
3639
3662
|
{
|
|
3640
|
-
...options
|
|
3641
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
3663
|
+
...options
|
|
3642
3664
|
}
|
|
3643
3665
|
);
|
|
3644
3666
|
};
|
|
@@ -3649,19 +3671,18 @@ var SELF_PREFERENCES_QUERY_KEY = () => [
|
|
|
3649
3671
|
"PREFERENCES"
|
|
3650
3672
|
];
|
|
3651
3673
|
var GetSelfNotificationPreferences = async ({
|
|
3652
|
-
|
|
3674
|
+
clientApiParams
|
|
3653
3675
|
}) => {
|
|
3676
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3654
3677
|
const { data } = await clientApi.get(`/self/notificationPreferences`);
|
|
3655
3678
|
return data;
|
|
3656
3679
|
};
|
|
3657
3680
|
var useGetSelfNotificationPreferences = (options = {}) => {
|
|
3658
|
-
const { token } = useConnectedXM();
|
|
3659
3681
|
return useConnectedSingleQuery(
|
|
3660
3682
|
SELF_PREFERENCES_QUERY_KEY(),
|
|
3661
3683
|
(params) => GetSelfNotificationPreferences({ ...params }),
|
|
3662
3684
|
{
|
|
3663
|
-
...options
|
|
3664
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
3685
|
+
...options
|
|
3665
3686
|
}
|
|
3666
3687
|
);
|
|
3667
3688
|
};
|
|
@@ -3678,8 +3699,9 @@ var GetSelfNotifications = async ({
|
|
|
3678
3699
|
orderBy,
|
|
3679
3700
|
search,
|
|
3680
3701
|
filters,
|
|
3681
|
-
|
|
3702
|
+
clientApiParams
|
|
3682
3703
|
}) => {
|
|
3704
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3683
3705
|
const { data } = await clientApi.get(`/self/notifications`, {
|
|
3684
3706
|
params: {
|
|
3685
3707
|
page: pageParam || void 0,
|
|
@@ -3692,15 +3714,13 @@ var GetSelfNotifications = async ({
|
|
|
3692
3714
|
return data;
|
|
3693
3715
|
};
|
|
3694
3716
|
var useGetSelfNotifications = (filters = "", params = {}, options = {}) => {
|
|
3695
|
-
const { token } = useConnectedXM();
|
|
3696
3717
|
return useConnectedInfiniteQuery(
|
|
3697
3718
|
SELF_NOTIFICATIONS_QUERY_KEY(filters),
|
|
3698
3719
|
(params2) => GetSelfNotifications({ ...params2, filters }),
|
|
3699
3720
|
params,
|
|
3700
3721
|
{
|
|
3701
3722
|
staleTime: 0,
|
|
3702
|
-
...options
|
|
3703
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
3723
|
+
...options
|
|
3704
3724
|
}
|
|
3705
3725
|
);
|
|
3706
3726
|
};
|
|
@@ -3709,8 +3729,9 @@ var useGetSelfNotifications = (filters = "", params = {}, options = {}) => {
|
|
|
3709
3729
|
var SELF_NOTIFICATION_COUNT_QUERY_KEY = (filters) => [...SELF_QUERY_KEY(), "NOTIFICATION_COUNT", filters];
|
|
3710
3730
|
var GetSelfNewNotificationsCount = async ({
|
|
3711
3731
|
filters,
|
|
3712
|
-
|
|
3732
|
+
clientApiParams
|
|
3713
3733
|
}) => {
|
|
3734
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3714
3735
|
const { data } = await clientApi.get(`/self/notifications/count`, {
|
|
3715
3736
|
params: {
|
|
3716
3737
|
filters
|
|
@@ -3719,13 +3740,11 @@ var GetSelfNewNotificationsCount = async ({
|
|
|
3719
3740
|
return data;
|
|
3720
3741
|
};
|
|
3721
3742
|
var useGetSelfNewNotificationsCount = (filters = "", options = {}) => {
|
|
3722
|
-
const { token } = useConnectedXM();
|
|
3723
3743
|
return useConnectedSingleQuery_default(
|
|
3724
3744
|
SELF_NOTIFICATION_COUNT_QUERY_KEY(filters),
|
|
3725
3745
|
(params) => GetSelfNewNotificationsCount({ filters, ...params }),
|
|
3726
3746
|
{
|
|
3727
|
-
...options
|
|
3728
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
3747
|
+
...options
|
|
3729
3748
|
}
|
|
3730
3749
|
);
|
|
3731
3750
|
};
|
|
@@ -3741,9 +3760,10 @@ var GetSelfPushDevices = async ({
|
|
|
3741
3760
|
orderBy,
|
|
3742
3761
|
search,
|
|
3743
3762
|
queryClient,
|
|
3744
|
-
|
|
3763
|
+
clientApiParams,
|
|
3745
3764
|
locale
|
|
3746
3765
|
}) => {
|
|
3766
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3747
3767
|
const { data } = await clientApi.get(`/self/push-devices`, {
|
|
3748
3768
|
params: {
|
|
3749
3769
|
page: pageParam || void 0,
|
|
@@ -3763,14 +3783,12 @@ var GetSelfPushDevices = async ({
|
|
|
3763
3783
|
return data;
|
|
3764
3784
|
};
|
|
3765
3785
|
var useGetSelfPushDevices = (params = {}, options = {}) => {
|
|
3766
|
-
const { token } = useConnectedXM();
|
|
3767
3786
|
return useConnectedInfiniteQuery(
|
|
3768
3787
|
SELF_PUSH_DEVICES_QUERY_KEY(),
|
|
3769
3788
|
(params2) => GetSelfPushDevices({ ...params2 }),
|
|
3770
3789
|
params,
|
|
3771
3790
|
{
|
|
3772
|
-
...options
|
|
3773
|
-
enabled: !!token
|
|
3791
|
+
...options
|
|
3774
3792
|
}
|
|
3775
3793
|
);
|
|
3776
3794
|
};
|
|
@@ -3791,19 +3809,19 @@ var SET_PUSH_DEVICE_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]
|
|
|
3791
3809
|
};
|
|
3792
3810
|
var GetSelfPushDevice = async ({
|
|
3793
3811
|
pushDeviceId,
|
|
3794
|
-
|
|
3812
|
+
clientApiParams
|
|
3795
3813
|
}) => {
|
|
3814
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3796
3815
|
const { data } = await clientApi.get(`/self/push-devices/${pushDeviceId}`);
|
|
3797
3816
|
return data;
|
|
3798
3817
|
};
|
|
3799
3818
|
var useGetSelfPushDevice = (pushDeviceId, options = {}) => {
|
|
3800
|
-
const { token } = useConnectedXM();
|
|
3801
3819
|
return useConnectedSingleQuery(
|
|
3802
3820
|
SELF_PUSH_DEVICE_QUERY_KEY(pushDeviceId),
|
|
3803
3821
|
(params) => GetSelfPushDevice({ pushDeviceId, ...params }),
|
|
3804
3822
|
{
|
|
3805
3823
|
...options,
|
|
3806
|
-
enabled: !!
|
|
3824
|
+
enabled: !!pushDeviceId && (options?.enabled ?? true)
|
|
3807
3825
|
}
|
|
3808
3826
|
);
|
|
3809
3827
|
};
|
|
@@ -3823,9 +3841,10 @@ var GetSelfRecommendations = async ({
|
|
|
3823
3841
|
eventId,
|
|
3824
3842
|
type,
|
|
3825
3843
|
queryClient,
|
|
3826
|
-
|
|
3844
|
+
clientApiParams,
|
|
3827
3845
|
locale
|
|
3828
3846
|
}) => {
|
|
3847
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3829
3848
|
const { data } = await clientApi.get(`/self/recommendations`, {
|
|
3830
3849
|
params: {
|
|
3831
3850
|
page: pageParam || void 0,
|
|
@@ -3847,14 +3866,12 @@ var GetSelfRecommendations = async ({
|
|
|
3847
3866
|
return data;
|
|
3848
3867
|
};
|
|
3849
3868
|
var useGetSelfRecommendations = (type, eventId = "", params = {}, options = {}) => {
|
|
3850
|
-
const { token } = useConnectedXM();
|
|
3851
3869
|
return useConnectedInfiniteQuery(
|
|
3852
3870
|
SELF_RECOMMENDATIONS_QUERY_KEY(type, eventId),
|
|
3853
3871
|
(params2) => GetSelfRecommendations({ ...params2, eventId, type }),
|
|
3854
3872
|
params,
|
|
3855
3873
|
{
|
|
3856
|
-
...options
|
|
3857
|
-
enabled: !!token
|
|
3874
|
+
...options
|
|
3858
3875
|
}
|
|
3859
3876
|
);
|
|
3860
3877
|
};
|
|
@@ -3869,8 +3886,9 @@ var GetSelfTransfers = async ({
|
|
|
3869
3886
|
pageSize,
|
|
3870
3887
|
orderBy,
|
|
3871
3888
|
search,
|
|
3872
|
-
|
|
3889
|
+
clientApiParams
|
|
3873
3890
|
}) => {
|
|
3891
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3874
3892
|
const { data } = await clientApi.get(`/self/transfers`, {
|
|
3875
3893
|
params: {
|
|
3876
3894
|
page: pageParam || void 0,
|
|
@@ -3882,14 +3900,12 @@ var GetSelfTransfers = async ({
|
|
|
3882
3900
|
return data;
|
|
3883
3901
|
};
|
|
3884
3902
|
var useGetSelfTransfers = (params = {}, options = {}) => {
|
|
3885
|
-
const { token } = useConnectedXM();
|
|
3886
3903
|
return useConnectedInfiniteQuery(
|
|
3887
3904
|
SELF_TRANSFERS_QUERY_KEY(),
|
|
3888
3905
|
(params2) => GetSelfTransfers({ ...params2 }),
|
|
3889
3906
|
params,
|
|
3890
3907
|
{
|
|
3891
|
-
...options
|
|
3892
|
-
enabled: !!token && (options?.enabled ?? true)
|
|
3908
|
+
...options
|
|
3893
3909
|
}
|
|
3894
3910
|
);
|
|
3895
3911
|
};
|
|
@@ -3898,19 +3914,19 @@ var useGetSelfTransfers = (params = {}, options = {}) => {
|
|
|
3898
3914
|
var SELF_PENDING_TRANSFER_QUERY_KEY = (transferId) => [...SELF_TRANSFERS_QUERY_KEY(), transferId];
|
|
3899
3915
|
var GetSelfTransfer = async ({
|
|
3900
3916
|
transferId,
|
|
3901
|
-
|
|
3917
|
+
clientApiParams
|
|
3902
3918
|
}) => {
|
|
3919
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3903
3920
|
const { data } = await clientApi.get(`/self/transfers/${transferId}`);
|
|
3904
3921
|
return data;
|
|
3905
3922
|
};
|
|
3906
3923
|
var useGetSelfTransfer = (transferId = "", options = {}) => {
|
|
3907
|
-
const { token } = useConnectedXM();
|
|
3908
3924
|
return useConnectedSingleQuery(
|
|
3909
3925
|
SELF_PENDING_TRANSFER_QUERY_KEY(transferId),
|
|
3910
3926
|
(params) => GetSelfTransfer({ ...params, transferId }),
|
|
3911
3927
|
{
|
|
3912
3928
|
...options,
|
|
3913
|
-
enabled: !!
|
|
3929
|
+
enabled: !!transferId && (options?.enabled ?? true)
|
|
3914
3930
|
}
|
|
3915
3931
|
);
|
|
3916
3932
|
};
|
|
@@ -3932,9 +3948,10 @@ var GetSeriesList = async ({
|
|
|
3932
3948
|
orderBy,
|
|
3933
3949
|
search,
|
|
3934
3950
|
queryClient,
|
|
3935
|
-
|
|
3951
|
+
clientApiParams,
|
|
3936
3952
|
locale
|
|
3937
3953
|
}) => {
|
|
3954
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3938
3955
|
const { data } = await clientApi.get(`/series`, {
|
|
3939
3956
|
params: {
|
|
3940
3957
|
page: pageParam || void 0,
|
|
@@ -3975,12 +3992,13 @@ var SET_SERIES_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) =>
|
|
|
3975
3992
|
};
|
|
3976
3993
|
var GetSeries = async ({
|
|
3977
3994
|
seriesId,
|
|
3978
|
-
|
|
3995
|
+
clientApiParams
|
|
3979
3996
|
}) => {
|
|
3997
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3980
3998
|
const { data } = await clientApi.get(`/series/${seriesId}`);
|
|
3981
3999
|
return data;
|
|
3982
4000
|
};
|
|
3983
|
-
var useGetSeries = (seriesId, options = {}) => {
|
|
4001
|
+
var useGetSeries = (seriesId = "", options = {}) => {
|
|
3984
4002
|
return useConnectedSingleQuery(
|
|
3985
4003
|
SERIES_QUERY_KEY(seriesId),
|
|
3986
4004
|
(params) => GetSeries({ seriesId, ...params }),
|
|
@@ -4012,9 +4030,10 @@ var GetSeriesEvents = async ({
|
|
|
4012
4030
|
orderBy,
|
|
4013
4031
|
search,
|
|
4014
4032
|
queryClient,
|
|
4015
|
-
|
|
4033
|
+
clientApiParams,
|
|
4016
4034
|
locale
|
|
4017
4035
|
}) => {
|
|
4036
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4018
4037
|
const { data } = await clientApi.get(`/series/${seriesId}/events`, {
|
|
4019
4038
|
params: {
|
|
4020
4039
|
page: pageParam || void 0,
|
|
@@ -4033,7 +4052,7 @@ var GetSeriesEvents = async ({
|
|
|
4033
4052
|
}
|
|
4034
4053
|
return data;
|
|
4035
4054
|
};
|
|
4036
|
-
var useGetSeriesEvents = (seriesId, params = {}, options = {}) => {
|
|
4055
|
+
var useGetSeriesEvents = (seriesId = "", params = {}, options = {}) => {
|
|
4037
4056
|
return useConnectedInfiniteQuery(
|
|
4038
4057
|
SERIES_EVENTS_QUERY_KEY(seriesId),
|
|
4039
4058
|
(params2) => GetSeriesEvents({ seriesId, ...params2 }),
|
|
@@ -4062,9 +4081,10 @@ var GetLevels = async ({
|
|
|
4062
4081
|
orderBy,
|
|
4063
4082
|
search,
|
|
4064
4083
|
queryClient,
|
|
4065
|
-
|
|
4084
|
+
clientApiParams,
|
|
4066
4085
|
locale
|
|
4067
4086
|
}) => {
|
|
4087
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4068
4088
|
const { data } = await clientApi.get(`/levels`, {
|
|
4069
4089
|
params: {
|
|
4070
4090
|
page: pageParam || void 0,
|
|
@@ -4105,12 +4125,13 @@ var SET_LEVEL_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
|
4105
4125
|
};
|
|
4106
4126
|
var GetLevel = async ({
|
|
4107
4127
|
levelId,
|
|
4108
|
-
|
|
4128
|
+
clientApiParams
|
|
4109
4129
|
}) => {
|
|
4130
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4110
4131
|
const { data } = await clientApi.get(`/levels/${levelId}`, {});
|
|
4111
4132
|
return data;
|
|
4112
4133
|
};
|
|
4113
|
-
var useGetLevel = (levelId, options = {}) => {
|
|
4134
|
+
var useGetLevel = (levelId = "", options = {}) => {
|
|
4114
4135
|
return useConnectedSingleQuery_default(
|
|
4115
4136
|
LEVEL_QUERY_KEY(levelId),
|
|
4116
4137
|
(params) => GetLevel({ levelId, ...params }),
|
|
@@ -4142,9 +4163,10 @@ var GetLevelSponsors = async ({
|
|
|
4142
4163
|
orderBy,
|
|
4143
4164
|
search,
|
|
4144
4165
|
queryClient,
|
|
4145
|
-
|
|
4166
|
+
clientApiParams,
|
|
4146
4167
|
locale
|
|
4147
4168
|
}) => {
|
|
4169
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4148
4170
|
const { data } = await clientApi.get(`/levels/${levelId}/accounts`, {
|
|
4149
4171
|
params: {
|
|
4150
4172
|
page: pageParam || void 0,
|
|
@@ -4163,7 +4185,7 @@ var GetLevelSponsors = async ({
|
|
|
4163
4185
|
}
|
|
4164
4186
|
return data;
|
|
4165
4187
|
};
|
|
4166
|
-
var useGetLevelSponsors = (levelId, params = {}, options = {}) => {
|
|
4188
|
+
var useGetLevelSponsors = (levelId = "", params = {}, options = {}) => {
|
|
4167
4189
|
return useConnectedInfiniteQuery(
|
|
4168
4190
|
LEVEL_SPONSORS_QUERY_KEY(levelId),
|
|
4169
4191
|
(params2) => GetLevelSponsors({ levelId, ...params2 }),
|
|
@@ -4178,18 +4200,23 @@ var useGetLevelSponsors = (levelId, params = {}, options = {}) => {
|
|
|
4178
4200
|
// src/mutations/useConnectedMutation.ts
|
|
4179
4201
|
import {
|
|
4180
4202
|
useMutation,
|
|
4181
|
-
useQueryClient
|
|
4203
|
+
useQueryClient
|
|
4182
4204
|
} from "@tanstack/react-query";
|
|
4183
4205
|
var useConnectedMutation = (mutation, params, options) => {
|
|
4184
|
-
const { locale } = useConnectedXM();
|
|
4185
|
-
const queryClient =
|
|
4186
|
-
const clientApi = useClientAPI();
|
|
4206
|
+
const { locale, apiUrl, getToken, organizationId, getExecuteAs } = useConnectedXM();
|
|
4207
|
+
const queryClient = useQueryClient();
|
|
4187
4208
|
return useMutation({
|
|
4188
4209
|
mutationFn: (data) => mutation({
|
|
4189
|
-
locale: params?.locale || locale,
|
|
4190
|
-
...data,
|
|
4191
4210
|
queryClient,
|
|
4192
|
-
|
|
4211
|
+
locale: params?.locale || locale,
|
|
4212
|
+
clientApiParams: {
|
|
4213
|
+
apiUrl,
|
|
4214
|
+
getToken,
|
|
4215
|
+
organizationId,
|
|
4216
|
+
getExecuteAs,
|
|
4217
|
+
locale: params?.locale || locale
|
|
4218
|
+
},
|
|
4219
|
+
...data
|
|
4193
4220
|
}),
|
|
4194
4221
|
...options
|
|
4195
4222
|
});
|
|
@@ -4199,10 +4226,11 @@ var useConnectedMutation_default = useConnectedMutation;
|
|
|
4199
4226
|
// src/mutations/accounts/useFollowAccount.ts
|
|
4200
4227
|
var FollowAccount = async ({
|
|
4201
4228
|
accountId,
|
|
4202
|
-
|
|
4229
|
+
clientApiParams,
|
|
4203
4230
|
queryClient,
|
|
4204
4231
|
locale = "en"
|
|
4205
4232
|
}) => {
|
|
4233
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4206
4234
|
const { data } = await clientApi.post(
|
|
4207
4235
|
`/accounts/${accountId}/follow`
|
|
4208
4236
|
);
|
|
@@ -4222,10 +4250,11 @@ var useFollowAccount = (params = {}, options = {}) => {
|
|
|
4222
4250
|
// src/mutations/accounts/useUnfollowAccount.ts
|
|
4223
4251
|
var UnfollowAccount = async ({
|
|
4224
4252
|
accountId,
|
|
4225
|
-
|
|
4253
|
+
clientApiParams,
|
|
4226
4254
|
queryClient,
|
|
4227
4255
|
locale = "en"
|
|
4228
4256
|
}) => {
|
|
4257
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4229
4258
|
const { data } = await clientApi.post(
|
|
4230
4259
|
`/accounts/${accountId}/unfollow`
|
|
4231
4260
|
);
|
|
@@ -4300,7 +4329,7 @@ var UpdateResharesInfinite = (increment, queryClient, KEY, activityId) => {
|
|
|
4300
4329
|
// src/mutations/activities/useDeleteReshare.ts
|
|
4301
4330
|
var DeleteReshare = async ({
|
|
4302
4331
|
activityId,
|
|
4303
|
-
|
|
4332
|
+
clientApiParams,
|
|
4304
4333
|
queryClient
|
|
4305
4334
|
}) => {
|
|
4306
4335
|
if (queryClient) {
|
|
@@ -4312,6 +4341,7 @@ var DeleteReshare = async ({
|
|
|
4312
4341
|
activityId
|
|
4313
4342
|
);
|
|
4314
4343
|
}
|
|
4344
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4315
4345
|
const { data } = await clientApi.delete(
|
|
4316
4346
|
`/self/activities/${activityId}/reshares`
|
|
4317
4347
|
);
|
|
@@ -4379,13 +4409,14 @@ var UpdateLikesInfinite = (increment, queryClient, KEY, activityId) => {
|
|
|
4379
4409
|
// src/mutations/activities/useLikeActivity.ts
|
|
4380
4410
|
var LikeActivity = async ({
|
|
4381
4411
|
activityId,
|
|
4382
|
-
|
|
4412
|
+
clientApiParams,
|
|
4383
4413
|
queryClient
|
|
4384
4414
|
}) => {
|
|
4385
4415
|
if (queryClient) {
|
|
4386
4416
|
UpdateLikesSingle(true, queryClient, ACTIVITY_QUERY_KEY(activityId));
|
|
4387
4417
|
UpdateLikesInfinite(true, queryClient, ACTIVITIES_QUERY_KEY(), activityId);
|
|
4388
4418
|
}
|
|
4419
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4389
4420
|
const { data } = await clientApi.post(
|
|
4390
4421
|
`/self/activities/${activityId}/likes`
|
|
4391
4422
|
);
|
|
@@ -4399,7 +4430,7 @@ var useLikeActivity = (params = {}, options = {}) => {
|
|
|
4399
4430
|
var ReshareActivity = async ({
|
|
4400
4431
|
activityId,
|
|
4401
4432
|
queryClient,
|
|
4402
|
-
|
|
4433
|
+
clientApiParams
|
|
4403
4434
|
}) => {
|
|
4404
4435
|
if (queryClient) {
|
|
4405
4436
|
UpdateResharesSingle(true, queryClient, ACTIVITY_QUERY_KEY(activityId));
|
|
@@ -4410,6 +4441,7 @@ var ReshareActivity = async ({
|
|
|
4410
4441
|
activityId
|
|
4411
4442
|
);
|
|
4412
4443
|
}
|
|
4444
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4413
4445
|
const { data } = await clientApi.post(
|
|
4414
4446
|
`/self/activities/${activityId}/reshares`,
|
|
4415
4447
|
{
|
|
@@ -4425,13 +4457,14 @@ var useReshareActivity = (params = {}, options = {}) => {
|
|
|
4425
4457
|
// src/mutations/activities/useUnlikeActivity.ts
|
|
4426
4458
|
var UnlikeActivity = async ({
|
|
4427
4459
|
activityId,
|
|
4428
|
-
|
|
4460
|
+
clientApiParams,
|
|
4429
4461
|
queryClient
|
|
4430
4462
|
}) => {
|
|
4431
4463
|
if (queryClient) {
|
|
4432
4464
|
UpdateLikesSingle(false, queryClient, ACTIVITY_QUERY_KEY(activityId));
|
|
4433
4465
|
UpdateLikesInfinite(false, queryClient, ACTIVITIES_QUERY_KEY(), activityId);
|
|
4434
4466
|
}
|
|
4467
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4435
4468
|
const { data } = await clientApi.delete(
|
|
4436
4469
|
`/self/activities/${activityId}/likes`
|
|
4437
4470
|
);
|
|
@@ -4445,9 +4478,10 @@ var useUnlikeActivity = (params = {}, options = {}) => {
|
|
|
4445
4478
|
var AddCommunityEvent = async ({
|
|
4446
4479
|
communityId,
|
|
4447
4480
|
eventId,
|
|
4448
|
-
|
|
4481
|
+
clientApiParams,
|
|
4449
4482
|
queryClient
|
|
4450
4483
|
}) => {
|
|
4484
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4451
4485
|
const { data } = await clientApi.post(
|
|
4452
4486
|
`/communityModerator/${communityId}/events/${eventId}`
|
|
4453
4487
|
);
|
|
@@ -4475,9 +4509,10 @@ var CreateCommunityAnnouncement = async ({
|
|
|
4475
4509
|
html,
|
|
4476
4510
|
email,
|
|
4477
4511
|
push,
|
|
4478
|
-
|
|
4512
|
+
clientApiParams,
|
|
4479
4513
|
queryClient
|
|
4480
4514
|
}) => {
|
|
4515
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4481
4516
|
const { data } = await clientApi.post(
|
|
4482
4517
|
`/communityModerator/${communityId}/announcements`,
|
|
4483
4518
|
{
|
|
@@ -4504,9 +4539,10 @@ var useCreateCommunityAnnouncement = (params = {}, options = {}) => {
|
|
|
4504
4539
|
var RemoveCommunityEvent = async ({
|
|
4505
4540
|
communityId,
|
|
4506
4541
|
eventId,
|
|
4507
|
-
|
|
4542
|
+
clientApiParams,
|
|
4508
4543
|
queryClient
|
|
4509
4544
|
}) => {
|
|
4545
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4510
4546
|
const { data } = await clientApi.delete(
|
|
4511
4547
|
`/communityModerator/${communityId}/events/${eventId}`
|
|
4512
4548
|
);
|
|
@@ -4533,10 +4569,11 @@ var UpdateCommunity = async ({
|
|
|
4533
4569
|
description,
|
|
4534
4570
|
externalUrl,
|
|
4535
4571
|
base64,
|
|
4536
|
-
|
|
4572
|
+
clientApiParams,
|
|
4537
4573
|
queryClient,
|
|
4538
4574
|
locale = "en"
|
|
4539
4575
|
}) => {
|
|
4576
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4540
4577
|
const { data } = await clientApi.put(
|
|
4541
4578
|
`/communityModerator/${communityId}`,
|
|
4542
4579
|
{
|
|
@@ -4563,9 +4600,10 @@ var CompleteEventActivation = async ({
|
|
|
4563
4600
|
eventId,
|
|
4564
4601
|
activationId,
|
|
4565
4602
|
code,
|
|
4566
|
-
|
|
4603
|
+
clientApiParams,
|
|
4567
4604
|
queryClient
|
|
4568
4605
|
}) => {
|
|
4606
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4569
4607
|
const { data } = await clientApi.post(
|
|
4570
4608
|
`/events/${eventId}/activations/${activationId}`,
|
|
4571
4609
|
{
|
|
@@ -4585,9 +4623,10 @@ var CreateEventLead = async ({
|
|
|
4585
4623
|
eventId,
|
|
4586
4624
|
purchaseId,
|
|
4587
4625
|
note,
|
|
4588
|
-
|
|
4626
|
+
clientApiParams,
|
|
4589
4627
|
queryClient
|
|
4590
4628
|
}) => {
|
|
4629
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4591
4630
|
const { data } = await clientApi.post(
|
|
4592
4631
|
`/events/${eventId}/leads/${purchaseId}`,
|
|
4593
4632
|
{
|
|
@@ -4606,9 +4645,10 @@ var useCreateEventLead = (params = {}, options = {}) => {
|
|
|
4606
4645
|
var AddSelfChatChannelMember = async ({
|
|
4607
4646
|
channelId,
|
|
4608
4647
|
accountId,
|
|
4609
|
-
|
|
4648
|
+
clientApiParams,
|
|
4610
4649
|
queryClient
|
|
4611
4650
|
}) => {
|
|
4651
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4612
4652
|
const { data } = await clientApi.post(
|
|
4613
4653
|
`/self/chat/channels/${channelId}/members/${accountId}`
|
|
4614
4654
|
);
|
|
@@ -4627,9 +4667,10 @@ var useAddSelfChatChannelMember = (params = {}, options = {}) => {
|
|
|
4627
4667
|
var CreateSelfChatChannel = async ({
|
|
4628
4668
|
name,
|
|
4629
4669
|
accountIds,
|
|
4630
|
-
|
|
4670
|
+
clientApiParams,
|
|
4631
4671
|
queryClient
|
|
4632
4672
|
}) => {
|
|
4673
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4633
4674
|
const { data } = await clientApi.post(
|
|
4634
4675
|
`/self/chat/channels`,
|
|
4635
4676
|
{
|
|
@@ -4653,8 +4694,9 @@ var CreateSelfChatChannelMessage = async ({
|
|
|
4653
4694
|
channelId,
|
|
4654
4695
|
text,
|
|
4655
4696
|
queryClient,
|
|
4656
|
-
|
|
4697
|
+
clientApiParams
|
|
4657
4698
|
}) => {
|
|
4699
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4658
4700
|
const { data } = await clientApi.post(`/self/chat/channels/${channelId}/messages`, {
|
|
4659
4701
|
text
|
|
4660
4702
|
});
|
|
@@ -4669,9 +4711,10 @@ var useCreateSelfChatChannelMessage = (params = {}, options = {}) => {
|
|
|
4669
4711
|
// src/mutations/self/chat/useDeleteSelfChatChannel.ts
|
|
4670
4712
|
var DeleteSelfChatChannel = async ({
|
|
4671
4713
|
channelId,
|
|
4672
|
-
|
|
4714
|
+
clientApiParams,
|
|
4673
4715
|
queryClient
|
|
4674
4716
|
}) => {
|
|
4717
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4675
4718
|
const { data } = await clientApi.delete(
|
|
4676
4719
|
`/self/chat/channels/${channelId}`
|
|
4677
4720
|
);
|
|
@@ -4691,9 +4734,10 @@ var useDeleteSelfChatChannel = (params = {}, options = {}) => {
|
|
|
4691
4734
|
var DeleteSelfChatChannelMessage = async ({
|
|
4692
4735
|
channelId,
|
|
4693
4736
|
messageId,
|
|
4694
|
-
|
|
4737
|
+
clientApiParams,
|
|
4695
4738
|
queryClient
|
|
4696
4739
|
}) => {
|
|
4740
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4697
4741
|
const { data } = await clientApi.delete(
|
|
4698
4742
|
`/self/chat/channels/${channelId}/messages/${messageId}`
|
|
4699
4743
|
);
|
|
@@ -4711,9 +4755,10 @@ var useDeleteSelfChatChannelMessage = (params = {}, options = {}) => {
|
|
|
4711
4755
|
// src/mutations/self/chat/useLeaveSelfChatChannel.ts
|
|
4712
4756
|
var LeaveSelfChatChannel = async ({
|
|
4713
4757
|
channelId,
|
|
4714
|
-
|
|
4758
|
+
clientApiParams,
|
|
4715
4759
|
queryClient
|
|
4716
4760
|
}) => {
|
|
4761
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4717
4762
|
const { data } = await clientApi.delete(
|
|
4718
4763
|
`/self/chat/channels/${channelId}/leave`
|
|
4719
4764
|
);
|
|
@@ -4733,10 +4778,11 @@ var useLeaveSelfChatChannel = (params = {}, options = {}) => {
|
|
|
4733
4778
|
var UpdateSelfChatChannelNotifications = async ({
|
|
4734
4779
|
channelId,
|
|
4735
4780
|
notifications,
|
|
4736
|
-
|
|
4781
|
+
clientApiParams,
|
|
4737
4782
|
queryClient,
|
|
4738
4783
|
locale = "en"
|
|
4739
4784
|
}) => {
|
|
4785
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4740
4786
|
const { data } = await clientApi.put(
|
|
4741
4787
|
`/self/chat/channels/${channelId}/notifications`,
|
|
4742
4788
|
{
|
|
@@ -4759,10 +4805,11 @@ var useUpdateSelfChatChannelNotifications = (params = {}, options = {}) => {
|
|
|
4759
4805
|
var RegisterCancelledEventRegistration = async ({
|
|
4760
4806
|
eventId,
|
|
4761
4807
|
registrationId,
|
|
4762
|
-
|
|
4808
|
+
clientApiParams,
|
|
4763
4809
|
queryClient,
|
|
4764
4810
|
locale = "en"
|
|
4765
4811
|
}) => {
|
|
4812
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4766
4813
|
const { data } = await clientApi.post(
|
|
4767
4814
|
`/self/events/${eventId}/registration/${registrationId}/cancelled/register`
|
|
4768
4815
|
);
|
|
@@ -4794,10 +4841,11 @@ var SelectSelfEventRegistrationCoupon = async ({
|
|
|
4794
4841
|
eventId,
|
|
4795
4842
|
registrationId,
|
|
4796
4843
|
couponId,
|
|
4797
|
-
|
|
4844
|
+
clientApiParams,
|
|
4798
4845
|
queryClient,
|
|
4799
4846
|
locale = "en"
|
|
4800
4847
|
}) => {
|
|
4848
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4801
4849
|
const { data } = await clientApi.post(
|
|
4802
4850
|
`/self/events/${eventId}/registration/${registrationId}/draft/coupon`,
|
|
4803
4851
|
{
|
|
@@ -4837,10 +4885,11 @@ var useSelectSelfEventRegistrationCoupon = (params = {}, options = {}) => {
|
|
|
4837
4885
|
var CaptureSelfEventRegistrationPayment = async ({
|
|
4838
4886
|
eventId,
|
|
4839
4887
|
registrationId,
|
|
4840
|
-
|
|
4888
|
+
clientApiParams,
|
|
4841
4889
|
queryClient,
|
|
4842
4890
|
locale = "en"
|
|
4843
4891
|
}) => {
|
|
4892
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4844
4893
|
const { data } = await clientApi.post(
|
|
4845
4894
|
`/self/events/${eventId}/registration/${registrationId}/draft/capture`
|
|
4846
4895
|
);
|
|
@@ -4860,10 +4909,11 @@ var CreateSelfEventRegistrationGuest = async ({
|
|
|
4860
4909
|
eventId,
|
|
4861
4910
|
registrationId,
|
|
4862
4911
|
guest,
|
|
4863
|
-
|
|
4912
|
+
clientApiParams,
|
|
4864
4913
|
queryClient,
|
|
4865
4914
|
locale = "en"
|
|
4866
4915
|
}) => {
|
|
4916
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4867
4917
|
const { data } = await clientApi.post(
|
|
4868
4918
|
`/self/events/${eventId}/registration/${registrationId}/draft/guests`,
|
|
4869
4919
|
guest
|
|
@@ -4884,10 +4934,11 @@ var DeleteSelfEventRegistrationGuest = async ({
|
|
|
4884
4934
|
eventId,
|
|
4885
4935
|
registrationId,
|
|
4886
4936
|
guestId,
|
|
4887
|
-
|
|
4937
|
+
clientApiParams,
|
|
4888
4938
|
queryClient,
|
|
4889
4939
|
locale = "en"
|
|
4890
4940
|
}) => {
|
|
4941
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4891
4942
|
const { data } = await clientApi.delete(
|
|
4892
4943
|
`/self/events/${eventId}/registration/${registrationId}/draft/guests/${guestId}`
|
|
4893
4944
|
);
|
|
@@ -4906,10 +4957,11 @@ var useDeleteSelfEventRegistrationGuest = (params = {}, options = {}) => {
|
|
|
4906
4957
|
var RemoveSelfEventRegistrationCoupon = async ({
|
|
4907
4958
|
eventId,
|
|
4908
4959
|
registrationId,
|
|
4909
|
-
|
|
4960
|
+
clientApiParams,
|
|
4910
4961
|
queryClient,
|
|
4911
4962
|
locale = "en"
|
|
4912
4963
|
}) => {
|
|
4964
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4913
4965
|
const { data } = await clientApi.delete(
|
|
4914
4966
|
`/self/events/${eventId}/registration/${registrationId}/draft/coupon`
|
|
4915
4967
|
);
|
|
@@ -4946,10 +4998,11 @@ var useRemoveSelfEventRegistrationCoupon = (params = {}, options = {}) => {
|
|
|
4946
4998
|
var RemoveSelfEventRegistrationTicket = async ({
|
|
4947
4999
|
eventId,
|
|
4948
5000
|
registrationId,
|
|
4949
|
-
|
|
5001
|
+
clientApiParams,
|
|
4950
5002
|
queryClient,
|
|
4951
5003
|
locale = "en"
|
|
4952
5004
|
}) => {
|
|
5005
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4953
5006
|
const { data } = await clientApi.delete(
|
|
4954
5007
|
`/self/events/${eventId}/registration/${registrationId}/draft/ticket`
|
|
4955
5008
|
);
|
|
@@ -4987,10 +5040,11 @@ var SelectSelfEventRegistrationTicket = async ({
|
|
|
4987
5040
|
eventId,
|
|
4988
5041
|
registrationId,
|
|
4989
5042
|
ticketId,
|
|
4990
|
-
|
|
5043
|
+
clientApiParams,
|
|
4991
5044
|
queryClient,
|
|
4992
5045
|
locale = "en"
|
|
4993
5046
|
}) => {
|
|
5047
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4994
5048
|
const { data } = await clientApi.post(
|
|
4995
5049
|
`/self/events/${eventId}/registration/${registrationId}/draft/ticket`,
|
|
4996
5050
|
{
|
|
@@ -5026,10 +5080,11 @@ var SubmitSelfEventRegistration = async ({
|
|
|
5026
5080
|
eventId,
|
|
5027
5081
|
registrationId,
|
|
5028
5082
|
payment,
|
|
5029
|
-
|
|
5083
|
+
clientApiParams,
|
|
5030
5084
|
queryClient,
|
|
5031
5085
|
locale = "en"
|
|
5032
5086
|
}) => {
|
|
5087
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5033
5088
|
const { data } = await clientApi.post(
|
|
5034
5089
|
`/self/events/${eventId}/registration/${registrationId}/draft/submit`,
|
|
5035
5090
|
payment
|
|
@@ -5051,10 +5106,11 @@ var UpdateSelfEventRegistrationGuest = async ({
|
|
|
5051
5106
|
registrationId,
|
|
5052
5107
|
guestId,
|
|
5053
5108
|
guest,
|
|
5054
|
-
|
|
5109
|
+
clientApiParams,
|
|
5055
5110
|
queryClient,
|
|
5056
5111
|
locale = "en"
|
|
5057
5112
|
}) => {
|
|
5113
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5058
5114
|
const { data } = await clientApi.put(
|
|
5059
5115
|
`/self/events/${eventId}/registration/${registrationId}/draft/guests/${guestId}`,
|
|
5060
5116
|
guest
|
|
@@ -5078,10 +5134,11 @@ var UpdateSelfEventRegistrationGuestResponseFile = async ({
|
|
|
5078
5134
|
guestId,
|
|
5079
5135
|
dataUrl,
|
|
5080
5136
|
name,
|
|
5081
|
-
|
|
5137
|
+
clientApiParams
|
|
5082
5138
|
}) => {
|
|
5083
5139
|
if (!guestId)
|
|
5084
5140
|
throw new Error("Guest ID is required");
|
|
5141
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5085
5142
|
const { data } = await clientApi.put(
|
|
5086
5143
|
`/self/events/${eventId}/registration/${registrationId}/draft/guests/${guestId}/responses/file`,
|
|
5087
5144
|
{
|
|
@@ -5102,8 +5159,9 @@ var UpdateSelfEventRegistrationGuestResponses = async ({
|
|
|
5102
5159
|
registrationId,
|
|
5103
5160
|
guestId,
|
|
5104
5161
|
responses,
|
|
5105
|
-
|
|
5162
|
+
clientApiParams
|
|
5106
5163
|
}) => {
|
|
5164
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5107
5165
|
const { data } = await clientApi.put(
|
|
5108
5166
|
`/self/events/${eventId}/registration/${registrationId}/draft/guests/${guestId}/responses`,
|
|
5109
5167
|
responses
|
|
@@ -5121,8 +5179,9 @@ var UpdateSelfEventRegistrationResponseFile = async ({
|
|
|
5121
5179
|
dataUrl,
|
|
5122
5180
|
name,
|
|
5123
5181
|
questionId,
|
|
5124
|
-
|
|
5182
|
+
clientApiParams
|
|
5125
5183
|
}) => {
|
|
5184
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5126
5185
|
const { data } = await clientApi.put(
|
|
5127
5186
|
`/self/events/${eventId}/registration/${registrationId}/draft/responses/file`,
|
|
5128
5187
|
{
|
|
@@ -5142,10 +5201,11 @@ var UpdateSelfEventRegistrationResponses = async ({
|
|
|
5142
5201
|
eventId,
|
|
5143
5202
|
registrationId,
|
|
5144
5203
|
responses,
|
|
5145
|
-
|
|
5204
|
+
clientApiParams,
|
|
5146
5205
|
queryClient,
|
|
5147
5206
|
locale = "en"
|
|
5148
5207
|
}) => {
|
|
5208
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5149
5209
|
const { data } = await clientApi.put(
|
|
5150
5210
|
`/self/events/${eventId}/registration/${registrationId}/draft/responses`,
|
|
5151
5211
|
responses
|
|
@@ -5165,10 +5225,11 @@ var useUpdateSelfEventRegistrationResponses = (params = {}, options = {}) => {
|
|
|
5165
5225
|
var CancelEventRegistration = async ({
|
|
5166
5226
|
eventId,
|
|
5167
5227
|
registrationId,
|
|
5168
|
-
|
|
5228
|
+
clientApiParams,
|
|
5169
5229
|
queryClient,
|
|
5170
5230
|
locale = "env"
|
|
5171
5231
|
}) => {
|
|
5232
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5172
5233
|
const { data } = await clientApi.delete(
|
|
5173
5234
|
`/self/events/${eventId}/registration/${registrationId}/registered/cancel`
|
|
5174
5235
|
);
|
|
@@ -5200,9 +5261,10 @@ var CancelTransfer = async ({
|
|
|
5200
5261
|
transferId,
|
|
5201
5262
|
eventId,
|
|
5202
5263
|
registrationId,
|
|
5203
|
-
|
|
5264
|
+
clientApiParams,
|
|
5204
5265
|
queryClient
|
|
5205
5266
|
}) => {
|
|
5267
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5206
5268
|
const { data } = await clientApi.delete(
|
|
5207
5269
|
`/self/events/${eventId}/registration/${registrationId}/transfer/${transferId}`
|
|
5208
5270
|
);
|
|
@@ -5223,9 +5285,10 @@ var TransferPurchase = async ({
|
|
|
5223
5285
|
purchaseId,
|
|
5224
5286
|
eventId,
|
|
5225
5287
|
registrationId,
|
|
5226
|
-
|
|
5288
|
+
clientApiParams,
|
|
5227
5289
|
queryClient
|
|
5228
5290
|
}) => {
|
|
5291
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5229
5292
|
const { data } = await clientApi.post(
|
|
5230
5293
|
`/self/events/${eventId}/registration/${registrationId}/transfer`,
|
|
5231
5294
|
{
|
|
@@ -5250,10 +5313,11 @@ var UpdateSelfEventRegistrationResponse = async ({
|
|
|
5250
5313
|
registrationId,
|
|
5251
5314
|
questionId,
|
|
5252
5315
|
response,
|
|
5253
|
-
|
|
5316
|
+
clientApiParams,
|
|
5254
5317
|
queryClient,
|
|
5255
5318
|
locale = "en"
|
|
5256
5319
|
}) => {
|
|
5320
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5257
5321
|
const { data } = await clientApi.put(
|
|
5258
5322
|
`/self/events/${eventId}/registration/${registrationId}/registered/response`,
|
|
5259
5323
|
{
|
|
@@ -5283,10 +5347,11 @@ var UpdateSelfEventRegistrationGuestResponse = async ({
|
|
|
5283
5347
|
questionId,
|
|
5284
5348
|
guestId,
|
|
5285
5349
|
response,
|
|
5286
|
-
|
|
5350
|
+
clientApiParams,
|
|
5287
5351
|
queryClient,
|
|
5288
5352
|
locale = "en"
|
|
5289
5353
|
}) => {
|
|
5354
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5290
5355
|
const { data } = await clientApi.put(
|
|
5291
5356
|
`/self/events/${eventId}/registration/${registrationId}/registered/guests/${guestId}/response`,
|
|
5292
5357
|
{
|
|
@@ -5312,9 +5377,10 @@ var useUpdateSelfEventRegistrationGuestResponse = (params = {}, options = {}) =>
|
|
|
5312
5377
|
// src/mutations/self/subscriptions/useCancelSubscription.ts
|
|
5313
5378
|
var CancelSubscription = async ({
|
|
5314
5379
|
subscriptionId,
|
|
5315
|
-
|
|
5380
|
+
clientApiParams,
|
|
5316
5381
|
queryClient
|
|
5317
5382
|
}) => {
|
|
5383
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5318
5384
|
const { data } = await clientApi.delete(
|
|
5319
5385
|
`/self/subscriptions/${subscriptionId}`
|
|
5320
5386
|
);
|
|
@@ -5336,8 +5402,9 @@ var useCancelSubscription = (params = {}, options = {}) => {
|
|
|
5336
5402
|
var CreateSubscription = async ({
|
|
5337
5403
|
productId,
|
|
5338
5404
|
priceId,
|
|
5339
|
-
|
|
5405
|
+
clientApiParams
|
|
5340
5406
|
}) => {
|
|
5407
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5341
5408
|
const { data } = await clientApi.post("/self/subscriptions", {
|
|
5342
5409
|
productId,
|
|
5343
5410
|
priceId,
|
|
@@ -5353,9 +5420,10 @@ var useCreateSubscription = (params = {}, options = {}) => {
|
|
|
5353
5420
|
var UpdateSubscriptionPaymentMethod = async ({
|
|
5354
5421
|
subscriptionId,
|
|
5355
5422
|
paymentMethodId,
|
|
5356
|
-
|
|
5423
|
+
clientApiParams,
|
|
5357
5424
|
queryClient
|
|
5358
5425
|
}) => {
|
|
5426
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5359
5427
|
const { data } = await clientApi.put(
|
|
5360
5428
|
`/self/subscriptions/${subscriptionId}/payment-method`,
|
|
5361
5429
|
{
|
|
@@ -5376,9 +5444,10 @@ var useUpdateSubscriptionPaymentMethod = (params = {}, options = {}) => {
|
|
|
5376
5444
|
// src/mutations/self/useAcceptTransfer.ts
|
|
5377
5445
|
var AcceptTransfer = async ({
|
|
5378
5446
|
transferId,
|
|
5379
|
-
|
|
5447
|
+
clientApiParams,
|
|
5380
5448
|
queryClient
|
|
5381
5449
|
}) => {
|
|
5450
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5382
5451
|
const { data } = await clientApi.post(
|
|
5383
5452
|
`/self/transfers/${transferId}`
|
|
5384
5453
|
);
|
|
@@ -5394,9 +5463,10 @@ var useAcceptTransfer = (params = {}, options = {}) => {
|
|
|
5394
5463
|
// src/mutations/self/useAddSelfDelegate.ts
|
|
5395
5464
|
var AddSelfDelegate = async ({
|
|
5396
5465
|
email,
|
|
5397
|
-
|
|
5466
|
+
clientApiParams,
|
|
5398
5467
|
queryClient
|
|
5399
5468
|
}) => {
|
|
5469
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5400
5470
|
const { data } = await clientApi.post(
|
|
5401
5471
|
`/self/delegates`,
|
|
5402
5472
|
{
|
|
@@ -5416,10 +5486,11 @@ var useAddSelfDelegate = (params = {}, options = {}) => {
|
|
|
5416
5486
|
var AddSelfEventListingSession = async ({
|
|
5417
5487
|
eventId,
|
|
5418
5488
|
session,
|
|
5419
|
-
|
|
5489
|
+
clientApiParams,
|
|
5420
5490
|
queryClient,
|
|
5421
5491
|
locale = "en"
|
|
5422
5492
|
}) => {
|
|
5493
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5423
5494
|
const { data } = await clientApi.post(
|
|
5424
5495
|
`/self/events/listings/${eventId}/sessions`,
|
|
5425
5496
|
{
|
|
@@ -5468,10 +5539,11 @@ var useAddSelfEventListingSession = (params = {}, options = {}) => {
|
|
|
5468
5539
|
var AddSelfEventListingSpeaker = async ({
|
|
5469
5540
|
eventId,
|
|
5470
5541
|
speaker,
|
|
5471
|
-
|
|
5542
|
+
clientApiParams,
|
|
5472
5543
|
queryClient,
|
|
5473
5544
|
locale = "en"
|
|
5474
5545
|
}) => {
|
|
5546
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5475
5547
|
const { data } = await clientApi.post(
|
|
5476
5548
|
`/self/events/listings/${eventId}/speakers`,
|
|
5477
5549
|
{
|
|
@@ -5520,7 +5592,7 @@ var useAddSelfEventListingSpeaker = (params = {}, options = {}) => {
|
|
|
5520
5592
|
var AddSelfEventListingSponsor = async ({
|
|
5521
5593
|
eventId,
|
|
5522
5594
|
sponsor,
|
|
5523
|
-
|
|
5595
|
+
clientApiParams,
|
|
5524
5596
|
queryClient,
|
|
5525
5597
|
locale = "en"
|
|
5526
5598
|
}) => {
|
|
@@ -5554,6 +5626,7 @@ var AddSelfEventListingSponsor = async ({
|
|
|
5554
5626
|
}
|
|
5555
5627
|
);
|
|
5556
5628
|
}
|
|
5629
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5557
5630
|
const { data } = await clientApi.post(
|
|
5558
5631
|
`/self/events/listings/${eventId}/sponsors`,
|
|
5559
5632
|
{
|
|
@@ -5570,9 +5643,10 @@ var useAddSelfEventListingSponsor = (params = {}, options = {}) => {
|
|
|
5570
5643
|
var AddSelfEventSession = async ({
|
|
5571
5644
|
eventId,
|
|
5572
5645
|
sessionId,
|
|
5573
|
-
|
|
5646
|
+
clientApiParams,
|
|
5574
5647
|
queryClient
|
|
5575
5648
|
}) => {
|
|
5649
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5576
5650
|
const { data } = await clientApi.post(
|
|
5577
5651
|
`/self/events/${eventId}/sessions/${sessionId}`
|
|
5578
5652
|
);
|
|
@@ -5595,10 +5669,11 @@ var CreateSelfEventListing = async ({
|
|
|
5595
5669
|
sponsorIds,
|
|
5596
5670
|
speakers,
|
|
5597
5671
|
sessions,
|
|
5598
|
-
|
|
5672
|
+
clientApiParams,
|
|
5599
5673
|
queryClient,
|
|
5600
5674
|
locale = "en"
|
|
5601
5675
|
}) => {
|
|
5676
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5602
5677
|
let data;
|
|
5603
5678
|
if (communityId) {
|
|
5604
5679
|
data = (await clientApi.post(
|
|
@@ -5646,9 +5721,10 @@ var useCreateSelfEventListing = (params = {}, options = {}) => {
|
|
|
5646
5721
|
|
|
5647
5722
|
// src/mutations/self/useDeleteSelf.ts
|
|
5648
5723
|
var DeleteSelf = async ({
|
|
5649
|
-
|
|
5724
|
+
clientApiParams,
|
|
5650
5725
|
queryClient
|
|
5651
5726
|
}) => {
|
|
5727
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5652
5728
|
const { data } = await clientApi.delete(`/self`);
|
|
5653
5729
|
if (queryClient && data.status === "ok") {
|
|
5654
5730
|
queryClient.clear();
|
|
@@ -5662,9 +5738,10 @@ var useDeleteSelf = (params = {}, options = {}) => {
|
|
|
5662
5738
|
// src/mutations/self/useDeleteSelfPushDevice.ts
|
|
5663
5739
|
var DeleteSelfPushDevice = async ({
|
|
5664
5740
|
pushDeviceId,
|
|
5665
|
-
|
|
5741
|
+
clientApiParams,
|
|
5666
5742
|
queryClient
|
|
5667
5743
|
}) => {
|
|
5744
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5668
5745
|
const { data } = await clientApi.delete(
|
|
5669
5746
|
`/self/push-devices/${pushDeviceId}`
|
|
5670
5747
|
);
|
|
@@ -5682,9 +5759,10 @@ var useDeleteSelfPushDevice = (params = {}, options = {}) => {
|
|
|
5682
5759
|
// src/mutations/self/useRejectTransfer.ts
|
|
5683
5760
|
var RejectTransfer = async ({
|
|
5684
5761
|
transferId,
|
|
5685
|
-
|
|
5762
|
+
clientApiParams,
|
|
5686
5763
|
queryClient
|
|
5687
5764
|
}) => {
|
|
5765
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5688
5766
|
const { data } = await clientApi.delete(
|
|
5689
5767
|
`/self/transfers/${transferId}`
|
|
5690
5768
|
);
|
|
@@ -5702,9 +5780,10 @@ var useRejectTransfer = (params = {}, options = {}) => {
|
|
|
5702
5780
|
// src/mutations/self/useRemoveSelfDelegate.ts
|
|
5703
5781
|
var RemoveSelfDelegate = async ({
|
|
5704
5782
|
accountId,
|
|
5705
|
-
|
|
5783
|
+
clientApiParams,
|
|
5706
5784
|
queryClient
|
|
5707
5785
|
}) => {
|
|
5786
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5708
5787
|
const { data } = await clientApi.delete(
|
|
5709
5788
|
`/self/delegates/${accountId}`
|
|
5710
5789
|
);
|
|
@@ -5721,7 +5800,7 @@ var useRemoveSelfDelegate = (params = {}, options = {}) => {
|
|
|
5721
5800
|
var RemoveSelfEventListingSession = async ({
|
|
5722
5801
|
eventId,
|
|
5723
5802
|
sessionId,
|
|
5724
|
-
|
|
5803
|
+
clientApiParams,
|
|
5725
5804
|
queryClient,
|
|
5726
5805
|
locale = "en"
|
|
5727
5806
|
}) => {
|
|
@@ -5755,6 +5834,7 @@ var RemoveSelfEventListingSession = async ({
|
|
|
5755
5834
|
}
|
|
5756
5835
|
);
|
|
5757
5836
|
}
|
|
5837
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5758
5838
|
const { data } = await clientApi.delete(
|
|
5759
5839
|
`/self/events/listings/${eventId}/sessions/${sessionId}`
|
|
5760
5840
|
);
|
|
@@ -5768,7 +5848,7 @@ var useRemoveSelfEventListingSession = (params = {}, options = {}) => {
|
|
|
5768
5848
|
var RemoveSelfEventListingSpeaker = async ({
|
|
5769
5849
|
eventId,
|
|
5770
5850
|
speakerId,
|
|
5771
|
-
|
|
5851
|
+
clientApiParams,
|
|
5772
5852
|
queryClient,
|
|
5773
5853
|
locale = "en"
|
|
5774
5854
|
}) => {
|
|
@@ -5802,6 +5882,7 @@ var RemoveSelfEventListingSpeaker = async ({
|
|
|
5802
5882
|
}
|
|
5803
5883
|
);
|
|
5804
5884
|
}
|
|
5885
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5805
5886
|
const { data } = await clientApi.delete(
|
|
5806
5887
|
`/self/events/listings/${eventId}/speakers/${speakerId}`
|
|
5807
5888
|
);
|
|
@@ -5815,7 +5896,7 @@ var useRemoveSelfEventListingSpeaker = (params = {}, options = {}) => {
|
|
|
5815
5896
|
var RemoveSelfEventListingSponsor = async ({
|
|
5816
5897
|
eventId,
|
|
5817
5898
|
sponsorId,
|
|
5818
|
-
|
|
5899
|
+
clientApiParams,
|
|
5819
5900
|
queryClient,
|
|
5820
5901
|
locale = "en"
|
|
5821
5902
|
}) => {
|
|
@@ -5849,6 +5930,7 @@ var RemoveSelfEventListingSponsor = async ({
|
|
|
5849
5930
|
}
|
|
5850
5931
|
);
|
|
5851
5932
|
}
|
|
5933
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5852
5934
|
const { data } = await clientApi.delete(
|
|
5853
5935
|
`/self/events/listings/${eventId}/sponsors/${sponsorId}`
|
|
5854
5936
|
);
|
|
@@ -5862,9 +5944,10 @@ var useRemoveSelfEventListingSponsor = (params = {}, options = {}) => {
|
|
|
5862
5944
|
var RemoveSelfEventSession = async ({
|
|
5863
5945
|
eventId,
|
|
5864
5946
|
sessionId,
|
|
5865
|
-
|
|
5947
|
+
clientApiParams,
|
|
5866
5948
|
queryClient
|
|
5867
5949
|
}) => {
|
|
5950
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5868
5951
|
const { data } = await clientApi.delete(
|
|
5869
5952
|
`/self/events/${eventId}/sessions/${sessionId}`
|
|
5870
5953
|
);
|
|
@@ -5883,9 +5966,10 @@ var useRemoveSelfEventSession = (params = {}, options = {}) => {
|
|
|
5883
5966
|
var SelfCheckinRegistration = async ({
|
|
5884
5967
|
accountId,
|
|
5885
5968
|
eventId,
|
|
5886
|
-
|
|
5969
|
+
clientApiParams,
|
|
5887
5970
|
queryClient
|
|
5888
5971
|
}) => {
|
|
5972
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5889
5973
|
const { data } = await clientApi.post(
|
|
5890
5974
|
`/self/events/listings/${eventId}/registrations/${accountId}`
|
|
5891
5975
|
);
|
|
@@ -5969,7 +6053,7 @@ var SelfCreateActivity = async ({
|
|
|
5969
6053
|
activity,
|
|
5970
6054
|
base64Image,
|
|
5971
6055
|
videoUri,
|
|
5972
|
-
|
|
6056
|
+
clientApiParams,
|
|
5973
6057
|
queryClient,
|
|
5974
6058
|
locale = "en"
|
|
5975
6059
|
}) => {
|
|
@@ -5987,6 +6071,7 @@ var SelfCreateActivity = async ({
|
|
|
5987
6071
|
);
|
|
5988
6072
|
}
|
|
5989
6073
|
}
|
|
6074
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5990
6075
|
const { data } = await clientApi.post(
|
|
5991
6076
|
`/self/activities`,
|
|
5992
6077
|
{
|
|
@@ -6047,9 +6132,10 @@ var useSelfCreateActivity = (params = {}, options = {}) => {
|
|
|
6047
6132
|
// src/mutations/self/useSelfDeleteActivity.ts
|
|
6048
6133
|
var DeleteActivity = async ({
|
|
6049
6134
|
activityId,
|
|
6050
|
-
|
|
6135
|
+
clientApiParams,
|
|
6051
6136
|
queryClient
|
|
6052
6137
|
}) => {
|
|
6138
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6053
6139
|
const { data } = await clientApi.delete(
|
|
6054
6140
|
`/self/activities/${activityId}`
|
|
6055
6141
|
);
|
|
@@ -6065,9 +6151,10 @@ var useDeleteActivity = (params = {}, options = {}) => {
|
|
|
6065
6151
|
// src/mutations/self/useSelfJoinCommunity.ts
|
|
6066
6152
|
var SelfJoinCommunity = async ({
|
|
6067
6153
|
communityId,
|
|
6068
|
-
|
|
6154
|
+
clientApiParams,
|
|
6069
6155
|
queryClient
|
|
6070
6156
|
}) => {
|
|
6157
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6071
6158
|
const { data } = await clientApi.post(`/self/communities/${communityId}`);
|
|
6072
6159
|
if (queryClient && data.status === "ok") {
|
|
6073
6160
|
queryClient.invalidateQueries({
|
|
@@ -6092,9 +6179,10 @@ var useSelfJoinCommunity = (params = {}, options = {}) => {
|
|
|
6092
6179
|
// src/mutations/self/useSelfLeaveCommunity.ts
|
|
6093
6180
|
var SelfLeaveCommunity = async ({
|
|
6094
6181
|
communityId,
|
|
6095
|
-
|
|
6182
|
+
clientApiParams,
|
|
6096
6183
|
queryClient
|
|
6097
6184
|
}) => {
|
|
6185
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6098
6186
|
const { data } = await clientApi.delete(
|
|
6099
6187
|
`/self/communities/${communityId}`
|
|
6100
6188
|
);
|
|
@@ -6122,7 +6210,7 @@ var useSelfLeaveCommunity = (params = {}, options = {}) => {
|
|
|
6122
6210
|
var SelfUpdateCommunityMembership = async ({
|
|
6123
6211
|
communityId,
|
|
6124
6212
|
membership,
|
|
6125
|
-
|
|
6213
|
+
clientApiParams,
|
|
6126
6214
|
queryClient,
|
|
6127
6215
|
locale = "en"
|
|
6128
6216
|
}) => {
|
|
@@ -6140,6 +6228,7 @@ var SelfUpdateCommunityMembership = async ({
|
|
|
6140
6228
|
}
|
|
6141
6229
|
);
|
|
6142
6230
|
}
|
|
6231
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6143
6232
|
const { data } = await clientApi.put(`/self/communities/${communityId}`, membership);
|
|
6144
6233
|
return data;
|
|
6145
6234
|
};
|
|
@@ -6149,10 +6238,11 @@ var useSelfUpdateCommunityMembership = (params = {}, options = {}) => {
|
|
|
6149
6238
|
|
|
6150
6239
|
// src/mutations/self/useUpdateSelf.ts
|
|
6151
6240
|
var UpdateSelf = async ({
|
|
6152
|
-
|
|
6241
|
+
clientApiParams,
|
|
6153
6242
|
queryClient,
|
|
6154
6243
|
...params
|
|
6155
6244
|
}) => {
|
|
6245
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6156
6246
|
const { data } = await clientApi.put(
|
|
6157
6247
|
`/self`,
|
|
6158
6248
|
params
|
|
@@ -6171,10 +6261,11 @@ var UpdateSelfEventListing = async ({
|
|
|
6171
6261
|
eventId,
|
|
6172
6262
|
event,
|
|
6173
6263
|
base64,
|
|
6174
|
-
|
|
6264
|
+
clientApiParams,
|
|
6175
6265
|
queryClient,
|
|
6176
6266
|
locale = "en"
|
|
6177
6267
|
}) => {
|
|
6268
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6178
6269
|
const { data } = await clientApi.put(
|
|
6179
6270
|
`/self/events/listings/${eventId}`,
|
|
6180
6271
|
{
|
|
@@ -6207,10 +6298,11 @@ var UpdateSelfEventListingSession = async ({
|
|
|
6207
6298
|
eventId,
|
|
6208
6299
|
session,
|
|
6209
6300
|
sessionId,
|
|
6210
|
-
|
|
6301
|
+
clientApiParams,
|
|
6211
6302
|
queryClient,
|
|
6212
6303
|
locale = "en"
|
|
6213
6304
|
}) => {
|
|
6305
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6214
6306
|
const { data } = await clientApi.put(
|
|
6215
6307
|
`/self/events/listings/${eventId}/sessions/${sessionId}`,
|
|
6216
6308
|
{
|
|
@@ -6259,10 +6351,11 @@ var UpdateSelfEventListingSpeaker = async ({
|
|
|
6259
6351
|
speaker,
|
|
6260
6352
|
speakerId,
|
|
6261
6353
|
buffer,
|
|
6262
|
-
|
|
6354
|
+
clientApiParams,
|
|
6263
6355
|
queryClient,
|
|
6264
6356
|
locale = "en"
|
|
6265
6357
|
}) => {
|
|
6358
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6266
6359
|
const { data } = await clientApi.put(
|
|
6267
6360
|
`/self/events/listings/${eventId}/speakers/${speakerId}`,
|
|
6268
6361
|
{
|
|
@@ -6309,9 +6402,10 @@ var useUpdateSelfEventListingSpeaker = (params = {}, options = {}) => {
|
|
|
6309
6402
|
// src/mutations/self/useUpdateSelfImage.ts
|
|
6310
6403
|
var UpdateSelfImage = async ({
|
|
6311
6404
|
base64,
|
|
6312
|
-
|
|
6405
|
+
clientApiParams,
|
|
6313
6406
|
queryClient
|
|
6314
6407
|
}) => {
|
|
6408
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6315
6409
|
const { data } = await clientApi.put(
|
|
6316
6410
|
`/self/image`,
|
|
6317
6411
|
{
|
|
@@ -6331,8 +6425,9 @@ var useUpdateSelfImage = (params = {}, options = {}) => {
|
|
|
6331
6425
|
var UpdateSelfLead = async ({
|
|
6332
6426
|
leadId,
|
|
6333
6427
|
note,
|
|
6334
|
-
|
|
6428
|
+
clientApiParams
|
|
6335
6429
|
}) => {
|
|
6430
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6336
6431
|
const { data } = await clientApi.put(
|
|
6337
6432
|
`/self/leads/${leadId}`,
|
|
6338
6433
|
{
|
|
@@ -6347,7 +6442,7 @@ var useUpdateSelfLead = (params = {}, options = {}) => {
|
|
|
6347
6442
|
|
|
6348
6443
|
// src/mutations/self/useUpdateSelfNotificationPreferences.ts
|
|
6349
6444
|
var UpdateSelfNotificationPreferences = async ({
|
|
6350
|
-
|
|
6445
|
+
clientApiParams,
|
|
6351
6446
|
queryClient,
|
|
6352
6447
|
locale = "en",
|
|
6353
6448
|
...params
|
|
@@ -6365,6 +6460,7 @@ var UpdateSelfNotificationPreferences = async ({
|
|
|
6365
6460
|
}
|
|
6366
6461
|
);
|
|
6367
6462
|
}
|
|
6463
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6368
6464
|
const { data } = await clientApi.put(`/self/notificationPreferences`, params);
|
|
6369
6465
|
return data;
|
|
6370
6466
|
};
|
|
@@ -6376,9 +6472,10 @@ var useUpdateSelfNotificationPreferences = (params = {}, options = {}) => {
|
|
|
6376
6472
|
var UpdateSelfPushDevice = async ({
|
|
6377
6473
|
pushDeviceId,
|
|
6378
6474
|
pushDevice,
|
|
6379
|
-
|
|
6475
|
+
clientApiParams,
|
|
6380
6476
|
queryClient
|
|
6381
6477
|
}) => {
|
|
6478
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6382
6479
|
const { data } = await clientApi.put(
|
|
6383
6480
|
`/self/push-devices/${pushDeviceId}`,
|
|
6384
6481
|
{
|
|
@@ -6406,8 +6503,9 @@ var CreateSupportTicket = async ({
|
|
|
6406
6503
|
request,
|
|
6407
6504
|
eventId,
|
|
6408
6505
|
productId,
|
|
6409
|
-
|
|
6506
|
+
clientApiParams
|
|
6410
6507
|
}) => {
|
|
6508
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6411
6509
|
const { data } = await clientApi.post(
|
|
6412
6510
|
"/supportTickets",
|
|
6413
6511
|
{
|
|
@@ -6428,8 +6526,9 @@ var useCreateSupportTicket = (params = {}, options = {}) => {
|
|
|
6428
6526
|
var CreateTeamAccount = async ({
|
|
6429
6527
|
name,
|
|
6430
6528
|
email,
|
|
6431
|
-
|
|
6529
|
+
clientApiParams
|
|
6432
6530
|
}) => {
|
|
6531
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
6433
6532
|
const { data } = await clientApi.post(
|
|
6434
6533
|
`/self/team`,
|
|
6435
6534
|
{
|
|
@@ -6541,6 +6640,7 @@ export {
|
|
|
6541
6640
|
GetActivityComments,
|
|
6542
6641
|
GetAdvertisement,
|
|
6543
6642
|
GetBenefits,
|
|
6643
|
+
GetClientAPI,
|
|
6544
6644
|
GetCommunities,
|
|
6545
6645
|
GetCommunity,
|
|
6546
6646
|
GetCommunityActivities,
|
|
@@ -6776,7 +6876,6 @@ export {
|
|
|
6776
6876
|
UpdateSelfNotificationPreferences,
|
|
6777
6877
|
UpdateSelfPushDevice,
|
|
6778
6878
|
UpdateSubscriptionPaymentMethod,
|
|
6779
|
-
getClientAPI,
|
|
6780
6879
|
isListing,
|
|
6781
6880
|
isManagedCoupon,
|
|
6782
6881
|
isSelf,
|
|
@@ -6826,7 +6925,6 @@ export {
|
|
|
6826
6925
|
useCancelSubscription,
|
|
6827
6926
|
useCancelTransfer,
|
|
6828
6927
|
useCaptureSelfEventRegistrationPayment,
|
|
6829
|
-
useClientAPI,
|
|
6830
6928
|
useCompleteEventActivation,
|
|
6831
6929
|
useConnectedXM,
|
|
6832
6930
|
useCreateCommunityAnnouncement,
|