@timardex/cluemart-shared 2.0.1 → 2.0.3
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-GRP7XQNB.mjs → chunk-YFIMGYQF.mjs} +5 -3
- package/dist/chunk-YFIMGYQF.mjs.map +1 -0
- package/dist/graphql/index.cjs +4 -2
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +2 -2
- package/dist/graphql/index.d.ts +2 -2
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-GRP7XQNB.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -2515,7 +2515,7 @@ declare const useGetVendor: (_id: string) => {
|
|
|
2515
2515
|
}>>;
|
|
2516
2516
|
vendor: VendorType | null;
|
|
2517
2517
|
};
|
|
2518
|
-
declare const useGetVendorsByRegion: (region: string, options?: UseGetResourcesByRegionOptions) => {
|
|
2518
|
+
declare const useGetVendorsByRegion: (region: string, options?: UseGetResourcesByRegionOptions, skip?: boolean) => {
|
|
2519
2519
|
error: _apollo_client.ApolloError | undefined;
|
|
2520
2520
|
fetchMore: <TFetchData = {
|
|
2521
2521
|
vendorsByRegion: VendorType[];
|
|
@@ -2972,7 +2972,7 @@ declare const useGetPartner: (_id: string) => {
|
|
|
2972
2972
|
partner: PartnerType;
|
|
2973
2973
|
}>>;
|
|
2974
2974
|
};
|
|
2975
|
-
declare const useGetPartnersByRegion: (region: string, options?: UseGetResourcesByRegionOptions) => {
|
|
2975
|
+
declare const useGetPartnersByRegion: (region: string, options?: UseGetResourcesByRegionOptions, skip?: boolean) => {
|
|
2976
2976
|
error: _apollo_client.ApolloError | undefined;
|
|
2977
2977
|
fetchMore: <TFetchData = {
|
|
2978
2978
|
partnersByRegion: PartnerType[];
|
package/dist/index.d.ts
CHANGED
|
@@ -2515,7 +2515,7 @@ declare const useGetVendor: (_id: string) => {
|
|
|
2515
2515
|
}>>;
|
|
2516
2516
|
vendor: VendorType | null;
|
|
2517
2517
|
};
|
|
2518
|
-
declare const useGetVendorsByRegion: (region: string, options?: UseGetResourcesByRegionOptions) => {
|
|
2518
|
+
declare const useGetVendorsByRegion: (region: string, options?: UseGetResourcesByRegionOptions, skip?: boolean) => {
|
|
2519
2519
|
error: _apollo_client.ApolloError | undefined;
|
|
2520
2520
|
fetchMore: <TFetchData = {
|
|
2521
2521
|
vendorsByRegion: VendorType[];
|
|
@@ -2972,7 +2972,7 @@ declare const useGetPartner: (_id: string) => {
|
|
|
2972
2972
|
partner: PartnerType;
|
|
2973
2973
|
}>>;
|
|
2974
2974
|
};
|
|
2975
|
-
declare const useGetPartnersByRegion: (region: string, options?: UseGetResourcesByRegionOptions) => {
|
|
2975
|
+
declare const useGetPartnersByRegion: (region: string, options?: UseGetResourcesByRegionOptions, skip?: boolean) => {
|
|
2976
2976
|
error: _apollo_client.ApolloError | undefined;
|
|
2977
2977
|
fetchMore: <TFetchData = {
|
|
2978
2978
|
partnersByRegion: PartnerType[];
|
package/dist/index.mjs
CHANGED
|
@@ -6273,13 +6273,14 @@ var useGetVendor = (_id) => {
|
|
|
6273
6273
|
const vendor = data?.vendor || null;
|
|
6274
6274
|
return { error, loading, refetch, vendor };
|
|
6275
6275
|
};
|
|
6276
|
-
var useGetVendorsByRegion = (region, options) => {
|
|
6276
|
+
var useGetVendorsByRegion = (region, options, skip = false) => {
|
|
6277
6277
|
const variables = {
|
|
6278
6278
|
options,
|
|
6279
6279
|
region
|
|
6280
6280
|
};
|
|
6281
6281
|
const { loading, error, data, refetch, fetchMore } = useQuery5(GET_VENDORS_BY_REGION, {
|
|
6282
6282
|
fetchPolicy: "network-only",
|
|
6283
|
+
skip,
|
|
6283
6284
|
variables
|
|
6284
6285
|
});
|
|
6285
6286
|
const vendorsByRegion = data?.vendorsByRegion || [];
|
|
@@ -7183,13 +7184,14 @@ var useGetPartner = (_id) => {
|
|
|
7183
7184
|
const partner = data?.partner;
|
|
7184
7185
|
return { error, loading, partner, refetch };
|
|
7185
7186
|
};
|
|
7186
|
-
var useGetPartnersByRegion = (region, options) => {
|
|
7187
|
+
var useGetPartnersByRegion = (region, options, skip = false) => {
|
|
7187
7188
|
const variables = {
|
|
7188
7189
|
options,
|
|
7189
7190
|
region
|
|
7190
7191
|
};
|
|
7191
7192
|
const { loading, error, data, refetch, fetchMore } = useQuery10(GET_PARTNERS_BY_REGION, {
|
|
7192
7193
|
fetchPolicy: "network-only",
|
|
7194
|
+
skip,
|
|
7193
7195
|
variables
|
|
7194
7196
|
});
|
|
7195
7197
|
const partnersByRegion = data?.partnersByRegion || [];
|