@timardex/cluemart-shared 1.0.15 → 1.0.16

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.
Files changed (54) hide show
  1. package/dist/auth-CdcH8nqw.d.mts +84 -0
  2. package/dist/auth-TM_XttY3.d.ts +84 -0
  3. package/dist/chat-NGx5Emrr.d.mts +27 -0
  4. package/dist/chat-NGx5Emrr.d.ts +27 -0
  5. package/dist/chunk-K5NK2CK5.mjs +133 -0
  6. package/dist/chunk-K5NK2CK5.mjs.map +1 -0
  7. package/dist/chunk-L2H5WFGC.mjs +100 -0
  8. package/dist/chunk-L2H5WFGC.mjs.map +1 -0
  9. package/dist/enums/index.cjs +134 -0
  10. package/dist/enums/index.cjs.map +1 -0
  11. package/dist/enums/index.d.mts +75 -0
  12. package/dist/enums/index.d.ts +75 -0
  13. package/dist/enums/index.mjs +27 -0
  14. package/dist/enums/index.mjs.map +1 -0
  15. package/dist/formFields/index.cjs +888 -0
  16. package/dist/formFields/index.cjs.map +1 -0
  17. package/dist/formFields/index.d.mts +60 -0
  18. package/dist/formFields/index.d.ts +60 -0
  19. package/dist/formFields/index.mjs +754 -0
  20. package/dist/formFields/index.mjs.map +1 -0
  21. package/dist/global-B7gB8cvC.d.ts +338 -0
  22. package/dist/global-B8kYikwQ.d.mts +338 -0
  23. package/dist/graphql/index.cjs +1634 -0
  24. package/dist/graphql/index.cjs.map +1 -0
  25. package/dist/graphql/index.d.mts +299 -0
  26. package/dist/graphql/index.d.ts +299 -0
  27. package/dist/graphql/index.mjs +1558 -0
  28. package/dist/graphql/index.mjs.map +1 -0
  29. package/dist/hooks/index.cjs +1090 -0
  30. package/dist/hooks/index.cjs.map +1 -0
  31. package/dist/hooks/index.d.mts +78 -0
  32. package/dist/hooks/index.d.ts +78 -0
  33. package/dist/hooks/index.mjs +970 -0
  34. package/dist/hooks/index.mjs.map +1 -0
  35. package/dist/index.cjs +10 -48
  36. package/dist/index.cjs.map +1 -0
  37. package/dist/index.d.mts +1 -287
  38. package/dist/index.d.ts +1 -287
  39. package/dist/index.mjs +8 -26
  40. package/dist/index.mjs.map +1 -1
  41. package/dist/types/index.cjs +19 -0
  42. package/dist/types/index.cjs.map +1 -0
  43. package/dist/types/index.d.mts +12 -0
  44. package/dist/types/index.d.ts +12 -0
  45. package/dist/types/index.mjs +1 -0
  46. package/dist/types/index.mjs.map +1 -0
  47. package/dist/utils/index.cjs +215 -0
  48. package/dist/utils/index.cjs.map +1 -0
  49. package/dist/utils/index.d.mts +66 -0
  50. package/dist/utils/index.d.ts +66 -0
  51. package/dist/utils/index.mjs +38 -0
  52. package/dist/utils/index.mjs.map +1 -0
  53. package/package.json +37 -4
  54. package/dist/index.js.map +0 -1
@@ -0,0 +1,299 @@
1
+ import * as _apollo_client from '@apollo/client';
2
+ import { c as ChatType } from '../chat-NGx5Emrr.js';
3
+ import { j as MarketType, n as RelationType, e as ResourceConnectionsType, u as StallholderType, v as StallholderApplyFormType, d as NotificationType, y as UserType } from '../global-B7gB8cvC.js';
4
+ import { EnumResourceType } from '../enums/index.js';
5
+ import 'react-hook-form';
6
+
7
+ declare const useLogin: () => {
8
+ error: _apollo_client.ApolloError | undefined;
9
+ loading: boolean;
10
+ login: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
11
+ };
12
+ declare const useRegister: () => {
13
+ error: _apollo_client.ApolloError | undefined;
14
+ loading: boolean;
15
+ register: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
16
+ };
17
+ declare const useRequestPasswordReset: () => {
18
+ error: _apollo_client.ApolloError | undefined;
19
+ loading: boolean;
20
+ requestPasswordReset: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
21
+ };
22
+ declare const useValidateToken: () => {
23
+ error: _apollo_client.ApolloError | undefined;
24
+ loading: boolean;
25
+ validateToken: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
26
+ };
27
+ declare const useResetPassword: () => {
28
+ error: _apollo_client.ApolloError | undefined;
29
+ loading: boolean;
30
+ resetPassword: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
31
+ };
32
+
33
+ declare const useCreateChat: () => {
34
+ createChat: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
35
+ error: _apollo_client.ApolloError | undefined;
36
+ loading: boolean;
37
+ };
38
+ declare const useSendChatMessage: () => {
39
+ error: _apollo_client.ApolloError | undefined;
40
+ loading: boolean;
41
+ sendChatMessage: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
42
+ };
43
+ declare const useDeleteChat: () => {
44
+ deleteChat: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
45
+ error: _apollo_client.ApolloError | undefined;
46
+ loading: boolean;
47
+ };
48
+ declare const useAddParticipantToChat: () => {
49
+ addParticipantToChat: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
50
+ error: _apollo_client.ApolloError | undefined;
51
+ loading: boolean;
52
+ };
53
+ declare const useRemoveParticipantFromChat: () => {
54
+ error: _apollo_client.ApolloError | undefined;
55
+ loading: boolean;
56
+ removeParticipantFromChat: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
57
+ };
58
+
59
+ declare const useGetChat: (_id: string) => {
60
+ chat: ChatType;
61
+ error: _apollo_client.ApolloError | undefined;
62
+ loading: boolean;
63
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
64
+ };
65
+ declare const useGetUserChats: () => {
66
+ error: _apollo_client.ApolloError | undefined;
67
+ loading: boolean;
68
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
69
+ userChats: ChatType[];
70
+ };
71
+
72
+ declare const useCreateMarket: () => {
73
+ createMarket: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
74
+ error: _apollo_client.ApolloError | undefined;
75
+ loading: boolean;
76
+ };
77
+ declare const useUpdateMarket: () => {
78
+ error: _apollo_client.ApolloError | undefined;
79
+ loading: boolean;
80
+ updateMarket: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
81
+ };
82
+ declare const useDeleteMarket: () => {
83
+ deleteMarket: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
84
+ error: _apollo_client.ApolloError | undefined;
85
+ loading: boolean;
86
+ };
87
+
88
+ declare const useGetMarkets: () => {
89
+ error: _apollo_client.ApolloError | undefined;
90
+ loading: boolean;
91
+ markets: MarketType[];
92
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
93
+ };
94
+ declare const useGetMarket: (_id: string) => {
95
+ error: _apollo_client.ApolloError | undefined;
96
+ loading: boolean;
97
+ market: MarketType;
98
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
99
+ };
100
+ declare const useGetMarketsByRegion: (region: string) => {
101
+ error: _apollo_client.ApolloError | undefined;
102
+ loading: boolean;
103
+ markets: MarketType[];
104
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
105
+ };
106
+ declare const useSearchMarkets: (search: string, region: string) => {
107
+ error: _apollo_client.ApolloError | undefined;
108
+ loading: boolean;
109
+ markets: MarketType[];
110
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
111
+ };
112
+ declare const useGetMarketsNearMe: (location: {
113
+ latitude: number;
114
+ longitude: number;
115
+ radius?: number;
116
+ }) => {
117
+ error: _apollo_client.ApolloError | undefined;
118
+ loading: boolean;
119
+ markets: MarketType[];
120
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
121
+ };
122
+
123
+ declare const useCreatePoster: () => {
124
+ createPoster: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
125
+ error: _apollo_client.ApolloError | undefined;
126
+ loading: boolean;
127
+ };
128
+
129
+ declare const useCreateRelation: () => {
130
+ createRelation: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
131
+ error: _apollo_client.ApolloError | undefined;
132
+ loading: boolean;
133
+ };
134
+ declare const useUpdateRelation: () => {
135
+ error: _apollo_client.ApolloError | undefined;
136
+ loading: boolean;
137
+ updateRelation: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
138
+ };
139
+ declare const useDeleteRelation: () => {
140
+ deleteRelation: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
141
+ error: _apollo_client.ApolloError | undefined;
142
+ loading: boolean;
143
+ };
144
+
145
+ declare const useGetRelation: (id: string) => {
146
+ error: _apollo_client.ApolloError | undefined;
147
+ loading: boolean;
148
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
149
+ relation: RelationType;
150
+ };
151
+ declare const useGetRelationByMarketAndStallholder: (marketId: string, stallholderId: string) => {
152
+ error: _apollo_client.ApolloError | undefined;
153
+ loading: boolean;
154
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
155
+ relationByMarketAndStallholder: RelationType;
156
+ };
157
+ declare const useGetMarketRelations: (marketId: string) => {
158
+ error: _apollo_client.ApolloError | undefined;
159
+ loading: boolean;
160
+ marketRelations: RelationType[];
161
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
162
+ };
163
+ declare const useGetStallholderRelations: (stallholderId: string) => {
164
+ error: _apollo_client.ApolloError | undefined;
165
+ loading: boolean;
166
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
167
+ stallholderRelations: RelationType[];
168
+ };
169
+ declare const useGetResourceConnections: (resourceId: string, resourceType: EnumResourceType) => {
170
+ error: _apollo_client.ApolloError | undefined;
171
+ loading: boolean;
172
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
173
+ resourceConnections: ResourceConnectionsType;
174
+ };
175
+
176
+ declare const useCreateStallholder: () => {
177
+ createStallholder: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
178
+ error: _apollo_client.ApolloError | undefined;
179
+ loading: boolean;
180
+ };
181
+ declare const useUpdateStallholder: () => {
182
+ error: _apollo_client.ApolloError | undefined;
183
+ loading: boolean;
184
+ updateStallholder: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
185
+ };
186
+ declare const useDeleteStallholder: () => {
187
+ deleteStallholder: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
188
+ error: _apollo_client.ApolloError | undefined;
189
+ loading: boolean;
190
+ };
191
+ declare const useCreateStallholderApplyForm: () => {
192
+ createStallholderApplyForm: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
193
+ error: _apollo_client.ApolloError | undefined;
194
+ loading: boolean;
195
+ };
196
+ declare const useUpdateStallholderApplyForm: () => {
197
+ error: _apollo_client.ApolloError | undefined;
198
+ loading: boolean;
199
+ updateStallholderApplyForm: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
200
+ };
201
+
202
+ declare const useGetStallholders: () => {
203
+ error: _apollo_client.ApolloError | undefined;
204
+ loading: boolean;
205
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
206
+ stallholders: StallholderType[];
207
+ };
208
+ declare const useGetStallholder: (_id: string) => {
209
+ error: _apollo_client.ApolloError | undefined;
210
+ loading: boolean;
211
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
212
+ stallholder: StallholderType;
213
+ };
214
+ declare const useGetStallholdersByRegion: (region: string) => {
215
+ error: _apollo_client.ApolloError | undefined;
216
+ loading: boolean;
217
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
218
+ stallholders: StallholderType[];
219
+ };
220
+ declare const useSearchStallholders: (search: string, region: string) => {
221
+ error: _apollo_client.ApolloError | undefined;
222
+ loading: boolean;
223
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
224
+ stallholders: StallholderType[];
225
+ };
226
+ declare const useGetStallholderApplyForm: (stallholderId: string) => {
227
+ applyForm: StallholderApplyFormType;
228
+ error: _apollo_client.ApolloError | undefined;
229
+ loading: boolean;
230
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
231
+ };
232
+
233
+ declare const useGetNotification: () => {
234
+ error: _apollo_client.ApolloError | undefined;
235
+ loading: boolean;
236
+ notification: NotificationType;
237
+ };
238
+ declare const useGetChatSubscription: () => {
239
+ chat: ChatType;
240
+ error: _apollo_client.ApolloError | undefined;
241
+ loading: boolean;
242
+ };
243
+
244
+ declare const useCreateUser: () => {
245
+ createUser: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
246
+ error: _apollo_client.ApolloError | undefined;
247
+ loading: boolean;
248
+ };
249
+ declare const useUpdateUser: () => {
250
+ error: _apollo_client.ApolloError | undefined;
251
+ loading: boolean;
252
+ updateUser: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
253
+ };
254
+ declare const useAddUserFavouriteResource: () => {
255
+ addUserFavouriteResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
256
+ error: _apollo_client.ApolloError | undefined;
257
+ loading: boolean;
258
+ };
259
+ declare const useRemoveUserFavouriteResource: () => {
260
+ error: _apollo_client.ApolloError | undefined;
261
+ loading: boolean;
262
+ removeUserFavouriteResource: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
263
+ };
264
+
265
+ declare const useGetUsers: () => {
266
+ error: _apollo_client.ApolloError | undefined;
267
+ loading: boolean;
268
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
269
+ users: UserType[];
270
+ };
271
+ declare const useGetUser: (id: string) => {
272
+ error: _apollo_client.ApolloError | undefined;
273
+ loading: boolean;
274
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
275
+ user: UserType;
276
+ };
277
+ declare const useGetUserMarkets: () => {
278
+ error: _apollo_client.ApolloError | undefined;
279
+ loading: boolean;
280
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
281
+ userMarkets: MarketType[];
282
+ };
283
+ declare const useGetUserFavourites: () => {
284
+ error: _apollo_client.ApolloError | undefined;
285
+ loading: boolean;
286
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
287
+ userFavourites: {
288
+ markets: MarketType[];
289
+ stallholders: StallholderType[];
290
+ };
291
+ };
292
+ declare const useGetUserNotifications: () => {
293
+ error: _apollo_client.ApolloError | undefined;
294
+ loading: boolean;
295
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
296
+ userNotifications: boolean;
297
+ };
298
+
299
+ export { useAddParticipantToChat, useAddUserFavouriteResource, useCreateChat, useCreateMarket, useCreatePoster, useCreateRelation, useCreateStallholder, useCreateStallholderApplyForm, useCreateUser, useDeleteChat, useDeleteMarket, useDeleteRelation, useDeleteStallholder, useGetChat, useGetChatSubscription, useGetMarket, useGetMarketRelations, useGetMarkets, useGetMarketsByRegion, useGetMarketsNearMe, useGetNotification, useGetRelation, useGetRelationByMarketAndStallholder, useGetResourceConnections, useGetStallholder, useGetStallholderApplyForm, useGetStallholderRelations, useGetStallholders, useGetStallholdersByRegion, useGetUser, useGetUserChats, useGetUserFavourites, useGetUserMarkets, useGetUserNotifications, useGetUsers, useLogin, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRequestPasswordReset, useResetPassword, useSearchMarkets, useSearchStallholders, useSendChatMessage, useUpdateMarket, useUpdateRelation, useUpdateStallholder, useUpdateStallholderApplyForm, useUpdateUser, useValidateToken };