@timardex/cluemart-shared 1.2.22 → 1.2.24
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/{auth-BVGs-5Vm.d.mts → auth-B-dG_y16.d.mts} +13 -1
- package/dist/{auth-BhUIvvZ2.d.ts → auth-Ba-VYR0Y.d.ts} +13 -1
- package/dist/graphql/index.cjs +114 -2
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +26 -3
- package/dist/graphql/index.d.ts +26 -3
- package/dist/graphql/index.mjs +110 -2
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/index.cjs +117 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +45 -3
- package/dist/index.d.ts +45 -3
- package/dist/index.mjs +113 -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 +3 -3
- package/dist/types/index.d.ts +3 -3
- 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: () => {
|
|
@@ -21,6 +21,16 @@ declare const useLogin: () => {
|
|
|
21
21
|
loading: boolean;
|
|
22
22
|
login: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
23
23
|
};
|
|
24
|
+
declare const useGoogleSignIn: () => {
|
|
25
|
+
error: _apollo_client.ApolloError | undefined;
|
|
26
|
+
loading: boolean;
|
|
27
|
+
googleSignIn: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
28
|
+
};
|
|
29
|
+
declare const useGoogleRegister: () => {
|
|
30
|
+
error: _apollo_client.ApolloError | undefined;
|
|
31
|
+
loading: boolean;
|
|
32
|
+
googleRegister: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
33
|
+
};
|
|
24
34
|
declare const useLogout: () => {
|
|
25
35
|
error: _apollo_client.ApolloError | undefined;
|
|
26
36
|
loading: boolean;
|
|
@@ -410,6 +420,16 @@ declare const useRemoveUserGoingResource: () => {
|
|
|
410
420
|
loading: boolean;
|
|
411
421
|
removeUserGoingResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
412
422
|
};
|
|
423
|
+
declare const useAddUserPresentResource: () => {
|
|
424
|
+
addUserPresentResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
425
|
+
error: _apollo_client.ApolloError | undefined;
|
|
426
|
+
loading: boolean;
|
|
427
|
+
};
|
|
428
|
+
declare const useRemoveUserPresentResource: () => {
|
|
429
|
+
error: _apollo_client.ApolloError | undefined;
|
|
430
|
+
loading: boolean;
|
|
431
|
+
removeUserPresentResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
432
|
+
};
|
|
413
433
|
|
|
414
434
|
declare const useGetUsers: () => {
|
|
415
435
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -450,6 +470,9 @@ declare const useGetUserActivities: () => {
|
|
|
450
470
|
interested: {
|
|
451
471
|
events: EventType[];
|
|
452
472
|
};
|
|
473
|
+
present: {
|
|
474
|
+
events: EventType[];
|
|
475
|
+
};
|
|
453
476
|
};
|
|
454
477
|
};
|
|
455
478
|
|
|
@@ -507,4 +530,4 @@ declare const useGetResourceActivities: (resourceId: string, resourceType: EnumR
|
|
|
507
530
|
resourceActivities: ResourceActivityType[];
|
|
508
531
|
};
|
|
509
532
|
|
|
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 };
|
|
533
|
+
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, useGoogleRegister, useGoogleSignIn, 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
|
|
@@ -601,6 +607,32 @@ var LOGIN_MUTATION = gql5`
|
|
|
601
607
|
}
|
|
602
608
|
${USER_FIELDS_FRAGMENT}
|
|
603
609
|
`;
|
|
610
|
+
var GOOGLE_SIGN_IN_MUTATION = gql5`
|
|
611
|
+
mutation googleSignIn($input: GoogleSignInInputType!) {
|
|
612
|
+
googleSignIn(input: $input) {
|
|
613
|
+
message
|
|
614
|
+
refreshToken
|
|
615
|
+
token
|
|
616
|
+
user {
|
|
617
|
+
...UserFields
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
${USER_FIELDS_FRAGMENT}
|
|
622
|
+
`;
|
|
623
|
+
var GOOGLE_REGISTER_MUTATION = gql5`
|
|
624
|
+
mutation googleRegister($input: GoogleRegisterInputType!) {
|
|
625
|
+
googleRegister(input: $input) {
|
|
626
|
+
message
|
|
627
|
+
refreshToken
|
|
628
|
+
token
|
|
629
|
+
user {
|
|
630
|
+
...UserFields
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
${USER_FIELDS_FRAGMENT}
|
|
635
|
+
`;
|
|
604
636
|
var LOGOUT_MUTATION = gql5`
|
|
605
637
|
mutation logout {
|
|
606
638
|
logout {
|
|
@@ -649,6 +681,18 @@ var useLogin = () => {
|
|
|
649
681
|
const [login, { loading, error }] = useMutation2(LOGIN_MUTATION);
|
|
650
682
|
return { error, loading, login };
|
|
651
683
|
};
|
|
684
|
+
var useGoogleSignIn = () => {
|
|
685
|
+
const [googleSignIn, { loading, error }] = useMutation2(
|
|
686
|
+
GOOGLE_SIGN_IN_MUTATION
|
|
687
|
+
);
|
|
688
|
+
return { error, loading, googleSignIn };
|
|
689
|
+
};
|
|
690
|
+
var useGoogleRegister = () => {
|
|
691
|
+
const [googleRegister, { loading, error }] = useMutation2(
|
|
692
|
+
GOOGLE_REGISTER_MUTATION
|
|
693
|
+
);
|
|
694
|
+
return { error, loading, googleRegister };
|
|
695
|
+
};
|
|
652
696
|
var useLogout = () => {
|
|
653
697
|
const [logout, { loading, error }] = useMutation2(LOGOUT_MUTATION);
|
|
654
698
|
return { error, loading, logout };
|
|
@@ -988,12 +1032,17 @@ var GET_USER_ACTIVITIES = gql11`
|
|
|
988
1032
|
...VendorFields
|
|
989
1033
|
}
|
|
990
1034
|
}
|
|
1035
|
+
going {
|
|
1036
|
+
events {
|
|
1037
|
+
...EventFields
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
991
1040
|
interested {
|
|
992
1041
|
events {
|
|
993
1042
|
...EventFields
|
|
994
1043
|
}
|
|
995
1044
|
}
|
|
996
|
-
|
|
1045
|
+
present {
|
|
997
1046
|
events {
|
|
998
1047
|
...EventFields
|
|
999
1048
|
}
|
|
@@ -2163,6 +2212,38 @@ var REMOVE_USER_GOING_RESOURCE_MUTATION = gql22`
|
|
|
2163
2212
|
}
|
|
2164
2213
|
${USER_FIELDS_FRAGMENT}
|
|
2165
2214
|
`;
|
|
2215
|
+
var ADD_USER_PRESENT_RESOURCE_MUTATION = gql22`
|
|
2216
|
+
mutation addUserPresentResource(
|
|
2217
|
+
$resourceId: ID!
|
|
2218
|
+
$startDate: String!
|
|
2219
|
+
$userId: ID!
|
|
2220
|
+
) {
|
|
2221
|
+
addUserPresentResource(
|
|
2222
|
+
resourceId: $resourceId
|
|
2223
|
+
startDate: $startDate
|
|
2224
|
+
userId: $userId
|
|
2225
|
+
) {
|
|
2226
|
+
...UserFields
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
${USER_FIELDS_FRAGMENT}
|
|
2230
|
+
`;
|
|
2231
|
+
var REMOVE_USER_PRESENT_RESOURCE_MUTATION = gql22`
|
|
2232
|
+
mutation removeUserPresentResource(
|
|
2233
|
+
$resourceId: ID!
|
|
2234
|
+
$startDate: String!
|
|
2235
|
+
$userId: ID!
|
|
2236
|
+
) {
|
|
2237
|
+
removeUserPresentResource(
|
|
2238
|
+
resourceId: $resourceId
|
|
2239
|
+
startDate: $startDate
|
|
2240
|
+
userId: $userId
|
|
2241
|
+
) {
|
|
2242
|
+
...UserFields
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
2245
|
+
${USER_FIELDS_FRAGMENT}
|
|
2246
|
+
`;
|
|
2166
2247
|
|
|
2167
2248
|
// src/graphql/hooks/user/hooksMutation.ts
|
|
2168
2249
|
var useCreateUser = () => {
|
|
@@ -2262,6 +2343,26 @@ var useRemoveUserGoingResource = () => {
|
|
|
2262
2343
|
);
|
|
2263
2344
|
return { error, loading, removeUserGoingResource };
|
|
2264
2345
|
};
|
|
2346
|
+
var useAddUserPresentResource = () => {
|
|
2347
|
+
const [addUserPresentResource, { loading, error }] = useMutation12(
|
|
2348
|
+
ADD_USER_PRESENT_RESOURCE_MUTATION,
|
|
2349
|
+
{
|
|
2350
|
+
awaitRefetchQueries: true,
|
|
2351
|
+
refetchQueries: [{ query: GET_USER_ACTIVITIES }]
|
|
2352
|
+
}
|
|
2353
|
+
);
|
|
2354
|
+
return { addUserPresentResource, error, loading };
|
|
2355
|
+
};
|
|
2356
|
+
var useRemoveUserPresentResource = () => {
|
|
2357
|
+
const [removeUserPresentResource, { loading, error }] = useMutation12(
|
|
2358
|
+
REMOVE_USER_PRESENT_RESOURCE_MUTATION,
|
|
2359
|
+
{
|
|
2360
|
+
awaitRefetchQueries: true,
|
|
2361
|
+
refetchQueries: [{ query: GET_USER_ACTIVITIES }]
|
|
2362
|
+
}
|
|
2363
|
+
);
|
|
2364
|
+
return { error, loading, removeUserPresentResource };
|
|
2365
|
+
};
|
|
2265
2366
|
|
|
2266
2367
|
// src/graphql/hooks/user/hooksQuery.ts
|
|
2267
2368
|
import { useQuery as useQuery7 } from "@apollo/client";
|
|
@@ -2307,6 +2408,9 @@ var useGetUserActivities = () => {
|
|
|
2307
2408
|
},
|
|
2308
2409
|
interested: {
|
|
2309
2410
|
events: data?.userActivities.interested.events
|
|
2411
|
+
},
|
|
2412
|
+
present: {
|
|
2413
|
+
events: data?.userActivities.present.events
|
|
2310
2414
|
}
|
|
2311
2415
|
};
|
|
2312
2416
|
return { error, loading, refetch, userActivities };
|
|
@@ -2545,6 +2649,7 @@ export {
|
|
|
2545
2649
|
useAddUserFavouriteResource,
|
|
2546
2650
|
useAddUserGoingResource,
|
|
2547
2651
|
useAddUserInterestResource,
|
|
2652
|
+
useAddUserPresentResource,
|
|
2548
2653
|
useAdminUpdateResourceType,
|
|
2549
2654
|
useContactUs,
|
|
2550
2655
|
useCreateAd,
|
|
@@ -2600,6 +2705,8 @@ export {
|
|
|
2600
2705
|
useGetVendorRelations,
|
|
2601
2706
|
useGetVendors,
|
|
2602
2707
|
useGetVendorsByRegion,
|
|
2708
|
+
useGoogleRegister,
|
|
2709
|
+
useGoogleSignIn,
|
|
2603
2710
|
useLogin,
|
|
2604
2711
|
useLogout,
|
|
2605
2712
|
useMarkAllNotificationsRead,
|
|
@@ -2610,6 +2717,7 @@ export {
|
|
|
2610
2717
|
useRemoveUserFavouriteResource,
|
|
2611
2718
|
useRemoveUserGoingResource,
|
|
2612
2719
|
useRemoveUserInterestResource,
|
|
2720
|
+
useRemoveUserPresentResource,
|
|
2613
2721
|
useRequestPasswordReset,
|
|
2614
2722
|
useResetPassword,
|
|
2615
2723
|
useSearchEvents,
|