@timardex/cluemart-shared 1.2.16 → 1.2.17
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/graphql/index.cjs +122 -4
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +32 -4
- package/dist/graphql/index.d.ts +32 -4
- package/dist/graphql/index.mjs +118 -4
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/index.cjs +122 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +37 -9
- package/dist/index.d.ts +37 -9
- package/dist/index.mjs +118 -4
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/{ad-D6-mYEzV.d.ts → ad-0fMmeab1.d.ts} +6 -6
- package/dist/{ad-Dj1GOSzC.d.mts → ad-BozU03cK.d.mts} +6 -6
package/dist/graphql/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _apollo_client from '@apollo/client';
|
|
|
2
2
|
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceViewsType } from '../resourceViews-BZZt3kvl.js';
|
|
3
3
|
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType } from '../global-BA84KF8J.js';
|
|
4
4
|
import { EnumResourceType } from '../enums/index.js';
|
|
5
|
-
import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus } from '../ad-
|
|
5
|
+
import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus } from '../ad-0fMmeab1.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
|
@@ -390,6 +390,26 @@ declare const useSelectPackage: () => {
|
|
|
390
390
|
loading: boolean;
|
|
391
391
|
selectPackage: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
392
392
|
};
|
|
393
|
+
declare const useAddUserInterestResource: () => {
|
|
394
|
+
addUserInterestResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
395
|
+
error: _apollo_client.ApolloError | undefined;
|
|
396
|
+
loading: boolean;
|
|
397
|
+
};
|
|
398
|
+
declare const useRemoveUserInterestResource: () => {
|
|
399
|
+
error: _apollo_client.ApolloError | undefined;
|
|
400
|
+
loading: boolean;
|
|
401
|
+
removeUserInterestResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
402
|
+
};
|
|
403
|
+
declare const useAddUserGoingResource: () => {
|
|
404
|
+
addUserGoingResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
405
|
+
error: _apollo_client.ApolloError | undefined;
|
|
406
|
+
loading: boolean;
|
|
407
|
+
};
|
|
408
|
+
declare const useRemoveUserGoingResource: () => {
|
|
409
|
+
error: _apollo_client.ApolloError | undefined;
|
|
410
|
+
loading: boolean;
|
|
411
|
+
removeUserGoingResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
412
|
+
};
|
|
393
413
|
|
|
394
414
|
declare const useGetUsers: () => {
|
|
395
415
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -420,8 +440,16 @@ declare const useGetUserActivities: () => {
|
|
|
420
440
|
loading: boolean;
|
|
421
441
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
422
442
|
userActivities: {
|
|
423
|
-
|
|
424
|
-
|
|
443
|
+
favourites: {
|
|
444
|
+
events: EventType[];
|
|
445
|
+
vendors: VendorType[];
|
|
446
|
+
};
|
|
447
|
+
going: {
|
|
448
|
+
events: EventType[];
|
|
449
|
+
};
|
|
450
|
+
interests: {
|
|
451
|
+
events: EventType[];
|
|
452
|
+
};
|
|
425
453
|
};
|
|
426
454
|
};
|
|
427
455
|
|
|
@@ -479,4 +507,4 @@ declare const useGetResourceViews: (resourceId: string, resourceType: EnumResour
|
|
|
479
507
|
resourceViews: ResourceViewsType[];
|
|
480
508
|
};
|
|
481
509
|
|
|
482
|
-
export { useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceViews, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceConnections, useGetResourceViews, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
|
|
510
|
+
export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAdminUpdateResourceType, useContactUs, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceViews, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceConnections, useGetResourceViews, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
|
package/dist/graphql/index.mjs
CHANGED
|
@@ -2099,6 +2099,70 @@ var SELECT_PACKAGE_MUTATION = gql22`
|
|
|
2099
2099
|
}
|
|
2100
2100
|
}
|
|
2101
2101
|
`;
|
|
2102
|
+
var ADD_USER_INTEREST_RESOURCE_MUTATION = gql22`
|
|
2103
|
+
mutation addUserInterestResource(
|
|
2104
|
+
$resourceId: ID!
|
|
2105
|
+
$startDate: String!
|
|
2106
|
+
$userId: ID!
|
|
2107
|
+
) {
|
|
2108
|
+
addUserInterestResource(
|
|
2109
|
+
resourceId: $resourceId
|
|
2110
|
+
startDate: $startDate
|
|
2111
|
+
userId: $userId
|
|
2112
|
+
) {
|
|
2113
|
+
...UserFields
|
|
2114
|
+
}
|
|
2115
|
+
}
|
|
2116
|
+
${USER_FIELDS_FRAGMENT}
|
|
2117
|
+
`;
|
|
2118
|
+
var REMOVE_USER_INTEREST_RESOURCE_MUTATION = gql22`
|
|
2119
|
+
mutation removeUserInterestResource(
|
|
2120
|
+
$resourceId: ID!
|
|
2121
|
+
$startDate: String!
|
|
2122
|
+
$userId: ID!
|
|
2123
|
+
) {
|
|
2124
|
+
removeUserInterestResource(
|
|
2125
|
+
resourceId: $resourceId
|
|
2126
|
+
startDate: $startDate
|
|
2127
|
+
userId: $userId
|
|
2128
|
+
) {
|
|
2129
|
+
...UserFields
|
|
2130
|
+
}
|
|
2131
|
+
}
|
|
2132
|
+
${USER_FIELDS_FRAGMENT}
|
|
2133
|
+
`;
|
|
2134
|
+
var ADD_USER_GOING_RESOURCE_MUTATION = gql22`
|
|
2135
|
+
mutation addUserGoingResource(
|
|
2136
|
+
$resourceId: ID!
|
|
2137
|
+
$startDate: String!
|
|
2138
|
+
$userId: ID!
|
|
2139
|
+
) {
|
|
2140
|
+
addUserGoingResource(
|
|
2141
|
+
resourceId: $resourceId
|
|
2142
|
+
startDate: $startDate
|
|
2143
|
+
userId: $userId
|
|
2144
|
+
) {
|
|
2145
|
+
...UserFields
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
${USER_FIELDS_FRAGMENT}
|
|
2149
|
+
`;
|
|
2150
|
+
var REMOVE_USER_GOING_RESOURCE_MUTATION = gql22`
|
|
2151
|
+
mutation removeUserGoingResource(
|
|
2152
|
+
$resourceId: ID!
|
|
2153
|
+
$startDate: String!
|
|
2154
|
+
$userId: ID!
|
|
2155
|
+
) {
|
|
2156
|
+
removeUserGoingResource(
|
|
2157
|
+
resourceId: $resourceId
|
|
2158
|
+
startDate: $startDate
|
|
2159
|
+
userId: $userId
|
|
2160
|
+
) {
|
|
2161
|
+
...UserFields
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
${USER_FIELDS_FRAGMENT}
|
|
2165
|
+
`;
|
|
2102
2166
|
|
|
2103
2167
|
// src/graphql/hooks/user/hooksMutation.ts
|
|
2104
2168
|
var useCreateUser = () => {
|
|
@@ -2158,6 +2222,46 @@ var useSelectPackage = () => {
|
|
|
2158
2222
|
);
|
|
2159
2223
|
return { error, loading, selectPackage };
|
|
2160
2224
|
};
|
|
2225
|
+
var useAddUserInterestResource = () => {
|
|
2226
|
+
const [addUserInterestResource, { loading, error }] = useMutation12(
|
|
2227
|
+
ADD_USER_INTEREST_RESOURCE_MUTATION,
|
|
2228
|
+
{
|
|
2229
|
+
awaitRefetchQueries: true,
|
|
2230
|
+
refetchQueries: [{ query: GET_USER_ACTIVITIES }]
|
|
2231
|
+
}
|
|
2232
|
+
);
|
|
2233
|
+
return { addUserInterestResource, error, loading };
|
|
2234
|
+
};
|
|
2235
|
+
var useRemoveUserInterestResource = () => {
|
|
2236
|
+
const [removeUserInterestResource, { loading, error }] = useMutation12(
|
|
2237
|
+
REMOVE_USER_INTEREST_RESOURCE_MUTATION,
|
|
2238
|
+
{
|
|
2239
|
+
awaitRefetchQueries: true,
|
|
2240
|
+
refetchQueries: [{ query: GET_USER_ACTIVITIES }]
|
|
2241
|
+
}
|
|
2242
|
+
);
|
|
2243
|
+
return { error, loading, removeUserInterestResource };
|
|
2244
|
+
};
|
|
2245
|
+
var useAddUserGoingResource = () => {
|
|
2246
|
+
const [addUserGoingResource, { loading, error }] = useMutation12(
|
|
2247
|
+
ADD_USER_GOING_RESOURCE_MUTATION,
|
|
2248
|
+
{
|
|
2249
|
+
awaitRefetchQueries: true,
|
|
2250
|
+
refetchQueries: [{ query: GET_USER_ACTIVITIES }]
|
|
2251
|
+
}
|
|
2252
|
+
);
|
|
2253
|
+
return { addUserGoingResource, error, loading };
|
|
2254
|
+
};
|
|
2255
|
+
var useRemoveUserGoingResource = () => {
|
|
2256
|
+
const [removeUserGoingResource, { loading, error }] = useMutation12(
|
|
2257
|
+
REMOVE_USER_GOING_RESOURCE_MUTATION,
|
|
2258
|
+
{
|
|
2259
|
+
awaitRefetchQueries: true,
|
|
2260
|
+
refetchQueries: [{ query: GET_USER_ACTIVITIES }]
|
|
2261
|
+
}
|
|
2262
|
+
);
|
|
2263
|
+
return { error, loading, removeUserGoingResource };
|
|
2264
|
+
};
|
|
2161
2265
|
|
|
2162
2266
|
// src/graphql/hooks/user/hooksQuery.ts
|
|
2163
2267
|
import { useQuery as useQuery7 } from "@apollo/client";
|
|
@@ -2193,11 +2297,17 @@ var useGetUserActivities = () => {
|
|
|
2193
2297
|
const { loading, error, data, refetch } = useQuery7(GET_USER_ACTIVITIES, {
|
|
2194
2298
|
fetchPolicy: "network-only"
|
|
2195
2299
|
});
|
|
2196
|
-
const events = data?.userActivities.events;
|
|
2197
|
-
const vendors = data?.userActivities.vendors;
|
|
2198
2300
|
const userActivities = {
|
|
2199
|
-
|
|
2200
|
-
|
|
2301
|
+
favourites: {
|
|
2302
|
+
events: data?.userActivities.favourites.events,
|
|
2303
|
+
vendors: data?.userActivities.favourites.vendors
|
|
2304
|
+
},
|
|
2305
|
+
going: {
|
|
2306
|
+
events: data?.userActivities.going.events
|
|
2307
|
+
},
|
|
2308
|
+
interests: {
|
|
2309
|
+
events: data?.userActivities.interests.events
|
|
2310
|
+
}
|
|
2201
2311
|
};
|
|
2202
2312
|
return { error, loading, refetch, userActivities };
|
|
2203
2313
|
};
|
|
@@ -2427,6 +2537,8 @@ var useGetResourceViews = (resourceId, resourceType) => {
|
|
|
2427
2537
|
export {
|
|
2428
2538
|
useAddParticipantToChat,
|
|
2429
2539
|
useAddUserFavouriteResource,
|
|
2540
|
+
useAddUserGoingResource,
|
|
2541
|
+
useAddUserInterestResource,
|
|
2430
2542
|
useAdminUpdateResourceType,
|
|
2431
2543
|
useContactUs,
|
|
2432
2544
|
useCreateAd,
|
|
@@ -2490,6 +2602,8 @@ export {
|
|
|
2490
2602
|
useRegister,
|
|
2491
2603
|
useRemoveParticipantFromChat,
|
|
2492
2604
|
useRemoveUserFavouriteResource,
|
|
2605
|
+
useRemoveUserGoingResource,
|
|
2606
|
+
useRemoveUserInterestResource,
|
|
2493
2607
|
useRequestPasswordReset,
|
|
2494
2608
|
useResetPassword,
|
|
2495
2609
|
useSearchEvents,
|