@timardex/cluemart-shared 1.1.87 → 1.1.89

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 (37) hide show
  1. package/dist/{ad-t0erahFh.d.ts → ad-BDFZ4528.d.ts} +3 -8
  2. package/dist/{ad-uRUiACsf.d.mts → ad-BjGCOTe7.d.mts} +3 -8
  3. package/dist/{auth-kUsJAVe0.d.ts → auth-BrZKuo0z.d.ts} +1 -1
  4. package/dist/{auth-l7vyAh_c.d.mts → auth-ByNNFLru.d.mts} +1 -1
  5. package/dist/formFields/index.cjs +1 -10
  6. package/dist/formFields/index.cjs.map +1 -1
  7. package/dist/formFields/index.d.mts +2 -3
  8. package/dist/formFields/index.d.ts +2 -3
  9. package/dist/formFields/index.mjs +1 -9
  10. package/dist/formFields/index.mjs.map +1 -1
  11. package/dist/{global-BFw_3JRE.d.mts → global-CpzUMd9V.d.ts} +9 -5
  12. package/dist/{global-wedhnwEi.d.ts → global-DM2y8vJE.d.mts} +9 -5
  13. package/dist/graphql/index.cjs +27 -15
  14. package/dist/graphql/index.cjs.map +1 -1
  15. package/dist/graphql/index.d.mts +3 -3
  16. package/dist/graphql/index.d.ts +3 -3
  17. package/dist/graphql/index.mjs +27 -15
  18. package/dist/graphql/index.mjs.map +1 -1
  19. package/dist/hooks/index.cjs +4 -18
  20. package/dist/hooks/index.cjs.map +1 -1
  21. package/dist/hooks/index.d.mts +3 -3
  22. package/dist/hooks/index.d.ts +3 -3
  23. package/dist/hooks/index.mjs +4 -18
  24. package/dist/hooks/index.mjs.map +1 -1
  25. package/dist/index.cjs +32 -43
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.mts +9 -11
  28. package/dist/index.d.ts +9 -11
  29. package/dist/index.mjs +32 -42
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/{resourceViews-DhcQUfNK.d.mts → resourceViews-Bf_2M1ri.d.mts} +1 -1
  32. package/dist/{resourceViews-BsoV_brr.d.ts → resourceViews-C5NMAmI6.d.ts} +1 -1
  33. package/dist/types/index.d.mts +4 -4
  34. package/dist/types/index.d.ts +4 -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
package/dist/index.d.mts CHANGED
@@ -262,6 +262,12 @@ type SocialMediaType = {
262
262
  name?: EnumSocialMedia;
263
263
  link?: string;
264
264
  };
265
+ type PartnerType = {
266
+ email: string;
267
+ resourceId: string;
268
+ resourceType: EnumResourceType;
269
+ licence: EnumUserLicence;
270
+ };
265
271
  interface BaseResourceTypeFormData {
266
272
  _id?: string;
267
273
  active: boolean;
@@ -276,9 +282,7 @@ interface BaseResourceTypeFormData {
276
282
  promoCode?: string | null;
277
283
  region: string;
278
284
  socialMedia?: SocialMediaType[] | null;
279
- partners?: {
280
- email: string;
281
- }[] | null;
285
+ partners?: PartnerType[] | null;
282
286
  }
283
287
  type OwnerType = {
284
288
  email: string;
@@ -543,11 +547,6 @@ type UserFormData = {
543
547
  role: EnumUserRole;
544
548
  };
545
549
  type CreateUserFormData = CreateFormData<UserFormData>;
546
- type UserPartnerType = {
547
- resourceId: string;
548
- resourceType: EnumUserRole;
549
- licence: EnumUserLicence;
550
- };
551
550
  interface UserType {
552
551
  _id: string;
553
552
  active: boolean;
@@ -567,7 +566,7 @@ interface UserType {
567
566
  password: string;
568
567
  platform: EnumOSPlatform | null;
569
568
  preferredRegion: string;
570
- partners?: UserPartnerType[] | null;
569
+ partners?: PartnerType[] | null;
571
570
  refreshTokenExpiry: {
572
571
  token: string;
573
572
  expiresAt: string;
@@ -706,7 +705,6 @@ declare const testersFields: FormField[];
706
705
  declare const contactUsFields: FormField[];
707
706
 
708
707
  declare const companyContactFields: FormField[];
709
- declare const partnersFields: FormField[];
710
708
 
711
709
  declare const useAdminUpdateResourceType: () => {
712
710
  adminUpdateResourceType: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
@@ -1366,4 +1364,4 @@ declare const availableRegionOptions: OptionItem[];
1366
1364
  declare const paymentMethodOptions: OptionItem[];
1367
1365
  declare function normalizeUrl(url: string): string;
1368
1366
 
1369
- 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, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type EventWithConnectionDatesType, 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 ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, type ResourceViewEntry, type ResourceViewInputType, type ResourceViewsType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserPartnerType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorType, type VendorWithConnectionDatesType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnersFields, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceViews, 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, useGetResourceConnections, useGetResourceViews, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserEvents, useGetUserFavourites, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendor, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorBasicInfoFields, vendorElectricity, vendorEndDateFields, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
1367
+ 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, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type EventWithConnectionDatesType, 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 ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, type ResourceViewEntry, type ResourceViewInputType, type ResourceViewsType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorType, type VendorWithConnectionDatesType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceViews, 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, useGetResourceConnections, useGetResourceViews, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserEvents, useGetUserFavourites, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendor, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorBasicInfoFields, vendorElectricity, vendorEndDateFields, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
package/dist/index.d.ts CHANGED
@@ -262,6 +262,12 @@ type SocialMediaType = {
262
262
  name?: EnumSocialMedia;
263
263
  link?: string;
264
264
  };
265
+ type PartnerType = {
266
+ email: string;
267
+ resourceId: string;
268
+ resourceType: EnumResourceType;
269
+ licence: EnumUserLicence;
270
+ };
265
271
  interface BaseResourceTypeFormData {
266
272
  _id?: string;
267
273
  active: boolean;
@@ -276,9 +282,7 @@ interface BaseResourceTypeFormData {
276
282
  promoCode?: string | null;
277
283
  region: string;
278
284
  socialMedia?: SocialMediaType[] | null;
279
- partners?: {
280
- email: string;
281
- }[] | null;
285
+ partners?: PartnerType[] | null;
282
286
  }
283
287
  type OwnerType = {
284
288
  email: string;
@@ -543,11 +547,6 @@ type UserFormData = {
543
547
  role: EnumUserRole;
544
548
  };
545
549
  type CreateUserFormData = CreateFormData<UserFormData>;
546
- type UserPartnerType = {
547
- resourceId: string;
548
- resourceType: EnumUserRole;
549
- licence: EnumUserLicence;
550
- };
551
550
  interface UserType {
552
551
  _id: string;
553
552
  active: boolean;
@@ -567,7 +566,7 @@ interface UserType {
567
566
  password: string;
568
567
  platform: EnumOSPlatform | null;
569
568
  preferredRegion: string;
570
- partners?: UserPartnerType[] | null;
569
+ partners?: PartnerType[] | null;
571
570
  refreshTokenExpiry: {
572
571
  token: string;
573
572
  expiresAt: string;
@@ -706,7 +705,6 @@ declare const testersFields: FormField[];
706
705
  declare const contactUsFields: FormField[];
707
706
 
708
707
  declare const companyContactFields: FormField[];
709
- declare const partnersFields: FormField[];
710
708
 
711
709
  declare const useAdminUpdateResourceType: () => {
712
710
  adminUpdateResourceType: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
@@ -1366,4 +1364,4 @@ declare const availableRegionOptions: OptionItem[];
1366
1364
  declare const paymentMethodOptions: OptionItem[];
1367
1365
  declare function normalizeUrl(url: string): string;
1368
1366
 
1369
- 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, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type EventWithConnectionDatesType, 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 ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, type ResourceViewEntry, type ResourceViewInputType, type ResourceViewsType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserPartnerType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorType, type VendorWithConnectionDatesType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnersFields, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceViews, 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, useGetResourceConnections, useGetResourceViews, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserEvents, useGetUserFavourites, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendor, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorBasicInfoFields, vendorElectricity, vendorEndDateFields, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
1367
+ 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, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type EventWithConnectionDatesType, 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 ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, type ResourceViewEntry, type ResourceViewInputType, type ResourceViewsType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorType, type VendorWithConnectionDatesType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceViews, 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, useGetResourceConnections, useGetResourceViews, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserEvents, useGetUserFavourites, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendor, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, useVendorForm, useVendorInfoForm, validateVerificationTokenFields, vendorBasicInfoFields, vendorElectricity, vendorEndDateFields, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMultiLocation, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
package/dist/index.mjs CHANGED
@@ -404,6 +404,7 @@ var eventBasicInfoFields = [
404
404
  },
405
405
  {
406
406
  helperText: "NZBN number (required \u2013 ClueMart only accepts events with valid NZBN number) *",
407
+ keyboardType: "number-pad",
407
408
  name: "nzbn",
408
409
  placeholder: "NZBN number"
409
410
  },
@@ -1820,14 +1821,6 @@ var companyContactFields = [
1820
1821
  placeholder: "Landline Phone Number"
1821
1822
  }
1822
1823
  ];
1823
- var partnersFields = [
1824
- {
1825
- helperText: "Enter email address",
1826
- keyboardType: "email-address",
1827
- name: "email",
1828
- placeholder: "Email"
1829
- }
1830
- ];
1831
1824
 
1832
1825
  // src/graphql/hooks/admin/hooksMutation.ts
1833
1826
  import { useMutation } from "@apollo/client";
@@ -1887,6 +1880,14 @@ var CATEGORY_FIELDS_FRAGMENT = gql2`
1887
1880
  }
1888
1881
  }
1889
1882
  `;
1883
+ var PARTNER_FIELDS_FRAGMENT = gql2`
1884
+ fragment PartnerFields on PartnerType {
1885
+ email
1886
+ resourceId
1887
+ resourceType
1888
+ licence
1889
+ }
1890
+ `;
1890
1891
  var USER_FIELDS_FRAGMENT = gql2`
1891
1892
  fragment UserFields on UserType {
1892
1893
  _id
@@ -1909,9 +1910,7 @@ var USER_FIELDS_FRAGMENT = gql2`
1909
1910
  platform
1910
1911
  preferredRegion
1911
1912
  partners {
1912
- resourceId
1913
- resourceType
1914
- licence
1913
+ ...PartnerFields
1915
1914
  }
1916
1915
  refreshToken
1917
1916
  role
@@ -1919,6 +1918,7 @@ var USER_FIELDS_FRAGMENT = gql2`
1919
1918
  updatedAt
1920
1919
  }
1921
1920
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
1921
+ ${PARTNER_FIELDS_FRAGMENT}
1922
1922
  `;
1923
1923
  var STALL_TYPE_FIELDS_FRAGMENT = gql2`
1924
1924
  fragment StallTypeFields on StallTypeType {
@@ -1992,9 +1992,6 @@ var EVENT = gql3`
1992
1992
  fragment EventFields on EventType {
1993
1993
  _id
1994
1994
  active
1995
- partners {
1996
- email
1997
- }
1998
1995
  adIds
1999
1996
  cover {
2000
1997
  ...ResourceImageFields
@@ -2017,9 +2014,13 @@ var EVENT = gql3`
2017
2014
  }
2018
2015
  eventInfoId
2019
2016
  name
2017
+ nzbn
2020
2018
  owner {
2021
2019
  ...OwnerFields
2022
2020
  }
2021
+ partners {
2022
+ ...PartnerFields
2023
+ }
2023
2024
  promoCode
2024
2025
  provider
2025
2026
  posterUsage {
@@ -2040,6 +2041,7 @@ var EVENT = gql3`
2040
2041
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2041
2042
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
2042
2043
  ${POSTER_USAGE_FIELDS_FRAGMENT}
2044
+ ${PARTNER_FIELDS_FRAGMENT}
2043
2045
  `;
2044
2046
  var GET_EVENTS = gql3`
2045
2047
  query getEvents {
@@ -2116,9 +2118,6 @@ var VENDOR = gql4`
2116
2118
  fragment VendorFields on VendorType {
2117
2119
  _id
2118
2120
  active
2119
- partners {
2120
- email
2121
- }
2122
2121
  adIds
2123
2122
  vendorInfoId
2124
2123
  categories {
@@ -2150,6 +2149,9 @@ var VENDOR = gql4`
2150
2149
  owner {
2151
2150
  ...OwnerFields
2152
2151
  }
2152
+ partners {
2153
+ ...PartnerFields
2154
+ }
2153
2155
  products
2154
2156
  promoCode
2155
2157
  posterUsage {
@@ -2171,6 +2173,7 @@ var VENDOR = gql4`
2171
2173
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2172
2174
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
2173
2175
  ${POSTER_USAGE_FIELDS_FRAGMENT}
2176
+ ${PARTNER_FIELDS_FRAGMENT}
2174
2177
  `;
2175
2178
  var VENDOR_INFO = gql4`
2176
2179
  fragment VendorInfoFields on VendorInfoType {
@@ -3190,9 +3193,6 @@ var GET_RESOURCE_CONNECTIONS = gql17`
3190
3193
  events {
3191
3194
  _id
3192
3195
  active
3193
- partners {
3194
- email
3195
- }
3196
3196
  adIds
3197
3197
  cover {
3198
3198
  ...ResourceImageFields
@@ -3215,9 +3215,13 @@ var GET_RESOURCE_CONNECTIONS = gql17`
3215
3215
  }
3216
3216
  eventInfoId
3217
3217
  name
3218
+ nzbn
3218
3219
  owner {
3219
3220
  ...OwnerFields
3220
3221
  }
3222
+ partners {
3223
+ ...PartnerFields
3224
+ }
3221
3225
  promoCode
3222
3226
  provider
3223
3227
  posterUsage {
@@ -3238,9 +3242,6 @@ var GET_RESOURCE_CONNECTIONS = gql17`
3238
3242
  vendors {
3239
3243
  _id
3240
3244
  active
3241
- partners {
3242
- email
3243
- }
3244
3245
  adIds
3245
3246
  vendorInfoId
3246
3247
  categories {
@@ -3272,6 +3273,9 @@ var GET_RESOURCE_CONNECTIONS = gql17`
3272
3273
  owner {
3273
3274
  ...OwnerFields
3274
3275
  }
3276
+ partners {
3277
+ ...PartnerFields
3278
+ }
3275
3279
  products
3276
3280
  promoCode
3277
3281
  posterUsage {
@@ -3301,6 +3305,7 @@ var GET_RESOURCE_CONNECTIONS = gql17`
3301
3305
  ${RELATION_DATES_FRAGMENT}
3302
3306
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
3303
3307
  ${POSTER_USAGE_FIELDS_FRAGMENT}
3308
+ ${PARTNER_FIELDS_FRAGMENT}
3304
3309
  `;
3305
3310
 
3306
3311
  // src/graphql/mutations/relation.ts
@@ -4500,18 +4505,6 @@ var contactDetailsSchema = yup.object({
4500
4505
  import * as yup2 from "yup";
4501
4506
  var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
4502
4507
  var nzbnRegex = /^94\d{11}$/;
4503
- function validateNZBNCheckDigit(nzbn) {
4504
- if (!/^\d{13}$/.test(nzbn)) return false;
4505
- const digits = nzbn.split("").map(Number);
4506
- const checkDigit = digits.pop();
4507
- let remainder = 10;
4508
- for (const digit of digits) {
4509
- const sum = (digit + remainder) % 10;
4510
- remainder = (sum === 0 ? 10 : sum) * 2 % 11;
4511
- }
4512
- const expectedCheck = (11 - remainder) % 10;
4513
- return checkDigit === expectedCheck;
4514
- }
4515
4508
  var eventSchema = globalResourceSchema.shape({
4516
4509
  dateTime: yup2.array().of(dateTimeSchema).min(1, "At least one Event date required").max(50, "You can only add up to 50 Event dates").required("DateTime is required").test(
4517
4510
  "unique-start-date-time",
@@ -4532,10 +4525,7 @@ var eventSchema = globalResourceSchema.shape({
4532
4525
  ),
4533
4526
  eventType: yup2.mixed().oneOf(Object.values(EnumEventType)).required("Please select an Event type"),
4534
4527
  location: locationSchema,
4535
- nzbn: yup2.string().required("NZBN is required").matches(nzbnRegex, "NZBN must be 13 digits and start with 94").test("is-valid-nzbn", "Invalid NZBN check digit", (value) => {
4536
- if (!value) return false;
4537
- return validateNZBNCheckDigit(value);
4538
- }),
4528
+ nzbn: yup2.string().required("NZBN is required").matches(nzbnRegex, "NZBN must be 13 digits and start with 94"),
4539
4529
  rainOrShine: yup2.boolean().label("Rain or Shine").required("Please specify if the event is rain or shine"),
4540
4530
  tags: yup2.array().of(yup2.string().defined()).min(1, "Tags are required").required("Tags are required")
4541
4531
  });
@@ -4767,6 +4757,7 @@ var globalDefaultValues = {
4767
4757
  logo: null,
4768
4758
  logoUpload: null,
4769
4759
  name: "Resource name",
4760
+ partners: [],
4770
4761
  promoCode: "",
4771
4762
  region: "",
4772
4763
  socialMedia: []
@@ -4899,7 +4890,6 @@ function useVendorForm(data) {
4899
4890
  const {
4900
4891
  _id,
4901
4892
  active,
4902
- partners,
4903
4893
  categories,
4904
4894
  cover,
4905
4895
  coverUpload,
@@ -4911,10 +4901,11 @@ function useVendorForm(data) {
4911
4901
  logoUpload,
4912
4902
  multiLocation,
4913
4903
  name,
4904
+ partners,
4914
4905
  products,
4915
4906
  promoCode,
4916
- socialMedia: socialMedia2,
4917
4907
  region,
4908
+ socialMedia: socialMedia2,
4918
4909
  specialities,
4919
4910
  vendorType
4920
4911
  } = getValues();
@@ -5792,7 +5783,6 @@ export {
5792
5783
  mapBaseResourceTypeToFormData,
5793
5784
  normalizeUrl,
5794
5785
  packagingOptions,
5795
- partnersFields,
5796
5786
  paymentMethodOptions,
5797
5787
  producedIngOptions,
5798
5788
  profileFields,