@timardex/cluemart-shared 1.1.30 → 1.1.32
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-p-iMUyA7.d.ts → ad-BKBAgZLe.d.ts} +2 -1
- package/dist/{ad-CJzmTWSn.d.mts → ad-DoA7_MpI.d.mts} +2 -1
- package/dist/{auth-BWdfPzae.d.ts → auth-BMZfmSqq.d.ts} +1 -1
- package/dist/{auth-BiazhMfX.d.mts → auth-DBF8374G.d.mts} +1 -1
- package/dist/{chunk-RNCMM53N.mjs → chunk-LNWCKRNS.mjs} +1 -1
- package/dist/chunk-LNWCKRNS.mjs.map +1 -0
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-DPGWQCsT.d.mts → global-MqK60w-m.d.mts} +1 -1
- package/dist/{global-3BBlxnva.d.ts → global-bIy-rR1z.d.ts} +1 -1
- package/dist/graphql/index.cjs +12 -15
- 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 +12 -15
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +4 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.mjs +5 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +16 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.mjs +16 -15
- package/dist/index.mjs.map +1 -1
- package/dist/{notification-BCTdNYCc.d.mts → notification-BvS6e_Jp.d.mts} +1 -1
- package/dist/{notification-Bg5iTdb5.d.ts → notification-CmDVYz-z.d.ts} +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-RNCMM53N.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -261,7 +261,7 @@ type OwnerType = {
|
|
|
261
261
|
};
|
|
262
262
|
type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
|
|
263
263
|
_id: string;
|
|
264
|
-
|
|
264
|
+
adIds?: string[] | null;
|
|
265
265
|
createdAt: string;
|
|
266
266
|
owner: OwnerType;
|
|
267
267
|
relationIds: string[] | null;
|
|
@@ -543,6 +543,7 @@ declare enum EnumAdMediaType {
|
|
|
543
543
|
}
|
|
544
544
|
interface AdFormData {
|
|
545
545
|
_id?: string;
|
|
546
|
+
clui?: string | null;
|
|
546
547
|
ctaText?: string | null;
|
|
547
548
|
ctaUrl?: string | null;
|
|
548
549
|
end: string;
|
|
@@ -1084,7 +1085,7 @@ declare const useGetAds: () => {
|
|
|
1084
1085
|
error: _apollo_client.ApolloError | undefined;
|
|
1085
1086
|
loading: boolean;
|
|
1086
1087
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
1087
|
-
|
|
1088
|
+
ads: AdType[];
|
|
1088
1089
|
}>>;
|
|
1089
1090
|
};
|
|
1090
1091
|
declare const useGetAd: (_id: string) => {
|
|
@@ -1092,7 +1093,7 @@ declare const useGetAd: (_id: string) => {
|
|
|
1092
1093
|
error: _apollo_client.ApolloError | undefined;
|
|
1093
1094
|
loading: boolean;
|
|
1094
1095
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
1095
|
-
|
|
1096
|
+
ad: AdType;
|
|
1096
1097
|
}>>;
|
|
1097
1098
|
};
|
|
1098
1099
|
declare const useGetAdsByRegion: (region: string) => {
|
|
@@ -1100,7 +1101,7 @@ declare const useGetAdsByRegion: (region: string) => {
|
|
|
1100
1101
|
error: _apollo_client.ApolloError | undefined;
|
|
1101
1102
|
loading: boolean;
|
|
1102
1103
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
1103
|
-
|
|
1104
|
+
adsByRegion: AdType[];
|
|
1104
1105
|
}>>;
|
|
1105
1106
|
};
|
|
1106
1107
|
|
package/dist/index.d.ts
CHANGED
|
@@ -261,7 +261,7 @@ type OwnerType = {
|
|
|
261
261
|
};
|
|
262
262
|
type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
|
|
263
263
|
_id: string;
|
|
264
|
-
|
|
264
|
+
adIds?: string[] | null;
|
|
265
265
|
createdAt: string;
|
|
266
266
|
owner: OwnerType;
|
|
267
267
|
relationIds: string[] | null;
|
|
@@ -543,6 +543,7 @@ declare enum EnumAdMediaType {
|
|
|
543
543
|
}
|
|
544
544
|
interface AdFormData {
|
|
545
545
|
_id?: string;
|
|
546
|
+
clui?: string | null;
|
|
546
547
|
ctaText?: string | null;
|
|
547
548
|
ctaUrl?: string | null;
|
|
548
549
|
end: string;
|
|
@@ -1084,7 +1085,7 @@ declare const useGetAds: () => {
|
|
|
1084
1085
|
error: _apollo_client.ApolloError | undefined;
|
|
1085
1086
|
loading: boolean;
|
|
1086
1087
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
1087
|
-
|
|
1088
|
+
ads: AdType[];
|
|
1088
1089
|
}>>;
|
|
1089
1090
|
};
|
|
1090
1091
|
declare const useGetAd: (_id: string) => {
|
|
@@ -1092,7 +1093,7 @@ declare const useGetAd: (_id: string) => {
|
|
|
1092
1093
|
error: _apollo_client.ApolloError | undefined;
|
|
1093
1094
|
loading: boolean;
|
|
1094
1095
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
1095
|
-
|
|
1096
|
+
ad: AdType;
|
|
1096
1097
|
}>>;
|
|
1097
1098
|
};
|
|
1098
1099
|
declare const useGetAdsByRegion: (region: string) => {
|
|
@@ -1100,7 +1101,7 @@ declare const useGetAdsByRegion: (region: string) => {
|
|
|
1100
1101
|
error: _apollo_client.ApolloError | undefined;
|
|
1101
1102
|
loading: boolean;
|
|
1102
1103
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
1103
|
-
|
|
1104
|
+
adsByRegion: AdType[];
|
|
1104
1105
|
}>>;
|
|
1105
1106
|
};
|
|
1106
1107
|
|
package/dist/index.mjs
CHANGED
|
@@ -1920,7 +1920,7 @@ var MARKET = gql3`
|
|
|
1920
1920
|
fragment MarketFields on MarketType {
|
|
1921
1921
|
_id
|
|
1922
1922
|
active
|
|
1923
|
-
|
|
1923
|
+
adIds
|
|
1924
1924
|
cover {
|
|
1925
1925
|
...ResourceImageFields
|
|
1926
1926
|
}
|
|
@@ -2035,7 +2035,7 @@ var STALLHOLDER = gql4`
|
|
|
2035
2035
|
fragment StallholderFields on StallholderType {
|
|
2036
2036
|
_id
|
|
2037
2037
|
active
|
|
2038
|
-
|
|
2038
|
+
adIds
|
|
2039
2039
|
stallholderInfoId
|
|
2040
2040
|
categories {
|
|
2041
2041
|
...CategoryFields
|
|
@@ -3093,7 +3093,7 @@ var GET_RESOURCE_CONNECTIONS = gql17`
|
|
|
3093
3093
|
markets {
|
|
3094
3094
|
_id
|
|
3095
3095
|
active
|
|
3096
|
-
|
|
3096
|
+
adIds
|
|
3097
3097
|
cover {
|
|
3098
3098
|
...ResourceImageFields
|
|
3099
3099
|
}
|
|
@@ -3133,7 +3133,7 @@ var GET_RESOURCE_CONNECTIONS = gql17`
|
|
|
3133
3133
|
stallholders {
|
|
3134
3134
|
_id
|
|
3135
3135
|
active
|
|
3136
|
-
|
|
3136
|
+
adIds
|
|
3137
3137
|
stallholderInfoId
|
|
3138
3138
|
categories {
|
|
3139
3139
|
...CategoryFields
|
|
@@ -3993,23 +3993,20 @@ var useGetAds = () => {
|
|
|
3993
3993
|
}
|
|
3994
3994
|
);
|
|
3995
3995
|
return {
|
|
3996
|
-
ads: data?.
|
|
3996
|
+
ads: data?.ads || [],
|
|
3997
3997
|
error,
|
|
3998
3998
|
loading,
|
|
3999
3999
|
refetch
|
|
4000
4000
|
};
|
|
4001
4001
|
};
|
|
4002
4002
|
var useGetAd = (_id) => {
|
|
4003
|
-
const { data, loading, error, refetch } = useQuery8(
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
variables: { _id }
|
|
4009
|
-
}
|
|
4010
|
-
);
|
|
4003
|
+
const { data, loading, error, refetch } = useQuery8(GET_AD, {
|
|
4004
|
+
fetchPolicy: "no-cache",
|
|
4005
|
+
skip: !_id,
|
|
4006
|
+
variables: { _id }
|
|
4007
|
+
});
|
|
4011
4008
|
return {
|
|
4012
|
-
ad: data?.
|
|
4009
|
+
ad: data?.ad,
|
|
4013
4010
|
error,
|
|
4014
4011
|
loading,
|
|
4015
4012
|
refetch
|
|
@@ -4022,7 +4019,7 @@ var useGetAdsByRegion = (region) => {
|
|
|
4022
4019
|
variables: { region }
|
|
4023
4020
|
});
|
|
4024
4021
|
return {
|
|
4025
|
-
adsByRegion: data?.
|
|
4022
|
+
adsByRegion: data?.adsByRegion || [],
|
|
4026
4023
|
error,
|
|
4027
4024
|
loading,
|
|
4028
4025
|
refetch
|
|
@@ -5335,6 +5332,8 @@ function useAdForm(data) {
|
|
|
5335
5332
|
React8.useEffect(() => {
|
|
5336
5333
|
if (data) {
|
|
5337
5334
|
reset({
|
|
5335
|
+
_id: data._id,
|
|
5336
|
+
clui: data.clui,
|
|
5338
5337
|
ctaText: data.ctaText,
|
|
5339
5338
|
ctaUrl: data.ctaUrl,
|
|
5340
5339
|
end: data.end,
|
|
@@ -5359,6 +5358,7 @@ function useAdForm(data) {
|
|
|
5359
5358
|
_id,
|
|
5360
5359
|
ctaText,
|
|
5361
5360
|
ctaUrl,
|
|
5361
|
+
clui,
|
|
5362
5362
|
end,
|
|
5363
5363
|
media,
|
|
5364
5364
|
resourceCover,
|
|
@@ -5377,6 +5377,7 @@ function useAdForm(data) {
|
|
|
5377
5377
|
control,
|
|
5378
5378
|
fields: {
|
|
5379
5379
|
_id,
|
|
5380
|
+
clui,
|
|
5380
5381
|
ctaText,
|
|
5381
5382
|
ctaUrl,
|
|
5382
5383
|
end,
|