@connectedxm/client 1.5.0 → 1.5.3
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 +90 -5
- package/dist/index.d.ts +90 -5
- package/dist/index.js +218 -25
- package/dist/index.mjs +195 -22
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -28,8 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
30
|
// src/index.ts
|
|
31
|
-
var
|
|
32
|
-
__export(
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
33
|
ACCOUNTS_POPULAR_QUERY_KEY: () => ACCOUNTS_POPULAR_QUERY_KEY,
|
|
34
34
|
ACCOUNTS_QUERY_KEY: () => ACCOUNTS_QUERY_KEY,
|
|
35
35
|
ACCOUNT_ACTIVITIES_QUERY_KEY: () => ACCOUNT_ACTIVITIES_QUERY_KEY,
|
|
@@ -172,6 +172,9 @@ __export(src_exports, {
|
|
|
172
172
|
EVENT_FAQ_SECTION_QUERY_KEY: () => EVENT_FAQ_SECTION_QUERY_KEY,
|
|
173
173
|
EVENT_FAQ_SECTION_QUESTIONS_QUERY_KEY: () => EVENT_FAQ_SECTION_QUESTIONS_QUERY_KEY,
|
|
174
174
|
EVENT_FAQ_SECTION_QUESTION_QUERY_KEY: () => EVENT_FAQ_SECTION_QUESTION_QUERY_KEY,
|
|
175
|
+
EVENT_IMAGES_QUERY_KEY: () => EVENT_IMAGES_QUERY_KEY,
|
|
176
|
+
EVENT_IMAGE_QUERY_KEY: () => EVENT_IMAGE_QUERY_KEY,
|
|
177
|
+
EVENT_MEDIA_QUERY_KEY: () => EVENT_MEDIA_QUERY_KEY,
|
|
175
178
|
EVENT_PAGES_QUERY_KEY: () => EVENT_PAGES_QUERY_KEY,
|
|
176
179
|
EVENT_PAGE_QUERY_KEY: () => EVENT_PAGE_QUERY_KEY,
|
|
177
180
|
EVENT_QUERY_KEY: () => EVENT_QUERY_KEY,
|
|
@@ -181,6 +184,8 @@ __export(src_exports, {
|
|
|
181
184
|
EVENT_SESSION_QUERY_KEY: () => EVENT_SESSION_QUERY_KEY,
|
|
182
185
|
EVENT_SPEAKERS_QUERY_KEY: () => EVENT_SPEAKERS_QUERY_KEY,
|
|
183
186
|
EVENT_SPEAKER_QUERY_KEY: () => EVENT_SPEAKER_QUERY_KEY,
|
|
187
|
+
EVENT_SPONSORSHIP_LEVELS_QUERY_KEY: () => EVENT_SPONSORSHIP_LEVELS_QUERY_KEY,
|
|
188
|
+
EVENT_SPONSORSHIP_QUERY_KEY: () => EVENT_SPONSORSHIP_QUERY_KEY,
|
|
184
189
|
EVENT_SPONSORS_QUERY_KEY: () => EVENT_SPONSORS_QUERY_KEY,
|
|
185
190
|
EnableIntegration: () => EnableIntegration,
|
|
186
191
|
EventEmailType: () => EventEmailType,
|
|
@@ -255,6 +260,9 @@ __export(src_exports, {
|
|
|
255
260
|
GetEventFAQSectionQuestion: () => GetEventFAQSectionQuestion,
|
|
256
261
|
GetEventFaqSections: () => GetEventFaqSections,
|
|
257
262
|
GetEventFaqs: () => GetEventFaqs,
|
|
263
|
+
GetEventImage: () => GetEventImage,
|
|
264
|
+
GetEventImages: () => GetEventImages,
|
|
265
|
+
GetEventMedia: () => GetEventMedia,
|
|
258
266
|
GetEventPage: () => GetEventPage,
|
|
259
267
|
GetEventPages: () => GetEventPages,
|
|
260
268
|
GetEventQuestionSearchValues: () => GetEventQuestionSearchValues,
|
|
@@ -264,6 +272,8 @@ __export(src_exports, {
|
|
|
264
272
|
GetEventSpeaker: () => GetEventSpeaker,
|
|
265
273
|
GetEventSpeakers: () => GetEventSpeakers,
|
|
266
274
|
GetEventSponsors: () => GetEventSponsors,
|
|
275
|
+
GetEventSponsorship: () => GetEventSponsorship,
|
|
276
|
+
GetEventSponsorshipLevels: () => GetEventSponsorshipLevels,
|
|
267
277
|
GetEvents: () => GetEvents,
|
|
268
278
|
GetFeaturedEvents: () => GetFeaturedEvents,
|
|
269
279
|
GetGroup: () => GetGroup,
|
|
@@ -553,6 +563,9 @@ __export(src_exports, {
|
|
|
553
563
|
SET_EVENT_FAQ_SECTION_QUERY_DATA: () => SET_EVENT_FAQ_SECTION_QUERY_DATA,
|
|
554
564
|
SET_EVENT_FAQ_SECTION_QUESTIONS_QUERY_DATA: () => SET_EVENT_FAQ_SECTION_QUESTIONS_QUERY_DATA,
|
|
555
565
|
SET_EVENT_FAQ_SECTION_QUESTION_QUERY_DATA: () => SET_EVENT_FAQ_SECTION_QUESTION_QUERY_DATA,
|
|
566
|
+
SET_EVENT_IMAGES_QUERY_DATA: () => SET_EVENT_IMAGES_QUERY_DATA,
|
|
567
|
+
SET_EVENT_IMAGE_QUERY_DATA: () => SET_EVENT_IMAGE_QUERY_DATA,
|
|
568
|
+
SET_EVENT_MEDIA_QUERY_DATA: () => SET_EVENT_MEDIA_QUERY_DATA,
|
|
556
569
|
SET_EVENT_PAGES_QUERY_DATA: () => SET_EVENT_PAGES_QUERY_DATA,
|
|
557
570
|
SET_EVENT_PAGE_QUERY_DATA: () => SET_EVENT_PAGE_QUERY_DATA,
|
|
558
571
|
SET_EVENT_QUERY_DATA: () => SET_EVENT_QUERY_DATA,
|
|
@@ -561,6 +574,8 @@ __export(src_exports, {
|
|
|
561
574
|
SET_EVENT_SESSION_QUERY_DATA: () => SET_EVENT_SESSION_QUERY_DATA,
|
|
562
575
|
SET_EVENT_SPEAKERS_QUERY_DATA: () => SET_EVENT_SPEAKERS_QUERY_DATA,
|
|
563
576
|
SET_EVENT_SPEAKER_QUERY_DATA: () => SET_EVENT_SPEAKER_QUERY_DATA,
|
|
577
|
+
SET_EVENT_SPONSORSHIP_LEVELS_QUERY_DATA: () => SET_EVENT_SPONSORSHIP_LEVELS_QUERY_DATA,
|
|
578
|
+
SET_EVENT_SPONSORSHIP_QUERY_DATA: () => SET_EVENT_SPONSORSHIP_QUERY_DATA,
|
|
564
579
|
SET_EVENT_SPONSORS_QUERY_DATA: () => SET_EVENT_SPONSORS_QUERY_DATA,
|
|
565
580
|
SET_GROUPS_QUERY_DATA: () => SET_GROUPS_QUERY_DATA,
|
|
566
581
|
SET_GROUP_ACTIVITIES_QUERY_DATA: () => SET_GROUP_ACTIVITIES_QUERY_DATA,
|
|
@@ -859,6 +874,9 @@ __export(src_exports, {
|
|
|
859
874
|
useGetEventFAQSectionQuestion: () => useGetEventFAQSectionQuestion,
|
|
860
875
|
useGetEventFaqSections: () => useGetEventFaqSections,
|
|
861
876
|
useGetEventFaqs: () => useGetEventFaqs,
|
|
877
|
+
useGetEventImage: () => useGetEventImage,
|
|
878
|
+
useGetEventImages: () => useGetEventImages,
|
|
879
|
+
useGetEventMedia: () => useGetEventMedia,
|
|
862
880
|
useGetEventPage: () => useGetEventPage,
|
|
863
881
|
useGetEventPages: () => useGetEventPages,
|
|
864
882
|
useGetEventQuestionSearchValues: () => useGetEventQuestionSearchValues,
|
|
@@ -868,6 +886,8 @@ __export(src_exports, {
|
|
|
868
886
|
useGetEventSpeaker: () => useGetEventSpeaker,
|
|
869
887
|
useGetEventSpeakers: () => useGetEventSpeakers,
|
|
870
888
|
useGetEventSponsors: () => useGetEventSponsors,
|
|
889
|
+
useGetEventSponsorship: () => useGetEventSponsorship,
|
|
890
|
+
useGetEventSponsorshipLevels: () => useGetEventSponsorshipLevels,
|
|
871
891
|
useGetEvents: () => useGetEvents,
|
|
872
892
|
useGetFeaturedEvents: () => useGetFeaturedEvents,
|
|
873
893
|
useGetGroup: () => useGetGroup,
|
|
@@ -1055,7 +1075,7 @@ __export(src_exports, {
|
|
|
1055
1075
|
useUploadChannelContentImage: () => useUploadChannelContentImage,
|
|
1056
1076
|
useUploadFile: () => useUploadFile
|
|
1057
1077
|
});
|
|
1058
|
-
module.exports = __toCommonJS(
|
|
1078
|
+
module.exports = __toCommonJS(index_exports);
|
|
1059
1079
|
|
|
1060
1080
|
// src/ConnectedXMProvider.tsx
|
|
1061
1081
|
var import_react = __toESM(require("react"));
|
|
@@ -3056,9 +3076,7 @@ var GetEvents = async ({
|
|
|
3056
3076
|
orderBy,
|
|
3057
3077
|
search,
|
|
3058
3078
|
past,
|
|
3059
|
-
|
|
3060
|
-
clientApiParams,
|
|
3061
|
-
locale
|
|
3079
|
+
clientApiParams
|
|
3062
3080
|
}) => {
|
|
3063
3081
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
3064
3082
|
const { data } = await clientApi.get(`/events`, {
|
|
@@ -3070,14 +3088,6 @@ var GetEvents = async ({
|
|
|
3070
3088
|
past: past !== void 0 ? past : void 0
|
|
3071
3089
|
}
|
|
3072
3090
|
});
|
|
3073
|
-
if (queryClient) {
|
|
3074
|
-
CacheIndividualQueries(
|
|
3075
|
-
data,
|
|
3076
|
-
queryClient,
|
|
3077
|
-
(eventId) => EVENT_QUERY_KEY(eventId),
|
|
3078
|
-
locale
|
|
3079
|
-
);
|
|
3080
|
-
}
|
|
3081
3091
|
return data;
|
|
3082
3092
|
};
|
|
3083
3093
|
var useGetEvents = (past = false, params = {}, options = {}) => {
|
|
@@ -4240,9 +4250,7 @@ var GetFeaturedEvents = async ({
|
|
|
4240
4250
|
pageParam,
|
|
4241
4251
|
pageSize,
|
|
4242
4252
|
orderBy,
|
|
4243
|
-
|
|
4244
|
-
clientApiParams,
|
|
4245
|
-
locale
|
|
4253
|
+
clientApiParams
|
|
4246
4254
|
}) => {
|
|
4247
4255
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
4248
4256
|
const { data } = await clientApi.get(`/events/featured`, {
|
|
@@ -4252,14 +4260,6 @@ var GetFeaturedEvents = async ({
|
|
|
4252
4260
|
orderBy: orderBy || void 0
|
|
4253
4261
|
}
|
|
4254
4262
|
});
|
|
4255
|
-
if (queryClient && data.status === "ok") {
|
|
4256
|
-
CacheIndividualQueries(
|
|
4257
|
-
data,
|
|
4258
|
-
queryClient,
|
|
4259
|
-
(eventId) => EVENT_QUERY_KEY(eventId),
|
|
4260
|
-
locale
|
|
4261
|
-
);
|
|
4262
|
-
}
|
|
4263
4263
|
return data;
|
|
4264
4264
|
};
|
|
4265
4265
|
var useGetFeaturedEvents = (params = {}, options = {}) => {
|
|
@@ -4467,6 +4467,179 @@ var useGetEventActivationSummary = (eventId = "", options = {}) => {
|
|
|
4467
4467
|
);
|
|
4468
4468
|
};
|
|
4469
4469
|
|
|
4470
|
+
// src/queries/events/useGetEventSponsorshipLevels.ts
|
|
4471
|
+
var EVENT_SPONSORSHIP_LEVELS_QUERY_KEY = (eventId) => [...EVENT_QUERY_KEY(eventId), "SPONSORSHIPS"];
|
|
4472
|
+
var SET_EVENT_SPONSORSHIP_LEVELS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
4473
|
+
client.setQueryData(
|
|
4474
|
+
[
|
|
4475
|
+
...EVENT_SPONSORSHIP_LEVELS_QUERY_KEY(...keyParams),
|
|
4476
|
+
...GetBaseSingleQueryKeys(...baseKeys)
|
|
4477
|
+
],
|
|
4478
|
+
response
|
|
4479
|
+
);
|
|
4480
|
+
};
|
|
4481
|
+
var GetEventSponsorshipLevels = async ({
|
|
4482
|
+
eventId,
|
|
4483
|
+
clientApiParams
|
|
4484
|
+
}) => {
|
|
4485
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4486
|
+
const { data } = await clientApi.get(`/events/${eventId}/sponsorships`);
|
|
4487
|
+
return data;
|
|
4488
|
+
};
|
|
4489
|
+
var useGetEventSponsorshipLevels = (eventId = "", options = {}) => {
|
|
4490
|
+
return useConnectedSingleQuery(
|
|
4491
|
+
EVENT_SPONSORSHIP_LEVELS_QUERY_KEY(eventId),
|
|
4492
|
+
(params) => GetEventSponsorshipLevels({ eventId, ...params }),
|
|
4493
|
+
{
|
|
4494
|
+
...options,
|
|
4495
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
4496
|
+
}
|
|
4497
|
+
);
|
|
4498
|
+
};
|
|
4499
|
+
|
|
4500
|
+
// src/queries/events/useGetEventSponsorship.ts
|
|
4501
|
+
var EVENT_SPONSORSHIP_QUERY_KEY = (eventId, sponsorshipId) => [...EVENT_SPONSORSHIP_LEVELS_QUERY_KEY(eventId), sponsorshipId];
|
|
4502
|
+
var SET_EVENT_SPONSORSHIP_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
4503
|
+
client.setQueryData(
|
|
4504
|
+
[
|
|
4505
|
+
...EVENT_SPONSORSHIP_QUERY_KEY(...keyParams),
|
|
4506
|
+
...GetBaseSingleQueryKeys(...baseKeys)
|
|
4507
|
+
],
|
|
4508
|
+
response
|
|
4509
|
+
);
|
|
4510
|
+
};
|
|
4511
|
+
var GetEventSponsorship = async ({
|
|
4512
|
+
eventId,
|
|
4513
|
+
sponsorshipId,
|
|
4514
|
+
clientApiParams
|
|
4515
|
+
}) => {
|
|
4516
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4517
|
+
const { data } = await clientApi.get(
|
|
4518
|
+
`/events/${eventId}/sponsorships/${sponsorshipId}`
|
|
4519
|
+
);
|
|
4520
|
+
return data;
|
|
4521
|
+
};
|
|
4522
|
+
var useGetEventSponsorship = (eventId = "", sponsorshipId = "", options = {}) => {
|
|
4523
|
+
return useConnectedSingleQuery(
|
|
4524
|
+
EVENT_SPONSORSHIP_QUERY_KEY(eventId, sponsorshipId),
|
|
4525
|
+
(params) => GetEventSponsorship({ eventId, sponsorshipId, ...params }),
|
|
4526
|
+
{
|
|
4527
|
+
...options,
|
|
4528
|
+
enabled: !!eventId && !!sponsorshipId && (options?.enabled ?? true)
|
|
4529
|
+
}
|
|
4530
|
+
);
|
|
4531
|
+
};
|
|
4532
|
+
|
|
4533
|
+
// src/queries/events/useGetEventMedia.ts
|
|
4534
|
+
var EVENT_MEDIA_QUERY_KEY = (eventId, type) => [...EVENT_QUERY_KEY(eventId), "MEDIA", type || "all"];
|
|
4535
|
+
var SET_EVENT_MEDIA_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
4536
|
+
client.setQueryData(
|
|
4537
|
+
[
|
|
4538
|
+
...EVENT_MEDIA_QUERY_KEY(...keyParams),
|
|
4539
|
+
...GetBaseInfiniteQueryKeys(...baseKeys)
|
|
4540
|
+
],
|
|
4541
|
+
setFirstPageData(response)
|
|
4542
|
+
);
|
|
4543
|
+
};
|
|
4544
|
+
var GetEventMedia = async ({
|
|
4545
|
+
eventId,
|
|
4546
|
+
type,
|
|
4547
|
+
pageParam,
|
|
4548
|
+
pageSize,
|
|
4549
|
+
orderBy,
|
|
4550
|
+
search,
|
|
4551
|
+
clientApiParams
|
|
4552
|
+
}) => {
|
|
4553
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4554
|
+
const { data } = await clientApi.get(`/events/${eventId}/media`, {
|
|
4555
|
+
params: {
|
|
4556
|
+
type: type || void 0,
|
|
4557
|
+
page: pageParam || void 0,
|
|
4558
|
+
pageSize: pageSize || void 0,
|
|
4559
|
+
orderBy: orderBy || void 0,
|
|
4560
|
+
search: search || void 0
|
|
4561
|
+
}
|
|
4562
|
+
});
|
|
4563
|
+
return data;
|
|
4564
|
+
};
|
|
4565
|
+
var useGetEventMedia = (eventId = "", type, params = {}, options = {}) => {
|
|
4566
|
+
return useConnectedInfiniteQuery(
|
|
4567
|
+
EVENT_MEDIA_QUERY_KEY(eventId, type),
|
|
4568
|
+
(params2) => GetEventMedia({ eventId, type, ...params2 }),
|
|
4569
|
+
params,
|
|
4570
|
+
{
|
|
4571
|
+
...options,
|
|
4572
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
4573
|
+
}
|
|
4574
|
+
);
|
|
4575
|
+
};
|
|
4576
|
+
|
|
4577
|
+
// src/queries/events/useGetEventImages.ts
|
|
4578
|
+
var EVENT_IMAGES_QUERY_KEY = (eventId) => [
|
|
4579
|
+
...EVENT_QUERY_KEY(eventId),
|
|
4580
|
+
"IMAGES"
|
|
4581
|
+
];
|
|
4582
|
+
var SET_EVENT_IMAGES_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
4583
|
+
client.setQueryData(
|
|
4584
|
+
[
|
|
4585
|
+
...EVENT_IMAGES_QUERY_KEY(...keyParams),
|
|
4586
|
+
...GetBaseSingleQueryKeys(...baseKeys)
|
|
4587
|
+
],
|
|
4588
|
+
response
|
|
4589
|
+
);
|
|
4590
|
+
};
|
|
4591
|
+
var GetEventImages = async ({
|
|
4592
|
+
eventId,
|
|
4593
|
+
clientApiParams
|
|
4594
|
+
}) => {
|
|
4595
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4596
|
+
const { data } = await clientApi.get(`/events/${eventId}/images`);
|
|
4597
|
+
return data;
|
|
4598
|
+
};
|
|
4599
|
+
var useGetEventImages = (eventId = "", options = {}) => {
|
|
4600
|
+
return useConnectedSingleQuery(
|
|
4601
|
+
EVENT_IMAGES_QUERY_KEY(eventId),
|
|
4602
|
+
(params) => GetEventImages({ eventId, ...params }),
|
|
4603
|
+
{
|
|
4604
|
+
...options,
|
|
4605
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
4606
|
+
}
|
|
4607
|
+
);
|
|
4608
|
+
};
|
|
4609
|
+
|
|
4610
|
+
// src/queries/events/useGetEventImage.ts
|
|
4611
|
+
var EVENT_IMAGE_QUERY_KEY = (eventId, galleryImageId) => [...EVENT_IMAGES_QUERY_KEY(eventId), galleryImageId];
|
|
4612
|
+
var SET_EVENT_IMAGE_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
4613
|
+
client.setQueryData(
|
|
4614
|
+
[
|
|
4615
|
+
...EVENT_IMAGE_QUERY_KEY(...keyParams),
|
|
4616
|
+
...GetBaseSingleQueryKeys(...baseKeys)
|
|
4617
|
+
],
|
|
4618
|
+
response
|
|
4619
|
+
);
|
|
4620
|
+
};
|
|
4621
|
+
var GetEventImage = async ({
|
|
4622
|
+
eventId,
|
|
4623
|
+
galleryImageId,
|
|
4624
|
+
clientApiParams
|
|
4625
|
+
}) => {
|
|
4626
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
4627
|
+
const { data } = await clientApi.get(
|
|
4628
|
+
`/events/${eventId}/images/${galleryImageId}`
|
|
4629
|
+
);
|
|
4630
|
+
return data;
|
|
4631
|
+
};
|
|
4632
|
+
var useGetEventImage = (eventId = "", galleryImageId, options = {}) => {
|
|
4633
|
+
return useConnectedSingleQuery(
|
|
4634
|
+
EVENT_IMAGE_QUERY_KEY(eventId, galleryImageId),
|
|
4635
|
+
(params) => GetEventImage({ eventId, galleryImageId, ...params }),
|
|
4636
|
+
{
|
|
4637
|
+
...options,
|
|
4638
|
+
enabled: !!eventId && !!galleryImageId && (options?.enabled ?? true)
|
|
4639
|
+
}
|
|
4640
|
+
);
|
|
4641
|
+
};
|
|
4642
|
+
|
|
4470
4643
|
// src/queries/groups/useGetAllGroupEvents.ts
|
|
4471
4644
|
var ALL_GROUP_EVENTS = (past) => [
|
|
4472
4645
|
...EVENTS_QUERY_KEY(past),
|
|
@@ -13208,6 +13381,9 @@ var useEnableIntegration = (options = {}) => {
|
|
|
13208
13381
|
EVENT_FAQ_SECTION_QUERY_KEY,
|
|
13209
13382
|
EVENT_FAQ_SECTION_QUESTIONS_QUERY_KEY,
|
|
13210
13383
|
EVENT_FAQ_SECTION_QUESTION_QUERY_KEY,
|
|
13384
|
+
EVENT_IMAGES_QUERY_KEY,
|
|
13385
|
+
EVENT_IMAGE_QUERY_KEY,
|
|
13386
|
+
EVENT_MEDIA_QUERY_KEY,
|
|
13211
13387
|
EVENT_PAGES_QUERY_KEY,
|
|
13212
13388
|
EVENT_PAGE_QUERY_KEY,
|
|
13213
13389
|
EVENT_QUERY_KEY,
|
|
@@ -13217,6 +13393,8 @@ var useEnableIntegration = (options = {}) => {
|
|
|
13217
13393
|
EVENT_SESSION_QUERY_KEY,
|
|
13218
13394
|
EVENT_SPEAKERS_QUERY_KEY,
|
|
13219
13395
|
EVENT_SPEAKER_QUERY_KEY,
|
|
13396
|
+
EVENT_SPONSORSHIP_LEVELS_QUERY_KEY,
|
|
13397
|
+
EVENT_SPONSORSHIP_QUERY_KEY,
|
|
13220
13398
|
EVENT_SPONSORS_QUERY_KEY,
|
|
13221
13399
|
EnableIntegration,
|
|
13222
13400
|
EventEmailType,
|
|
@@ -13291,6 +13469,9 @@ var useEnableIntegration = (options = {}) => {
|
|
|
13291
13469
|
GetEventFAQSectionQuestion,
|
|
13292
13470
|
GetEventFaqSections,
|
|
13293
13471
|
GetEventFaqs,
|
|
13472
|
+
GetEventImage,
|
|
13473
|
+
GetEventImages,
|
|
13474
|
+
GetEventMedia,
|
|
13294
13475
|
GetEventPage,
|
|
13295
13476
|
GetEventPages,
|
|
13296
13477
|
GetEventQuestionSearchValues,
|
|
@@ -13300,6 +13481,8 @@ var useEnableIntegration = (options = {}) => {
|
|
|
13300
13481
|
GetEventSpeaker,
|
|
13301
13482
|
GetEventSpeakers,
|
|
13302
13483
|
GetEventSponsors,
|
|
13484
|
+
GetEventSponsorship,
|
|
13485
|
+
GetEventSponsorshipLevels,
|
|
13303
13486
|
GetEvents,
|
|
13304
13487
|
GetFeaturedEvents,
|
|
13305
13488
|
GetGroup,
|
|
@@ -13589,6 +13772,9 @@ var useEnableIntegration = (options = {}) => {
|
|
|
13589
13772
|
SET_EVENT_FAQ_SECTION_QUERY_DATA,
|
|
13590
13773
|
SET_EVENT_FAQ_SECTION_QUESTIONS_QUERY_DATA,
|
|
13591
13774
|
SET_EVENT_FAQ_SECTION_QUESTION_QUERY_DATA,
|
|
13775
|
+
SET_EVENT_IMAGES_QUERY_DATA,
|
|
13776
|
+
SET_EVENT_IMAGE_QUERY_DATA,
|
|
13777
|
+
SET_EVENT_MEDIA_QUERY_DATA,
|
|
13592
13778
|
SET_EVENT_PAGES_QUERY_DATA,
|
|
13593
13779
|
SET_EVENT_PAGE_QUERY_DATA,
|
|
13594
13780
|
SET_EVENT_QUERY_DATA,
|
|
@@ -13597,6 +13783,8 @@ var useEnableIntegration = (options = {}) => {
|
|
|
13597
13783
|
SET_EVENT_SESSION_QUERY_DATA,
|
|
13598
13784
|
SET_EVENT_SPEAKERS_QUERY_DATA,
|
|
13599
13785
|
SET_EVENT_SPEAKER_QUERY_DATA,
|
|
13786
|
+
SET_EVENT_SPONSORSHIP_LEVELS_QUERY_DATA,
|
|
13787
|
+
SET_EVENT_SPONSORSHIP_QUERY_DATA,
|
|
13600
13788
|
SET_EVENT_SPONSORS_QUERY_DATA,
|
|
13601
13789
|
SET_GROUPS_QUERY_DATA,
|
|
13602
13790
|
SET_GROUP_ACTIVITIES_QUERY_DATA,
|
|
@@ -13895,6 +14083,9 @@ var useEnableIntegration = (options = {}) => {
|
|
|
13895
14083
|
useGetEventFAQSectionQuestion,
|
|
13896
14084
|
useGetEventFaqSections,
|
|
13897
14085
|
useGetEventFaqs,
|
|
14086
|
+
useGetEventImage,
|
|
14087
|
+
useGetEventImages,
|
|
14088
|
+
useGetEventMedia,
|
|
13898
14089
|
useGetEventPage,
|
|
13899
14090
|
useGetEventPages,
|
|
13900
14091
|
useGetEventQuestionSearchValues,
|
|
@@ -13904,6 +14095,8 @@ var useEnableIntegration = (options = {}) => {
|
|
|
13904
14095
|
useGetEventSpeaker,
|
|
13905
14096
|
useGetEventSpeakers,
|
|
13906
14097
|
useGetEventSponsors,
|
|
14098
|
+
useGetEventSponsorship,
|
|
14099
|
+
useGetEventSponsorshipLevels,
|
|
13907
14100
|
useGetEvents,
|
|
13908
14101
|
useGetFeaturedEvents,
|
|
13909
14102
|
useGetGroup,
|
package/dist/index.mjs
CHANGED
|
@@ -2001,9 +2001,7 @@ var GetEvents = async ({
|
|
|
2001
2001
|
orderBy,
|
|
2002
2002
|
search,
|
|
2003
2003
|
past,
|
|
2004
|
-
|
|
2005
|
-
clientApiParams,
|
|
2006
|
-
locale
|
|
2004
|
+
clientApiParams
|
|
2007
2005
|
}) => {
|
|
2008
2006
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
2009
2007
|
const { data } = await clientApi.get(`/events`, {
|
|
@@ -2015,14 +2013,6 @@ var GetEvents = async ({
|
|
|
2015
2013
|
past: past !== void 0 ? past : void 0
|
|
2016
2014
|
}
|
|
2017
2015
|
});
|
|
2018
|
-
if (queryClient) {
|
|
2019
|
-
CacheIndividualQueries(
|
|
2020
|
-
data,
|
|
2021
|
-
queryClient,
|
|
2022
|
-
(eventId) => EVENT_QUERY_KEY(eventId),
|
|
2023
|
-
locale
|
|
2024
|
-
);
|
|
2025
|
-
}
|
|
2026
2016
|
return data;
|
|
2027
2017
|
};
|
|
2028
2018
|
var useGetEvents = (past = false, params = {}, options = {}) => {
|
|
@@ -3185,9 +3175,7 @@ var GetFeaturedEvents = async ({
|
|
|
3185
3175
|
pageParam,
|
|
3186
3176
|
pageSize,
|
|
3187
3177
|
orderBy,
|
|
3188
|
-
|
|
3189
|
-
clientApiParams,
|
|
3190
|
-
locale
|
|
3178
|
+
clientApiParams
|
|
3191
3179
|
}) => {
|
|
3192
3180
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
3193
3181
|
const { data } = await clientApi.get(`/events/featured`, {
|
|
@@ -3197,14 +3185,6 @@ var GetFeaturedEvents = async ({
|
|
|
3197
3185
|
orderBy: orderBy || void 0
|
|
3198
3186
|
}
|
|
3199
3187
|
});
|
|
3200
|
-
if (queryClient && data.status === "ok") {
|
|
3201
|
-
CacheIndividualQueries(
|
|
3202
|
-
data,
|
|
3203
|
-
queryClient,
|
|
3204
|
-
(eventId) => EVENT_QUERY_KEY(eventId),
|
|
3205
|
-
locale
|
|
3206
|
-
);
|
|
3207
|
-
}
|
|
3208
3188
|
return data;
|
|
3209
3189
|
};
|
|
3210
3190
|
var useGetFeaturedEvents = (params = {}, options = {}) => {
|
|
@@ -3412,6 +3392,179 @@ var useGetEventActivationSummary = (eventId = "", options = {}) => {
|
|
|
3412
3392
|
);
|
|
3413
3393
|
};
|
|
3414
3394
|
|
|
3395
|
+
// src/queries/events/useGetEventSponsorshipLevels.ts
|
|
3396
|
+
var EVENT_SPONSORSHIP_LEVELS_QUERY_KEY = (eventId) => [...EVENT_QUERY_KEY(eventId), "SPONSORSHIPS"];
|
|
3397
|
+
var SET_EVENT_SPONSORSHIP_LEVELS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
3398
|
+
client.setQueryData(
|
|
3399
|
+
[
|
|
3400
|
+
...EVENT_SPONSORSHIP_LEVELS_QUERY_KEY(...keyParams),
|
|
3401
|
+
...GetBaseSingleQueryKeys(...baseKeys)
|
|
3402
|
+
],
|
|
3403
|
+
response
|
|
3404
|
+
);
|
|
3405
|
+
};
|
|
3406
|
+
var GetEventSponsorshipLevels = async ({
|
|
3407
|
+
eventId,
|
|
3408
|
+
clientApiParams
|
|
3409
|
+
}) => {
|
|
3410
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3411
|
+
const { data } = await clientApi.get(`/events/${eventId}/sponsorships`);
|
|
3412
|
+
return data;
|
|
3413
|
+
};
|
|
3414
|
+
var useGetEventSponsorshipLevels = (eventId = "", options = {}) => {
|
|
3415
|
+
return useConnectedSingleQuery(
|
|
3416
|
+
EVENT_SPONSORSHIP_LEVELS_QUERY_KEY(eventId),
|
|
3417
|
+
(params) => GetEventSponsorshipLevels({ eventId, ...params }),
|
|
3418
|
+
{
|
|
3419
|
+
...options,
|
|
3420
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
3421
|
+
}
|
|
3422
|
+
);
|
|
3423
|
+
};
|
|
3424
|
+
|
|
3425
|
+
// src/queries/events/useGetEventSponsorship.ts
|
|
3426
|
+
var EVENT_SPONSORSHIP_QUERY_KEY = (eventId, sponsorshipId) => [...EVENT_SPONSORSHIP_LEVELS_QUERY_KEY(eventId), sponsorshipId];
|
|
3427
|
+
var SET_EVENT_SPONSORSHIP_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
3428
|
+
client.setQueryData(
|
|
3429
|
+
[
|
|
3430
|
+
...EVENT_SPONSORSHIP_QUERY_KEY(...keyParams),
|
|
3431
|
+
...GetBaseSingleQueryKeys(...baseKeys)
|
|
3432
|
+
],
|
|
3433
|
+
response
|
|
3434
|
+
);
|
|
3435
|
+
};
|
|
3436
|
+
var GetEventSponsorship = async ({
|
|
3437
|
+
eventId,
|
|
3438
|
+
sponsorshipId,
|
|
3439
|
+
clientApiParams
|
|
3440
|
+
}) => {
|
|
3441
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3442
|
+
const { data } = await clientApi.get(
|
|
3443
|
+
`/events/${eventId}/sponsorships/${sponsorshipId}`
|
|
3444
|
+
);
|
|
3445
|
+
return data;
|
|
3446
|
+
};
|
|
3447
|
+
var useGetEventSponsorship = (eventId = "", sponsorshipId = "", options = {}) => {
|
|
3448
|
+
return useConnectedSingleQuery(
|
|
3449
|
+
EVENT_SPONSORSHIP_QUERY_KEY(eventId, sponsorshipId),
|
|
3450
|
+
(params) => GetEventSponsorship({ eventId, sponsorshipId, ...params }),
|
|
3451
|
+
{
|
|
3452
|
+
...options,
|
|
3453
|
+
enabled: !!eventId && !!sponsorshipId && (options?.enabled ?? true)
|
|
3454
|
+
}
|
|
3455
|
+
);
|
|
3456
|
+
};
|
|
3457
|
+
|
|
3458
|
+
// src/queries/events/useGetEventMedia.ts
|
|
3459
|
+
var EVENT_MEDIA_QUERY_KEY = (eventId, type) => [...EVENT_QUERY_KEY(eventId), "MEDIA", type || "all"];
|
|
3460
|
+
var SET_EVENT_MEDIA_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
3461
|
+
client.setQueryData(
|
|
3462
|
+
[
|
|
3463
|
+
...EVENT_MEDIA_QUERY_KEY(...keyParams),
|
|
3464
|
+
...GetBaseInfiniteQueryKeys(...baseKeys)
|
|
3465
|
+
],
|
|
3466
|
+
setFirstPageData(response)
|
|
3467
|
+
);
|
|
3468
|
+
};
|
|
3469
|
+
var GetEventMedia = async ({
|
|
3470
|
+
eventId,
|
|
3471
|
+
type,
|
|
3472
|
+
pageParam,
|
|
3473
|
+
pageSize,
|
|
3474
|
+
orderBy,
|
|
3475
|
+
search,
|
|
3476
|
+
clientApiParams
|
|
3477
|
+
}) => {
|
|
3478
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3479
|
+
const { data } = await clientApi.get(`/events/${eventId}/media`, {
|
|
3480
|
+
params: {
|
|
3481
|
+
type: type || void 0,
|
|
3482
|
+
page: pageParam || void 0,
|
|
3483
|
+
pageSize: pageSize || void 0,
|
|
3484
|
+
orderBy: orderBy || void 0,
|
|
3485
|
+
search: search || void 0
|
|
3486
|
+
}
|
|
3487
|
+
});
|
|
3488
|
+
return data;
|
|
3489
|
+
};
|
|
3490
|
+
var useGetEventMedia = (eventId = "", type, params = {}, options = {}) => {
|
|
3491
|
+
return useConnectedInfiniteQuery(
|
|
3492
|
+
EVENT_MEDIA_QUERY_KEY(eventId, type),
|
|
3493
|
+
(params2) => GetEventMedia({ eventId, type, ...params2 }),
|
|
3494
|
+
params,
|
|
3495
|
+
{
|
|
3496
|
+
...options,
|
|
3497
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
3498
|
+
}
|
|
3499
|
+
);
|
|
3500
|
+
};
|
|
3501
|
+
|
|
3502
|
+
// src/queries/events/useGetEventImages.ts
|
|
3503
|
+
var EVENT_IMAGES_QUERY_KEY = (eventId) => [
|
|
3504
|
+
...EVENT_QUERY_KEY(eventId),
|
|
3505
|
+
"IMAGES"
|
|
3506
|
+
];
|
|
3507
|
+
var SET_EVENT_IMAGES_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
3508
|
+
client.setQueryData(
|
|
3509
|
+
[
|
|
3510
|
+
...EVENT_IMAGES_QUERY_KEY(...keyParams),
|
|
3511
|
+
...GetBaseSingleQueryKeys(...baseKeys)
|
|
3512
|
+
],
|
|
3513
|
+
response
|
|
3514
|
+
);
|
|
3515
|
+
};
|
|
3516
|
+
var GetEventImages = async ({
|
|
3517
|
+
eventId,
|
|
3518
|
+
clientApiParams
|
|
3519
|
+
}) => {
|
|
3520
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3521
|
+
const { data } = await clientApi.get(`/events/${eventId}/images`);
|
|
3522
|
+
return data;
|
|
3523
|
+
};
|
|
3524
|
+
var useGetEventImages = (eventId = "", options = {}) => {
|
|
3525
|
+
return useConnectedSingleQuery(
|
|
3526
|
+
EVENT_IMAGES_QUERY_KEY(eventId),
|
|
3527
|
+
(params) => GetEventImages({ eventId, ...params }),
|
|
3528
|
+
{
|
|
3529
|
+
...options,
|
|
3530
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
3531
|
+
}
|
|
3532
|
+
);
|
|
3533
|
+
};
|
|
3534
|
+
|
|
3535
|
+
// src/queries/events/useGetEventImage.ts
|
|
3536
|
+
var EVENT_IMAGE_QUERY_KEY = (eventId, galleryImageId) => [...EVENT_IMAGES_QUERY_KEY(eventId), galleryImageId];
|
|
3537
|
+
var SET_EVENT_IMAGE_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
3538
|
+
client.setQueryData(
|
|
3539
|
+
[
|
|
3540
|
+
...EVENT_IMAGE_QUERY_KEY(...keyParams),
|
|
3541
|
+
...GetBaseSingleQueryKeys(...baseKeys)
|
|
3542
|
+
],
|
|
3543
|
+
response
|
|
3544
|
+
);
|
|
3545
|
+
};
|
|
3546
|
+
var GetEventImage = async ({
|
|
3547
|
+
eventId,
|
|
3548
|
+
galleryImageId,
|
|
3549
|
+
clientApiParams
|
|
3550
|
+
}) => {
|
|
3551
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
3552
|
+
const { data } = await clientApi.get(
|
|
3553
|
+
`/events/${eventId}/images/${galleryImageId}`
|
|
3554
|
+
);
|
|
3555
|
+
return data;
|
|
3556
|
+
};
|
|
3557
|
+
var useGetEventImage = (eventId = "", galleryImageId, options = {}) => {
|
|
3558
|
+
return useConnectedSingleQuery(
|
|
3559
|
+
EVENT_IMAGE_QUERY_KEY(eventId, galleryImageId),
|
|
3560
|
+
(params) => GetEventImage({ eventId, galleryImageId, ...params }),
|
|
3561
|
+
{
|
|
3562
|
+
...options,
|
|
3563
|
+
enabled: !!eventId && !!galleryImageId && (options?.enabled ?? true)
|
|
3564
|
+
}
|
|
3565
|
+
);
|
|
3566
|
+
};
|
|
3567
|
+
|
|
3415
3568
|
// src/queries/groups/useGetAllGroupEvents.ts
|
|
3416
3569
|
var ALL_GROUP_EVENTS = (past) => [
|
|
3417
3570
|
...EVENTS_QUERY_KEY(past),
|
|
@@ -12155,6 +12308,9 @@ export {
|
|
|
12155
12308
|
EVENT_FAQ_SECTION_QUERY_KEY,
|
|
12156
12309
|
EVENT_FAQ_SECTION_QUESTIONS_QUERY_KEY,
|
|
12157
12310
|
EVENT_FAQ_SECTION_QUESTION_QUERY_KEY,
|
|
12311
|
+
EVENT_IMAGES_QUERY_KEY,
|
|
12312
|
+
EVENT_IMAGE_QUERY_KEY,
|
|
12313
|
+
EVENT_MEDIA_QUERY_KEY,
|
|
12158
12314
|
EVENT_PAGES_QUERY_KEY,
|
|
12159
12315
|
EVENT_PAGE_QUERY_KEY,
|
|
12160
12316
|
EVENT_QUERY_KEY,
|
|
@@ -12164,6 +12320,8 @@ export {
|
|
|
12164
12320
|
EVENT_SESSION_QUERY_KEY,
|
|
12165
12321
|
EVENT_SPEAKERS_QUERY_KEY,
|
|
12166
12322
|
EVENT_SPEAKER_QUERY_KEY,
|
|
12323
|
+
EVENT_SPONSORSHIP_LEVELS_QUERY_KEY,
|
|
12324
|
+
EVENT_SPONSORSHIP_QUERY_KEY,
|
|
12167
12325
|
EVENT_SPONSORS_QUERY_KEY,
|
|
12168
12326
|
EnableIntegration,
|
|
12169
12327
|
EventEmailType,
|
|
@@ -12238,6 +12396,9 @@ export {
|
|
|
12238
12396
|
GetEventFAQSectionQuestion,
|
|
12239
12397
|
GetEventFaqSections,
|
|
12240
12398
|
GetEventFaqs,
|
|
12399
|
+
GetEventImage,
|
|
12400
|
+
GetEventImages,
|
|
12401
|
+
GetEventMedia,
|
|
12241
12402
|
GetEventPage,
|
|
12242
12403
|
GetEventPages,
|
|
12243
12404
|
GetEventQuestionSearchValues,
|
|
@@ -12247,6 +12408,8 @@ export {
|
|
|
12247
12408
|
GetEventSpeaker,
|
|
12248
12409
|
GetEventSpeakers,
|
|
12249
12410
|
GetEventSponsors,
|
|
12411
|
+
GetEventSponsorship,
|
|
12412
|
+
GetEventSponsorshipLevels,
|
|
12250
12413
|
GetEvents,
|
|
12251
12414
|
GetFeaturedEvents,
|
|
12252
12415
|
GetGroup,
|
|
@@ -12536,6 +12699,9 @@ export {
|
|
|
12536
12699
|
SET_EVENT_FAQ_SECTION_QUERY_DATA,
|
|
12537
12700
|
SET_EVENT_FAQ_SECTION_QUESTIONS_QUERY_DATA,
|
|
12538
12701
|
SET_EVENT_FAQ_SECTION_QUESTION_QUERY_DATA,
|
|
12702
|
+
SET_EVENT_IMAGES_QUERY_DATA,
|
|
12703
|
+
SET_EVENT_IMAGE_QUERY_DATA,
|
|
12704
|
+
SET_EVENT_MEDIA_QUERY_DATA,
|
|
12539
12705
|
SET_EVENT_PAGES_QUERY_DATA,
|
|
12540
12706
|
SET_EVENT_PAGE_QUERY_DATA,
|
|
12541
12707
|
SET_EVENT_QUERY_DATA,
|
|
@@ -12544,6 +12710,8 @@ export {
|
|
|
12544
12710
|
SET_EVENT_SESSION_QUERY_DATA,
|
|
12545
12711
|
SET_EVENT_SPEAKERS_QUERY_DATA,
|
|
12546
12712
|
SET_EVENT_SPEAKER_QUERY_DATA,
|
|
12713
|
+
SET_EVENT_SPONSORSHIP_LEVELS_QUERY_DATA,
|
|
12714
|
+
SET_EVENT_SPONSORSHIP_QUERY_DATA,
|
|
12547
12715
|
SET_EVENT_SPONSORS_QUERY_DATA,
|
|
12548
12716
|
SET_GROUPS_QUERY_DATA,
|
|
12549
12717
|
SET_GROUP_ACTIVITIES_QUERY_DATA,
|
|
@@ -12842,6 +13010,9 @@ export {
|
|
|
12842
13010
|
useGetEventFAQSectionQuestion,
|
|
12843
13011
|
useGetEventFaqSections,
|
|
12844
13012
|
useGetEventFaqs,
|
|
13013
|
+
useGetEventImage,
|
|
13014
|
+
useGetEventImages,
|
|
13015
|
+
useGetEventMedia,
|
|
12845
13016
|
useGetEventPage,
|
|
12846
13017
|
useGetEventPages,
|
|
12847
13018
|
useGetEventQuestionSearchValues,
|
|
@@ -12851,6 +13022,8 @@ export {
|
|
|
12851
13022
|
useGetEventSpeaker,
|
|
12852
13023
|
useGetEventSpeakers,
|
|
12853
13024
|
useGetEventSponsors,
|
|
13025
|
+
useGetEventSponsorship,
|
|
13026
|
+
useGetEventSponsorshipLevels,
|
|
12854
13027
|
useGetEvents,
|
|
12855
13028
|
useGetFeaturedEvents,
|
|
12856
13029
|
useGetGroup,
|