@timardex/cluemart-shared 1.1.39 → 1.1.40

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/index.d.mts CHANGED
@@ -1082,7 +1082,7 @@ declare const useDeleteAd: () => {
1082
1082
  };
1083
1083
 
1084
1084
  declare const useGetAds: () => {
1085
- ads: AdType[];
1085
+ ads: AdType[] | undefined;
1086
1086
  error: _apollo_client.ApolloError | undefined;
1087
1087
  loading: boolean;
1088
1088
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
@@ -1098,7 +1098,7 @@ declare const useGetAd: (_id: string) => {
1098
1098
  }>>;
1099
1099
  };
1100
1100
  declare const useGetAdsByRegion: (region: string, status?: EnumAdStatus) => {
1101
- adsByRegion: AdType[];
1101
+ adsByRegion: AdType[] | undefined;
1102
1102
  error: _apollo_client.ApolloError | undefined;
1103
1103
  loading: boolean;
1104
1104
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
package/dist/index.d.ts CHANGED
@@ -1082,7 +1082,7 @@ declare const useDeleteAd: () => {
1082
1082
  };
1083
1083
 
1084
1084
  declare const useGetAds: () => {
1085
- ads: AdType[];
1085
+ ads: AdType[] | undefined;
1086
1086
  error: _apollo_client.ApolloError | undefined;
1087
1087
  loading: boolean;
1088
1088
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
@@ -1098,7 +1098,7 @@ declare const useGetAd: (_id: string) => {
1098
1098
  }>>;
1099
1099
  };
1100
1100
  declare const useGetAdsByRegion: (region: string, status?: EnumAdStatus) => {
1101
- adsByRegion: AdType[];
1101
+ adsByRegion: AdType[] | undefined;
1102
1102
  error: _apollo_client.ApolloError | undefined;
1103
1103
  loading: boolean;
1104
1104
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
package/dist/index.mjs CHANGED
@@ -3913,7 +3913,7 @@ var GET_AD = gql23`
3913
3913
  ${AD_FIELDS_FRAGMENT}
3914
3914
  `;
3915
3915
  var GET_ADS_BY_REGION = gql23`
3916
- query getAdsByRegion($region: String!, $status: EnumAdStatus) {
3916
+ query getAdsByRegion($region: String!, $status: AdStatusTypeEnum) {
3917
3917
  adsByRegion(region: $region, status: $status) {
3918
3918
  ...AdFields
3919
3919
  }
@@ -3989,7 +3989,7 @@ var useGetAds = () => {
3989
3989
  }
3990
3990
  );
3991
3991
  return {
3992
- ads: data?.ads || [],
3992
+ ads: data?.ads,
3993
3993
  error,
3994
3994
  loading,
3995
3995
  refetch
@@ -4015,7 +4015,7 @@ var useGetAdsByRegion = (region, status) => {
4015
4015
  variables: { region, status }
4016
4016
  });
4017
4017
  return {
4018
- adsByRegion: data?.adsByRegion || [],
4018
+ adsByRegion: data?.adsByRegion,
4019
4019
  error,
4020
4020
  loading,
4021
4021
  refetch