@timardex/cluemart-shared 2.0.13 → 2.0.14

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.
@@ -15,7 +15,12 @@ interface PartnerType extends BaseResourceType {
15
15
  partnerType: EnumPartnerType;
16
16
  }
17
17
 
18
+ type AdSettingsFormData = {
19
+ mobileDisplayEnabled: boolean;
20
+ webDisplayEnabled: boolean;
21
+ };
18
22
  interface AppSettingsFormData {
23
+ adSettings: AdSettingsFormData;
19
24
  appVersion: string;
20
25
  isOfflineMode: boolean;
21
26
  minimumRedeemableAffiliatePoints: number;
@@ -247,4 +252,4 @@ type AdSettingsType = {
247
252
  rotationSeconds: number;
248
253
  };
249
254
 
250
- export { type AuthMutationResponse as A, EnumAdBookingState as B, type CreateLoginFormData as C, EnumAdEntitlementSource as D, EnumAdStatus as E, EnumAdPaymentStatus as F, EnumAdShowOn as G, EnumAdStyle as H, EnumAdType as I, EnumVerificationType as J, type PosterInputType as K, type LoginFormData as L, type MarketingMaterialRequestInputType as M, type RefreshTokenPayloadType as N, type RegisterFormData as O, type PartnerType as P, type RequestPasswordResetFormData as Q, type RefreshTokenMutationResponse as R, type SchoolType as S, type ResetPasswordFormData as T, type SchoolCampaignType as U, type SchoolRegisteredUserType as V, type ValidateVerificationTokenFormData as W, type AdType as a, type AppSettingsType as b, type SchoolReturnType as c, type CreateRegisterFormData as d, type CreateRequestPasswordResetFormData as e, type CreateValidateVerificationTokenFormData as f, type CreateResetPasswordFormData as g, type PartnerFormData as h, type AdFormData as i, type CreateAdFormState as j, type CreatePartnerFormData as k, type AppSettingsFormData as l, type CreateAppSettingsFormData as m, type SchoolFormData as n, type CreateSchoolFormData as o, type AdBookingType as p, type AdDailyPriceKey as q, type AdDailyPriceType as r, type AdFormState as s, type AdPlacement as t, type AdResource as u, type AdSettingsType as v, type AuthPayloadType as w, type CreateAdFormData as x, EnumAdApprovalStatus as y, EnumAdBookingSlotKind as z };
255
+ export { type AuthMutationResponse as A, EnumAdBookingSlotKind as B, type CreateLoginFormData as C, EnumAdBookingState as D, EnumAdStatus as E, EnumAdEntitlementSource as F, EnumAdPaymentStatus as G, EnumAdShowOn as H, EnumAdStyle as I, EnumAdType as J, EnumVerificationType as K, type LoginFormData as L, type MarketingMaterialRequestInputType as M, type PosterInputType as N, type RefreshTokenPayloadType as O, type PartnerType as P, type RegisterFormData as Q, type RefreshTokenMutationResponse as R, type SchoolType as S, type RequestPasswordResetFormData as T, type ResetPasswordFormData as U, type SchoolCampaignType as V, type SchoolRegisteredUserType as W, type ValidateVerificationTokenFormData as X, type AdType as a, type AppSettingsType as b, type SchoolReturnType as c, type CreateRegisterFormData as d, type CreateRequestPasswordResetFormData as e, type CreateValidateVerificationTokenFormData as f, type CreateResetPasswordFormData as g, type PartnerFormData as h, type AdFormData as i, type CreateAdFormState as j, type CreatePartnerFormData as k, type AppSettingsFormData as l, type CreateAppSettingsFormData as m, type SchoolFormData as n, type CreateSchoolFormData as o, type AdBookingType as p, type AdDailyPriceKey as q, type AdDailyPriceType as r, type AdFormState as s, type AdPlacement as t, type AdResource as u, type AdSettingsFormData as v, type AdSettingsType as w, type AuthPayloadType as x, type CreateAdFormData as y, EnumAdApprovalStatus as z };
@@ -15,7 +15,12 @@ interface PartnerType extends BaseResourceType {
15
15
  partnerType: EnumPartnerType;
16
16
  }
17
17
 
18
+ type AdSettingsFormData = {
19
+ mobileDisplayEnabled: boolean;
20
+ webDisplayEnabled: boolean;
21
+ };
18
22
  interface AppSettingsFormData {
23
+ adSettings: AdSettingsFormData;
19
24
  appVersion: string;
20
25
  isOfflineMode: boolean;
21
26
  minimumRedeemableAffiliatePoints: number;
@@ -247,4 +252,4 @@ type AdSettingsType = {
247
252
  rotationSeconds: number;
248
253
  };
249
254
 
250
- export { type AuthMutationResponse as A, EnumAdBookingState as B, type CreateLoginFormData as C, EnumAdEntitlementSource as D, EnumAdStatus as E, EnumAdPaymentStatus as F, EnumAdShowOn as G, EnumAdStyle as H, EnumAdType as I, EnumVerificationType as J, type PosterInputType as K, type LoginFormData as L, type MarketingMaterialRequestInputType as M, type RefreshTokenPayloadType as N, type RegisterFormData as O, type PartnerType as P, type RequestPasswordResetFormData as Q, type RefreshTokenMutationResponse as R, type SchoolType as S, type ResetPasswordFormData as T, type SchoolCampaignType as U, type SchoolRegisteredUserType as V, type ValidateVerificationTokenFormData as W, type AdType as a, type AppSettingsType as b, type SchoolReturnType as c, type CreateRegisterFormData as d, type CreateRequestPasswordResetFormData as e, type CreateValidateVerificationTokenFormData as f, type CreateResetPasswordFormData as g, type PartnerFormData as h, type AdFormData as i, type CreateAdFormState as j, type CreatePartnerFormData as k, type AppSettingsFormData as l, type CreateAppSettingsFormData as m, type SchoolFormData as n, type CreateSchoolFormData as o, type AdBookingType as p, type AdDailyPriceKey as q, type AdDailyPriceType as r, type AdFormState as s, type AdPlacement as t, type AdResource as u, type AdSettingsType as v, type AuthPayloadType as w, type CreateAdFormData as x, EnumAdApprovalStatus as y, EnumAdBookingSlotKind as z };
255
+ export { type AuthMutationResponse as A, EnumAdBookingSlotKind as B, type CreateLoginFormData as C, EnumAdBookingState as D, EnumAdStatus as E, EnumAdEntitlementSource as F, EnumAdPaymentStatus as G, EnumAdShowOn as H, EnumAdStyle as I, EnumAdType as J, EnumVerificationType as K, type LoginFormData as L, type MarketingMaterialRequestInputType as M, type PosterInputType as N, type RefreshTokenPayloadType as O, type PartnerType as P, type RegisterFormData as Q, type RefreshTokenMutationResponse as R, type SchoolType as S, type RequestPasswordResetFormData as T, type ResetPasswordFormData as U, type SchoolCampaignType as V, type SchoolRegisteredUserType as W, type ValidateVerificationTokenFormData as X, type AdType as a, type AppSettingsType as b, type SchoolReturnType as c, type CreateRegisterFormData as d, type CreateRequestPasswordResetFormData as e, type CreateValidateVerificationTokenFormData as f, type CreateResetPasswordFormData as g, type PartnerFormData as h, type AdFormData as i, type CreateAdFormState as j, type CreatePartnerFormData as k, type AppSettingsFormData as l, type CreateAppSettingsFormData as m, type SchoolFormData as n, type CreateSchoolFormData as o, type AdBookingType as p, type AdDailyPriceKey as q, type AdDailyPriceType as r, type AdFormState as s, type AdPlacement as t, type AdResource as u, type AdSettingsFormData as v, type AdSettingsType as w, type AuthPayloadType as x, type CreateAdFormData as y, EnumAdApprovalStatus as z };
@@ -2923,6 +2923,10 @@ import { gql as gql31 } from "@apollo/client";
2923
2923
  var APP_SETTINGS_FIELDS_FRAGMENT = gql31`
2924
2924
  fragment AppSettingsFields on AppSettingsType {
2925
2925
  _id
2926
+ adSettings {
2927
+ mobileDisplayEnabled
2928
+ webDisplayEnabled
2929
+ }
2926
2930
  appVersion
2927
2931
  createdAt
2928
2932
  isOfflineMode
@@ -2959,9 +2963,12 @@ var useUpdateGoogleImportedMarkets = () => {
2959
2963
 
2960
2964
  // src/graphql/hooks/appSettings/hooksQuery.ts
2961
2965
  import { useQuery as useQuery11 } from "@apollo/client";
2962
- var useGetAppSettings = () => {
2966
+ var useGetAppSettings = ({
2967
+ skip = false
2968
+ } = {}) => {
2963
2969
  const { loading, error, data, refetch } = useQuery11(GET_APP_SETTINGS, {
2964
- fetchPolicy: "network-only"
2970
+ fetchPolicy: "network-only",
2971
+ skip
2965
2972
  });
2966
2973
  const appSettings = data?.appSettings || null;
2967
2974
  return { appSettings, error, loading, refetch };
@@ -4351,4 +4358,4 @@ export {
4351
4358
  useGetCoupon,
4352
4359
  usePaginatedList
4353
4360
  };
4354
- //# sourceMappingURL=chunk-DS2Y6BNU.mjs.map
4361
+ //# sourceMappingURL=chunk-BO7IQ33V.mjs.map