@timardex/cluemart-shared 1.3.43 → 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,
@@ -459,8 +460,15 @@ var EnumSubscriptionStatus = /* @__PURE__ */ ((EnumSubscriptionStatus2) => {
459
460
  EnumSubscriptionStatus2["CANCELLED"] = "cancelled";
460
461
  EnumSubscriptionStatus2["NO_SUBSCRIPTION"] = "no_subscription";
461
462
  EnumSubscriptionStatus2["PAST_DUE"] = "past_due";
463
+ EnumSubscriptionStatus2["TRIALING"] = "trialing";
462
464
  return EnumSubscriptionStatus2;
463
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 || {});
464
472
 
465
473
  // src/formFields/vendor/vendor.ts
466
474
  var vendorBasicInfoFields = [
@@ -5197,8 +5205,11 @@ var import_client53 = require("@apollo/client");
5197
5205
  // src/graphql/mutations/stripe.ts
5198
5206
  var import_client52 = require("@apollo/client");
5199
5207
  var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
5200
- mutation createCheckoutSession($planId: LicencesEnumType!) {
5201
- createCheckoutSession(planId: $planId) {
5208
+ mutation createCheckoutSession(
5209
+ $planId: LicencesEnumType!
5210
+ $billingPeriod: BillingPeriodEnumType
5211
+ ) {
5212
+ createCheckoutSession(planId: $planId, billingPeriod: $billingPeriod) {
5202
5213
  sessionId
5203
5214
  checkoutUrl
5204
5215
  }
@@ -5210,8 +5221,11 @@ var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
5210
5221
  }
5211
5222
  `;
5212
5223
  var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
5213
- mutation updateSubscriptionPlan($newPlanId: LicencesEnumType!) {
5214
- updateSubscriptionPlan(newPlanId: $newPlanId) {
5224
+ mutation updateSubscriptionPlan(
5225
+ $newPlanId: LicencesEnumType!
5226
+ $billingPeriod: BillingPeriodEnumType
5227
+ ) {
5228
+ updateSubscriptionPlan(newPlanId: $newPlanId, billingPeriod: $billingPeriod) {
5215
5229
  subscriptionId
5216
5230
  status
5217
5231
  priceId
@@ -7389,6 +7403,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
7389
7403
  EnumAdStatus,
7390
7404
  EnumAdStyle,
7391
7405
  EnumAdType,
7406
+ EnumBillingPeriod,
7392
7407
  EnumChatType,
7393
7408
  EnumEventDateStatus,
7394
7409
  EnumEventType,