@timardex/cluemart-shared 1.3.50 → 1.3.52

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.
@@ -9,6 +9,14 @@ type ContactUsFormData = {
9
9
  };
10
10
  type CreateContactUsFormData = CreateFormData<ContactUsFormData>;
11
11
 
12
+ interface AppSettingsFormData {
13
+ appVersion: string;
14
+ }
15
+ type CreateAppSettingsFormData = CreateFormData<AppSettingsFormData>;
16
+ type AppSettingsType = AppSettingsFormData & {
17
+ _id: string;
18
+ };
19
+
12
20
  type LoginFormData = {
13
21
  email: string;
14
22
  isAdminPage?: boolean;
@@ -42,4 +50,4 @@ type ValidateVerificationTokenFormData = {
42
50
  };
43
51
  type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificationTokenFormData>;
44
52
 
45
- export type { CreateLoginFormData as C, LoginFormData as L, RegisterFormData as R, ValidateVerificationTokenFormData as V, CreateRegisterFormData as a, CreateRequestPasswordResetFormData as b, CreateValidateVerificationTokenFormData as c, CreateResetPasswordFormData as d, ContactUsFormData as e, CreateContactUsFormData as f, RequestPasswordResetFormData as g, ResetPasswordFormData as h };
53
+ export type { AppSettingsFormData as A, CreateLoginFormData as C, LoginFormData as L, RegisterFormData as R, ValidateVerificationTokenFormData as V, CreateRegisterFormData as a, CreateRequestPasswordResetFormData as b, CreateValidateVerificationTokenFormData as c, CreateResetPasswordFormData as d, ContactUsFormData as e, CreateContactUsFormData as f, CreateAppSettingsFormData as g, RequestPasswordResetFormData as h, ResetPasswordFormData as i, AppSettingsType as j };
@@ -9,6 +9,14 @@ type ContactUsFormData = {
9
9
  };
10
10
  type CreateContactUsFormData = CreateFormData<ContactUsFormData>;
11
11
 
12
+ interface AppSettingsFormData {
13
+ appVersion: string;
14
+ }
15
+ type CreateAppSettingsFormData = CreateFormData<AppSettingsFormData>;
16
+ type AppSettingsType = AppSettingsFormData & {
17
+ _id: string;
18
+ };
19
+
12
20
  type LoginFormData = {
13
21
  email: string;
14
22
  isAdminPage?: boolean;
@@ -42,4 +50,4 @@ type ValidateVerificationTokenFormData = {
42
50
  };
43
51
  type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificationTokenFormData>;
44
52
 
45
- export type { CreateLoginFormData as C, LoginFormData as L, RegisterFormData as R, ValidateVerificationTokenFormData as V, CreateRegisterFormData as a, CreateRequestPasswordResetFormData as b, CreateValidateVerificationTokenFormData as c, CreateResetPasswordFormData as d, ContactUsFormData as e, CreateContactUsFormData as f, RequestPasswordResetFormData as g, ResetPasswordFormData as h };
53
+ export type { AppSettingsFormData as A, CreateLoginFormData as C, LoginFormData as L, RegisterFormData as R, ValidateVerificationTokenFormData as V, CreateRegisterFormData as a, CreateRequestPasswordResetFormData as b, CreateValidateVerificationTokenFormData as c, CreateResetPasswordFormData as d, ContactUsFormData as e, CreateContactUsFormData as f, CreateAppSettingsFormData as g, RequestPasswordResetFormData as h, ResetPasswordFormData as i, AppSettingsType as j };
@@ -2586,15 +2586,6 @@ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
2586
2586
  }
2587
2587
  ${USER_FIELDS_FRAGMENT}
2588
2588
  `;
2589
- var APP_VERSION_CHECK_MUTATION = import_client41.gql`
2590
- mutation appVersionCheck($appVersion: String!) {
2591
- appVersionCheck(appVersion: $appVersion) {
2592
- isUpToDate
2593
- latestVersion
2594
- message
2595
- }
2596
- }
2597
- `;
2598
2589
 
2599
2590
  // src/graphql/hooks/user/hooksMutation.ts
2600
2591
  var useCreateUser = () => {
@@ -2696,12 +2687,6 @@ var useRemoveUserPresentResource = () => {
2696
2687
  );
2697
2688
  return { error, loading, removeUserPresentResource };
2698
2689
  };
2699
- var useAppVersionCheck = () => {
2700
- const [appVersionCheck, { loading, error }] = (0, import_client42.useMutation)(
2701
- APP_VERSION_CHECK_MUTATION
2702
- );
2703
- return { appVersionCheck, error, loading };
2704
- };
2705
2690
 
2706
2691
  // src/graphql/hooks/user/hooksQuery.ts
2707
2692
  var import_client43 = require("@apollo/client");
@@ -3383,6 +3368,29 @@ var useGetPostsByType = (postType) => {
3383
3368
  });
3384
3369
  return { error, loading, postsByType: data?.postsByType || [], refetch };
3385
3370
  };
3371
+
3372
+ // src/graphql/hooks/appSettings/hooksMutation.ts
3373
+ var import_client64 = require("@apollo/client");
3374
+
3375
+ // src/graphql/mutations/appSettings.ts
3376
+ var import_client63 = require("@apollo/client");
3377
+ var APP_VERSION_CHECK_MUTATION = import_client63.gql`
3378
+ mutation appVersionCheck($appVersion: String!) {
3379
+ appVersionCheck(appVersion: $appVersion) {
3380
+ isUpToDate
3381
+ latestVersion
3382
+ message
3383
+ }
3384
+ }
3385
+ `;
3386
+
3387
+ // src/graphql/hooks/appSettings/hooksMutation.ts
3388
+ var useAppVersionCheck = () => {
3389
+ const [appVersionCheck, { loading, error }] = (0, import_client64.useMutation)(
3390
+ APP_VERSION_CHECK_MUTATION
3391
+ );
3392
+ return { appVersionCheck, error, loading };
3393
+ };
3386
3394
  // Annotate the CommonJS export names for ESM import in node:
3387
3395
  0 && (module.exports = {
3388
3396
  useAddParticipantToChat,