@timardex/cluemart-shared 1.3.53 → 1.3.55
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-DRTR-N6y.d.ts → auth-BD8pG4QE.d.ts} +1 -11
- package/dist/{auth-D2Xc44z-.d.mts → auth-Cp-vzzpW.d.mts} +1 -11
- package/dist/{chunk-T4ZRRNJA.mjs → chunk-IXPWY6CU.mjs} +2 -1
- package/dist/chunk-IXPWY6CU.mjs.map +1 -0
- package/dist/{chunk-6DQPQJ2R.mjs → chunk-O3WF2I56.mjs} +2 -2
- package/dist/enums/index.cjs +1 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +1 -0
- package/dist/enums/index.d.ts +1 -0
- package/dist/enums/index.mjs +1 -1
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +2 -2
- package/dist/graphql/index.cjs +62 -13
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +18 -4
- package/dist/graphql/index.d.ts +18 -4
- package/dist/graphql/index.mjs +59 -12
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.cjs +63 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +19 -3
- package/dist/index.d.ts +19 -3
- package/dist/index.mjs +59 -11
- package/dist/index.mjs.map +1 -1
- package/dist/{post-D83V8snF.d.ts → post-Ccnm8wXU.d.ts} +12 -1
- package/dist/{post-CLTR6oRS.d.mts → post-DMNuE0Ba.d.mts} +12 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-T4ZRRNJA.mjs.map +0 -1
- /package/dist/{chunk-6DQPQJ2R.mjs.map → chunk-O3WF2I56.mjs.map} +0 -0
package/dist/graphql/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _apollo_client from '@apollo/client';
|
|
|
2
2
|
import { EnumResourceType } from '../enums/index.mjs';
|
|
3
3
|
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-CJRTZROh.mjs';
|
|
4
4
|
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UnregisteredVendorType, f as UserActivityEventType, g as UserLicenceType } from '../global-DjZooB3t.mjs';
|
|
5
|
-
import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType } from '../post-
|
|
5
|
+
import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType, c as AppSettingsType } from '../post-DMNuE0Ba.mjs';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
|
@@ -40,6 +40,11 @@ declare const useAdminResendTesterVerificationEmail: () => {
|
|
|
40
40
|
error: _apollo_client.ApolloError | undefined;
|
|
41
41
|
loading: boolean;
|
|
42
42
|
};
|
|
43
|
+
declare const useAdminResendUserVerificationEmail: () => {
|
|
44
|
+
adminResendUserVerificationEmail: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
45
|
+
error: _apollo_client.ApolloError | undefined;
|
|
46
|
+
loading: boolean;
|
|
47
|
+
};
|
|
43
48
|
|
|
44
49
|
declare const useRegister: () => {
|
|
45
50
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -857,10 +862,19 @@ declare const useGetPostsByType: (postType: EnumPostType) => {
|
|
|
857
862
|
}>>;
|
|
858
863
|
};
|
|
859
864
|
|
|
860
|
-
declare const
|
|
861
|
-
appVersionCheck: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
865
|
+
declare const useUpdateAppSettings: () => {
|
|
862
866
|
error: _apollo_client.ApolloError | undefined;
|
|
863
867
|
loading: boolean;
|
|
868
|
+
updateAppSettings: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
869
|
+
};
|
|
870
|
+
|
|
871
|
+
declare const useGetAppSettings: () => {
|
|
872
|
+
appSettings: AppSettingsType | null;
|
|
873
|
+
error: _apollo_client.ApolloError | undefined;
|
|
874
|
+
loading: boolean;
|
|
875
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
876
|
+
appSettings: AppSettingsType;
|
|
877
|
+
}>>;
|
|
864
878
|
};
|
|
865
879
|
|
|
866
|
-
export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester,
|
|
880
|
+
export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useCancelSubscription, useContactUs, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, 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, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _apollo_client from '@apollo/client';
|
|
|
2
2
|
import { EnumResourceType } from '../enums/index.js';
|
|
3
3
|
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-CVwxvGeC.js';
|
|
4
4
|
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UnregisteredVendorType, f as UserActivityEventType, g as UserLicenceType } from '../global-BKEcBQxZ.js';
|
|
5
|
-
import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType } from '../post-
|
|
5
|
+
import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType, c as AppSettingsType } from '../post-Ccnm8wXU.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
|
@@ -40,6 +40,11 @@ declare const useAdminResendTesterVerificationEmail: () => {
|
|
|
40
40
|
error: _apollo_client.ApolloError | undefined;
|
|
41
41
|
loading: boolean;
|
|
42
42
|
};
|
|
43
|
+
declare const useAdminResendUserVerificationEmail: () => {
|
|
44
|
+
adminResendUserVerificationEmail: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
45
|
+
error: _apollo_client.ApolloError | undefined;
|
|
46
|
+
loading: boolean;
|
|
47
|
+
};
|
|
43
48
|
|
|
44
49
|
declare const useRegister: () => {
|
|
45
50
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -857,10 +862,19 @@ declare const useGetPostsByType: (postType: EnumPostType) => {
|
|
|
857
862
|
}>>;
|
|
858
863
|
};
|
|
859
864
|
|
|
860
|
-
declare const
|
|
861
|
-
appVersionCheck: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
865
|
+
declare const useUpdateAppSettings: () => {
|
|
862
866
|
error: _apollo_client.ApolloError | undefined;
|
|
863
867
|
loading: boolean;
|
|
868
|
+
updateAppSettings: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
869
|
+
};
|
|
870
|
+
|
|
871
|
+
declare const useGetAppSettings: () => {
|
|
872
|
+
appSettings: AppSettingsType | null;
|
|
873
|
+
error: _apollo_client.ApolloError | undefined;
|
|
874
|
+
loading: boolean;
|
|
875
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
876
|
+
appSettings: AppSettingsType;
|
|
877
|
+
}>>;
|
|
864
878
|
};
|
|
865
879
|
|
|
866
|
-
export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester,
|
|
880
|
+
export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useCancelSubscription, useContactUs, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, 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, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateAppSettings, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
|
package/dist/graphql/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-IXPWY6CU.mjs";
|
|
2
2
|
|
|
3
3
|
// src/graphql/hooks/admin/hooksMutation.ts
|
|
4
4
|
import { useMutation } from "@apollo/client";
|
|
@@ -27,6 +27,11 @@ var ADMIN_RESEND_TESTER_VERIFICATION_EMAIL_MUTATION = gql`
|
|
|
27
27
|
adminResendTesterVerificationEmail(testerId: $testerId)
|
|
28
28
|
}
|
|
29
29
|
`;
|
|
30
|
+
var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = gql`
|
|
31
|
+
mutation adminResendUserVerificationEmail($userId: ID!) {
|
|
32
|
+
adminResendUserVerificationEmail(userId: $userId)
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
30
35
|
|
|
31
36
|
// src/graphql/queries/event.ts
|
|
32
37
|
import { gql as gql3 } from "@apollo/client";
|
|
@@ -790,6 +795,16 @@ var useAdminResendTesterVerificationEmail = () => {
|
|
|
790
795
|
loading
|
|
791
796
|
};
|
|
792
797
|
};
|
|
798
|
+
var useAdminResendUserVerificationEmail = () => {
|
|
799
|
+
const [adminResendUserVerificationEmail, { loading, error }] = useMutation(
|
|
800
|
+
ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION
|
|
801
|
+
);
|
|
802
|
+
return {
|
|
803
|
+
adminResendUserVerificationEmail,
|
|
804
|
+
error,
|
|
805
|
+
loading
|
|
806
|
+
};
|
|
807
|
+
};
|
|
793
808
|
|
|
794
809
|
// src/graphql/hooks/auth.ts
|
|
795
810
|
import { useMutation as useMutation2 } from "@apollo/client";
|
|
@@ -3239,22 +3254,52 @@ import { useMutation as useMutation18 } from "@apollo/client";
|
|
|
3239
3254
|
|
|
3240
3255
|
// src/graphql/mutations/appSettings.ts
|
|
3241
3256
|
import { gql as gql33 } from "@apollo/client";
|
|
3242
|
-
var
|
|
3243
|
-
mutation
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3257
|
+
var UPDATE_APP_SETTINGS_MUTATION = gql33`
|
|
3258
|
+
mutation updateAppSettings($input: AppSettingsInputType!) {
|
|
3259
|
+
updateAppSettings(input: $input)
|
|
3260
|
+
}
|
|
3261
|
+
`;
|
|
3262
|
+
|
|
3263
|
+
// src/graphql/queries/appSettings.ts
|
|
3264
|
+
import { gql as gql34 } from "@apollo/client";
|
|
3265
|
+
var APP_SETTINGS_FIELDS_FRAGMENT = gql34`
|
|
3266
|
+
fragment AppSettingsFields on AppSettingsType {
|
|
3267
|
+
_id
|
|
3268
|
+
appVersion
|
|
3269
|
+
createdAt
|
|
3270
|
+
key
|
|
3271
|
+
updatedAt
|
|
3272
|
+
}
|
|
3273
|
+
`;
|
|
3274
|
+
var GET_APP_SETTINGS = gql34`
|
|
3275
|
+
query getAppSettings {
|
|
3276
|
+
appSettings {
|
|
3277
|
+
...AppSettingsFields
|
|
3248
3278
|
}
|
|
3249
3279
|
}
|
|
3280
|
+
${APP_SETTINGS_FIELDS_FRAGMENT}
|
|
3250
3281
|
`;
|
|
3251
3282
|
|
|
3252
3283
|
// src/graphql/hooks/appSettings/hooksMutation.ts
|
|
3253
|
-
var
|
|
3254
|
-
const [
|
|
3255
|
-
|
|
3284
|
+
var useUpdateAppSettings = () => {
|
|
3285
|
+
const [updateAppSettings, { loading, error }] = useMutation18(
|
|
3286
|
+
UPDATE_APP_SETTINGS_MUTATION,
|
|
3287
|
+
{
|
|
3288
|
+
awaitRefetchQueries: true,
|
|
3289
|
+
refetchQueries: [{ query: GET_APP_SETTINGS }]
|
|
3290
|
+
}
|
|
3256
3291
|
);
|
|
3257
|
-
return {
|
|
3292
|
+
return { error, loading, updateAppSettings };
|
|
3293
|
+
};
|
|
3294
|
+
|
|
3295
|
+
// src/graphql/hooks/appSettings/hooksQuery.ts
|
|
3296
|
+
import { useQuery as useQuery13 } from "@apollo/client";
|
|
3297
|
+
var useGetAppSettings = () => {
|
|
3298
|
+
const { loading, error, data, refetch } = useQuery13(GET_APP_SETTINGS, {
|
|
3299
|
+
fetchPolicy: "network-only"
|
|
3300
|
+
});
|
|
3301
|
+
const appSettings = data?.appSettings || null;
|
|
3302
|
+
return { appSettings, error, loading, refetch };
|
|
3258
3303
|
};
|
|
3259
3304
|
export {
|
|
3260
3305
|
useAddParticipantToChat,
|
|
@@ -3263,9 +3308,9 @@ export {
|
|
|
3263
3308
|
useAddUserInterestResource,
|
|
3264
3309
|
useAddUserPresentResource,
|
|
3265
3310
|
useAdminResendTesterVerificationEmail,
|
|
3311
|
+
useAdminResendUserVerificationEmail,
|
|
3266
3312
|
useAdminUpdateResourceType,
|
|
3267
3313
|
useAdminUpdateTester,
|
|
3268
|
-
useAppVersionCheck,
|
|
3269
3314
|
useCancelSubscription,
|
|
3270
3315
|
useContactUs,
|
|
3271
3316
|
useCreateAd,
|
|
@@ -3300,6 +3345,7 @@ export {
|
|
|
3300
3345
|
useGetAd,
|
|
3301
3346
|
useGetAds,
|
|
3302
3347
|
useGetAdsByRegion,
|
|
3348
|
+
useGetAppSettings,
|
|
3303
3349
|
useGetChat,
|
|
3304
3350
|
useGetChatSubscription,
|
|
3305
3351
|
useGetEvent,
|
|
@@ -3357,6 +3403,7 @@ export {
|
|
|
3357
3403
|
useSelectPackage,
|
|
3358
3404
|
useSendChatMessage,
|
|
3359
3405
|
useUpdateAd,
|
|
3406
|
+
useUpdateAppSettings,
|
|
3360
3407
|
useUpdateEvent,
|
|
3361
3408
|
useUpdateEventInfo,
|
|
3362
3409
|
useUpdatePartner,
|