@timardex/cluemart-shared 2.2.1 → 2.2.2
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/{ad-Ogzb0O0U.d.ts → ad-C4L_-r-4.d.ts} +10 -1
- package/dist/{ad-BdPabW-h.d.mts → ad-XtBAH4rD.d.mts} +10 -1
- package/dist/apollo/index.cjs +12 -7
- package/dist/apollo/index.cjs.map +1 -1
- package/dist/apollo/index.d.mts +11 -0
- package/dist/apollo/index.d.ts +11 -0
- package/dist/apollo/index.mjs +12 -7
- package/dist/apollo/index.mjs.map +1 -1
- package/dist/auth/index.cjs +42 -3
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.mts +2 -1
- package/dist/auth/index.d.ts +2 -1
- package/dist/auth/index.mjs +7 -5
- package/dist/auth/index.mjs.map +1 -1
- package/dist/{chunk-OSSBKFNH.mjs → chunk-BR4XNXE7.mjs} +52 -1
- package/dist/chunk-BR4XNXE7.mjs.map +1 -0
- package/dist/{chunk-MRBTCICB.mjs → chunk-FWKZZMQR.mjs} +1 -1
- package/dist/chunk-FWKZZMQR.mjs.map +1 -0
- package/dist/{chunk-UIG4A4U3.mjs → chunk-KHC57ZNS.mjs} +4 -4
- package/dist/{chunk-2DTCLBHT.mjs → chunk-MTBH5LMV.mjs} +95 -21
- package/dist/chunk-MTBH5LMV.mjs.map +1 -0
- package/dist/{chunk-576YBZYO.mjs → chunk-PUX53EZX.mjs} +3 -3
- package/dist/{chunk-YPWBK4WU.mjs → chunk-Q2WLLXTA.mjs} +2 -1
- package/dist/chunk-Q2WLLXTA.mjs.map +1 -0
- package/dist/{chunk-GOWIY4NZ.mjs → chunk-TCV735VY.mjs} +10 -2
- package/dist/chunk-TCV735VY.mjs.map +1 -0
- package/dist/{chunk-VWGCXGEL.mjs → chunk-YKJAOTF7.mjs} +2 -2
- package/dist/enums/index.cjs +1 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +1 -0
- package/dist/enums/index.d.ts +1 -0
- package/dist/enums/index.mjs +1 -1
- package/dist/formFields/index.cjs +16 -7
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +5 -5
- package/dist/graphql/index.cjs +62 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +29 -2
- package/dist/graphql/index.d.ts +29 -2
- package/dist/graphql/index.mjs +9 -3
- package/dist/hooks/index.cjs +72 -25
- 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 +8 -8
- package/dist/index.cjs +161 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +54 -1
- package/dist/index.d.ts +54 -1
- package/dist/index.mjs +156 -22
- package/dist/index.mjs.map +1 -1
- package/dist/region/index.cjs.map +1 -1
- package/dist/region/index.mjs +1 -1
- package/dist/sharing/index.cjs +20 -9
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.mjs +3 -3
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +2 -2
- package/dist/utils/index.cjs +98 -22
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +17 -1
- package/dist/utils/index.d.ts +17 -1
- package/dist/utils/index.mjs +9 -5
- package/package.json +1 -1
- package/dist/chunk-2DTCLBHT.mjs.map +0 -1
- package/dist/chunk-GOWIY4NZ.mjs.map +0 -1
- package/dist/chunk-MRBTCICB.mjs.map +0 -1
- package/dist/chunk-OSSBKFNH.mjs.map +0 -1
- package/dist/chunk-YPWBK4WU.mjs.map +0 -1
- /package/dist/{chunk-UIG4A4U3.mjs.map → chunk-KHC57ZNS.mjs.map} +0 -0
- /package/dist/{chunk-576YBZYO.mjs.map → chunk-PUX53EZX.mjs.map} +0 -0
- /package/dist/{chunk-VWGCXGEL.mjs.map → chunk-YKJAOTF7.mjs.map} +0 -0
|
@@ -42,18 +42,18 @@ import {
|
|
|
42
42
|
vendorStallSize,
|
|
43
43
|
vendorStartDateFields,
|
|
44
44
|
vendorTable
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-PUX53EZX.mjs";
|
|
46
46
|
import {
|
|
47
47
|
availableCategories,
|
|
48
48
|
categoryColors
|
|
49
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-KHC57ZNS.mjs";
|
|
50
50
|
import "../chunk-RE4NZPYY.mjs";
|
|
51
|
-
import "../chunk-
|
|
52
|
-
import "../chunk-
|
|
51
|
+
import "../chunk-MTBH5LMV.mjs";
|
|
52
|
+
import "../chunk-FWKZZMQR.mjs";
|
|
53
53
|
import "../chunk-RAYUJODN.mjs";
|
|
54
54
|
import "../chunk-DQ7ZHIXW.mjs";
|
|
55
55
|
import "../chunk-7DQBUZXY.mjs";
|
|
56
|
-
import "../chunk-
|
|
56
|
+
import "../chunk-Q2WLLXTA.mjs";
|
|
57
57
|
export {
|
|
58
58
|
availableCategories,
|
|
59
59
|
availableTagTypes,
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -103,6 +103,7 @@ __export(graphql_exports, {
|
|
|
103
103
|
useDeleteUnregisteredVendor: () => useDeleteUnregisteredVendor,
|
|
104
104
|
useDeleteUser: () => useDeleteUser,
|
|
105
105
|
useDeleteVendor: () => useDeleteVendor,
|
|
106
|
+
useEndImpersonation: () => useEndImpersonation,
|
|
106
107
|
useGetAd: () => useGetAd,
|
|
107
108
|
useGetAds: () => useGetAds,
|
|
108
109
|
useGetAdsByRegion: () => useGetAdsByRegion,
|
|
@@ -166,6 +167,7 @@ __export(graphql_exports, {
|
|
|
166
167
|
usePaginatedList: () => usePaginatedList,
|
|
167
168
|
useRedeemAffiliateReward: () => useRedeemAffiliateReward,
|
|
168
169
|
useRedeemReward: () => useRedeemReward,
|
|
170
|
+
useRefreshImpersonation: () => useRefreshImpersonation,
|
|
169
171
|
useRefreshToken: () => useRefreshToken,
|
|
170
172
|
useRegister: () => useRegister,
|
|
171
173
|
useRemoveParticipantFromChat: () => useRemoveParticipantFromChat,
|
|
@@ -185,6 +187,7 @@ __export(graphql_exports, {
|
|
|
185
187
|
useSelectStandardPackage: () => useSelectStandardPackage,
|
|
186
188
|
useSendChatMessage: () => useSendChatMessage,
|
|
187
189
|
useStartGame: () => useStartGame,
|
|
190
|
+
useStartImpersonation: () => useStartImpersonation,
|
|
188
191
|
useSyncBillingCatalogPrice: () => useSyncBillingCatalogPrice,
|
|
189
192
|
useToggleChatMessageLike: () => useToggleChatMessageLike,
|
|
190
193
|
useUnlinkUnregisteredVendorByInviterId: () => useUnlinkUnregisteredVendorByInviterId,
|
|
@@ -1812,6 +1815,42 @@ var REFRESH_TOKEN_MUTATION = import_client14.gql`
|
|
|
1812
1815
|
}
|
|
1813
1816
|
}
|
|
1814
1817
|
`;
|
|
1818
|
+
var START_IMPERSONATION_MUTATION = import_client14.gql`
|
|
1819
|
+
mutation startImpersonation($input: StartImpersonationInputType!) {
|
|
1820
|
+
startImpersonation(input: $input) {
|
|
1821
|
+
data {
|
|
1822
|
+
expiresAt
|
|
1823
|
+
refreshToken
|
|
1824
|
+
sessionId
|
|
1825
|
+
token
|
|
1826
|
+
user {
|
|
1827
|
+
...UserFields
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
message
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
${USER_FIELDS_FRAGMENT}
|
|
1834
|
+
`;
|
|
1835
|
+
var REFRESH_IMPERSONATION_MUTATION = import_client14.gql`
|
|
1836
|
+
mutation refreshImpersonation($input: RefreshImpersonationInputType!) {
|
|
1837
|
+
refreshImpersonation(input: $input) {
|
|
1838
|
+
data {
|
|
1839
|
+
refreshToken
|
|
1840
|
+
token
|
|
1841
|
+
}
|
|
1842
|
+
message
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
`;
|
|
1846
|
+
var END_IMPERSONATION_MUTATION = import_client14.gql`
|
|
1847
|
+
mutation endImpersonation {
|
|
1848
|
+
endImpersonation {
|
|
1849
|
+
data
|
|
1850
|
+
message
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
`;
|
|
1815
1854
|
var RESET_PASSWORD_MUTATION = import_client14.gql`
|
|
1816
1855
|
mutation resetPassword($input: ResetPasswordInputType!) {
|
|
1817
1856
|
resetPassword(input: $input) {
|
|
@@ -1856,6 +1895,18 @@ var useRefreshToken = () => {
|
|
|
1856
1895
|
const [refreshToken, { loading, error }] = (0, import_client15.useMutation)(REFRESH_TOKEN_MUTATION);
|
|
1857
1896
|
return { error, loading, refreshToken };
|
|
1858
1897
|
};
|
|
1898
|
+
var useStartImpersonation = () => {
|
|
1899
|
+
const [startImpersonation, { loading, error }] = (0, import_client15.useMutation)(START_IMPERSONATION_MUTATION);
|
|
1900
|
+
return { error, loading, startImpersonation };
|
|
1901
|
+
};
|
|
1902
|
+
var useRefreshImpersonation = () => {
|
|
1903
|
+
const [refreshImpersonation, { loading, error }] = (0, import_client15.useMutation)(REFRESH_IMPERSONATION_MUTATION);
|
|
1904
|
+
return { error, loading, refreshImpersonation };
|
|
1905
|
+
};
|
|
1906
|
+
var useEndImpersonation = () => {
|
|
1907
|
+
const [endImpersonation, { loading, error }] = (0, import_client15.useMutation)(END_IMPERSONATION_MUTATION);
|
|
1908
|
+
return { endImpersonation, error, loading };
|
|
1909
|
+
};
|
|
1859
1910
|
var useRequestPasswordReset = () => {
|
|
1860
1911
|
const [requestPasswordReset, { loading, error }] = (0, import_client15.useMutation)(REQUEST_PASSWORD_RESET_MUTATION);
|
|
1861
1912
|
return { error, loading, requestPasswordReset };
|
|
@@ -2300,14 +2351,22 @@ var UPDATE_EVENT_INFO_MUTATION = import_client23.gql`
|
|
|
2300
2351
|
// src/graphql/hooks/event/hooksMutation.ts
|
|
2301
2352
|
var useCreateEvent = () => {
|
|
2302
2353
|
const [createEvent, { loading, error }] = (0, import_client24.useMutation)(CREATE_EVENT_MUTATION, {
|
|
2354
|
+
// The mutation response is a live-only view of EventType. Don't write it
|
|
2355
|
+
// into the normalized EventType cache, where it would overwrite the full
|
|
2356
|
+
// (live + archived) `dateTime` that `getEvent` fetches for the detail page.
|
|
2303
2357
|
awaitRefetchQueries: true,
|
|
2358
|
+
fetchPolicy: "no-cache",
|
|
2304
2359
|
refetchQueries: [{ query: GET_USER_EVENTS }]
|
|
2305
2360
|
});
|
|
2306
2361
|
return { createEvent, error, loading };
|
|
2307
2362
|
};
|
|
2308
2363
|
var useUpdateEvent = () => {
|
|
2309
2364
|
const [updateEvent, { loading, error }] = (0, import_client24.useMutation)(UPDATE_EVENT_MUTATION, {
|
|
2365
|
+
// See useCreateEvent: the update response only carries the live schedule,
|
|
2366
|
+
// so keep it out of the normalized EventType cache to avoid clobbering the
|
|
2367
|
+
// archived dates merged by `getEvent`.
|
|
2310
2368
|
awaitRefetchQueries: true,
|
|
2369
|
+
fetchPolicy: "no-cache",
|
|
2311
2370
|
refetchQueries: (mutationResult) => {
|
|
2312
2371
|
const eventId = mutationResult?.data?.updateEvent?.data?._id;
|
|
2313
2372
|
if (!eventId) return [];
|
|
@@ -5678,6 +5737,7 @@ function usePaginatedList({
|
|
|
5678
5737
|
useDeleteUnregisteredVendor,
|
|
5679
5738
|
useDeleteUser,
|
|
5680
5739
|
useDeleteVendor,
|
|
5740
|
+
useEndImpersonation,
|
|
5681
5741
|
useGetAd,
|
|
5682
5742
|
useGetAds,
|
|
5683
5743
|
useGetAdsByRegion,
|
|
@@ -5741,6 +5801,7 @@ function usePaginatedList({
|
|
|
5741
5801
|
usePaginatedList,
|
|
5742
5802
|
useRedeemAffiliateReward,
|
|
5743
5803
|
useRedeemReward,
|
|
5804
|
+
useRefreshImpersonation,
|
|
5744
5805
|
useRefreshToken,
|
|
5745
5806
|
useRegister,
|
|
5746
5807
|
useRemoveParticipantFromChat,
|
|
@@ -5760,6 +5821,7 @@ function usePaginatedList({
|
|
|
5760
5821
|
useSelectStandardPackage,
|
|
5761
5822
|
useSendChatMessage,
|
|
5762
5823
|
useStartGame,
|
|
5824
|
+
useStartImpersonation,
|
|
5763
5825
|
useSyncBillingCatalogPrice,
|
|
5764
5826
|
useToggleChatMessageLike,
|
|
5765
5827
|
useUnlinkUnregisteredVendorByInviterId,
|