@timardex/cluemart-shared 1.1.84 → 1.1.85

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-BzjjHQUN.d.mts → ad-Du5IS7QB.d.mts} +10 -1
  2. package/dist/{ad-CWNCM_p1.d.ts → ad-DyqiA76q.d.ts} +10 -1
  3. package/dist/{auth-CxQ0oavy.d.mts → auth-B7IU_5zn.d.mts} +1 -1
  4. package/dist/{auth-4m8SpJzV.d.ts → auth-BKlTZUUk.d.ts} +1 -1
  5. package/dist/formFields/index.cjs +43 -23
  6. package/dist/formFields/index.cjs.map +1 -1
  7. package/dist/formFields/index.d.mts +3 -2
  8. package/dist/formFields/index.d.ts +3 -2
  9. package/dist/formFields/index.mjs +42 -23
  10. package/dist/formFields/index.mjs.map +1 -1
  11. package/dist/{global-CIXx7hJi.d.mts → global-BEAKFnpH.d.mts} +5 -1
  12. package/dist/{global-wvYjcFy5.d.ts → global-BNNn5c8L.d.ts} +5 -1
  13. package/dist/graphql/index.cjs +5 -1
  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 +5 -1
  18. package/dist/graphql/index.mjs.map +1 -1
  19. package/dist/hooks/index.cjs +26 -0
  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 +26 -0
  24. package/dist/hooks/index.mjs.map +1 -1
  25. package/dist/index.cjs +74 -24
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.mts +17 -3
  28. package/dist/index.d.ts +17 -3
  29. package/dist/index.mjs +73 -24
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/{resourceViews-DgcX5Moj.d.ts → resourceViews-D8LIAWEV.d.ts} +2 -2
  32. package/dist/{resourceViews-BahGrfXt.d.mts → resourceViews-iM3QYTZo.d.mts} +2 -2
  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
@@ -166,6 +166,7 @@ interface EventFormData extends BaseResourceTypeFormData {
166
166
  dateTime: DateTimeType[];
167
167
  eventType: EnumEventType;
168
168
  location: LocationType;
169
+ nzbn: string;
169
170
  provider?: string | null;
170
171
  rainOrShine: boolean;
171
172
  tags: string[];
@@ -177,6 +178,7 @@ interface EventType extends BaseResourceType {
177
178
  eventInfoId: string;
178
179
  eventType: EnumEventType;
179
180
  location: LocationType;
181
+ nzbn: string;
180
182
  provider: string | null;
181
183
  rainOrShine: boolean;
182
184
  tags: string[];
@@ -271,10 +273,12 @@ interface BaseResourceTypeFormData {
271
273
  promoCode?: string | null;
272
274
  region: string;
273
275
  socialMedia?: SocialMediaType[] | null;
276
+ partners?: {
277
+ email: string;
278
+ }[] | null;
274
279
  }
275
280
  type OwnerType = {
276
281
  email: string;
277
- licences: string[];
278
282
  userId: string;
279
283
  };
280
284
  type PosterUsageType = {
@@ -429,7 +433,7 @@ type ValidateVerificationTokenFormData = {
429
433
  };
430
434
  type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificationTokenFormData>;
431
435
 
432
- type ParticipantType = Omit<OwnerType, "licences"> & {
436
+ type ParticipantType = OwnerType & {
433
437
  active: boolean;
434
438
  };
435
439
  interface ChatMessageInput {
@@ -555,6 +559,15 @@ interface UserType {
555
559
  password: string;
556
560
  platform: EnumOSPlatform | null;
557
561
  preferredRegion: string;
562
+ partners?: {
563
+ resourceId: string;
564
+ resourceType: EnumUserRole;
565
+ licence: EnumUserLicence;
566
+ }[] | null;
567
+ refreshTokenExpiry: {
568
+ token: string;
569
+ expiresAt: string;
570
+ };
558
571
  refreshToken: string | null;
559
572
  role: EnumUserRole;
560
573
  vendor: string | null;
@@ -689,6 +702,7 @@ declare const testersFields: FormField[];
689
702
  declare const contactUsFields: FormField[];
690
703
 
691
704
  declare const companyContactFields: FormField[];
705
+ declare const partnersFields: FormField[];
692
706
 
693
707
  declare const useAdminUpdateResourceType: () => {
694
708
  adminUpdateResourceType: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
@@ -1348,4 +1362,4 @@ declare const availableRegionOptions: OptionItem[];
1348
1362
  declare const paymentMethodOptions: OptionItem[];
1349
1363
  declare function normalizeUrl(url: string): string;
1350
1364
 
1351
- 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 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 };
1365
+ 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 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 };
package/dist/index.d.ts CHANGED
@@ -166,6 +166,7 @@ interface EventFormData extends BaseResourceTypeFormData {
166
166
  dateTime: DateTimeType[];
167
167
  eventType: EnumEventType;
168
168
  location: LocationType;
169
+ nzbn: string;
169
170
  provider?: string | null;
170
171
  rainOrShine: boolean;
171
172
  tags: string[];
@@ -177,6 +178,7 @@ interface EventType extends BaseResourceType {
177
178
  eventInfoId: string;
178
179
  eventType: EnumEventType;
179
180
  location: LocationType;
181
+ nzbn: string;
180
182
  provider: string | null;
181
183
  rainOrShine: boolean;
182
184
  tags: string[];
@@ -271,10 +273,12 @@ interface BaseResourceTypeFormData {
271
273
  promoCode?: string | null;
272
274
  region: string;
273
275
  socialMedia?: SocialMediaType[] | null;
276
+ partners?: {
277
+ email: string;
278
+ }[] | null;
274
279
  }
275
280
  type OwnerType = {
276
281
  email: string;
277
- licences: string[];
278
282
  userId: string;
279
283
  };
280
284
  type PosterUsageType = {
@@ -429,7 +433,7 @@ type ValidateVerificationTokenFormData = {
429
433
  };
430
434
  type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificationTokenFormData>;
431
435
 
432
- type ParticipantType = Omit<OwnerType, "licences"> & {
436
+ type ParticipantType = OwnerType & {
433
437
  active: boolean;
434
438
  };
435
439
  interface ChatMessageInput {
@@ -555,6 +559,15 @@ interface UserType {
555
559
  password: string;
556
560
  platform: EnumOSPlatform | null;
557
561
  preferredRegion: string;
562
+ partners?: {
563
+ resourceId: string;
564
+ resourceType: EnumUserRole;
565
+ licence: EnumUserLicence;
566
+ }[] | null;
567
+ refreshTokenExpiry: {
568
+ token: string;
569
+ expiresAt: string;
570
+ };
558
571
  refreshToken: string | null;
559
572
  role: EnumUserRole;
560
573
  vendor: string | null;
@@ -689,6 +702,7 @@ declare const testersFields: FormField[];
689
702
  declare const contactUsFields: FormField[];
690
703
 
691
704
  declare const companyContactFields: FormField[];
705
+ declare const partnersFields: FormField[];
692
706
 
693
707
  declare const useAdminUpdateResourceType: () => {
694
708
  adminUpdateResourceType: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
@@ -1348,4 +1362,4 @@ declare const availableRegionOptions: OptionItem[];
1348
1362
  declare const paymentMethodOptions: OptionItem[];
1349
1363
  declare function normalizeUrl(url: string): string;
1350
1364
 
1351
- 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 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 };
1365
+ 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 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 };
package/dist/index.mjs CHANGED
@@ -402,6 +402,11 @@ var eventBasicInfoFields = [
402
402
  name: "name",
403
403
  placeholder: "Name"
404
404
  },
405
+ {
406
+ helperText: "NZBN number (required \u2013 ClueMart only accepts events with valid NZBN number) *",
407
+ name: "nzbn",
408
+ placeholder: "NZBN number"
409
+ },
405
410
  {
406
411
  helperText: "Name of the Provider (if applicable)",
407
412
  name: "provider",
@@ -668,17 +673,22 @@ var requirementsOptions = [
668
673
  }
669
674
  ];
670
675
  var stallTypes = [
671
- "3x3m tent site",
672
- "2x2m mini stall",
673
676
  "1.8m table only",
674
- "Food truck site",
675
- "Wall-based vendor",
676
- "Workshop/seating area",
677
- "Shared table space",
677
+ "2x2m mini stall",
678
+ "3x3m tent site",
678
679
  "Corner stall",
680
+ "Craft stall with power",
681
+ "Craft stall without power",
679
682
  "Double stall (6x3m)",
683
+ "Food truck site",
684
+ "Food vendor with power",
685
+ "Food vendor without power",
680
686
  "Inside hall stall",
681
- "Outdoor open area"
687
+ "Non-profit/community stall",
688
+ "Outdoor open area",
689
+ "Shared table space",
690
+ "Wall-based vendor",
691
+ "Workshop/seating area"
682
692
  ];
683
693
  var stallTypeOptions = stallTypes.map((type) => ({
684
694
  electricity: {
@@ -693,13 +703,13 @@ var stallTypeOptions = stallTypes.map((type) => ({
693
703
  // src/formFields/auth.ts
694
704
  var loginFields = [
695
705
  {
696
- helperText: "Enter your email address *",
706
+ helperText: "Enter email address *",
697
707
  keyboardType: "email-address",
698
708
  name: "email",
699
709
  placeholder: "Email"
700
710
  },
701
711
  {
702
- helperText: "Enter your password *",
712
+ helperText: "Enter password *",
703
713
  keyboardType: "default",
704
714
  name: "password",
705
715
  placeholder: "Password",
@@ -708,25 +718,25 @@ var loginFields = [
708
718
  ];
709
719
  var registerFields = [
710
720
  {
711
- helperText: "Enter your first name *",
721
+ helperText: "Enter first name *",
712
722
  keyboardType: "default",
713
723
  name: "firstName",
714
724
  placeholder: "First Name"
715
725
  },
716
726
  {
717
- helperText: "Enter your last name *",
727
+ helperText: "Enter last name *",
718
728
  keyboardType: "default",
719
729
  name: "lastName",
720
730
  placeholder: "Last Name"
721
731
  },
722
732
  {
723
- helperText: "Enter your email address *",
733
+ helperText: "Enter email address *",
724
734
  keyboardType: "email-address",
725
735
  name: "email",
726
736
  placeholder: "Email"
727
737
  },
728
738
  {
729
- helperText: "Enter your password *",
739
+ helperText: "Enter password *",
730
740
  keyboardType: "default",
731
741
  name: "password",
732
742
  placeholder: "Password",
@@ -735,7 +745,7 @@ var registerFields = [
735
745
  ];
736
746
  var requestPasswordResetFields = [
737
747
  {
738
- helperText: "Enter your email address to reset your password *",
748
+ helperText: "Enter email address to reset your password *",
739
749
  keyboardType: "email-address",
740
750
  name: "email",
741
751
  placeholder: "Email"
@@ -783,13 +793,13 @@ var profileFields = [
783
793
  placeholder: "Email"
784
794
  },
785
795
  {
786
- helperText: "Enter your first name",
796
+ helperText: "Enter first name",
787
797
  keyboardType: "default",
788
798
  name: "firstName",
789
799
  placeholder: "First Name"
790
800
  },
791
801
  {
792
- helperText: "Enter your last name",
802
+ helperText: "Enter last name",
793
803
  keyboardType: "default",
794
804
  name: "lastName",
795
805
  placeholder: "Last Name"
@@ -1735,19 +1745,19 @@ var socialMediaFields = socialMedia.map((link) => ({
1735
1745
  // src/formFields/testers.ts
1736
1746
  var testersFields = [
1737
1747
  {
1738
- helperText: "Enter your first name *",
1748
+ helperText: "Enter first name *",
1739
1749
  keyboardType: "default",
1740
1750
  name: "firstName",
1741
1751
  placeholder: "First Name"
1742
1752
  },
1743
1753
  {
1744
- helperText: "Enter your last name *",
1754
+ helperText: "Enter last name *",
1745
1755
  keyboardType: "default",
1746
1756
  name: "lastName",
1747
1757
  placeholder: "Last Name"
1748
1758
  },
1749
1759
  {
1750
- helperText: "Enter your email address *",
1760
+ helperText: "Enter email address *",
1751
1761
  keyboardType: "email-address",
1752
1762
  name: "email",
1753
1763
  placeholder: "Email"
@@ -1763,19 +1773,19 @@ var testersFields = [
1763
1773
  // src/formFields/contactUs.ts
1764
1774
  var contactUsFields = [
1765
1775
  {
1766
- helperText: "Enter your first name *",
1776
+ helperText: "Enter first name *",
1767
1777
  keyboardType: "default",
1768
1778
  name: "firstName",
1769
1779
  placeholder: "First Name"
1770
1780
  },
1771
1781
  {
1772
- helperText: "Enter your last name *",
1782
+ helperText: "Enter last name *",
1773
1783
  keyboardType: "default",
1774
1784
  name: "lastName",
1775
1785
  placeholder: "Last Name"
1776
1786
  },
1777
1787
  {
1778
- helperText: "Enter your email address *",
1788
+ helperText: "Enter email address *",
1779
1789
  keyboardType: "email-address",
1780
1790
  name: "email",
1781
1791
  placeholder: "Email"
@@ -1792,7 +1802,7 @@ var contactUsFields = [
1792
1802
  // src/formFields/global.ts
1793
1803
  var companyContactFields = [
1794
1804
  {
1795
- helperText: "Enter your email address",
1805
+ helperText: "Enter email address",
1796
1806
  keyboardType: "email-address",
1797
1807
  name: "contactDetails.email",
1798
1808
  placeholder: "Email"
@@ -1810,6 +1820,14 @@ var companyContactFields = [
1810
1820
  placeholder: "Landline Phone Number"
1811
1821
  }
1812
1822
  ];
1823
+ var partnersFields = [
1824
+ {
1825
+ helperText: "Enter email address",
1826
+ keyboardType: "email-address",
1827
+ name: "partners.email",
1828
+ placeholder: "Email"
1829
+ }
1830
+ ];
1813
1831
 
1814
1832
  // src/graphql/hooks/admin/hooksMutation.ts
1815
1833
  import { useMutation } from "@apollo/client";
@@ -1852,7 +1870,6 @@ var RESOURCE_IMAGE_FIELDS_FRAGMENT = gql2`
1852
1870
  var OWNER_FIELDS_FRAGMENT = gql2`
1853
1871
  fragment OwnerFields on OwnerType {
1854
1872
  email
1855
- licences
1856
1873
  userId
1857
1874
  }
1858
1875
  `;
@@ -1891,6 +1908,7 @@ var USER_FIELDS_FRAGMENT = gql2`
1891
1908
  events
1892
1909
  platform
1893
1910
  preferredRegion
1911
+ partners
1894
1912
  refreshToken
1895
1913
  role
1896
1914
  vendor
@@ -1970,6 +1988,7 @@ var EVENT = gql3`
1970
1988
  fragment EventFields on EventType {
1971
1989
  _id
1972
1990
  active
1991
+ partners
1973
1992
  adIds
1974
1993
  cover {
1975
1994
  ...ResourceImageFields
@@ -2091,6 +2110,7 @@ var VENDOR = gql4`
2091
2110
  fragment VendorFields on VendorType {
2092
2111
  _id
2093
2112
  active
2113
+ partners
2094
2114
  adIds
2095
2115
  vendorInfoId
2096
2116
  categories {
@@ -3159,6 +3179,7 @@ var GET_RESOURCE_CONNECTIONS = gql17`
3159
3179
  events {
3160
3180
  _id
3161
3181
  active
3182
+ partners
3162
3183
  adIds
3163
3184
  cover {
3164
3185
  ...ResourceImageFields
@@ -3204,6 +3225,7 @@ var GET_RESOURCE_CONNECTIONS = gql17`
3204
3225
  vendors {
3205
3226
  _id
3206
3227
  active
3228
+ partners
3207
3229
  adIds
3208
3230
  vendorInfoId
3209
3231
  categories {
@@ -4462,6 +4484,19 @@ var contactDetailsSchema = yup.object({
4462
4484
  // src/yupSchema/event.ts
4463
4485
  import * as yup2 from "yup";
4464
4486
  var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
4487
+ var nzbnRegex = /^94\d{11}$/;
4488
+ function validateNZBNCheckDigit(nzbn) {
4489
+ if (!/^\d{13}$/.test(nzbn)) return false;
4490
+ const digits = nzbn.split("").map(Number);
4491
+ const checkDigit = digits.pop();
4492
+ let remainder = 10;
4493
+ for (const digit of digits) {
4494
+ const sum = (digit + remainder) % 10;
4495
+ remainder = (sum === 0 ? 10 : sum) * 2 % 11;
4496
+ }
4497
+ const expectedCheck = (11 - remainder) % 10;
4498
+ return checkDigit === expectedCheck;
4499
+ }
4465
4500
  var eventSchema = globalResourceSchema.shape({
4466
4501
  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(
4467
4502
  "unique-start-date-time",
@@ -4482,6 +4517,10 @@ var eventSchema = globalResourceSchema.shape({
4482
4517
  ),
4483
4518
  eventType: yup2.mixed().oneOf(Object.values(EnumEventType)).required("Please select an Event type"),
4484
4519
  location: locationSchema,
4520
+ 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) => {
4521
+ if (!value) return false;
4522
+ return validateNZBNCheckDigit(value);
4523
+ }),
4485
4524
  rainOrShine: yup2.boolean().label("Rain or Shine").required("Please specify if the event is rain or shine"),
4486
4525
  tags: yup2.array().of(yup2.string().defined()).min(1, "Tags are required").required("Tags are required")
4487
4526
  });
@@ -4740,6 +4779,7 @@ var defaultEventFormValues = {
4740
4779
  type: "Point"
4741
4780
  // Default type for GeoJSON
4742
4781
  },
4782
+ nzbn: "",
4743
4783
  provider: null,
4744
4784
  rainOrShine: false,
4745
4785
  tags: []
@@ -4805,6 +4845,7 @@ function mapBaseResourceTypeToFormData(data) {
4805
4845
  logo: data.logo,
4806
4846
  logoUpload: data.logoUpload,
4807
4847
  name: data.name,
4848
+ partners: data.partners,
4808
4849
  promoCode: data.promoCode,
4809
4850
  region: data.region,
4810
4851
  socialMedia: data.socialMedia
@@ -4843,6 +4884,7 @@ function useVendorForm(data) {
4843
4884
  const {
4844
4885
  _id,
4845
4886
  active,
4887
+ partners,
4846
4888
  categories,
4847
4889
  cover,
4848
4890
  coverUpload,
@@ -4877,6 +4919,7 @@ function useVendorForm(data) {
4877
4919
  logoUpload,
4878
4920
  multiLocation,
4879
4921
  name,
4922
+ partners,
4880
4923
  products,
4881
4924
  promoCode,
4882
4925
  region,
@@ -4991,6 +5034,7 @@ function useEventForm(data) {
4991
5034
  dateTime: data.dateTime,
4992
5035
  eventType: data.eventType,
4993
5036
  location: data.location,
5037
+ nzbn: data.nzbn,
4994
5038
  provider: data.provider,
4995
5039
  rainOrShine: data.rainOrShine,
4996
5040
  tags: data.tags
@@ -5002,6 +5046,7 @@ function useEventForm(data) {
5002
5046
  const {
5003
5047
  _id,
5004
5048
  active,
5049
+ partners,
5005
5050
  cover,
5006
5051
  coverUpload,
5007
5052
  dateTime,
@@ -5013,6 +5058,7 @@ function useEventForm(data) {
5013
5058
  logo,
5014
5059
  logoUpload,
5015
5060
  name,
5061
+ nzbn,
5016
5062
  promoCode,
5017
5063
  provider,
5018
5064
  rainOrShine,
@@ -5036,6 +5082,8 @@ function useEventForm(data) {
5036
5082
  logo,
5037
5083
  logoUpload,
5038
5084
  name,
5085
+ nzbn,
5086
+ partners,
5039
5087
  promoCode,
5040
5088
  provider,
5041
5089
  rainOrShine,
@@ -5729,6 +5777,7 @@ export {
5729
5777
  mapBaseResourceTypeToFormData,
5730
5778
  normalizeUrl,
5731
5779
  packagingOptions,
5780
+ partnersFields,
5732
5781
  paymentMethodOptions,
5733
5782
  producedIngOptions,
5734
5783
  profileFields,