@timardex/cluemart-shared 2.0.13 → 2.0.15
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-DtHc-l0P.d.ts → ad-CpsTouG6.d.ts} +7 -1
- package/dist/{ad-uqMx-9wk.d.mts → ad-DwFDtNp7.d.mts} +7 -1
- package/dist/{chunk-DS2Y6BNU.mjs → chunk-6HI3OSCZ.mjs} +18 -7
- package/dist/chunk-6HI3OSCZ.mjs.map +1 -0
- package/dist/{chunk-XU65BXAM.mjs → chunk-KGPPKS5M.mjs} +1 -1
- package/dist/chunk-KGPPKS5M.mjs.map +1 -0
- package/dist/{chunk-VHYU2BPC.mjs → chunk-NERMP6D5.mjs} +2 -2
- package/dist/{chunk-AUWZYZK5.mjs → chunk-ZUXHEXJU.mjs} +2 -2
- package/dist/{chunk-AUWZYZK5.mjs.map → chunk-ZUXHEXJU.mjs.map} +1 -1
- package/dist/formFields/index.cjs +1 -1
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/graphql/index.cjs +17 -6
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +5 -3
- package/dist/graphql/index.d.ts +5 -3
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +29 -3
- 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 +23 -5
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +18 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +11 -3
- package/dist/index.d.ts +11 -3
- package/dist/index.mjs +18 -7
- package/dist/index.mjs.map +1 -1
- 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 +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-DS2Y6BNU.mjs.map +0 -1
- package/dist/chunk-XU65BXAM.mjs.map +0 -1
- /package/dist/{chunk-VHYU2BPC.mjs.map → chunk-NERMP6D5.mjs.map} +0 -0
|
@@ -42,13 +42,13 @@ import {
|
|
|
42
42
|
vendorStallSize,
|
|
43
43
|
vendorStartDateFields,
|
|
44
44
|
vendorTable
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-ZUXHEXJU.mjs";
|
|
46
46
|
import {
|
|
47
47
|
availableCategories,
|
|
48
48
|
categoryColors
|
|
49
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-NERMP6D5.mjs";
|
|
50
50
|
import "../chunk-UH6POK3Y.mjs";
|
|
51
|
-
import "../chunk-
|
|
51
|
+
import "../chunk-KGPPKS5M.mjs";
|
|
52
52
|
import "../chunk-RAYUJODN.mjs";
|
|
53
53
|
import "../chunk-DQ7ZHIXW.mjs";
|
|
54
54
|
import "../chunk-7DQBUZXY.mjs";
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -3582,8 +3582,12 @@ var GET_AD = import_client44.gql`
|
|
|
3582
3582
|
${AD_FIELDS_FRAGMENT}
|
|
3583
3583
|
`;
|
|
3584
3584
|
var GET_ADS_BY_REGION = import_client44.gql`
|
|
3585
|
-
query getAdsByRegion(
|
|
3586
|
-
|
|
3585
|
+
query getAdsByRegion(
|
|
3586
|
+
$region: String!
|
|
3587
|
+
$platform: String!
|
|
3588
|
+
$status: AdStatusTypeEnum
|
|
3589
|
+
) {
|
|
3590
|
+
adsByRegion(region: $region, platform: $platform, status: $status) {
|
|
3587
3591
|
...AdFields
|
|
3588
3592
|
}
|
|
3589
3593
|
}
|
|
@@ -3686,11 +3690,11 @@ var useGetAd = (_id) => {
|
|
|
3686
3690
|
refetch
|
|
3687
3691
|
};
|
|
3688
3692
|
};
|
|
3689
|
-
var useGetAdsByRegion = (region, status) => {
|
|
3693
|
+
var useGetAdsByRegion = (region, platform, status) => {
|
|
3690
3694
|
const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_ADS_BY_REGION, {
|
|
3691
3695
|
fetchPolicy: "no-cache",
|
|
3692
3696
|
skip: !region || region === "",
|
|
3693
|
-
variables: { region, status }
|
|
3697
|
+
variables: { platform, region, status }
|
|
3694
3698
|
});
|
|
3695
3699
|
return {
|
|
3696
3700
|
adsByRegion: data?.adsByRegion || [],
|
|
@@ -4306,6 +4310,10 @@ var import_client65 = require("@apollo/client");
|
|
|
4306
4310
|
var APP_SETTINGS_FIELDS_FRAGMENT = import_client65.gql`
|
|
4307
4311
|
fragment AppSettingsFields on AppSettingsType {
|
|
4308
4312
|
_id
|
|
4313
|
+
adSettings {
|
|
4314
|
+
mobileDisplayEnabled
|
|
4315
|
+
webDisplayEnabled
|
|
4316
|
+
}
|
|
4309
4317
|
appVersion
|
|
4310
4318
|
createdAt
|
|
4311
4319
|
isOfflineMode
|
|
@@ -4342,9 +4350,12 @@ var useUpdateGoogleImportedMarkets = () => {
|
|
|
4342
4350
|
|
|
4343
4351
|
// src/graphql/hooks/appSettings/hooksQuery.ts
|
|
4344
4352
|
var import_client67 = require("@apollo/client");
|
|
4345
|
-
var useGetAppSettings = (
|
|
4353
|
+
var useGetAppSettings = ({
|
|
4354
|
+
skip = false
|
|
4355
|
+
} = {}) => {
|
|
4346
4356
|
const { loading, error, data, refetch } = (0, import_client67.useQuery)(GET_APP_SETTINGS, {
|
|
4347
|
-
fetchPolicy: "network-only"
|
|
4357
|
+
fetchPolicy: "network-only",
|
|
4358
|
+
skip
|
|
4348
4359
|
});
|
|
4349
4360
|
const appSettings = data?.appSettings || null;
|
|
4350
4361
|
return { appSettings, error, loading, refetch };
|