@connectedxm/client 1.0.28 → 1.0.29
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 +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +12 -6
- package/dist/index.mjs +12 -6
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2555,13 +2555,14 @@ interface GetSelfChatChannelsProps extends InfiniteQueryParams {
|
|
|
2555
2555
|
declare const GetSelfChatChannels: ({ pageParam, pageSize, orderBy, search, queryClient, clientApiParams, locale, }: GetSelfChatChannelsProps) => Promise<ConnectedXMResponse<ChatChannelMember[]>>;
|
|
2556
2556
|
declare const useGetSelfChatChannels: (params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfChatChannels>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<ChatChannelMember[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
2557
2557
|
|
|
2558
|
-
declare const SELF_EVENT_REGISTRATION_QUERY_KEY: (eventId: string, registrationId?: string) => QueryKey;
|
|
2558
|
+
declare const SELF_EVENT_REGISTRATION_QUERY_KEY: (eventId: string, registrationId?: string, create?: boolean) => QueryKey;
|
|
2559
2559
|
declare const SET_SELF_EVENT_REGISTRATION_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof SELF_EVENT_REGISTRATION_QUERY_KEY>, response: Awaited<ReturnType<typeof GetSelfEventRegistration>>, baseKeys?: Parameters<typeof GetBaseSingleQueryKeys>) => void;
|
|
2560
2560
|
interface GetSelfEventRegistrationProps extends SingleQueryParams {
|
|
2561
2561
|
eventId: string;
|
|
2562
|
+
create: boolean;
|
|
2562
2563
|
}
|
|
2563
|
-
declare const GetSelfEventRegistration: ({ eventId, clientApiParams, }: GetSelfEventRegistrationProps) => Promise<ConnectedXMResponse<Registration>>;
|
|
2564
|
-
declare const useGetSelfEventRegistration: (eventId: string, options?: SingleQueryOptions<ReturnType<typeof GetSelfEventRegistration>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<Registration>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
2564
|
+
declare const GetSelfEventRegistration: ({ eventId, create, clientApiParams, }: GetSelfEventRegistrationProps) => Promise<ConnectedXMResponse<Registration>>;
|
|
2565
|
+
declare const useGetSelfEventRegistration: (eventId: string, create?: boolean, options?: SingleQueryOptions<ReturnType<typeof GetSelfEventRegistration>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<Registration>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
2565
2566
|
|
|
2566
2567
|
declare const SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY: (eventId: string, registrationId: string) => unknown[];
|
|
2567
2568
|
interface GetSelfEventRegistrationIntentProps extends SingleQueryParams {
|
package/dist/index.d.ts
CHANGED
|
@@ -2555,13 +2555,14 @@ interface GetSelfChatChannelsProps extends InfiniteQueryParams {
|
|
|
2555
2555
|
declare const GetSelfChatChannels: ({ pageParam, pageSize, orderBy, search, queryClient, clientApiParams, locale, }: GetSelfChatChannelsProps) => Promise<ConnectedXMResponse<ChatChannelMember[]>>;
|
|
2556
2556
|
declare const useGetSelfChatChannels: (params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfChatChannels>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<ChatChannelMember[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
2557
2557
|
|
|
2558
|
-
declare const SELF_EVENT_REGISTRATION_QUERY_KEY: (eventId: string, registrationId?: string) => QueryKey;
|
|
2558
|
+
declare const SELF_EVENT_REGISTRATION_QUERY_KEY: (eventId: string, registrationId?: string, create?: boolean) => QueryKey;
|
|
2559
2559
|
declare const SET_SELF_EVENT_REGISTRATION_QUERY_DATA: (client: QueryClient, keyParams: Parameters<typeof SELF_EVENT_REGISTRATION_QUERY_KEY>, response: Awaited<ReturnType<typeof GetSelfEventRegistration>>, baseKeys?: Parameters<typeof GetBaseSingleQueryKeys>) => void;
|
|
2560
2560
|
interface GetSelfEventRegistrationProps extends SingleQueryParams {
|
|
2561
2561
|
eventId: string;
|
|
2562
|
+
create: boolean;
|
|
2562
2563
|
}
|
|
2563
|
-
declare const GetSelfEventRegistration: ({ eventId, clientApiParams, }: GetSelfEventRegistrationProps) => Promise<ConnectedXMResponse<Registration>>;
|
|
2564
|
-
declare const useGetSelfEventRegistration: (eventId: string, options?: SingleQueryOptions<ReturnType<typeof GetSelfEventRegistration>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<Registration>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
2564
|
+
declare const GetSelfEventRegistration: ({ eventId, create, clientApiParams, }: GetSelfEventRegistrationProps) => Promise<ConnectedXMResponse<Registration>>;
|
|
2565
|
+
declare const useGetSelfEventRegistration: (eventId: string, create?: boolean, options?: SingleQueryOptions<ReturnType<typeof GetSelfEventRegistration>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<Registration>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
|
|
2565
2566
|
|
|
2566
2567
|
declare const SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY: (eventId: string, registrationId: string) => unknown[];
|
|
2567
2568
|
interface GetSelfEventRegistrationIntentProps extends SingleQueryParams {
|
package/dist/index.js
CHANGED
|
@@ -5467,11 +5467,14 @@ var useGetSelfChatChannelMessages = (channelId = "", params = {}, options = {})
|
|
|
5467
5467
|
};
|
|
5468
5468
|
|
|
5469
5469
|
// src/queries/self/registration/useGetSelfEventRegistration.ts
|
|
5470
|
-
var SELF_EVENT_REGISTRATION_QUERY_KEY = (eventId, registrationId) => {
|
|
5470
|
+
var SELF_EVENT_REGISTRATION_QUERY_KEY = (eventId, registrationId, create) => {
|
|
5471
5471
|
const key = [...SELF_QUERY_KEY(), "EVENT_REGISTRATION", eventId];
|
|
5472
5472
|
if (registrationId) {
|
|
5473
5473
|
key.push(registrationId);
|
|
5474
5474
|
}
|
|
5475
|
+
if (create) {
|
|
5476
|
+
key.push("CREATE");
|
|
5477
|
+
}
|
|
5475
5478
|
return key;
|
|
5476
5479
|
};
|
|
5477
5480
|
var SET_SELF_EVENT_REGISTRATION_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
@@ -5485,21 +5488,24 @@ var SET_SELF_EVENT_REGISTRATION_QUERY_DATA = (client, keyParams, response, baseK
|
|
|
5485
5488
|
};
|
|
5486
5489
|
var GetSelfEventRegistration = async ({
|
|
5487
5490
|
eventId,
|
|
5491
|
+
create,
|
|
5488
5492
|
clientApiParams
|
|
5489
5493
|
}) => {
|
|
5490
5494
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
5491
|
-
const { data } = await clientApi.get(
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
+
const { data } = await clientApi.get(`/self/events/${eventId}/registration`, {
|
|
5496
|
+
params: {
|
|
5497
|
+
create: create ? "true" : "false"
|
|
5498
|
+
}
|
|
5499
|
+
});
|
|
5495
5500
|
return data;
|
|
5496
5501
|
};
|
|
5497
|
-
var useGetSelfEventRegistration = (eventId, options = {}) => {
|
|
5502
|
+
var useGetSelfEventRegistration = (eventId, create = false, options = {}) => {
|
|
5498
5503
|
const { authenticated } = useConnectedXM();
|
|
5499
5504
|
return useConnectedSingleQuery_default(
|
|
5500
5505
|
SELF_EVENT_REGISTRATION_QUERY_KEY(eventId),
|
|
5501
5506
|
(params) => GetSelfEventRegistration({
|
|
5502
5507
|
eventId,
|
|
5508
|
+
create,
|
|
5503
5509
|
...params
|
|
5504
5510
|
}),
|
|
5505
5511
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -4502,11 +4502,14 @@ var useGetSelfChatChannelMessages = (channelId = "", params = {}, options = {})
|
|
|
4502
4502
|
};
|
|
4503
4503
|
|
|
4504
4504
|
// src/queries/self/registration/useGetSelfEventRegistration.ts
|
|
4505
|
-
var SELF_EVENT_REGISTRATION_QUERY_KEY = (eventId, registrationId) => {
|
|
4505
|
+
var SELF_EVENT_REGISTRATION_QUERY_KEY = (eventId, registrationId, create) => {
|
|
4506
4506
|
const key = [...SELF_QUERY_KEY(), "EVENT_REGISTRATION", eventId];
|
|
4507
4507
|
if (registrationId) {
|
|
4508
4508
|
key.push(registrationId);
|
|
4509
4509
|
}
|
|
4510
|
+
if (create) {
|
|
4511
|
+
key.push("CREATE");
|
|
4512
|
+
}
|
|
4510
4513
|
return key;
|
|
4511
4514
|
};
|
|
4512
4515
|
var SET_SELF_EVENT_REGISTRATION_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
@@ -4520,21 +4523,24 @@ var SET_SELF_EVENT_REGISTRATION_QUERY_DATA = (client, keyParams, response, baseK
|
|
|
4520
4523
|
};
|
|
4521
4524
|
var GetSelfEventRegistration = async ({
|
|
4522
4525
|
eventId,
|
|
4526
|
+
create,
|
|
4523
4527
|
clientApiParams
|
|
4524
4528
|
}) => {
|
|
4525
4529
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
4526
|
-
const { data } = await clientApi.get(
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
+
const { data } = await clientApi.get(`/self/events/${eventId}/registration`, {
|
|
4531
|
+
params: {
|
|
4532
|
+
create: create ? "true" : "false"
|
|
4533
|
+
}
|
|
4534
|
+
});
|
|
4530
4535
|
return data;
|
|
4531
4536
|
};
|
|
4532
|
-
var useGetSelfEventRegistration = (eventId, options = {}) => {
|
|
4537
|
+
var useGetSelfEventRegistration = (eventId, create = false, options = {}) => {
|
|
4533
4538
|
const { authenticated } = useConnectedXM();
|
|
4534
4539
|
return useConnectedSingleQuery_default(
|
|
4535
4540
|
SELF_EVENT_REGISTRATION_QUERY_KEY(eventId),
|
|
4536
4541
|
(params) => GetSelfEventRegistration({
|
|
4537
4542
|
eventId,
|
|
4543
|
+
create,
|
|
4538
4544
|
...params
|
|
4539
4545
|
}),
|
|
4540
4546
|
{
|