@timardex/cluemart-shared 1.3.53 → 1.3.55

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 (37) hide show
  1. package/dist/{auth-DRTR-N6y.d.ts → auth-BD8pG4QE.d.ts} +1 -11
  2. package/dist/{auth-D2Xc44z-.d.mts → auth-Cp-vzzpW.d.mts} +1 -11
  3. package/dist/{chunk-T4ZRRNJA.mjs → chunk-IXPWY6CU.mjs} +2 -1
  4. package/dist/chunk-IXPWY6CU.mjs.map +1 -0
  5. package/dist/{chunk-6DQPQJ2R.mjs → chunk-O3WF2I56.mjs} +2 -2
  6. package/dist/enums/index.cjs +1 -0
  7. package/dist/enums/index.cjs.map +1 -1
  8. package/dist/enums/index.d.mts +1 -0
  9. package/dist/enums/index.d.ts +1 -0
  10. package/dist/enums/index.mjs +1 -1
  11. package/dist/formFields/index.cjs.map +1 -1
  12. package/dist/formFields/index.mjs +2 -2
  13. package/dist/graphql/index.cjs +62 -13
  14. package/dist/graphql/index.cjs.map +1 -1
  15. package/dist/graphql/index.d.mts +18 -4
  16. package/dist/graphql/index.d.ts +18 -4
  17. package/dist/graphql/index.mjs +59 -12
  18. package/dist/graphql/index.mjs.map +1 -1
  19. package/dist/hooks/index.cjs.map +1 -1
  20. package/dist/hooks/index.d.mts +2 -2
  21. package/dist/hooks/index.d.ts +2 -2
  22. package/dist/hooks/index.mjs +2 -2
  23. package/dist/index.cjs +63 -13
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.mts +19 -3
  26. package/dist/index.d.ts +19 -3
  27. package/dist/index.mjs +59 -11
  28. package/dist/index.mjs.map +1 -1
  29. package/dist/{post-D83V8snF.d.ts → post-Ccnm8wXU.d.ts} +12 -1
  30. package/dist/{post-CLTR6oRS.d.mts → post-DMNuE0Ba.d.mts} +12 -1
  31. package/dist/types/index.d.mts +2 -2
  32. package/dist/types/index.d.ts +2 -2
  33. package/dist/utils/index.cjs.map +1 -1
  34. package/dist/utils/index.mjs +2 -2
  35. package/package.json +1 -1
  36. package/dist/chunk-T4ZRRNJA.mjs.map +0 -1
  37. /package/dist/{chunk-6DQPQJ2R.mjs.map → chunk-O3WF2I56.mjs.map} +0 -0
@@ -26,9 +26,9 @@ __export(graphql_exports, {
26
26
  useAddUserInterestResource: () => useAddUserInterestResource,
27
27
  useAddUserPresentResource: () => useAddUserPresentResource,
28
28
  useAdminResendTesterVerificationEmail: () => useAdminResendTesterVerificationEmail,
29
+ useAdminResendUserVerificationEmail: () => useAdminResendUserVerificationEmail,
29
30
  useAdminUpdateResourceType: () => useAdminUpdateResourceType,
30
31
  useAdminUpdateTester: () => useAdminUpdateTester,
31
- useAppVersionCheck: () => useAppVersionCheck,
32
32
  useCancelSubscription: () => useCancelSubscription,
33
33
  useContactUs: () => useContactUs,
34
34
  useCreateAd: () => useCreateAd,
@@ -63,6 +63,7 @@ __export(graphql_exports, {
63
63
  useGetAd: () => useGetAd,
64
64
  useGetAds: () => useGetAds,
65
65
  useGetAdsByRegion: () => useGetAdsByRegion,
66
+ useGetAppSettings: () => useGetAppSettings,
66
67
  useGetChat: () => useGetChat,
67
68
  useGetChatSubscription: () => useGetChatSubscription,
68
69
  useGetEvent: () => useGetEvent,
@@ -120,6 +121,7 @@ __export(graphql_exports, {
120
121
  useSelectPackage: () => useSelectPackage,
121
122
  useSendChatMessage: () => useSendChatMessage,
122
123
  useUpdateAd: () => useUpdateAd,
124
+ useUpdateAppSettings: () => useUpdateAppSettings,
123
125
  useUpdateEvent: () => useUpdateEvent,
124
126
  useUpdateEventInfo: () => useUpdateEventInfo,
125
127
  useUpdatePartner: () => useUpdatePartner,
@@ -162,6 +164,11 @@ var ADMIN_RESEND_TESTER_VERIFICATION_EMAIL_MUTATION = import_client.gql`
162
164
  adminResendTesterVerificationEmail(testerId: $testerId)
163
165
  }
164
166
  `;
167
+ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client.gql`
168
+ mutation adminResendUserVerificationEmail($userId: ID!) {
169
+ adminResendUserVerificationEmail(userId: $userId)
170
+ }
171
+ `;
165
172
 
166
173
  // src/graphql/queries/event.ts
167
174
  var import_client3 = require("@apollo/client");
@@ -925,6 +932,16 @@ var useAdminResendTesterVerificationEmail = () => {
925
932
  loading
926
933
  };
927
934
  };
935
+ var useAdminResendUserVerificationEmail = () => {
936
+ const [adminResendUserVerificationEmail, { loading, error }] = (0, import_client6.useMutation)(
937
+ ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION
938
+ );
939
+ return {
940
+ adminResendUserVerificationEmail,
941
+ error,
942
+ loading
943
+ };
944
+ };
928
945
 
929
946
  // src/graphql/hooks/auth.ts
930
947
  var import_client8 = require("@apollo/client");
@@ -3370,26 +3387,56 @@ var useGetPostsByType = (postType) => {
3370
3387
  };
3371
3388
 
3372
3389
  // src/graphql/hooks/appSettings/hooksMutation.ts
3373
- var import_client64 = require("@apollo/client");
3390
+ var import_client65 = require("@apollo/client");
3374
3391
 
3375
3392
  // src/graphql/mutations/appSettings.ts
3376
3393
  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
3394
+ var UPDATE_APP_SETTINGS_MUTATION = import_client63.gql`
3395
+ mutation updateAppSettings($input: AppSettingsInputType!) {
3396
+ updateAppSettings(input: $input)
3397
+ }
3398
+ `;
3399
+
3400
+ // src/graphql/queries/appSettings.ts
3401
+ var import_client64 = require("@apollo/client");
3402
+ var APP_SETTINGS_FIELDS_FRAGMENT = import_client64.gql`
3403
+ fragment AppSettingsFields on AppSettingsType {
3404
+ _id
3405
+ appVersion
3406
+ createdAt
3407
+ key
3408
+ updatedAt
3409
+ }
3410
+ `;
3411
+ var GET_APP_SETTINGS = import_client64.gql`
3412
+ query getAppSettings {
3413
+ appSettings {
3414
+ ...AppSettingsFields
3383
3415
  }
3384
3416
  }
3417
+ ${APP_SETTINGS_FIELDS_FRAGMENT}
3385
3418
  `;
3386
3419
 
3387
3420
  // src/graphql/hooks/appSettings/hooksMutation.ts
3388
- var useAppVersionCheck = () => {
3389
- const [appVersionCheck, { loading, error }] = (0, import_client64.useMutation)(
3390
- APP_VERSION_CHECK_MUTATION
3421
+ var useUpdateAppSettings = () => {
3422
+ const [updateAppSettings, { loading, error }] = (0, import_client65.useMutation)(
3423
+ UPDATE_APP_SETTINGS_MUTATION,
3424
+ {
3425
+ awaitRefetchQueries: true,
3426
+ refetchQueries: [{ query: GET_APP_SETTINGS }]
3427
+ }
3391
3428
  );
3392
- return { appVersionCheck, error, loading };
3429
+ return { error, loading, updateAppSettings };
3430
+ };
3431
+
3432
+ // src/graphql/hooks/appSettings/hooksQuery.ts
3433
+ var import_client66 = require("@apollo/client");
3434
+ var useGetAppSettings = () => {
3435
+ const { loading, error, data, refetch } = (0, import_client66.useQuery)(GET_APP_SETTINGS, {
3436
+ fetchPolicy: "network-only"
3437
+ });
3438
+ const appSettings = data?.appSettings || null;
3439
+ return { appSettings, error, loading, refetch };
3393
3440
  };
3394
3441
  // Annotate the CommonJS export names for ESM import in node:
3395
3442
  0 && (module.exports = {
@@ -3399,9 +3446,9 @@ var useAppVersionCheck = () => {
3399
3446
  useAddUserInterestResource,
3400
3447
  useAddUserPresentResource,
3401
3448
  useAdminResendTesterVerificationEmail,
3449
+ useAdminResendUserVerificationEmail,
3402
3450
  useAdminUpdateResourceType,
3403
3451
  useAdminUpdateTester,
3404
- useAppVersionCheck,
3405
3452
  useCancelSubscription,
3406
3453
  useContactUs,
3407
3454
  useCreateAd,
@@ -3436,6 +3483,7 @@ var useAppVersionCheck = () => {
3436
3483
  useGetAd,
3437
3484
  useGetAds,
3438
3485
  useGetAdsByRegion,
3486
+ useGetAppSettings,
3439
3487
  useGetChat,
3440
3488
  useGetChatSubscription,
3441
3489
  useGetEvent,
@@ -3493,6 +3541,7 @@ var useAppVersionCheck = () => {
3493
3541
  useSelectPackage,
3494
3542
  useSendChatMessage,
3495
3543
  useUpdateAd,
3544
+ useUpdateAppSettings,
3496
3545
  useUpdateEvent,
3497
3546
  useUpdateEventInfo,
3498
3547
  useUpdatePartner,