@timardex/cluemart-shared 1.7.85 → 1.7.87
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/index.cjs +8 -0
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.mjs +1 -1
- package/dist/{chunk-HPHI5IVL.mjs → chunk-5T4L7NCF.mjs} +13 -2
- package/dist/chunk-5T4L7NCF.mjs.map +1 -0
- package/dist/{chunk-MWLKYOBK.mjs → chunk-GA6E5NK3.mjs} +10 -1
- package/dist/chunk-GA6E5NK3.mjs.map +1 -0
- package/dist/{chunk-5RXL62LO.mjs → chunk-RCARDOVS.mjs} +4 -6
- package/dist/chunk-RCARDOVS.mjs.map +1 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +1 -1
- package/dist/graphql/index.cjs +21 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +10 -1
- package/dist/graphql/index.d.ts +10 -1
- package/dist/graphql/index.mjs +6 -2
- package/dist/hooks/index.cjs +8 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +3 -3
- package/dist/index.cjs +24 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.mjs +22 -5
- package/dist/index.mjs.map +1 -1
- package/dist/utils/index.cjs +3 -5
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-5RXL62LO.mjs.map +0 -1
- package/dist/chunk-HPHI5IVL.mjs.map +0 -1
- package/dist/chunk-MWLKYOBK.mjs.map +0 -1
package/dist/graphql/index.cjs
CHANGED
|
@@ -24,6 +24,7 @@ __export(graphql_exports, {
|
|
|
24
24
|
GET_EVENT: () => GET_EVENT,
|
|
25
25
|
GET_EVENT_BY_SLUG: () => GET_EVENT_BY_SLUG,
|
|
26
26
|
GET_EVENT_INFO: () => GET_EVENT_INFO,
|
|
27
|
+
GET_OWNED_EVENT: () => GET_OWNED_EVENT,
|
|
27
28
|
GET_PARTNER: () => GET_PARTNER,
|
|
28
29
|
GET_PARTNER_BY_SLUG: () => GET_PARTNER_BY_SLUG,
|
|
29
30
|
GET_POST: () => GET_POST,
|
|
@@ -105,6 +106,7 @@ __export(graphql_exports, {
|
|
|
105
106
|
useGetGames: () => useGetGames,
|
|
106
107
|
useGetNotificationCount: () => useGetNotificationCount,
|
|
107
108
|
useGetNotificationCountSubscription: () => useGetNotificationCountSubscription,
|
|
109
|
+
useGetOwnedEvent: () => useGetOwnedEvent,
|
|
108
110
|
useGetPartner: () => useGetPartner,
|
|
109
111
|
useGetPartners: () => useGetPartners,
|
|
110
112
|
useGetPartnersByRegion: () => useGetPartnersByRegion,
|
|
@@ -638,6 +640,14 @@ var GET_EVENT = import_client2.gql`
|
|
|
638
640
|
}
|
|
639
641
|
${EVENT}
|
|
640
642
|
`;
|
|
643
|
+
var GET_OWNED_EVENT = import_client2.gql`
|
|
644
|
+
query getOwnedEvent($_id: ID!) {
|
|
645
|
+
ownedEvent(_id: $_id) {
|
|
646
|
+
...EventFields
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
${EVENT}
|
|
650
|
+
`;
|
|
641
651
|
var GET_EVENT_BY_PLACE_ID = import_client2.gql`
|
|
642
652
|
query getEventByPlaceId($googlePlaceId: String!) {
|
|
643
653
|
eventByPlaceId(googlePlaceId: $googlePlaceId) {
|
|
@@ -2362,6 +2372,15 @@ var useGetEvent = (_id) => {
|
|
|
2362
2372
|
const event = data?.event || null;
|
|
2363
2373
|
return { error, event, loading, refetch };
|
|
2364
2374
|
};
|
|
2375
|
+
var useGetOwnedEvent = (_id) => {
|
|
2376
|
+
const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_OWNED_EVENT, {
|
|
2377
|
+
fetchPolicy: "network-only",
|
|
2378
|
+
skip: !_id,
|
|
2379
|
+
variables: { _id }
|
|
2380
|
+
});
|
|
2381
|
+
const event = data?.ownedEvent || null;
|
|
2382
|
+
return { error, event, loading, refetch };
|
|
2383
|
+
};
|
|
2365
2384
|
var useGetEventByPlaceId = (googlePlaceId) => {
|
|
2366
2385
|
const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_EVENT_BY_PLACE_ID, {
|
|
2367
2386
|
fetchPolicy: "network-only",
|
|
@@ -5220,6 +5239,7 @@ var useGetCoupon = (_id) => {
|
|
|
5220
5239
|
GET_EVENT,
|
|
5221
5240
|
GET_EVENT_BY_SLUG,
|
|
5222
5241
|
GET_EVENT_INFO,
|
|
5242
|
+
GET_OWNED_EVENT,
|
|
5223
5243
|
GET_PARTNER,
|
|
5224
5244
|
GET_PARTNER_BY_SLUG,
|
|
5225
5245
|
GET_POST,
|
|
@@ -5301,6 +5321,7 @@ var useGetCoupon = (_id) => {
|
|
|
5301
5321
|
useGetGames,
|
|
5302
5322
|
useGetNotificationCount,
|
|
5303
5323
|
useGetNotificationCountSubscription,
|
|
5324
|
+
useGetOwnedEvent,
|
|
5304
5325
|
useGetPartner,
|
|
5305
5326
|
useGetPartners,
|
|
5306
5327
|
useGetPartnersByRegion,
|