@timardex/cluemart-shared 1.5.720 → 1.5.722
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-6B75Q67V.mjs → chunk-4SNW63TJ.mjs} +2 -1
- package/dist/{chunk-6B75Q67V.mjs.map → chunk-4SNW63TJ.mjs.map} +1 -1
- package/dist/{chunk-6D6XSMMH.mjs → chunk-HWLNH6G2.mjs} +54 -14
- package/dist/chunk-HWLNH6G2.mjs.map +1 -0
- package/dist/{chunk-PWJWWXIP.mjs → chunk-KL533AIU.mjs} +2 -2
- package/dist/{chunk-PRAR43V7.mjs → chunk-YAPBZ7DK.mjs} +2 -2
- package/dist/{chunk-JZY6HGS7.mjs → chunk-ZN5HT2J4.mjs} +3 -3
- package/dist/enums/index.cjs +1 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +2 -1
- package/dist/enums/index.d.ts +2 -1
- package/dist/enums/index.mjs +1 -1
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/graphql/index.cjs +53 -13
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +6 -6
- package/dist/graphql/index.d.ts +6 -6
- package/dist/graphql/index.mjs +2 -2
- package/dist/hooks/index.cjs +44 -7
- 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 +5 -5
- package/dist/index.cjs +54 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +20 -13
- package/dist/index.d.ts +20 -13
- package/dist/index.mjs +54 -13
- package/dist/index.mjs.map +1 -1
- package/dist/{post-CK-eJuXz.d.mts → post-C3-IUdTA.d.mts} +15 -9
- package/dist/{post-C2hRiow2.d.ts → post-DmsQS24-.d.ts} +15 -9
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.mjs +3 -3
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +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-6D6XSMMH.mjs.map +0 -1
- /package/dist/{chunk-PWJWWXIP.mjs.map → chunk-KL533AIU.mjs.map} +0 -0
- /package/dist/{chunk-PRAR43V7.mjs.map → chunk-YAPBZ7DK.mjs.map} +0 -0
- /package/dist/{chunk-JZY6HGS7.mjs.map → chunk-ZN5HT2J4.mjs.map} +0 -0
package/dist/graphql/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
|
-
import { EnumResourceType } from '../enums/index.mjs';
|
|
3
|
-
import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as PostType, g as EnumPostType, h as AppSettingsType, G as GameDocType, i as GameLeaderboard, j as SchoolReturnType, k as SchoolType } from '../post-
|
|
2
|
+
import { EnumResourceType, EnumEventDateStatus } from '../enums/index.mjs';
|
|
3
|
+
import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as PostType, g as EnumPostType, h as AppSettingsType, G as GameDocType, i as GameLeaderboard, j as SchoolReturnType, k as SchoolType } from '../post-C3-IUdTA.mjs';
|
|
4
4
|
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CZqXBve8.mjs';
|
|
5
5
|
import { E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, e as RelationType, f as ResourceConnectionsType, g as UnregisteredVendorType, V as VendorType, h as VendorInfoType, i as UserLicenceType } from '../global-BEUzBSyY.mjs';
|
|
6
6
|
import '../images/index.mjs';
|
|
@@ -266,7 +266,7 @@ declare const useUpdateEventInfo: () => {
|
|
|
266
266
|
}>>;
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
-
declare const useGetEvents: () => {
|
|
269
|
+
declare const useGetEvents: (dateStatus?: EnumEventDateStatus) => {
|
|
270
270
|
error: _apollo_client.ApolloError | undefined;
|
|
271
271
|
events: EventListItemType[];
|
|
272
272
|
loading: boolean;
|
|
@@ -290,7 +290,7 @@ declare const useGetEventByPlaceId: (googlePlaceId: string) => {
|
|
|
290
290
|
eventByPlaceId: EventListItemType | null;
|
|
291
291
|
}>>;
|
|
292
292
|
};
|
|
293
|
-
declare const useGetEventsByRegion: (region: string, options?: UseGetResourcesByRegionOptions) => {
|
|
293
|
+
declare const useGetEventsByRegion: (region: string, options?: UseGetResourcesByRegionOptions, dateStatus?: EnumEventDateStatus) => {
|
|
294
294
|
error: _apollo_client.ApolloError | undefined;
|
|
295
295
|
eventsByRegion: EventListItemType[];
|
|
296
296
|
fetchMore: <TFetchData = {
|
|
@@ -310,7 +310,7 @@ declare const useGetEventsByRegion: (region: string, options?: UseGetResourcesBy
|
|
|
310
310
|
eventsByRegion: EventListItemType[];
|
|
311
311
|
}>>;
|
|
312
312
|
};
|
|
313
|
-
declare const useSearchEvents: (region: string,
|
|
313
|
+
declare const useSearchEvents: (region: string, searchQuery?: string, tags?: string[], dateStatus?: EnumEventDateStatus) => {
|
|
314
314
|
error: _apollo_client.ApolloError | undefined;
|
|
315
315
|
eventsSearch: EventListItemType[];
|
|
316
316
|
loading: boolean;
|
|
@@ -322,7 +322,7 @@ declare const useGetEventsNearMe: (location: {
|
|
|
322
322
|
latitude: number;
|
|
323
323
|
longitude: number;
|
|
324
324
|
radius?: number;
|
|
325
|
-
}) => {
|
|
325
|
+
}, dateStatus?: EnumEventDateStatus) => {
|
|
326
326
|
error: _apollo_client.ApolloError | undefined;
|
|
327
327
|
eventsNearMe: EventListItemType[];
|
|
328
328
|
loading: boolean;
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
|
-
import { EnumResourceType } from '../enums/index.js';
|
|
3
|
-
import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as PostType, g as EnumPostType, h as AppSettingsType, G as GameDocType, i as GameLeaderboard, j as SchoolReturnType, k as SchoolType } from '../post-
|
|
2
|
+
import { EnumResourceType, EnumEventDateStatus } from '../enums/index.js';
|
|
3
|
+
import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as PostType, g as EnumPostType, h as AppSettingsType, G as GameDocType, i as GameLeaderboard, j as SchoolReturnType, k as SchoolType } from '../post-DmsQS24-.js';
|
|
4
4
|
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CjJdhVR7.js';
|
|
5
5
|
import { E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, e as RelationType, f as ResourceConnectionsType, g as UnregisteredVendorType, V as VendorType, h as VendorInfoType, i as UserLicenceType } from '../global-585slmSH.js';
|
|
6
6
|
import '../images/index.js';
|
|
@@ -266,7 +266,7 @@ declare const useUpdateEventInfo: () => {
|
|
|
266
266
|
}>>;
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
-
declare const useGetEvents: () => {
|
|
269
|
+
declare const useGetEvents: (dateStatus?: EnumEventDateStatus) => {
|
|
270
270
|
error: _apollo_client.ApolloError | undefined;
|
|
271
271
|
events: EventListItemType[];
|
|
272
272
|
loading: boolean;
|
|
@@ -290,7 +290,7 @@ declare const useGetEventByPlaceId: (googlePlaceId: string) => {
|
|
|
290
290
|
eventByPlaceId: EventListItemType | null;
|
|
291
291
|
}>>;
|
|
292
292
|
};
|
|
293
|
-
declare const useGetEventsByRegion: (region: string, options?: UseGetResourcesByRegionOptions) => {
|
|
293
|
+
declare const useGetEventsByRegion: (region: string, options?: UseGetResourcesByRegionOptions, dateStatus?: EnumEventDateStatus) => {
|
|
294
294
|
error: _apollo_client.ApolloError | undefined;
|
|
295
295
|
eventsByRegion: EventListItemType[];
|
|
296
296
|
fetchMore: <TFetchData = {
|
|
@@ -310,7 +310,7 @@ declare const useGetEventsByRegion: (region: string, options?: UseGetResourcesBy
|
|
|
310
310
|
eventsByRegion: EventListItemType[];
|
|
311
311
|
}>>;
|
|
312
312
|
};
|
|
313
|
-
declare const useSearchEvents: (region: string,
|
|
313
|
+
declare const useSearchEvents: (region: string, searchQuery?: string, tags?: string[], dateStatus?: EnumEventDateStatus) => {
|
|
314
314
|
error: _apollo_client.ApolloError | undefined;
|
|
315
315
|
eventsSearch: EventListItemType[];
|
|
316
316
|
loading: boolean;
|
|
@@ -322,7 +322,7 @@ declare const useGetEventsNearMe: (location: {
|
|
|
322
322
|
latitude: number;
|
|
323
323
|
longitude: number;
|
|
324
324
|
radius?: number;
|
|
325
|
-
}) => {
|
|
325
|
+
}, dateStatus?: EnumEventDateStatus) => {
|
|
326
326
|
error: _apollo_client.ApolloError | undefined;
|
|
327
327
|
eventsNearMe: EventListItemType[];
|
|
328
328
|
loading: boolean;
|
package/dist/graphql/index.mjs
CHANGED
|
@@ -136,8 +136,8 @@ import {
|
|
|
136
136
|
useUpdateVendor,
|
|
137
137
|
useUpdateVendorInfo,
|
|
138
138
|
useValidateVerificationToken
|
|
139
|
-
} from "../chunk-
|
|
140
|
-
import "../chunk-
|
|
139
|
+
} from "../chunk-HWLNH6G2.mjs";
|
|
140
|
+
import "../chunk-4SNW63TJ.mjs";
|
|
141
141
|
export {
|
|
142
142
|
useAddParticipantToChat,
|
|
143
143
|
useAddUserFavouriteResource,
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -276,6 +276,7 @@ var EnumEventDateStatus = /* @__PURE__ */ ((EnumEventDateStatus2) => {
|
|
|
276
276
|
EnumEventDateStatus2["ENDED"] = "Ended";
|
|
277
277
|
EnumEventDateStatus2["RE_SCHEDULED"] = "Rescheduled";
|
|
278
278
|
EnumEventDateStatus2["CANCELED"] = "Canceled";
|
|
279
|
+
EnumEventDateStatus2["INVALID"] = "Invalid";
|
|
279
280
|
return EnumEventDateStatus2;
|
|
280
281
|
})(EnumEventDateStatus || {});
|
|
281
282
|
|
|
@@ -2445,6 +2446,13 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = import_client2.gql`
|
|
|
2445
2446
|
}
|
|
2446
2447
|
${DATETIME_FIELDS_FRAGMENT}
|
|
2447
2448
|
`;
|
|
2449
|
+
var REDEEMED_REWARD_FIELDS_FRAGMENT = import_client2.gql`
|
|
2450
|
+
fragment RedeemedRewardFields on RedeemedRewardType {
|
|
2451
|
+
name
|
|
2452
|
+
pointsUsed
|
|
2453
|
+
redeemedAt
|
|
2454
|
+
}
|
|
2455
|
+
`;
|
|
2448
2456
|
var USER_FIELDS_FRAGMENT = import_client2.gql`
|
|
2449
2457
|
fragment UserFields on UserType {
|
|
2450
2458
|
_id
|
|
@@ -2475,6 +2483,9 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
|
|
|
2475
2483
|
preferredRegion
|
|
2476
2484
|
promoCodes
|
|
2477
2485
|
role
|
|
2486
|
+
redeemedRewards {
|
|
2487
|
+
...RedeemedRewardFields
|
|
2488
|
+
}
|
|
2478
2489
|
school
|
|
2479
2490
|
termsAgreement {
|
|
2480
2491
|
...TermsAgreementFields
|
|
@@ -2491,6 +2502,7 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
|
|
|
2491
2502
|
${USER_ACTIVITY_FIELDS_FRAGMENT}
|
|
2492
2503
|
${LICENCE_FIELDS_FRAGMENT}
|
|
2493
2504
|
${LOCATION_FIELDS_FRAGMENT}
|
|
2505
|
+
${REDEEMED_REWARD_FIELDS_FRAGMENT}
|
|
2494
2506
|
`;
|
|
2495
2507
|
var STALL_TYPE_FIELDS_FRAGMENT = import_client2.gql`
|
|
2496
2508
|
fragment StallTypeFields on StallTypeType {
|
|
@@ -2682,8 +2694,8 @@ var EVENT = import_client3.gql`
|
|
|
2682
2694
|
${RELATION_DATES_FRAGMENT}
|
|
2683
2695
|
`;
|
|
2684
2696
|
var GET_EVENTS = import_client3.gql`
|
|
2685
|
-
query getEvents {
|
|
2686
|
-
events {
|
|
2697
|
+
query getEvents($dateStatus: EnumEventDateStatus) {
|
|
2698
|
+
events(dateStatus: $dateStatus) {
|
|
2687
2699
|
...EventListItemFields
|
|
2688
2700
|
}
|
|
2689
2701
|
}
|
|
@@ -2709,24 +2721,49 @@ var GET_EVENTS_BY_REGION = import_client3.gql`
|
|
|
2709
2721
|
query getEventsByRegion(
|
|
2710
2722
|
$region: String!
|
|
2711
2723
|
$options: ResourcesByRegionOptions
|
|
2724
|
+
$dateStatus: EnumEventDateStatus
|
|
2712
2725
|
) {
|
|
2713
|
-
eventsByRegion(
|
|
2726
|
+
eventsByRegion(
|
|
2727
|
+
region: $region
|
|
2728
|
+
options: $options
|
|
2729
|
+
dateStatus: $dateStatus
|
|
2730
|
+
) {
|
|
2714
2731
|
...EventListItemFields
|
|
2715
2732
|
}
|
|
2716
2733
|
}
|
|
2717
2734
|
${EVENT_LIST_ITEM}
|
|
2718
2735
|
`;
|
|
2719
2736
|
var SEARCH_EVENTS = import_client3.gql`
|
|
2720
|
-
query searchEvents(
|
|
2721
|
-
|
|
2737
|
+
query searchEvents(
|
|
2738
|
+
$region: String
|
|
2739
|
+
$search: String
|
|
2740
|
+
$tags: [String]
|
|
2741
|
+
$dateStatus: EnumEventDateStatus
|
|
2742
|
+
) {
|
|
2743
|
+
eventsSearch(
|
|
2744
|
+
region: $region
|
|
2745
|
+
search: $search
|
|
2746
|
+
tags: $tags
|
|
2747
|
+
dateStatus: $dateStatus
|
|
2748
|
+
) {
|
|
2722
2749
|
...EventListItemFields
|
|
2723
2750
|
}
|
|
2724
2751
|
}
|
|
2725
2752
|
${EVENT_LIST_ITEM}
|
|
2726
2753
|
`;
|
|
2727
2754
|
var GET_EVENTS_NEAR_ME = import_client3.gql`
|
|
2728
|
-
query getEventsNearMe(
|
|
2729
|
-
|
|
2755
|
+
query getEventsNearMe(
|
|
2756
|
+
$latitude: Float!
|
|
2757
|
+
$longitude: Float!
|
|
2758
|
+
$radius: Int
|
|
2759
|
+
$dateStatus: EnumEventDateStatus
|
|
2760
|
+
) {
|
|
2761
|
+
eventsNearMe(
|
|
2762
|
+
latitude: $latitude
|
|
2763
|
+
longitude: $longitude
|
|
2764
|
+
radius: $radius
|
|
2765
|
+
dateStatus: $dateStatus
|
|
2766
|
+
) {
|
|
2730
2767
|
...EventListItemFields
|
|
2731
2768
|
}
|
|
2732
2769
|
}
|