@timardex/cluemart-shared 1.3.41 → 1.3.43

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.
@@ -1,4 +1,4 @@
1
- import { x as CreateFormData, T as TermsAgreement } from './global-u-2yiS2S.js';
1
+ import { x as CreateFormData, T as TermsAgreement } from './global-DM9eKgbE.js';
2
2
  import { EnumOSPlatform } from './enums/index.js';
3
3
 
4
4
  type ContactUsFormData = {
@@ -1,4 +1,4 @@
1
- import { x as CreateFormData, T as TermsAgreement } from './global-BimclztT.mjs';
1
+ import { x as CreateFormData, T as TermsAgreement } from './global-BN1zcCyz.mjs';
2
2
  import { EnumOSPlatform } from './enums/index.mjs';
3
3
 
4
4
  type ContactUsFormData = {
@@ -1,4 +1,4 @@
1
- import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-BimclztT.mjs';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-BN1zcCyz.mjs';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-u-2yiS2S.js';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-DM9eKgbE.js';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.js';
4
4
 
@@ -96,11 +96,11 @@ type UserActivityEventType = {
96
96
  description: string;
97
97
  eventType: EnumEventType;
98
98
  location: LocationType;
99
- logo?: ResourceImageType;
99
+ logo?: ResourceImageType | null;
100
100
  name: string;
101
101
  rainOrShine: boolean;
102
102
  region: string;
103
- socialMedia?: SocialMediaType[];
103
+ socialMedia?: SocialMediaType[] | null;
104
104
  };
105
105
 
106
106
  type VendorLocation = {
@@ -96,11 +96,11 @@ type UserActivityEventType = {
96
96
  description: string;
97
97
  eventType: EnumEventType;
98
98
  location: LocationType;
99
- logo?: ResourceImageType;
99
+ logo?: ResourceImageType | null;
100
100
  name: string;
101
101
  rainOrShine: boolean;
102
102
  region: string;
103
- socialMedia?: SocialMediaType[];
103
+ socialMedia?: SocialMediaType[] | null;
104
104
  };
105
105
 
106
106
  type VendorLocation = {
@@ -28,6 +28,7 @@ __export(graphql_exports, {
28
28
  useAdminResendTesterVerificationEmail: () => useAdminResendTesterVerificationEmail,
29
29
  useAdminUpdateResourceType: () => useAdminUpdateResourceType,
30
30
  useAdminUpdateTester: () => useAdminUpdateTester,
31
+ useAppVersionCheck: () => useAppVersionCheck,
31
32
  useCancelSubscription: () => useCancelSubscription,
32
33
  useContactUs: () => useContactUs,
33
34
  useCreateAd: () => useCreateAd,
@@ -2432,6 +2433,7 @@ var SELECT_PACKAGE_MUTATION = import_client41.gql`
2432
2433
  licences {
2433
2434
  ...LicenceFields
2434
2435
  }
2436
+ userId
2435
2437
  message
2436
2438
  }
2437
2439
  }
@@ -2485,6 +2487,15 @@ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
2485
2487
  }
2486
2488
  ${USER_FIELDS_FRAGMENT}
2487
2489
  `;
2490
+ var APP_VERSION_CHECK_MUTATION = import_client41.gql`
2491
+ mutation appVersionCheck($appVersion: String!) {
2492
+ appVersionCheck(appVersion: $appVersion) {
2493
+ isUpToDate
2494
+ latestVersion
2495
+ message
2496
+ }
2497
+ }
2498
+ `;
2488
2499
 
2489
2500
  // src/graphql/hooks/user/hooksMutation.ts
2490
2501
  var useCreateUser = () => {
@@ -2601,6 +2612,12 @@ var useRemoveUserPresentResource = () => {
2601
2612
  );
2602
2613
  return { error, loading, removeUserPresentResource };
2603
2614
  };
2615
+ var useAppVersionCheck = () => {
2616
+ const [appVersionCheck, { loading, error }] = (0, import_client42.useMutation)(
2617
+ APP_VERSION_CHECK_MUTATION
2618
+ );
2619
+ return { appVersionCheck, error, loading };
2620
+ };
2604
2621
 
2605
2622
  // src/graphql/hooks/user/hooksQuery.ts
2606
2623
  var import_client43 = require("@apollo/client");
@@ -3232,6 +3249,7 @@ var useGetPostsByType = (postType) => {
3232
3249
  useAdminResendTesterVerificationEmail,
3233
3250
  useAdminUpdateResourceType,
3234
3251
  useAdminUpdateTester,
3252
+ useAppVersionCheck,
3235
3253
  useCancelSubscription,
3236
3254
  useContactUs,
3237
3255
  useCreateAd,