@timardex/cluemart-shared 1.2.49 → 1.2.50

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 (45) hide show
  1. package/dist/{ad-DPP5n_ZS.d.mts → ad-BO5cMy3b.d.mts} +4 -4
  2. package/dist/{ad-BBJMdfCl.d.ts → ad-Dcmq74_b.d.ts} +4 -4
  3. package/dist/{auth-CQPRj4DB.d.mts → auth-D636FFnJ.d.mts} +1 -1
  4. package/dist/{auth-OLWCR6Zr.d.ts → auth-D6Rg-cEc.d.ts} +1 -1
  5. package/dist/{chunk-WNRV4DSZ.mjs → chunk-S6RE75SK.mjs} +3 -3
  6. package/dist/chunk-S6RE75SK.mjs.map +1 -0
  7. package/dist/{chunk-HFYQRL77.mjs → chunk-VYFOKMRP.mjs} +2 -2
  8. package/dist/enums/index.cjs +2 -2
  9. package/dist/enums/index.cjs.map +1 -1
  10. package/dist/enums/index.d.mts +2 -2
  11. package/dist/enums/index.d.ts +2 -2
  12. package/dist/enums/index.mjs +1 -1
  13. package/dist/formFields/index.cjs.map +1 -1
  14. package/dist/formFields/index.d.mts +1 -1
  15. package/dist/formFields/index.d.ts +1 -1
  16. package/dist/formFields/index.mjs +2 -2
  17. package/dist/{global-qg1lwtYo.d.mts → global-Czf4z7aN.d.mts} +3 -3
  18. package/dist/{global-Be5v6emI.d.ts → global-dQyePynY.d.ts} +3 -3
  19. package/dist/graphql/index.cjs +14 -14
  20. package/dist/graphql/index.cjs.map +1 -1
  21. package/dist/graphql/index.d.mts +2 -2
  22. package/dist/graphql/index.d.ts +2 -2
  23. package/dist/graphql/index.mjs +15 -15
  24. package/dist/graphql/index.mjs.map +1 -1
  25. package/dist/hooks/index.cjs +7 -7
  26. package/dist/hooks/index.cjs.map +1 -1
  27. package/dist/hooks/index.d.mts +3 -3
  28. package/dist/hooks/index.d.ts +3 -3
  29. package/dist/hooks/index.mjs +9 -9
  30. package/dist/hooks/index.mjs.map +1 -1
  31. package/dist/index.cjs +23 -23
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.d.mts +7 -7
  34. package/dist/index.d.ts +7 -7
  35. package/dist/index.mjs +23 -23
  36. package/dist/index.mjs.map +1 -1
  37. package/dist/types/index.d.mts +3 -3
  38. package/dist/types/index.d.ts +3 -3
  39. package/dist/utils/index.cjs.map +1 -1
  40. package/dist/utils/index.d.mts +1 -1
  41. package/dist/utils/index.d.ts +1 -1
  42. package/dist/utils/index.mjs +2 -2
  43. package/package.json +1 -1
  44. package/dist/chunk-WNRV4DSZ.mjs.map +0 -1
  45. /package/dist/{chunk-HFYQRL77.mjs.map → chunk-VYFOKMRP.mjs.map} +0 -0
package/dist/index.d.mts CHANGED
@@ -92,8 +92,8 @@ declare enum EnumRelationResource {
92
92
  VENDOR_APPLICATION_TO_EVENT = "vendor_application_to_event"
93
93
  }
94
94
  declare enum EnumNotificationResourceType {
95
- ADDED_AS_PARTNER_EVENT = "added_as_partner_event",
96
- ADDED_AS_PARTNER_VENDOR = "added_as_partner_vendor",
95
+ ADDED_AS_ASSOCIATE_EVENT = "added_as_associate_event",
96
+ ADDED_AS_ASSOCIATE_VENDOR = "added_as_associate_vendor",
97
97
  APPROVED_EVENT = "approved_event",
98
98
  APPROVED_VENDOR = "approved_vendor",
99
99
  CREATED_EVENT = "created_event",
@@ -369,7 +369,7 @@ type SocialMediaType = {
369
369
  name?: EnumSocialMedia;
370
370
  link?: string;
371
371
  };
372
- type PartnerType = {
372
+ type AssociateType = {
373
373
  email: string;
374
374
  resourceId: string;
375
375
  resourceType: EnumResourceType;
@@ -382,6 +382,7 @@ type OwnerType = {
382
382
  interface BaseResourceTypeFormData {
383
383
  _id?: string;
384
384
  active: boolean;
385
+ associates?: AssociateType[] | null;
385
386
  contactDetails?: ResourceContactDetailsType | null;
386
387
  cover: ResourceImageType;
387
388
  coverUpload?: ResourceImageType | null;
@@ -392,7 +393,6 @@ interface BaseResourceTypeFormData {
392
393
  logoUpload?: ResourceImageType | null;
393
394
  name: string;
394
395
  owner?: OwnerType | null;
395
- partners?: PartnerType[] | null;
396
396
  promoCodes?: string[] | null;
397
397
  region: string;
398
398
  socialMedia?: SocialMediaType[] | null;
@@ -709,6 +709,7 @@ type UserActivity = {
709
709
  interface UserType {
710
710
  _id: string;
711
711
  active: boolean;
712
+ associates?: AssociateType[] | null;
712
713
  avatar: ResourceImageType | null;
713
714
  createdAt: string;
714
715
  deletedAt: string | null;
@@ -718,17 +719,16 @@ interface UserType {
718
719
  isTester: boolean;
719
720
  lastName: string;
720
721
  licences: EnumUserLicence[] | null;
721
- partners?: PartnerType[] | null;
722
722
  password: string;
723
723
  platform: EnumOSPlatform | null;
724
724
  preferredRegion: string;
725
725
  refreshToken: string | null;
726
726
  role: EnumUserRole;
727
+ stripe?: StripeSubscription;
727
728
  termsAgreement?: TermsAgreement | null;
728
729
  updatedAt: string;
729
730
  userActivity: UserActivity | null;
730
731
  vendor: string | null;
731
- stripe?: StripeSubscription;
732
732
  }
733
733
 
734
734
  declare enum EnumAdShowOn {
@@ -1594,4 +1594,4 @@ declare const availableRegionOptions: OptionItem[];
1594
1594
  declare const paymentMethodOptions: OptionItem[];
1595
1595
  declare function normalizeUrl(url: string): string;
1596
1596
 
1597
- export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type 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, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionStatusData, 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, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, 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, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useCancelSubscription, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, 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, useGetSubscriptionStatus, 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, useUpdateSubscriptionPlan, 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 };
1597
+ export { type AdFormData, type AdType, type AdminUpdateResourceType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, 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, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionStatusData, 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, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, 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, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useCancelSubscription, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, 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, useGetSubscriptionStatus, 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, useUpdateSubscriptionPlan, 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
@@ -92,8 +92,8 @@ declare enum EnumRelationResource {
92
92
  VENDOR_APPLICATION_TO_EVENT = "vendor_application_to_event"
93
93
  }
94
94
  declare enum EnumNotificationResourceType {
95
- ADDED_AS_PARTNER_EVENT = "added_as_partner_event",
96
- ADDED_AS_PARTNER_VENDOR = "added_as_partner_vendor",
95
+ ADDED_AS_ASSOCIATE_EVENT = "added_as_associate_event",
96
+ ADDED_AS_ASSOCIATE_VENDOR = "added_as_associate_vendor",
97
97
  APPROVED_EVENT = "approved_event",
98
98
  APPROVED_VENDOR = "approved_vendor",
99
99
  CREATED_EVENT = "created_event",
@@ -369,7 +369,7 @@ type SocialMediaType = {
369
369
  name?: EnumSocialMedia;
370
370
  link?: string;
371
371
  };
372
- type PartnerType = {
372
+ type AssociateType = {
373
373
  email: string;
374
374
  resourceId: string;
375
375
  resourceType: EnumResourceType;
@@ -382,6 +382,7 @@ type OwnerType = {
382
382
  interface BaseResourceTypeFormData {
383
383
  _id?: string;
384
384
  active: boolean;
385
+ associates?: AssociateType[] | null;
385
386
  contactDetails?: ResourceContactDetailsType | null;
386
387
  cover: ResourceImageType;
387
388
  coverUpload?: ResourceImageType | null;
@@ -392,7 +393,6 @@ interface BaseResourceTypeFormData {
392
393
  logoUpload?: ResourceImageType | null;
393
394
  name: string;
394
395
  owner?: OwnerType | null;
395
- partners?: PartnerType[] | null;
396
396
  promoCodes?: string[] | null;
397
397
  region: string;
398
398
  socialMedia?: SocialMediaType[] | null;
@@ -709,6 +709,7 @@ type UserActivity = {
709
709
  interface UserType {
710
710
  _id: string;
711
711
  active: boolean;
712
+ associates?: AssociateType[] | null;
712
713
  avatar: ResourceImageType | null;
713
714
  createdAt: string;
714
715
  deletedAt: string | null;
@@ -718,17 +719,16 @@ interface UserType {
718
719
  isTester: boolean;
719
720
  lastName: string;
720
721
  licences: EnumUserLicence[] | null;
721
- partners?: PartnerType[] | null;
722
722
  password: string;
723
723
  platform: EnumOSPlatform | null;
724
724
  preferredRegion: string;
725
725
  refreshToken: string | null;
726
726
  role: EnumUserRole;
727
+ stripe?: StripeSubscription;
727
728
  termsAgreement?: TermsAgreement | null;
728
729
  updatedAt: string;
729
730
  userActivity: UserActivity | null;
730
731
  vendor: string | null;
731
- stripe?: StripeSubscription;
732
732
  }
733
733
 
734
734
  declare enum EnumAdShowOn {
@@ -1594,4 +1594,4 @@ declare const availableRegionOptions: OptionItem[];
1594
1594
  declare const paymentMethodOptions: OptionItem[];
1595
1595
  declare function normalizeUrl(url: string): string;
1596
1596
 
1597
- export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type 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, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionStatusData, 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, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, 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, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useCancelSubscription, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, 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, useGetSubscriptionStatus, 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, useUpdateSubscriptionPlan, 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 };
1597
+ export { type AdFormData, type AdType, type AdminUpdateResourceType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, 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, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumSubscriptionStatus, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type StripeSubscription, type Subcategory, type SubcategoryItems, type SubscriptionStatusData, 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, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, 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, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useCancelSubscription, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, 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, useGetSubscriptionStatus, 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, useUpdateSubscriptionPlan, 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
@@ -100,8 +100,8 @@ var EnumRelationResource = /* @__PURE__ */ ((EnumRelationResource2) => {
100
100
  return EnumRelationResource2;
101
101
  })(EnumRelationResource || {});
102
102
  var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceType2) => {
103
- EnumNotificationResourceType2["ADDED_AS_PARTNER_EVENT"] = "added_as_partner_event";
104
- EnumNotificationResourceType2["ADDED_AS_PARTNER_VENDOR"] = "added_as_partner_vendor";
103
+ EnumNotificationResourceType2["ADDED_AS_ASSOCIATE_EVENT"] = "added_as_associate_event";
104
+ EnumNotificationResourceType2["ADDED_AS_ASSOCIATE_VENDOR"] = "added_as_associate_vendor";
105
105
  EnumNotificationResourceType2["APPROVED_EVENT"] = "approved_event";
106
106
  EnumNotificationResourceType2["APPROVED_VENDOR"] = "approved_vendor";
107
107
  EnumNotificationResourceType2["CREATED_EVENT"] = "created_event";
@@ -2052,8 +2052,8 @@ var CATEGORY_FIELDS_FRAGMENT = gql2`
2052
2052
  }
2053
2053
  }
2054
2054
  `;
2055
- var PARTNER_FIELDS_FRAGMENT = gql2`
2056
- fragment PartnerFields on PartnerType {
2055
+ var ASSOCIATES_FIELDS_FRAGMENT = gql2`
2056
+ fragment AssociatesFields on AssociateType {
2057
2057
  email
2058
2058
  resourceId
2059
2059
  resourceType
@@ -2112,6 +2112,9 @@ var USER_FIELDS_FRAGMENT = gql2`
2112
2112
  fragment UserFields on UserType {
2113
2113
  _id
2114
2114
  active
2115
+ associates {
2116
+ ...AssociatesFields
2117
+ }
2115
2118
  avatar {
2116
2119
  ...ResourceImageFields
2117
2120
  }
@@ -2125,9 +2128,6 @@ var USER_FIELDS_FRAGMENT = gql2`
2125
2128
  licences
2126
2129
  platform
2127
2130
  preferredRegion
2128
- partners {
2129
- ...PartnerFields
2130
- }
2131
2131
  refreshToken
2132
2132
  role
2133
2133
  termsAgreement {
@@ -2140,7 +2140,7 @@ var USER_FIELDS_FRAGMENT = gql2`
2140
2140
  updatedAt
2141
2141
  }
2142
2142
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2143
- ${PARTNER_FIELDS_FRAGMENT}
2143
+ ${ASSOCIATES_FIELDS_FRAGMENT}
2144
2144
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2145
2145
  ${USER_ACTIVITY_FIELDS_FRAGMENT}
2146
2146
  `;
@@ -2241,6 +2241,9 @@ var EVENT = gql3`
2241
2241
  fragment EventFields on EventType {
2242
2242
  _id
2243
2243
  active
2244
+ associates {
2245
+ ...AssociatesFields
2246
+ }
2244
2247
  adIds
2245
2248
  cover {
2246
2249
  ...ResourceImageFields
@@ -2270,9 +2273,6 @@ var EVENT = gql3`
2270
2273
  owner {
2271
2274
  ...OwnerFields
2272
2275
  }
2273
- partners {
2274
- ...PartnerFields
2275
- }
2276
2276
  promoCodes
2277
2277
  provider
2278
2278
  posterUsage {
@@ -2301,7 +2301,7 @@ var EVENT = gql3`
2301
2301
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2302
2302
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
2303
2303
  ${POSTER_USAGE_FIELDS_FRAGMENT}
2304
- ${PARTNER_FIELDS_FRAGMENT}
2304
+ ${ASSOCIATES_FIELDS_FRAGMENT}
2305
2305
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
2306
2306
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2307
2307
  ${RELATION_DATES_FRAGMENT}
@@ -2390,6 +2390,9 @@ var VENDOR = gql4`
2390
2390
  fragment VendorFields on VendorType {
2391
2391
  _id
2392
2392
  active
2393
+ associates {
2394
+ ...AssociatesFields
2395
+ }
2393
2396
  adIds
2394
2397
  availability {
2395
2398
  corporate
@@ -2429,9 +2432,6 @@ var VENDOR = gql4`
2429
2432
  owner {
2430
2433
  ...OwnerFields
2431
2434
  }
2432
- partners {
2433
- ...PartnerFields
2434
- }
2435
2435
  products {
2436
2436
  ...VendorMenuFields
2437
2437
  }
@@ -2462,7 +2462,7 @@ var VENDOR = gql4`
2462
2462
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2463
2463
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
2464
2464
  ${POSTER_USAGE_FIELDS_FRAGMENT}
2465
- ${PARTNER_FIELDS_FRAGMENT}
2465
+ ${ASSOCIATES_FIELDS_FRAGMENT}
2466
2466
  ${VENDOR_MENU_FIELDS_FRAGMENT}
2467
2467
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
2468
2468
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
@@ -4854,7 +4854,7 @@ var globalResourceSchema = yup.object().shape({
4854
4854
  name: yup.string().label("Name").trim().min(3).max(40).required("Name is required"),
4855
4855
  region: yup.string().label("Region").required("Region is required"),
4856
4856
  socialMedia: yup.array().of(socialMediaSchema).nullable().optional(),
4857
- partners: yup.array().of(
4857
+ associates: yup.array().of(
4858
4858
  yup.object().shape({
4859
4859
  email: emailRequiredSchema,
4860
4860
  resourceId: yup.string().required(),
@@ -5149,6 +5149,7 @@ var adSchema = yup7.object().shape({
5149
5149
  // src/hooks/utils.ts
5150
5150
  var globalDefaultValues = {
5151
5151
  active: false,
5152
+ associates: null,
5152
5153
  contactDetails: {
5153
5154
  email: null,
5154
5155
  landlinePhone: null,
@@ -5168,7 +5169,6 @@ var globalDefaultValues = {
5168
5169
  logo: null,
5169
5170
  logoUpload: null,
5170
5171
  name: "",
5171
- partners: null,
5172
5172
  promoCodes: [],
5173
5173
  region: "",
5174
5174
  socialMedia: []
@@ -5241,6 +5241,7 @@ function mapBaseResourceTypeToFormData(data) {
5241
5241
  return {
5242
5242
  _id: data._id,
5243
5243
  active: data.active,
5244
+ associates: data.associates,
5244
5245
  contactDetails: data.contactDetails,
5245
5246
  cover: data.cover,
5246
5247
  coverUpload: data.coverUpload,
@@ -5251,7 +5252,6 @@ function mapBaseResourceTypeToFormData(data) {
5251
5252
  logoUpload: data.logoUpload,
5252
5253
  name: data.name,
5253
5254
  owner: data.owner,
5254
- partners: data.partners,
5255
5255
  promoCodes: data.promoCodes,
5256
5256
  region: data.region,
5257
5257
  socialMedia: data.socialMedia,
@@ -5291,6 +5291,7 @@ function useVendorForm(data) {
5291
5291
  const {
5292
5292
  _id,
5293
5293
  active,
5294
+ associates,
5294
5295
  availability,
5295
5296
  categories,
5296
5297
  cover,
@@ -5304,7 +5305,6 @@ function useVendorForm(data) {
5304
5305
  multiLocation,
5305
5306
  name,
5306
5307
  owner,
5307
- partners,
5308
5308
  products,
5309
5309
  promoCodes,
5310
5310
  region,
@@ -5317,6 +5317,7 @@ function useVendorForm(data) {
5317
5317
  fields: {
5318
5318
  _id,
5319
5319
  active,
5320
+ associates,
5320
5321
  availability,
5321
5322
  categories,
5322
5323
  cover,
@@ -5330,7 +5331,6 @@ function useVendorForm(data) {
5330
5331
  multiLocation,
5331
5332
  name,
5332
5333
  owner,
5333
- partners,
5334
5334
  products,
5335
5335
  promoCodes,
5336
5336
  region,
@@ -5445,6 +5445,7 @@ function useEventForm(data) {
5445
5445
  const {
5446
5446
  _id,
5447
5447
  active,
5448
+ associates,
5448
5449
  cover,
5449
5450
  coverUpload,
5450
5451
  dateTime,
@@ -5458,7 +5459,6 @@ function useEventForm(data) {
5458
5459
  name,
5459
5460
  nzbn,
5460
5461
  owner,
5461
- partners,
5462
5462
  promoCodes,
5463
5463
  provider,
5464
5464
  rainOrShine,
@@ -5472,6 +5472,7 @@ function useEventForm(data) {
5472
5472
  fields: {
5473
5473
  _id,
5474
5474
  active,
5475
+ associates,
5475
5476
  cover,
5476
5477
  coverUpload,
5477
5478
  dateTime,
@@ -5485,7 +5486,6 @@ function useEventForm(data) {
5485
5486
  name,
5486
5487
  nzbn,
5487
5488
  owner,
5488
- partners,
5489
5489
  promoCodes,
5490
5490
  provider,
5491
5491
  rainOrShine,