@timardex/cluemart-shared 1.4.56 → 1.4.58
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/{auth-0kdrfCS6.d.ts → auth-CjykW2Lr.d.ts} +1 -1
- package/dist/{auth-BSrnmepa.d.mts → auth-DNycVvkZ.d.mts} +1 -1
- package/dist/{chunk-INEGK3OJ.mjs → chunk-77MGTLHY.mjs} +5 -3
- package/dist/{chunk-INEGK3OJ.mjs.map → chunk-77MGTLHY.mjs.map} +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-28X17NZs.d.mts → global-BCkL-Bpy.d.mts} +2 -1
- package/dist/{global-D3WVRbPl.d.ts → global-CPPLdm4G.d.ts} +2 -1
- package/dist/graphql/index.cjs +4 -2
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +4 -4
- package/dist/graphql/index.d.ts +4 -4
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{post-Bik-qNI2.d.ts → post-B8oSaRx5.d.ts} +1 -1
- package/dist/{post-C8a2psdX.d.mts → post-_XBrGUY2.d.mts} +1 -1
- package/dist/{resourceActivities-DNF9OS11.d.mts → resourceActivities-CndYlMM-.d.mts} +1 -1
- package/dist/{resourceActivities-aOmiphoT.d.ts → resourceActivities-CxDUeNpr.d.ts} +1 -1
- package/dist/types/index.d.mts +5 -5
- package/dist/types/index.d.ts +5 -5
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -555,8 +555,9 @@ type ResourceDetails = {
|
|
|
555
555
|
};
|
|
556
556
|
type GeocodeLocation = Pick<LocationType, "latitude" | "longitude">;
|
|
557
557
|
type EventStatusType = {
|
|
558
|
-
googlePlaceId?: string | null;
|
|
559
558
|
claimed: boolean;
|
|
559
|
+
eventType: EnumEventType;
|
|
560
|
+
googlePlaceId?: string | null;
|
|
560
561
|
};
|
|
561
562
|
interface FormField {
|
|
562
563
|
disabled?: boolean;
|
|
@@ -1883,7 +1884,7 @@ declare const useGetUserActivities: () => {
|
|
|
1883
1884
|
};
|
|
1884
1885
|
};
|
|
1885
1886
|
};
|
|
1886
|
-
declare const useGetUserResources: () => {
|
|
1887
|
+
declare const useGetUserResources: (userId: string) => {
|
|
1887
1888
|
error: _apollo_client.ApolloError | undefined;
|
|
1888
1889
|
loading: boolean;
|
|
1889
1890
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
package/dist/index.d.ts
CHANGED
|
@@ -555,8 +555,9 @@ type ResourceDetails = {
|
|
|
555
555
|
};
|
|
556
556
|
type GeocodeLocation = Pick<LocationType, "latitude" | "longitude">;
|
|
557
557
|
type EventStatusType = {
|
|
558
|
-
googlePlaceId?: string | null;
|
|
559
558
|
claimed: boolean;
|
|
559
|
+
eventType: EnumEventType;
|
|
560
|
+
googlePlaceId?: string | null;
|
|
560
561
|
};
|
|
561
562
|
interface FormField {
|
|
562
563
|
disabled?: boolean;
|
|
@@ -1883,7 +1884,7 @@ declare const useGetUserActivities: () => {
|
|
|
1883
1884
|
};
|
|
1884
1885
|
};
|
|
1885
1886
|
};
|
|
1886
|
-
declare const useGetUserResources: () => {
|
|
1887
|
+
declare const useGetUserResources: (userId: string) => {
|
|
1887
1888
|
error: _apollo_client.ApolloError | undefined;
|
|
1888
1889
|
loading: boolean;
|
|
1889
1890
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
package/dist/index.mjs
CHANGED
|
@@ -4887,9 +4887,11 @@ var useGetUserActivities = () => {
|
|
|
4887
4887
|
};
|
|
4888
4888
|
return { error, loading, refetch, userActivities };
|
|
4889
4889
|
};
|
|
4890
|
-
var useGetUserResources = () => {
|
|
4890
|
+
var useGetUserResources = (userId) => {
|
|
4891
4891
|
const { loading, error, data, refetch } = useQuery6(GET_USER_RESOURCES, {
|
|
4892
|
-
fetchPolicy: "network-only"
|
|
4892
|
+
fetchPolicy: "network-only",
|
|
4893
|
+
skip: !userId,
|
|
4894
|
+
variables: { userId }
|
|
4893
4895
|
});
|
|
4894
4896
|
const userResources = data?.userResources.resources || [];
|
|
4895
4897
|
return { error, loading, refetch, userResources };
|