@timardex/cluemart-shared 1.2.29 → 1.2.31

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.
Files changed (48) hide show
  1. package/dist/ad-Cv1V8lgJ.d.ts +129 -0
  2. package/dist/ad-IVwm5MLY.d.mts +129 -0
  3. package/dist/{auth-CzEdRDf1.d.ts → auth-BCxQp_CF.d.ts} +1 -1
  4. package/dist/{auth-Ci6Uskch.d.mts → auth-BczaOu28.d.mts} +1 -1
  5. package/dist/{chunk-BO3HICLR.mjs → chunk-4OLDTZXH.mjs} +3 -1
  6. package/dist/chunk-4OLDTZXH.mjs.map +1 -0
  7. package/dist/{chunk-CQ7TCXMI.mjs → chunk-O6LVIQFK.mjs} +3 -5
  8. package/dist/chunk-O6LVIQFK.mjs.map +1 -0
  9. package/dist/formFields/index.d.mts +2 -1
  10. package/dist/formFields/index.d.ts +2 -1
  11. package/dist/{global-2Jk7sRkL.d.ts → global-Bnr6l_NH.d.ts} +21 -1
  12. package/dist/{global-DWuTxnJ8.d.mts → global-_89-F0iL.d.mts} +21 -1
  13. package/dist/graphql/index.d.mts +3 -3
  14. package/dist/graphql/index.d.ts +3 -3
  15. package/dist/hooks/index.d.mts +4 -4
  16. package/dist/hooks/index.d.ts +4 -4
  17. package/dist/index.cjs +112 -76
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.mts +132 -2
  20. package/dist/index.d.ts +132 -2
  21. package/dist/index.mjs +98 -76
  22. package/dist/index.mjs.map +1 -1
  23. package/dist/mongoose/index.cjs +94 -62
  24. package/dist/mongoose/index.cjs.map +1 -1
  25. package/dist/mongoose/index.d.mts +109 -4
  26. package/dist/mongoose/index.d.ts +109 -4
  27. package/dist/mongoose/index.mjs +22 -3
  28. package/dist/mongoose/index.mjs.map +1 -1
  29. package/dist/service/index.cjs +22 -15
  30. package/dist/service/index.cjs.map +1 -1
  31. package/dist/service/index.d.mts +9 -2
  32. package/dist/service/index.d.ts +9 -2
  33. package/dist/service/index.mjs +19 -13
  34. package/dist/service/index.mjs.map +1 -1
  35. package/dist/types/index.cjs +15 -2
  36. package/dist/types/index.cjs.map +1 -1
  37. package/dist/types/index.d.mts +5 -5
  38. package/dist/types/index.d.ts +5 -5
  39. package/dist/types/index.mjs +5 -3
  40. package/dist/utils/index.d.mts +2 -1
  41. package/dist/utils/index.d.ts +2 -1
  42. package/package.json +3 -1
  43. package/dist/ad-Crq-z5Wt.d.mts +0 -69
  44. package/dist/ad-DHetF-th.d.ts +0 -69
  45. package/dist/chunk-BO3HICLR.mjs.map +0 -1
  46. package/dist/chunk-CQ7TCXMI.mjs.map +0 -1
  47. package/dist/user-DbEEY7fv.d.ts +0 -64
  48. package/dist/user-OPY5EOqR.d.mts +0 -64
package/dist/index.d.mts CHANGED
@@ -1,4 +1,6 @@
1
+ import { Request } from 'express';
1
2
  import mongoose from 'mongoose';
3
+ export { default as mongoose } from 'mongoose';
2
4
  import { FieldValues, Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
3
5
  import * as _apollo_client from '@apollo/client';
4
6
 
@@ -578,6 +580,18 @@ declare const ParticipantSchema: mongoose.Schema<SchemaParticipantType, mongoose
578
580
  } & {
579
581
  __v: number;
580
582
  }>;
583
+ declare const ChatModel: mongoose.Model<SchemaChatType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaChatType, {}, {}> & Omit<ChatType, "participants" | "messages" | "resourceInfo"> & {
584
+ participants: SchemaParticipantType[];
585
+ messages: SchemaChatMessageType[];
586
+ resourceInfo: {
587
+ eventId: ObjectId;
588
+ vendorId: ObjectId;
589
+ } | null;
590
+ } & Required<{
591
+ _id: string;
592
+ }> & {
593
+ __v: number;
594
+ }, any>;
581
595
 
582
596
  type SchemaCreateBulkNotificationInput = Omit<CreateBulkNotificationInput, "userIds"> & {
583
597
  userIds: ObjectId[];
@@ -585,6 +599,13 @@ type SchemaCreateBulkNotificationInput = Omit<CreateBulkNotificationInput, "user
585
599
  type SchemaNotificationType = Omit<NotificationType, "userId"> & {
586
600
  userId: ObjectId;
587
601
  };
602
+ declare const NotificationModel: mongoose.Model<SchemaNotificationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaNotificationType, {}, {}> & Omit<NotificationType, "userId"> & {
603
+ userId: ObjectId;
604
+ } & Required<{
605
+ _id: string;
606
+ }> & {
607
+ __v: number;
608
+ }, any>;
588
609
 
589
610
  type Nullable<T> = {
590
611
  [K in keyof T]: T[K] | null | undefined;
@@ -1457,6 +1478,12 @@ declare function useContactUsForm(data?: ContactUsFormData): CreateContactUsForm
1457
1478
 
1458
1479
  declare function useAdForm(data?: AdFormData): CreateAdFormData;
1459
1480
 
1481
+ declare const AdModel: mongoose.Model<AdType, {}, {}, {}, mongoose.Document<unknown, {}, AdType, {}, {}> & AdType & Required<{
1482
+ _id: string;
1483
+ }> & {
1484
+ __v: number;
1485
+ }, any>;
1486
+
1460
1487
  type SchemaOwnerType = Omit<OwnerType, "userId"> & {
1461
1488
  userId: ObjectId;
1462
1489
  };
@@ -1674,6 +1701,13 @@ type PushTokenType = {
1674
1701
  type SchemaPushTokenType = Omit<PushTokenType, "userId"> & {
1675
1702
  userId: ObjectId;
1676
1703
  };
1704
+ declare const PushTokenModel: mongoose.Model<SchemaPushTokenType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPushTokenType, {}, {}> & Omit<PushTokenType, "userId"> & {
1705
+ userId: ObjectId;
1706
+ } & Required<{
1707
+ _id: string;
1708
+ }> & {
1709
+ __v: number;
1710
+ }, any>;
1677
1711
 
1678
1712
  declare const relationDatesSchema: mongoose.Schema<RelationDate, mongoose.Model<RelationDate, any, any, any, mongoose.Document<unknown, any, RelationDate, any, {}> & RelationDate & {
1679
1713
  _id: mongoose.Types.ObjectId;
@@ -1707,6 +1741,35 @@ declare const RelationTypeSchema: mongoose.Schema<SchemaRelationType, mongoose.M
1707
1741
  }> & {
1708
1742
  __v: number;
1709
1743
  }>;
1744
+ declare const RelationModel: mongoose.Model<SchemaRelationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaRelationType, {}, {}> & Omit<RelationType, "eventId" | "vendorId" | "chatId"> & {
1745
+ chatId: ObjectId;
1746
+ eventId: ObjectId;
1747
+ vendorId: ObjectId;
1748
+ } & Required<{
1749
+ _id: string;
1750
+ }> & {
1751
+ __v: number;
1752
+ }, any>;
1753
+
1754
+ declare const ResourceActivityModel: mongoose.Model<ResourceActivityType, {}, {}, {}, mongoose.Document<unknown, {}, ResourceActivityType, {}, mongoose.DefaultSchemaOptions> & ResourceActivityType & Required<{
1755
+ _id: string;
1756
+ }> & {
1757
+ __v: number;
1758
+ }, mongoose.Schema<ResourceActivityType, mongoose.Model<ResourceActivityType, any, any, any, mongoose.Document<unknown, any, ResourceActivityType, any, {}> & ResourceActivityType & Required<{
1759
+ _id: string;
1760
+ }> & {
1761
+ __v: number;
1762
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceActivityType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceActivityType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceActivityType> & Required<{
1763
+ _id: string;
1764
+ }> & {
1765
+ __v: number;
1766
+ }>>;
1767
+
1768
+ declare const TesterModel: mongoose.Model<TesterType, {}, {}, {}, mongoose.Document<unknown, {}, TesterType, {}, {}> & TesterType & Required<{
1769
+ _id: string;
1770
+ }> & {
1771
+ __v: number;
1772
+ }, any>;
1710
1773
 
1711
1774
  type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
1712
1775
  resourceId: ObjectId;
@@ -1731,28 +1794,82 @@ type SchemaUserType = Omit<UserType, "vendor" | "events" | "userActivity" | "_id
1731
1794
  };
1732
1795
  };
1733
1796
  };
1797
+ declare const UserModel: mongoose.Model<SchemaUserType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "vendor" | "_id" | "events" | "userActivity"> & {
1798
+ _id: ObjectId;
1799
+ vendor: ObjectId;
1800
+ events: ObjectId[];
1801
+ userActivity: {
1802
+ favourites: {
1803
+ events: ObjectId[];
1804
+ vendors: ObjectId[];
1805
+ };
1806
+ interested: {
1807
+ events: SchemaUserActivityEvent[];
1808
+ };
1809
+ going: {
1810
+ events: SchemaUserActivityEvent[];
1811
+ };
1812
+ present: {
1813
+ events: SchemaUserActivityEvent[];
1814
+ };
1815
+ };
1816
+ } & Required<{
1817
+ _id: mongoose.Schema.Types.ObjectId;
1818
+ }> & {
1819
+ __v: number;
1820
+ }, any>;
1734
1821
 
1735
1822
  interface VerificationTokenType {
1736
1823
  email: string;
1737
1824
  verificationToken: string;
1738
1825
  createdAt: Date;
1739
1826
  }
1827
+ declare const VerificationTokenModel: mongoose.Model<VerificationTokenType, {}, {}, {}, mongoose.Document<unknown, {}, VerificationTokenType, {}, {}> & VerificationTokenType & {
1828
+ _id: mongoose.Types.ObjectId;
1829
+ } & {
1830
+ __v: number;
1831
+ }, any>;
1740
1832
 
1741
1833
  type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds"> & {
1742
1834
  adIds?: ObjectId[];
1743
1835
  owner: SchemaOwnerType;
1744
1836
  vendorInfoId: ObjectId;
1745
1837
  };
1838
+ declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "owner" | "vendorInfoId" | "adIds"> & {
1839
+ adIds?: ObjectId[];
1840
+ owner: SchemaOwnerType;
1841
+ vendorInfoId: ObjectId;
1842
+ } & Required<{
1843
+ _id: string;
1844
+ }> & {
1845
+ __v: number;
1846
+ }, any>;
1746
1847
 
1747
1848
  type SchemaVendorInfoType = Omit<VendorInfoType, "vendorId"> & {
1748
1849
  vendorId: ObjectId;
1749
1850
  };
1851
+ declare const VendorInfoModel: mongoose.Model<SchemaVendorInfoType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorInfoType, {}, {}> & Omit<VendorInfoType, "vendorId"> & {
1852
+ vendorId: ObjectId;
1853
+ } & Required<{
1854
+ _id: string;
1855
+ }> & {
1856
+ __v: number;
1857
+ }, any>;
1750
1858
 
1751
1859
  type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
1752
1860
  adIds?: ObjectId[];
1753
1861
  eventInfoId: ObjectId;
1754
1862
  owner: SchemaOwnerType;
1755
1863
  };
1864
+ declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "owner" | "adIds" | "eventInfoId"> & {
1865
+ adIds?: ObjectId[];
1866
+ eventInfoId: ObjectId;
1867
+ owner: SchemaOwnerType;
1868
+ } & Required<{
1869
+ _id: string;
1870
+ }> & {
1871
+ __v: number;
1872
+ }, any>;
1756
1873
 
1757
1874
  declare const StallTypeSchema: mongoose.Schema<StallType, mongoose.Model<StallType, any, any, any, mongoose.Document<unknown, any, StallType, any, {}> & StallType & {
1758
1875
  _id: mongoose.Types.ObjectId;
@@ -1766,12 +1883,25 @@ declare const StallTypeSchema: mongoose.Schema<StallType, mongoose.Model<StallTy
1766
1883
  type SchemaEventInfoType = Omit<EventInfoType, "eventId"> & {
1767
1884
  eventId: ObjectId;
1768
1885
  };
1886
+ declare const EventInfoModel: mongoose.Model<SchemaEventInfoType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventInfoType, {}, {}> & Omit<EventInfoType, "eventId"> & {
1887
+ eventId: ObjectId;
1888
+ } & Required<{
1889
+ _id: string;
1890
+ }> & {
1891
+ __v: number;
1892
+ }, any>;
1769
1893
 
1770
1894
  /**
1771
1895
  * Connect to MongoDB using Mongoose.
1772
1896
  * Supports both local MongoDB (via MONGODB_URI) and MongoDB Atlas (via individual env vars).
1773
1897
  */
1774
- declare const connectToDatabase: () => Promise<void>;
1898
+ declare const connectToDatabase: ({ appName, dbName, dbPassword, dbUser, mongodbUri, }: {
1899
+ appName: string;
1900
+ dbName: string;
1901
+ dbPassword: string;
1902
+ dbUser: string;
1903
+ mongodbUri: string;
1904
+ }) => Promise<void>;
1775
1905
 
1776
1906
  declare function publishNotificationEvents(userId: ObjectId, context: GraphQLContext): Promise<void>;
1777
1907
  /**
@@ -1890,4 +2020,4 @@ declare const availableRegionOptions: OptionItem[];
1890
2020
  declare const paymentMethodOptions: OptionItem[];
1891
2021
  declare function normalizeUrl(url: string): string;
1892
2022
 
1893
- export { type AdFormData, type AdType, type AdminUpdateResourceType, type AuthUser, type BaseResourceType, type BaseResourceTypeFormData, type Category, CategorySchema, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumPubSubEvents, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type GraphQLContext, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type ObjectId, type OptionItem, type OwnerType, ParticipantSchema, type ParticipantType, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, RelationTypeSchema, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, ResourceImageTypeSchema, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SchemaChatMessageType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, type SocialMediaType, SocialMediaTypeSchema, type StallType, StallTypeSchema, type Subcategory, type SubcategoryItems, type SubscriptionPayload, type TermsAgreement, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserActivity, type UserActivityEvent, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, type VendorType, type VerificationTokenType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, baseResourceFields, capitalizeFirstLetter, categoryColors, companyContactFields, connectToDatabase, contactUsFields, createNotifications, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnersSchema, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, publishNotificationEvents, registerFields, relationDatesSchema, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, sendPushNotification, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, termsAgreementSchema, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
2023
+ export { type AdFormData, AdModel, type AdType, type AdminUpdateResourceType, type AuthUser, type BaseResourceType, type BaseResourceTypeFormData, type Category, CategorySchema, type ChatMessageInput, type ChatMessageType, ChatModel, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumPubSubEvents, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, EventInfoModel, type EventInfoType, EventModel, type EventType, type FormDateField, type FormField, type GeocodeLocation, type GraphQLContext, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, NotificationModel, type NotificationType, type Nullable, type ObjectId, type OptionItem, type OwnerType, ParticipantSchema, type ParticipantType, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, PushTokenModel, type Region, type RegisterFormData, type RelationDate, RelationModel, type RelationType, RelationTypeSchema, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, ResourceActivityModel, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, ResourceImageTypeSchema, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SchemaChatMessageType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, type SocialMediaType, SocialMediaTypeSchema, type StallType, StallTypeSchema, type Subcategory, type SubcategoryItems, type SubscriptionPayload, type TermsAgreement, TesterModel, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserActivity, type UserActivityEvent, type UserFormData, UserModel, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, VendorInfoModel, type VendorInfoType, type VendorLocation, type VendorMenuType, VendorModel, type VendorType, VerificationTokenModel, type VerificationTokenType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, baseResourceFields, capitalizeFirstLetter, categoryColors, companyContactFields, connectToDatabase, contactUsFields, createNotifications, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnersSchema, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, publishNotificationEvents, registerFields, relationDatesSchema, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, sendPushNotification, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, termsAgreementSchema, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
+ import { Request } from 'express';
1
2
  import mongoose from 'mongoose';
3
+ export { default as mongoose } from 'mongoose';
2
4
  import { FieldValues, Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
3
5
  import * as _apollo_client from '@apollo/client';
4
6
 
@@ -578,6 +580,18 @@ declare const ParticipantSchema: mongoose.Schema<SchemaParticipantType, mongoose
578
580
  } & {
579
581
  __v: number;
580
582
  }>;
583
+ declare const ChatModel: mongoose.Model<SchemaChatType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaChatType, {}, {}> & Omit<ChatType, "participants" | "messages" | "resourceInfo"> & {
584
+ participants: SchemaParticipantType[];
585
+ messages: SchemaChatMessageType[];
586
+ resourceInfo: {
587
+ eventId: ObjectId;
588
+ vendorId: ObjectId;
589
+ } | null;
590
+ } & Required<{
591
+ _id: string;
592
+ }> & {
593
+ __v: number;
594
+ }, any>;
581
595
 
582
596
  type SchemaCreateBulkNotificationInput = Omit<CreateBulkNotificationInput, "userIds"> & {
583
597
  userIds: ObjectId[];
@@ -585,6 +599,13 @@ type SchemaCreateBulkNotificationInput = Omit<CreateBulkNotificationInput, "user
585
599
  type SchemaNotificationType = Omit<NotificationType, "userId"> & {
586
600
  userId: ObjectId;
587
601
  };
602
+ declare const NotificationModel: mongoose.Model<SchemaNotificationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaNotificationType, {}, {}> & Omit<NotificationType, "userId"> & {
603
+ userId: ObjectId;
604
+ } & Required<{
605
+ _id: string;
606
+ }> & {
607
+ __v: number;
608
+ }, any>;
588
609
 
589
610
  type Nullable<T> = {
590
611
  [K in keyof T]: T[K] | null | undefined;
@@ -1457,6 +1478,12 @@ declare function useContactUsForm(data?: ContactUsFormData): CreateContactUsForm
1457
1478
 
1458
1479
  declare function useAdForm(data?: AdFormData): CreateAdFormData;
1459
1480
 
1481
+ declare const AdModel: mongoose.Model<AdType, {}, {}, {}, mongoose.Document<unknown, {}, AdType, {}, {}> & AdType & Required<{
1482
+ _id: string;
1483
+ }> & {
1484
+ __v: number;
1485
+ }, any>;
1486
+
1460
1487
  type SchemaOwnerType = Omit<OwnerType, "userId"> & {
1461
1488
  userId: ObjectId;
1462
1489
  };
@@ -1674,6 +1701,13 @@ type PushTokenType = {
1674
1701
  type SchemaPushTokenType = Omit<PushTokenType, "userId"> & {
1675
1702
  userId: ObjectId;
1676
1703
  };
1704
+ declare const PushTokenModel: mongoose.Model<SchemaPushTokenType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPushTokenType, {}, {}> & Omit<PushTokenType, "userId"> & {
1705
+ userId: ObjectId;
1706
+ } & Required<{
1707
+ _id: string;
1708
+ }> & {
1709
+ __v: number;
1710
+ }, any>;
1677
1711
 
1678
1712
  declare const relationDatesSchema: mongoose.Schema<RelationDate, mongoose.Model<RelationDate, any, any, any, mongoose.Document<unknown, any, RelationDate, any, {}> & RelationDate & {
1679
1713
  _id: mongoose.Types.ObjectId;
@@ -1707,6 +1741,35 @@ declare const RelationTypeSchema: mongoose.Schema<SchemaRelationType, mongoose.M
1707
1741
  }> & {
1708
1742
  __v: number;
1709
1743
  }>;
1744
+ declare const RelationModel: mongoose.Model<SchemaRelationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaRelationType, {}, {}> & Omit<RelationType, "eventId" | "vendorId" | "chatId"> & {
1745
+ chatId: ObjectId;
1746
+ eventId: ObjectId;
1747
+ vendorId: ObjectId;
1748
+ } & Required<{
1749
+ _id: string;
1750
+ }> & {
1751
+ __v: number;
1752
+ }, any>;
1753
+
1754
+ declare const ResourceActivityModel: mongoose.Model<ResourceActivityType, {}, {}, {}, mongoose.Document<unknown, {}, ResourceActivityType, {}, mongoose.DefaultSchemaOptions> & ResourceActivityType & Required<{
1755
+ _id: string;
1756
+ }> & {
1757
+ __v: number;
1758
+ }, mongoose.Schema<ResourceActivityType, mongoose.Model<ResourceActivityType, any, any, any, mongoose.Document<unknown, any, ResourceActivityType, any, {}> & ResourceActivityType & Required<{
1759
+ _id: string;
1760
+ }> & {
1761
+ __v: number;
1762
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceActivityType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceActivityType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceActivityType> & Required<{
1763
+ _id: string;
1764
+ }> & {
1765
+ __v: number;
1766
+ }>>;
1767
+
1768
+ declare const TesterModel: mongoose.Model<TesterType, {}, {}, {}, mongoose.Document<unknown, {}, TesterType, {}, {}> & TesterType & Required<{
1769
+ _id: string;
1770
+ }> & {
1771
+ __v: number;
1772
+ }, any>;
1710
1773
 
1711
1774
  type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
1712
1775
  resourceId: ObjectId;
@@ -1731,28 +1794,82 @@ type SchemaUserType = Omit<UserType, "vendor" | "events" | "userActivity" | "_id
1731
1794
  };
1732
1795
  };
1733
1796
  };
1797
+ declare const UserModel: mongoose.Model<SchemaUserType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "vendor" | "_id" | "events" | "userActivity"> & {
1798
+ _id: ObjectId;
1799
+ vendor: ObjectId;
1800
+ events: ObjectId[];
1801
+ userActivity: {
1802
+ favourites: {
1803
+ events: ObjectId[];
1804
+ vendors: ObjectId[];
1805
+ };
1806
+ interested: {
1807
+ events: SchemaUserActivityEvent[];
1808
+ };
1809
+ going: {
1810
+ events: SchemaUserActivityEvent[];
1811
+ };
1812
+ present: {
1813
+ events: SchemaUserActivityEvent[];
1814
+ };
1815
+ };
1816
+ } & Required<{
1817
+ _id: mongoose.Schema.Types.ObjectId;
1818
+ }> & {
1819
+ __v: number;
1820
+ }, any>;
1734
1821
 
1735
1822
  interface VerificationTokenType {
1736
1823
  email: string;
1737
1824
  verificationToken: string;
1738
1825
  createdAt: Date;
1739
1826
  }
1827
+ declare const VerificationTokenModel: mongoose.Model<VerificationTokenType, {}, {}, {}, mongoose.Document<unknown, {}, VerificationTokenType, {}, {}> & VerificationTokenType & {
1828
+ _id: mongoose.Types.ObjectId;
1829
+ } & {
1830
+ __v: number;
1831
+ }, any>;
1740
1832
 
1741
1833
  type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds"> & {
1742
1834
  adIds?: ObjectId[];
1743
1835
  owner: SchemaOwnerType;
1744
1836
  vendorInfoId: ObjectId;
1745
1837
  };
1838
+ declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "owner" | "vendorInfoId" | "adIds"> & {
1839
+ adIds?: ObjectId[];
1840
+ owner: SchemaOwnerType;
1841
+ vendorInfoId: ObjectId;
1842
+ } & Required<{
1843
+ _id: string;
1844
+ }> & {
1845
+ __v: number;
1846
+ }, any>;
1746
1847
 
1747
1848
  type SchemaVendorInfoType = Omit<VendorInfoType, "vendorId"> & {
1748
1849
  vendorId: ObjectId;
1749
1850
  };
1851
+ declare const VendorInfoModel: mongoose.Model<SchemaVendorInfoType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorInfoType, {}, {}> & Omit<VendorInfoType, "vendorId"> & {
1852
+ vendorId: ObjectId;
1853
+ } & Required<{
1854
+ _id: string;
1855
+ }> & {
1856
+ __v: number;
1857
+ }, any>;
1750
1858
 
1751
1859
  type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
1752
1860
  adIds?: ObjectId[];
1753
1861
  eventInfoId: ObjectId;
1754
1862
  owner: SchemaOwnerType;
1755
1863
  };
1864
+ declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "owner" | "adIds" | "eventInfoId"> & {
1865
+ adIds?: ObjectId[];
1866
+ eventInfoId: ObjectId;
1867
+ owner: SchemaOwnerType;
1868
+ } & Required<{
1869
+ _id: string;
1870
+ }> & {
1871
+ __v: number;
1872
+ }, any>;
1756
1873
 
1757
1874
  declare const StallTypeSchema: mongoose.Schema<StallType, mongoose.Model<StallType, any, any, any, mongoose.Document<unknown, any, StallType, any, {}> & StallType & {
1758
1875
  _id: mongoose.Types.ObjectId;
@@ -1766,12 +1883,25 @@ declare const StallTypeSchema: mongoose.Schema<StallType, mongoose.Model<StallTy
1766
1883
  type SchemaEventInfoType = Omit<EventInfoType, "eventId"> & {
1767
1884
  eventId: ObjectId;
1768
1885
  };
1886
+ declare const EventInfoModel: mongoose.Model<SchemaEventInfoType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventInfoType, {}, {}> & Omit<EventInfoType, "eventId"> & {
1887
+ eventId: ObjectId;
1888
+ } & Required<{
1889
+ _id: string;
1890
+ }> & {
1891
+ __v: number;
1892
+ }, any>;
1769
1893
 
1770
1894
  /**
1771
1895
  * Connect to MongoDB using Mongoose.
1772
1896
  * Supports both local MongoDB (via MONGODB_URI) and MongoDB Atlas (via individual env vars).
1773
1897
  */
1774
- declare const connectToDatabase: () => Promise<void>;
1898
+ declare const connectToDatabase: ({ appName, dbName, dbPassword, dbUser, mongodbUri, }: {
1899
+ appName: string;
1900
+ dbName: string;
1901
+ dbPassword: string;
1902
+ dbUser: string;
1903
+ mongodbUri: string;
1904
+ }) => Promise<void>;
1775
1905
 
1776
1906
  declare function publishNotificationEvents(userId: ObjectId, context: GraphQLContext): Promise<void>;
1777
1907
  /**
@@ -1890,4 +2020,4 @@ declare const availableRegionOptions: OptionItem[];
1890
2020
  declare const paymentMethodOptions: OptionItem[];
1891
2021
  declare function normalizeUrl(url: string): string;
1892
2022
 
1893
- export { type AdFormData, type AdType, type AdminUpdateResourceType, type AuthUser, type BaseResourceType, type BaseResourceTypeFormData, type Category, CategorySchema, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumPubSubEvents, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type GraphQLContext, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type ObjectId, type OptionItem, type OwnerType, ParticipantSchema, type ParticipantType, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, RelationTypeSchema, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, ResourceImageTypeSchema, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SchemaChatMessageType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, type SocialMediaType, SocialMediaTypeSchema, type StallType, StallTypeSchema, type Subcategory, type SubcategoryItems, type SubscriptionPayload, type TermsAgreement, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserActivity, type UserActivityEvent, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, type VendorType, type VerificationTokenType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, baseResourceFields, capitalizeFirstLetter, categoryColors, companyContactFields, connectToDatabase, contactUsFields, createNotifications, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnersSchema, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, publishNotificationEvents, registerFields, relationDatesSchema, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, sendPushNotification, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, termsAgreementSchema, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
2023
+ export { type AdFormData, AdModel, type AdType, type AdminUpdateResourceType, type AuthUser, type BaseResourceType, type BaseResourceTypeFormData, type Category, CategorySchema, type ChatMessageInput, type ChatMessageType, ChatModel, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumPubSubEvents, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, EventInfoModel, type EventInfoType, EventModel, type EventType, type FormDateField, type FormField, type GeocodeLocation, type GraphQLContext, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, NotificationModel, type NotificationType, type Nullable, type ObjectId, type OptionItem, type OwnerType, ParticipantSchema, type ParticipantType, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, PushTokenModel, type Region, type RegisterFormData, type RelationDate, RelationModel, type RelationType, RelationTypeSchema, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, ResourceActivityModel, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, ResourceImageTypeSchema, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SchemaChatMessageType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, type SocialMediaType, SocialMediaTypeSchema, type StallType, StallTypeSchema, type Subcategory, type SubcategoryItems, type SubscriptionPayload, type TermsAgreement, TesterModel, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserActivity, type UserActivityEvent, type UserFormData, UserModel, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, VendorInfoModel, type VendorInfoType, type VendorLocation, type VendorMenuType, VendorModel, type VendorType, VerificationTokenModel, type VerificationTokenType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, baseResourceFields, capitalizeFirstLetter, categoryColors, companyContactFields, connectToDatabase, contactUsFields, createNotifications, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnersSchema, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, publishNotificationEvents, registerFields, relationDatesSchema, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, sendPushNotification, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, termsAgreementSchema, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };