@timardex/cluemart-shared 1.3.50 → 1.3.52
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.
- package/dist/{auth-BD8pG4QE.d.ts → auth-D0kD3ZTx.d.ts} +9 -1
- package/dist/{auth-Cp-vzzpW.d.mts → auth-DT2zs6P6.d.mts} +9 -1
- package/dist/graphql/index.cjs +23 -15
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +6 -5
- package/dist/graphql/index.d.ts +6 -5
- package/dist/graphql/index.mjs +23 -15
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +59 -5
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +4 -2
- package/dist/hooks/index.d.ts +4 -2
- package/dist/hooks/index.mjs +58 -5
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +82 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +17 -6
- package/dist/index.d.ts +17 -6
- package/dist/index.mjs +81 -20
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1012,6 +1012,14 @@ type PostType = Omit<PostFormData, "content"> & {
|
|
|
1012
1012
|
updatedAt: Date | null;
|
|
1013
1013
|
};
|
|
1014
1014
|
|
|
1015
|
+
interface AppSettingsFormData {
|
|
1016
|
+
appVersion: string;
|
|
1017
|
+
}
|
|
1018
|
+
type CreateAppSettingsFormData = CreateFormData<AppSettingsFormData>;
|
|
1019
|
+
type AppSettingsType = AppSettingsFormData & {
|
|
1020
|
+
_id: string;
|
|
1021
|
+
};
|
|
1022
|
+
|
|
1015
1023
|
declare const vendorElectricity: {
|
|
1016
1024
|
details: FormField;
|
|
1017
1025
|
isRequired: FormField;
|
|
@@ -1663,11 +1671,6 @@ declare const useRemoveUserPresentResource: () => {
|
|
|
1663
1671
|
loading: boolean;
|
|
1664
1672
|
removeUserPresentResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1665
1673
|
};
|
|
1666
|
-
declare const useAppVersionCheck: () => {
|
|
1667
|
-
appVersionCheck: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1668
|
-
error: _apollo_client.ApolloError | undefined;
|
|
1669
|
-
loading: boolean;
|
|
1670
|
-
};
|
|
1671
1674
|
|
|
1672
1675
|
declare const useGetUsers: () => {
|
|
1673
1676
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1933,6 +1936,12 @@ declare const useGetPostsByType: (postType: EnumPostType) => {
|
|
|
1933
1936
|
}>>;
|
|
1934
1937
|
};
|
|
1935
1938
|
|
|
1939
|
+
declare const useAppVersionCheck: () => {
|
|
1940
|
+
appVersionCheck: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1941
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1942
|
+
loading: boolean;
|
|
1943
|
+
};
|
|
1944
|
+
|
|
1936
1945
|
interface PlacePrediction {
|
|
1937
1946
|
place_id: string;
|
|
1938
1947
|
description: string;
|
|
@@ -2027,6 +2036,8 @@ declare function usePartnerForm(data?: PartnerFormData): CreatePartnerFormData;
|
|
|
2027
2036
|
|
|
2028
2037
|
declare function usePostForm(data?: PostFormData): CreatePostFormData;
|
|
2029
2038
|
|
|
2039
|
+
declare function useAppSettingsForm(data?: AppSettingsFormData): CreateAppSettingsFormData;
|
|
2040
|
+
|
|
2030
2041
|
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
2031
2042
|
declare const SAVED_EMAIL_KEY = "savedEmail";
|
|
2032
2043
|
declare const SAVED_TOKEN_KEY = "savedToken";
|
|
@@ -2126,4 +2137,4 @@ declare const paymentMethodOptions: OptionItem[];
|
|
|
2126
2137
|
declare function normalizeUrl(url: string): string;
|
|
2127
2138
|
declare const licenseNiceNames: Record<EnumUserLicence, string>;
|
|
2128
2139
|
|
|
2129
|
-
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 CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTesterFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, 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, OrganizedMarketCount, OrganizerMarketFrequency, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentCover, type PostContentData, type PostContentFormData, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, 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 TesterEvent, type TesterFormData, type TesterType, type TesterVendor, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UserActivity, type UserActivityEvent, type UserActivityEventType, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, VendorSellingFrequency, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultRegion, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useAppVersionCheck, useCancelSubscription, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useTesterForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, 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 };
|
|
2140
|
+
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTesterFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, 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, OrganizedMarketCount, OrganizerMarketFrequency, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentCover, type PostContentData, type PostContentFormData, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, 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 TesterEvent, type TesterFormData, type TesterType, type TesterVendor, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UserActivity, type UserActivityEvent, type UserActivityEventType, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, VendorSellingFrequency, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultRegion, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useAppSettingsForm, useAppVersionCheck, useCancelSubscription, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useTesterForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, 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
|
@@ -1012,6 +1012,14 @@ type PostType = Omit<PostFormData, "content"> & {
|
|
|
1012
1012
|
updatedAt: Date | null;
|
|
1013
1013
|
};
|
|
1014
1014
|
|
|
1015
|
+
interface AppSettingsFormData {
|
|
1016
|
+
appVersion: string;
|
|
1017
|
+
}
|
|
1018
|
+
type CreateAppSettingsFormData = CreateFormData<AppSettingsFormData>;
|
|
1019
|
+
type AppSettingsType = AppSettingsFormData & {
|
|
1020
|
+
_id: string;
|
|
1021
|
+
};
|
|
1022
|
+
|
|
1015
1023
|
declare const vendorElectricity: {
|
|
1016
1024
|
details: FormField;
|
|
1017
1025
|
isRequired: FormField;
|
|
@@ -1663,11 +1671,6 @@ declare const useRemoveUserPresentResource: () => {
|
|
|
1663
1671
|
loading: boolean;
|
|
1664
1672
|
removeUserPresentResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1665
1673
|
};
|
|
1666
|
-
declare const useAppVersionCheck: () => {
|
|
1667
|
-
appVersionCheck: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1668
|
-
error: _apollo_client.ApolloError | undefined;
|
|
1669
|
-
loading: boolean;
|
|
1670
|
-
};
|
|
1671
1674
|
|
|
1672
1675
|
declare const useGetUsers: () => {
|
|
1673
1676
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1933,6 +1936,12 @@ declare const useGetPostsByType: (postType: EnumPostType) => {
|
|
|
1933
1936
|
}>>;
|
|
1934
1937
|
};
|
|
1935
1938
|
|
|
1939
|
+
declare const useAppVersionCheck: () => {
|
|
1940
|
+
appVersionCheck: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1941
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1942
|
+
loading: boolean;
|
|
1943
|
+
};
|
|
1944
|
+
|
|
1936
1945
|
interface PlacePrediction {
|
|
1937
1946
|
place_id: string;
|
|
1938
1947
|
description: string;
|
|
@@ -2027,6 +2036,8 @@ declare function usePartnerForm(data?: PartnerFormData): CreatePartnerFormData;
|
|
|
2027
2036
|
|
|
2028
2037
|
declare function usePostForm(data?: PostFormData): CreatePostFormData;
|
|
2029
2038
|
|
|
2039
|
+
declare function useAppSettingsForm(data?: AppSettingsFormData): CreateAppSettingsFormData;
|
|
2040
|
+
|
|
2030
2041
|
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
2031
2042
|
declare const SAVED_EMAIL_KEY = "savedEmail";
|
|
2032
2043
|
declare const SAVED_TOKEN_KEY = "savedToken";
|
|
@@ -2126,4 +2137,4 @@ declare const paymentMethodOptions: OptionItem[];
|
|
|
2126
2137
|
declare function normalizeUrl(url: string): string;
|
|
2127
2138
|
declare const licenseNiceNames: Record<EnumUserLicence, string>;
|
|
2128
2139
|
|
|
2129
|
-
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 CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTesterFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, 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, OrganizedMarketCount, OrganizerMarketFrequency, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentCover, type PostContentData, type PostContentFormData, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, 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 TesterEvent, type TesterFormData, type TesterType, type TesterVendor, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UserActivity, type UserActivityEvent, type UserActivityEventType, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, VendorSellingFrequency, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultRegion, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useAppVersionCheck, useCancelSubscription, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useTesterForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, 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 };
|
|
2140
|
+
export { type AdFormData, type AdType, type AdminUpdateResourceType, type AppSettingsFormData, type AppSettingsType, type AssociateType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateAppSettingsFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreatePartnerFormData, type CreatePostFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTesterFormData, type CreateUnregisteredVendorFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumBillingPeriod, EnumChatType, EnumEventDateStatus, EnumEventType, EnumFoodFlavor, EnumFoodType, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPartnerType, EnumPaymentMethod, EnumPostContentType, EnumPostType, 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, OrganizedMarketCount, OrganizerMarketFrequency, type OwnerType, type ParticipantType, type PartnerFormData, type PartnerType, type PaymentInfoType, type PlacePrediction, type PostContentCover, type PostContentData, type PostContentFormData, type PostContentImage, type PostContentList, type PostContentTextarea, type PostContentType, type PostContentVideo, type PostFileInput, type PostFormData, type PostType, 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 TesterEvent, type TesterFormData, type TesterType, type TesterVendor, USER_STORAGE_KEY, type UnregisteredVendorFormData, type UnregisteredVendorInvitationType, type UnregisteredVendorType, type UserActivity, type UserActivityEvent, type UserActivityEventType, type UserFormData, type UserLicenceType, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, VendorSellingFrequency, type VendorType, availableCategories, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultPartnerFormValues, defaultRegion, defaultUnregisteredVendorFormValues, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, licenseNiceNames, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, partnerBasicInfoFields, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, toNZTime, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminResendTesterVerificationEmail, useAdminUpdateResourceType, useAdminUpdateTester, useAppSettingsForm, useAppVersionCheck, useCancelSubscription, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivity, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, usePartnerForm, usePostForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSendChatMessage, useTesterForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdatePartner, useUpdatePost, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUnregisteredVendor, 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
|
@@ -4615,15 +4615,6 @@ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = gql23`
|
|
|
4615
4615
|
}
|
|
4616
4616
|
${USER_FIELDS_FRAGMENT}
|
|
4617
4617
|
`;
|
|
4618
|
-
var APP_VERSION_CHECK_MUTATION = gql23`
|
|
4619
|
-
mutation appVersionCheck($appVersion: String!) {
|
|
4620
|
-
appVersionCheck(appVersion: $appVersion) {
|
|
4621
|
-
isUpToDate
|
|
4622
|
-
latestVersion
|
|
4623
|
-
message
|
|
4624
|
-
}
|
|
4625
|
-
}
|
|
4626
|
-
`;
|
|
4627
4618
|
|
|
4628
4619
|
// src/graphql/hooks/user/hooksMutation.ts
|
|
4629
4620
|
var useCreateUser = () => {
|
|
@@ -4725,12 +4716,6 @@ var useRemoveUserPresentResource = () => {
|
|
|
4725
4716
|
);
|
|
4726
4717
|
return { error, loading, removeUserPresentResource };
|
|
4727
4718
|
};
|
|
4728
|
-
var useAppVersionCheck = () => {
|
|
4729
|
-
const [appVersionCheck, { loading, error }] = useMutation12(
|
|
4730
|
-
APP_VERSION_CHECK_MUTATION
|
|
4731
|
-
);
|
|
4732
|
-
return { appVersionCheck, error, loading };
|
|
4733
|
-
};
|
|
4734
4719
|
|
|
4735
4720
|
// src/graphql/hooks/user/hooksQuery.ts
|
|
4736
4721
|
import { useQuery as useQuery7 } from "@apollo/client";
|
|
@@ -5413,6 +5398,29 @@ var useGetPostsByType = (postType) => {
|
|
|
5413
5398
|
return { error, loading, postsByType: data?.postsByType || [], refetch };
|
|
5414
5399
|
};
|
|
5415
5400
|
|
|
5401
|
+
// src/graphql/hooks/appSettings/hooksMutation.ts
|
|
5402
|
+
import { useMutation as useMutation18 } from "@apollo/client";
|
|
5403
|
+
|
|
5404
|
+
// src/graphql/mutations/appSettings.ts
|
|
5405
|
+
import { gql as gql33 } from "@apollo/client";
|
|
5406
|
+
var APP_VERSION_CHECK_MUTATION = gql33`
|
|
5407
|
+
mutation appVersionCheck($appVersion: String!) {
|
|
5408
|
+
appVersionCheck(appVersion: $appVersion) {
|
|
5409
|
+
isUpToDate
|
|
5410
|
+
latestVersion
|
|
5411
|
+
message
|
|
5412
|
+
}
|
|
5413
|
+
}
|
|
5414
|
+
`;
|
|
5415
|
+
|
|
5416
|
+
// src/graphql/hooks/appSettings/hooksMutation.ts
|
|
5417
|
+
var useAppVersionCheck = () => {
|
|
5418
|
+
const [appVersionCheck, { loading, error }] = useMutation18(
|
|
5419
|
+
APP_VERSION_CHECK_MUTATION
|
|
5420
|
+
);
|
|
5421
|
+
return { appVersionCheck, error, loading };
|
|
5422
|
+
};
|
|
5423
|
+
|
|
5416
5424
|
// src/hooks/useLocationSearch.ts
|
|
5417
5425
|
var handleApiError = (error, message) => {
|
|
5418
5426
|
console.error(message, error);
|
|
@@ -6123,6 +6131,15 @@ var postSchema = yup9.object().shape({
|
|
|
6123
6131
|
title: yup9.string().required()
|
|
6124
6132
|
});
|
|
6125
6133
|
|
|
6134
|
+
// src/yupSchema/appSettings.ts
|
|
6135
|
+
import * as yup10 from "yup";
|
|
6136
|
+
var appSettingsSchema = yup10.object({
|
|
6137
|
+
appVersion: yup10.string().trim().label("App Version").matches(
|
|
6138
|
+
/^\d+\.\d+\.\d+$/,
|
|
6139
|
+
"App Version must be in the format X.Y.Z (e.g. 1.12.50)"
|
|
6140
|
+
).required("App Version is required")
|
|
6141
|
+
});
|
|
6142
|
+
|
|
6126
6143
|
// src/hooks/utils.ts
|
|
6127
6144
|
var defaultLocation = {
|
|
6128
6145
|
city: "",
|
|
@@ -6927,12 +6944,12 @@ import React7 from "react";
|
|
|
6927
6944
|
import { useForm as useForm12 } from "react-hook-form";
|
|
6928
6945
|
|
|
6929
6946
|
// src/yupSchema/contactUs.ts
|
|
6930
|
-
import * as
|
|
6931
|
-
var contactUsSchema =
|
|
6947
|
+
import * as yup11 from "yup";
|
|
6948
|
+
var contactUsSchema = yup11.object().shape({
|
|
6932
6949
|
email: emailRequiredSchema,
|
|
6933
|
-
firstName:
|
|
6934
|
-
lastName:
|
|
6935
|
-
message:
|
|
6950
|
+
firstName: yup11.string().label("First Name").required("First name is required"),
|
|
6951
|
+
lastName: yup11.string().label("Last Name").required("Last name is required"),
|
|
6952
|
+
message: yup11.string().label("Message").required("Message is required")
|
|
6936
6953
|
});
|
|
6937
6954
|
|
|
6938
6955
|
// src/hooks/useContactUsForm.ts
|
|
@@ -7238,6 +7255,49 @@ function usePostForm(data) {
|
|
|
7238
7255
|
};
|
|
7239
7256
|
}
|
|
7240
7257
|
|
|
7258
|
+
// src/hooks/useAppSettingsForm.ts
|
|
7259
|
+
import { yupResolver as yupResolver16 } from "@hookform/resolvers/yup";
|
|
7260
|
+
import React11 from "react";
|
|
7261
|
+
import { useForm as useForm16 } from "react-hook-form";
|
|
7262
|
+
var defaultValues11 = {
|
|
7263
|
+
appVersion: ""
|
|
7264
|
+
};
|
|
7265
|
+
function useAppSettingsForm(data) {
|
|
7266
|
+
const {
|
|
7267
|
+
control,
|
|
7268
|
+
formState,
|
|
7269
|
+
getValues,
|
|
7270
|
+
handleSubmit,
|
|
7271
|
+
reset,
|
|
7272
|
+
setValue,
|
|
7273
|
+
watch
|
|
7274
|
+
} = useForm16({
|
|
7275
|
+
defaultValues: defaultValues11,
|
|
7276
|
+
resolver: yupResolver16(appSettingsSchema)
|
|
7277
|
+
});
|
|
7278
|
+
React11.useEffect(() => {
|
|
7279
|
+
if (data) {
|
|
7280
|
+
reset({
|
|
7281
|
+
appVersion: data.appVersion
|
|
7282
|
+
});
|
|
7283
|
+
} else {
|
|
7284
|
+
reset(defaultValues11);
|
|
7285
|
+
}
|
|
7286
|
+
}, [data]);
|
|
7287
|
+
const { appVersion } = getValues();
|
|
7288
|
+
return {
|
|
7289
|
+
control,
|
|
7290
|
+
fields: {
|
|
7291
|
+
appVersion
|
|
7292
|
+
},
|
|
7293
|
+
formState,
|
|
7294
|
+
handleSubmit,
|
|
7295
|
+
reset,
|
|
7296
|
+
setValue,
|
|
7297
|
+
watch
|
|
7298
|
+
};
|
|
7299
|
+
}
|
|
7300
|
+
|
|
7241
7301
|
// src/storage/index.ts
|
|
7242
7302
|
var SAVED_PASSWORD_KEY = "savedPassword";
|
|
7243
7303
|
var SAVED_EMAIL_KEY = "savedEmail";
|
|
@@ -7394,6 +7454,7 @@ export {
|
|
|
7394
7454
|
useAdminResendTesterVerificationEmail,
|
|
7395
7455
|
useAdminUpdateResourceType,
|
|
7396
7456
|
useAdminUpdateTester,
|
|
7457
|
+
useAppSettingsForm,
|
|
7397
7458
|
useAppVersionCheck,
|
|
7398
7459
|
useCancelSubscription,
|
|
7399
7460
|
useContactUs,
|