@timardex/cluemart-shared 1.0.75 → 1.0.77
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 +113 -88
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +7 -1
- package/dist/graphql/index.d.ts +7 -1
- package/dist/graphql/index.mjs +86 -62
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +114 -89
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.mjs +87 -63
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -796,6 +796,12 @@ declare const useGetMarketInfo: (marketId: string) => {
|
|
|
796
796
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
797
797
|
};
|
|
798
798
|
|
|
799
|
+
declare const useSetupNotificationToken: () => {
|
|
800
|
+
error: _apollo_client.ApolloError | undefined;
|
|
801
|
+
loading: boolean;
|
|
802
|
+
setupNotificationToken: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
803
|
+
};
|
|
804
|
+
|
|
799
805
|
declare const useCreatePoster: () => {
|
|
800
806
|
createPoster: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
801
807
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1202,4 +1208,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1202
1208
|
declare const paymentMethodOptions: OptionItem[];
|
|
1203
1209
|
declare function normalizeUrl(url: string): string;
|
|
1204
1210
|
|
|
1205
|
-
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateContactUsFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationType, type Nullable, type OptionItem, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SocialMediaType, type StallType, type StallholderAttributes, type StallholderFormData, type StallholderInfoFormData, type StallholderInfoType, type StallholderLocation, type StallholderType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, contactUsFields, darkColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderFormValues, defaultStallholderInfoFormValues, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotification, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
|
1211
|
+
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateContactUsFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationType, type Nullable, type OptionItem, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SocialMediaType, type StallType, type StallholderAttributes, type StallholderFormData, type StallholderInfoFormData, type StallholderInfoType, type StallholderLocation, type StallholderType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, contactUsFields, darkColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderFormValues, defaultStallholderInfoFormValues, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotification, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useSetupNotificationToken, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
package/dist/index.d.ts
CHANGED
|
@@ -796,6 +796,12 @@ declare const useGetMarketInfo: (marketId: string) => {
|
|
|
796
796
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
797
797
|
};
|
|
798
798
|
|
|
799
|
+
declare const useSetupNotificationToken: () => {
|
|
800
|
+
error: _apollo_client.ApolloError | undefined;
|
|
801
|
+
loading: boolean;
|
|
802
|
+
setupNotificationToken: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
803
|
+
};
|
|
804
|
+
|
|
799
805
|
declare const useCreatePoster: () => {
|
|
800
806
|
createPoster: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
801
807
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1202,4 +1208,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1202
1208
|
declare const paymentMethodOptions: OptionItem[];
|
|
1203
1209
|
declare function normalizeUrl(url: string): string;
|
|
1204
1210
|
|
|
1205
|
-
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateContactUsFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationType, type Nullable, type OptionItem, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SocialMediaType, type StallType, type StallholderAttributes, type StallholderFormData, type StallholderInfoFormData, type StallholderInfoType, type StallholderLocation, type StallholderType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, contactUsFields, darkColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderFormValues, defaultStallholderInfoFormValues, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotification, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
|
1211
|
+
export { type AdminUpdateResourceType, type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type ContactUsFormData, type CreateContactUsFormData, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderFormData, type CreateStallholderInfoFormData, type CreateTestersFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, EnumOSType, EnumPaymentMethod, EnumRegions, EnumRelationResource, EnumResourceType, EnumResourceTypeIcon, EnumSocialMedia, EnumUserLicence, EnumUserRole, type FormDateField, type FormField, type GeocodeLocation, type ImageObjectType, ImageTypeEnum, type LocationType, type LoginFormData, type MapMultiLocation, type MarketFormData, type MarketInfoFormData, type MarketInfoType, type MarketType, type MarketWithConnectionDatesType, type NotificationType, type Nullable, type OptionItem, type PaymentInfoType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationType, type RequestPasswordResetFormData, type Requirement, type ResetPasswordFormData, type ResourceConnectionsType, type ResourceImageType, SAVED_EMAIL_KEY, SAVED_PASSWORD_KEY, SAVED_REFRESH_TOKEN_KEY, SAVED_TOKEN_KEY, type SatllholderWithConnectionDatesType, type SocialMediaType, type StallType, type StallholderAttributes, type StallholderFormData, type StallholderInfoFormData, type StallholderInfoType, type StallholderLocation, type StallholderType, type Subcategory, type SubcategoryItems, type TesterType, type TestersFormData, USER_STORAGE_KEY, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, contactUsFields, darkColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderFormValues, defaultStallholderInfoFormValues, fonts, formatDate, formatTimestamp, getCurrentAndFutureDates, globalDefaultValues, isFutureDatesBeforeThreshold, lightColors, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentInfo, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, sortDatesChronologically, stallTypeOptions, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, testersFields, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useAdminUpdateResourceType, useContactUs, useContactUsForm, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreateRelation, useCreateStallholder, useCreateStallholderInfo, useCreateTester, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useDeleteTester, useDeleteUser, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotification, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderInfo, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetTester, useGetTesters, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUserStallholder, useGetUsers, useLocationSearch, useLogin, useLoginForm, useLogout, useMarketForm, useMarketInfoForm, useRefreshToken, useRegister, useRegisterForm, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useRequestPasswordResetForm, useResetPassword, useResetPasswordForm, useSearchMarkets, useSearchStallholders, useSendChatMessage, useSetupNotificationToken, useStallholderForm, useStallholderInfoForm, useTestersForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderInfo, useUpdateTester, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
package/dist/index.mjs
CHANGED
|
@@ -2744,12 +2744,35 @@ var useGetMarketInfo = (marketId) => {
|
|
|
2744
2744
|
return { error, loading, marketInfo: marketInfo2, refetch };
|
|
2745
2745
|
};
|
|
2746
2746
|
|
|
2747
|
-
// src/graphql/hooks/
|
|
2747
|
+
// src/graphql/hooks/notifications.ts
|
|
2748
2748
|
import { useMutation as useMutation6 } from "@apollo/client";
|
|
2749
2749
|
|
|
2750
|
-
// src/graphql/mutations/
|
|
2750
|
+
// src/graphql/mutations/notification.ts
|
|
2751
2751
|
import { gql as gql11 } from "@apollo/client";
|
|
2752
|
-
var
|
|
2752
|
+
var SETUP_NOTIFICATION_TOKEN_MUTATION = gql11`
|
|
2753
|
+
mutation setupNotificationToken($token: String!) {
|
|
2754
|
+
setupNotificationToken(token: $token)
|
|
2755
|
+
}
|
|
2756
|
+
`;
|
|
2757
|
+
|
|
2758
|
+
// src/graphql/hooks/notifications.ts
|
|
2759
|
+
var useSetupNotificationToken = () => {
|
|
2760
|
+
const [setupNotificationToken, { loading, error }] = useMutation6(
|
|
2761
|
+
SETUP_NOTIFICATION_TOKEN_MUTATION
|
|
2762
|
+
);
|
|
2763
|
+
return {
|
|
2764
|
+
error,
|
|
2765
|
+
loading,
|
|
2766
|
+
setupNotificationToken
|
|
2767
|
+
};
|
|
2768
|
+
};
|
|
2769
|
+
|
|
2770
|
+
// src/graphql/hooks/poster.ts
|
|
2771
|
+
import { useMutation as useMutation7 } from "@apollo/client";
|
|
2772
|
+
|
|
2773
|
+
// src/graphql/mutations/poster.ts
|
|
2774
|
+
import { gql as gql12 } from "@apollo/client";
|
|
2775
|
+
var CREATE_POSTER_MUTATION = gql12`
|
|
2753
2776
|
mutation createPoster($input: PosterInputType!) {
|
|
2754
2777
|
createPoster(input: $input) {
|
|
2755
2778
|
message
|
|
@@ -2759,21 +2782,21 @@ var CREATE_POSTER_MUTATION = gql11`
|
|
|
2759
2782
|
|
|
2760
2783
|
// src/graphql/hooks/poster.ts
|
|
2761
2784
|
var useCreatePoster = () => {
|
|
2762
|
-
const [createPoster, { loading, error }] =
|
|
2785
|
+
const [createPoster, { loading, error }] = useMutation7(
|
|
2763
2786
|
CREATE_POSTER_MUTATION
|
|
2764
2787
|
);
|
|
2765
2788
|
return { createPoster, error, loading };
|
|
2766
2789
|
};
|
|
2767
2790
|
|
|
2768
2791
|
// src/graphql/hooks/relation/hooksMutation.ts
|
|
2769
|
-
import { useMutation as
|
|
2792
|
+
import { useMutation as useMutation8 } from "@apollo/client";
|
|
2770
2793
|
|
|
2771
2794
|
// src/graphql/mutations/relation.ts
|
|
2772
|
-
import { gql as
|
|
2795
|
+
import { gql as gql14 } from "@apollo/client";
|
|
2773
2796
|
|
|
2774
2797
|
// src/graphql/queries/relation.ts
|
|
2775
|
-
import { gql as
|
|
2776
|
-
var RELATION_DATES_FRAGMENT =
|
|
2798
|
+
import { gql as gql13 } from "@apollo/client";
|
|
2799
|
+
var RELATION_DATES_FRAGMENT = gql13`
|
|
2777
2800
|
fragment RelationDates on RelationDateType {
|
|
2778
2801
|
lastUpdateBy
|
|
2779
2802
|
paymentReference
|
|
@@ -2787,7 +2810,7 @@ var RELATION_DATES_FRAGMENT = gql12`
|
|
|
2787
2810
|
status
|
|
2788
2811
|
}
|
|
2789
2812
|
`;
|
|
2790
|
-
var RELATION_FIELDS_FRAGMENT =
|
|
2813
|
+
var RELATION_FIELDS_FRAGMENT = gql13`
|
|
2791
2814
|
fragment RelationFields on RelationType {
|
|
2792
2815
|
_id
|
|
2793
2816
|
apiMessage
|
|
@@ -2804,7 +2827,7 @@ var RELATION_FIELDS_FRAGMENT = gql12`
|
|
|
2804
2827
|
}
|
|
2805
2828
|
${RELATION_DATES_FRAGMENT}
|
|
2806
2829
|
`;
|
|
2807
|
-
var GET_RELATION =
|
|
2830
|
+
var GET_RELATION = gql13`
|
|
2808
2831
|
query getRelation($id: ID!) {
|
|
2809
2832
|
relation(_id: $id) {
|
|
2810
2833
|
...RelationFields
|
|
@@ -2812,7 +2835,7 @@ var GET_RELATION = gql12`
|
|
|
2812
2835
|
}
|
|
2813
2836
|
${RELATION_FIELDS_FRAGMENT}
|
|
2814
2837
|
`;
|
|
2815
|
-
var GET_RELATION_BY_MARKET_AND_STALLHOLDER =
|
|
2838
|
+
var GET_RELATION_BY_MARKET_AND_STALLHOLDER = gql13`
|
|
2816
2839
|
query getRelationByMarketAndStallholder($marketId: ID!, $stallholderId: ID!) {
|
|
2817
2840
|
relationByMarketAndStallholder(
|
|
2818
2841
|
marketId: $marketId
|
|
@@ -2823,7 +2846,7 @@ var GET_RELATION_BY_MARKET_AND_STALLHOLDER = gql12`
|
|
|
2823
2846
|
}
|
|
2824
2847
|
${RELATION_FIELDS_FRAGMENT}
|
|
2825
2848
|
`;
|
|
2826
|
-
var GET_MARKET_RELATIONS =
|
|
2849
|
+
var GET_MARKET_RELATIONS = gql13`
|
|
2827
2850
|
query getMarketRelations($marketId: ID!) {
|
|
2828
2851
|
marketRelations(marketId: $marketId) {
|
|
2829
2852
|
...RelationFields
|
|
@@ -2831,7 +2854,7 @@ var GET_MARKET_RELATIONS = gql12`
|
|
|
2831
2854
|
}
|
|
2832
2855
|
${RELATION_FIELDS_FRAGMENT}
|
|
2833
2856
|
`;
|
|
2834
|
-
var GET_STALLHOLDER_RELATIONS =
|
|
2857
|
+
var GET_STALLHOLDER_RELATIONS = gql13`
|
|
2835
2858
|
query getStallholderRelations($stallholderId: ID!) {
|
|
2836
2859
|
stallholderRelations(stallholderId: $stallholderId) {
|
|
2837
2860
|
...RelationFields
|
|
@@ -2839,7 +2862,7 @@ var GET_STALLHOLDER_RELATIONS = gql12`
|
|
|
2839
2862
|
}
|
|
2840
2863
|
${RELATION_FIELDS_FRAGMENT}
|
|
2841
2864
|
`;
|
|
2842
|
-
var GET_RESOURCE_CONNECTIONS =
|
|
2865
|
+
var GET_RESOURCE_CONNECTIONS = gql13`
|
|
2843
2866
|
query getResourceConnections(
|
|
2844
2867
|
$resourceId: ID!
|
|
2845
2868
|
$resourceType: ResourceTypeEnum!
|
|
@@ -2942,7 +2965,7 @@ var GET_RESOURCE_CONNECTIONS = gql12`
|
|
|
2942
2965
|
`;
|
|
2943
2966
|
|
|
2944
2967
|
// src/graphql/mutations/relation.ts
|
|
2945
|
-
var CREATE_RELATION_MUTATION =
|
|
2968
|
+
var CREATE_RELATION_MUTATION = gql14`
|
|
2946
2969
|
mutation createRelation($input: RelationInputType!) {
|
|
2947
2970
|
createRelation(input: $input) {
|
|
2948
2971
|
...RelationFields
|
|
@@ -2950,7 +2973,7 @@ var CREATE_RELATION_MUTATION = gql13`
|
|
|
2950
2973
|
}
|
|
2951
2974
|
${RELATION_FIELDS_FRAGMENT}
|
|
2952
2975
|
`;
|
|
2953
|
-
var UPDATE_RELATION_MUTATION =
|
|
2976
|
+
var UPDATE_RELATION_MUTATION = gql14`
|
|
2954
2977
|
mutation updateRelation($_id: ID!, $input: RelationInputType!) {
|
|
2955
2978
|
updateRelation(_id: $_id, input: $input) {
|
|
2956
2979
|
...RelationFields
|
|
@@ -2958,7 +2981,7 @@ var UPDATE_RELATION_MUTATION = gql13`
|
|
|
2958
2981
|
}
|
|
2959
2982
|
${RELATION_FIELDS_FRAGMENT}
|
|
2960
2983
|
`;
|
|
2961
|
-
var DELETE_RELATION_MUTATION =
|
|
2984
|
+
var DELETE_RELATION_MUTATION = gql14`
|
|
2962
2985
|
mutation deleteRelation($_id: ID!) {
|
|
2963
2986
|
deleteRelation(_id: $_id) {
|
|
2964
2987
|
...RelationFields
|
|
@@ -2970,7 +2993,7 @@ var DELETE_RELATION_MUTATION = gql13`
|
|
|
2970
2993
|
// src/graphql/hooks/relation/hooksMutation.ts
|
|
2971
2994
|
var fetchPolicy = "no-cache";
|
|
2972
2995
|
var useCreateRelation = () => {
|
|
2973
|
-
const [createRelation, { loading, error }] =
|
|
2996
|
+
const [createRelation, { loading, error }] = useMutation8(
|
|
2974
2997
|
CREATE_RELATION_MUTATION,
|
|
2975
2998
|
{
|
|
2976
2999
|
awaitRefetchQueries: true,
|
|
@@ -3022,7 +3045,7 @@ var useCreateRelation = () => {
|
|
|
3022
3045
|
return { createRelation, error, loading };
|
|
3023
3046
|
};
|
|
3024
3047
|
var useUpdateRelation = () => {
|
|
3025
|
-
const [updateRelation, { loading, error }] =
|
|
3048
|
+
const [updateRelation, { loading, error }] = useMutation8(
|
|
3026
3049
|
UPDATE_RELATION_MUTATION,
|
|
3027
3050
|
{
|
|
3028
3051
|
awaitRefetchQueries: true,
|
|
@@ -3070,7 +3093,7 @@ var useUpdateRelation = () => {
|
|
|
3070
3093
|
return { error, loading, updateRelation };
|
|
3071
3094
|
};
|
|
3072
3095
|
var useDeleteRelation = () => {
|
|
3073
|
-
const [deleteRelation, { loading, error }] =
|
|
3096
|
+
const [deleteRelation, { loading, error }] = useMutation8(
|
|
3074
3097
|
DELETE_RELATION_MUTATION,
|
|
3075
3098
|
{
|
|
3076
3099
|
awaitRefetchQueries: true,
|
|
@@ -3171,11 +3194,11 @@ var useGetResourceConnections = (resourceId, resourceType) => {
|
|
|
3171
3194
|
};
|
|
3172
3195
|
|
|
3173
3196
|
// src/graphql/hooks/stallholder/hooksMutation.ts
|
|
3174
|
-
import { useMutation as
|
|
3197
|
+
import { useMutation as useMutation9 } from "@apollo/client";
|
|
3175
3198
|
|
|
3176
3199
|
// src/graphql/mutations/stallholder.ts
|
|
3177
|
-
import { gql as
|
|
3178
|
-
var CREATE_STALLHOLDER_MUTATION =
|
|
3200
|
+
import { gql as gql15 } from "@apollo/client";
|
|
3201
|
+
var CREATE_STALLHOLDER_MUTATION = gql15`
|
|
3179
3202
|
mutation createStallholder($input: StallholderInputType!) {
|
|
3180
3203
|
createStallholder(input: $input) {
|
|
3181
3204
|
...StallholderFields
|
|
@@ -3183,7 +3206,7 @@ var CREATE_STALLHOLDER_MUTATION = gql14`
|
|
|
3183
3206
|
}
|
|
3184
3207
|
${STALLHOLDER}
|
|
3185
3208
|
`;
|
|
3186
|
-
var UPDATE_STALLHOLDER_MUTATION =
|
|
3209
|
+
var UPDATE_STALLHOLDER_MUTATION = gql15`
|
|
3187
3210
|
mutation updateStallholder($_id: ID!, $input: StallholderInputType!) {
|
|
3188
3211
|
updateStallholder(_id: $_id, input: $input) {
|
|
3189
3212
|
...StallholderFields
|
|
@@ -3191,12 +3214,12 @@ var UPDATE_STALLHOLDER_MUTATION = gql14`
|
|
|
3191
3214
|
}
|
|
3192
3215
|
${STALLHOLDER}
|
|
3193
3216
|
`;
|
|
3194
|
-
var DELETE_STALLHOLDER_MUTATION =
|
|
3217
|
+
var DELETE_STALLHOLDER_MUTATION = gql15`
|
|
3195
3218
|
mutation deleteStallholder($_id: ID!) {
|
|
3196
3219
|
deleteStallholder(_id: $_id)
|
|
3197
3220
|
}
|
|
3198
3221
|
`;
|
|
3199
|
-
var CREATE_STALLHOLDER_INFO_MUTATION =
|
|
3222
|
+
var CREATE_STALLHOLDER_INFO_MUTATION = gql15`
|
|
3200
3223
|
mutation createStallholderInfo($input: StallholderInfoInputType!) {
|
|
3201
3224
|
createStallholderInfo(input: $input) {
|
|
3202
3225
|
...StallholderInfoFields
|
|
@@ -3204,7 +3227,7 @@ var CREATE_STALLHOLDER_INFO_MUTATION = gql14`
|
|
|
3204
3227
|
}
|
|
3205
3228
|
${STALLHOLDER_INFO}
|
|
3206
3229
|
`;
|
|
3207
|
-
var UPDATE_STALLHOLDER_INFO_MUTATION =
|
|
3230
|
+
var UPDATE_STALLHOLDER_INFO_MUTATION = gql15`
|
|
3208
3231
|
mutation updateStallholderInfo($_id: ID!, $input: StallholderInfoInputType!) {
|
|
3209
3232
|
updateStallholderInfo(_id: $_id, input: $input) {
|
|
3210
3233
|
...StallholderInfoFields
|
|
@@ -3215,7 +3238,7 @@ var UPDATE_STALLHOLDER_INFO_MUTATION = gql14`
|
|
|
3215
3238
|
|
|
3216
3239
|
// src/graphql/hooks/stallholder/hooksMutation.ts
|
|
3217
3240
|
var useCreateStallholder = () => {
|
|
3218
|
-
const [createStallholder, { loading, error }] =
|
|
3241
|
+
const [createStallholder, { loading, error }] = useMutation9(
|
|
3219
3242
|
CREATE_STALLHOLDER_MUTATION,
|
|
3220
3243
|
{
|
|
3221
3244
|
awaitRefetchQueries: true,
|
|
@@ -3227,7 +3250,7 @@ var useCreateStallholder = () => {
|
|
|
3227
3250
|
return { createStallholder, error, loading };
|
|
3228
3251
|
};
|
|
3229
3252
|
var useUpdateStallholder = () => {
|
|
3230
|
-
const [updateStallholder, { loading, error }] =
|
|
3253
|
+
const [updateStallholder, { loading, error }] = useMutation9(
|
|
3231
3254
|
UPDATE_STALLHOLDER_MUTATION,
|
|
3232
3255
|
{
|
|
3233
3256
|
awaitRefetchQueries: true,
|
|
@@ -3239,7 +3262,7 @@ var useUpdateStallholder = () => {
|
|
|
3239
3262
|
return { error, loading, updateStallholder };
|
|
3240
3263
|
};
|
|
3241
3264
|
var useDeleteStallholder = () => {
|
|
3242
|
-
const [deleteStallholder, { loading, error }] =
|
|
3265
|
+
const [deleteStallholder, { loading, error }] = useMutation9(
|
|
3243
3266
|
DELETE_STALLHOLDER_MUTATION,
|
|
3244
3267
|
{
|
|
3245
3268
|
awaitRefetchQueries: true,
|
|
@@ -3251,7 +3274,7 @@ var useDeleteStallholder = () => {
|
|
|
3251
3274
|
return { deleteStallholder, error, loading };
|
|
3252
3275
|
};
|
|
3253
3276
|
var useCreateStallholderInfo = () => {
|
|
3254
|
-
const [createStallholderInfo, { loading, error }] =
|
|
3277
|
+
const [createStallholderInfo, { loading, error }] = useMutation9(
|
|
3255
3278
|
CREATE_STALLHOLDER_INFO_MUTATION,
|
|
3256
3279
|
{
|
|
3257
3280
|
awaitRefetchQueries: true,
|
|
@@ -3275,7 +3298,7 @@ var useCreateStallholderInfo = () => {
|
|
|
3275
3298
|
return { createStallholderInfo, error, loading };
|
|
3276
3299
|
};
|
|
3277
3300
|
var useUpdateStallholderInfo = () => {
|
|
3278
|
-
const [updateStallholderInfo, { loading, error }] =
|
|
3301
|
+
const [updateStallholderInfo, { loading, error }] = useMutation9(
|
|
3279
3302
|
UPDATE_STALLHOLDER_INFO_MUTATION,
|
|
3280
3303
|
{
|
|
3281
3304
|
awaitRefetchQueries: true,
|
|
@@ -3358,8 +3381,8 @@ var useGetStallholderInfo = (stallholderId) => {
|
|
|
3358
3381
|
import { useSubscription } from "@apollo/client";
|
|
3359
3382
|
|
|
3360
3383
|
// src/graphql/subscriptions/chat.ts
|
|
3361
|
-
import { gql as
|
|
3362
|
-
var GET_CHAT_MESSAGE =
|
|
3384
|
+
import { gql as gql16 } from "@apollo/client";
|
|
3385
|
+
var GET_CHAT_MESSAGE = gql16`
|
|
3363
3386
|
subscription {
|
|
3364
3387
|
getChatMessage {
|
|
3365
3388
|
...ChatFields
|
|
@@ -3369,8 +3392,8 @@ var GET_CHAT_MESSAGE = gql15`
|
|
|
3369
3392
|
`;
|
|
3370
3393
|
|
|
3371
3394
|
// src/graphql/subscriptions/notification.ts
|
|
3372
|
-
import { gql as
|
|
3373
|
-
var NOTIFICATION_FIELDS_FRAGMENT =
|
|
3395
|
+
import { gql as gql17 } from "@apollo/client";
|
|
3396
|
+
var NOTIFICATION_FIELDS_FRAGMENT = gql17`
|
|
3374
3397
|
fragment NotificationFields on NotificationType {
|
|
3375
3398
|
createdBy
|
|
3376
3399
|
important
|
|
@@ -3380,7 +3403,7 @@ var NOTIFICATION_FIELDS_FRAGMENT = gql16`
|
|
|
3380
3403
|
resourceType
|
|
3381
3404
|
}
|
|
3382
3405
|
`;
|
|
3383
|
-
var GET_GLOBAL_NOTIFICATION =
|
|
3406
|
+
var GET_GLOBAL_NOTIFICATION = gql17`
|
|
3384
3407
|
subscription {
|
|
3385
3408
|
getGlobalNotification {
|
|
3386
3409
|
...NotificationFields
|
|
@@ -3388,7 +3411,7 @@ var GET_GLOBAL_NOTIFICATION = gql16`
|
|
|
3388
3411
|
}
|
|
3389
3412
|
${NOTIFICATION_FIELDS_FRAGMENT}
|
|
3390
3413
|
`;
|
|
3391
|
-
var GET_RELATION_NOTIFICATION =
|
|
3414
|
+
var GET_RELATION_NOTIFICATION = gql17`
|
|
3392
3415
|
subscription {
|
|
3393
3416
|
getRelationNotification {
|
|
3394
3417
|
...NotificationFields
|
|
@@ -3421,14 +3444,14 @@ var useGetChatSubscription = () => {
|
|
|
3421
3444
|
};
|
|
3422
3445
|
|
|
3423
3446
|
// src/graphql/hooks/testers/hooksMutation.ts
|
|
3424
|
-
import { useMutation as
|
|
3447
|
+
import { useMutation as useMutation10 } from "@apollo/client";
|
|
3425
3448
|
|
|
3426
3449
|
// src/graphql/mutations/testers.ts
|
|
3427
|
-
import { gql as
|
|
3450
|
+
import { gql as gql19 } from "@apollo/client";
|
|
3428
3451
|
|
|
3429
3452
|
// src/graphql/queries/testers.ts
|
|
3430
|
-
import { gql as
|
|
3431
|
-
var TESTER_FIELDS_FRAGMENT =
|
|
3453
|
+
import { gql as gql18 } from "@apollo/client";
|
|
3454
|
+
var TESTER_FIELDS_FRAGMENT = gql18`
|
|
3432
3455
|
fragment TesterFields on TesterType {
|
|
3433
3456
|
_id
|
|
3434
3457
|
active
|
|
@@ -3441,7 +3464,7 @@ var TESTER_FIELDS_FRAGMENT = gql17`
|
|
|
3441
3464
|
updatedAt
|
|
3442
3465
|
}
|
|
3443
3466
|
`;
|
|
3444
|
-
var GET_TESTERS =
|
|
3467
|
+
var GET_TESTERS = gql18`
|
|
3445
3468
|
query getTesters {
|
|
3446
3469
|
testers {
|
|
3447
3470
|
...TesterFields
|
|
@@ -3449,7 +3472,7 @@ var GET_TESTERS = gql17`
|
|
|
3449
3472
|
}
|
|
3450
3473
|
${TESTER_FIELDS_FRAGMENT}
|
|
3451
3474
|
`;
|
|
3452
|
-
var GET_TESTER =
|
|
3475
|
+
var GET_TESTER = gql18`
|
|
3453
3476
|
query getTester($_id: ID!) {
|
|
3454
3477
|
tester(_id: $_id) {
|
|
3455
3478
|
...TesterFields
|
|
@@ -3459,7 +3482,7 @@ var GET_TESTER = gql17`
|
|
|
3459
3482
|
`;
|
|
3460
3483
|
|
|
3461
3484
|
// src/graphql/mutations/testers.ts
|
|
3462
|
-
var CREATE_TESTER_MUTATION =
|
|
3485
|
+
var CREATE_TESTER_MUTATION = gql19`
|
|
3463
3486
|
mutation createTester($input: TesterInputType!) {
|
|
3464
3487
|
createTester(input: $input) {
|
|
3465
3488
|
...TesterFields
|
|
@@ -3467,7 +3490,7 @@ var CREATE_TESTER_MUTATION = gql18`
|
|
|
3467
3490
|
}
|
|
3468
3491
|
${TESTER_FIELDS_FRAGMENT}
|
|
3469
3492
|
`;
|
|
3470
|
-
var UPDATE_TESTER_MUTATION =
|
|
3493
|
+
var UPDATE_TESTER_MUTATION = gql19`
|
|
3471
3494
|
mutation updateTester($_id: ID!, $input: TesterInputType!) {
|
|
3472
3495
|
updateTester(_id: $_id, input: $input) {
|
|
3473
3496
|
...TesterFields
|
|
@@ -3475,7 +3498,7 @@ var UPDATE_TESTER_MUTATION = gql18`
|
|
|
3475
3498
|
}
|
|
3476
3499
|
${TESTER_FIELDS_FRAGMENT}
|
|
3477
3500
|
`;
|
|
3478
|
-
var DELETE_TESTER_MUTATION =
|
|
3501
|
+
var DELETE_TESTER_MUTATION = gql19`
|
|
3479
3502
|
mutation deleteTester($_id: ID!) {
|
|
3480
3503
|
deleteTester(_id: $_id)
|
|
3481
3504
|
}
|
|
@@ -3483,7 +3506,7 @@ var DELETE_TESTER_MUTATION = gql18`
|
|
|
3483
3506
|
|
|
3484
3507
|
// src/graphql/hooks/testers/hooksMutation.ts
|
|
3485
3508
|
var useCreateTester = () => {
|
|
3486
|
-
const [createTester, { data, loading, error }] =
|
|
3509
|
+
const [createTester, { data, loading, error }] = useMutation10(
|
|
3487
3510
|
CREATE_TESTER_MUTATION
|
|
3488
3511
|
);
|
|
3489
3512
|
return {
|
|
@@ -3494,7 +3517,7 @@ var useCreateTester = () => {
|
|
|
3494
3517
|
};
|
|
3495
3518
|
};
|
|
3496
3519
|
var useUpdateTester = () => {
|
|
3497
|
-
const [updateTester, { data, loading, error }] =
|
|
3520
|
+
const [updateTester, { data, loading, error }] = useMutation10(
|
|
3498
3521
|
UPDATE_TESTER_MUTATION
|
|
3499
3522
|
);
|
|
3500
3523
|
return {
|
|
@@ -3505,7 +3528,7 @@ var useUpdateTester = () => {
|
|
|
3505
3528
|
};
|
|
3506
3529
|
};
|
|
3507
3530
|
var useDeleteTester = () => {
|
|
3508
|
-
const [deleteTester, { loading, error }] =
|
|
3531
|
+
const [deleteTester, { loading, error }] = useMutation10(
|
|
3509
3532
|
DELETE_TESTER_MUTATION
|
|
3510
3533
|
);
|
|
3511
3534
|
return { deleteTester, error, loading };
|
|
@@ -3533,11 +3556,11 @@ var useGetTester = (_id) => {
|
|
|
3533
3556
|
};
|
|
3534
3557
|
|
|
3535
3558
|
// src/graphql/hooks/user/hooksMutation.ts
|
|
3536
|
-
import { useMutation as
|
|
3559
|
+
import { useMutation as useMutation11 } from "@apollo/client";
|
|
3537
3560
|
|
|
3538
3561
|
// src/graphql/mutations/user.ts
|
|
3539
|
-
import { gql as
|
|
3540
|
-
var CREATE_USER_MUTATION =
|
|
3562
|
+
import { gql as gql20 } from "@apollo/client";
|
|
3563
|
+
var CREATE_USER_MUTATION = gql20`
|
|
3541
3564
|
mutation createUser($input: UserInputType!) {
|
|
3542
3565
|
createUser(input: $input) {
|
|
3543
3566
|
...UserFields
|
|
@@ -3545,7 +3568,7 @@ var CREATE_USER_MUTATION = gql19`
|
|
|
3545
3568
|
}
|
|
3546
3569
|
${USER_FIELDS_FRAGMENT}
|
|
3547
3570
|
`;
|
|
3548
|
-
var UPDATE_USER_MUTATION =
|
|
3571
|
+
var UPDATE_USER_MUTATION = gql20`
|
|
3549
3572
|
mutation updateUser($_id: ID!, $input: UserInputType!) {
|
|
3550
3573
|
updateUser(_id: $_id, input: $input) {
|
|
3551
3574
|
...UserFields
|
|
@@ -3553,12 +3576,12 @@ var UPDATE_USER_MUTATION = gql19`
|
|
|
3553
3576
|
}
|
|
3554
3577
|
${USER_FIELDS_FRAGMENT}
|
|
3555
3578
|
`;
|
|
3556
|
-
var DELETE_USER_MUTATION =
|
|
3579
|
+
var DELETE_USER_MUTATION = gql20`
|
|
3557
3580
|
mutation deleteUser($_id: ID!) {
|
|
3558
3581
|
deleteUser(_id: $_id)
|
|
3559
3582
|
}
|
|
3560
3583
|
`;
|
|
3561
|
-
var ADD_USER_FAVOURITE_RESOURCE_MUTATION =
|
|
3584
|
+
var ADD_USER_FAVOURITE_RESOURCE_MUTATION = gql20`
|
|
3562
3585
|
mutation addUserFavouriteResource(
|
|
3563
3586
|
$resourceId: ID!
|
|
3564
3587
|
$resourceType: ResourceTypeEnum!
|
|
@@ -3574,7 +3597,7 @@ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = gql19`
|
|
|
3574
3597
|
}
|
|
3575
3598
|
${USER_FIELDS_FRAGMENT}
|
|
3576
3599
|
`;
|
|
3577
|
-
var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION =
|
|
3600
|
+
var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = gql20`
|
|
3578
3601
|
mutation removeUserFavouriteResource(
|
|
3579
3602
|
$resourceId: ID!
|
|
3580
3603
|
$resourceType: ResourceTypeEnum!
|
|
@@ -3593,11 +3616,11 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = gql19`
|
|
|
3593
3616
|
|
|
3594
3617
|
// src/graphql/hooks/user/hooksMutation.ts
|
|
3595
3618
|
var useCreateUser = () => {
|
|
3596
|
-
const [createUser, { loading, error }] =
|
|
3619
|
+
const [createUser, { loading, error }] = useMutation11(CREATE_USER_MUTATION);
|
|
3597
3620
|
return { createUser, error, loading };
|
|
3598
3621
|
};
|
|
3599
3622
|
var useUpdateUser = () => {
|
|
3600
|
-
const [updateUser, { loading, error }] =
|
|
3623
|
+
const [updateUser, { loading, error }] = useMutation11(UPDATE_USER_MUTATION, {
|
|
3601
3624
|
awaitRefetchQueries: true,
|
|
3602
3625
|
refetchQueries: (mutationResult) => {
|
|
3603
3626
|
const userId = mutationResult?.data?.updateUser?._id;
|
|
@@ -3608,11 +3631,11 @@ var useUpdateUser = () => {
|
|
|
3608
3631
|
return { error, loading, updateUser };
|
|
3609
3632
|
};
|
|
3610
3633
|
var useDeleteUser = () => {
|
|
3611
|
-
const [deleteUser, { loading, error }] =
|
|
3634
|
+
const [deleteUser, { loading, error }] = useMutation11(DELETE_USER_MUTATION);
|
|
3612
3635
|
return { deleteUser, error, loading };
|
|
3613
3636
|
};
|
|
3614
3637
|
var useAddUserFavouriteResource = () => {
|
|
3615
|
-
const [addUserFavouriteResource, { loading, error }] =
|
|
3638
|
+
const [addUserFavouriteResource, { loading, error }] = useMutation11(
|
|
3616
3639
|
ADD_USER_FAVOURITE_RESOURCE_MUTATION,
|
|
3617
3640
|
{
|
|
3618
3641
|
awaitRefetchQueries: true,
|
|
@@ -3622,7 +3645,7 @@ var useAddUserFavouriteResource = () => {
|
|
|
3622
3645
|
return { addUserFavouriteResource, error, loading };
|
|
3623
3646
|
};
|
|
3624
3647
|
var useRemoveUserFavouriteResource = () => {
|
|
3625
|
-
const [removeUserFavouriteResource, { loading, error }] =
|
|
3648
|
+
const [removeUserFavouriteResource, { loading, error }] = useMutation11(
|
|
3626
3649
|
REMOVE_USER_FAVOURITE_RESOURCE_MUTATION,
|
|
3627
3650
|
{
|
|
3628
3651
|
awaitRefetchQueries: true,
|
|
@@ -4053,7 +4076,7 @@ var resetPasswordSchema = yup5.object().shape({
|
|
|
4053
4076
|
});
|
|
4054
4077
|
var validateVerificationTokenSchema = yup5.object().shape({
|
|
4055
4078
|
email: emailSchema,
|
|
4056
|
-
verificationToken: yup5.string().required("Verification code is required").matches(/^\d{
|
|
4079
|
+
verificationToken: yup5.string().required("Verification code is required").matches(/^\d{6}$/, "Verification code must be exactly 6 digits")
|
|
4057
4080
|
});
|
|
4058
4081
|
|
|
4059
4082
|
// src/yupSchema/testers.ts
|
|
@@ -5050,6 +5073,7 @@ export {
|
|
|
5050
5073
|
useSearchMarkets,
|
|
5051
5074
|
useSearchStallholders,
|
|
5052
5075
|
useSendChatMessage,
|
|
5076
|
+
useSetupNotificationToken,
|
|
5053
5077
|
useStallholderForm,
|
|
5054
5078
|
useStallholderInfoForm,
|
|
5055
5079
|
useTestersForm,
|