@timardex/cluemart-shared 1.3.42 → 1.3.44

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.
@@ -13,7 +13,7 @@ import {
13
13
  dateFormat,
14
14
  normalizeUrl,
15
15
  timeFormat
16
- } from "../chunk-TBXDTVWR.mjs";
16
+ } from "../chunk-FGYCES2I.mjs";
17
17
  import {
18
18
  EnumEventDateStatus,
19
19
  EnumEventType,
@@ -26,7 +26,7 @@ import {
26
26
  EnumUserLicence,
27
27
  EnumUserRole,
28
28
  EnumVendorType
29
- } from "../chunk-DBRBH6GO.mjs";
29
+ } from "../chunk-T4ZRRNJA.mjs";
30
30
 
31
31
  // src/hooks/useLocationSearch.ts
32
32
  var handleApiError = (error, message) => {
package/dist/index.cjs CHANGED
@@ -35,6 +35,7 @@ __export(index_exports, {
35
35
  EnumAdStatus: () => EnumAdStatus,
36
36
  EnumAdStyle: () => EnumAdStyle,
37
37
  EnumAdType: () => EnumAdType,
38
+ EnumBillingPeriod: () => EnumBillingPeriod,
38
39
  EnumChatType: () => EnumChatType,
39
40
  EnumEventDateStatus: () => EnumEventDateStatus,
40
41
  EnumEventType: () => EnumEventType,
@@ -128,6 +129,7 @@ __export(index_exports, {
128
129
  useAdminResendTesterVerificationEmail: () => useAdminResendTesterVerificationEmail,
129
130
  useAdminUpdateResourceType: () => useAdminUpdateResourceType,
130
131
  useAdminUpdateTester: () => useAdminUpdateTester,
132
+ useAppVersionCheck: () => useAppVersionCheck,
131
133
  useCancelSubscription: () => useCancelSubscription,
132
134
  useContactUs: () => useContactUs,
133
135
  useContactUsForm: () => useContactUsForm,
@@ -458,8 +460,15 @@ var EnumSubscriptionStatus = /* @__PURE__ */ ((EnumSubscriptionStatus2) => {
458
460
  EnumSubscriptionStatus2["CANCELLED"] = "cancelled";
459
461
  EnumSubscriptionStatus2["NO_SUBSCRIPTION"] = "no_subscription";
460
462
  EnumSubscriptionStatus2["PAST_DUE"] = "past_due";
463
+ EnumSubscriptionStatus2["TRIALING"] = "trialing";
461
464
  return EnumSubscriptionStatus2;
462
465
  })(EnumSubscriptionStatus || {});
466
+ var EnumBillingPeriod = /* @__PURE__ */ ((EnumBillingPeriod2) => {
467
+ EnumBillingPeriod2["MONTHLY_CANCEL_ANYTIME"] = "monthly_cancel_anytime";
468
+ EnumBillingPeriod2["YEARLY_ANNUAL_BILLED"] = "yearly_annual_billed";
469
+ EnumBillingPeriod2["YEARLY_MONTHLY_BILLED"] = "yearly_monthly_billed";
470
+ return EnumBillingPeriod2;
471
+ })(EnumBillingPeriod || {});
463
472
 
464
473
  // src/formFields/vendor/vendor.ts
465
474
  var vendorBasicInfoFields = [
@@ -4715,6 +4724,7 @@ var SELECT_PACKAGE_MUTATION = import_client41.gql`
4715
4724
  licences {
4716
4725
  ...LicenceFields
4717
4726
  }
4727
+ userId
4718
4728
  message
4719
4729
  }
4720
4730
  }
@@ -4768,6 +4778,15 @@ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
4768
4778
  }
4769
4779
  ${USER_FIELDS_FRAGMENT}
4770
4780
  `;
4781
+ var APP_VERSION_CHECK_MUTATION = import_client41.gql`
4782
+ mutation appVersionCheck($appVersion: String!) {
4783
+ appVersionCheck(appVersion: $appVersion) {
4784
+ isUpToDate
4785
+ latestVersion
4786
+ message
4787
+ }
4788
+ }
4789
+ `;
4771
4790
 
4772
4791
  // src/graphql/hooks/user/hooksMutation.ts
4773
4792
  var useCreateUser = () => {
@@ -4884,6 +4903,12 @@ var useRemoveUserPresentResource = () => {
4884
4903
  );
4885
4904
  return { error, loading, removeUserPresentResource };
4886
4905
  };
4906
+ var useAppVersionCheck = () => {
4907
+ const [appVersionCheck, { loading, error }] = (0, import_client42.useMutation)(
4908
+ APP_VERSION_CHECK_MUTATION
4909
+ );
4910
+ return { appVersionCheck, error, loading };
4911
+ };
4887
4912
 
4888
4913
  // src/graphql/hooks/user/hooksQuery.ts
4889
4914
  var import_client43 = require("@apollo/client");
@@ -5180,8 +5205,11 @@ var import_client53 = require("@apollo/client");
5180
5205
  // src/graphql/mutations/stripe.ts
5181
5206
  var import_client52 = require("@apollo/client");
5182
5207
  var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
5183
- mutation createCheckoutSession($planId: LicencesEnumType!) {
5184
- createCheckoutSession(planId: $planId) {
5208
+ mutation createCheckoutSession(
5209
+ $planId: LicencesEnumType!
5210
+ $billingPeriod: BillingPeriodEnumType
5211
+ ) {
5212
+ createCheckoutSession(planId: $planId, billingPeriod: $billingPeriod) {
5185
5213
  sessionId
5186
5214
  checkoutUrl
5187
5215
  }
@@ -5193,8 +5221,11 @@ var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
5193
5221
  }
5194
5222
  `;
5195
5223
  var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
5196
- mutation updateSubscriptionPlan($newPlanId: LicencesEnumType!) {
5197
- updateSubscriptionPlan(newPlanId: $newPlanId) {
5224
+ mutation updateSubscriptionPlan(
5225
+ $newPlanId: LicencesEnumType!
5226
+ $billingPeriod: BillingPeriodEnumType
5227
+ ) {
5228
+ updateSubscriptionPlan(newPlanId: $newPlanId, billingPeriod: $billingPeriod) {
5198
5229
  subscriptionId
5199
5230
  status
5200
5231
  priceId
@@ -7372,6 +7403,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
7372
7403
  EnumAdStatus,
7373
7404
  EnumAdStyle,
7374
7405
  EnumAdType,
7406
+ EnumBillingPeriod,
7375
7407
  EnumChatType,
7376
7408
  EnumEventDateStatus,
7377
7409
  EnumEventType,
@@ -7465,6 +7497,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
7465
7497
  useAdminResendTesterVerificationEmail,
7466
7498
  useAdminUpdateResourceType,
7467
7499
  useAdminUpdateTester,
7500
+ useAppVersionCheck,
7468
7501
  useCancelSubscription,
7469
7502
  useContactUs,
7470
7503
  useContactUsForm,