@timardex/cluemart-shared 1.0.77 → 1.0.79
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/{chunk-KPXDWQJZ.mjs → chunk-3LHMZDI4.mjs} +3 -1
- package/dist/chunk-3LHMZDI4.mjs.map +1 -0
- package/dist/{chunk-R5WLNKNS.mjs → chunk-ZDTBLK7U.mjs} +2 -2
- package/dist/enums/index.cjs +2 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +2 -0
- package/dist/enums/index.d.ts +2 -0
- package/dist/enums/index.mjs +1 -1
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +2 -2
- package/dist/graphql/index.cjs +25 -27
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +5 -5
- package/dist/graphql/index.d.ts +5 -5
- package/dist/graphql/index.mjs +25 -27
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.cjs +27 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +7 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.mjs +26 -26
- package/dist/index.mjs.map +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-KPXDWQJZ.mjs.map +0 -1
- /package/dist/{chunk-R5WLNKNS.mjs.map → chunk-ZDTBLK7U.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -32,6 +32,8 @@ declare enum EnumRelationResource {
|
|
|
32
32
|
declare enum EnumNotification {
|
|
33
33
|
CREATED_MARKET = "created_market",
|
|
34
34
|
CREATED_STALLHOLDER = "created_stallholder",
|
|
35
|
+
APPROVED_MARKET = "approved_market",
|
|
36
|
+
APPROVED_STALLHOLDER = "approved_stallholder",
|
|
35
37
|
NEW_CHAT_MESSAGE = "new_chat_message",
|
|
36
38
|
MARKET_INVITE_STALLHOLDER = "market_invite_stallholder",
|
|
37
39
|
STALLHOLDER_APPLICATION_TO_MARKET = "stallholder_application_to_market"
|
|
@@ -796,14 +798,14 @@ declare const useGetMarketInfo: (marketId: string) => {
|
|
|
796
798
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
797
799
|
};
|
|
798
800
|
|
|
799
|
-
declare const
|
|
801
|
+
declare const useCreatePoster: () => {
|
|
802
|
+
createPoster: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
800
803
|
error: _apollo_client.ApolloError | undefined;
|
|
801
804
|
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
805
|
};
|
|
804
806
|
|
|
805
|
-
declare const
|
|
806
|
-
|
|
807
|
+
declare const useCreatePushToken: () => {
|
|
808
|
+
createPushToken: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
807
809
|
error: _apollo_client.ApolloError | undefined;
|
|
808
810
|
loading: boolean;
|
|
809
811
|
};
|
|
@@ -1208,4 +1210,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1208
1210
|
declare const paymentMethodOptions: OptionItem[];
|
|
1209
1211
|
declare function normalizeUrl(url: string): string;
|
|
1210
1212
|
|
|
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,
|
|
1213
|
+
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, useCreatePushToken, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ declare enum EnumRelationResource {
|
|
|
32
32
|
declare enum EnumNotification {
|
|
33
33
|
CREATED_MARKET = "created_market",
|
|
34
34
|
CREATED_STALLHOLDER = "created_stallholder",
|
|
35
|
+
APPROVED_MARKET = "approved_market",
|
|
36
|
+
APPROVED_STALLHOLDER = "approved_stallholder",
|
|
35
37
|
NEW_CHAT_MESSAGE = "new_chat_message",
|
|
36
38
|
MARKET_INVITE_STALLHOLDER = "market_invite_stallholder",
|
|
37
39
|
STALLHOLDER_APPLICATION_TO_MARKET = "stallholder_application_to_market"
|
|
@@ -796,14 +798,14 @@ declare const useGetMarketInfo: (marketId: string) => {
|
|
|
796
798
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
797
799
|
};
|
|
798
800
|
|
|
799
|
-
declare const
|
|
801
|
+
declare const useCreatePoster: () => {
|
|
802
|
+
createPoster: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
800
803
|
error: _apollo_client.ApolloError | undefined;
|
|
801
804
|
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
805
|
};
|
|
804
806
|
|
|
805
|
-
declare const
|
|
806
|
-
|
|
807
|
+
declare const useCreatePushToken: () => {
|
|
808
|
+
createPushToken: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
807
809
|
error: _apollo_client.ApolloError | undefined;
|
|
808
810
|
loading: boolean;
|
|
809
811
|
};
|
|
@@ -1208,4 +1210,4 @@ declare const availableRegionOptions: OptionItem[];
|
|
|
1208
1210
|
declare const paymentMethodOptions: OptionItem[];
|
|
1209
1211
|
declare function normalizeUrl(url: string): string;
|
|
1210
1212
|
|
|
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,
|
|
1213
|
+
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, useCreatePushToken, 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 };
|
package/dist/index.mjs
CHANGED
|
@@ -35,6 +35,8 @@ var EnumRelationResource = /* @__PURE__ */ ((EnumRelationResource2) => {
|
|
|
35
35
|
var EnumNotification = /* @__PURE__ */ ((EnumNotification2) => {
|
|
36
36
|
EnumNotification2["CREATED_MARKET"] = "created_market";
|
|
37
37
|
EnumNotification2["CREATED_STALLHOLDER"] = "created_stallholder";
|
|
38
|
+
EnumNotification2["APPROVED_MARKET"] = "approved_market";
|
|
39
|
+
EnumNotification2["APPROVED_STALLHOLDER"] = "approved_stallholder";
|
|
38
40
|
EnumNotification2["NEW_CHAT_MESSAGE"] = "new_chat_message";
|
|
39
41
|
EnumNotification2["MARKET_INVITE_STALLHOLDER"] = "market_invite_stallholder" /* MARKET_INVITE_STALLHOLDER */;
|
|
40
42
|
EnumNotification2["STALLHOLDER_APPLICATION_TO_MARKET"] = "stallholder_application_to_market" /* STALLHOLDER_APPLICATION_TO_MARKET */;
|
|
@@ -2744,48 +2746,46 @@ var useGetMarketInfo = (marketId) => {
|
|
|
2744
2746
|
return { error, loading, marketInfo: marketInfo2, refetch };
|
|
2745
2747
|
};
|
|
2746
2748
|
|
|
2747
|
-
// src/graphql/hooks/
|
|
2749
|
+
// src/graphql/hooks/poster.ts
|
|
2748
2750
|
import { useMutation as useMutation6 } from "@apollo/client";
|
|
2749
2751
|
|
|
2750
|
-
// src/graphql/mutations/
|
|
2752
|
+
// src/graphql/mutations/poster.ts
|
|
2751
2753
|
import { gql as gql11 } from "@apollo/client";
|
|
2752
|
-
var
|
|
2753
|
-
mutation
|
|
2754
|
-
|
|
2754
|
+
var CREATE_POSTER_MUTATION = gql11`
|
|
2755
|
+
mutation createPoster($input: PosterInputType!) {
|
|
2756
|
+
createPoster(input: $input) {
|
|
2757
|
+
message
|
|
2758
|
+
}
|
|
2755
2759
|
}
|
|
2756
2760
|
`;
|
|
2757
2761
|
|
|
2758
|
-
// src/graphql/hooks/
|
|
2759
|
-
var
|
|
2760
|
-
const [
|
|
2761
|
-
|
|
2762
|
+
// src/graphql/hooks/poster.ts
|
|
2763
|
+
var useCreatePoster = () => {
|
|
2764
|
+
const [createPoster, { loading, error }] = useMutation6(
|
|
2765
|
+
CREATE_POSTER_MUTATION
|
|
2762
2766
|
);
|
|
2763
|
-
return {
|
|
2764
|
-
error,
|
|
2765
|
-
loading,
|
|
2766
|
-
setupNotificationToken
|
|
2767
|
-
};
|
|
2767
|
+
return { createPoster, error, loading };
|
|
2768
2768
|
};
|
|
2769
2769
|
|
|
2770
|
-
// src/graphql/hooks/
|
|
2770
|
+
// src/graphql/hooks/pushToken.ts
|
|
2771
2771
|
import { useMutation as useMutation7 } from "@apollo/client";
|
|
2772
2772
|
|
|
2773
|
-
// src/graphql/mutations/
|
|
2773
|
+
// src/graphql/mutations/pushToken.ts
|
|
2774
2774
|
import { gql as gql12 } from "@apollo/client";
|
|
2775
|
-
var
|
|
2776
|
-
mutation
|
|
2777
|
-
|
|
2778
|
-
|
|
2775
|
+
var CREATE_PUSH_TOKEN_MUTATION = gql12`
|
|
2776
|
+
mutation createPushToken($input: PushTokenInput!) {
|
|
2777
|
+
createPushToken(input: $input) {
|
|
2778
|
+
success
|
|
2779
2779
|
}
|
|
2780
2780
|
}
|
|
2781
2781
|
`;
|
|
2782
2782
|
|
|
2783
|
-
// src/graphql/hooks/
|
|
2784
|
-
var
|
|
2785
|
-
const [
|
|
2786
|
-
|
|
2783
|
+
// src/graphql/hooks/pushToken.ts
|
|
2784
|
+
var useCreatePushToken = () => {
|
|
2785
|
+
const [createPushToken, { loading, error }] = useMutation7(
|
|
2786
|
+
CREATE_PUSH_TOKEN_MUTATION
|
|
2787
2787
|
);
|
|
2788
|
-
return {
|
|
2788
|
+
return { createPushToken, error, loading };
|
|
2789
2789
|
};
|
|
2790
2790
|
|
|
2791
2791
|
// src/graphql/hooks/relation/hooksMutation.ts
|
|
@@ -5018,6 +5018,7 @@ export {
|
|
|
5018
5018
|
useCreateMarket,
|
|
5019
5019
|
useCreateMarketInfo,
|
|
5020
5020
|
useCreatePoster,
|
|
5021
|
+
useCreatePushToken,
|
|
5021
5022
|
useCreateRelation,
|
|
5022
5023
|
useCreateStallholder,
|
|
5023
5024
|
useCreateStallholderInfo,
|
|
@@ -5073,7 +5074,6 @@ export {
|
|
|
5073
5074
|
useSearchMarkets,
|
|
5074
5075
|
useSearchStallholders,
|
|
5075
5076
|
useSendChatMessage,
|
|
5076
|
-
useSetupNotificationToken,
|
|
5077
5077
|
useStallholderForm,
|
|
5078
5078
|
useStallholderInfoForm,
|
|
5079
5079
|
useTestersForm,
|