@connectedxm/client 0.5.15 → 0.5.16
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 +7 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.js +5 -3
- package/dist/index.mjs +5 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2096,9 +2096,10 @@ declare const useGetSelfGroupMembership: (groupId: string, options?: SingleQuery
|
|
|
2096
2096
|
|
|
2097
2097
|
declare const SELF_GROUP_MEMBERSHIPS_QUERY_KEY: () => QueryKey;
|
|
2098
2098
|
interface GetSelfGroupMembershipsProps extends InfiniteQueryParams {
|
|
2099
|
+
role?: "member" | "moderator";
|
|
2099
2100
|
}
|
|
2100
|
-
declare const GetSelfGroupMemberships: ({ pageParam, pageSize, orderBy, search, clientApiParams, }: GetSelfGroupMembershipsProps) => Promise<ConnectedXMResponse<GroupMembership[]>>;
|
|
2101
|
-
declare const useGetSelfGroupMemberships: (params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfGroupMemberships>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<GroupMembership[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
2101
|
+
declare const GetSelfGroupMemberships: ({ pageParam, pageSize, orderBy, search, role, clientApiParams, }: GetSelfGroupMembershipsProps) => Promise<ConnectedXMResponse<GroupMembership[]>>;
|
|
2102
|
+
declare const useGetSelfGroupMemberships: (role?: "member" | "moderator", params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfGroupMemberships>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<GroupMembership[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
2102
2103
|
|
|
2103
2104
|
declare const SELF_DELEGATE_OF_QUERY_KEY: () => QueryKey;
|
|
2104
2105
|
interface GetSelfDelegateOfProps extends InfiniteQueryParams {
|
|
@@ -3127,10 +3128,12 @@ interface UpdateListing {
|
|
|
3127
3128
|
registration?: boolean;
|
|
3128
3129
|
publicRegistrants?: boolean;
|
|
3129
3130
|
registrationLimit?: number | null;
|
|
3130
|
-
newActivityCreatorEmailNotification
|
|
3131
|
-
newActivityCreatorPushNotification
|
|
3131
|
+
newActivityCreatorEmailNotification?: boolean;
|
|
3132
|
+
newActivityCreatorPushNotification?: boolean;
|
|
3132
3133
|
slug?: string;
|
|
3133
3134
|
groupOnly?: boolean;
|
|
3135
|
+
groupId?: string | null;
|
|
3136
|
+
location?: string | null;
|
|
3134
3137
|
}
|
|
3135
3138
|
declare const UpdateListing: ({ eventId, event, base64, clientApiParams, queryClient, }: UpdateListingParams) => Promise<ConnectedXMResponse<EventListing>>;
|
|
3136
3139
|
declare const useUpdateListing: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof UpdateListing>>, Omit<UpdateListingParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<EventListing>, axios.AxiosError<ConnectedXMResponse<EventListing>, any>, Omit<UpdateListingParams, "queryClient" | "clientApiParams">, unknown>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2096,9 +2096,10 @@ declare const useGetSelfGroupMembership: (groupId: string, options?: SingleQuery
|
|
|
2096
2096
|
|
|
2097
2097
|
declare const SELF_GROUP_MEMBERSHIPS_QUERY_KEY: () => QueryKey;
|
|
2098
2098
|
interface GetSelfGroupMembershipsProps extends InfiniteQueryParams {
|
|
2099
|
+
role?: "member" | "moderator";
|
|
2099
2100
|
}
|
|
2100
|
-
declare const GetSelfGroupMemberships: ({ pageParam, pageSize, orderBy, search, clientApiParams, }: GetSelfGroupMembershipsProps) => Promise<ConnectedXMResponse<GroupMembership[]>>;
|
|
2101
|
-
declare const useGetSelfGroupMemberships: (params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfGroupMemberships>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<GroupMembership[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
2101
|
+
declare const GetSelfGroupMemberships: ({ pageParam, pageSize, orderBy, search, role, clientApiParams, }: GetSelfGroupMembershipsProps) => Promise<ConnectedXMResponse<GroupMembership[]>>;
|
|
2102
|
+
declare const useGetSelfGroupMemberships: (role?: "member" | "moderator", params?: Omit<InfiniteQueryParams, "pageParam" | "queryClient" | "clientApiParams">, options?: InfiniteQueryOptions<Awaited<ReturnType<typeof GetSelfGroupMemberships>>>) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ConnectedXMResponse<GroupMembership[]>, number>, axios.AxiosError<ConnectedXMResponse<null>, any>>;
|
|
2102
2103
|
|
|
2103
2104
|
declare const SELF_DELEGATE_OF_QUERY_KEY: () => QueryKey;
|
|
2104
2105
|
interface GetSelfDelegateOfProps extends InfiniteQueryParams {
|
|
@@ -3127,10 +3128,12 @@ interface UpdateListing {
|
|
|
3127
3128
|
registration?: boolean;
|
|
3128
3129
|
publicRegistrants?: boolean;
|
|
3129
3130
|
registrationLimit?: number | null;
|
|
3130
|
-
newActivityCreatorEmailNotification
|
|
3131
|
-
newActivityCreatorPushNotification
|
|
3131
|
+
newActivityCreatorEmailNotification?: boolean;
|
|
3132
|
+
newActivityCreatorPushNotification?: boolean;
|
|
3132
3133
|
slug?: string;
|
|
3133
3134
|
groupOnly?: boolean;
|
|
3135
|
+
groupId?: string | null;
|
|
3136
|
+
location?: string | null;
|
|
3134
3137
|
}
|
|
3135
3138
|
declare const UpdateListing: ({ eventId, event, base64, clientApiParams, queryClient, }: UpdateListingParams) => Promise<ConnectedXMResponse<EventListing>>;
|
|
3136
3139
|
declare const useUpdateListing: (options?: Omit<MutationOptions<Awaited<ReturnType<typeof UpdateListing>>, Omit<UpdateListingParams, "queryClient" | "clientApiParams">>, "mutationFn">) => _tanstack_react_query.UseMutationResult<ConnectedXMResponse<EventListing>, axios.AxiosError<ConnectedXMResponse<EventListing>, any>, Omit<UpdateListingParams, "queryClient" | "clientApiParams">, unknown>;
|
package/dist/index.js
CHANGED
|
@@ -4617,6 +4617,7 @@ var GetSelfGroupMemberships = async ({
|
|
|
4617
4617
|
pageSize,
|
|
4618
4618
|
orderBy,
|
|
4619
4619
|
search,
|
|
4620
|
+
role,
|
|
4620
4621
|
clientApiParams
|
|
4621
4622
|
}) => {
|
|
4622
4623
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
@@ -4625,16 +4626,17 @@ var GetSelfGroupMemberships = async ({
|
|
|
4625
4626
|
page: pageParam || void 0,
|
|
4626
4627
|
pageSize: pageSize || void 0,
|
|
4627
4628
|
orderBy: orderBy || void 0,
|
|
4628
|
-
search: search || void 0
|
|
4629
|
+
search: search || void 0,
|
|
4630
|
+
role: role || void 0
|
|
4629
4631
|
}
|
|
4630
4632
|
});
|
|
4631
4633
|
return data;
|
|
4632
4634
|
};
|
|
4633
|
-
var useGetSelfGroupMemberships = (params = {}, options = {}) => {
|
|
4635
|
+
var useGetSelfGroupMemberships = (role, params = {}, options = {}) => {
|
|
4634
4636
|
const { authenticated } = useConnectedXM();
|
|
4635
4637
|
return useConnectedInfiniteQuery(
|
|
4636
4638
|
SELF_GROUP_MEMBERSHIPS_QUERY_KEY(),
|
|
4637
|
-
(params2) => GetSelfGroupMemberships({ ...params2 }),
|
|
4639
|
+
(params2) => GetSelfGroupMemberships({ role, ...params2 }),
|
|
4638
4640
|
params,
|
|
4639
4641
|
{
|
|
4640
4642
|
...options,
|
package/dist/index.mjs
CHANGED
|
@@ -3914,6 +3914,7 @@ var GetSelfGroupMemberships = async ({
|
|
|
3914
3914
|
pageSize,
|
|
3915
3915
|
orderBy,
|
|
3916
3916
|
search,
|
|
3917
|
+
role,
|
|
3917
3918
|
clientApiParams
|
|
3918
3919
|
}) => {
|
|
3919
3920
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
@@ -3922,16 +3923,17 @@ var GetSelfGroupMemberships = async ({
|
|
|
3922
3923
|
page: pageParam || void 0,
|
|
3923
3924
|
pageSize: pageSize || void 0,
|
|
3924
3925
|
orderBy: orderBy || void 0,
|
|
3925
|
-
search: search || void 0
|
|
3926
|
+
search: search || void 0,
|
|
3927
|
+
role: role || void 0
|
|
3926
3928
|
}
|
|
3927
3929
|
});
|
|
3928
3930
|
return data;
|
|
3929
3931
|
};
|
|
3930
|
-
var useGetSelfGroupMemberships = (params = {}, options = {}) => {
|
|
3932
|
+
var useGetSelfGroupMemberships = (role, params = {}, options = {}) => {
|
|
3931
3933
|
const { authenticated } = useConnectedXM();
|
|
3932
3934
|
return useConnectedInfiniteQuery(
|
|
3933
3935
|
SELF_GROUP_MEMBERSHIPS_QUERY_KEY(),
|
|
3934
|
-
(params2) => GetSelfGroupMemberships({ ...params2 }),
|
|
3936
|
+
(params2) => GetSelfGroupMemberships({ role, ...params2 }),
|
|
3935
3937
|
params,
|
|
3936
3938
|
{
|
|
3937
3939
|
...options,
|