@timardex/cluemart-shared 1.3.52 → 1.3.54
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-D0kD3ZTx.d.ts → auth-BD8pG4QE.d.ts} +1 -9
- package/dist/{auth-DT2zs6P6.d.mts → auth-Cp-vzzpW.d.mts} +1 -9
- package/dist/graphql/index.cjs +45 -13
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +13 -4
- package/dist/graphql/index.d.ts +13 -4
- package/dist/graphql/index.mjs +42 -11
- 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 +45 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +15 -3
- package/dist/index.d.ts +15 -3
- package/dist/index.mjs +42 -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/package.json +1 -1
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: () => {
|
|
@@ -857,10 +857,19 @@ declare const useGetPostsByType: (postType: EnumPostType) => {
|
|
|
857
857
|
}>>;
|
|
858
858
|
};
|
|
859
859
|
|
|
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>>;
|
|
860
|
+
declare const useUpdateAppSettings: () => {
|
|
862
861
|
error: _apollo_client.ApolloError | undefined;
|
|
863
862
|
loading: boolean;
|
|
863
|
+
updateAppSettings: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
864
864
|
};
|
|
865
865
|
|
|
866
|
-
|
|
866
|
+
declare const useGetAppSettings: () => {
|
|
867
|
+
appSettings: AppSettingsType | null;
|
|
868
|
+
error: _apollo_client.ApolloError | undefined;
|
|
869
|
+
loading: boolean;
|
|
870
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
871
|
+
appSettings: AppSettingsType;
|
|
872
|
+
}>>;
|
|
873
|
+
};
|
|
874
|
+
|
|
875
|
+
export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, 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: () => {
|
|
@@ -857,10 +857,19 @@ declare const useGetPostsByType: (postType: EnumPostType) => {
|
|
|
857
857
|
}>>;
|
|
858
858
|
};
|
|
859
859
|
|
|
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>>;
|
|
860
|
+
declare const useUpdateAppSettings: () => {
|
|
862
861
|
error: _apollo_client.ApolloError | undefined;
|
|
863
862
|
loading: boolean;
|
|
863
|
+
updateAppSettings: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
864
864
|
};
|
|
865
865
|
|
|
866
|
-
|
|
866
|
+
declare const useGetAppSettings: () => {
|
|
867
|
+
appSettings: AppSettingsType | null;
|
|
868
|
+
error: _apollo_client.ApolloError | undefined;
|
|
869
|
+
loading: boolean;
|
|
870
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
871
|
+
appSettings: AppSettingsType;
|
|
872
|
+
}>>;
|
|
873
|
+
};
|
|
874
|
+
|
|
875
|
+
export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, 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
|
@@ -3239,22 +3239,52 @@ import { useMutation as useMutation18 } from "@apollo/client";
|
|
|
3239
3239
|
|
|
3240
3240
|
// src/graphql/mutations/appSettings.ts
|
|
3241
3241
|
import { gql as gql33 } from "@apollo/client";
|
|
3242
|
-
var
|
|
3243
|
-
mutation
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3242
|
+
var UPDATE_APP_SETTINGS_MUTATION = gql33`
|
|
3243
|
+
mutation updateAppSettings($input: AppSettingsInputType!) {
|
|
3244
|
+
updateAppSettings(input: $input)
|
|
3245
|
+
}
|
|
3246
|
+
`;
|
|
3247
|
+
|
|
3248
|
+
// src/graphql/queries/appSettings.ts
|
|
3249
|
+
import { gql as gql34 } from "@apollo/client";
|
|
3250
|
+
var APP_SETTINGS_FIELDS_FRAGMENT = gql34`
|
|
3251
|
+
fragment AppSettingsFields on AppSettingsType {
|
|
3252
|
+
_id
|
|
3253
|
+
appVersion
|
|
3254
|
+
createdAt
|
|
3255
|
+
key
|
|
3256
|
+
updatedAt
|
|
3257
|
+
}
|
|
3258
|
+
`;
|
|
3259
|
+
var GET_APP_SETTINGS = gql34`
|
|
3260
|
+
query getAppSettings {
|
|
3261
|
+
appSettings {
|
|
3262
|
+
...AppSettingsFields
|
|
3248
3263
|
}
|
|
3249
3264
|
}
|
|
3265
|
+
${APP_SETTINGS_FIELDS_FRAGMENT}
|
|
3250
3266
|
`;
|
|
3251
3267
|
|
|
3252
3268
|
// src/graphql/hooks/appSettings/hooksMutation.ts
|
|
3253
|
-
var
|
|
3254
|
-
const [
|
|
3255
|
-
|
|
3269
|
+
var useUpdateAppSettings = () => {
|
|
3270
|
+
const [updateAppSettings, { loading, error }] = useMutation18(
|
|
3271
|
+
UPDATE_APP_SETTINGS_MUTATION,
|
|
3272
|
+
{
|
|
3273
|
+
awaitRefetchQueries: true,
|
|
3274
|
+
refetchQueries: [{ query: GET_APP_SETTINGS }]
|
|
3275
|
+
}
|
|
3256
3276
|
);
|
|
3257
|
-
return {
|
|
3277
|
+
return { error, loading, updateAppSettings };
|
|
3278
|
+
};
|
|
3279
|
+
|
|
3280
|
+
// src/graphql/hooks/appSettings/hooksQuery.ts
|
|
3281
|
+
import { useQuery as useQuery13 } from "@apollo/client";
|
|
3282
|
+
var useGetAppSettings = () => {
|
|
3283
|
+
const { loading, error, data, refetch } = useQuery13(GET_APP_SETTINGS, {
|
|
3284
|
+
fetchPolicy: "network-only"
|
|
3285
|
+
});
|
|
3286
|
+
const appSettings = data?.appSettings || null;
|
|
3287
|
+
return { appSettings, error, loading, refetch };
|
|
3258
3288
|
};
|
|
3259
3289
|
export {
|
|
3260
3290
|
useAddParticipantToChat,
|
|
@@ -3265,7 +3295,6 @@ export {
|
|
|
3265
3295
|
useAdminResendTesterVerificationEmail,
|
|
3266
3296
|
useAdminUpdateResourceType,
|
|
3267
3297
|
useAdminUpdateTester,
|
|
3268
|
-
useAppVersionCheck,
|
|
3269
3298
|
useCancelSubscription,
|
|
3270
3299
|
useContactUs,
|
|
3271
3300
|
useCreateAd,
|
|
@@ -3300,6 +3329,7 @@ export {
|
|
|
3300
3329
|
useGetAd,
|
|
3301
3330
|
useGetAds,
|
|
3302
3331
|
useGetAdsByRegion,
|
|
3332
|
+
useGetAppSettings,
|
|
3303
3333
|
useGetChat,
|
|
3304
3334
|
useGetChatSubscription,
|
|
3305
3335
|
useGetEvent,
|
|
@@ -3357,6 +3387,7 @@ export {
|
|
|
3357
3387
|
useSelectPackage,
|
|
3358
3388
|
useSendChatMessage,
|
|
3359
3389
|
useUpdateAd,
|
|
3390
|
+
useUpdateAppSettings,
|
|
3360
3391
|
useUpdateEvent,
|
|
3361
3392
|
useUpdateEventInfo,
|
|
3362
3393
|
useUpdatePartner,
|