@timardex/cluemart-shared 1.2.17 → 1.2.19
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-BozU03cK.d.mts → ad-CMPlGS2z.d.mts} +1 -1
- package/dist/{ad-0fMmeab1.d.ts → ad-CbnwOWnz.d.ts} +1 -1
- package/dist/graphql/index.cjs +37 -33
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +8 -8
- package/dist/graphql/index.d.ts +8 -8
- package/dist/graphql/index.mjs +35 -31
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/index.cjs +47 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +19 -17
- package/dist/index.d.ts +19 -17
- package/dist/index.mjs +44 -31
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceViews-B-u5nH1M.d.mts → resourceActivities-BjdUNSMJ.d.mts} +13 -11
- package/dist/{resourceViews-BZZt3kvl.d.ts → resourceActivities-CHncRJrn.d.ts} +13 -11
- package/dist/types/index.cjs +10 -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 +9 -0
- package/dist/types/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -619,7 +619,7 @@ type UserActivity = {
|
|
|
619
619
|
startDate: string;
|
|
620
620
|
}[];
|
|
621
621
|
};
|
|
622
|
-
|
|
622
|
+
interested: {
|
|
623
623
|
events: {
|
|
624
624
|
resourceId: string;
|
|
625
625
|
startDate: string;
|
|
@@ -697,28 +697,30 @@ interface AdType extends AdFormData {
|
|
|
697
697
|
updatedAt: Date;
|
|
698
698
|
}
|
|
699
699
|
|
|
700
|
-
|
|
700
|
+
declare enum EnumActivity {
|
|
701
|
+
VIEW = "VIEW",
|
|
702
|
+
GOING = "GOING",
|
|
703
|
+
INTERESTED = "INTERESTED"
|
|
704
|
+
}
|
|
705
|
+
type ResourceActivityEntry = {
|
|
706
|
+
activityType: EnumActivity;
|
|
701
707
|
location: {
|
|
702
708
|
type: "Point";
|
|
703
709
|
coordinates: number[];
|
|
704
710
|
} | null;
|
|
705
711
|
userAgent: EnumOSPlatform;
|
|
706
|
-
|
|
712
|
+
timestamp: Date;
|
|
707
713
|
};
|
|
708
|
-
type
|
|
714
|
+
type ResourceActivityType = {
|
|
709
715
|
_id: string;
|
|
710
716
|
resourceType: EnumResourceType;
|
|
711
717
|
resourceId: string;
|
|
712
|
-
|
|
718
|
+
activity: ResourceActivityEntry[];
|
|
713
719
|
};
|
|
714
|
-
type
|
|
720
|
+
type ResourceActivityInputType = {
|
|
715
721
|
resourceId: string;
|
|
716
722
|
resourceType: string;
|
|
717
|
-
|
|
718
|
-
location: {
|
|
719
|
-
coordinates: number[];
|
|
720
|
-
} | null;
|
|
721
|
-
};
|
|
723
|
+
activity: Omit<ResourceActivityEntry, "timestamp">;
|
|
722
724
|
};
|
|
723
725
|
|
|
724
726
|
declare const vendorElectricity: {
|
|
@@ -1224,7 +1226,7 @@ declare const useGetUserActivities: () => {
|
|
|
1224
1226
|
going: {
|
|
1225
1227
|
events: EventType[];
|
|
1226
1228
|
};
|
|
1227
|
-
|
|
1229
|
+
interested: {
|
|
1228
1230
|
events: EventType[];
|
|
1229
1231
|
};
|
|
1230
1232
|
};
|
|
@@ -1271,17 +1273,17 @@ declare const useGetAdsByRegion: (region: string, status?: EnumAdStatus) => {
|
|
|
1271
1273
|
}>>;
|
|
1272
1274
|
};
|
|
1273
1275
|
|
|
1274
|
-
declare const
|
|
1275
|
-
|
|
1276
|
+
declare const useCreateResourceActivity: () => {
|
|
1277
|
+
createResourceActivity: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1276
1278
|
error: _apollo_client.ApolloError | undefined;
|
|
1277
1279
|
loading: boolean;
|
|
1278
1280
|
};
|
|
1279
1281
|
|
|
1280
|
-
declare const
|
|
1282
|
+
declare const useGetResourceActivities: (resourceId: string, resourceType: EnumResourceType) => {
|
|
1281
1283
|
error: _apollo_client.ApolloError | undefined;
|
|
1282
1284
|
loading: boolean;
|
|
1283
1285
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1284
|
-
|
|
1286
|
+
resourceActivities: ResourceActivityType[];
|
|
1285
1287
|
};
|
|
1286
1288
|
|
|
1287
1289
|
interface PlacePrediction {
|
|
@@ -1468,4 +1470,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1468
1470
|
declare const paymentMethodOptions: OptionItem[];
|
|
1469
1471
|
declare function normalizeUrl(url: string): string;
|
|
1470
1472
|
|
|
1471
|
-
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, 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
|
|
1473
|
+
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, 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, 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
|
@@ -619,7 +619,7 @@ type UserActivity = {
|
|
|
619
619
|
startDate: string;
|
|
620
620
|
}[];
|
|
621
621
|
};
|
|
622
|
-
|
|
622
|
+
interested: {
|
|
623
623
|
events: {
|
|
624
624
|
resourceId: string;
|
|
625
625
|
startDate: string;
|
|
@@ -697,28 +697,30 @@ interface AdType extends AdFormData {
|
|
|
697
697
|
updatedAt: Date;
|
|
698
698
|
}
|
|
699
699
|
|
|
700
|
-
|
|
700
|
+
declare enum EnumActivity {
|
|
701
|
+
VIEW = "VIEW",
|
|
702
|
+
GOING = "GOING",
|
|
703
|
+
INTERESTED = "INTERESTED"
|
|
704
|
+
}
|
|
705
|
+
type ResourceActivityEntry = {
|
|
706
|
+
activityType: EnumActivity;
|
|
701
707
|
location: {
|
|
702
708
|
type: "Point";
|
|
703
709
|
coordinates: number[];
|
|
704
710
|
} | null;
|
|
705
711
|
userAgent: EnumOSPlatform;
|
|
706
|
-
|
|
712
|
+
timestamp: Date;
|
|
707
713
|
};
|
|
708
|
-
type
|
|
714
|
+
type ResourceActivityType = {
|
|
709
715
|
_id: string;
|
|
710
716
|
resourceType: EnumResourceType;
|
|
711
717
|
resourceId: string;
|
|
712
|
-
|
|
718
|
+
activity: ResourceActivityEntry[];
|
|
713
719
|
};
|
|
714
|
-
type
|
|
720
|
+
type ResourceActivityInputType = {
|
|
715
721
|
resourceId: string;
|
|
716
722
|
resourceType: string;
|
|
717
|
-
|
|
718
|
-
location: {
|
|
719
|
-
coordinates: number[];
|
|
720
|
-
} | null;
|
|
721
|
-
};
|
|
723
|
+
activity: Omit<ResourceActivityEntry, "timestamp">;
|
|
722
724
|
};
|
|
723
725
|
|
|
724
726
|
declare const vendorElectricity: {
|
|
@@ -1224,7 +1226,7 @@ declare const useGetUserActivities: () => {
|
|
|
1224
1226
|
going: {
|
|
1225
1227
|
events: EventType[];
|
|
1226
1228
|
};
|
|
1227
|
-
|
|
1229
|
+
interested: {
|
|
1228
1230
|
events: EventType[];
|
|
1229
1231
|
};
|
|
1230
1232
|
};
|
|
@@ -1271,17 +1273,17 @@ declare const useGetAdsByRegion: (region: string, status?: EnumAdStatus) => {
|
|
|
1271
1273
|
}>>;
|
|
1272
1274
|
};
|
|
1273
1275
|
|
|
1274
|
-
declare const
|
|
1275
|
-
|
|
1276
|
+
declare const useCreateResourceActivity: () => {
|
|
1277
|
+
createResourceActivity: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1276
1278
|
error: _apollo_client.ApolloError | undefined;
|
|
1277
1279
|
loading: boolean;
|
|
1278
1280
|
};
|
|
1279
1281
|
|
|
1280
|
-
declare const
|
|
1282
|
+
declare const useGetResourceActivities: (resourceId: string, resourceType: EnumResourceType) => {
|
|
1281
1283
|
error: _apollo_client.ApolloError | undefined;
|
|
1282
1284
|
loading: boolean;
|
|
1283
1285
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1284
|
-
|
|
1286
|
+
resourceActivities: ResourceActivityType[];
|
|
1285
1287
|
};
|
|
1286
1288
|
|
|
1287
1289
|
interface PlacePrediction {
|
|
@@ -1468,4 +1470,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1468
1470
|
declare const paymentMethodOptions: OptionItem[];
|
|
1469
1471
|
declare function normalizeUrl(url: string): string;
|
|
1470
1472
|
|
|
1471
|
-
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, 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
|
|
1473
|
+
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, 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, 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
|
@@ -2030,7 +2030,7 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = gql2`
|
|
|
2030
2030
|
events
|
|
2031
2031
|
vendors
|
|
2032
2032
|
}
|
|
2033
|
-
|
|
2033
|
+
interested {
|
|
2034
2034
|
events {
|
|
2035
2035
|
resourceId
|
|
2036
2036
|
startDate
|
|
@@ -2930,7 +2930,7 @@ var GET_USER_ACTIVITIES = gql11`
|
|
|
2930
2930
|
...VendorFields
|
|
2931
2931
|
}
|
|
2932
2932
|
}
|
|
2933
|
-
|
|
2933
|
+
interested {
|
|
2934
2934
|
events {
|
|
2935
2935
|
...EventFields
|
|
2936
2936
|
}
|
|
@@ -4247,8 +4247,8 @@ var useGetUserActivities = () => {
|
|
|
4247
4247
|
going: {
|
|
4248
4248
|
events: data?.userActivities.going.events
|
|
4249
4249
|
},
|
|
4250
|
-
|
|
4251
|
-
events: data?.userActivities.
|
|
4250
|
+
interested: {
|
|
4251
|
+
events: data?.userActivities.interested.events
|
|
4252
4252
|
}
|
|
4253
4253
|
};
|
|
4254
4254
|
return { error, loading, refetch, userActivities };
|
|
@@ -4416,56 +4416,60 @@ var useGetAdsByRegion = (region, status) => {
|
|
|
4416
4416
|
};
|
|
4417
4417
|
};
|
|
4418
4418
|
|
|
4419
|
-
// src/graphql/hooks/
|
|
4419
|
+
// src/graphql/hooks/resourceActivities/hooksMutation.ts
|
|
4420
4420
|
import { useMutation as useMutation14 } from "@apollo/client";
|
|
4421
4421
|
|
|
4422
|
-
// src/graphql/mutations/
|
|
4422
|
+
// src/graphql/mutations/resourceActivities.ts
|
|
4423
4423
|
import { gql as gql25 } from "@apollo/client";
|
|
4424
|
-
var
|
|
4425
|
-
mutation
|
|
4426
|
-
|
|
4424
|
+
var CREATE_RESOURCE_ACTIVITY_MUTATION = gql25`
|
|
4425
|
+
mutation createResourceActivity($input: ResourceActivityInputType!) {
|
|
4426
|
+
createResourceActivity(input: $input)
|
|
4427
4427
|
}
|
|
4428
4428
|
`;
|
|
4429
4429
|
|
|
4430
|
-
// src/graphql/hooks/
|
|
4431
|
-
var
|
|
4432
|
-
const [
|
|
4433
|
-
|
|
4430
|
+
// src/graphql/hooks/resourceActivities/hooksMutation.ts
|
|
4431
|
+
var useCreateResourceActivity = () => {
|
|
4432
|
+
const [createResourceActivity, { loading, error }] = useMutation14(
|
|
4433
|
+
CREATE_RESOURCE_ACTIVITY_MUTATION
|
|
4434
4434
|
);
|
|
4435
|
-
return {
|
|
4435
|
+
return { createResourceActivity, error, loading };
|
|
4436
4436
|
};
|
|
4437
4437
|
|
|
4438
|
-
// src/graphql/hooks/
|
|
4438
|
+
// src/graphql/hooks/resourceActivities/hooksQuery.ts
|
|
4439
4439
|
import { useQuery as useQuery9 } from "@apollo/client";
|
|
4440
4440
|
|
|
4441
|
-
// src/graphql/queries/
|
|
4441
|
+
// src/graphql/queries/resourceActivities.ts
|
|
4442
4442
|
import { gql as gql26 } from "@apollo/client";
|
|
4443
|
-
var
|
|
4444
|
-
fragment
|
|
4443
|
+
var RESOURCE_ACTIVITIES_FIELDS_FRAGMENT = gql26`
|
|
4444
|
+
fragment ResourceActivitiesFields on ResourceActivitiesType {
|
|
4445
4445
|
resourceId
|
|
4446
4446
|
resourceType
|
|
4447
|
-
|
|
4447
|
+
activity {
|
|
4448
|
+
activityType
|
|
4448
4449
|
location {
|
|
4449
4450
|
type
|
|
4450
4451
|
coordinates
|
|
4451
4452
|
}
|
|
4452
4453
|
userAgent
|
|
4453
|
-
|
|
4454
|
+
timestamp
|
|
4454
4455
|
}
|
|
4455
4456
|
}
|
|
4456
4457
|
`;
|
|
4457
|
-
var
|
|
4458
|
-
query
|
|
4459
|
-
|
|
4460
|
-
|
|
4458
|
+
var GET_RESOURCE_ACTIVITIES = gql26`
|
|
4459
|
+
query getResourceActivities(
|
|
4460
|
+
$resourceType: ResourceTypeEnum!
|
|
4461
|
+
$resourceId: ID!
|
|
4462
|
+
) {
|
|
4463
|
+
resourceActivities(resourceType: $resourceType, resourceId: $resourceId) {
|
|
4464
|
+
...ResourceActivitiesFields
|
|
4461
4465
|
}
|
|
4462
4466
|
}
|
|
4463
|
-
${
|
|
4467
|
+
${RESOURCE_ACTIVITIES_FIELDS_FRAGMENT}
|
|
4464
4468
|
`;
|
|
4465
4469
|
|
|
4466
|
-
// src/graphql/hooks/
|
|
4467
|
-
var
|
|
4468
|
-
const { data, loading, error, refetch } = useQuery9(
|
|
4470
|
+
// src/graphql/hooks/resourceActivities/hooksQuery.ts
|
|
4471
|
+
var useGetResourceActivities = (resourceId, resourceType) => {
|
|
4472
|
+
const { data, loading, error, refetch } = useQuery9(GET_RESOURCE_ACTIVITIES, {
|
|
4469
4473
|
fetchPolicy: "network-only",
|
|
4470
4474
|
variables: { resourceId, resourceType }
|
|
4471
4475
|
});
|
|
@@ -4473,7 +4477,7 @@ var useGetResourceViews = (resourceId, resourceType) => {
|
|
|
4473
4477
|
error,
|
|
4474
4478
|
loading,
|
|
4475
4479
|
refetch,
|
|
4476
|
-
|
|
4480
|
+
resourceActivities: data?.resourceActivities
|
|
4477
4481
|
};
|
|
4478
4482
|
};
|
|
4479
4483
|
|
|
@@ -5989,7 +5993,16 @@ var fonts = {
|
|
|
5989
5993
|
fontWeight: "400"
|
|
5990
5994
|
}
|
|
5991
5995
|
};
|
|
5996
|
+
|
|
5997
|
+
// src/types/resourceActivities.ts
|
|
5998
|
+
var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
5999
|
+
EnumActivity2["VIEW"] = "VIEW";
|
|
6000
|
+
EnumActivity2["GOING"] = "GOING";
|
|
6001
|
+
EnumActivity2["INTERESTED"] = "INTERESTED";
|
|
6002
|
+
return EnumActivity2;
|
|
6003
|
+
})(EnumActivity || {});
|
|
5992
6004
|
export {
|
|
6005
|
+
EnumActivity,
|
|
5993
6006
|
EnumAdShowOn,
|
|
5994
6007
|
EnumAdStatus,
|
|
5995
6008
|
EnumAdStyle,
|
|
@@ -6081,7 +6094,7 @@ export {
|
|
|
6081
6094
|
useCreatePoster,
|
|
6082
6095
|
useCreatePushToken,
|
|
6083
6096
|
useCreateRelation,
|
|
6084
|
-
|
|
6097
|
+
useCreateResourceActivity,
|
|
6085
6098
|
useCreateTester,
|
|
6086
6099
|
useCreateUser,
|
|
6087
6100
|
useCreateVendor,
|
|
@@ -6112,8 +6125,8 @@ export {
|
|
|
6112
6125
|
useGetNotificationCountSubscription,
|
|
6113
6126
|
useGetRelation,
|
|
6114
6127
|
useGetRelationByEventAndVendor,
|
|
6128
|
+
useGetResourceActivities,
|
|
6115
6129
|
useGetResourceConnections,
|
|
6116
|
-
useGetResourceViews,
|
|
6117
6130
|
useGetTester,
|
|
6118
6131
|
useGetTesters,
|
|
6119
6132
|
useGetUser,
|