@timardex/cluemart-shared 2.0.3 → 2.0.4
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-tNoTBv3n.d.mts → ad-BIeSuoVr.d.mts} +2 -2
- package/dist/{ad-C7jlZyUd.d.ts → ad-mouM5TCW.d.ts} +2 -2
- package/dist/{affiliate-BL1ZN-4t.d.mts → affiliate-Bu0aWFSP.d.mts} +2 -2
- package/dist/{affiliate-DStyY84o.d.ts → affiliate-Rw0noqSX.d.ts} +2 -2
- package/dist/auth/index.d.mts +3 -3
- package/dist/auth/index.d.ts +3 -3
- package/dist/{chunk-YFIMGYQF.mjs → chunk-5KOHAP3V.mjs} +13 -7
- package/dist/chunk-5KOHAP3V.mjs.map +1 -0
- package/dist/{chunk-XED54CPG.mjs → chunk-LMFBXRR7.mjs} +2 -2
- package/dist/{chunk-D45RNLV2.mjs → chunk-UUIAJ2D6.mjs} +1 -1
- package/dist/chunk-UUIAJ2D6.mjs.map +1 -0
- package/dist/{contactUs-_BHRXUrv.d.ts → contactUs-Q4DAGgQR.d.ts} +1 -1
- package/dist/{contactUs-BYm-iDIH.d.mts → contactUs-c_iBj1E1.d.mts} +1 -1
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +2 -2
- package/dist/{global-D_et_d2Y.d.ts → global-td3vSRFK.d.ts} +1 -0
- package/dist/{global-C7-KDYqg.d.mts → global-uaeCep3z.d.mts} +1 -0
- package/dist/graphql/index.cjs +12 -6
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +7 -7
- package/dist/graphql/index.d.ts +7 -7
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +5 -5
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/index.mjs +3 -3
- package/dist/index.cjs +12 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +12 -6
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +1 -1
- package/dist/map/index.d.ts +1 -1
- package/dist/{resourceActivities-BJAI4jf-.d.mts → resourceActivities-Bs7XEK0p.d.mts} +1 -1
- package/dist/{resourceActivities-BW648M1v.d.ts → resourceActivities-CVqhJ6Vw.d.ts} +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +7 -7
- package/dist/types/index.d.ts +7 -7
- package/dist/types/index.mjs +1 -1
- package/dist/{user-nHjaLZoG.d.ts → user-AUudb_XA.d.ts} +1 -1
- package/dist/{user-BA7TT2yB.d.mts → user-BWZq8kN7.d.mts} +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +3 -3
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-D45RNLV2.mjs.map +0 -1
- package/dist/chunk-YFIMGYQF.mjs.map +0 -1
- /package/dist/{chunk-XED54CPG.mjs.map → chunk-LMFBXRR7.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -1058,6 +1058,7 @@ interface PaginationOptions {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
interface UseGetResourcesByRegionOptions extends PaginationOptions {
|
|
1060
1060
|
onlyClaimed?: boolean;
|
|
1061
|
+
skip?: boolean;
|
|
1061
1062
|
}
|
|
1062
1063
|
|
|
1063
1064
|
declare const vendorBasicInfoFields: FormField[];
|
|
@@ -2515,7 +2516,7 @@ declare const useGetVendor: (_id: string) => {
|
|
|
2515
2516
|
}>>;
|
|
2516
2517
|
vendor: VendorType | null;
|
|
2517
2518
|
};
|
|
2518
|
-
declare const useGetVendorsByRegion: (region: string, options?: UseGetResourcesByRegionOptions
|
|
2519
|
+
declare const useGetVendorsByRegion: (region: string, options?: UseGetResourcesByRegionOptions) => {
|
|
2519
2520
|
error: _apollo_client.ApolloError | undefined;
|
|
2520
2521
|
fetchMore: <TFetchData = {
|
|
2521
2522
|
vendorsByRegion: VendorType[];
|
|
@@ -2972,7 +2973,7 @@ declare const useGetPartner: (_id: string) => {
|
|
|
2972
2973
|
partner: PartnerType;
|
|
2973
2974
|
}>>;
|
|
2974
2975
|
};
|
|
2975
|
-
declare const useGetPartnersByRegion: (region: string, options?: UseGetResourcesByRegionOptions
|
|
2976
|
+
declare const useGetPartnersByRegion: (region: string, options?: UseGetResourcesByRegionOptions) => {
|
|
2976
2977
|
error: _apollo_client.ApolloError | undefined;
|
|
2977
2978
|
fetchMore: <TFetchData = {
|
|
2978
2979
|
partnersByRegion: PartnerType[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1058,6 +1058,7 @@ interface PaginationOptions {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
interface UseGetResourcesByRegionOptions extends PaginationOptions {
|
|
1060
1060
|
onlyClaimed?: boolean;
|
|
1061
|
+
skip?: boolean;
|
|
1061
1062
|
}
|
|
1062
1063
|
|
|
1063
1064
|
declare const vendorBasicInfoFields: FormField[];
|
|
@@ -2515,7 +2516,7 @@ declare const useGetVendor: (_id: string) => {
|
|
|
2515
2516
|
}>>;
|
|
2516
2517
|
vendor: VendorType | null;
|
|
2517
2518
|
};
|
|
2518
|
-
declare const useGetVendorsByRegion: (region: string, options?: UseGetResourcesByRegionOptions
|
|
2519
|
+
declare const useGetVendorsByRegion: (region: string, options?: UseGetResourcesByRegionOptions) => {
|
|
2519
2520
|
error: _apollo_client.ApolloError | undefined;
|
|
2520
2521
|
fetchMore: <TFetchData = {
|
|
2521
2522
|
vendorsByRegion: VendorType[];
|
|
@@ -2972,7 +2973,7 @@ declare const useGetPartner: (_id: string) => {
|
|
|
2972
2973
|
partner: PartnerType;
|
|
2973
2974
|
}>>;
|
|
2974
2975
|
};
|
|
2975
|
-
declare const useGetPartnersByRegion: (region: string, options?: UseGetResourcesByRegionOptions
|
|
2976
|
+
declare const useGetPartnersByRegion: (region: string, options?: UseGetResourcesByRegionOptions) => {
|
|
2976
2977
|
error: _apollo_client.ApolloError | undefined;
|
|
2977
2978
|
fetchMore: <TFetchData = {
|
|
2978
2979
|
partnersByRegion: PartnerType[];
|
package/dist/index.mjs
CHANGED
|
@@ -5618,15 +5618,17 @@ var useGetEventByPlaceId = (googlePlaceId) => {
|
|
|
5618
5618
|
return { error, eventByPlaceId, loading, refetch };
|
|
5619
5619
|
};
|
|
5620
5620
|
var useGetEventsByRegion = (region, options, dateStatus, tags) => {
|
|
5621
|
+
const { skip = false, ...queryOptions } = options ?? {};
|
|
5622
|
+
const hasOptions = Object.keys(queryOptions).length > 0;
|
|
5621
5623
|
const variables = {
|
|
5622
5624
|
dateStatus,
|
|
5623
|
-
options,
|
|
5625
|
+
...hasOptions ? { options: queryOptions } : {},
|
|
5624
5626
|
region,
|
|
5625
5627
|
tags: (tags ?? []).filter(Boolean)
|
|
5626
5628
|
};
|
|
5627
5629
|
const { loading, error, data, refetch, fetchMore } = useQuery2(GET_EVENTS_BY_REGION, {
|
|
5628
5630
|
fetchPolicy: "network-only",
|
|
5629
|
-
skip: !region || region === "",
|
|
5631
|
+
skip: skip || !region || region === "",
|
|
5630
5632
|
variables
|
|
5631
5633
|
});
|
|
5632
5634
|
const eventsByRegion = data?.eventsByRegion || [];
|
|
@@ -6273,9 +6275,11 @@ var useGetVendor = (_id) => {
|
|
|
6273
6275
|
const vendor = data?.vendor || null;
|
|
6274
6276
|
return { error, loading, refetch, vendor };
|
|
6275
6277
|
};
|
|
6276
|
-
var useGetVendorsByRegion = (region, options
|
|
6278
|
+
var useGetVendorsByRegion = (region, options) => {
|
|
6279
|
+
const { skip = false, ...queryOptions } = options ?? {};
|
|
6280
|
+
const hasOptions = Object.keys(queryOptions).length > 0;
|
|
6277
6281
|
const variables = {
|
|
6278
|
-
options,
|
|
6282
|
+
...hasOptions ? { options: queryOptions } : {},
|
|
6279
6283
|
region
|
|
6280
6284
|
};
|
|
6281
6285
|
const { loading, error, data, refetch, fetchMore } = useQuery5(GET_VENDORS_BY_REGION, {
|
|
@@ -7184,9 +7188,11 @@ var useGetPartner = (_id) => {
|
|
|
7184
7188
|
const partner = data?.partner;
|
|
7185
7189
|
return { error, loading, partner, refetch };
|
|
7186
7190
|
};
|
|
7187
|
-
var useGetPartnersByRegion = (region, options
|
|
7191
|
+
var useGetPartnersByRegion = (region, options) => {
|
|
7192
|
+
const { skip = false, ...queryOptions } = options ?? {};
|
|
7193
|
+
const hasOptions = Object.keys(queryOptions).length > 0;
|
|
7188
7194
|
const variables = {
|
|
7189
|
-
options,
|
|
7195
|
+
...hasOptions ? { options: queryOptions } : {},
|
|
7190
7196
|
region
|
|
7191
7197
|
};
|
|
7192
7198
|
const { loading, error, data, refetch, fetchMore } = useQuery10(GET_PARTNERS_BY_REGION, {
|