@timardex/cluemart-shared 1.3.66 → 1.3.68
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/{googleImportedMarket-D2HOg7O-.d.mts → googleImportedMarket-6kBUp2yE.d.mts} +2 -0
- package/dist/{googleImportedMarket-BuxDo6MX.d.ts → googleImportedMarket-Ckdoji3C.d.ts} +2 -0
- package/dist/graphql/index.cjs +70 -49
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +11 -9
- package/dist/graphql/index.d.ts +11 -9
- package/dist/graphql/index.mjs +70 -49
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/index.cjs +70 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +11 -8
- package/dist/index.d.ts +11 -8
- package/dist/index.mjs +70 -49
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/graphql/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { EnumResourceType } from '../enums/index.mjs';
|
|
3
|
-
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType, G as GoogleImportedMarket } from '../googleImportedMarket-
|
|
3
|
+
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType, G as GoogleImportedMarket } from '../googleImportedMarket-6kBUp2yE.mjs';
|
|
4
4
|
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UnregisteredVendorType, f as UserActivityEventType, g as UserLicenceType } from '../global-DjZooB3t.mjs';
|
|
5
5
|
import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType, c as AppSettingsType } from '../post-DHDZfAmJ.mjs';
|
|
6
6
|
import 'react-hook-form';
|
|
@@ -867,6 +867,16 @@ declare const useUpdateAppSettings: () => {
|
|
|
867
867
|
loading: boolean;
|
|
868
868
|
updateAppSettings: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
869
869
|
};
|
|
870
|
+
|
|
871
|
+
declare const useGetAppSettings: () => {
|
|
872
|
+
appSettings: AppSettingsType | null;
|
|
873
|
+
error: _apollo_client.ApolloError | undefined;
|
|
874
|
+
loading: boolean;
|
|
875
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
876
|
+
appSettings: AppSettingsType;
|
|
877
|
+
}>>;
|
|
878
|
+
};
|
|
879
|
+
|
|
870
880
|
declare const useCrawlGoogleMarkets: () => {
|
|
871
881
|
crawlGoogleMarkets: (options?: _apollo_client.MutationFunctionOptions<{
|
|
872
882
|
crawlGoogleMarkets: {
|
|
@@ -881,14 +891,6 @@ declare const useCrawlGoogleMarkets: () => {
|
|
|
881
891
|
loading: boolean;
|
|
882
892
|
};
|
|
883
893
|
|
|
884
|
-
declare const useGetAppSettings: () => {
|
|
885
|
-
appSettings: AppSettingsType | null;
|
|
886
|
-
error: _apollo_client.ApolloError | undefined;
|
|
887
|
-
loading: boolean;
|
|
888
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
889
|
-
appSettings: AppSettingsType;
|
|
890
|
-
}>>;
|
|
891
|
-
};
|
|
892
894
|
declare const useGetGoogleImportedMarkets: () => {
|
|
893
895
|
error: _apollo_client.ApolloError | undefined;
|
|
894
896
|
googleImportedMarkets: GoogleImportedMarket[];
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { EnumResourceType } from '../enums/index.js';
|
|
3
|
-
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType, G as GoogleImportedMarket } from '../googleImportedMarket-
|
|
3
|
+
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType, G as GoogleImportedMarket } from '../googleImportedMarket-Ckdoji3C.js';
|
|
4
4
|
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UnregisteredVendorType, f as UserActivityEventType, g as UserLicenceType } from '../global-BKEcBQxZ.js';
|
|
5
5
|
import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType, c as AppSettingsType } from '../post-Bwr2i2Qq.js';
|
|
6
6
|
import 'react-hook-form';
|
|
@@ -867,6 +867,16 @@ declare const useUpdateAppSettings: () => {
|
|
|
867
867
|
loading: boolean;
|
|
868
868
|
updateAppSettings: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
|
|
869
869
|
};
|
|
870
|
+
|
|
871
|
+
declare const useGetAppSettings: () => {
|
|
872
|
+
appSettings: AppSettingsType | null;
|
|
873
|
+
error: _apollo_client.ApolloError | undefined;
|
|
874
|
+
loading: boolean;
|
|
875
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
876
|
+
appSettings: AppSettingsType;
|
|
877
|
+
}>>;
|
|
878
|
+
};
|
|
879
|
+
|
|
870
880
|
declare const useCrawlGoogleMarkets: () => {
|
|
871
881
|
crawlGoogleMarkets: (options?: _apollo_client.MutationFunctionOptions<{
|
|
872
882
|
crawlGoogleMarkets: {
|
|
@@ -881,14 +891,6 @@ declare const useCrawlGoogleMarkets: () => {
|
|
|
881
891
|
loading: boolean;
|
|
882
892
|
};
|
|
883
893
|
|
|
884
|
-
declare const useGetAppSettings: () => {
|
|
885
|
-
appSettings: AppSettingsType | null;
|
|
886
|
-
error: _apollo_client.ApolloError | undefined;
|
|
887
|
-
loading: boolean;
|
|
888
|
-
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
889
|
-
appSettings: AppSettingsType;
|
|
890
|
-
}>>;
|
|
891
|
-
};
|
|
892
894
|
declare const useGetGoogleImportedMarkets: () => {
|
|
893
895
|
error: _apollo_client.ApolloError | undefined;
|
|
894
896
|
googleImportedMarkets: GoogleImportedMarket[];
|
package/dist/graphql/index.mjs
CHANGED
|
@@ -3259,13 +3259,6 @@ var UPDATE_APP_SETTINGS_MUTATION = gql33`
|
|
|
3259
3259
|
updateAppSettings(input: $input)
|
|
3260
3260
|
}
|
|
3261
3261
|
`;
|
|
3262
|
-
var CRAWL_GOOGLE_MARKETS_MUTATION = gql33`
|
|
3263
|
-
mutation crawlGoogleMarkets {
|
|
3264
|
-
crawlGoogleMarkets {
|
|
3265
|
-
message
|
|
3266
|
-
}
|
|
3267
|
-
}
|
|
3268
|
-
`;
|
|
3269
3262
|
|
|
3270
3263
|
// src/graphql/queries/appSettings.ts
|
|
3271
3264
|
import { gql as gql34 } from "@apollo/client";
|
|
@@ -3278,7 +3271,62 @@ var APP_SETTINGS_FIELDS_FRAGMENT = gql34`
|
|
|
3278
3271
|
updatedAt
|
|
3279
3272
|
}
|
|
3280
3273
|
`;
|
|
3281
|
-
var
|
|
3274
|
+
var GET_APP_SETTINGS = gql34`
|
|
3275
|
+
query getAppSettings {
|
|
3276
|
+
appSettings {
|
|
3277
|
+
...AppSettingsFields
|
|
3278
|
+
}
|
|
3279
|
+
}
|
|
3280
|
+
${APP_SETTINGS_FIELDS_FRAGMENT}
|
|
3281
|
+
`;
|
|
3282
|
+
|
|
3283
|
+
// src/graphql/hooks/appSettings/hooksMutation.ts
|
|
3284
|
+
var useUpdateAppSettings = () => {
|
|
3285
|
+
const [updateAppSettings, { loading, error }] = useMutation18(
|
|
3286
|
+
UPDATE_APP_SETTINGS_MUTATION,
|
|
3287
|
+
{
|
|
3288
|
+
awaitRefetchQueries: true,
|
|
3289
|
+
refetchQueries: [{ query: GET_APP_SETTINGS }]
|
|
3290
|
+
}
|
|
3291
|
+
);
|
|
3292
|
+
return { error, loading, updateAppSettings };
|
|
3293
|
+
};
|
|
3294
|
+
|
|
3295
|
+
// src/graphql/hooks/appSettings/hooksQuery.ts
|
|
3296
|
+
import { useQuery as useQuery13 } from "@apollo/client";
|
|
3297
|
+
var useGetAppSettings = () => {
|
|
3298
|
+
const { loading, error, data, refetch } = useQuery13(GET_APP_SETTINGS, {
|
|
3299
|
+
fetchPolicy: "network-only"
|
|
3300
|
+
});
|
|
3301
|
+
const appSettings = data?.appSettings || null;
|
|
3302
|
+
return { appSettings, error, loading, refetch };
|
|
3303
|
+
};
|
|
3304
|
+
|
|
3305
|
+
// src/graphql/hooks/googleImportedMarkets/hooksMutation.ts
|
|
3306
|
+
import { useMutation as useMutation19 } from "@apollo/client";
|
|
3307
|
+
|
|
3308
|
+
// src/graphql/mutations/googleImportedMarkets.ts
|
|
3309
|
+
import { gql as gql35 } from "@apollo/client";
|
|
3310
|
+
var CRAWL_GOOGLE_MARKETS_MUTATION = gql35`
|
|
3311
|
+
mutation crawlGoogleMarkets {
|
|
3312
|
+
crawlGoogleMarkets {
|
|
3313
|
+
message
|
|
3314
|
+
}
|
|
3315
|
+
}
|
|
3316
|
+
`;
|
|
3317
|
+
|
|
3318
|
+
// src/graphql/hooks/googleImportedMarkets/hooksMutation.ts
|
|
3319
|
+
var useCrawlGoogleMarkets = () => {
|
|
3320
|
+
const [crawlGoogleMarkets, { loading, error }] = useMutation19(CRAWL_GOOGLE_MARKETS_MUTATION);
|
|
3321
|
+
return { crawlGoogleMarkets, error, loading };
|
|
3322
|
+
};
|
|
3323
|
+
|
|
3324
|
+
// src/graphql/hooks/googleImportedMarkets/hooksQuery.ts
|
|
3325
|
+
import { useQuery as useQuery14 } from "@apollo/client";
|
|
3326
|
+
|
|
3327
|
+
// src/graphql/queries/googleImportedMarkets.ts
|
|
3328
|
+
import { gql as gql36 } from "@apollo/client";
|
|
3329
|
+
var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = gql36`
|
|
3282
3330
|
fragment GoogleImportedMarketsFields on GoogleImportedMarketType {
|
|
3283
3331
|
_id
|
|
3284
3332
|
accessibilityOptions
|
|
@@ -3292,6 +3340,9 @@ var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = gql34`
|
|
|
3292
3340
|
businessStatus
|
|
3293
3341
|
claimed
|
|
3294
3342
|
createdAt
|
|
3343
|
+
dateTime {
|
|
3344
|
+
...EventDateTimeFields
|
|
3345
|
+
}
|
|
3295
3346
|
goodForChildren
|
|
3296
3347
|
goodForGroups
|
|
3297
3348
|
googleMapsUrl
|
|
@@ -3310,22 +3361,16 @@ var GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT = gql34`
|
|
|
3310
3361
|
phone
|
|
3311
3362
|
photos
|
|
3312
3363
|
rating
|
|
3364
|
+
region
|
|
3313
3365
|
restroom
|
|
3314
3366
|
reviewCount
|
|
3315
3367
|
slug
|
|
3316
3368
|
updatedAt
|
|
3317
3369
|
website
|
|
3318
3370
|
}
|
|
3371
|
+
${EVENT_DATETIME_FIELDS_FRAGMENT}
|
|
3319
3372
|
`;
|
|
3320
|
-
var
|
|
3321
|
-
query getAppSettings {
|
|
3322
|
-
appSettings {
|
|
3323
|
-
...AppSettingsFields
|
|
3324
|
-
}
|
|
3325
|
-
}
|
|
3326
|
-
${APP_SETTINGS_FIELDS_FRAGMENT}
|
|
3327
|
-
`;
|
|
3328
|
-
var GET_GOOGLE_IMPORTED_MARKETS = gql34`
|
|
3373
|
+
var GET_GOOGLE_IMPORTED_MARKETS = gql36`
|
|
3329
3374
|
query getGoogleImportedMarkets {
|
|
3330
3375
|
googleImportedMarkets {
|
|
3331
3376
|
...GoogleImportedMarketsFields
|
|
@@ -3333,7 +3378,7 @@ var GET_GOOGLE_IMPORTED_MARKETS = gql34`
|
|
|
3333
3378
|
}
|
|
3334
3379
|
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
3335
3380
|
`;
|
|
3336
|
-
var GET_GOOGLE_IMPORTED_MARKETS_BY_REGION =
|
|
3381
|
+
var GET_GOOGLE_IMPORTED_MARKETS_BY_REGION = gql36`
|
|
3337
3382
|
query getGoogleImportedMarketsByRegion($region: String!) {
|
|
3338
3383
|
googleImportedMarketsByRegion(region: $region) {
|
|
3339
3384
|
...GoogleImportedMarketsFields
|
|
@@ -3341,7 +3386,7 @@ var GET_GOOGLE_IMPORTED_MARKETS_BY_REGION = gql34`
|
|
|
3341
3386
|
}
|
|
3342
3387
|
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
3343
3388
|
`;
|
|
3344
|
-
var SEARCH_GOOGLE_IMPORTED_MARKETS =
|
|
3389
|
+
var SEARCH_GOOGLE_IMPORTED_MARKETS = gql36`
|
|
3345
3390
|
query searchGoogleImportedMarkets($search: String!, $region: String) {
|
|
3346
3391
|
googleImportedMarketsSearch(search: $search, region: $region) {
|
|
3347
3392
|
...GoogleImportedMarketsFields
|
|
@@ -3349,7 +3394,7 @@ var SEARCH_GOOGLE_IMPORTED_MARKETS = gql34`
|
|
|
3349
3394
|
}
|
|
3350
3395
|
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
3351
3396
|
`;
|
|
3352
|
-
var GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME =
|
|
3397
|
+
var GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME = gql36`
|
|
3353
3398
|
query getGoogleImportedMarketsNearMe(
|
|
3354
3399
|
$latitude: Float!
|
|
3355
3400
|
$longitude: Float!
|
|
@@ -3366,40 +3411,16 @@ var GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME = gql34`
|
|
|
3366
3411
|
${GOOGLE_IMPORTED_MARKETS_FIELDS_FRAGMENT}
|
|
3367
3412
|
`;
|
|
3368
3413
|
|
|
3369
|
-
// src/graphql/hooks/
|
|
3370
|
-
var useUpdateAppSettings = () => {
|
|
3371
|
-
const [updateAppSettings, { loading, error }] = useMutation18(
|
|
3372
|
-
UPDATE_APP_SETTINGS_MUTATION,
|
|
3373
|
-
{
|
|
3374
|
-
awaitRefetchQueries: true,
|
|
3375
|
-
refetchQueries: [{ query: GET_APP_SETTINGS }]
|
|
3376
|
-
}
|
|
3377
|
-
);
|
|
3378
|
-
return { error, loading, updateAppSettings };
|
|
3379
|
-
};
|
|
3380
|
-
var useCrawlGoogleMarkets = () => {
|
|
3381
|
-
const [crawlGoogleMarkets, { loading, error }] = useMutation18(CRAWL_GOOGLE_MARKETS_MUTATION);
|
|
3382
|
-
return { crawlGoogleMarkets, error, loading };
|
|
3383
|
-
};
|
|
3384
|
-
|
|
3385
|
-
// src/graphql/hooks/appSettings/hooksQuery.ts
|
|
3386
|
-
import { useQuery as useQuery13 } from "@apollo/client";
|
|
3387
|
-
var useGetAppSettings = () => {
|
|
3388
|
-
const { loading, error, data, refetch } = useQuery13(GET_APP_SETTINGS, {
|
|
3389
|
-
fetchPolicy: "network-only"
|
|
3390
|
-
});
|
|
3391
|
-
const appSettings = data?.appSettings || null;
|
|
3392
|
-
return { appSettings, error, loading, refetch };
|
|
3393
|
-
};
|
|
3414
|
+
// src/graphql/hooks/googleImportedMarkets/hooksQuery.ts
|
|
3394
3415
|
var useGetGoogleImportedMarkets = () => {
|
|
3395
|
-
const { loading, error, data, refetch } =
|
|
3416
|
+
const { loading, error, data, refetch } = useQuery14(GET_GOOGLE_IMPORTED_MARKETS, {
|
|
3396
3417
|
fetchPolicy: "network-only"
|
|
3397
3418
|
});
|
|
3398
3419
|
const googleImportedMarkets = data?.googleImportedMarkets || [];
|
|
3399
3420
|
return { error, googleImportedMarkets, loading, refetch };
|
|
3400
3421
|
};
|
|
3401
3422
|
var useGetGoogleImportedMarketsByRegion = (region) => {
|
|
3402
|
-
const { loading, error, data, refetch } =
|
|
3423
|
+
const { loading, error, data, refetch } = useQuery14(GET_GOOGLE_IMPORTED_MARKETS_BY_REGION, {
|
|
3403
3424
|
fetchPolicy: "network-only",
|
|
3404
3425
|
skip: !region,
|
|
3405
3426
|
variables: { region }
|
|
@@ -3408,7 +3429,7 @@ var useGetGoogleImportedMarketsByRegion = (region) => {
|
|
|
3408
3429
|
return { error, googleImportedMarketsByRegion, loading, refetch };
|
|
3409
3430
|
};
|
|
3410
3431
|
var useSearchGoogleImportedMarkets = (search, region) => {
|
|
3411
|
-
const { loading, error, data, refetch } =
|
|
3432
|
+
const { loading, error, data, refetch } = useQuery14(SEARCH_GOOGLE_IMPORTED_MARKETS, {
|
|
3412
3433
|
fetchPolicy: "network-only",
|
|
3413
3434
|
skip: search.length < 3,
|
|
3414
3435
|
variables: { region, search }
|
|
@@ -3417,7 +3438,7 @@ var useSearchGoogleImportedMarkets = (search, region) => {
|
|
|
3417
3438
|
return { error, googleImportedMarketsSearch, loading, refetch };
|
|
3418
3439
|
};
|
|
3419
3440
|
var useGetGoogleImportedMarketsNearMe = (latitude, longitude, radius) => {
|
|
3420
|
-
const { loading, error, data, refetch } =
|
|
3441
|
+
const { loading, error, data, refetch } = useQuery14(GET_GOOGLE_IMPORTED_MARKETS_NEAR_ME, {
|
|
3421
3442
|
fetchPolicy: "network-only",
|
|
3422
3443
|
skip: !latitude || !longitude,
|
|
3423
3444
|
variables: {
|