@timardex/cluemart-shared 2.0.12 → 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.
Files changed (65) hide show
  1. package/dist/{ad-C0Bj_eGN.d.ts → ad-C6QfVk6L.d.ts} +8 -3
  2. package/dist/{ad-CeDLxQL8.d.mts → ad-Dm8ht5tc.d.mts} +8 -3
  3. package/dist/{affiliate-uYPfJgBo.d.mts → affiliate-6NsbC06m.d.mts} +2 -2
  4. package/dist/{affiliate-DLK84S2l.d.ts → affiliate-CYnVduRf.d.ts} +2 -2
  5. package/dist/auth/index.cjs +6 -5
  6. package/dist/auth/index.cjs.map +1 -1
  7. package/dist/auth/index.d.mts +3 -3
  8. package/dist/auth/index.d.ts +3 -3
  9. package/dist/auth/index.mjs +1 -1
  10. package/dist/{chunk-73BS32W3.mjs → chunk-BO7IQ33V.mjs} +13 -6
  11. package/dist/chunk-BO7IQ33V.mjs.map +1 -0
  12. package/dist/{chunk-ZTSH4DLC.mjs → chunk-VHYU2BPC.mjs} +2 -2
  13. package/dist/{chunk-Q2WXGSIP.mjs → chunk-XU65BXAM.mjs} +1 -1
  14. package/dist/chunk-XU65BXAM.mjs.map +1 -0
  15. package/dist/{chunk-LLH3ONZD.mjs → chunk-ZSSVU6GY.mjs} +7 -6
  16. package/dist/chunk-ZSSVU6GY.mjs.map +1 -0
  17. package/dist/{chunk-AUWZYZK5.mjs → chunk-ZUXHEXJU.mjs} +2 -2
  18. package/dist/{chunk-AUWZYZK5.mjs.map → chunk-ZUXHEXJU.mjs.map} +1 -1
  19. package/dist/{contactUs-BcNiRkKi.d.ts → contactUs-DYgB9q7k.d.ts} +1 -1
  20. package/dist/{contactUs-B5pS4Ujk.d.mts → contactUs-DcSnfzb5.d.mts} +1 -1
  21. package/dist/formFields/index.cjs +1 -1
  22. package/dist/formFields/index.cjs.map +1 -1
  23. package/dist/formFields/index.d.mts +1 -1
  24. package/dist/formFields/index.d.ts +1 -1
  25. package/dist/formFields/index.mjs +3 -3
  26. package/dist/{global-C2HkzCU8.d.ts → global-DwPcHR4_.d.mts} +25 -2
  27. package/dist/{global-Ck3IWQnZ.d.mts → global-s3frnbGC.d.ts} +25 -2
  28. package/dist/graphql/index.cjs +17 -9
  29. package/dist/graphql/index.cjs.map +1 -1
  30. package/dist/graphql/index.d.mts +8 -6
  31. package/dist/graphql/index.d.ts +8 -6
  32. package/dist/graphql/index.mjs +2 -2
  33. package/dist/hooks/index.cjs +31 -8
  34. package/dist/hooks/index.cjs.map +1 -1
  35. package/dist/hooks/index.d.mts +5 -5
  36. package/dist/hooks/index.d.ts +5 -5
  37. package/dist/hooks/index.mjs +24 -6
  38. package/dist/hooks/index.mjs.map +1 -1
  39. package/dist/index.cjs +18 -10
  40. package/dist/index.cjs.map +1 -1
  41. package/dist/index.d.mts +32 -2
  42. package/dist/index.d.ts +32 -2
  43. package/dist/index.mjs +18 -10
  44. package/dist/index.mjs.map +1 -1
  45. package/dist/map/index.d.mts +1 -1
  46. package/dist/map/index.d.ts +1 -1
  47. package/dist/{resourceActivities-CY2_3DQd.d.ts → resourceActivities-CJ2ivv01.d.ts} +1 -1
  48. package/dist/{resourceActivities-BVBLKeKm.d.mts → resourceActivities-D9-mYXe8.d.mts} +1 -1
  49. package/dist/sharing/index.d.mts +1 -1
  50. package/dist/sharing/index.d.ts +1 -1
  51. package/dist/types/index.cjs.map +1 -1
  52. package/dist/types/index.d.mts +7 -7
  53. package/dist/types/index.d.ts +7 -7
  54. package/dist/types/index.mjs +1 -1
  55. package/dist/{user-B8cTGROe.d.ts → user-CteW0WdG.d.ts} +1 -1
  56. package/dist/{user-CjV_JvEs.d.mts → user-Ml-C8k8S.d.mts} +1 -1
  57. package/dist/utils/index.cjs.map +1 -1
  58. package/dist/utils/index.d.mts +3 -3
  59. package/dist/utils/index.d.ts +3 -3
  60. package/dist/utils/index.mjs +2 -2
  61. package/package.json +1 -1
  62. package/dist/chunk-73BS32W3.mjs.map +0 -1
  63. package/dist/chunk-LLH3ONZD.mjs.map +0 -1
  64. package/dist/chunk-Q2WXGSIP.mjs.map +0 -1
  65. /package/dist/{chunk-ZTSH4DLC.mjs.map → chunk-VHYU2BPC.mjs.map} +0 -0
@@ -1,13 +1,13 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { DocumentNode as DocumentNode$1, ApolloError } from '@apollo/client';
3
3
  import { DocumentNode } from 'graphql';
4
- import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-BVBLKeKm.mjs';
5
- import { M as MutationResponse, E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, e as RelationType, f as ResourceConnectionsType, V as VendorClaimTokenValidation, g as UnregisteredVendorType, h as VendorType, i as VendorInfoType, j as MyPendingVendorClaim, k as UserLicenceType, l as PostType, G as GameDocType, m as GameLeaderboard, n as CouponType, o as CouponTypeList } from '../global-Ck3IWQnZ.mjs';
6
- import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, U as UsersByPromoCode, c as SubscriptionStatusData, d as SubscriptionPlansResponse } from '../user-CjV_JvEs.mjs';
7
- import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolType, c as SchoolReturnType } from '../ad-CeDLxQL8.mjs';
4
+ import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-D9-mYXe8.mjs';
5
+ import { M as MutationResponse, E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, e as RelationType, f as ResourceConnectionsType, V as VendorClaimTokenValidation, g as UnregisteredVendorType, h as VendorType, i as VendorInfoType, j as MyPendingVendorClaim, k as UserLicenceType, l as PostType, G as GameDocType, m as GameLeaderboard, n as CouponType, o as CouponTypeList } from '../global-DwPcHR4_.mjs';
6
+ import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, U as UsersByPromoCode, c as SubscriptionStatusData, d as SubscriptionPlansResponse } from '../user-Ml-C8k8S.mjs';
7
+ import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolType, c as SchoolReturnType } from '../ad-Dm8ht5tc.mjs';
8
8
  import { EnumEventDateStatus, EnumResourceType } from '../enums/index.mjs';
9
9
  import { B as BillingCatalogEntryType } from '../billingCatalog-DDAU9BWV.mjs';
10
- import { A as AffiliateType } from '../affiliate-uYPfJgBo.mjs';
10
+ import { A as AffiliateType } from '../affiliate-6NsbC06m.mjs';
11
11
  import 'react-hook-form';
12
12
  import '../images/index.mjs';
13
13
 
@@ -1249,7 +1249,9 @@ declare const useUpdateGoogleImportedMarkets: () => {
1249
1249
  }>>;
1250
1250
  };
1251
1251
 
1252
- declare const useGetAppSettings: () => {
1252
+ declare const useGetAppSettings: ({ skip, }?: {
1253
+ skip?: boolean;
1254
+ }) => {
1253
1255
  appSettings: AppSettingsType | null;
1254
1256
  error: _apollo_client.ApolloError | undefined;
1255
1257
  loading: boolean;
@@ -1,13 +1,13 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { DocumentNode as DocumentNode$1, ApolloError } from '@apollo/client';
3
3
  import { DocumentNode } from 'graphql';
4
- import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-CY2_3DQd.js';
5
- import { M as MutationResponse, E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, e as RelationType, f as ResourceConnectionsType, V as VendorClaimTokenValidation, g as UnregisteredVendorType, h as VendorType, i as VendorInfoType, j as MyPendingVendorClaim, k as UserLicenceType, l as PostType, G as GameDocType, m as GameLeaderboard, n as CouponType, o as CouponTypeList } from '../global-C2HkzCU8.js';
6
- import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, U as UsersByPromoCode, c as SubscriptionStatusData, d as SubscriptionPlansResponse } from '../user-B8cTGROe.js';
7
- import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolType, c as SchoolReturnType } from '../ad-C0Bj_eGN.js';
4
+ import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-CJ2ivv01.js';
5
+ import { M as MutationResponse, E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, e as RelationType, f as ResourceConnectionsType, V as VendorClaimTokenValidation, g as UnregisteredVendorType, h as VendorType, i as VendorInfoType, j as MyPendingVendorClaim, k as UserLicenceType, l as PostType, G as GameDocType, m as GameLeaderboard, n as CouponType, o as CouponTypeList } from '../global-s3frnbGC.js';
6
+ import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, U as UsersByPromoCode, c as SubscriptionStatusData, d as SubscriptionPlansResponse } from '../user-CteW0WdG.js';
7
+ import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolType, c as SchoolReturnType } from '../ad-C6QfVk6L.js';
8
8
  import { EnumEventDateStatus, EnumResourceType } from '../enums/index.js';
9
9
  import { B as BillingCatalogEntryType } from '../billingCatalog-oWAfZX95.js';
10
- import { A as AffiliateType } from '../affiliate-DLK84S2l.js';
10
+ import { A as AffiliateType } from '../affiliate-CYnVduRf.js';
11
11
  import 'react-hook-form';
12
12
  import '../images/index.js';
13
13
 
@@ -1249,7 +1249,9 @@ declare const useUpdateGoogleImportedMarkets: () => {
1249
1249
  }>>;
1250
1250
  };
1251
1251
 
1252
- declare const useGetAppSettings: () => {
1252
+ declare const useGetAppSettings: ({ skip, }?: {
1253
+ skip?: boolean;
1254
+ }) => {
1253
1255
  appSettings: AppSettingsType | null;
1254
1256
  error: _apollo_client.ApolloError | undefined;
1255
1257
  loading: boolean;
@@ -163,7 +163,7 @@ import {
163
163
  useUpdateUser,
164
164
  useUpdateVendor,
165
165
  useUpdateVendorInfo
166
- } from "../chunk-73BS32W3.mjs";
166
+ } from "../chunk-BO7IQ33V.mjs";
167
167
  import {
168
168
  GET_EVENT,
169
169
  GET_EVENTS,
@@ -190,7 +190,7 @@ import {
190
190
  useRequestPasswordReset,
191
191
  useResetPassword,
192
192
  useValidateVerificationToken
193
- } from "../chunk-LLH3ONZD.mjs";
193
+ } from "../chunk-ZSSVU6GY.mjs";
194
194
  import "../chunk-7DQBUZXY.mjs";
195
195
  import "../chunk-3DYFIY72.mjs";
196
196
  export {
@@ -3027,8 +3027,9 @@ var GET_EVENTS = import_client2.gql`
3027
3027
  query getEvents(
3028
3028
  $dateStatus: EventDateStatusEnumType
3029
3029
  $options: PaginationOptions
3030
+ $filter: EventListFilter
3030
3031
  ) {
3031
- events(dateStatus: $dateStatus, options: $options) {
3032
+ events(dateStatus: $dateStatus, options: $options, filter: $filter) {
3032
3033
  ...EventListItemFields
3033
3034
  }
3034
3035
  }
@@ -3333,8 +3334,8 @@ var UNREGISTERED_VENDOR = import_client3.gql`
3333
3334
  ${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
3334
3335
  `;
3335
3336
  var GET_VENDORS = import_client3.gql`
3336
- query getVendors($options: PaginationOptions) {
3337
- vendors(options: $options) {
3337
+ query getVendors($options: PaginationOptions, $filter: VendorListFilter) {
3338
+ vendors(options: $options, filter: $filter) {
3338
3339
  ...VendorFields
3339
3340
  }
3340
3341
  }
@@ -3577,8 +3578,8 @@ var PARTNER = import_client5.gql`
3577
3578
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
3578
3579
  `;
3579
3580
  var GET_PARTNERS = import_client5.gql`
3580
- query getPartners($options: PaginationOptions) {
3581
- partners(options: $options) {
3581
+ query getPartners($options: PaginationOptions, $filter: PartnerListFilter) {
3582
+ partners(options: $options, filter: $filter) {
3582
3583
  ...PartnerFields
3583
3584
  }
3584
3585
  }
@@ -3794,8 +3795,8 @@ var POST_FIELDS_FRAGMENT = import_client8.gql`
3794
3795
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
3795
3796
  `;
3796
3797
  var GET_POSTS = import_client8.gql`
3797
- query getPosts($options: PaginationOptions) {
3798
- posts(options: $options) {
3798
+ query getPosts($options: PaginationOptions, $filter: PostListFilter) {
3799
+ posts(options: $options, filter: $filter) {
3799
3800
  ...PostFields
3800
3801
  }
3801
3802
  }
@@ -5350,6 +5351,10 @@ var import_client65 = require("@apollo/client");
5350
5351
  var APP_SETTINGS_FIELDS_FRAGMENT = import_client65.gql`
5351
5352
  fragment AppSettingsFields on AppSettingsType {
5352
5353
  _id
5354
+ adSettings {
5355
+ mobileDisplayEnabled
5356
+ webDisplayEnabled
5357
+ }
5353
5358
  appVersion
5354
5359
  createdAt
5355
5360
  isOfflineMode
@@ -6396,6 +6401,10 @@ var postSchema = yup8.object().shape({
6396
6401
  // src/yupSchema/appSettings.ts
6397
6402
  var yup9 = __toESM(require("yup"));
6398
6403
  var appSettingsSchema = yup9.object({
6404
+ adSettings: yup9.object({
6405
+ mobileDisplayEnabled: yup9.boolean().label("Mobile Ad Display").required("Mobile Ad Display is required"),
6406
+ webDisplayEnabled: yup9.boolean().label("Web Ad Display").required("Web Ad Display is required")
6407
+ }).label("Ad Settings").required("Ad Settings is required"),
6399
6408
  appVersion: yup9.string().trim().label("App Version").matches(
6400
6409
  /^\d+\.\d+\.\d+$/,
6401
6410
  "App Version must be in the format X.Y.Z (e.g. 1.12.50)"
@@ -7628,6 +7637,10 @@ var import_yup16 = require("@hookform/resolvers/yup");
7628
7637
  var import_react5 = __toESM(require("react"));
7629
7638
  var import_react_hook_form16 = require("react-hook-form");
7630
7639
  var defaultValues10 = {
7640
+ adSettings: {
7641
+ mobileDisplayEnabled: false,
7642
+ webDisplayEnabled: false
7643
+ },
7631
7644
  appVersion: "",
7632
7645
  isOfflineMode: false,
7633
7646
  minimumRedeemableAffiliatePoints: 0
@@ -7648,6 +7661,10 @@ function useAppSettingsForm(data) {
7648
7661
  import_react5.default.useEffect(() => {
7649
7662
  if (data) {
7650
7663
  reset({
7664
+ adSettings: {
7665
+ mobileDisplayEnabled: data.adSettings?.mobileDisplayEnabled ?? false,
7666
+ webDisplayEnabled: data.adSettings?.webDisplayEnabled ?? false
7667
+ },
7651
7668
  appVersion: data.appVersion,
7652
7669
  isOfflineMode: data.isOfflineMode,
7653
7670
  minimumRedeemableAffiliatePoints: data.minimumRedeemableAffiliatePoints
@@ -7656,10 +7673,16 @@ function useAppSettingsForm(data) {
7656
7673
  reset(defaultValues10);
7657
7674
  }
7658
7675
  }, [data]);
7659
- const { appVersion, isOfflineMode, minimumRedeemableAffiliatePoints } = getValues();
7676
+ const {
7677
+ adSettings,
7678
+ appVersion,
7679
+ isOfflineMode,
7680
+ minimumRedeemableAffiliatePoints
7681
+ } = getValues();
7660
7682
  return {
7661
7683
  control,
7662
7684
  fields: {
7685
+ adSettings,
7663
7686
  appVersion,
7664
7687
  isOfflineMode,
7665
7688
  minimumRedeemableAffiliatePoints