@timardex/cluemart-shared 1.2.23 → 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/graphql/index.cjs +25 -100
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +2 -2
- package/dist/graphql/index.d.ts +2 -2
- package/dist/graphql/index.mjs +25 -100
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +25 -100
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -13
- package/dist/index.d.ts +10 -13
- package/dist/index.mjs +25 -100
- 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 +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -611,28 +611,24 @@ type UserFormData = {
|
|
|
611
611
|
termsAgreement?: TermsAgreement | null;
|
|
612
612
|
};
|
|
613
613
|
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
614
|
+
type UserActivityEvent = {
|
|
615
|
+
resourceId: string;
|
|
616
|
+
startDate: string;
|
|
617
|
+
startTime: string;
|
|
618
|
+
};
|
|
614
619
|
type UserActivity = {
|
|
615
620
|
favourites: {
|
|
616
621
|
events: string[];
|
|
617
622
|
vendors: string[];
|
|
618
623
|
};
|
|
619
624
|
going: {
|
|
620
|
-
events:
|
|
621
|
-
resourceId: string;
|
|
622
|
-
startDate: string;
|
|
623
|
-
}[];
|
|
625
|
+
events: UserActivityEvent[];
|
|
624
626
|
};
|
|
625
627
|
interested: {
|
|
626
|
-
events:
|
|
627
|
-
resourceId: string;
|
|
628
|
-
startDate: string;
|
|
629
|
-
}[];
|
|
628
|
+
events: UserActivityEvent[];
|
|
630
629
|
};
|
|
631
630
|
present: {
|
|
632
|
-
events:
|
|
633
|
-
resourceId: string;
|
|
634
|
-
startDate: string;
|
|
635
|
-
}[];
|
|
631
|
+
events: UserActivityEvent[];
|
|
636
632
|
};
|
|
637
633
|
};
|
|
638
634
|
interface UserType {
|
|
@@ -720,6 +716,7 @@ type ResourceActivityEntry = {
|
|
|
720
716
|
coordinates: number[];
|
|
721
717
|
} | null;
|
|
722
718
|
startDate?: string | null;
|
|
719
|
+
startTime?: string | null;
|
|
723
720
|
timestamp: Date;
|
|
724
721
|
userAgent: EnumOSPlatform;
|
|
725
722
|
userId?: string | null;
|
|
@@ -1496,4 +1493,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1496
1493
|
declare const paymentMethodOptions: OptionItem[];
|
|
1497
1494
|
declare function normalizeUrl(url: string): string;
|
|
1498
1495
|
|
|
1499
|
-
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 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 };
|
|
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
|
@@ -611,28 +611,24 @@ type UserFormData = {
|
|
|
611
611
|
termsAgreement?: TermsAgreement | null;
|
|
612
612
|
};
|
|
613
613
|
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
614
|
+
type UserActivityEvent = {
|
|
615
|
+
resourceId: string;
|
|
616
|
+
startDate: string;
|
|
617
|
+
startTime: string;
|
|
618
|
+
};
|
|
614
619
|
type UserActivity = {
|
|
615
620
|
favourites: {
|
|
616
621
|
events: string[];
|
|
617
622
|
vendors: string[];
|
|
618
623
|
};
|
|
619
624
|
going: {
|
|
620
|
-
events:
|
|
621
|
-
resourceId: string;
|
|
622
|
-
startDate: string;
|
|
623
|
-
}[];
|
|
625
|
+
events: UserActivityEvent[];
|
|
624
626
|
};
|
|
625
627
|
interested: {
|
|
626
|
-
events:
|
|
627
|
-
resourceId: string;
|
|
628
|
-
startDate: string;
|
|
629
|
-
}[];
|
|
628
|
+
events: UserActivityEvent[];
|
|
630
629
|
};
|
|
631
630
|
present: {
|
|
632
|
-
events:
|
|
633
|
-
resourceId: string;
|
|
634
|
-
startDate: string;
|
|
635
|
-
}[];
|
|
631
|
+
events: UserActivityEvent[];
|
|
636
632
|
};
|
|
637
633
|
};
|
|
638
634
|
interface UserType {
|
|
@@ -720,6 +716,7 @@ type ResourceActivityEntry = {
|
|
|
720
716
|
coordinates: number[];
|
|
721
717
|
} | null;
|
|
722
718
|
startDate?: string | null;
|
|
719
|
+
startTime?: string | null;
|
|
723
720
|
timestamp: Date;
|
|
724
721
|
userAgent: EnumOSPlatform;
|
|
725
722
|
userId?: string | null;
|
|
@@ -1496,4 +1493,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1496
1493
|
declare const paymentMethodOptions: OptionItem[];
|
|
1497
1494
|
declare function normalizeUrl(url: string): string;
|
|
1498
1495
|
|
|
1499
|
-
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 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 };
|
|
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
|
}
|
|
@@ -2964,21 +2967,21 @@ var GET_USER_ACTIVITIES = gql11`
|
|
|
2964
2967
|
var useCreateEvent = () => {
|
|
2965
2968
|
const [createEvent, { loading, error }] = useMutation5(CREATE_EVENT_MUTATION, {
|
|
2966
2969
|
awaitRefetchQueries: true,
|
|
2967
|
-
refetchQueries: [{
|
|
2970
|
+
refetchQueries: [{ query: GET_USER_EVENTS }]
|
|
2968
2971
|
});
|
|
2969
2972
|
return { createEvent, error, loading };
|
|
2970
2973
|
};
|
|
2971
2974
|
var useUpdateEvent = () => {
|
|
2972
2975
|
const [updateEvent, { loading, error }] = useMutation5(UPDATE_EVENT_MUTATION, {
|
|
2973
2976
|
awaitRefetchQueries: true,
|
|
2974
|
-
refetchQueries: [{
|
|
2977
|
+
refetchQueries: [{ query: GET_USER_EVENTS }]
|
|
2975
2978
|
});
|
|
2976
2979
|
return { error, loading, updateEvent };
|
|
2977
2980
|
};
|
|
2978
2981
|
var useDeleteEvent = () => {
|
|
2979
2982
|
const [deleteEvent, { loading, error }] = useMutation5(DELETE_EVENT_MUTATION, {
|
|
2980
2983
|
awaitRefetchQueries: true,
|
|
2981
|
-
refetchQueries: [{
|
|
2984
|
+
refetchQueries: [{ query: GET_USER_EVENTS }]
|
|
2982
2985
|
});
|
|
2983
2986
|
return { deleteEvent, error, loading };
|
|
2984
2987
|
};
|
|
@@ -2997,11 +3000,9 @@ var useCreateEventInfo = () => {
|
|
|
2997
3000
|
// Pass the eventId for refetching
|
|
2998
3001
|
},
|
|
2999
3002
|
{
|
|
3000
|
-
fetchPolicy: "network-only",
|
|
3001
3003
|
query: GET_USER_EVENTS
|
|
3002
3004
|
},
|
|
3003
3005
|
{
|
|
3004
|
-
fetchPolicy: "no-cache",
|
|
3005
3006
|
query: GET_EVENT,
|
|
3006
3007
|
variables: { _id: eventId }
|
|
3007
3008
|
}
|
|
@@ -3183,7 +3184,6 @@ var useMarkNotificationRead = () => {
|
|
|
3183
3184
|
const [markNotificationRead, { loading, error }] = useMutation6(
|
|
3184
3185
|
MARK_NOTIFICATION_READ,
|
|
3185
3186
|
{
|
|
3186
|
-
fetchPolicy: "no-cache",
|
|
3187
3187
|
refetchQueries: [
|
|
3188
3188
|
{
|
|
3189
3189
|
query: GET_USER_NOTIFICATIONS
|
|
@@ -3200,7 +3200,6 @@ var useMarkAllNotificationsRead = () => {
|
|
|
3200
3200
|
const [markAllNotificationsRead, { loading, error }] = useMutation6(
|
|
3201
3201
|
MARK_ALL_NOTIFICATIONS_READ,
|
|
3202
3202
|
{
|
|
3203
|
-
fetchPolicy: "no-cache",
|
|
3204
3203
|
refetchQueries: [
|
|
3205
3204
|
{
|
|
3206
3205
|
query: GET_USER_NOTIFICATIONS
|
|
@@ -3217,7 +3216,6 @@ var useDeleteNotification = () => {
|
|
|
3217
3216
|
const [deleteNotification, { loading, error }] = useMutation6(
|
|
3218
3217
|
DELETE_NOTIFICATION,
|
|
3219
3218
|
{
|
|
3220
|
-
fetchPolicy: "no-cache",
|
|
3221
3219
|
refetchQueries: [
|
|
3222
3220
|
{
|
|
3223
3221
|
query: GET_USER_NOTIFICATIONS
|
|
@@ -3234,7 +3232,6 @@ var useDeleteAllNotifications = () => {
|
|
|
3234
3232
|
const [deleteAllNotifications, { loading, error }] = useMutation6(
|
|
3235
3233
|
DELETE_ALL_NOTIFICATIONS,
|
|
3236
3234
|
{
|
|
3237
|
-
fetchPolicy: "no-cache",
|
|
3238
3235
|
refetchQueries: [
|
|
3239
3236
|
{
|
|
3240
3237
|
query: GET_USER_NOTIFICATIONS
|
|
@@ -3342,7 +3339,6 @@ var useCreatePoster = () => {
|
|
|
3342
3339
|
const [createPoster, { loading, error }] = useMutation7(
|
|
3343
3340
|
CREATE_POSTER_MUTATION,
|
|
3344
3341
|
{
|
|
3345
|
-
fetchPolicy: "no-cache",
|
|
3346
3342
|
refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
|
|
3347
3343
|
}
|
|
3348
3344
|
);
|
|
@@ -3473,7 +3469,6 @@ var DELETE_RELATION_MUTATION = gql18`
|
|
|
3473
3469
|
`;
|
|
3474
3470
|
|
|
3475
3471
|
// src/graphql/hooks/relation/hooksMutation.ts
|
|
3476
|
-
var fetchPolicy = "no-cache";
|
|
3477
3472
|
var useCreateRelation = () => {
|
|
3478
3473
|
const [createRelation, { loading, error }] = useMutation9(
|
|
3479
3474
|
CREATE_RELATION_MUTATION,
|
|
@@ -3487,42 +3482,34 @@ var useCreateRelation = () => {
|
|
|
3487
3482
|
const resourceId = resourceType === "event" /* EVENT */ ? eventId : vendorId;
|
|
3488
3483
|
return [
|
|
3489
3484
|
{
|
|
3490
|
-
fetchPolicy,
|
|
3491
3485
|
query: GET_EVENT_RELATIONS,
|
|
3492
3486
|
variables: { eventId }
|
|
3493
3487
|
},
|
|
3494
3488
|
{
|
|
3495
|
-
fetchPolicy,
|
|
3496
3489
|
query: GET_EVENT,
|
|
3497
3490
|
variables: { _id: eventId }
|
|
3498
3491
|
},
|
|
3499
3492
|
{
|
|
3500
|
-
fetchPolicy,
|
|
3501
3493
|
query: GET_EVENT_INFO,
|
|
3502
3494
|
variables: { eventId }
|
|
3503
3495
|
},
|
|
3504
3496
|
{
|
|
3505
|
-
fetchPolicy,
|
|
3506
3497
|
query: GET_VENDOR_RELATIONS,
|
|
3507
3498
|
variables: { vendorId }
|
|
3508
3499
|
},
|
|
3509
3500
|
{
|
|
3510
|
-
fetchPolicy,
|
|
3511
3501
|
query: GET_VENDOR,
|
|
3512
3502
|
variables: { _id: vendorId }
|
|
3513
3503
|
},
|
|
3514
3504
|
{
|
|
3515
|
-
fetchPolicy,
|
|
3516
3505
|
query: GET_RELATION_BY_EVENT_AND_VENDOR,
|
|
3517
3506
|
variables: { eventId, vendorId }
|
|
3518
3507
|
},
|
|
3519
3508
|
{
|
|
3520
|
-
fetchPolicy,
|
|
3521
3509
|
query: GET_RESOURCE_CONNECTIONS,
|
|
3522
3510
|
variables: { resourceId, resourceType }
|
|
3523
3511
|
},
|
|
3524
3512
|
{
|
|
3525
|
-
fetchPolicy,
|
|
3526
3513
|
query: USER_CHATS
|
|
3527
3514
|
}
|
|
3528
3515
|
];
|
|
@@ -3544,37 +3531,30 @@ var useUpdateRelation = () => {
|
|
|
3544
3531
|
const resourceId = resourceType === "event" /* EVENT */ ? eventId : vendorId;
|
|
3545
3532
|
return [
|
|
3546
3533
|
{
|
|
3547
|
-
fetchPolicy,
|
|
3548
3534
|
query: GET_EVENT_RELATIONS,
|
|
3549
3535
|
variables: { eventId }
|
|
3550
3536
|
},
|
|
3551
3537
|
{
|
|
3552
|
-
fetchPolicy,
|
|
3553
3538
|
query: GET_EVENT,
|
|
3554
3539
|
variables: { _id: eventId }
|
|
3555
3540
|
},
|
|
3556
3541
|
{
|
|
3557
|
-
fetchPolicy,
|
|
3558
3542
|
query: GET_EVENT_INFO,
|
|
3559
3543
|
variables: { eventId }
|
|
3560
3544
|
},
|
|
3561
3545
|
{
|
|
3562
|
-
fetchPolicy,
|
|
3563
3546
|
query: GET_VENDOR_RELATIONS,
|
|
3564
3547
|
variables: { vendorId }
|
|
3565
3548
|
},
|
|
3566
3549
|
{
|
|
3567
|
-
fetchPolicy,
|
|
3568
3550
|
query: GET_VENDOR,
|
|
3569
3551
|
variables: { _id: vendorId }
|
|
3570
3552
|
},
|
|
3571
3553
|
{
|
|
3572
|
-
fetchPolicy,
|
|
3573
3554
|
query: GET_RELATION_BY_EVENT_AND_VENDOR,
|
|
3574
3555
|
variables: { eventId, vendorId }
|
|
3575
3556
|
},
|
|
3576
3557
|
{
|
|
3577
|
-
fetchPolicy,
|
|
3578
3558
|
query: GET_RESOURCE_CONNECTIONS,
|
|
3579
3559
|
variables: { resourceId, resourceType }
|
|
3580
3560
|
}
|
|
@@ -3597,32 +3577,26 @@ var useDeleteRelation = () => {
|
|
|
3597
3577
|
const resourceId = resourceType === "event" /* EVENT */ ? eventId : vendorId;
|
|
3598
3578
|
return [
|
|
3599
3579
|
{
|
|
3600
|
-
fetchPolicy,
|
|
3601
3580
|
query: GET_EVENT_INFO,
|
|
3602
3581
|
variables: { eventId }
|
|
3603
3582
|
},
|
|
3604
3583
|
{
|
|
3605
|
-
fetchPolicy,
|
|
3606
3584
|
query: GET_EVENT_RELATIONS,
|
|
3607
3585
|
variables: { eventId }
|
|
3608
3586
|
},
|
|
3609
3587
|
{
|
|
3610
|
-
fetchPolicy,
|
|
3611
3588
|
query: GET_VENDOR_RELATIONS,
|
|
3612
3589
|
variables: { vendorId }
|
|
3613
3590
|
},
|
|
3614
3591
|
{
|
|
3615
|
-
fetchPolicy,
|
|
3616
3592
|
query: GET_RELATION_BY_EVENT_AND_VENDOR,
|
|
3617
3593
|
variables: { eventId, vendorId }
|
|
3618
3594
|
},
|
|
3619
3595
|
{
|
|
3620
|
-
fetchPolicy,
|
|
3621
3596
|
query: GET_RESOURCE_CONNECTIONS,
|
|
3622
3597
|
variables: { resourceId, resourceType }
|
|
3623
3598
|
},
|
|
3624
3599
|
{
|
|
3625
|
-
fetchPolicy,
|
|
3626
3600
|
query: USER_CHATS
|
|
3627
3601
|
}
|
|
3628
3602
|
];
|
|
@@ -3731,7 +3705,7 @@ var useCreateVendor = () => {
|
|
|
3731
3705
|
CREATE_VENDOR_MUTATION,
|
|
3732
3706
|
{
|
|
3733
3707
|
awaitRefetchQueries: true,
|
|
3734
|
-
refetchQueries: [{
|
|
3708
|
+
refetchQueries: [{ query: GET_USER_VENDORS }]
|
|
3735
3709
|
}
|
|
3736
3710
|
);
|
|
3737
3711
|
return { createVendor, error, loading };
|
|
@@ -3741,7 +3715,7 @@ var useUpdateVendor = () => {
|
|
|
3741
3715
|
UPDATE_VENDOR_MUTATION,
|
|
3742
3716
|
{
|
|
3743
3717
|
awaitRefetchQueries: true,
|
|
3744
|
-
refetchQueries: [{
|
|
3718
|
+
refetchQueries: [{ query: GET_USER_VENDORS }]
|
|
3745
3719
|
}
|
|
3746
3720
|
);
|
|
3747
3721
|
return { error, loading, updateVendor };
|
|
@@ -3751,7 +3725,7 @@ var useDeleteVendor = () => {
|
|
|
3751
3725
|
DELETE_VENDOR_MUTATION,
|
|
3752
3726
|
{
|
|
3753
3727
|
awaitRefetchQueries: true,
|
|
3754
|
-
refetchQueries: [{
|
|
3728
|
+
refetchQueries: [{ query: GET_USER_VENDORS }]
|
|
3755
3729
|
}
|
|
3756
3730
|
);
|
|
3757
3731
|
return { deleteVendor, error, loading };
|
|
@@ -3771,11 +3745,9 @@ var useCreateVendorInfo = () => {
|
|
|
3771
3745
|
// Pass the vendorId for refetching
|
|
3772
3746
|
},
|
|
3773
3747
|
{
|
|
3774
|
-
fetchPolicy: "network-only",
|
|
3775
3748
|
query: GET_USER_VENDORS
|
|
3776
3749
|
},
|
|
3777
3750
|
{
|
|
3778
|
-
fetchPolicy: "no-cache",
|
|
3779
3751
|
query: GET_VENDOR,
|
|
3780
3752
|
variables: { _id: vendorId }
|
|
3781
3753
|
}
|
|
@@ -4056,96 +4028,48 @@ var SELECT_PACKAGE_MUTATION = gql22`
|
|
|
4056
4028
|
}
|
|
4057
4029
|
`;
|
|
4058
4030
|
var ADD_USER_INTEREST_RESOURCE_MUTATION = gql22`
|
|
4059
|
-
mutation addUserInterestResource(
|
|
4060
|
-
|
|
4061
|
-
$startDate: String!
|
|
4062
|
-
$userId: ID!
|
|
4063
|
-
) {
|
|
4064
|
-
addUserInterestResource(
|
|
4065
|
-
resourceId: $resourceId
|
|
4066
|
-
startDate: $startDate
|
|
4067
|
-
userId: $userId
|
|
4068
|
-
) {
|
|
4031
|
+
mutation addUserInterestResource($input: UserActivityInputType!) {
|
|
4032
|
+
addUserInterestResource(input: $input) {
|
|
4069
4033
|
...UserFields
|
|
4070
4034
|
}
|
|
4071
4035
|
}
|
|
4072
4036
|
${USER_FIELDS_FRAGMENT}
|
|
4073
4037
|
`;
|
|
4074
4038
|
var REMOVE_USER_INTEREST_RESOURCE_MUTATION = gql22`
|
|
4075
|
-
mutation removeUserInterestResource(
|
|
4076
|
-
|
|
4077
|
-
$startDate: String!
|
|
4078
|
-
$userId: ID!
|
|
4079
|
-
) {
|
|
4080
|
-
removeUserInterestResource(
|
|
4081
|
-
resourceId: $resourceId
|
|
4082
|
-
startDate: $startDate
|
|
4083
|
-
userId: $userId
|
|
4084
|
-
) {
|
|
4039
|
+
mutation removeUserInterestResource($input: UserActivityInputType!) {
|
|
4040
|
+
removeUserInterestResource(input: $input) {
|
|
4085
4041
|
...UserFields
|
|
4086
4042
|
}
|
|
4087
4043
|
}
|
|
4088
4044
|
${USER_FIELDS_FRAGMENT}
|
|
4089
4045
|
`;
|
|
4090
4046
|
var ADD_USER_GOING_RESOURCE_MUTATION = gql22`
|
|
4091
|
-
mutation addUserGoingResource(
|
|
4092
|
-
|
|
4093
|
-
$startDate: String!
|
|
4094
|
-
$userId: ID!
|
|
4095
|
-
) {
|
|
4096
|
-
addUserGoingResource(
|
|
4097
|
-
resourceId: $resourceId
|
|
4098
|
-
startDate: $startDate
|
|
4099
|
-
userId: $userId
|
|
4100
|
-
) {
|
|
4047
|
+
mutation addUserGoingResource($input: UserActivityInputType!) {
|
|
4048
|
+
addUserGoingResource(input: $input) {
|
|
4101
4049
|
...UserFields
|
|
4102
4050
|
}
|
|
4103
4051
|
}
|
|
4104
4052
|
${USER_FIELDS_FRAGMENT}
|
|
4105
4053
|
`;
|
|
4106
4054
|
var REMOVE_USER_GOING_RESOURCE_MUTATION = gql22`
|
|
4107
|
-
mutation removeUserGoingResource(
|
|
4108
|
-
|
|
4109
|
-
$startDate: String!
|
|
4110
|
-
$userId: ID!
|
|
4111
|
-
) {
|
|
4112
|
-
removeUserGoingResource(
|
|
4113
|
-
resourceId: $resourceId
|
|
4114
|
-
startDate: $startDate
|
|
4115
|
-
userId: $userId
|
|
4116
|
-
) {
|
|
4055
|
+
mutation removeUserGoingResource($input: UserActivityInputType!) {
|
|
4056
|
+
removeUserGoingResource(input: $input) {
|
|
4117
4057
|
...UserFields
|
|
4118
4058
|
}
|
|
4119
4059
|
}
|
|
4120
4060
|
${USER_FIELDS_FRAGMENT}
|
|
4121
4061
|
`;
|
|
4122
4062
|
var ADD_USER_PRESENT_RESOURCE_MUTATION = gql22`
|
|
4123
|
-
mutation addUserPresentResource(
|
|
4124
|
-
|
|
4125
|
-
$startDate: String!
|
|
4126
|
-
$userId: ID!
|
|
4127
|
-
) {
|
|
4128
|
-
addUserPresentResource(
|
|
4129
|
-
resourceId: $resourceId
|
|
4130
|
-
startDate: $startDate
|
|
4131
|
-
userId: $userId
|
|
4132
|
-
) {
|
|
4063
|
+
mutation addUserPresentResource($input: UserActivityInputType!) {
|
|
4064
|
+
addUserPresentResource(input: $input) {
|
|
4133
4065
|
...UserFields
|
|
4134
4066
|
}
|
|
4135
4067
|
}
|
|
4136
4068
|
${USER_FIELDS_FRAGMENT}
|
|
4137
4069
|
`;
|
|
4138
4070
|
var REMOVE_USER_PRESENT_RESOURCE_MUTATION = gql22`
|
|
4139
|
-
mutation removeUserPresentResource(
|
|
4140
|
-
|
|
4141
|
-
$startDate: String!
|
|
4142
|
-
$userId: ID!
|
|
4143
|
-
) {
|
|
4144
|
-
removeUserPresentResource(
|
|
4145
|
-
resourceId: $resourceId
|
|
4146
|
-
startDate: $startDate
|
|
4147
|
-
userId: $userId
|
|
4148
|
-
) {
|
|
4071
|
+
mutation removeUserPresentResource($input: UserActivityInputType!) {
|
|
4072
|
+
removeUserPresentResource(input: $input) {
|
|
4149
4073
|
...UserFields
|
|
4150
4074
|
}
|
|
4151
4075
|
}
|
|
@@ -4411,7 +4335,7 @@ var DELETE_AD_MUTATION = gql24`
|
|
|
4411
4335
|
var useCreateAd = () => {
|
|
4412
4336
|
const [createAd, { loading, error }] = useMutation13(CREATE_AD_MUTATION, {
|
|
4413
4337
|
awaitRefetchQueries: true,
|
|
4414
|
-
refetchQueries: [{
|
|
4338
|
+
refetchQueries: [{ query: GET_ADS }]
|
|
4415
4339
|
});
|
|
4416
4340
|
return {
|
|
4417
4341
|
createAd,
|
|
@@ -4422,7 +4346,7 @@ var useCreateAd = () => {
|
|
|
4422
4346
|
var useUpdateAd = () => {
|
|
4423
4347
|
const [updateAd, { loading, error }] = useMutation13(UPDATE_AD_MUTATION, {
|
|
4424
4348
|
awaitRefetchQueries: true,
|
|
4425
|
-
refetchQueries: [{
|
|
4349
|
+
refetchQueries: [{ query: GET_ADS }]
|
|
4426
4350
|
});
|
|
4427
4351
|
return {
|
|
4428
4352
|
error,
|
|
@@ -4433,7 +4357,7 @@ var useUpdateAd = () => {
|
|
|
4433
4357
|
var useDeleteAd = () => {
|
|
4434
4358
|
const [deleteAd, { loading, error }] = useMutation13(DELETE_AD_MUTATION, {
|
|
4435
4359
|
awaitRefetchQueries: true,
|
|
4436
|
-
refetchQueries: [{
|
|
4360
|
+
refetchQueries: [{ query: GET_ADS }]
|
|
4437
4361
|
});
|
|
4438
4362
|
return {
|
|
4439
4363
|
deleteAd,
|
|
@@ -4520,6 +4444,7 @@ var RESOURCE_ACTIVITIES_FIELDS_FRAGMENT = gql26`
|
|
|
4520
4444
|
coordinates
|
|
4521
4445
|
}
|
|
4522
4446
|
startDate
|
|
4447
|
+
startTime
|
|
4523
4448
|
timestamp
|
|
4524
4449
|
userAgent
|
|
4525
4450
|
userId
|