@timardex/cluemart-shared 1.0.93 → 1.0.95

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/index.d.mts CHANGED
@@ -247,52 +247,6 @@ interface SatllholderWithConnectionDatesType extends StallholderType {
247
247
  relationDates: RelationDate[] | undefined;
248
248
  }
249
249
 
250
- type UserFormData = {
251
- _id?: string;
252
- active: boolean;
253
- avatar?: ResourceImageType | null;
254
- avatarUpload?: ResourceImageType | null;
255
- confirmPassword: string;
256
- email: string;
257
- firstName: string;
258
- lastName: string;
259
- password: string;
260
- preferredRegion: string;
261
- role: EnumUserRole;
262
- };
263
- interface CreateUserFormData {
264
- control: Control<UserFormData, any>;
265
- fields: UserFormData;
266
- formState: {
267
- errors: FieldErrors<UserFormData>;
268
- };
269
- handleSubmit: UseFormHandleSubmit<UserFormData, any>;
270
- reset: UseFormReset<UserFormData>;
271
- setValue: UseFormSetValue<UserFormData>;
272
- watch: UseFormWatch<UserFormData>;
273
- }
274
- interface UserType {
275
- _id: string;
276
- active: boolean;
277
- avatar: ResourceImageType | null;
278
- createdAt: string;
279
- email: string;
280
- favourites: {
281
- markets: string[];
282
- stallholders: string[];
283
- };
284
- firstName: string;
285
- lastName: string;
286
- licences: EnumUserLicence[] | null;
287
- markets: string[] | null;
288
- password: string;
289
- preferredRegion: string;
290
- refreshToken: string | null;
291
- role: EnumUserRole;
292
- stallholder: string | null;
293
- updatedAt: string;
294
- }
295
-
296
250
  type Nullable<T> = {
297
251
  [K in keyof T]: T[K] | null | undefined;
298
252
  };
@@ -319,10 +273,17 @@ interface BaseResourceTypeFormData {
319
273
  region: string;
320
274
  socialMedia?: SocialMediaType[] | null;
321
275
  }
276
+ type OwnerType = {
277
+ _id: string;
278
+ avatar: string | null;
279
+ email: string;
280
+ licences: string[];
281
+ name: string;
282
+ };
322
283
  type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
323
284
  _id: string;
324
285
  createdAt: string;
325
- owner: Pick<UserType, "_id" | "email" | "licences">;
286
+ owner: OwnerType;
326
287
  relationIds: string[] | null;
327
288
  updatedAt: string;
328
289
  };
@@ -496,14 +457,9 @@ interface CreateValidateVerificationTokenFormData {
496
457
  watch: UseFormWatch<ValidateVerificationTokenFormData>;
497
458
  }
498
459
 
499
- interface ChatParticipantType {
500
- userId: string;
501
- userName: string;
502
- userAvatar: string | null;
503
- }
504
460
  interface ChatInput {
505
461
  name: string;
506
- participants: ChatParticipantType[];
462
+ participants: OwnerType[];
507
463
  }
508
464
  interface ChatMessageInput {
509
465
  content: string;
@@ -523,7 +479,7 @@ interface ChatType {
523
479
  createdAt: string;
524
480
  messages: ChatMessageType[];
525
481
  name: string;
526
- participants: ChatParticipantType[];
482
+ participants: OwnerType[];
527
483
  updatedAt: string;
528
484
  }
529
485
 
@@ -610,6 +566,52 @@ type TesterType = {
610
566
  updatedAt: string;
611
567
  };
612
568
 
569
+ type UserFormData = {
570
+ _id?: string;
571
+ active: boolean;
572
+ avatar?: ResourceImageType | null;
573
+ avatarUpload?: ResourceImageType | null;
574
+ confirmPassword: string;
575
+ email: string;
576
+ firstName: string;
577
+ lastName: string;
578
+ password: string;
579
+ preferredRegion: string;
580
+ role: EnumUserRole;
581
+ };
582
+ interface CreateUserFormData {
583
+ control: Control<UserFormData, any>;
584
+ fields: UserFormData;
585
+ formState: {
586
+ errors: FieldErrors<UserFormData>;
587
+ };
588
+ handleSubmit: UseFormHandleSubmit<UserFormData, any>;
589
+ reset: UseFormReset<UserFormData>;
590
+ setValue: UseFormSetValue<UserFormData>;
591
+ watch: UseFormWatch<UserFormData>;
592
+ }
593
+ interface UserType {
594
+ _id: string;
595
+ active: boolean;
596
+ avatar: ResourceImageType | null;
597
+ createdAt: string;
598
+ email: string;
599
+ favourites: {
600
+ markets: string[];
601
+ stallholders: string[];
602
+ };
603
+ firstName: string;
604
+ lastName: string;
605
+ licences: EnumUserLicence[] | null;
606
+ markets: string[] | null;
607
+ password: string;
608
+ preferredRegion: string;
609
+ refreshToken: string | null;
610
+ role: EnumUserRole;
611
+ stallholder: string | null;
612
+ updatedAt: string;
613
+ }
614
+
613
615
  declare const stallholderElectricity: {
614
616
  details: FormField;
615
617
  isRequired: FormField;
@@ -709,11 +711,6 @@ declare const useResetPassword: () => {
709
711
  resetPassword: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
710
712
  };
711
713
 
712
- declare const useCreateChat: () => {
713
- createChat: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
714
- error: _apollo_client.ApolloError | undefined;
715
- loading: boolean;
716
- };
717
714
  declare const useSendChatMessage: () => {
718
715
  error: _apollo_client.ApolloError | undefined;
719
716
  loading: boolean;
@@ -1270,4 +1267,4 @@ declare const availableRegionOptions: OptionItem[];
1270
1267
  declare const paymentMethodOptions: OptionItem[];
1271
1268
  declare function normalizeUrl(url: string): string;
1272
1269
 
1273
- export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatParticipantType, type ChatType, type ContactUsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, 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, EnumInviteStatus, EnumNotification, EnumNotificationType, EnumOSType, 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 NotificationType, type Nullable, type OptionItem, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, 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, 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, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateBulkNotifications, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteNotification, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, 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, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
1270
+ export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, 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, EnumInviteStatus, EnumNotification, EnumNotificationType, EnumOSType, 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 NotificationType, type Nullable, type OptionItem, type OwnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, 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, 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, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateBulkNotifications, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteNotification, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, 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, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
package/dist/index.d.ts CHANGED
@@ -247,52 +247,6 @@ interface SatllholderWithConnectionDatesType extends StallholderType {
247
247
  relationDates: RelationDate[] | undefined;
248
248
  }
249
249
 
250
- type UserFormData = {
251
- _id?: string;
252
- active: boolean;
253
- avatar?: ResourceImageType | null;
254
- avatarUpload?: ResourceImageType | null;
255
- confirmPassword: string;
256
- email: string;
257
- firstName: string;
258
- lastName: string;
259
- password: string;
260
- preferredRegion: string;
261
- role: EnumUserRole;
262
- };
263
- interface CreateUserFormData {
264
- control: Control<UserFormData, any>;
265
- fields: UserFormData;
266
- formState: {
267
- errors: FieldErrors<UserFormData>;
268
- };
269
- handleSubmit: UseFormHandleSubmit<UserFormData, any>;
270
- reset: UseFormReset<UserFormData>;
271
- setValue: UseFormSetValue<UserFormData>;
272
- watch: UseFormWatch<UserFormData>;
273
- }
274
- interface UserType {
275
- _id: string;
276
- active: boolean;
277
- avatar: ResourceImageType | null;
278
- createdAt: string;
279
- email: string;
280
- favourites: {
281
- markets: string[];
282
- stallholders: string[];
283
- };
284
- firstName: string;
285
- lastName: string;
286
- licences: EnumUserLicence[] | null;
287
- markets: string[] | null;
288
- password: string;
289
- preferredRegion: string;
290
- refreshToken: string | null;
291
- role: EnumUserRole;
292
- stallholder: string | null;
293
- updatedAt: string;
294
- }
295
-
296
250
  type Nullable<T> = {
297
251
  [K in keyof T]: T[K] | null | undefined;
298
252
  };
@@ -319,10 +273,17 @@ interface BaseResourceTypeFormData {
319
273
  region: string;
320
274
  socialMedia?: SocialMediaType[] | null;
321
275
  }
276
+ type OwnerType = {
277
+ _id: string;
278
+ avatar: string | null;
279
+ email: string;
280
+ licences: string[];
281
+ name: string;
282
+ };
322
283
  type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
323
284
  _id: string;
324
285
  createdAt: string;
325
- owner: Pick<UserType, "_id" | "email" | "licences">;
286
+ owner: OwnerType;
326
287
  relationIds: string[] | null;
327
288
  updatedAt: string;
328
289
  };
@@ -496,14 +457,9 @@ interface CreateValidateVerificationTokenFormData {
496
457
  watch: UseFormWatch<ValidateVerificationTokenFormData>;
497
458
  }
498
459
 
499
- interface ChatParticipantType {
500
- userId: string;
501
- userName: string;
502
- userAvatar: string | null;
503
- }
504
460
  interface ChatInput {
505
461
  name: string;
506
- participants: ChatParticipantType[];
462
+ participants: OwnerType[];
507
463
  }
508
464
  interface ChatMessageInput {
509
465
  content: string;
@@ -523,7 +479,7 @@ interface ChatType {
523
479
  createdAt: string;
524
480
  messages: ChatMessageType[];
525
481
  name: string;
526
- participants: ChatParticipantType[];
482
+ participants: OwnerType[];
527
483
  updatedAt: string;
528
484
  }
529
485
 
@@ -610,6 +566,52 @@ type TesterType = {
610
566
  updatedAt: string;
611
567
  };
612
568
 
569
+ type UserFormData = {
570
+ _id?: string;
571
+ active: boolean;
572
+ avatar?: ResourceImageType | null;
573
+ avatarUpload?: ResourceImageType | null;
574
+ confirmPassword: string;
575
+ email: string;
576
+ firstName: string;
577
+ lastName: string;
578
+ password: string;
579
+ preferredRegion: string;
580
+ role: EnumUserRole;
581
+ };
582
+ interface CreateUserFormData {
583
+ control: Control<UserFormData, any>;
584
+ fields: UserFormData;
585
+ formState: {
586
+ errors: FieldErrors<UserFormData>;
587
+ };
588
+ handleSubmit: UseFormHandleSubmit<UserFormData, any>;
589
+ reset: UseFormReset<UserFormData>;
590
+ setValue: UseFormSetValue<UserFormData>;
591
+ watch: UseFormWatch<UserFormData>;
592
+ }
593
+ interface UserType {
594
+ _id: string;
595
+ active: boolean;
596
+ avatar: ResourceImageType | null;
597
+ createdAt: string;
598
+ email: string;
599
+ favourites: {
600
+ markets: string[];
601
+ stallholders: string[];
602
+ };
603
+ firstName: string;
604
+ lastName: string;
605
+ licences: EnumUserLicence[] | null;
606
+ markets: string[] | null;
607
+ password: string;
608
+ preferredRegion: string;
609
+ refreshToken: string | null;
610
+ role: EnumUserRole;
611
+ stallholder: string | null;
612
+ updatedAt: string;
613
+ }
614
+
613
615
  declare const stallholderElectricity: {
614
616
  details: FormField;
615
617
  isRequired: FormField;
@@ -709,11 +711,6 @@ declare const useResetPassword: () => {
709
711
  resetPassword: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
710
712
  };
711
713
 
712
- declare const useCreateChat: () => {
713
- createChat: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
714
- error: _apollo_client.ApolloError | undefined;
715
- loading: boolean;
716
- };
717
714
  declare const useSendChatMessage: () => {
718
715
  error: _apollo_client.ApolloError | undefined;
719
716
  loading: boolean;
@@ -1270,4 +1267,4 @@ declare const availableRegionOptions: OptionItem[];
1270
1267
  declare const paymentMethodOptions: OptionItem[];
1271
1268
  declare function normalizeUrl(url: string): string;
1272
1269
 
1273
- export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatParticipantType, type ChatType, type ContactUsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, 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, EnumInviteStatus, EnumNotification, EnumNotificationType, EnumOSType, 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 NotificationType, type Nullable, type OptionItem, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, 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, 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, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateBulkNotifications, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteNotification, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, 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, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
1270
+ export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, 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, EnumInviteStatus, EnumNotification, EnumNotificationType, EnumOSType, 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 NotificationType, type Nullable, type OptionItem, type OwnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, 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, 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, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateBulkNotifications, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteNotification, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, 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, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
package/dist/index.mjs CHANGED
@@ -1828,8 +1828,10 @@ var RESOURCE_IMAGE_FIELDS_FRAGMENT = gql2`
1828
1828
  var OWNER_FIELDS_FRAGMENT = gql2`
1829
1829
  fragment OwnerFields on OwnerType {
1830
1830
  _id
1831
+ avatar
1831
1832
  email
1832
1833
  licences
1834
+ name
1833
1835
  }
1834
1836
  `;
1835
1837
  var CATEGORY_FIELDS_FRAGMENT = gql2`
@@ -2321,13 +2323,12 @@ var CHAT_FIELDS_FRAGMENT = gql6`
2321
2323
  }
2322
2324
  name
2323
2325
  participants {
2324
- userId
2325
- userName
2326
- userAvatar
2326
+ ...OwnerFields
2327
2327
  }
2328
2328
  updatedAt
2329
2329
  }
2330
2330
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
2331
+ ${OWNER_FIELDS_FRAGMENT}
2331
2332
  `;
2332
2333
  var CHAT = gql6`
2333
2334
  query chat($_id: ID!) {
@@ -2355,14 +2356,6 @@ var GET_CHAT_MESSAGE = gql6`
2355
2356
  `;
2356
2357
 
2357
2358
  // src/graphql/mutations/chat.ts
2358
- var CREATE_CHAT_MUTATION = gql7`
2359
- mutation createChat($input: ChatInputType!) {
2360
- createChat(input: $input) {
2361
- ...ChatFields
2362
- }
2363
- }
2364
- ${CHAT_FIELDS_FRAGMENT}
2365
- `;
2366
2359
  var SEND_CHAT_MESSAGE_MUTATION = gql7`
2367
2360
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
2368
2361
  sendChatMessage(_id: $_id, input: $input) {
@@ -2394,25 +2387,6 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = gql7`
2394
2387
  `;
2395
2388
 
2396
2389
  // src/graphql/hooks/chat/hooksMutation.ts
2397
- var useCreateChat = () => {
2398
- const [createChat, { loading, error }] = useMutation3(CREATE_CHAT_MUTATION, {
2399
- awaitRefetchQueries: true,
2400
- refetchQueries: (mutationResult) => {
2401
- const chatId = mutationResult?.data?.createChat?._id;
2402
- return [
2403
- {
2404
- query: USER_CHATS,
2405
- variables: { userId: mutationResult?.data?.createChat?.userId }
2406
- },
2407
- {
2408
- query: CHAT,
2409
- variables: { _id: chatId }
2410
- }
2411
- ];
2412
- }
2413
- });
2414
- return { createChat, error, loading };
2415
- };
2416
2390
  var useSendChatMessage = () => {
2417
2391
  const [sendChatMessage, { loading, error }] = useMutation3(
2418
2392
  SEND_CHAT_MESSAGE_MUTATION,
@@ -5132,7 +5106,6 @@ export {
5132
5106
  useContactUs,
5133
5107
  useContactUsForm,
5134
5108
  useCreateBulkNotifications,
5135
- useCreateChat,
5136
5109
  useCreateMarket,
5137
5110
  useCreateMarketInfo,
5138
5111
  useCreatePoster,