@timardex/cluemart-shared 1.2.17 → 1.2.18
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/graphql/index.cjs +30 -27
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +6 -6
- package/dist/graphql/index.d.ts +6 -6
- package/dist/graphql/index.mjs +28 -25
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/index.cjs +30 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.mjs +28 -25
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceViews-B-u5nH1M.d.mts → resourceActivities-Cs8a9DgE.d.mts} +6 -6
- package/dist/{resourceViews-BZZt3kvl.d.ts → resourceActivities-eZ2Rycy_.d.ts} +6 -6
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -697,7 +697,7 @@ interface AdType extends AdFormData {
|
|
|
697
697
|
updatedAt: Date;
|
|
698
698
|
}
|
|
699
699
|
|
|
700
|
-
type
|
|
700
|
+
type ResourceActivityEntry = {
|
|
701
701
|
location: {
|
|
702
702
|
type: "Point";
|
|
703
703
|
coordinates: number[];
|
|
@@ -705,16 +705,16 @@ type ResourceViewEntry = {
|
|
|
705
705
|
userAgent: EnumOSPlatform;
|
|
706
706
|
viewedAt: Date;
|
|
707
707
|
};
|
|
708
|
-
type
|
|
708
|
+
type ResourceActivityType = {
|
|
709
709
|
_id: string;
|
|
710
710
|
resourceType: EnumResourceType;
|
|
711
711
|
resourceId: string;
|
|
712
|
-
views:
|
|
712
|
+
views: ResourceActivityEntry[];
|
|
713
713
|
};
|
|
714
|
-
type
|
|
714
|
+
type ResourceActivityInputType = {
|
|
715
715
|
resourceId: string;
|
|
716
716
|
resourceType: string;
|
|
717
|
-
views: Omit<
|
|
717
|
+
views: Omit<ResourceActivityEntry, "viewedAt" | "location"> & {
|
|
718
718
|
location: {
|
|
719
719
|
coordinates: number[];
|
|
720
720
|
} | null;
|
|
@@ -1271,17 +1271,17 @@ declare const useGetAdsByRegion: (region: string, status?: EnumAdStatus) => {
|
|
|
1271
1271
|
}>>;
|
|
1272
1272
|
};
|
|
1273
1273
|
|
|
1274
|
-
declare const
|
|
1275
|
-
|
|
1274
|
+
declare const useCreateResourceActivity: () => {
|
|
1275
|
+
createResourceActivity: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1276
1276
|
error: _apollo_client.ApolloError | undefined;
|
|
1277
1277
|
loading: boolean;
|
|
1278
1278
|
};
|
|
1279
1279
|
|
|
1280
|
-
declare const
|
|
1280
|
+
declare const useGetResourceActivities: (resourceId: string, resourceType: EnumResourceType) => {
|
|
1281
1281
|
error: _apollo_client.ApolloError | undefined;
|
|
1282
1282
|
loading: boolean;
|
|
1283
1283
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1284
|
-
|
|
1284
|
+
resourceActivities: ResourceActivityType[];
|
|
1285
1285
|
};
|
|
1286
1286
|
|
|
1287
1287
|
interface PlacePrediction {
|
|
@@ -1468,4 +1468,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1468
1468
|
declare const paymentMethodOptions: OptionItem[];
|
|
1469
1469
|
declare function normalizeUrl(url: string): string;
|
|
1470
1470
|
|
|
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
|
|
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 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
|
@@ -697,7 +697,7 @@ interface AdType extends AdFormData {
|
|
|
697
697
|
updatedAt: Date;
|
|
698
698
|
}
|
|
699
699
|
|
|
700
|
-
type
|
|
700
|
+
type ResourceActivityEntry = {
|
|
701
701
|
location: {
|
|
702
702
|
type: "Point";
|
|
703
703
|
coordinates: number[];
|
|
@@ -705,16 +705,16 @@ type ResourceViewEntry = {
|
|
|
705
705
|
userAgent: EnumOSPlatform;
|
|
706
706
|
viewedAt: Date;
|
|
707
707
|
};
|
|
708
|
-
type
|
|
708
|
+
type ResourceActivityType = {
|
|
709
709
|
_id: string;
|
|
710
710
|
resourceType: EnumResourceType;
|
|
711
711
|
resourceId: string;
|
|
712
|
-
views:
|
|
712
|
+
views: ResourceActivityEntry[];
|
|
713
713
|
};
|
|
714
|
-
type
|
|
714
|
+
type ResourceActivityInputType = {
|
|
715
715
|
resourceId: string;
|
|
716
716
|
resourceType: string;
|
|
717
|
-
views: Omit<
|
|
717
|
+
views: Omit<ResourceActivityEntry, "viewedAt" | "location"> & {
|
|
718
718
|
location: {
|
|
719
719
|
coordinates: number[];
|
|
720
720
|
} | null;
|
|
@@ -1271,17 +1271,17 @@ declare const useGetAdsByRegion: (region: string, status?: EnumAdStatus) => {
|
|
|
1271
1271
|
}>>;
|
|
1272
1272
|
};
|
|
1273
1273
|
|
|
1274
|
-
declare const
|
|
1275
|
-
|
|
1274
|
+
declare const useCreateResourceActivity: () => {
|
|
1275
|
+
createResourceActivity: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1276
1276
|
error: _apollo_client.ApolloError | undefined;
|
|
1277
1277
|
loading: boolean;
|
|
1278
1278
|
};
|
|
1279
1279
|
|
|
1280
|
-
declare const
|
|
1280
|
+
declare const useGetResourceActivities: (resourceId: string, resourceType: EnumResourceType) => {
|
|
1281
1281
|
error: _apollo_client.ApolloError | undefined;
|
|
1282
1282
|
loading: boolean;
|
|
1283
1283
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1284
|
-
|
|
1284
|
+
resourceActivities: ResourceActivityType[];
|
|
1285
1285
|
};
|
|
1286
1286
|
|
|
1287
1287
|
interface PlacePrediction {
|
|
@@ -1468,4 +1468,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1468
1468
|
declare const paymentMethodOptions: OptionItem[];
|
|
1469
1469
|
declare function normalizeUrl(url: string): string;
|
|
1470
1470
|
|
|
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
|
|
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 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
|
@@ -4416,32 +4416,32 @@ 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
|
views {
|
|
@@ -4454,18 +4454,21 @@ var RESOURCE_VIEWS_FIELDS_FRAGMENT = gql26`
|
|
|
4454
4454
|
}
|
|
4455
4455
|
}
|
|
4456
4456
|
`;
|
|
4457
|
-
var
|
|
4458
|
-
query
|
|
4459
|
-
|
|
4460
|
-
|
|
4457
|
+
var GET_RESOURCE_ACTIVITIES = gql26`
|
|
4458
|
+
query getResourceActivities(
|
|
4459
|
+
$resourceType: ResourceTypeEnum!
|
|
4460
|
+
$resourceId: ID!
|
|
4461
|
+
) {
|
|
4462
|
+
resourceActivities(resourceType: $resourceType, resourceId: $resourceId) {
|
|
4463
|
+
...ResourceActivitiesFields
|
|
4461
4464
|
}
|
|
4462
4465
|
}
|
|
4463
|
-
${
|
|
4466
|
+
${RESOURCE_ACTIVITIES_FIELDS_FRAGMENT}
|
|
4464
4467
|
`;
|
|
4465
4468
|
|
|
4466
|
-
// src/graphql/hooks/
|
|
4467
|
-
var
|
|
4468
|
-
const { data, loading, error, refetch } = useQuery9(
|
|
4469
|
+
// src/graphql/hooks/resourceActivities/hooksQuery.ts
|
|
4470
|
+
var useGetResourceActivities = (resourceId, resourceType) => {
|
|
4471
|
+
const { data, loading, error, refetch } = useQuery9(GET_RESOURCE_ACTIVITIES, {
|
|
4469
4472
|
fetchPolicy: "network-only",
|
|
4470
4473
|
variables: { resourceId, resourceType }
|
|
4471
4474
|
});
|
|
@@ -4473,7 +4476,7 @@ var useGetResourceViews = (resourceId, resourceType) => {
|
|
|
4473
4476
|
error,
|
|
4474
4477
|
loading,
|
|
4475
4478
|
refetch,
|
|
4476
|
-
|
|
4479
|
+
resourceActivities: data?.resourceActivities
|
|
4477
4480
|
};
|
|
4478
4481
|
};
|
|
4479
4482
|
|
|
@@ -6081,7 +6084,7 @@ export {
|
|
|
6081
6084
|
useCreatePoster,
|
|
6082
6085
|
useCreatePushToken,
|
|
6083
6086
|
useCreateRelation,
|
|
6084
|
-
|
|
6087
|
+
useCreateResourceActivity,
|
|
6085
6088
|
useCreateTester,
|
|
6086
6089
|
useCreateUser,
|
|
6087
6090
|
useCreateVendor,
|
|
@@ -6112,8 +6115,8 @@ export {
|
|
|
6112
6115
|
useGetNotificationCountSubscription,
|
|
6113
6116
|
useGetRelation,
|
|
6114
6117
|
useGetRelationByEventAndVendor,
|
|
6118
|
+
useGetResourceActivities,
|
|
6115
6119
|
useGetResourceConnections,
|
|
6116
|
-
useGetResourceViews,
|
|
6117
6120
|
useGetTester,
|
|
6118
6121
|
useGetTesters,
|
|
6119
6122
|
useGetUser,
|