@timardex/cluemart-shared 1.2.24 → 1.2.25
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/{ad-BsEtu052.d.mts → ad-Bv5fLkN0.d.mts} +9 -13
- package/dist/{ad-Dg1bpjxd.d.ts → ad-DDPNpx02.d.ts} +9 -13
- package/dist/{auth-B-dG_y16.d.mts → auth-BVGs-5Vm.d.mts} +1 -13
- package/dist/{auth-Ba-VYR0Y.d.ts → auth-BhUIvvZ2.d.ts} +1 -13
- package/dist/graphql/index.cjs +25 -142
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +3 -13
- package/dist/graphql/index.d.ts +3 -13
- package/dist/graphql/index.mjs +25 -140
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +25 -142
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -35
- package/dist/index.d.ts +10 -35
- package/dist/index.mjs +25 -140
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceActivities-N7iowh1a.d.ts → resourceActivities-DWC-Btmf.d.ts} +1 -0
- package/dist/{resourceActivities-DDe473dL.d.mts → resourceActivities-DoLx4lPo.d.mts} +1 -0
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -484,18 +484,6 @@ type RegisterFormData = {
|
|
|
484
484
|
termsAgreement?: TermsAgreement | null;
|
|
485
485
|
};
|
|
486
486
|
type CreateRegisterFormData = CreateFormData<RegisterFormData>;
|
|
487
|
-
type GoogleSignInFormData = {
|
|
488
|
-
idToken: string;
|
|
489
|
-
platform?: EnumOSPlatform;
|
|
490
|
-
scopes?: string[] | null;
|
|
491
|
-
};
|
|
492
|
-
type GoogleRegisterFormData = {
|
|
493
|
-
idToken: string;
|
|
494
|
-
platform?: EnumOSPlatform;
|
|
495
|
-
preferredRegion: string;
|
|
496
|
-
scopes?: string[] | null;
|
|
497
|
-
termsAgreement: TermsAgreement;
|
|
498
|
-
};
|
|
499
487
|
type RequestPasswordResetFormData = {
|
|
500
488
|
email: string;
|
|
501
489
|
};
|
|
@@ -623,28 +611,24 @@ type UserFormData = {
|
|
|
623
611
|
termsAgreement?: TermsAgreement | null;
|
|
624
612
|
};
|
|
625
613
|
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
614
|
+
type UserActivityEvent = {
|
|
615
|
+
resourceId: string;
|
|
616
|
+
startDate: string;
|
|
617
|
+
startTime: string;
|
|
618
|
+
};
|
|
626
619
|
type UserActivity = {
|
|
627
620
|
favourites: {
|
|
628
621
|
events: string[];
|
|
629
622
|
vendors: string[];
|
|
630
623
|
};
|
|
631
624
|
going: {
|
|
632
|
-
events:
|
|
633
|
-
resourceId: string;
|
|
634
|
-
startDate: string;
|
|
635
|
-
}[];
|
|
625
|
+
events: UserActivityEvent[];
|
|
636
626
|
};
|
|
637
627
|
interested: {
|
|
638
|
-
events:
|
|
639
|
-
resourceId: string;
|
|
640
|
-
startDate: string;
|
|
641
|
-
}[];
|
|
628
|
+
events: UserActivityEvent[];
|
|
642
629
|
};
|
|
643
630
|
present: {
|
|
644
|
-
events:
|
|
645
|
-
resourceId: string;
|
|
646
|
-
startDate: string;
|
|
647
|
-
}[];
|
|
631
|
+
events: UserActivityEvent[];
|
|
648
632
|
};
|
|
649
633
|
};
|
|
650
634
|
interface UserType {
|
|
@@ -732,6 +716,7 @@ type ResourceActivityEntry = {
|
|
|
732
716
|
coordinates: number[];
|
|
733
717
|
} | null;
|
|
734
718
|
startDate?: string | null;
|
|
719
|
+
startTime?: string | null;
|
|
735
720
|
timestamp: Date;
|
|
736
721
|
userAgent: EnumOSPlatform;
|
|
737
722
|
userId?: string | null;
|
|
@@ -825,16 +810,6 @@ declare const useLogin: () => {
|
|
|
825
810
|
loading: boolean;
|
|
826
811
|
login: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
827
812
|
};
|
|
828
|
-
declare const useGoogleSignIn: () => {
|
|
829
|
-
error: _apollo_client.ApolloError | undefined;
|
|
830
|
-
loading: boolean;
|
|
831
|
-
googleSignIn: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
832
|
-
};
|
|
833
|
-
declare const useGoogleRegister: () => {
|
|
834
|
-
error: _apollo_client.ApolloError | undefined;
|
|
835
|
-
loading: boolean;
|
|
836
|
-
googleRegister: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
837
|
-
};
|
|
838
813
|
declare const useLogout: () => {
|
|
839
814
|
error: _apollo_client.ApolloError | undefined;
|
|
840
815
|
loading: boolean;
|
|
@@ -1518,4 +1493,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1518
1493
|
declare const paymentMethodOptions: OptionItem[];
|
|
1519
1494
|
declare function normalizeUrl(url: string): string;
|
|
1520
1495
|
|
|
1521
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type
|
|
1496
|
+
export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type Subcategory, type SubcategoryItems, type TermsAgreement, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserActivity, type UserActivityEvent, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, type VendorType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, 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
|
@@ -484,18 +484,6 @@ type RegisterFormData = {
|
|
|
484
484
|
termsAgreement?: TermsAgreement | null;
|
|
485
485
|
};
|
|
486
486
|
type CreateRegisterFormData = CreateFormData<RegisterFormData>;
|
|
487
|
-
type GoogleSignInFormData = {
|
|
488
|
-
idToken: string;
|
|
489
|
-
platform?: EnumOSPlatform;
|
|
490
|
-
scopes?: string[] | null;
|
|
491
|
-
};
|
|
492
|
-
type GoogleRegisterFormData = {
|
|
493
|
-
idToken: string;
|
|
494
|
-
platform?: EnumOSPlatform;
|
|
495
|
-
preferredRegion: string;
|
|
496
|
-
scopes?: string[] | null;
|
|
497
|
-
termsAgreement: TermsAgreement;
|
|
498
|
-
};
|
|
499
487
|
type RequestPasswordResetFormData = {
|
|
500
488
|
email: string;
|
|
501
489
|
};
|
|
@@ -623,28 +611,24 @@ type UserFormData = {
|
|
|
623
611
|
termsAgreement?: TermsAgreement | null;
|
|
624
612
|
};
|
|
625
613
|
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
614
|
+
type UserActivityEvent = {
|
|
615
|
+
resourceId: string;
|
|
616
|
+
startDate: string;
|
|
617
|
+
startTime: string;
|
|
618
|
+
};
|
|
626
619
|
type UserActivity = {
|
|
627
620
|
favourites: {
|
|
628
621
|
events: string[];
|
|
629
622
|
vendors: string[];
|
|
630
623
|
};
|
|
631
624
|
going: {
|
|
632
|
-
events:
|
|
633
|
-
resourceId: string;
|
|
634
|
-
startDate: string;
|
|
635
|
-
}[];
|
|
625
|
+
events: UserActivityEvent[];
|
|
636
626
|
};
|
|
637
627
|
interested: {
|
|
638
|
-
events:
|
|
639
|
-
resourceId: string;
|
|
640
|
-
startDate: string;
|
|
641
|
-
}[];
|
|
628
|
+
events: UserActivityEvent[];
|
|
642
629
|
};
|
|
643
630
|
present: {
|
|
644
|
-
events:
|
|
645
|
-
resourceId: string;
|
|
646
|
-
startDate: string;
|
|
647
|
-
}[];
|
|
631
|
+
events: UserActivityEvent[];
|
|
648
632
|
};
|
|
649
633
|
};
|
|
650
634
|
interface UserType {
|
|
@@ -732,6 +716,7 @@ type ResourceActivityEntry = {
|
|
|
732
716
|
coordinates: number[];
|
|
733
717
|
} | null;
|
|
734
718
|
startDate?: string | null;
|
|
719
|
+
startTime?: string | null;
|
|
735
720
|
timestamp: Date;
|
|
736
721
|
userAgent: EnumOSPlatform;
|
|
737
722
|
userId?: string | null;
|
|
@@ -825,16 +810,6 @@ declare const useLogin: () => {
|
|
|
825
810
|
loading: boolean;
|
|
826
811
|
login: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
827
812
|
};
|
|
828
|
-
declare const useGoogleSignIn: () => {
|
|
829
|
-
error: _apollo_client.ApolloError | undefined;
|
|
830
|
-
loading: boolean;
|
|
831
|
-
googleSignIn: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
832
|
-
};
|
|
833
|
-
declare const useGoogleRegister: () => {
|
|
834
|
-
error: _apollo_client.ApolloError | undefined;
|
|
835
|
-
loading: boolean;
|
|
836
|
-
googleRegister: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
837
|
-
};
|
|
838
813
|
declare const useLogout: () => {
|
|
839
814
|
error: _apollo_client.ApolloError | undefined;
|
|
840
815
|
loading: boolean;
|
|
@@ -1518,4 +1493,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1518
1493
|
declare const paymentMethodOptions: OptionItem[];
|
|
1519
1494
|
declare function normalizeUrl(url: string): string;
|
|
1520
1495
|
|
|
1521
|
-
export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type
|
|
1496
|
+
export { type AdFormData, type AdType, type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateAdFormData, type CreateBulkNotificationInput, type CreateContactUsFormData, type CreateEventFormData, type CreateEventInfoFormData, type CreateFormData, type CreateLoginFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type CreateVendorFormData, type CreateVendorInfoFormData, type DateTimeType, type DateTimeWithPriceType, type DeviceInfo, EnumActivity, EnumAdShowOn, EnumAdStatus, EnumAdStyle, EnumAdType, EnumChatType, EnumEventType, EnumFoodFlavor, EnumInviteStatus, EnumNotificationResourceType, EnumNotificationType, EnumOSPlatform, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumSocialMedia, EnumUserLicence, EnumUserRole, EnumVendorType, type EventFormData, type EventInfoFormData, type EventInfoType, type EventType, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type NotificationCount, type NotificationDataType, type NotificationType, type Nullable, type OptionItem, type OwnerType, type ParticipantType, type PartnerType, type PaymentInfoType, type PlacePrediction, type PosterInputType, type PosterUsageType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceActivityEntry, type ResourceActivityInputType, type ResourceActivityType, type ResourceConnectionsType, type ResourceContactDetailsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SocialMediaType, type StallType, type Subcategory, type SubcategoryItems, type TermsAgreement, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserActivity, type UserActivityEvent, type UserFormData, type UserType, type ValidateVerificationTokenFormData, type VendorAttributes, type VendorFormData, type VendorInfoFormData, type VendorInfoType, type VendorLocation, type VendorMenuType, type VendorType, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, companyContactFields, contactUsFields, darkColors, dateFormat, defaultEventFormValues, defaultEventInfoFormValues, defaultRegion, defaultVendorFormValues, defaultVendorInfoFormValues, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, fonts, foodFlavourOptions, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, productLabelGroups, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAdForm, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useEventForm, useEventInfoForm, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLocationSearch, useLogin, useLoginForm, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useTestersForm, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, 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
|
@@ -2037,18 +2037,21 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = gql2`
|
|
|
2037
2037
|
events {
|
|
2038
2038
|
resourceId
|
|
2039
2039
|
startDate
|
|
2040
|
+
startTime
|
|
2040
2041
|
}
|
|
2041
2042
|
}
|
|
2042
2043
|
interested {
|
|
2043
2044
|
events {
|
|
2044
2045
|
resourceId
|
|
2045
2046
|
startDate
|
|
2047
|
+
startTime
|
|
2046
2048
|
}
|
|
2047
2049
|
}
|
|
2048
2050
|
present {
|
|
2049
2051
|
events {
|
|
2050
2052
|
resourceId
|
|
2051
2053
|
startDate
|
|
2054
|
+
startTime
|
|
2052
2055
|
}
|
|
2053
2056
|
}
|
|
2054
2057
|
}
|
|
@@ -2552,32 +2555,6 @@ var LOGIN_MUTATION = gql5`
|
|
|
2552
2555
|
}
|
|
2553
2556
|
${USER_FIELDS_FRAGMENT}
|
|
2554
2557
|
`;
|
|
2555
|
-
var GOOGLE_SIGN_IN_MUTATION = gql5`
|
|
2556
|
-
mutation googleSignIn($input: GoogleSignInInputType!) {
|
|
2557
|
-
googleSignIn(input: $input) {
|
|
2558
|
-
message
|
|
2559
|
-
refreshToken
|
|
2560
|
-
token
|
|
2561
|
-
user {
|
|
2562
|
-
...UserFields
|
|
2563
|
-
}
|
|
2564
|
-
}
|
|
2565
|
-
}
|
|
2566
|
-
${USER_FIELDS_FRAGMENT}
|
|
2567
|
-
`;
|
|
2568
|
-
var GOOGLE_REGISTER_MUTATION = gql5`
|
|
2569
|
-
mutation googleRegister($input: GoogleRegisterInputType!) {
|
|
2570
|
-
googleRegister(input: $input) {
|
|
2571
|
-
message
|
|
2572
|
-
refreshToken
|
|
2573
|
-
token
|
|
2574
|
-
user {
|
|
2575
|
-
...UserFields
|
|
2576
|
-
}
|
|
2577
|
-
}
|
|
2578
|
-
}
|
|
2579
|
-
${USER_FIELDS_FRAGMENT}
|
|
2580
|
-
`;
|
|
2581
2558
|
var LOGOUT_MUTATION = gql5`
|
|
2582
2559
|
mutation logout {
|
|
2583
2560
|
logout {
|
|
@@ -2626,18 +2603,6 @@ var useLogin = () => {
|
|
|
2626
2603
|
const [login, { loading, error }] = useMutation2(LOGIN_MUTATION);
|
|
2627
2604
|
return { error, loading, login };
|
|
2628
2605
|
};
|
|
2629
|
-
var useGoogleSignIn = () => {
|
|
2630
|
-
const [googleSignIn, { loading, error }] = useMutation2(
|
|
2631
|
-
GOOGLE_SIGN_IN_MUTATION
|
|
2632
|
-
);
|
|
2633
|
-
return { error, loading, googleSignIn };
|
|
2634
|
-
};
|
|
2635
|
-
var useGoogleRegister = () => {
|
|
2636
|
-
const [googleRegister, { loading, error }] = useMutation2(
|
|
2637
|
-
GOOGLE_REGISTER_MUTATION
|
|
2638
|
-
);
|
|
2639
|
-
return { error, loading, googleRegister };
|
|
2640
|
-
};
|
|
2641
2606
|
var useLogout = () => {
|
|
2642
2607
|
const [logout, { loading, error }] = useMutation2(LOGOUT_MUTATION);
|
|
2643
2608
|
return { error, loading, logout };
|
|
@@ -3002,21 +2967,21 @@ var GET_USER_ACTIVITIES = gql11`
|
|
|
3002
2967
|
var useCreateEvent = () => {
|
|
3003
2968
|
const [createEvent, { loading, error }] = useMutation5(CREATE_EVENT_MUTATION, {
|
|
3004
2969
|
awaitRefetchQueries: true,
|
|
3005
|
-
refetchQueries: [{
|
|
2970
|
+
refetchQueries: [{ query: GET_USER_EVENTS }]
|
|
3006
2971
|
});
|
|
3007
2972
|
return { createEvent, error, loading };
|
|
3008
2973
|
};
|
|
3009
2974
|
var useUpdateEvent = () => {
|
|
3010
2975
|
const [updateEvent, { loading, error }] = useMutation5(UPDATE_EVENT_MUTATION, {
|
|
3011
2976
|
awaitRefetchQueries: true,
|
|
3012
|
-
refetchQueries: [{
|
|
2977
|
+
refetchQueries: [{ query: GET_USER_EVENTS }]
|
|
3013
2978
|
});
|
|
3014
2979
|
return { error, loading, updateEvent };
|
|
3015
2980
|
};
|
|
3016
2981
|
var useDeleteEvent = () => {
|
|
3017
2982
|
const [deleteEvent, { loading, error }] = useMutation5(DELETE_EVENT_MUTATION, {
|
|
3018
2983
|
awaitRefetchQueries: true,
|
|
3019
|
-
refetchQueries: [{
|
|
2984
|
+
refetchQueries: [{ query: GET_USER_EVENTS }]
|
|
3020
2985
|
});
|
|
3021
2986
|
return { deleteEvent, error, loading };
|
|
3022
2987
|
};
|
|
@@ -3035,11 +3000,9 @@ var useCreateEventInfo = () => {
|
|
|
3035
3000
|
// Pass the eventId for refetching
|
|
3036
3001
|
},
|
|
3037
3002
|
{
|
|
3038
|
-
fetchPolicy: "network-only",
|
|
3039
3003
|
query: GET_USER_EVENTS
|
|
3040
3004
|
},
|
|
3041
3005
|
{
|
|
3042
|
-
fetchPolicy: "no-cache",
|
|
3043
3006
|
query: GET_EVENT,
|
|
3044
3007
|
variables: { _id: eventId }
|
|
3045
3008
|
}
|
|
@@ -3221,7 +3184,6 @@ var useMarkNotificationRead = () => {
|
|
|
3221
3184
|
const [markNotificationRead, { loading, error }] = useMutation6(
|
|
3222
3185
|
MARK_NOTIFICATION_READ,
|
|
3223
3186
|
{
|
|
3224
|
-
fetchPolicy: "no-cache",
|
|
3225
3187
|
refetchQueries: [
|
|
3226
3188
|
{
|
|
3227
3189
|
query: GET_USER_NOTIFICATIONS
|
|
@@ -3238,7 +3200,6 @@ var useMarkAllNotificationsRead = () => {
|
|
|
3238
3200
|
const [markAllNotificationsRead, { loading, error }] = useMutation6(
|
|
3239
3201
|
MARK_ALL_NOTIFICATIONS_READ,
|
|
3240
3202
|
{
|
|
3241
|
-
fetchPolicy: "no-cache",
|
|
3242
3203
|
refetchQueries: [
|
|
3243
3204
|
{
|
|
3244
3205
|
query: GET_USER_NOTIFICATIONS
|
|
@@ -3255,7 +3216,6 @@ var useDeleteNotification = () => {
|
|
|
3255
3216
|
const [deleteNotification, { loading, error }] = useMutation6(
|
|
3256
3217
|
DELETE_NOTIFICATION,
|
|
3257
3218
|
{
|
|
3258
|
-
fetchPolicy: "no-cache",
|
|
3259
3219
|
refetchQueries: [
|
|
3260
3220
|
{
|
|
3261
3221
|
query: GET_USER_NOTIFICATIONS
|
|
@@ -3272,7 +3232,6 @@ var useDeleteAllNotifications = () => {
|
|
|
3272
3232
|
const [deleteAllNotifications, { loading, error }] = useMutation6(
|
|
3273
3233
|
DELETE_ALL_NOTIFICATIONS,
|
|
3274
3234
|
{
|
|
3275
|
-
fetchPolicy: "no-cache",
|
|
3276
3235
|
refetchQueries: [
|
|
3277
3236
|
{
|
|
3278
3237
|
query: GET_USER_NOTIFICATIONS
|
|
@@ -3380,7 +3339,6 @@ var useCreatePoster = () => {
|
|
|
3380
3339
|
const [createPoster, { loading, error }] = useMutation7(
|
|
3381
3340
|
CREATE_POSTER_MUTATION,
|
|
3382
3341
|
{
|
|
3383
|
-
fetchPolicy: "no-cache",
|
|
3384
3342
|
refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
|
|
3385
3343
|
}
|
|
3386
3344
|
);
|
|
@@ -3511,7 +3469,6 @@ var DELETE_RELATION_MUTATION = gql18`
|
|
|
3511
3469
|
`;
|
|
3512
3470
|
|
|
3513
3471
|
// src/graphql/hooks/relation/hooksMutation.ts
|
|
3514
|
-
var fetchPolicy = "no-cache";
|
|
3515
3472
|
var useCreateRelation = () => {
|
|
3516
3473
|
const [createRelation, { loading, error }] = useMutation9(
|
|
3517
3474
|
CREATE_RELATION_MUTATION,
|
|
@@ -3525,42 +3482,34 @@ var useCreateRelation = () => {
|
|
|
3525
3482
|
const resourceId = resourceType === "event" /* EVENT */ ? eventId : vendorId;
|
|
3526
3483
|
return [
|
|
3527
3484
|
{
|
|
3528
|
-
fetchPolicy,
|
|
3529
3485
|
query: GET_EVENT_RELATIONS,
|
|
3530
3486
|
variables: { eventId }
|
|
3531
3487
|
},
|
|
3532
3488
|
{
|
|
3533
|
-
fetchPolicy,
|
|
3534
3489
|
query: GET_EVENT,
|
|
3535
3490
|
variables: { _id: eventId }
|
|
3536
3491
|
},
|
|
3537
3492
|
{
|
|
3538
|
-
fetchPolicy,
|
|
3539
3493
|
query: GET_EVENT_INFO,
|
|
3540
3494
|
variables: { eventId }
|
|
3541
3495
|
},
|
|
3542
3496
|
{
|
|
3543
|
-
fetchPolicy,
|
|
3544
3497
|
query: GET_VENDOR_RELATIONS,
|
|
3545
3498
|
variables: { vendorId }
|
|
3546
3499
|
},
|
|
3547
3500
|
{
|
|
3548
|
-
fetchPolicy,
|
|
3549
3501
|
query: GET_VENDOR,
|
|
3550
3502
|
variables: { _id: vendorId }
|
|
3551
3503
|
},
|
|
3552
3504
|
{
|
|
3553
|
-
fetchPolicy,
|
|
3554
3505
|
query: GET_RELATION_BY_EVENT_AND_VENDOR,
|
|
3555
3506
|
variables: { eventId, vendorId }
|
|
3556
3507
|
},
|
|
3557
3508
|
{
|
|
3558
|
-
fetchPolicy,
|
|
3559
3509
|
query: GET_RESOURCE_CONNECTIONS,
|
|
3560
3510
|
variables: { resourceId, resourceType }
|
|
3561
3511
|
},
|
|
3562
3512
|
{
|
|
3563
|
-
fetchPolicy,
|
|
3564
3513
|
query: USER_CHATS
|
|
3565
3514
|
}
|
|
3566
3515
|
];
|
|
@@ -3582,37 +3531,30 @@ var useUpdateRelation = () => {
|
|
|
3582
3531
|
const resourceId = resourceType === "event" /* EVENT */ ? eventId : vendorId;
|
|
3583
3532
|
return [
|
|
3584
3533
|
{
|
|
3585
|
-
fetchPolicy,
|
|
3586
3534
|
query: GET_EVENT_RELATIONS,
|
|
3587
3535
|
variables: { eventId }
|
|
3588
3536
|
},
|
|
3589
3537
|
{
|
|
3590
|
-
fetchPolicy,
|
|
3591
3538
|
query: GET_EVENT,
|
|
3592
3539
|
variables: { _id: eventId }
|
|
3593
3540
|
},
|
|
3594
3541
|
{
|
|
3595
|
-
fetchPolicy,
|
|
3596
3542
|
query: GET_EVENT_INFO,
|
|
3597
3543
|
variables: { eventId }
|
|
3598
3544
|
},
|
|
3599
3545
|
{
|
|
3600
|
-
fetchPolicy,
|
|
3601
3546
|
query: GET_VENDOR_RELATIONS,
|
|
3602
3547
|
variables: { vendorId }
|
|
3603
3548
|
},
|
|
3604
3549
|
{
|
|
3605
|
-
fetchPolicy,
|
|
3606
3550
|
query: GET_VENDOR,
|
|
3607
3551
|
variables: { _id: vendorId }
|
|
3608
3552
|
},
|
|
3609
3553
|
{
|
|
3610
|
-
fetchPolicy,
|
|
3611
3554
|
query: GET_RELATION_BY_EVENT_AND_VENDOR,
|
|
3612
3555
|
variables: { eventId, vendorId }
|
|
3613
3556
|
},
|
|
3614
3557
|
{
|
|
3615
|
-
fetchPolicy,
|
|
3616
3558
|
query: GET_RESOURCE_CONNECTIONS,
|
|
3617
3559
|
variables: { resourceId, resourceType }
|
|
3618
3560
|
}
|
|
@@ -3635,32 +3577,26 @@ var useDeleteRelation = () => {
|
|
|
3635
3577
|
const resourceId = resourceType === "event" /* EVENT */ ? eventId : vendorId;
|
|
3636
3578
|
return [
|
|
3637
3579
|
{
|
|
3638
|
-
fetchPolicy,
|
|
3639
3580
|
query: GET_EVENT_INFO,
|
|
3640
3581
|
variables: { eventId }
|
|
3641
3582
|
},
|
|
3642
3583
|
{
|
|
3643
|
-
fetchPolicy,
|
|
3644
3584
|
query: GET_EVENT_RELATIONS,
|
|
3645
3585
|
variables: { eventId }
|
|
3646
3586
|
},
|
|
3647
3587
|
{
|
|
3648
|
-
fetchPolicy,
|
|
3649
3588
|
query: GET_VENDOR_RELATIONS,
|
|
3650
3589
|
variables: { vendorId }
|
|
3651
3590
|
},
|
|
3652
3591
|
{
|
|
3653
|
-
fetchPolicy,
|
|
3654
3592
|
query: GET_RELATION_BY_EVENT_AND_VENDOR,
|
|
3655
3593
|
variables: { eventId, vendorId }
|
|
3656
3594
|
},
|
|
3657
3595
|
{
|
|
3658
|
-
fetchPolicy,
|
|
3659
3596
|
query: GET_RESOURCE_CONNECTIONS,
|
|
3660
3597
|
variables: { resourceId, resourceType }
|
|
3661
3598
|
},
|
|
3662
3599
|
{
|
|
3663
|
-
fetchPolicy,
|
|
3664
3600
|
query: USER_CHATS
|
|
3665
3601
|
}
|
|
3666
3602
|
];
|
|
@@ -3769,7 +3705,7 @@ var useCreateVendor = () => {
|
|
|
3769
3705
|
CREATE_VENDOR_MUTATION,
|
|
3770
3706
|
{
|
|
3771
3707
|
awaitRefetchQueries: true,
|
|
3772
|
-
refetchQueries: [{
|
|
3708
|
+
refetchQueries: [{ query: GET_USER_VENDORS }]
|
|
3773
3709
|
}
|
|
3774
3710
|
);
|
|
3775
3711
|
return { createVendor, error, loading };
|
|
@@ -3779,7 +3715,7 @@ var useUpdateVendor = () => {
|
|
|
3779
3715
|
UPDATE_VENDOR_MUTATION,
|
|
3780
3716
|
{
|
|
3781
3717
|
awaitRefetchQueries: true,
|
|
3782
|
-
refetchQueries: [{
|
|
3718
|
+
refetchQueries: [{ query: GET_USER_VENDORS }]
|
|
3783
3719
|
}
|
|
3784
3720
|
);
|
|
3785
3721
|
return { error, loading, updateVendor };
|
|
@@ -3789,7 +3725,7 @@ var useDeleteVendor = () => {
|
|
|
3789
3725
|
DELETE_VENDOR_MUTATION,
|
|
3790
3726
|
{
|
|
3791
3727
|
awaitRefetchQueries: true,
|
|
3792
|
-
refetchQueries: [{
|
|
3728
|
+
refetchQueries: [{ query: GET_USER_VENDORS }]
|
|
3793
3729
|
}
|
|
3794
3730
|
);
|
|
3795
3731
|
return { deleteVendor, error, loading };
|
|
@@ -3809,11 +3745,9 @@ var useCreateVendorInfo = () => {
|
|
|
3809
3745
|
// Pass the vendorId for refetching
|
|
3810
3746
|
},
|
|
3811
3747
|
{
|
|
3812
|
-
fetchPolicy: "network-only",
|
|
3813
3748
|
query: GET_USER_VENDORS
|
|
3814
3749
|
},
|
|
3815
3750
|
{
|
|
3816
|
-
fetchPolicy: "no-cache",
|
|
3817
3751
|
query: GET_VENDOR,
|
|
3818
3752
|
variables: { _id: vendorId }
|
|
3819
3753
|
}
|
|
@@ -4094,96 +4028,48 @@ var SELECT_PACKAGE_MUTATION = gql22`
|
|
|
4094
4028
|
}
|
|
4095
4029
|
`;
|
|
4096
4030
|
var ADD_USER_INTEREST_RESOURCE_MUTATION = gql22`
|
|
4097
|
-
mutation addUserInterestResource(
|
|
4098
|
-
|
|
4099
|
-
$startDate: String!
|
|
4100
|
-
$userId: ID!
|
|
4101
|
-
) {
|
|
4102
|
-
addUserInterestResource(
|
|
4103
|
-
resourceId: $resourceId
|
|
4104
|
-
startDate: $startDate
|
|
4105
|
-
userId: $userId
|
|
4106
|
-
) {
|
|
4031
|
+
mutation addUserInterestResource($input: UserActivityInputType!) {
|
|
4032
|
+
addUserInterestResource(input: $input) {
|
|
4107
4033
|
...UserFields
|
|
4108
4034
|
}
|
|
4109
4035
|
}
|
|
4110
4036
|
${USER_FIELDS_FRAGMENT}
|
|
4111
4037
|
`;
|
|
4112
4038
|
var REMOVE_USER_INTEREST_RESOURCE_MUTATION = gql22`
|
|
4113
|
-
mutation removeUserInterestResource(
|
|
4114
|
-
|
|
4115
|
-
$startDate: String!
|
|
4116
|
-
$userId: ID!
|
|
4117
|
-
) {
|
|
4118
|
-
removeUserInterestResource(
|
|
4119
|
-
resourceId: $resourceId
|
|
4120
|
-
startDate: $startDate
|
|
4121
|
-
userId: $userId
|
|
4122
|
-
) {
|
|
4039
|
+
mutation removeUserInterestResource($input: UserActivityInputType!) {
|
|
4040
|
+
removeUserInterestResource(input: $input) {
|
|
4123
4041
|
...UserFields
|
|
4124
4042
|
}
|
|
4125
4043
|
}
|
|
4126
4044
|
${USER_FIELDS_FRAGMENT}
|
|
4127
4045
|
`;
|
|
4128
4046
|
var ADD_USER_GOING_RESOURCE_MUTATION = gql22`
|
|
4129
|
-
mutation addUserGoingResource(
|
|
4130
|
-
|
|
4131
|
-
$startDate: String!
|
|
4132
|
-
$userId: ID!
|
|
4133
|
-
) {
|
|
4134
|
-
addUserGoingResource(
|
|
4135
|
-
resourceId: $resourceId
|
|
4136
|
-
startDate: $startDate
|
|
4137
|
-
userId: $userId
|
|
4138
|
-
) {
|
|
4047
|
+
mutation addUserGoingResource($input: UserActivityInputType!) {
|
|
4048
|
+
addUserGoingResource(input: $input) {
|
|
4139
4049
|
...UserFields
|
|
4140
4050
|
}
|
|
4141
4051
|
}
|
|
4142
4052
|
${USER_FIELDS_FRAGMENT}
|
|
4143
4053
|
`;
|
|
4144
4054
|
var REMOVE_USER_GOING_RESOURCE_MUTATION = gql22`
|
|
4145
|
-
mutation removeUserGoingResource(
|
|
4146
|
-
|
|
4147
|
-
$startDate: String!
|
|
4148
|
-
$userId: ID!
|
|
4149
|
-
) {
|
|
4150
|
-
removeUserGoingResource(
|
|
4151
|
-
resourceId: $resourceId
|
|
4152
|
-
startDate: $startDate
|
|
4153
|
-
userId: $userId
|
|
4154
|
-
) {
|
|
4055
|
+
mutation removeUserGoingResource($input: UserActivityInputType!) {
|
|
4056
|
+
removeUserGoingResource(input: $input) {
|
|
4155
4057
|
...UserFields
|
|
4156
4058
|
}
|
|
4157
4059
|
}
|
|
4158
4060
|
${USER_FIELDS_FRAGMENT}
|
|
4159
4061
|
`;
|
|
4160
4062
|
var ADD_USER_PRESENT_RESOURCE_MUTATION = gql22`
|
|
4161
|
-
mutation addUserPresentResource(
|
|
4162
|
-
|
|
4163
|
-
$startDate: String!
|
|
4164
|
-
$userId: ID!
|
|
4165
|
-
) {
|
|
4166
|
-
addUserPresentResource(
|
|
4167
|
-
resourceId: $resourceId
|
|
4168
|
-
startDate: $startDate
|
|
4169
|
-
userId: $userId
|
|
4170
|
-
) {
|
|
4063
|
+
mutation addUserPresentResource($input: UserActivityInputType!) {
|
|
4064
|
+
addUserPresentResource(input: $input) {
|
|
4171
4065
|
...UserFields
|
|
4172
4066
|
}
|
|
4173
4067
|
}
|
|
4174
4068
|
${USER_FIELDS_FRAGMENT}
|
|
4175
4069
|
`;
|
|
4176
4070
|
var REMOVE_USER_PRESENT_RESOURCE_MUTATION = gql22`
|
|
4177
|
-
mutation removeUserPresentResource(
|
|
4178
|
-
|
|
4179
|
-
$startDate: String!
|
|
4180
|
-
$userId: ID!
|
|
4181
|
-
) {
|
|
4182
|
-
removeUserPresentResource(
|
|
4183
|
-
resourceId: $resourceId
|
|
4184
|
-
startDate: $startDate
|
|
4185
|
-
userId: $userId
|
|
4186
|
-
) {
|
|
4071
|
+
mutation removeUserPresentResource($input: UserActivityInputType!) {
|
|
4072
|
+
removeUserPresentResource(input: $input) {
|
|
4187
4073
|
...UserFields
|
|
4188
4074
|
}
|
|
4189
4075
|
}
|
|
@@ -4449,7 +4335,7 @@ var DELETE_AD_MUTATION = gql24`
|
|
|
4449
4335
|
var useCreateAd = () => {
|
|
4450
4336
|
const [createAd, { loading, error }] = useMutation13(CREATE_AD_MUTATION, {
|
|
4451
4337
|
awaitRefetchQueries: true,
|
|
4452
|
-
refetchQueries: [{
|
|
4338
|
+
refetchQueries: [{ query: GET_ADS }]
|
|
4453
4339
|
});
|
|
4454
4340
|
return {
|
|
4455
4341
|
createAd,
|
|
@@ -4460,7 +4346,7 @@ var useCreateAd = () => {
|
|
|
4460
4346
|
var useUpdateAd = () => {
|
|
4461
4347
|
const [updateAd, { loading, error }] = useMutation13(UPDATE_AD_MUTATION, {
|
|
4462
4348
|
awaitRefetchQueries: true,
|
|
4463
|
-
refetchQueries: [{
|
|
4349
|
+
refetchQueries: [{ query: GET_ADS }]
|
|
4464
4350
|
});
|
|
4465
4351
|
return {
|
|
4466
4352
|
error,
|
|
@@ -4471,7 +4357,7 @@ var useUpdateAd = () => {
|
|
|
4471
4357
|
var useDeleteAd = () => {
|
|
4472
4358
|
const [deleteAd, { loading, error }] = useMutation13(DELETE_AD_MUTATION, {
|
|
4473
4359
|
awaitRefetchQueries: true,
|
|
4474
|
-
refetchQueries: [{
|
|
4360
|
+
refetchQueries: [{ query: GET_ADS }]
|
|
4475
4361
|
});
|
|
4476
4362
|
return {
|
|
4477
4363
|
deleteAd,
|
|
@@ -4558,6 +4444,7 @@ var RESOURCE_ACTIVITIES_FIELDS_FRAGMENT = gql26`
|
|
|
4558
4444
|
coordinates
|
|
4559
4445
|
}
|
|
4560
4446
|
startDate
|
|
4447
|
+
startTime
|
|
4561
4448
|
timestamp
|
|
4562
4449
|
userAgent
|
|
4563
4450
|
userId
|
|
@@ -6254,8 +6141,6 @@ export {
|
|
|
6254
6141
|
useGetVendorRelations,
|
|
6255
6142
|
useGetVendors,
|
|
6256
6143
|
useGetVendorsByRegion,
|
|
6257
|
-
useGoogleRegister,
|
|
6258
|
-
useGoogleSignIn,
|
|
6259
6144
|
useLocationSearch,
|
|
6260
6145
|
useLogin,
|
|
6261
6146
|
useLoginForm,
|