@timardex/cluemart-shared 1.3.45 → 1.3.47
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-B8Belf-h.d.ts → auth-CmCrmpRo.d.ts} +1 -1
- package/dist/{auth-CvNBSPXa.d.mts → auth-svPMD8ug.d.mts} +1 -1
- package/dist/{chunk-FGYCES2I.mjs → chunk-6DQPQJ2R.mjs} +12 -2
- package/dist/chunk-6DQPQJ2R.mjs.map +1 -0
- package/dist/formFields/index.cjs +9 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +1 -1
- package/dist/{global-DM9eKgbE.d.ts → global-BylKHE-S.d.ts} +1 -1
- package/dist/{global-BN1zcCyz.d.mts → global-_ClapcHu.d.mts} +1 -1
- package/dist/graphql/index.cjs +57 -39
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +27 -22
- package/dist/graphql/index.d.ts +27 -22
- package/dist/graphql/index.mjs +56 -39
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +9 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.cjs +68 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +26 -20
- package/dist/index.d.ts +26 -20
- package/dist/index.mjs +66 -39
- package/dist/index.mjs.map +1 -1
- package/dist/{post-Dwg8-Ybg.d.ts → post-ChjjnO9v.d.ts} +1 -1
- package/dist/{post-CdrU9ts5.d.mts → post-zflSHvi5.d.mts} +1 -1
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/utils/index.cjs +11 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +4 -3
- package/dist/utils/index.d.ts +4 -3
- package/dist/utils/index.mjs +3 -1
- package/package.json +1 -1
- package/dist/chunk-FGYCES2I.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1583,25 +1583,6 @@ declare const useRemoveUserFavouriteResource: () => {
|
|
|
1583
1583
|
loading: boolean;
|
|
1584
1584
|
removeUserFavouriteResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1585
1585
|
};
|
|
1586
|
-
declare const useSelectPackage: () => {
|
|
1587
|
-
error: _apollo_client.ApolloError | undefined;
|
|
1588
|
-
loading: boolean;
|
|
1589
|
-
selectPackage: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1590
|
-
selectPackage: {
|
|
1591
|
-
checkoutUrl?: string;
|
|
1592
|
-
userId: string;
|
|
1593
|
-
message: string;
|
|
1594
|
-
licences: UserLicenceType[];
|
|
1595
|
-
};
|
|
1596
|
-
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1597
|
-
selectPackage: {
|
|
1598
|
-
checkoutUrl?: string;
|
|
1599
|
-
userId: string;
|
|
1600
|
-
message: string;
|
|
1601
|
-
licences: UserLicenceType[];
|
|
1602
|
-
};
|
|
1603
|
-
}>>;
|
|
1604
|
-
};
|
|
1605
1586
|
declare const useAddUserInterestResource: () => {
|
|
1606
1587
|
addUserInterestResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1607
1588
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1778,6 +1759,30 @@ declare const useUpdateSubscriptionPlan: () => {
|
|
|
1778
1759
|
loading: boolean;
|
|
1779
1760
|
updateSubscriptionPlan: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1780
1761
|
};
|
|
1762
|
+
declare const useCreateCustomerPortal: () => {
|
|
1763
|
+
createCustomerPortal: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1764
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1765
|
+
loading: boolean;
|
|
1766
|
+
};
|
|
1767
|
+
declare const useSelectPackage: () => {
|
|
1768
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1769
|
+
loading: boolean;
|
|
1770
|
+
selectPackage: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1771
|
+
selectPackage: {
|
|
1772
|
+
checkoutUrl?: string;
|
|
1773
|
+
userId: string;
|
|
1774
|
+
message: string;
|
|
1775
|
+
licences: UserLicenceType[];
|
|
1776
|
+
};
|
|
1777
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1778
|
+
selectPackage: {
|
|
1779
|
+
checkoutUrl?: string;
|
|
1780
|
+
userId: string;
|
|
1781
|
+
message: string;
|
|
1782
|
+
licences: UserLicenceType[];
|
|
1783
|
+
};
|
|
1784
|
+
}>>;
|
|
1785
|
+
};
|
|
1781
1786
|
|
|
1782
1787
|
declare const useGetSubscriptionStatus: () => {
|
|
1783
1788
|
data: SubscriptionStatusData | undefined;
|
|
@@ -2068,5 +2073,6 @@ declare const availableRegionTypes: EnumRegions[];
|
|
|
2068
2073
|
declare const availableRegionOptions: OptionItem[];
|
|
2069
2074
|
declare const paymentMethodOptions: OptionItem[];
|
|
2070
2075
|
declare function normalizeUrl(url: string): string;
|
|
2076
|
+
declare const licenseNiceNames: Record<EnumUserLicence, string>;
|
|
2071
2077
|
|
|
2072
|
-
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 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 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, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, 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, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, 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, useGetResourceActivities, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, 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, 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 };
|
|
2078
|
+
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 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 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, 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, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, 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, useGetResourceActivities, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, 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, 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
|
@@ -1583,25 +1583,6 @@ declare const useRemoveUserFavouriteResource: () => {
|
|
|
1583
1583
|
loading: boolean;
|
|
1584
1584
|
removeUserFavouriteResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1585
1585
|
};
|
|
1586
|
-
declare const useSelectPackage: () => {
|
|
1587
|
-
error: _apollo_client.ApolloError | undefined;
|
|
1588
|
-
loading: boolean;
|
|
1589
|
-
selectPackage: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1590
|
-
selectPackage: {
|
|
1591
|
-
checkoutUrl?: string;
|
|
1592
|
-
userId: string;
|
|
1593
|
-
message: string;
|
|
1594
|
-
licences: UserLicenceType[];
|
|
1595
|
-
};
|
|
1596
|
-
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1597
|
-
selectPackage: {
|
|
1598
|
-
checkoutUrl?: string;
|
|
1599
|
-
userId: string;
|
|
1600
|
-
message: string;
|
|
1601
|
-
licences: UserLicenceType[];
|
|
1602
|
-
};
|
|
1603
|
-
}>>;
|
|
1604
|
-
};
|
|
1605
1586
|
declare const useAddUserInterestResource: () => {
|
|
1606
1587
|
addUserInterestResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1607
1588
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1778,6 +1759,30 @@ declare const useUpdateSubscriptionPlan: () => {
|
|
|
1778
1759
|
loading: boolean;
|
|
1779
1760
|
updateSubscriptionPlan: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1780
1761
|
};
|
|
1762
|
+
declare const useCreateCustomerPortal: () => {
|
|
1763
|
+
createCustomerPortal: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1764
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1765
|
+
loading: boolean;
|
|
1766
|
+
};
|
|
1767
|
+
declare const useSelectPackage: () => {
|
|
1768
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1769
|
+
loading: boolean;
|
|
1770
|
+
selectPackage: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1771
|
+
selectPackage: {
|
|
1772
|
+
checkoutUrl?: string;
|
|
1773
|
+
userId: string;
|
|
1774
|
+
message: string;
|
|
1775
|
+
licences: UserLicenceType[];
|
|
1776
|
+
};
|
|
1777
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1778
|
+
selectPackage: {
|
|
1779
|
+
checkoutUrl?: string;
|
|
1780
|
+
userId: string;
|
|
1781
|
+
message: string;
|
|
1782
|
+
licences: UserLicenceType[];
|
|
1783
|
+
};
|
|
1784
|
+
}>>;
|
|
1785
|
+
};
|
|
1781
1786
|
|
|
1782
1787
|
declare const useGetSubscriptionStatus: () => {
|
|
1783
1788
|
data: SubscriptionStatusData | undefined;
|
|
@@ -2068,5 +2073,6 @@ declare const availableRegionTypes: EnumRegions[];
|
|
|
2068
2073
|
declare const availableRegionOptions: OptionItem[];
|
|
2069
2074
|
declare const paymentMethodOptions: OptionItem[];
|
|
2070
2075
|
declare function normalizeUrl(url: string): string;
|
|
2076
|
+
declare const licenseNiceNames: Record<EnumUserLicence, string>;
|
|
2071
2077
|
|
|
2072
|
-
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 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 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, defaultVendorFormValues, defaultVendorInfoFormValues, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, 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, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, 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, useGetResourceActivities, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, 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, 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 };
|
|
2078
|
+
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 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 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, 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, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteTester, 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, useGetResourceActivities, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, 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, 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
|
@@ -490,6 +490,15 @@ function normalizeUrl(url) {
|
|
|
490
490
|
}
|
|
491
491
|
return url;
|
|
492
492
|
}
|
|
493
|
+
var licenseNiceNames = {
|
|
494
|
+
["pro_event" /* PRO_EVENT */]: "Pro Event",
|
|
495
|
+
["pro_vendor" /* PRO_VENDOR */]: "Pro Stallholder",
|
|
496
|
+
["standard_event" /* STANDARD_EVENT */]: "Standard Event",
|
|
497
|
+
["standard_vendor" /* STANDARD_VENDOR */]: "Standard Stallholder",
|
|
498
|
+
["pro_plus_event" /* PRO_PLUS_EVENT */]: "Pro+ Event",
|
|
499
|
+
["pro_plus_vendor" /* PRO_PLUS_VENDOR */]: "Pro+ Stallholder",
|
|
500
|
+
["standard_partner" /* STANDARD_PARTNER */]: "Partner"
|
|
501
|
+
};
|
|
493
502
|
|
|
494
503
|
// src/formFields/vendor/vendorInfo.ts
|
|
495
504
|
var vendorElectricity = {
|
|
@@ -4447,29 +4456,6 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = gql23`
|
|
|
4447
4456
|
}
|
|
4448
4457
|
${USER_FIELDS_FRAGMENT}
|
|
4449
4458
|
`;
|
|
4450
|
-
var SELECT_PACKAGE_MUTATION = gql23`
|
|
4451
|
-
mutation selectPackage(
|
|
4452
|
-
$billingPeriod: BillingPeriodEnumType
|
|
4453
|
-
$removedLicence: LicencesEnumType
|
|
4454
|
-
$selectedLicence: LicencesEnumType!
|
|
4455
|
-
$useStripe: Boolean
|
|
4456
|
-
) {
|
|
4457
|
-
selectPackage(
|
|
4458
|
-
billingPeriod: $billingPeriod
|
|
4459
|
-
removedLicence: $removedLicence
|
|
4460
|
-
selectedLicence: $selectedLicence
|
|
4461
|
-
useStripe: $useStripe
|
|
4462
|
-
) {
|
|
4463
|
-
checkoutUrl
|
|
4464
|
-
licences {
|
|
4465
|
-
...LicenceFields
|
|
4466
|
-
}
|
|
4467
|
-
userId
|
|
4468
|
-
message
|
|
4469
|
-
}
|
|
4470
|
-
}
|
|
4471
|
-
${LICENCE_FIELDS_FRAGMENT}
|
|
4472
|
-
`;
|
|
4473
4459
|
var ADD_USER_INTEREST_RESOURCE_MUTATION = gql23`
|
|
4474
4460
|
mutation addUserInterestResource($input: UserActivityInputType!) {
|
|
4475
4461
|
addUserInterestResource(input: $input) {
|
|
@@ -4568,21 +4554,6 @@ var useRemoveUserFavouriteResource = () => {
|
|
|
4568
4554
|
);
|
|
4569
4555
|
return { error, loading, removeUserFavouriteResource };
|
|
4570
4556
|
};
|
|
4571
|
-
var useSelectPackage = () => {
|
|
4572
|
-
const [selectPackage, { loading, error }] = useMutation12(SELECT_PACKAGE_MUTATION, {
|
|
4573
|
-
awaitRefetchQueries: true,
|
|
4574
|
-
refetchQueries: (mutationResult) => {
|
|
4575
|
-
const userId = mutationResult?.data?.selectPackage?.userId;
|
|
4576
|
-
if (!userId) return [];
|
|
4577
|
-
return [
|
|
4578
|
-
{ query: GET_USER, variables: { _id: userId } },
|
|
4579
|
-
{ query: GET_USER_EVENTS },
|
|
4580
|
-
{ query: GET_USER_VENDORS }
|
|
4581
|
-
];
|
|
4582
|
-
}
|
|
4583
|
-
});
|
|
4584
|
-
return { error, loading, selectPackage };
|
|
4585
|
-
};
|
|
4586
4557
|
var useAddUserInterestResource = () => {
|
|
4587
4558
|
const [addUserInterestResource, { loading, error }] = useMutation12(
|
|
4588
4559
|
ADD_USER_INTEREST_RESOURCE_MUTATION,
|
|
@@ -4965,7 +4936,10 @@ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = gql28`
|
|
|
4965
4936
|
$newPlanId: LicencesEnumType!
|
|
4966
4937
|
$billingPeriod: BillingPeriodEnumType
|
|
4967
4938
|
) {
|
|
4968
|
-
updateSubscriptionPlan(
|
|
4939
|
+
updateSubscriptionPlan(
|
|
4940
|
+
newPlanId: $newPlanId
|
|
4941
|
+
billingPeriod: $billingPeriod
|
|
4942
|
+
) {
|
|
4969
4943
|
subscriptionId
|
|
4970
4944
|
status
|
|
4971
4945
|
priceId
|
|
@@ -4973,6 +4947,36 @@ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = gql28`
|
|
|
4973
4947
|
}
|
|
4974
4948
|
}
|
|
4975
4949
|
`;
|
|
4950
|
+
var CREATE_CUSTOMER_PORTAL = gql28`
|
|
4951
|
+
mutation createCustomerPortal($returnUrl: String) {
|
|
4952
|
+
createCustomerPortal(returnUrl: $returnUrl) {
|
|
4953
|
+
portalUrl
|
|
4954
|
+
}
|
|
4955
|
+
}
|
|
4956
|
+
`;
|
|
4957
|
+
var SELECT_PACKAGE_MUTATION = gql28`
|
|
4958
|
+
mutation selectPackage(
|
|
4959
|
+
$billingPeriod: BillingPeriodEnumType
|
|
4960
|
+
$removedLicence: LicencesEnumType
|
|
4961
|
+
$selectedLicence: LicencesEnumType!
|
|
4962
|
+
$useStripe: Boolean
|
|
4963
|
+
) {
|
|
4964
|
+
selectPackage(
|
|
4965
|
+
billingPeriod: $billingPeriod
|
|
4966
|
+
removedLicence: $removedLicence
|
|
4967
|
+
selectedLicence: $selectedLicence
|
|
4968
|
+
useStripe: $useStripe
|
|
4969
|
+
) {
|
|
4970
|
+
checkoutUrl
|
|
4971
|
+
licences {
|
|
4972
|
+
...LicenceFields
|
|
4973
|
+
}
|
|
4974
|
+
userId
|
|
4975
|
+
message
|
|
4976
|
+
}
|
|
4977
|
+
}
|
|
4978
|
+
${LICENCE_FIELDS_FRAGMENT}
|
|
4979
|
+
`;
|
|
4976
4980
|
|
|
4977
4981
|
// src/graphql/hooks/stripe/hooksMutation.ts
|
|
4978
4982
|
var useCreateCheckoutSession = () => {
|
|
@@ -4993,6 +4997,27 @@ var useUpdateSubscriptionPlan = () => {
|
|
|
4993
4997
|
);
|
|
4994
4998
|
return { error, loading, updateSubscriptionPlan };
|
|
4995
4999
|
};
|
|
5000
|
+
var useCreateCustomerPortal = () => {
|
|
5001
|
+
const [createCustomerPortal, { loading, error }] = useMutation15(
|
|
5002
|
+
CREATE_CUSTOMER_PORTAL
|
|
5003
|
+
);
|
|
5004
|
+
return { createCustomerPortal, error, loading };
|
|
5005
|
+
};
|
|
5006
|
+
var useSelectPackage = () => {
|
|
5007
|
+
const [selectPackage, { loading, error }] = useMutation15(SELECT_PACKAGE_MUTATION, {
|
|
5008
|
+
awaitRefetchQueries: true,
|
|
5009
|
+
refetchQueries: (mutationResult) => {
|
|
5010
|
+
const userId = mutationResult?.data?.selectPackage?.userId;
|
|
5011
|
+
if (!userId) return [];
|
|
5012
|
+
return [
|
|
5013
|
+
{ query: GET_USER, variables: { _id: userId } },
|
|
5014
|
+
{ query: GET_USER_EVENTS },
|
|
5015
|
+
{ query: GET_USER_VENDORS }
|
|
5016
|
+
];
|
|
5017
|
+
}
|
|
5018
|
+
});
|
|
5019
|
+
return { error, loading, selectPackage };
|
|
5020
|
+
};
|
|
4996
5021
|
|
|
4997
5022
|
// src/graphql/hooks/stripe/hooksQuery.ts
|
|
4998
5023
|
import { useQuery as useQuery10 } from "@apollo/client";
|
|
@@ -7202,6 +7227,7 @@ export {
|
|
|
7202
7227
|
getCurrentAndFutureDates,
|
|
7203
7228
|
globalDefaultValues,
|
|
7204
7229
|
isFutureDatesBeforeThreshold,
|
|
7230
|
+
licenseNiceNames,
|
|
7205
7231
|
lightColors,
|
|
7206
7232
|
loginFields,
|
|
7207
7233
|
mapArrayToOptions,
|
|
@@ -7243,6 +7269,7 @@ export {
|
|
|
7243
7269
|
useCreateAd,
|
|
7244
7270
|
useCreateBulkNotifications,
|
|
7245
7271
|
useCreateCheckoutSession,
|
|
7272
|
+
useCreateCustomerPortal,
|
|
7246
7273
|
useCreateEvent,
|
|
7247
7274
|
useCreateEventInfo,
|
|
7248
7275
|
useCreatePartner,
|