@timardex/cluemart-shared 1.2.16 → 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 +152 -31
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +37 -9
- package/dist/graphql/index.d.ts +37 -9
- package/dist/graphql/index.mjs +146 -29
- 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 +152 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +46 -18
- package/dist/index.d.ts +46 -18
- package/dist/index.mjs +146 -29
- 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 +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/{ad-D6-mYEzV.d.ts → ad-0fMmeab1.d.ts} +6 -6
- package/dist/{ad-Dj1GOSzC.d.mts → ad-BozU03cK.d.mts} +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -613,13 +613,13 @@ type UserActivity = {
|
|
|
613
613
|
events: string[];
|
|
614
614
|
vendors: string[];
|
|
615
615
|
};
|
|
616
|
-
|
|
616
|
+
going: {
|
|
617
617
|
events: {
|
|
618
618
|
resourceId: string;
|
|
619
619
|
startDate: string;
|
|
620
620
|
}[];
|
|
621
621
|
};
|
|
622
|
-
|
|
622
|
+
interests: {
|
|
623
623
|
events: {
|
|
624
624
|
resourceId: string;
|
|
625
625
|
startDate: string;
|
|
@@ -633,20 +633,20 @@ interface UserType {
|
|
|
633
633
|
createdAt: string;
|
|
634
634
|
deletedAt: string | null;
|
|
635
635
|
email: string;
|
|
636
|
-
|
|
637
|
-
userActivity: UserActivity | null;
|
|
636
|
+
events: string[] | null;
|
|
638
637
|
firstName: string;
|
|
638
|
+
isTester: boolean;
|
|
639
639
|
lastName: string;
|
|
640
640
|
licences: EnumUserLicence[] | null;
|
|
641
|
-
|
|
641
|
+
partners?: PartnerType[] | null;
|
|
642
642
|
password: string;
|
|
643
643
|
platform: EnumOSPlatform | null;
|
|
644
644
|
preferredRegion: string;
|
|
645
|
-
partners?: PartnerType[] | null;
|
|
646
645
|
refreshToken: string | null;
|
|
647
646
|
role: EnumUserRole;
|
|
648
647
|
termsAgreement?: TermsAgreement | null;
|
|
649
648
|
updatedAt: string;
|
|
649
|
+
userActivity: UserActivity | null;
|
|
650
650
|
vendor: string | null;
|
|
651
651
|
}
|
|
652
652
|
|
|
@@ -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;
|
|
@@ -1167,6 +1167,26 @@ declare const useSelectPackage: () => {
|
|
|
1167
1167
|
loading: boolean;
|
|
1168
1168
|
selectPackage: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1169
1169
|
};
|
|
1170
|
+
declare const useAddUserInterestResource: () => {
|
|
1171
|
+
addUserInterestResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1172
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1173
|
+
loading: boolean;
|
|
1174
|
+
};
|
|
1175
|
+
declare const useRemoveUserInterestResource: () => {
|
|
1176
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1177
|
+
loading: boolean;
|
|
1178
|
+
removeUserInterestResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1179
|
+
};
|
|
1180
|
+
declare const useAddUserGoingResource: () => {
|
|
1181
|
+
addUserGoingResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1182
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1183
|
+
loading: boolean;
|
|
1184
|
+
};
|
|
1185
|
+
declare const useRemoveUserGoingResource: () => {
|
|
1186
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1187
|
+
loading: boolean;
|
|
1188
|
+
removeUserGoingResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1189
|
+
};
|
|
1170
1190
|
|
|
1171
1191
|
declare const useGetUsers: () => {
|
|
1172
1192
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1197,8 +1217,16 @@ declare const useGetUserActivities: () => {
|
|
|
1197
1217
|
loading: boolean;
|
|
1198
1218
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1199
1219
|
userActivities: {
|
|
1200
|
-
|
|
1201
|
-
|
|
1220
|
+
favourites: {
|
|
1221
|
+
events: EventType[];
|
|
1222
|
+
vendors: VendorType[];
|
|
1223
|
+
};
|
|
1224
|
+
going: {
|
|
1225
|
+
events: EventType[];
|
|
1226
|
+
};
|
|
1227
|
+
interests: {
|
|
1228
|
+
events: EventType[];
|
|
1229
|
+
};
|
|
1202
1230
|
};
|
|
1203
1231
|
};
|
|
1204
1232
|
|
|
@@ -1243,17 +1271,17 @@ declare const useGetAdsByRegion: (region: string, status?: EnumAdStatus) => {
|
|
|
1243
1271
|
}>>;
|
|
1244
1272
|
};
|
|
1245
1273
|
|
|
1246
|
-
declare const
|
|
1247
|
-
|
|
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>>;
|
|
1248
1276
|
error: _apollo_client.ApolloError | undefined;
|
|
1249
1277
|
loading: boolean;
|
|
1250
1278
|
};
|
|
1251
1279
|
|
|
1252
|
-
declare const
|
|
1280
|
+
declare const useGetResourceActivities: (resourceId: string, resourceType: EnumResourceType) => {
|
|
1253
1281
|
error: _apollo_client.ApolloError | undefined;
|
|
1254
1282
|
loading: boolean;
|
|
1255
1283
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1256
|
-
|
|
1284
|
+
resourceActivities: ResourceActivityType[];
|
|
1257
1285
|
};
|
|
1258
1286
|
|
|
1259
1287
|
interface PlacePrediction {
|
|
@@ -1440,4 +1468,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1440
1468
|
declare const paymentMethodOptions: OptionItem[];
|
|
1441
1469
|
declare function normalizeUrl(url: string): string;
|
|
1442
1470
|
|
|
1443
|
-
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
|
@@ -613,13 +613,13 @@ type UserActivity = {
|
|
|
613
613
|
events: string[];
|
|
614
614
|
vendors: string[];
|
|
615
615
|
};
|
|
616
|
-
|
|
616
|
+
going: {
|
|
617
617
|
events: {
|
|
618
618
|
resourceId: string;
|
|
619
619
|
startDate: string;
|
|
620
620
|
}[];
|
|
621
621
|
};
|
|
622
|
-
|
|
622
|
+
interests: {
|
|
623
623
|
events: {
|
|
624
624
|
resourceId: string;
|
|
625
625
|
startDate: string;
|
|
@@ -633,20 +633,20 @@ interface UserType {
|
|
|
633
633
|
createdAt: string;
|
|
634
634
|
deletedAt: string | null;
|
|
635
635
|
email: string;
|
|
636
|
-
|
|
637
|
-
userActivity: UserActivity | null;
|
|
636
|
+
events: string[] | null;
|
|
638
637
|
firstName: string;
|
|
638
|
+
isTester: boolean;
|
|
639
639
|
lastName: string;
|
|
640
640
|
licences: EnumUserLicence[] | null;
|
|
641
|
-
|
|
641
|
+
partners?: PartnerType[] | null;
|
|
642
642
|
password: string;
|
|
643
643
|
platform: EnumOSPlatform | null;
|
|
644
644
|
preferredRegion: string;
|
|
645
|
-
partners?: PartnerType[] | null;
|
|
646
645
|
refreshToken: string | null;
|
|
647
646
|
role: EnumUserRole;
|
|
648
647
|
termsAgreement?: TermsAgreement | null;
|
|
649
648
|
updatedAt: string;
|
|
649
|
+
userActivity: UserActivity | null;
|
|
650
650
|
vendor: string | null;
|
|
651
651
|
}
|
|
652
652
|
|
|
@@ -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;
|
|
@@ -1167,6 +1167,26 @@ declare const useSelectPackage: () => {
|
|
|
1167
1167
|
loading: boolean;
|
|
1168
1168
|
selectPackage: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1169
1169
|
};
|
|
1170
|
+
declare const useAddUserInterestResource: () => {
|
|
1171
|
+
addUserInterestResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1172
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1173
|
+
loading: boolean;
|
|
1174
|
+
};
|
|
1175
|
+
declare const useRemoveUserInterestResource: () => {
|
|
1176
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1177
|
+
loading: boolean;
|
|
1178
|
+
removeUserInterestResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1179
|
+
};
|
|
1180
|
+
declare const useAddUserGoingResource: () => {
|
|
1181
|
+
addUserGoingResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1182
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1183
|
+
loading: boolean;
|
|
1184
|
+
};
|
|
1185
|
+
declare const useRemoveUserGoingResource: () => {
|
|
1186
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1187
|
+
loading: boolean;
|
|
1188
|
+
removeUserGoingResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
1189
|
+
};
|
|
1170
1190
|
|
|
1171
1191
|
declare const useGetUsers: () => {
|
|
1172
1192
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1197,8 +1217,16 @@ declare const useGetUserActivities: () => {
|
|
|
1197
1217
|
loading: boolean;
|
|
1198
1218
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1199
1219
|
userActivities: {
|
|
1200
|
-
|
|
1201
|
-
|
|
1220
|
+
favourites: {
|
|
1221
|
+
events: EventType[];
|
|
1222
|
+
vendors: VendorType[];
|
|
1223
|
+
};
|
|
1224
|
+
going: {
|
|
1225
|
+
events: EventType[];
|
|
1226
|
+
};
|
|
1227
|
+
interests: {
|
|
1228
|
+
events: EventType[];
|
|
1229
|
+
};
|
|
1202
1230
|
};
|
|
1203
1231
|
};
|
|
1204
1232
|
|
|
@@ -1243,17 +1271,17 @@ declare const useGetAdsByRegion: (region: string, status?: EnumAdStatus) => {
|
|
|
1243
1271
|
}>>;
|
|
1244
1272
|
};
|
|
1245
1273
|
|
|
1246
|
-
declare const
|
|
1247
|
-
|
|
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>>;
|
|
1248
1276
|
error: _apollo_client.ApolloError | undefined;
|
|
1249
1277
|
loading: boolean;
|
|
1250
1278
|
};
|
|
1251
1279
|
|
|
1252
|
-
declare const
|
|
1280
|
+
declare const useGetResourceActivities: (resourceId: string, resourceType: EnumResourceType) => {
|
|
1253
1281
|
error: _apollo_client.ApolloError | undefined;
|
|
1254
1282
|
loading: boolean;
|
|
1255
1283
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
1256
|
-
|
|
1284
|
+
resourceActivities: ResourceActivityType[];
|
|
1257
1285
|
};
|
|
1258
1286
|
|
|
1259
1287
|
interface PlacePrediction {
|
|
@@ -1440,4 +1468,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1440
1468
|
declare const paymentMethodOptions: OptionItem[];
|
|
1441
1469
|
declare function normalizeUrl(url: string): string;
|
|
1442
1470
|
|
|
1443
|
-
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
|
@@ -4041,6 +4041,70 @@ var SELECT_PACKAGE_MUTATION = gql22`
|
|
|
4041
4041
|
}
|
|
4042
4042
|
}
|
|
4043
4043
|
`;
|
|
4044
|
+
var ADD_USER_INTEREST_RESOURCE_MUTATION = gql22`
|
|
4045
|
+
mutation addUserInterestResource(
|
|
4046
|
+
$resourceId: ID!
|
|
4047
|
+
$startDate: String!
|
|
4048
|
+
$userId: ID!
|
|
4049
|
+
) {
|
|
4050
|
+
addUserInterestResource(
|
|
4051
|
+
resourceId: $resourceId
|
|
4052
|
+
startDate: $startDate
|
|
4053
|
+
userId: $userId
|
|
4054
|
+
) {
|
|
4055
|
+
...UserFields
|
|
4056
|
+
}
|
|
4057
|
+
}
|
|
4058
|
+
${USER_FIELDS_FRAGMENT}
|
|
4059
|
+
`;
|
|
4060
|
+
var REMOVE_USER_INTEREST_RESOURCE_MUTATION = gql22`
|
|
4061
|
+
mutation removeUserInterestResource(
|
|
4062
|
+
$resourceId: ID!
|
|
4063
|
+
$startDate: String!
|
|
4064
|
+
$userId: ID!
|
|
4065
|
+
) {
|
|
4066
|
+
removeUserInterestResource(
|
|
4067
|
+
resourceId: $resourceId
|
|
4068
|
+
startDate: $startDate
|
|
4069
|
+
userId: $userId
|
|
4070
|
+
) {
|
|
4071
|
+
...UserFields
|
|
4072
|
+
}
|
|
4073
|
+
}
|
|
4074
|
+
${USER_FIELDS_FRAGMENT}
|
|
4075
|
+
`;
|
|
4076
|
+
var ADD_USER_GOING_RESOURCE_MUTATION = gql22`
|
|
4077
|
+
mutation addUserGoingResource(
|
|
4078
|
+
$resourceId: ID!
|
|
4079
|
+
$startDate: String!
|
|
4080
|
+
$userId: ID!
|
|
4081
|
+
) {
|
|
4082
|
+
addUserGoingResource(
|
|
4083
|
+
resourceId: $resourceId
|
|
4084
|
+
startDate: $startDate
|
|
4085
|
+
userId: $userId
|
|
4086
|
+
) {
|
|
4087
|
+
...UserFields
|
|
4088
|
+
}
|
|
4089
|
+
}
|
|
4090
|
+
${USER_FIELDS_FRAGMENT}
|
|
4091
|
+
`;
|
|
4092
|
+
var REMOVE_USER_GOING_RESOURCE_MUTATION = gql22`
|
|
4093
|
+
mutation removeUserGoingResource(
|
|
4094
|
+
$resourceId: ID!
|
|
4095
|
+
$startDate: String!
|
|
4096
|
+
$userId: ID!
|
|
4097
|
+
) {
|
|
4098
|
+
removeUserGoingResource(
|
|
4099
|
+
resourceId: $resourceId
|
|
4100
|
+
startDate: $startDate
|
|
4101
|
+
userId: $userId
|
|
4102
|
+
) {
|
|
4103
|
+
...UserFields
|
|
4104
|
+
}
|
|
4105
|
+
}
|
|
4106
|
+
${USER_FIELDS_FRAGMENT}
|
|
4107
|
+
`;
|
|
4044
4108
|
|
|
4045
4109
|
// src/graphql/hooks/user/hooksMutation.ts
|
|
4046
4110
|
var useCreateUser = () => {
|
|
@@ -4100,6 +4164,46 @@ var useSelectPackage = () => {
|
|
|
4100
4164
|
);
|
|
4101
4165
|
return { error, loading, selectPackage };
|
|
4102
4166
|
};
|
|
4167
|
+
var useAddUserInterestResource = () => {
|
|
4168
|
+
const [addUserInterestResource, { loading, error }] = useMutation12(
|
|
4169
|
+
ADD_USER_INTEREST_RESOURCE_MUTATION,
|
|
4170
|
+
{
|
|
4171
|
+
awaitRefetchQueries: true,
|
|
4172
|
+
refetchQueries: [{ query: GET_USER_ACTIVITIES }]
|
|
4173
|
+
}
|
|
4174
|
+
);
|
|
4175
|
+
return { addUserInterestResource, error, loading };
|
|
4176
|
+
};
|
|
4177
|
+
var useRemoveUserInterestResource = () => {
|
|
4178
|
+
const [removeUserInterestResource, { loading, error }] = useMutation12(
|
|
4179
|
+
REMOVE_USER_INTEREST_RESOURCE_MUTATION,
|
|
4180
|
+
{
|
|
4181
|
+
awaitRefetchQueries: true,
|
|
4182
|
+
refetchQueries: [{ query: GET_USER_ACTIVITIES }]
|
|
4183
|
+
}
|
|
4184
|
+
);
|
|
4185
|
+
return { error, loading, removeUserInterestResource };
|
|
4186
|
+
};
|
|
4187
|
+
var useAddUserGoingResource = () => {
|
|
4188
|
+
const [addUserGoingResource, { loading, error }] = useMutation12(
|
|
4189
|
+
ADD_USER_GOING_RESOURCE_MUTATION,
|
|
4190
|
+
{
|
|
4191
|
+
awaitRefetchQueries: true,
|
|
4192
|
+
refetchQueries: [{ query: GET_USER_ACTIVITIES }]
|
|
4193
|
+
}
|
|
4194
|
+
);
|
|
4195
|
+
return { addUserGoingResource, error, loading };
|
|
4196
|
+
};
|
|
4197
|
+
var useRemoveUserGoingResource = () => {
|
|
4198
|
+
const [removeUserGoingResource, { loading, error }] = useMutation12(
|
|
4199
|
+
REMOVE_USER_GOING_RESOURCE_MUTATION,
|
|
4200
|
+
{
|
|
4201
|
+
awaitRefetchQueries: true,
|
|
4202
|
+
refetchQueries: [{ query: GET_USER_ACTIVITIES }]
|
|
4203
|
+
}
|
|
4204
|
+
);
|
|
4205
|
+
return { error, loading, removeUserGoingResource };
|
|
4206
|
+
};
|
|
4103
4207
|
|
|
4104
4208
|
// src/graphql/hooks/user/hooksQuery.ts
|
|
4105
4209
|
import { useQuery as useQuery7 } from "@apollo/client";
|
|
@@ -4135,11 +4239,17 @@ var useGetUserActivities = () => {
|
|
|
4135
4239
|
const { loading, error, data, refetch } = useQuery7(GET_USER_ACTIVITIES, {
|
|
4136
4240
|
fetchPolicy: "network-only"
|
|
4137
4241
|
});
|
|
4138
|
-
const events = data?.userActivities.events;
|
|
4139
|
-
const vendors = data?.userActivities.vendors;
|
|
4140
4242
|
const userActivities = {
|
|
4141
|
-
|
|
4142
|
-
|
|
4243
|
+
favourites: {
|
|
4244
|
+
events: data?.userActivities.favourites.events,
|
|
4245
|
+
vendors: data?.userActivities.favourites.vendors
|
|
4246
|
+
},
|
|
4247
|
+
going: {
|
|
4248
|
+
events: data?.userActivities.going.events
|
|
4249
|
+
},
|
|
4250
|
+
interests: {
|
|
4251
|
+
events: data?.userActivities.interests.events
|
|
4252
|
+
}
|
|
4143
4253
|
};
|
|
4144
4254
|
return { error, loading, refetch, userActivities };
|
|
4145
4255
|
};
|
|
@@ -4306,32 +4416,32 @@ var useGetAdsByRegion = (region, status) => {
|
|
|
4306
4416
|
};
|
|
4307
4417
|
};
|
|
4308
4418
|
|
|
4309
|
-
// src/graphql/hooks/
|
|
4419
|
+
// src/graphql/hooks/resourceActivities/hooksMutation.ts
|
|
4310
4420
|
import { useMutation as useMutation14 } from "@apollo/client";
|
|
4311
4421
|
|
|
4312
|
-
// src/graphql/mutations/
|
|
4422
|
+
// src/graphql/mutations/resourceActivities.ts
|
|
4313
4423
|
import { gql as gql25 } from "@apollo/client";
|
|
4314
|
-
var
|
|
4315
|
-
mutation
|
|
4316
|
-
|
|
4424
|
+
var CREATE_RESOURCE_ACTIVITY_MUTATION = gql25`
|
|
4425
|
+
mutation createResourceActivity($input: ResourceActivityInputType!) {
|
|
4426
|
+
createResourceActivity(input: $input)
|
|
4317
4427
|
}
|
|
4318
4428
|
`;
|
|
4319
4429
|
|
|
4320
|
-
// src/graphql/hooks/
|
|
4321
|
-
var
|
|
4322
|
-
const [
|
|
4323
|
-
|
|
4430
|
+
// src/graphql/hooks/resourceActivities/hooksMutation.ts
|
|
4431
|
+
var useCreateResourceActivity = () => {
|
|
4432
|
+
const [createResourceActivity, { loading, error }] = useMutation14(
|
|
4433
|
+
CREATE_RESOURCE_ACTIVITY_MUTATION
|
|
4324
4434
|
);
|
|
4325
|
-
return {
|
|
4435
|
+
return { createResourceActivity, error, loading };
|
|
4326
4436
|
};
|
|
4327
4437
|
|
|
4328
|
-
// src/graphql/hooks/
|
|
4438
|
+
// src/graphql/hooks/resourceActivities/hooksQuery.ts
|
|
4329
4439
|
import { useQuery as useQuery9 } from "@apollo/client";
|
|
4330
4440
|
|
|
4331
|
-
// src/graphql/queries/
|
|
4441
|
+
// src/graphql/queries/resourceActivities.ts
|
|
4332
4442
|
import { gql as gql26 } from "@apollo/client";
|
|
4333
|
-
var
|
|
4334
|
-
fragment
|
|
4443
|
+
var RESOURCE_ACTIVITIES_FIELDS_FRAGMENT = gql26`
|
|
4444
|
+
fragment ResourceActivitiesFields on ResourceActivitiesType {
|
|
4335
4445
|
resourceId
|
|
4336
4446
|
resourceType
|
|
4337
4447
|
views {
|
|
@@ -4344,18 +4454,21 @@ var RESOURCE_VIEWS_FIELDS_FRAGMENT = gql26`
|
|
|
4344
4454
|
}
|
|
4345
4455
|
}
|
|
4346
4456
|
`;
|
|
4347
|
-
var
|
|
4348
|
-
query
|
|
4349
|
-
|
|
4350
|
-
|
|
4457
|
+
var GET_RESOURCE_ACTIVITIES = gql26`
|
|
4458
|
+
query getResourceActivities(
|
|
4459
|
+
$resourceType: ResourceTypeEnum!
|
|
4460
|
+
$resourceId: ID!
|
|
4461
|
+
) {
|
|
4462
|
+
resourceActivities(resourceType: $resourceType, resourceId: $resourceId) {
|
|
4463
|
+
...ResourceActivitiesFields
|
|
4351
4464
|
}
|
|
4352
4465
|
}
|
|
4353
|
-
${
|
|
4466
|
+
${RESOURCE_ACTIVITIES_FIELDS_FRAGMENT}
|
|
4354
4467
|
`;
|
|
4355
4468
|
|
|
4356
|
-
// src/graphql/hooks/
|
|
4357
|
-
var
|
|
4358
|
-
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, {
|
|
4359
4472
|
fetchPolicy: "network-only",
|
|
4360
4473
|
variables: { resourceId, resourceType }
|
|
4361
4474
|
});
|
|
@@ -4363,7 +4476,7 @@ var useGetResourceViews = (resourceId, resourceType) => {
|
|
|
4363
4476
|
error,
|
|
4364
4477
|
loading,
|
|
4365
4478
|
refetch,
|
|
4366
|
-
|
|
4479
|
+
resourceActivities: data?.resourceActivities
|
|
4367
4480
|
};
|
|
4368
4481
|
};
|
|
4369
4482
|
|
|
@@ -5959,6 +6072,8 @@ export {
|
|
|
5959
6072
|
useAdForm,
|
|
5960
6073
|
useAddParticipantToChat,
|
|
5961
6074
|
useAddUserFavouriteResource,
|
|
6075
|
+
useAddUserGoingResource,
|
|
6076
|
+
useAddUserInterestResource,
|
|
5962
6077
|
useAdminUpdateResourceType,
|
|
5963
6078
|
useContactUs,
|
|
5964
6079
|
useContactUsForm,
|
|
@@ -5969,7 +6084,7 @@ export {
|
|
|
5969
6084
|
useCreatePoster,
|
|
5970
6085
|
useCreatePushToken,
|
|
5971
6086
|
useCreateRelation,
|
|
5972
|
-
|
|
6087
|
+
useCreateResourceActivity,
|
|
5973
6088
|
useCreateTester,
|
|
5974
6089
|
useCreateUser,
|
|
5975
6090
|
useCreateVendor,
|
|
@@ -6000,8 +6115,8 @@ export {
|
|
|
6000
6115
|
useGetNotificationCountSubscription,
|
|
6001
6116
|
useGetRelation,
|
|
6002
6117
|
useGetRelationByEventAndVendor,
|
|
6118
|
+
useGetResourceActivities,
|
|
6003
6119
|
useGetResourceConnections,
|
|
6004
|
-
useGetResourceViews,
|
|
6005
6120
|
useGetTester,
|
|
6006
6121
|
useGetTesters,
|
|
6007
6122
|
useGetUser,
|
|
@@ -6028,6 +6143,8 @@ export {
|
|
|
6028
6143
|
useRegisterForm,
|
|
6029
6144
|
useRemoveParticipantFromChat,
|
|
6030
6145
|
useRemoveUserFavouriteResource,
|
|
6146
|
+
useRemoveUserGoingResource,
|
|
6147
|
+
useRemoveUserInterestResource,
|
|
6031
6148
|
useRequestPasswordReset,
|
|
6032
6149
|
useRequestPasswordResetForm,
|
|
6033
6150
|
useResetPassword,
|