@timardex/cluemart-shared 1.0.33 → 1.0.35
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/{auth-CFZ3I1a4.d.ts → auth-XyfwyWA9.d.mts} +1 -2
- package/dist/{auth-DyTQ50tf.d.mts → auth-XyfwyWA9.d.ts} +1 -2
- package/dist/formFields/index.cjs +1 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +1 -0
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/graphql/index.cjs +17 -0
- 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 +16 -0
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +45 -48
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.mjs +29 -32
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +77 -48
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +91 -80
- package/dist/index.d.ts +91 -80
- package/dist/index.mjs +72 -48
- package/dist/index.mjs.map +1 -1
- package/dist/storage/index.cjs +40 -0
- package/dist/storage/index.cjs.map +1 -0
- package/dist/storage/index.d.mts +6 -0
- package/dist/storage/index.d.ts +6 -0
- package/dist/storage/index.mjs +12 -0
- package/dist/storage/index.mjs.map +1 -0
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +6 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,86 +1,9 @@
|
|
|
1
1
|
import { Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
|
|
2
2
|
import * as _apollo_client from '@apollo/client';
|
|
3
3
|
|
|
4
|
-
declare enum EnumInviteStatus {
|
|
5
|
-
ACCEPTED = "Accepted",
|
|
6
|
-
COMPLETED = "Completed",
|
|
7
|
-
EXPIRED = "Expired",
|
|
8
|
-
NO_STATUS = "No_Status",
|
|
9
|
-
PENDING = "Pending",
|
|
10
|
-
REJECTED = "Rejected",
|
|
11
|
-
WAITING = "Waiting"
|
|
12
|
-
}
|
|
13
|
-
declare enum EnumPaymentMethod {
|
|
14
|
-
CASH = "cash",
|
|
15
|
-
EFTPOS = "eftpos",
|
|
16
|
-
BANK_TRANSFER = "bank_transfer",
|
|
17
|
-
PAYPAL = "paypal",
|
|
18
|
-
STRIPE = "stripe"
|
|
19
|
-
}
|
|
20
|
-
declare enum EnumResourceType {
|
|
21
|
-
MARKET = "market",
|
|
22
|
-
STALLHOLDER = "stallholder"
|
|
23
|
-
}
|
|
24
|
-
declare enum EnumRelationResource {
|
|
25
|
-
MARKET_INVITE_STALLHOLDER = "market_invite_stallholder",
|
|
26
|
-
STALLHOLDER_APPLICATION_TO_MARKET = "stallholder_application_to_market"
|
|
27
|
-
}
|
|
28
|
-
declare enum EnumNotification {
|
|
29
|
-
CREATED_MARKET = "created_market",
|
|
30
|
-
CREATED_STALLHOLDER = "created_stallholder",
|
|
31
|
-
NEW_CHAT_MESSAGE = "new_chat_message",
|
|
32
|
-
MARKET_INVITE_STALLHOLDER = "market_invite_stallholder",
|
|
33
|
-
STALLHOLDER_APPLICATION_TO_MARKET = "stallholder_application_to_market"
|
|
34
|
-
}
|
|
35
|
-
declare enum EnumResourceTypeIcon {
|
|
36
|
-
MARKET = "compass",
|
|
37
|
-
STALLHOLDER = "store"
|
|
38
|
-
}
|
|
39
|
-
declare enum EnumRegions {
|
|
40
|
-
Auckland = "Auckland",
|
|
41
|
-
BayOfPlenty = "Bay of Plenty",
|
|
42
|
-
Canterbury = "Canterbury",
|
|
43
|
-
Gisborne = "Gisborne",
|
|
44
|
-
HawkesBay = "Hawke's Bay",
|
|
45
|
-
ManawatuWanganui = "Manawatu-Wanganui",
|
|
46
|
-
Marlborough = "Marlborough",
|
|
47
|
-
Nelson = "Nelson",
|
|
48
|
-
Northland = "Northland",
|
|
49
|
-
Otago = "Otago",
|
|
50
|
-
Southland = "Southland",
|
|
51
|
-
Taranaki = "Taranaki",
|
|
52
|
-
Waikato = "Waikato",
|
|
53
|
-
Wellington = "Wellington"
|
|
54
|
-
}
|
|
55
|
-
declare enum ImageTypeEnum {
|
|
56
|
-
AVATAR = "avatar",
|
|
57
|
-
COVER = "cover",
|
|
58
|
-
IMAGE = "image",
|
|
59
|
-
LOGO = "logo"
|
|
60
|
-
}
|
|
61
|
-
declare enum EnumUserLicence {
|
|
62
|
-
ENTERPRISE_MARKET = "enterprise_market",
|
|
63
|
-
ENTERPRISE_STALLHOLDER = "enterprise_stallholder",
|
|
64
|
-
PRO_MARKET = "pro_market",
|
|
65
|
-
PRO_STALLHOLDER = "pro_stallholder",
|
|
66
|
-
STANDARD_MARKET = "standard_market",
|
|
67
|
-
STANDARD_STALLHOLDER = "standard_stallholder"
|
|
68
|
-
}
|
|
69
|
-
declare enum EnumUserRole {
|
|
70
|
-
ADMIN = "admin",
|
|
71
|
-
CUSTOMER = "customer"
|
|
72
|
-
}
|
|
73
|
-
declare enum EnumSocialMedia {
|
|
74
|
-
FACEBOOK = "facebook",
|
|
75
|
-
INSTAGRAM = "instagram",
|
|
76
|
-
TIKTOK = "tiktok",
|
|
77
|
-
TWITTER = "twitter",
|
|
78
|
-
WEBSITE = "website",
|
|
79
|
-
YOUTUBE = "youtube"
|
|
80
|
-
}
|
|
81
|
-
|
|
82
4
|
type LoginFormData = {
|
|
83
5
|
email: string;
|
|
6
|
+
isAdminPage?: boolean;
|
|
84
7
|
password: string;
|
|
85
8
|
};
|
|
86
9
|
interface CreateLoginFormData {
|
|
@@ -100,7 +23,6 @@ type RegisterFormData = {
|
|
|
100
23
|
lastName: string;
|
|
101
24
|
password: string;
|
|
102
25
|
preferredRegion: string;
|
|
103
|
-
role: EnumUserRole;
|
|
104
26
|
};
|
|
105
27
|
interface CreateRegisterFormData {
|
|
106
28
|
control: Control<RegisterFormData, any>;
|
|
@@ -185,6 +107,84 @@ interface ChatType {
|
|
|
185
107
|
updatedAt: string;
|
|
186
108
|
}
|
|
187
109
|
|
|
110
|
+
declare enum EnumInviteStatus {
|
|
111
|
+
ACCEPTED = "Accepted",
|
|
112
|
+
COMPLETED = "Completed",
|
|
113
|
+
EXPIRED = "Expired",
|
|
114
|
+
NO_STATUS = "No_Status",
|
|
115
|
+
PENDING = "Pending",
|
|
116
|
+
REJECTED = "Rejected",
|
|
117
|
+
WAITING = "Waiting"
|
|
118
|
+
}
|
|
119
|
+
declare enum EnumPaymentMethod {
|
|
120
|
+
CASH = "cash",
|
|
121
|
+
EFTPOS = "eftpos",
|
|
122
|
+
BANK_TRANSFER = "bank_transfer",
|
|
123
|
+
PAYPAL = "paypal",
|
|
124
|
+
STRIPE = "stripe"
|
|
125
|
+
}
|
|
126
|
+
declare enum EnumResourceType {
|
|
127
|
+
MARKET = "market",
|
|
128
|
+
STALLHOLDER = "stallholder"
|
|
129
|
+
}
|
|
130
|
+
declare enum EnumRelationResource {
|
|
131
|
+
MARKET_INVITE_STALLHOLDER = "market_invite_stallholder",
|
|
132
|
+
STALLHOLDER_APPLICATION_TO_MARKET = "stallholder_application_to_market"
|
|
133
|
+
}
|
|
134
|
+
declare enum EnumNotification {
|
|
135
|
+
CREATED_MARKET = "created_market",
|
|
136
|
+
CREATED_STALLHOLDER = "created_stallholder",
|
|
137
|
+
NEW_CHAT_MESSAGE = "new_chat_message",
|
|
138
|
+
MARKET_INVITE_STALLHOLDER = "market_invite_stallholder",
|
|
139
|
+
STALLHOLDER_APPLICATION_TO_MARKET = "stallholder_application_to_market"
|
|
140
|
+
}
|
|
141
|
+
declare enum EnumResourceTypeIcon {
|
|
142
|
+
MARKET = "compass",
|
|
143
|
+
STALLHOLDER = "store"
|
|
144
|
+
}
|
|
145
|
+
declare enum EnumRegions {
|
|
146
|
+
Auckland = "Auckland",
|
|
147
|
+
BayOfPlenty = "Bay of Plenty",
|
|
148
|
+
Canterbury = "Canterbury",
|
|
149
|
+
Gisborne = "Gisborne",
|
|
150
|
+
HawkesBay = "Hawke's Bay",
|
|
151
|
+
ManawatuWanganui = "Manawatu-Wanganui",
|
|
152
|
+
Marlborough = "Marlborough",
|
|
153
|
+
Nelson = "Nelson",
|
|
154
|
+
Northland = "Northland",
|
|
155
|
+
Otago = "Otago",
|
|
156
|
+
Southland = "Southland",
|
|
157
|
+
Taranaki = "Taranaki",
|
|
158
|
+
Waikato = "Waikato",
|
|
159
|
+
Wellington = "Wellington"
|
|
160
|
+
}
|
|
161
|
+
declare enum ImageTypeEnum {
|
|
162
|
+
AVATAR = "avatar",
|
|
163
|
+
COVER = "cover",
|
|
164
|
+
IMAGE = "image",
|
|
165
|
+
LOGO = "logo"
|
|
166
|
+
}
|
|
167
|
+
declare enum EnumUserLicence {
|
|
168
|
+
ENTERPRISE_MARKET = "enterprise_market",
|
|
169
|
+
ENTERPRISE_STALLHOLDER = "enterprise_stallholder",
|
|
170
|
+
PRO_MARKET = "pro_market",
|
|
171
|
+
PRO_STALLHOLDER = "pro_stallholder",
|
|
172
|
+
STANDARD_MARKET = "standard_market",
|
|
173
|
+
STANDARD_STALLHOLDER = "standard_stallholder"
|
|
174
|
+
}
|
|
175
|
+
declare enum EnumUserRole {
|
|
176
|
+
ADMIN = "admin",
|
|
177
|
+
CUSTOMER = "customer"
|
|
178
|
+
}
|
|
179
|
+
declare enum EnumSocialMedia {
|
|
180
|
+
FACEBOOK = "facebook",
|
|
181
|
+
INSTAGRAM = "instagram",
|
|
182
|
+
TIKTOK = "tiktok",
|
|
183
|
+
TWITTER = "twitter",
|
|
184
|
+
WEBSITE = "website",
|
|
185
|
+
YOUTUBE = "youtube"
|
|
186
|
+
}
|
|
187
|
+
|
|
188
188
|
type RelationLog = {
|
|
189
189
|
createdAt?: string;
|
|
190
190
|
updatedAt?: string;
|
|
@@ -970,6 +970,12 @@ declare const useGetUserMarkets: () => {
|
|
|
970
970
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
971
971
|
userMarkets: MarketType[];
|
|
972
972
|
};
|
|
973
|
+
declare const useGetUserStallholder: () => {
|
|
974
|
+
error: _apollo_client.ApolloError | undefined;
|
|
975
|
+
loading: boolean;
|
|
976
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
977
|
+
userStallholder: StallholderType;
|
|
978
|
+
};
|
|
973
979
|
declare const useGetUserFavourites: () => {
|
|
974
980
|
error: _apollo_client.ApolloError | undefined;
|
|
975
981
|
loading: boolean;
|
|
@@ -1048,4 +1054,9 @@ declare const categoryColors: Record<string, string>;
|
|
|
1048
1054
|
|
|
1049
1055
|
declare const socialMediaFields: FormField[];
|
|
1050
1056
|
|
|
1051
|
-
|
|
1057
|
+
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
1058
|
+
declare const SAVED_EMAIL_KEY = "savedEmail";
|
|
1059
|
+
declare const SAVED_TOKEN_KEY = "savedToken";
|
|
1060
|
+
declare const SAVED_REFRESH_TOKEN_KEY = "savedRefreshToken";
|
|
1061
|
+
|
|
1062
|
+
export { type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderApplyFormFormData, type CreateStallholderFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, 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 PaymentTargetType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationLog, 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 SiteType, type SocialMediaType, type StallholderApplyFormFormData, type StallholderApplyFormType, type StallholderAttributes, type StallholderFormData, type StallholderLocation, type StallholderType, type Subcategory, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderApplyFormValues, defaultStallholderFormValues, formatDate, formatTimestamp, getCurrentAndFutureDates, getFutureDatesAfterThreshold, globalDefaultValues, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentTarget, marketPriceByDateFields, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, siteTypeOptions, socialMediaFields, sortDatesByProximity, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreateRelation, useCreateStallholder, useCreateStallholderApplyForm, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotification, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderApplyForm, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, 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, useStallholderApplyForm, useStallholderForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderApplyForm, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,86 +1,9 @@
|
|
|
1
1
|
import { Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
|
|
2
2
|
import * as _apollo_client from '@apollo/client';
|
|
3
3
|
|
|
4
|
-
declare enum EnumInviteStatus {
|
|
5
|
-
ACCEPTED = "Accepted",
|
|
6
|
-
COMPLETED = "Completed",
|
|
7
|
-
EXPIRED = "Expired",
|
|
8
|
-
NO_STATUS = "No_Status",
|
|
9
|
-
PENDING = "Pending",
|
|
10
|
-
REJECTED = "Rejected",
|
|
11
|
-
WAITING = "Waiting"
|
|
12
|
-
}
|
|
13
|
-
declare enum EnumPaymentMethod {
|
|
14
|
-
CASH = "cash",
|
|
15
|
-
EFTPOS = "eftpos",
|
|
16
|
-
BANK_TRANSFER = "bank_transfer",
|
|
17
|
-
PAYPAL = "paypal",
|
|
18
|
-
STRIPE = "stripe"
|
|
19
|
-
}
|
|
20
|
-
declare enum EnumResourceType {
|
|
21
|
-
MARKET = "market",
|
|
22
|
-
STALLHOLDER = "stallholder"
|
|
23
|
-
}
|
|
24
|
-
declare enum EnumRelationResource {
|
|
25
|
-
MARKET_INVITE_STALLHOLDER = "market_invite_stallholder",
|
|
26
|
-
STALLHOLDER_APPLICATION_TO_MARKET = "stallholder_application_to_market"
|
|
27
|
-
}
|
|
28
|
-
declare enum EnumNotification {
|
|
29
|
-
CREATED_MARKET = "created_market",
|
|
30
|
-
CREATED_STALLHOLDER = "created_stallholder",
|
|
31
|
-
NEW_CHAT_MESSAGE = "new_chat_message",
|
|
32
|
-
MARKET_INVITE_STALLHOLDER = "market_invite_stallholder",
|
|
33
|
-
STALLHOLDER_APPLICATION_TO_MARKET = "stallholder_application_to_market"
|
|
34
|
-
}
|
|
35
|
-
declare enum EnumResourceTypeIcon {
|
|
36
|
-
MARKET = "compass",
|
|
37
|
-
STALLHOLDER = "store"
|
|
38
|
-
}
|
|
39
|
-
declare enum EnumRegions {
|
|
40
|
-
Auckland = "Auckland",
|
|
41
|
-
BayOfPlenty = "Bay of Plenty",
|
|
42
|
-
Canterbury = "Canterbury",
|
|
43
|
-
Gisborne = "Gisborne",
|
|
44
|
-
HawkesBay = "Hawke's Bay",
|
|
45
|
-
ManawatuWanganui = "Manawatu-Wanganui",
|
|
46
|
-
Marlborough = "Marlborough",
|
|
47
|
-
Nelson = "Nelson",
|
|
48
|
-
Northland = "Northland",
|
|
49
|
-
Otago = "Otago",
|
|
50
|
-
Southland = "Southland",
|
|
51
|
-
Taranaki = "Taranaki",
|
|
52
|
-
Waikato = "Waikato",
|
|
53
|
-
Wellington = "Wellington"
|
|
54
|
-
}
|
|
55
|
-
declare enum ImageTypeEnum {
|
|
56
|
-
AVATAR = "avatar",
|
|
57
|
-
COVER = "cover",
|
|
58
|
-
IMAGE = "image",
|
|
59
|
-
LOGO = "logo"
|
|
60
|
-
}
|
|
61
|
-
declare enum EnumUserLicence {
|
|
62
|
-
ENTERPRISE_MARKET = "enterprise_market",
|
|
63
|
-
ENTERPRISE_STALLHOLDER = "enterprise_stallholder",
|
|
64
|
-
PRO_MARKET = "pro_market",
|
|
65
|
-
PRO_STALLHOLDER = "pro_stallholder",
|
|
66
|
-
STANDARD_MARKET = "standard_market",
|
|
67
|
-
STANDARD_STALLHOLDER = "standard_stallholder"
|
|
68
|
-
}
|
|
69
|
-
declare enum EnumUserRole {
|
|
70
|
-
ADMIN = "admin",
|
|
71
|
-
CUSTOMER = "customer"
|
|
72
|
-
}
|
|
73
|
-
declare enum EnumSocialMedia {
|
|
74
|
-
FACEBOOK = "facebook",
|
|
75
|
-
INSTAGRAM = "instagram",
|
|
76
|
-
TIKTOK = "tiktok",
|
|
77
|
-
TWITTER = "twitter",
|
|
78
|
-
WEBSITE = "website",
|
|
79
|
-
YOUTUBE = "youtube"
|
|
80
|
-
}
|
|
81
|
-
|
|
82
4
|
type LoginFormData = {
|
|
83
5
|
email: string;
|
|
6
|
+
isAdminPage?: boolean;
|
|
84
7
|
password: string;
|
|
85
8
|
};
|
|
86
9
|
interface CreateLoginFormData {
|
|
@@ -100,7 +23,6 @@ type RegisterFormData = {
|
|
|
100
23
|
lastName: string;
|
|
101
24
|
password: string;
|
|
102
25
|
preferredRegion: string;
|
|
103
|
-
role: EnumUserRole;
|
|
104
26
|
};
|
|
105
27
|
interface CreateRegisterFormData {
|
|
106
28
|
control: Control<RegisterFormData, any>;
|
|
@@ -185,6 +107,84 @@ interface ChatType {
|
|
|
185
107
|
updatedAt: string;
|
|
186
108
|
}
|
|
187
109
|
|
|
110
|
+
declare enum EnumInviteStatus {
|
|
111
|
+
ACCEPTED = "Accepted",
|
|
112
|
+
COMPLETED = "Completed",
|
|
113
|
+
EXPIRED = "Expired",
|
|
114
|
+
NO_STATUS = "No_Status",
|
|
115
|
+
PENDING = "Pending",
|
|
116
|
+
REJECTED = "Rejected",
|
|
117
|
+
WAITING = "Waiting"
|
|
118
|
+
}
|
|
119
|
+
declare enum EnumPaymentMethod {
|
|
120
|
+
CASH = "cash",
|
|
121
|
+
EFTPOS = "eftpos",
|
|
122
|
+
BANK_TRANSFER = "bank_transfer",
|
|
123
|
+
PAYPAL = "paypal",
|
|
124
|
+
STRIPE = "stripe"
|
|
125
|
+
}
|
|
126
|
+
declare enum EnumResourceType {
|
|
127
|
+
MARKET = "market",
|
|
128
|
+
STALLHOLDER = "stallholder"
|
|
129
|
+
}
|
|
130
|
+
declare enum EnumRelationResource {
|
|
131
|
+
MARKET_INVITE_STALLHOLDER = "market_invite_stallholder",
|
|
132
|
+
STALLHOLDER_APPLICATION_TO_MARKET = "stallholder_application_to_market"
|
|
133
|
+
}
|
|
134
|
+
declare enum EnumNotification {
|
|
135
|
+
CREATED_MARKET = "created_market",
|
|
136
|
+
CREATED_STALLHOLDER = "created_stallholder",
|
|
137
|
+
NEW_CHAT_MESSAGE = "new_chat_message",
|
|
138
|
+
MARKET_INVITE_STALLHOLDER = "market_invite_stallholder",
|
|
139
|
+
STALLHOLDER_APPLICATION_TO_MARKET = "stallholder_application_to_market"
|
|
140
|
+
}
|
|
141
|
+
declare enum EnumResourceTypeIcon {
|
|
142
|
+
MARKET = "compass",
|
|
143
|
+
STALLHOLDER = "store"
|
|
144
|
+
}
|
|
145
|
+
declare enum EnumRegions {
|
|
146
|
+
Auckland = "Auckland",
|
|
147
|
+
BayOfPlenty = "Bay of Plenty",
|
|
148
|
+
Canterbury = "Canterbury",
|
|
149
|
+
Gisborne = "Gisborne",
|
|
150
|
+
HawkesBay = "Hawke's Bay",
|
|
151
|
+
ManawatuWanganui = "Manawatu-Wanganui",
|
|
152
|
+
Marlborough = "Marlborough",
|
|
153
|
+
Nelson = "Nelson",
|
|
154
|
+
Northland = "Northland",
|
|
155
|
+
Otago = "Otago",
|
|
156
|
+
Southland = "Southland",
|
|
157
|
+
Taranaki = "Taranaki",
|
|
158
|
+
Waikato = "Waikato",
|
|
159
|
+
Wellington = "Wellington"
|
|
160
|
+
}
|
|
161
|
+
declare enum ImageTypeEnum {
|
|
162
|
+
AVATAR = "avatar",
|
|
163
|
+
COVER = "cover",
|
|
164
|
+
IMAGE = "image",
|
|
165
|
+
LOGO = "logo"
|
|
166
|
+
}
|
|
167
|
+
declare enum EnumUserLicence {
|
|
168
|
+
ENTERPRISE_MARKET = "enterprise_market",
|
|
169
|
+
ENTERPRISE_STALLHOLDER = "enterprise_stallholder",
|
|
170
|
+
PRO_MARKET = "pro_market",
|
|
171
|
+
PRO_STALLHOLDER = "pro_stallholder",
|
|
172
|
+
STANDARD_MARKET = "standard_market",
|
|
173
|
+
STANDARD_STALLHOLDER = "standard_stallholder"
|
|
174
|
+
}
|
|
175
|
+
declare enum EnumUserRole {
|
|
176
|
+
ADMIN = "admin",
|
|
177
|
+
CUSTOMER = "customer"
|
|
178
|
+
}
|
|
179
|
+
declare enum EnumSocialMedia {
|
|
180
|
+
FACEBOOK = "facebook",
|
|
181
|
+
INSTAGRAM = "instagram",
|
|
182
|
+
TIKTOK = "tiktok",
|
|
183
|
+
TWITTER = "twitter",
|
|
184
|
+
WEBSITE = "website",
|
|
185
|
+
YOUTUBE = "youtube"
|
|
186
|
+
}
|
|
187
|
+
|
|
188
188
|
type RelationLog = {
|
|
189
189
|
createdAt?: string;
|
|
190
190
|
updatedAt?: string;
|
|
@@ -970,6 +970,12 @@ declare const useGetUserMarkets: () => {
|
|
|
970
970
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
971
971
|
userMarkets: MarketType[];
|
|
972
972
|
};
|
|
973
|
+
declare const useGetUserStallholder: () => {
|
|
974
|
+
error: _apollo_client.ApolloError | undefined;
|
|
975
|
+
loading: boolean;
|
|
976
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
|
|
977
|
+
userStallholder: StallholderType;
|
|
978
|
+
};
|
|
973
979
|
declare const useGetUserFavourites: () => {
|
|
974
980
|
error: _apollo_client.ApolloError | undefined;
|
|
975
981
|
loading: boolean;
|
|
@@ -1048,4 +1054,9 @@ declare const categoryColors: Record<string, string>;
|
|
|
1048
1054
|
|
|
1049
1055
|
declare const socialMediaFields: FormField[];
|
|
1050
1056
|
|
|
1051
|
-
|
|
1057
|
+
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
1058
|
+
declare const SAVED_EMAIL_KEY = "savedEmail";
|
|
1059
|
+
declare const SAVED_TOKEN_KEY = "savedToken";
|
|
1060
|
+
declare const SAVED_REFRESH_TOKEN_KEY = "savedRefreshToken";
|
|
1061
|
+
|
|
1062
|
+
export { type BaseResourceType, type BaseResourceTypeFormData, type Category, type ChatInput, type ChatMessageInput, type ChatMessageType, type ChatType, type CreateLoginFormData, type CreateMarketFormData, type CreateMarketInfoFormData, type CreateRegisterFormData, type CreateRequestPasswordResetFormData, type CreateResetPasswordFormData, type CreateStallholderApplyFormFormData, type CreateStallholderFormData, type CreateUserFormData, type CreateValidateVerificationTokenFormData, type DateTimeType, type DateTimeWithPriceType, EnumInviteStatus, EnumNotification, 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 PaymentTargetType, type PlacePrediction, type PosterInputType, type Region, type RegisterFormData, type RelationDate, type RelationLog, 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 SiteType, type SocialMediaType, type StallholderApplyFormFormData, type StallholderApplyFormType, type StallholderAttributes, type StallholderFormData, type StallholderLocation, type StallholderType, type Subcategory, type UserFormData, type UserType, type ValidateVerificationTokenFormData, availableCategories, availableCityOptions, availableRegionOptions, availableRegionTypes, availableTagTypes, capitalizeFirstLetter, categoryColors, dateFormat, defaultMarketFormValues, defaultMarketInfoFormValues, defaultRegion, defaultStallholderApplyFormValues, defaultStallholderFormValues, formatDate, formatTimestamp, getCurrentAndFutureDates, getFutureDatesAfterThreshold, globalDefaultValues, loginFields, mapArrayToOptions, mapBaseResourceTypeToFormData, marketBasicInfoFields, marketEndDateFields, marketInfo, marketInfoPaymentTarget, marketPriceByDateFields, marketStartDateFields, normalizeUrl, packagingOptions, paymentMethodOptions, producedIngOptions, profileFields, registerFields, removeTypename, requestPasswordResetFields, requirementsOptions, resetPasswordFields, siteTypeOptions, socialMediaFields, sortDatesByProximity, stallholderBasicInfoFields, stallholderElectricity, stallholderEndDateFields, stallholderFullAddress, stallholderGazebo, stallholderLocationDescription, stallholderMultiLocation, stallholderPackaging, stallholderPaymentMethod, stallholderPriceRange, stallholderProducedIn, stallholderStallSize, stallholderStartDateFields, stallholderTable, statusOptions, tagOptions, timeFormat, truncateText, useAddParticipantToChat, useAddUserFavouriteResource, useCreateChat, useCreateMarket, useCreateMarketInfo, useCreatePoster, useCreateRelation, useCreateStallholder, useCreateStallholderApplyForm, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketInfo, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotification, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderApplyForm, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, 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, useStallholderApplyForm, useStallholderForm, useUpdateMarket, useUpdateMarketInfo, useUpdateRelation, useUpdateStallholder, useUpdateStallholderApplyForm, useUpdateUser, useUserForm, useValidateVerificationToken, useValidateVerificationTokenForm, validateVerificationTokenFields };
|