@timardex/cluemart-shared 1.2.29 → 1.2.30

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 (42) hide show
  1. package/dist/ad-C02AZIGy.d.ts +129 -0
  2. package/dist/ad-CTWMmc7b.d.mts +129 -0
  3. package/dist/{auth-Ci6Uskch.d.mts → auth-YsJJnj12.d.mts} +1 -1
  4. package/dist/{auth-CzEdRDf1.d.ts → auth-o_ns6gLk.d.ts} +1 -1
  5. package/dist/{chunk-CQ7TCXMI.mjs → chunk-O6LVIQFK.mjs} +3 -5
  6. package/dist/chunk-O6LVIQFK.mjs.map +1 -0
  7. package/dist/formFields/index.d.mts +1 -1
  8. package/dist/formFields/index.d.ts +1 -1
  9. package/dist/{global-2Jk7sRkL.d.ts → global-4lS-fh61.d.ts} +20 -1
  10. package/dist/{global-DWuTxnJ8.d.mts → global-_ZHkOcnR.d.mts} +20 -1
  11. package/dist/graphql/index.d.mts +2 -3
  12. package/dist/graphql/index.d.ts +2 -3
  13. package/dist/hooks/index.d.mts +3 -4
  14. package/dist/hooks/index.d.ts +3 -4
  15. package/dist/index.cjs +35 -8
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.mts +123 -1
  18. package/dist/index.d.ts +123 -1
  19. package/dist/index.mjs +22 -8
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/mongoose/index.cjs +30 -1
  22. package/dist/mongoose/index.cjs.map +1 -1
  23. package/dist/mongoose/index.d.mts +108 -4
  24. package/dist/mongoose/index.d.ts +108 -4
  25. package/dist/mongoose/index.mjs +21 -2
  26. package/dist/mongoose/index.mjs.map +1 -1
  27. package/dist/service/index.cjs +5 -7
  28. package/dist/service/index.cjs.map +1 -1
  29. package/dist/service/index.d.mts +1 -1
  30. package/dist/service/index.d.ts +1 -1
  31. package/dist/service/index.mjs +8 -8
  32. package/dist/service/index.mjs.map +1 -1
  33. package/dist/types/index.d.mts +3 -4
  34. package/dist/types/index.d.ts +3 -4
  35. package/dist/utils/index.d.mts +1 -1
  36. package/dist/utils/index.d.ts +1 -1
  37. package/package.json +1 -1
  38. package/dist/ad-Crq-z5Wt.d.mts +0 -69
  39. package/dist/ad-DHetF-th.d.ts +0 -69
  40. package/dist/chunk-CQ7TCXMI.mjs.map +0 -1
  41. package/dist/user-DbEEY7fv.d.ts +0 -64
  42. package/dist/user-OPY5EOqR.d.mts +0 -64
package/dist/index.d.mts CHANGED
@@ -578,6 +578,18 @@ declare const ParticipantSchema: mongoose.Schema<SchemaParticipantType, mongoose
578
578
  } & {
579
579
  __v: number;
580
580
  }>;
581
+ declare const ChatModel: mongoose.Model<SchemaChatType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaChatType, {}, {}> & Omit<ChatType, "participants" | "messages" | "resourceInfo"> & {
582
+ participants: SchemaParticipantType[];
583
+ messages: SchemaChatMessageType[];
584
+ resourceInfo: {
585
+ eventId: ObjectId;
586
+ vendorId: ObjectId;
587
+ } | null;
588
+ } & Required<{
589
+ _id: string;
590
+ }> & {
591
+ __v: number;
592
+ }, any>;
581
593
 
582
594
  type SchemaCreateBulkNotificationInput = Omit<CreateBulkNotificationInput, "userIds"> & {
583
595
  userIds: ObjectId[];
@@ -585,6 +597,13 @@ type SchemaCreateBulkNotificationInput = Omit<CreateBulkNotificationInput, "user
585
597
  type SchemaNotificationType = Omit<NotificationType, "userId"> & {
586
598
  userId: ObjectId;
587
599
  };
600
+ declare const NotificationModel: mongoose.Model<SchemaNotificationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaNotificationType, {}, {}> & Omit<NotificationType, "userId"> & {
601
+ userId: ObjectId;
602
+ } & Required<{
603
+ _id: string;
604
+ }> & {
605
+ __v: number;
606
+ }, any>;
588
607
 
589
608
  type Nullable<T> = {
590
609
  [K in keyof T]: T[K] | null | undefined;
@@ -1457,6 +1476,12 @@ declare function useContactUsForm(data?: ContactUsFormData): CreateContactUsForm
1457
1476
 
1458
1477
  declare function useAdForm(data?: AdFormData): CreateAdFormData;
1459
1478
 
1479
+ declare const AdModel: mongoose.Model<AdType, {}, {}, {}, mongoose.Document<unknown, {}, AdType, {}, {}> & AdType & Required<{
1480
+ _id: string;
1481
+ }> & {
1482
+ __v: number;
1483
+ }, any>;
1484
+
1460
1485
  type SchemaOwnerType = Omit<OwnerType, "userId"> & {
1461
1486
  userId: ObjectId;
1462
1487
  };
@@ -1674,6 +1699,13 @@ type PushTokenType = {
1674
1699
  type SchemaPushTokenType = Omit<PushTokenType, "userId"> & {
1675
1700
  userId: ObjectId;
1676
1701
  };
1702
+ declare const PushTokenModel: mongoose.Model<SchemaPushTokenType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPushTokenType, {}, {}> & Omit<PushTokenType, "userId"> & {
1703
+ userId: ObjectId;
1704
+ } & Required<{
1705
+ _id: string;
1706
+ }> & {
1707
+ __v: number;
1708
+ }, any>;
1677
1709
 
1678
1710
  declare const relationDatesSchema: mongoose.Schema<RelationDate, mongoose.Model<RelationDate, any, any, any, mongoose.Document<unknown, any, RelationDate, any, {}> & RelationDate & {
1679
1711
  _id: mongoose.Types.ObjectId;
@@ -1707,6 +1739,35 @@ declare const RelationTypeSchema: mongoose.Schema<SchemaRelationType, mongoose.M
1707
1739
  }> & {
1708
1740
  __v: number;
1709
1741
  }>;
1742
+ declare const RelationModel: mongoose.Model<SchemaRelationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaRelationType, {}, {}> & Omit<RelationType, "eventId" | "vendorId" | "chatId"> & {
1743
+ chatId: ObjectId;
1744
+ eventId: ObjectId;
1745
+ vendorId: ObjectId;
1746
+ } & Required<{
1747
+ _id: string;
1748
+ }> & {
1749
+ __v: number;
1750
+ }, any>;
1751
+
1752
+ declare const ResourceActivityModel: mongoose.Model<ResourceActivityType, {}, {}, {}, mongoose.Document<unknown, {}, ResourceActivityType, {}, mongoose.DefaultSchemaOptions> & ResourceActivityType & Required<{
1753
+ _id: string;
1754
+ }> & {
1755
+ __v: number;
1756
+ }, mongoose.Schema<ResourceActivityType, mongoose.Model<ResourceActivityType, any, any, any, mongoose.Document<unknown, any, ResourceActivityType, any, {}> & ResourceActivityType & Required<{
1757
+ _id: string;
1758
+ }> & {
1759
+ __v: number;
1760
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceActivityType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceActivityType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceActivityType> & Required<{
1761
+ _id: string;
1762
+ }> & {
1763
+ __v: number;
1764
+ }>>;
1765
+
1766
+ declare const TesterModel: mongoose.Model<TesterType, {}, {}, {}, mongoose.Document<unknown, {}, TesterType, {}, {}> & TesterType & Required<{
1767
+ _id: string;
1768
+ }> & {
1769
+ __v: number;
1770
+ }, any>;
1710
1771
 
1711
1772
  type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
1712
1773
  resourceId: ObjectId;
@@ -1731,28 +1792,82 @@ type SchemaUserType = Omit<UserType, "vendor" | "events" | "userActivity" | "_id
1731
1792
  };
1732
1793
  };
1733
1794
  };
1795
+ declare const UserModel: mongoose.Model<SchemaUserType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "vendor" | "_id" | "events" | "userActivity"> & {
1796
+ _id: ObjectId;
1797
+ vendor: ObjectId;
1798
+ events: ObjectId[];
1799
+ userActivity: {
1800
+ favourites: {
1801
+ events: ObjectId[];
1802
+ vendors: ObjectId[];
1803
+ };
1804
+ interested: {
1805
+ events: SchemaUserActivityEvent[];
1806
+ };
1807
+ going: {
1808
+ events: SchemaUserActivityEvent[];
1809
+ };
1810
+ present: {
1811
+ events: SchemaUserActivityEvent[];
1812
+ };
1813
+ };
1814
+ } & Required<{
1815
+ _id: mongoose.Schema.Types.ObjectId;
1816
+ }> & {
1817
+ __v: number;
1818
+ }, any>;
1734
1819
 
1735
1820
  interface VerificationTokenType {
1736
1821
  email: string;
1737
1822
  verificationToken: string;
1738
1823
  createdAt: Date;
1739
1824
  }
1825
+ declare const VerificationTokenModel: mongoose.Model<VerificationTokenType, {}, {}, {}, mongoose.Document<unknown, {}, VerificationTokenType, {}, {}> & VerificationTokenType & {
1826
+ _id: mongoose.Types.ObjectId;
1827
+ } & {
1828
+ __v: number;
1829
+ }, any>;
1740
1830
 
1741
1831
  type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds"> & {
1742
1832
  adIds?: ObjectId[];
1743
1833
  owner: SchemaOwnerType;
1744
1834
  vendorInfoId: ObjectId;
1745
1835
  };
1836
+ declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "owner" | "vendorInfoId" | "adIds"> & {
1837
+ adIds?: ObjectId[];
1838
+ owner: SchemaOwnerType;
1839
+ vendorInfoId: ObjectId;
1840
+ } & Required<{
1841
+ _id: string;
1842
+ }> & {
1843
+ __v: number;
1844
+ }, any>;
1746
1845
 
1747
1846
  type SchemaVendorInfoType = Omit<VendorInfoType, "vendorId"> & {
1748
1847
  vendorId: ObjectId;
1749
1848
  };
1849
+ declare const VendorInfoModel: mongoose.Model<SchemaVendorInfoType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorInfoType, {}, {}> & Omit<VendorInfoType, "vendorId"> & {
1850
+ vendorId: ObjectId;
1851
+ } & Required<{
1852
+ _id: string;
1853
+ }> & {
1854
+ __v: number;
1855
+ }, any>;
1750
1856
 
1751
1857
  type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
1752
1858
  adIds?: ObjectId[];
1753
1859
  eventInfoId: ObjectId;
1754
1860
  owner: SchemaOwnerType;
1755
1861
  };
1862
+ declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "owner" | "adIds" | "eventInfoId"> & {
1863
+ adIds?: ObjectId[];
1864
+ eventInfoId: ObjectId;
1865
+ owner: SchemaOwnerType;
1866
+ } & Required<{
1867
+ _id: string;
1868
+ }> & {
1869
+ __v: number;
1870
+ }, any>;
1756
1871
 
1757
1872
  declare const StallTypeSchema: mongoose.Schema<StallType, mongoose.Model<StallType, any, any, any, mongoose.Document<unknown, any, StallType, any, {}> & StallType & {
1758
1873
  _id: mongoose.Types.ObjectId;
@@ -1766,6 +1881,13 @@ declare const StallTypeSchema: mongoose.Schema<StallType, mongoose.Model<StallTy
1766
1881
  type SchemaEventInfoType = Omit<EventInfoType, "eventId"> & {
1767
1882
  eventId: ObjectId;
1768
1883
  };
1884
+ declare const EventInfoModel: mongoose.Model<SchemaEventInfoType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventInfoType, {}, {}> & Omit<EventInfoType, "eventId"> & {
1885
+ eventId: ObjectId;
1886
+ } & Required<{
1887
+ _id: string;
1888
+ }> & {
1889
+ __v: number;
1890
+ }, any>;
1769
1891
 
1770
1892
  /**
1771
1893
  * Connect to MongoDB using Mongoose.
@@ -1890,4 +2012,4 @@ declare const availableRegionOptions: OptionItem[];
1890
2012
  declare const paymentMethodOptions: OptionItem[];
1891
2013
  declare function normalizeUrl(url: string): string;
1892
2014
 
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 };
2015
+ 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
@@ -578,6 +578,18 @@ declare const ParticipantSchema: mongoose.Schema<SchemaParticipantType, mongoose
578
578
  } & {
579
579
  __v: number;
580
580
  }>;
581
+ declare const ChatModel: mongoose.Model<SchemaChatType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaChatType, {}, {}> & Omit<ChatType, "participants" | "messages" | "resourceInfo"> & {
582
+ participants: SchemaParticipantType[];
583
+ messages: SchemaChatMessageType[];
584
+ resourceInfo: {
585
+ eventId: ObjectId;
586
+ vendorId: ObjectId;
587
+ } | null;
588
+ } & Required<{
589
+ _id: string;
590
+ }> & {
591
+ __v: number;
592
+ }, any>;
581
593
 
582
594
  type SchemaCreateBulkNotificationInput = Omit<CreateBulkNotificationInput, "userIds"> & {
583
595
  userIds: ObjectId[];
@@ -585,6 +597,13 @@ type SchemaCreateBulkNotificationInput = Omit<CreateBulkNotificationInput, "user
585
597
  type SchemaNotificationType = Omit<NotificationType, "userId"> & {
586
598
  userId: ObjectId;
587
599
  };
600
+ declare const NotificationModel: mongoose.Model<SchemaNotificationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaNotificationType, {}, {}> & Omit<NotificationType, "userId"> & {
601
+ userId: ObjectId;
602
+ } & Required<{
603
+ _id: string;
604
+ }> & {
605
+ __v: number;
606
+ }, any>;
588
607
 
589
608
  type Nullable<T> = {
590
609
  [K in keyof T]: T[K] | null | undefined;
@@ -1457,6 +1476,12 @@ declare function useContactUsForm(data?: ContactUsFormData): CreateContactUsForm
1457
1476
 
1458
1477
  declare function useAdForm(data?: AdFormData): CreateAdFormData;
1459
1478
 
1479
+ declare const AdModel: mongoose.Model<AdType, {}, {}, {}, mongoose.Document<unknown, {}, AdType, {}, {}> & AdType & Required<{
1480
+ _id: string;
1481
+ }> & {
1482
+ __v: number;
1483
+ }, any>;
1484
+
1460
1485
  type SchemaOwnerType = Omit<OwnerType, "userId"> & {
1461
1486
  userId: ObjectId;
1462
1487
  };
@@ -1674,6 +1699,13 @@ type PushTokenType = {
1674
1699
  type SchemaPushTokenType = Omit<PushTokenType, "userId"> & {
1675
1700
  userId: ObjectId;
1676
1701
  };
1702
+ declare const PushTokenModel: mongoose.Model<SchemaPushTokenType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPushTokenType, {}, {}> & Omit<PushTokenType, "userId"> & {
1703
+ userId: ObjectId;
1704
+ } & Required<{
1705
+ _id: string;
1706
+ }> & {
1707
+ __v: number;
1708
+ }, any>;
1677
1709
 
1678
1710
  declare const relationDatesSchema: mongoose.Schema<RelationDate, mongoose.Model<RelationDate, any, any, any, mongoose.Document<unknown, any, RelationDate, any, {}> & RelationDate & {
1679
1711
  _id: mongoose.Types.ObjectId;
@@ -1707,6 +1739,35 @@ declare const RelationTypeSchema: mongoose.Schema<SchemaRelationType, mongoose.M
1707
1739
  }> & {
1708
1740
  __v: number;
1709
1741
  }>;
1742
+ declare const RelationModel: mongoose.Model<SchemaRelationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaRelationType, {}, {}> & Omit<RelationType, "eventId" | "vendorId" | "chatId"> & {
1743
+ chatId: ObjectId;
1744
+ eventId: ObjectId;
1745
+ vendorId: ObjectId;
1746
+ } & Required<{
1747
+ _id: string;
1748
+ }> & {
1749
+ __v: number;
1750
+ }, any>;
1751
+
1752
+ declare const ResourceActivityModel: mongoose.Model<ResourceActivityType, {}, {}, {}, mongoose.Document<unknown, {}, ResourceActivityType, {}, mongoose.DefaultSchemaOptions> & ResourceActivityType & Required<{
1753
+ _id: string;
1754
+ }> & {
1755
+ __v: number;
1756
+ }, mongoose.Schema<ResourceActivityType, mongoose.Model<ResourceActivityType, any, any, any, mongoose.Document<unknown, any, ResourceActivityType, any, {}> & ResourceActivityType & Required<{
1757
+ _id: string;
1758
+ }> & {
1759
+ __v: number;
1760
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceActivityType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceActivityType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceActivityType> & Required<{
1761
+ _id: string;
1762
+ }> & {
1763
+ __v: number;
1764
+ }>>;
1765
+
1766
+ declare const TesterModel: mongoose.Model<TesterType, {}, {}, {}, mongoose.Document<unknown, {}, TesterType, {}, {}> & TesterType & Required<{
1767
+ _id: string;
1768
+ }> & {
1769
+ __v: number;
1770
+ }, any>;
1710
1771
 
1711
1772
  type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
1712
1773
  resourceId: ObjectId;
@@ -1731,28 +1792,82 @@ type SchemaUserType = Omit<UserType, "vendor" | "events" | "userActivity" | "_id
1731
1792
  };
1732
1793
  };
1733
1794
  };
1795
+ declare const UserModel: mongoose.Model<SchemaUserType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "vendor" | "_id" | "events" | "userActivity"> & {
1796
+ _id: ObjectId;
1797
+ vendor: ObjectId;
1798
+ events: ObjectId[];
1799
+ userActivity: {
1800
+ favourites: {
1801
+ events: ObjectId[];
1802
+ vendors: ObjectId[];
1803
+ };
1804
+ interested: {
1805
+ events: SchemaUserActivityEvent[];
1806
+ };
1807
+ going: {
1808
+ events: SchemaUserActivityEvent[];
1809
+ };
1810
+ present: {
1811
+ events: SchemaUserActivityEvent[];
1812
+ };
1813
+ };
1814
+ } & Required<{
1815
+ _id: mongoose.Schema.Types.ObjectId;
1816
+ }> & {
1817
+ __v: number;
1818
+ }, any>;
1734
1819
 
1735
1820
  interface VerificationTokenType {
1736
1821
  email: string;
1737
1822
  verificationToken: string;
1738
1823
  createdAt: Date;
1739
1824
  }
1825
+ declare const VerificationTokenModel: mongoose.Model<VerificationTokenType, {}, {}, {}, mongoose.Document<unknown, {}, VerificationTokenType, {}, {}> & VerificationTokenType & {
1826
+ _id: mongoose.Types.ObjectId;
1827
+ } & {
1828
+ __v: number;
1829
+ }, any>;
1740
1830
 
1741
1831
  type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds"> & {
1742
1832
  adIds?: ObjectId[];
1743
1833
  owner: SchemaOwnerType;
1744
1834
  vendorInfoId: ObjectId;
1745
1835
  };
1836
+ declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "owner" | "vendorInfoId" | "adIds"> & {
1837
+ adIds?: ObjectId[];
1838
+ owner: SchemaOwnerType;
1839
+ vendorInfoId: ObjectId;
1840
+ } & Required<{
1841
+ _id: string;
1842
+ }> & {
1843
+ __v: number;
1844
+ }, any>;
1746
1845
 
1747
1846
  type SchemaVendorInfoType = Omit<VendorInfoType, "vendorId"> & {
1748
1847
  vendorId: ObjectId;
1749
1848
  };
1849
+ declare const VendorInfoModel: mongoose.Model<SchemaVendorInfoType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorInfoType, {}, {}> & Omit<VendorInfoType, "vendorId"> & {
1850
+ vendorId: ObjectId;
1851
+ } & Required<{
1852
+ _id: string;
1853
+ }> & {
1854
+ __v: number;
1855
+ }, any>;
1750
1856
 
1751
1857
  type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
1752
1858
  adIds?: ObjectId[];
1753
1859
  eventInfoId: ObjectId;
1754
1860
  owner: SchemaOwnerType;
1755
1861
  };
1862
+ declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "owner" | "adIds" | "eventInfoId"> & {
1863
+ adIds?: ObjectId[];
1864
+ eventInfoId: ObjectId;
1865
+ owner: SchemaOwnerType;
1866
+ } & Required<{
1867
+ _id: string;
1868
+ }> & {
1869
+ __v: number;
1870
+ }, any>;
1756
1871
 
1757
1872
  declare const StallTypeSchema: mongoose.Schema<StallType, mongoose.Model<StallType, any, any, any, mongoose.Document<unknown, any, StallType, any, {}> & StallType & {
1758
1873
  _id: mongoose.Types.ObjectId;
@@ -1766,6 +1881,13 @@ declare const StallTypeSchema: mongoose.Schema<StallType, mongoose.Model<StallTy
1766
1881
  type SchemaEventInfoType = Omit<EventInfoType, "eventId"> & {
1767
1882
  eventId: ObjectId;
1768
1883
  };
1884
+ declare const EventInfoModel: mongoose.Model<SchemaEventInfoType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventInfoType, {}, {}> & Omit<EventInfoType, "eventId"> & {
1885
+ eventId: ObjectId;
1886
+ } & Required<{
1887
+ _id: string;
1888
+ }> & {
1889
+ __v: number;
1890
+ }, any>;
1769
1891
 
1770
1892
  /**
1771
1893
  * Connect to MongoDB using Mongoose.
@@ -1890,4 +2012,4 @@ declare const availableRegionOptions: OptionItem[];
1890
2012
  declare const paymentMethodOptions: OptionItem[];
1891
2013
  declare function normalizeUrl(url: string): string;
1892
2014
 
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 };
2015
+ 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.mjs CHANGED
@@ -6032,7 +6032,10 @@ var schema = new MongooseSchema(
6032
6032
  },
6033
6033
  { timestamps: true }
6034
6034
  );
6035
- var EventInfoModel = mongoose.model("EventInfo", schema);
6035
+ var EventInfoModel = mongoose.model(
6036
+ "EventInfo",
6037
+ schema
6038
+ );
6036
6039
 
6037
6040
  // src/mongoose/Relation.ts
6038
6041
  var MongooseSchema2 = mongoose2.Schema;
@@ -6409,7 +6412,6 @@ var NotificationModel = mongoose6.model(
6409
6412
  "Notification",
6410
6413
  schema3
6411
6414
  );
6412
- var Notification_default = NotificationModel;
6413
6415
 
6414
6416
  // src/mongoose/PushToken.ts
6415
6417
  import mongoose7 from "mongoose";
@@ -6427,7 +6429,6 @@ var schema4 = new MongooseSchema7(
6427
6429
  { timestamps: true }
6428
6430
  );
6429
6431
  var PushTokenModel = mongoose7.model("PushToken", schema4);
6430
- var PushToken_default = PushTokenModel;
6431
6432
 
6432
6433
  // src/mongoose/ResourceActivity.ts
6433
6434
  import mongoose8 from "mongoose";
@@ -6873,12 +6874,12 @@ var connectToDatabase = async () => {
6873
6874
  // src/service/notificationService.ts
6874
6875
  async function publishNotificationEvents(userId, context) {
6875
6876
  try {
6876
- const userNotifications = await Notification_default.find({
6877
+ const userNotifications = await NotificationModel.find({
6877
6878
  userId
6878
6879
  }).sort({ createdAt: -1 });
6879
6880
  const [total, unread] = await Promise.all([
6880
- Notification_default.countDocuments({ userId }),
6881
- Notification_default.countDocuments({ isRead: false, userId })
6881
+ NotificationModel.countDocuments({ userId }),
6882
+ NotificationModel.countDocuments({ isRead: false, userId })
6882
6883
  ]);
6883
6884
  context.pubsub.publish("GET_NOTIFICATIONS" /* GET_NOTIFICATIONS */, {
6884
6885
  getNotifications: userNotifications,
@@ -6906,7 +6907,7 @@ async function createNotifications(payload, context) {
6906
6907
  type,
6907
6908
  userId
6908
6909
  }));
6909
- const savedNotifications = await Notification_default.insertMany(notifications);
6910
+ const savedNotifications = await NotificationModel.insertMany(notifications);
6910
6911
  console.log(
6911
6912
  `Created ${savedNotifications.length} notifications for ${userIds.length} users`
6912
6913
  );
@@ -6995,7 +6996,7 @@ async function sendPushNotification({
6995
6996
  title,
6996
6997
  userIds
6997
6998
  }) {
6998
- const pushTokens = await PushToken_default.find({ userId: { $in: userIds } });
6999
+ const pushTokens = await PushTokenModel.find({ userId: { $in: userIds } });
6999
7000
  const expoTokens = pushTokens.map((token) => token.token);
7000
7001
  const { messages, invalidTokens } = createPushMessages({
7001
7002
  data,
@@ -7074,7 +7075,9 @@ var fonts = {
7074
7075
  }
7075
7076
  };
7076
7077
  export {
7078
+ AdModel,
7077
7079
  CategorySchema,
7080
+ ChatModel,
7078
7081
  EnumActivity,
7079
7082
  EnumAdShowOn,
7080
7083
  EnumAdStatus,
@@ -7096,9 +7099,15 @@ export {
7096
7099
  EnumUserLicence,
7097
7100
  EnumUserRole,
7098
7101
  EnumVendorType,
7102
+ EventInfoModel,
7103
+ EventModel,
7099
7104
  ImageTypeEnum,
7105
+ NotificationModel,
7100
7106
  ParticipantSchema,
7107
+ PushTokenModel,
7108
+ RelationModel,
7101
7109
  RelationTypeSchema,
7110
+ ResourceActivityModel,
7102
7111
  ResourceImageTypeSchema,
7103
7112
  SAVED_EMAIL_KEY,
7104
7113
  SAVED_PASSWORD_KEY,
@@ -7106,7 +7115,12 @@ export {
7106
7115
  SAVED_TOKEN_KEY,
7107
7116
  SocialMediaTypeSchema,
7108
7117
  StallTypeSchema,
7118
+ TesterModel,
7109
7119
  USER_STORAGE_KEY,
7120
+ UserModel,
7121
+ VendorInfoModel,
7122
+ VendorModel,
7123
+ VerificationTokenModel,
7110
7124
  availableCategories,
7111
7125
  availableCityOptions,
7112
7126
  availableRegionOptions,