@timardex/cluemart-shared 1.1.73 → 1.1.75
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 +68 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +15 -2
- package/dist/graphql/index.d.ts +15 -2
- package/dist/graphql/index.mjs +66 -0
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/index.cjs +68 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +23 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.mjs +66 -0
- package/dist/index.mjs.map +1 -1
- package/dist/{notification-BJF24Obz.d.ts → resourceViews-C2CYUMC0.d.ts} +26 -2
- package/dist/{notification-BgjtSkI7.d.mts → resourceViews-ja9Qif1X.d.mts} +26 -2
- package/dist/types/index.d.mts +3 -18
- package/dist/types/index.d.ts +3 -18
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -607,6 +607,15 @@ type ResourceViewsType = {
|
|
|
607
607
|
resourceId: string;
|
|
608
608
|
views: ResourceViewEntry[];
|
|
609
609
|
};
|
|
610
|
+
type ResourceViewInputType = {
|
|
611
|
+
resourceId: string;
|
|
612
|
+
resourceType: string;
|
|
613
|
+
views: Omit<ResourceViewEntry, "viewedAt" | "location"> & {
|
|
614
|
+
location: {
|
|
615
|
+
coordinates: number[];
|
|
616
|
+
} | null;
|
|
617
|
+
};
|
|
618
|
+
};
|
|
610
619
|
|
|
611
620
|
declare const stallholderElectricity: {
|
|
612
621
|
details: FormField;
|
|
@@ -1127,6 +1136,19 @@ declare const useGetAdsByRegion: (region: string, status?: EnumAdStatus) => {
|
|
|
1127
1136
|
}>>;
|
|
1128
1137
|
};
|
|
1129
1138
|
|
|
1139
|
+
declare const useCreateResourceViews: () => {
|
|
1140
|
+
createResourceViews: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1141
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1142
|
+
loading: boolean;
|
|
1143
|
+
};
|
|
1144
|
+
|
|
1145
|
+
declare const useGetResourceViews: (resourceId: string, resourceType: EnumResourceType) => {
|
|
1146
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1147
|
+
loading: boolean;
|
|
1148
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1149
|
+
resourceViews: ResourceViewsType[];
|
|
1150
|
+
};
|
|
1151
|
+
|
|
1130
1152
|
interface PlacePrediction {
|
|
1131
1153
|
place_id: string;
|
|
1132
1154
|
description: string;
|
|
@@ -1317,4 +1339,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1317
1339
|
declare const paymentMethodOptions: OptionItem[];
|
|
1318
1340
|
declare function normalizeUrl(url: string): string;
|
|
1319
1341
|
|
|
1320
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, type ResourceViewEntry, type ResourceViewsType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SocialMediaType, type StallType, type StallholderAttributes, type StallholderFormData, type StallholderInfoFormData, type StallholderInfoType, type StallholderLocation, type StallholderType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderFormValues, defaultStallholderInfoFormValues, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteMarket, useDeleteNotification, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSelectPackage, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateAd, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
|
1342
|
+
export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, type ResourceViewEntry, type ResourceViewInputType, type ResourceViewsType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SocialMediaType, type StallType, type StallholderAttributes, type StallholderFormData, type StallholderInfoFormData, type StallholderInfoType, type StallholderLocation, type StallholderType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderFormValues, defaultStallholderInfoFormValues, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceViews, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteMarket, useDeleteNotification, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetResourceViews, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSelectPackage, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateAd, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
package/dist/index.d.ts
CHANGED
|
@@ -607,6 +607,15 @@ type ResourceViewsType = {
|
|
|
607
607
|
resourceId: string;
|
|
608
608
|
views: ResourceViewEntry[];
|
|
609
609
|
};
|
|
610
|
+
type ResourceViewInputType = {
|
|
611
|
+
resourceId: string;
|
|
612
|
+
resourceType: string;
|
|
613
|
+
views: Omit<ResourceViewEntry, "viewedAt" | "location"> & {
|
|
614
|
+
location: {
|
|
615
|
+
coordinates: number[];
|
|
616
|
+
} | null;
|
|
617
|
+
};
|
|
618
|
+
};
|
|
610
619
|
|
|
611
620
|
declare const stallholderElectricity: {
|
|
612
621
|
details: FormField;
|
|
@@ -1127,6 +1136,19 @@ declare const useGetAdsByRegion: (region: string, status?: EnumAdStatus) => {
|
|
|
1127
1136
|
}>>;
|
|
1128
1137
|
};
|
|
1129
1138
|
|
|
1139
|
+
declare const useCreateResourceViews: () => {
|
|
1140
|
+
createResourceViews: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1141
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1142
|
+
loading: boolean;
|
|
1143
|
+
};
|
|
1144
|
+
|
|
1145
|
+
declare const useGetResourceViews: (resourceId: string, resourceType: EnumResourceType) => {
|
|
1146
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1147
|
+
loading: boolean;
|
|
1148
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1149
|
+
resourceViews: ResourceViewsType[];
|
|
1150
|
+
};
|
|
1151
|
+
|
|
1130
1152
|
interface PlacePrediction {
|
|
1131
1153
|
place_id: string;
|
|
1132
1154
|
description: string;
|
|
@@ -1317,4 +1339,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1317
1339
|
declare const paymentMethodOptions: OptionItem[];
|
|
1318
1340
|
declare function normalizeUrl(url: string): string;
|
|
1319
1341
|
|
|
1320
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, type ResourceViewEntry, type ResourceViewsType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SocialMediaType, type StallType, type StallholderAttributes, type StallholderFormData, type StallholderInfoFormData, type StallholderInfoType, type StallholderLocation, type StallholderType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderFormValues, defaultStallholderInfoFormValues, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteMarket, useDeleteNotification, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSelectPackage, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateAd, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
|
1342
|
+
export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, type ResourceViewEntry, type ResourceViewInputType, type ResourceViewsType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SocialMediaType, type StallType, type StallholderAttributes, type StallholderFormData, type StallholderInfoFormData, type StallholderInfoType, type StallholderLocation, type StallholderType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderFormValues, defaultStallholderInfoFormValues, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceViews, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteMarket, useDeleteNotification, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetResourceViews, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSelectPackage, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateAd, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
package/dist/index.mjs
CHANGED
|
@@ -4131,6 +4131,70 @@ var useGetAdsByRegion = (region, status) => {
|
|
|
4131
4131
|
};
|
|
4132
4132
|
};
|
|
4133
4133
|
|
|
4134
|
+
// src/graphql/hooks/resourceViews/hooksMutation.ts
|
|
4135
|
+
import { useMutation as useMutation14 } from "@apollo/client";
|
|
4136
|
+
|
|
4137
|
+
// src/graphql/mutations/resourceViews.ts
|
|
4138
|
+
import { gql as gql26 } from "@apollo/client";
|
|
4139
|
+
|
|
4140
|
+
// src/graphql/queries/resourceViews.ts
|
|
4141
|
+
import { gql as gql25 } from "@apollo/client";
|
|
4142
|
+
var RESOURCE_VIEWS_FIELDS_FRAGMENT = gql25`
|
|
4143
|
+
fragment ResourceViewsFields on ResourceViewsType {
|
|
4144
|
+
resourceId
|
|
4145
|
+
resourceType
|
|
4146
|
+
views {
|
|
4147
|
+
location {
|
|
4148
|
+
type
|
|
4149
|
+
coordinates
|
|
4150
|
+
}
|
|
4151
|
+
userAgent
|
|
4152
|
+
viewedAt
|
|
4153
|
+
}
|
|
4154
|
+
}
|
|
4155
|
+
`;
|
|
4156
|
+
var GET_RESOURCE_VIEWS = gql25`
|
|
4157
|
+
query getResourceViews($resourceType: ResourceTypeEnum!, $resourceId: ID!) {
|
|
4158
|
+
resourceViews(resourceType: $resourceType, resourceId: $resourceId) {
|
|
4159
|
+
...ResourceViewsFields
|
|
4160
|
+
}
|
|
4161
|
+
}
|
|
4162
|
+
${RESOURCE_VIEWS_FIELDS_FRAGMENT}
|
|
4163
|
+
`;
|
|
4164
|
+
|
|
4165
|
+
// src/graphql/mutations/resourceViews.ts
|
|
4166
|
+
var CREATE_RESOURCE_VIEWS_MUTATION = gql26`
|
|
4167
|
+
mutation createResourceViews($input: ResourceViewsInputType!) {
|
|
4168
|
+
createResourceViews(input: $input) {
|
|
4169
|
+
...ResourceViewsFields
|
|
4170
|
+
}
|
|
4171
|
+
}
|
|
4172
|
+
${RESOURCE_VIEWS_FIELDS_FRAGMENT}
|
|
4173
|
+
`;
|
|
4174
|
+
|
|
4175
|
+
// src/graphql/hooks/resourceViews/hooksMutation.ts
|
|
4176
|
+
var useCreateResourceViews = () => {
|
|
4177
|
+
const [createResourceViews, { loading, error }] = useMutation14(
|
|
4178
|
+
CREATE_RESOURCE_VIEWS_MUTATION
|
|
4179
|
+
);
|
|
4180
|
+
return { createResourceViews, error, loading };
|
|
4181
|
+
};
|
|
4182
|
+
|
|
4183
|
+
// src/graphql/hooks/resourceViews/hooksQuery.ts
|
|
4184
|
+
import { useQuery as useQuery9 } from "@apollo/client";
|
|
4185
|
+
var useGetResourceViews = (resourceId, resourceType) => {
|
|
4186
|
+
const { data, loading, error, refetch } = useQuery9(GET_RESOURCE_VIEWS, {
|
|
4187
|
+
fetchPolicy: "network-only",
|
|
4188
|
+
variables: { resourceId, resourceType }
|
|
4189
|
+
});
|
|
4190
|
+
return {
|
|
4191
|
+
error,
|
|
4192
|
+
loading,
|
|
4193
|
+
refetch,
|
|
4194
|
+
resourceViews: data?.resourceViews
|
|
4195
|
+
};
|
|
4196
|
+
};
|
|
4197
|
+
|
|
4134
4198
|
// src/hooks/useLocationSearch.ts
|
|
4135
4199
|
var handleApiError = (error, message) => {
|
|
4136
4200
|
console.error(message, error);
|
|
@@ -5701,6 +5765,7 @@ export {
|
|
|
5701
5765
|
useCreatePoster,
|
|
5702
5766
|
useCreatePushToken,
|
|
5703
5767
|
useCreateRelation,
|
|
5768
|
+
useCreateResourceViews,
|
|
5704
5769
|
useCreateStallholder,
|
|
5705
5770
|
useCreateStallholderInfo,
|
|
5706
5771
|
useCreateTester,
|
|
@@ -5730,6 +5795,7 @@ export {
|
|
|
5730
5795
|
useGetRelation,
|
|
5731
5796
|
useGetRelationByMarketAndStallholder,
|
|
5732
5797
|
useGetResourceConnections,
|
|
5798
|
+
useGetResourceViews,
|
|
5733
5799
|
useGetStallholder,
|
|
5734
5800
|
useGetStallholderInfo,
|
|
5735
5801
|
useGetStallholderRelations,
|