@timardex/cluemart-shared 1.2.22 → 1.2.23
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/{ad-CMPlGS2z.d.mts → ad-BsEtu052.d.mts} +6 -0
- package/dist/{ad-CbnwOWnz.d.ts → ad-Dg1bpjxd.d.ts} +6 -0
- package/dist/graphql/index.cjs +72 -2
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +16 -3
- package/dist/graphql/index.d.ts +16 -3
- package/dist/graphql/index.mjs +70 -2
- 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 +75 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +23 -3
- package/dist/index.d.ts +23 -3
- package/dist/index.mjs +73 -4
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceActivities-C9cWAM6L.d.mts → resourceActivities-DDe473dL.d.mts} +3 -2
- package/dist/{resourceActivities-C04G4vFP.d.ts → resourceActivities-N7iowh1a.d.ts} +3 -2
- package/dist/types/index.cjs +3 -2
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.mjs +3 -2
- package/dist/types/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
|
-
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-
|
|
2
|
+
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-N7iowh1a.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-Dg1bpjxd.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
|
@@ -410,6 +410,16 @@ declare const useRemoveUserGoingResource: () => {
|
|
|
410
410
|
loading: boolean;
|
|
411
411
|
removeUserGoingResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
412
412
|
};
|
|
413
|
+
declare const useAddUserPresentResource: () => {
|
|
414
|
+
addUserPresentResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
415
|
+
error: _apollo_client.ApolloError | undefined;
|
|
416
|
+
loading: boolean;
|
|
417
|
+
};
|
|
418
|
+
declare const useRemoveUserPresentResource: () => {
|
|
419
|
+
error: _apollo_client.ApolloError | undefined;
|
|
420
|
+
loading: boolean;
|
|
421
|
+
removeUserPresentResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
422
|
+
};
|
|
413
423
|
|
|
414
424
|
declare const useGetUsers: () => {
|
|
415
425
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -450,6 +460,9 @@ declare const useGetUserActivities: () => {
|
|
|
450
460
|
interested: {
|
|
451
461
|
events: EventType[];
|
|
452
462
|
};
|
|
463
|
+
present: {
|
|
464
|
+
events: EventType[];
|
|
465
|
+
};
|
|
453
466
|
};
|
|
454
467
|
};
|
|
455
468
|
|
|
@@ -507,4 +520,4 @@ declare const useGetResourceActivities: (resourceId: string, resourceType: EnumR
|
|
|
507
520
|
resourceActivities: ResourceActivityType[];
|
|
508
521
|
};
|
|
509
522
|
|
|
510
|
-
export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAdminUpdateResourceType, useContactUs, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, 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, useGetResourceActivities, useGetResourceConnections, 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 };
|
|
523
|
+
export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useContactUs, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, 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, useGetResourceActivities, useGetResourceConnections, 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, useRemoveUserPresentResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
|
package/dist/graphql/index.mjs
CHANGED
|
@@ -88,13 +88,19 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = gql2`
|
|
|
88
88
|
events
|
|
89
89
|
vendors
|
|
90
90
|
}
|
|
91
|
+
going {
|
|
92
|
+
events {
|
|
93
|
+
resourceId
|
|
94
|
+
startDate
|
|
95
|
+
}
|
|
96
|
+
}
|
|
91
97
|
interested {
|
|
92
98
|
events {
|
|
93
99
|
resourceId
|
|
94
100
|
startDate
|
|
95
101
|
}
|
|
96
102
|
}
|
|
97
|
-
|
|
103
|
+
present {
|
|
98
104
|
events {
|
|
99
105
|
resourceId
|
|
100
106
|
startDate
|
|
@@ -988,12 +994,17 @@ var GET_USER_ACTIVITIES = gql11`
|
|
|
988
994
|
...VendorFields
|
|
989
995
|
}
|
|
990
996
|
}
|
|
997
|
+
going {
|
|
998
|
+
events {
|
|
999
|
+
...EventFields
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
991
1002
|
interested {
|
|
992
1003
|
events {
|
|
993
1004
|
...EventFields
|
|
994
1005
|
}
|
|
995
1006
|
}
|
|
996
|
-
|
|
1007
|
+
present {
|
|
997
1008
|
events {
|
|
998
1009
|
...EventFields
|
|
999
1010
|
}
|
|
@@ -2163,6 +2174,38 @@ var REMOVE_USER_GOING_RESOURCE_MUTATION = gql22`
|
|
|
2163
2174
|
}
|
|
2164
2175
|
${USER_FIELDS_FRAGMENT}
|
|
2165
2176
|
`;
|
|
2177
|
+
var ADD_USER_PRESENT_RESOURCE_MUTATION = gql22`
|
|
2178
|
+
mutation addUserPresentResource(
|
|
2179
|
+
$resourceId: ID!
|
|
2180
|
+
$startDate: String!
|
|
2181
|
+
$userId: ID!
|
|
2182
|
+
) {
|
|
2183
|
+
addUserPresentResource(
|
|
2184
|
+
resourceId: $resourceId
|
|
2185
|
+
startDate: $startDate
|
|
2186
|
+
userId: $userId
|
|
2187
|
+
) {
|
|
2188
|
+
...UserFields
|
|
2189
|
+
}
|
|
2190
|
+
}
|
|
2191
|
+
${USER_FIELDS_FRAGMENT}
|
|
2192
|
+
`;
|
|
2193
|
+
var REMOVE_USER_PRESENT_RESOURCE_MUTATION = gql22`
|
|
2194
|
+
mutation removeUserPresentResource(
|
|
2195
|
+
$resourceId: ID!
|
|
2196
|
+
$startDate: String!
|
|
2197
|
+
$userId: ID!
|
|
2198
|
+
) {
|
|
2199
|
+
removeUserPresentResource(
|
|
2200
|
+
resourceId: $resourceId
|
|
2201
|
+
startDate: $startDate
|
|
2202
|
+
userId: $userId
|
|
2203
|
+
) {
|
|
2204
|
+
...UserFields
|
|
2205
|
+
}
|
|
2206
|
+
}
|
|
2207
|
+
${USER_FIELDS_FRAGMENT}
|
|
2208
|
+
`;
|
|
2166
2209
|
|
|
2167
2210
|
// src/graphql/hooks/user/hooksMutation.ts
|
|
2168
2211
|
var useCreateUser = () => {
|
|
@@ -2262,6 +2305,26 @@ var useRemoveUserGoingResource = () => {
|
|
|
2262
2305
|
);
|
|
2263
2306
|
return { error, loading, removeUserGoingResource };
|
|
2264
2307
|
};
|
|
2308
|
+
var useAddUserPresentResource = () => {
|
|
2309
|
+
const [addUserPresentResource, { loading, error }] = useMutation12(
|
|
2310
|
+
ADD_USER_PRESENT_RESOURCE_MUTATION,
|
|
2311
|
+
{
|
|
2312
|
+
awaitRefetchQueries: true,
|
|
2313
|
+
refetchQueries: [{ query: GET_USER_ACTIVITIES }]
|
|
2314
|
+
}
|
|
2315
|
+
);
|
|
2316
|
+
return { addUserPresentResource, error, loading };
|
|
2317
|
+
};
|
|
2318
|
+
var useRemoveUserPresentResource = () => {
|
|
2319
|
+
const [removeUserPresentResource, { loading, error }] = useMutation12(
|
|
2320
|
+
REMOVE_USER_PRESENT_RESOURCE_MUTATION,
|
|
2321
|
+
{
|
|
2322
|
+
awaitRefetchQueries: true,
|
|
2323
|
+
refetchQueries: [{ query: GET_USER_ACTIVITIES }]
|
|
2324
|
+
}
|
|
2325
|
+
);
|
|
2326
|
+
return { error, loading, removeUserPresentResource };
|
|
2327
|
+
};
|
|
2265
2328
|
|
|
2266
2329
|
// src/graphql/hooks/user/hooksQuery.ts
|
|
2267
2330
|
import { useQuery as useQuery7 } from "@apollo/client";
|
|
@@ -2307,6 +2370,9 @@ var useGetUserActivities = () => {
|
|
|
2307
2370
|
},
|
|
2308
2371
|
interested: {
|
|
2309
2372
|
events: data?.userActivities.interested.events
|
|
2373
|
+
},
|
|
2374
|
+
present: {
|
|
2375
|
+
events: data?.userActivities.present.events
|
|
2310
2376
|
}
|
|
2311
2377
|
};
|
|
2312
2378
|
return { error, loading, refetch, userActivities };
|
|
@@ -2545,6 +2611,7 @@ export {
|
|
|
2545
2611
|
useAddUserFavouriteResource,
|
|
2546
2612
|
useAddUserGoingResource,
|
|
2547
2613
|
useAddUserInterestResource,
|
|
2614
|
+
useAddUserPresentResource,
|
|
2548
2615
|
useAdminUpdateResourceType,
|
|
2549
2616
|
useContactUs,
|
|
2550
2617
|
useCreateAd,
|
|
@@ -2610,6 +2677,7 @@ export {
|
|
|
2610
2677
|
useRemoveUserFavouriteResource,
|
|
2611
2678
|
useRemoveUserGoingResource,
|
|
2612
2679
|
useRemoveUserInterestResource,
|
|
2680
|
+
useRemoveUserPresentResource,
|
|
2613
2681
|
useRequestPasswordReset,
|
|
2614
2682
|
useResetPassword,
|
|
2615
2683
|
useSearchEvents,
|