@timardex/cluemart-shared 1.7.90 → 1.7.91

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 (51) hide show
  1. package/dist/{ad-MA6buSLw.d.mts → ad-DjHlreUH.d.mts} +1 -1
  2. package/dist/{ad-BX_Da-0Q.d.ts → ad-DzAxJcWT.d.ts} +1 -1
  3. package/dist/{affiliate-DXpSgV4o.d.ts → affiliate-BVLyYY70.d.ts} +1 -1
  4. package/dist/{affiliate-Cb8BLoQc.d.mts → affiliate-BpjRWPUA.d.mts} +1 -1
  5. package/dist/auth/index.cjs +7 -0
  6. package/dist/auth/index.cjs.map +1 -1
  7. package/dist/auth/index.d.mts +2 -2
  8. package/dist/auth/index.d.ts +2 -2
  9. package/dist/auth/index.mjs +1 -1
  10. package/dist/{billingCatalog-Bca0IZG_.d.mts → billingCatalog-DDAU9BWV.d.mts} +1 -1
  11. package/dist/{billingCatalog-Rh9yvue3.d.ts → billingCatalog-oWAfZX95.d.ts} +1 -1
  12. package/dist/{chunk-D3U4LBOQ.mjs → chunk-3ZPHXVUT.mjs} +2 -2
  13. package/dist/{chunk-GA6E5NK3.mjs → chunk-PSKWWPLY.mjs} +8 -1
  14. package/dist/chunk-PSKWWPLY.mjs.map +1 -0
  15. package/dist/{chunk-TD52IH52.mjs → chunk-STNE7PMX.mjs} +1 -1
  16. package/dist/chunk-STNE7PMX.mjs.map +1 -0
  17. package/dist/{chunk-6VTX7IPF.mjs → chunk-ZW4M5EGZ.mjs} +37 -17
  18. package/dist/chunk-ZW4M5EGZ.mjs.map +1 -0
  19. package/dist/formFields/index.mjs +2 -2
  20. package/dist/graphql/index.cjs +42 -15
  21. package/dist/graphql/index.cjs.map +1 -1
  22. package/dist/graphql/index.d.mts +9 -19
  23. package/dist/graphql/index.d.ts +9 -19
  24. package/dist/graphql/index.mjs +2 -2
  25. package/dist/hooks/index.cjs +42 -15
  26. package/dist/hooks/index.cjs.map +1 -1
  27. package/dist/hooks/index.d.mts +3 -3
  28. package/dist/hooks/index.d.ts +3 -3
  29. package/dist/hooks/index.mjs +4 -4
  30. package/dist/index.cjs +42 -15
  31. package/dist/index.cjs.map +1 -1
  32. package/dist/index.d.mts +23 -19
  33. package/dist/index.d.ts +23 -19
  34. package/dist/index.mjs +42 -15
  35. package/dist/index.mjs.map +1 -1
  36. package/dist/{resourceActivities-e3GkUqTN.d.mts → resourceActivities-BDp-h5yH.d.mts} +1 -1
  37. package/dist/{resourceActivities-CAr2chXT.d.ts → resourceActivities-C14qOL7_.d.ts} +1 -1
  38. package/dist/types/index.cjs.map +1 -1
  39. package/dist/types/index.d.mts +5 -5
  40. package/dist/types/index.d.ts +5 -5
  41. package/dist/types/index.mjs +1 -1
  42. package/dist/{user-D6Mt35k0.d.ts → user-C1yYa8oa.d.ts} +19 -5
  43. package/dist/{user-BTzwLwJl.d.mts → user-DCpVFB6K.d.mts} +19 -5
  44. package/dist/utils/index.d.mts +3 -3
  45. package/dist/utils/index.d.ts +3 -3
  46. package/dist/utils/index.mjs +2 -2
  47. package/package.json +1 -1
  48. package/dist/chunk-6VTX7IPF.mjs.map +0 -1
  49. package/dist/chunk-GA6E5NK3.mjs.map +0 -1
  50. package/dist/chunk-TD52IH52.mjs.map +0 -1
  51. /package/dist/{chunk-D3U4LBOQ.mjs.map → chunk-3ZPHXVUT.mjs.map} +0 -0
package/dist/index.d.mts CHANGED
@@ -1153,18 +1153,32 @@ type UserActivityEvent = {
1153
1153
  dateTime: DateTimeType;
1154
1154
  };
1155
1155
  type StripeSubscription = {
1156
+ billingPeriod?: EnumBillingPeriod;
1157
+ cancelAtPeriodEnd?: boolean;
1156
1158
  currentPlan?: EnumUserLicence;
1157
1159
  customerId?: string;
1158
1160
  endDate?: Date;
1161
+ pendingBillingPeriod?: EnumBillingPeriod;
1162
+ pendingChangeEffectiveAt?: Date;
1163
+ pendingPlan?: EnumUserLicence;
1164
+ priceId?: string;
1165
+ scheduleId?: string;
1159
1166
  startDate?: Date;
1160
1167
  status?: EnumSubscriptionStatus;
1161
1168
  subscriptionId?: string;
1162
1169
  };
1163
1170
  type SubscriptionStatusData = {
1164
- subscriptionId: string | null;
1165
- status: EnumSubscriptionStatus;
1166
- priceId: string | null;
1171
+ billingPeriod: EnumBillingPeriod | null;
1172
+ cancelAtPeriodEnd: boolean;
1167
1173
  currentPlan: EnumUserLicence | null;
1174
+ endDate: Date | null;
1175
+ pendingBillingPeriod: EnumBillingPeriod | null;
1176
+ pendingChangeEffectiveAt: Date | null;
1177
+ pendingPlan: EnumUserLicence | null;
1178
+ priceId: string | null;
1179
+ scheduleId: string | null;
1180
+ status: EnumSubscriptionStatus;
1181
+ subscriptionId: string | null;
1168
1182
  };
1169
1183
  type SubscriptionPricingData = {
1170
1184
  basePrice: number;
@@ -1546,7 +1560,7 @@ type ResourceActivityType = {
1546
1560
  type ResourceActivityInputType = {
1547
1561
  resourceId: string;
1548
1562
  resourceType: EnumResourceType;
1549
- activity: Omit<ResourceActivityEntry, "timestamp" | "userId">;
1563
+ activity: Omit<ResourceActivityEntry, "timestamp">;
1550
1564
  };
1551
1565
 
1552
1566
  interface PartnerFormData extends BaseResourceTypeFormData {
@@ -1617,7 +1631,7 @@ type BillingCatalogEntryType = BillingCatalogDefinition & {
1617
1631
  currency: string;
1618
1632
  effectiveFrom: Date;
1619
1633
  key: BillingCatalogKey;
1620
- priceHistory: BillingCatalogPriceHistoryEntry[];
1634
+ priceHistory?: BillingCatalogPriceHistoryEntry[];
1621
1635
  revision: number;
1622
1636
  stripePriceId?: string | null;
1623
1637
  stripeProductId?: string | null;
@@ -2888,9 +2902,9 @@ declare const useCreateCheckoutSession: () => {
2888
2902
  };
2889
2903
  declare const useCancelSubscription: () => {
2890
2904
  cancelSubscription: (options?: _apollo_client.MutationFunctionOptions<{
2891
- cancelSubscription: MutationResponse<string>;
2905
+ cancelSubscription: MutationResponse<SubscriptionStatusData>;
2892
2906
  }, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
2893
- cancelSubscription: MutationResponse<string>;
2907
+ cancelSubscription: MutationResponse<SubscriptionStatusData>;
2894
2908
  }>>;
2895
2909
  error: _apollo_client.ApolloError | undefined;
2896
2910
  loading: boolean;
@@ -2899,19 +2913,9 @@ declare const useUpdateSubscriptionPlan: () => {
2899
2913
  error: _apollo_client.ApolloError | undefined;
2900
2914
  loading: boolean;
2901
2915
  updateSubscriptionPlan: (options?: _apollo_client.MutationFunctionOptions<{
2902
- updateSubscriptionPlan: MutationResponse<{
2903
- subscriptionId: string;
2904
- status: string;
2905
- priceId: string;
2906
- currentPlan: string;
2907
- }>;
2916
+ updateSubscriptionPlan: MutationResponse<SubscriptionStatusData>;
2908
2917
  }, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
2909
- updateSubscriptionPlan: MutationResponse<{
2910
- subscriptionId: string;
2911
- status: string;
2912
- priceId: string;
2913
- currentPlan: string;
2914
- }>;
2918
+ updateSubscriptionPlan: MutationResponse<SubscriptionStatusData>;
2915
2919
  }>>;
2916
2920
  };
2917
2921
  declare const useCreateCustomerPortal: () => {
package/dist/index.d.ts CHANGED
@@ -1153,18 +1153,32 @@ type UserActivityEvent = {
1153
1153
  dateTime: DateTimeType;
1154
1154
  };
1155
1155
  type StripeSubscription = {
1156
+ billingPeriod?: EnumBillingPeriod;
1157
+ cancelAtPeriodEnd?: boolean;
1156
1158
  currentPlan?: EnumUserLicence;
1157
1159
  customerId?: string;
1158
1160
  endDate?: Date;
1161
+ pendingBillingPeriod?: EnumBillingPeriod;
1162
+ pendingChangeEffectiveAt?: Date;
1163
+ pendingPlan?: EnumUserLicence;
1164
+ priceId?: string;
1165
+ scheduleId?: string;
1159
1166
  startDate?: Date;
1160
1167
  status?: EnumSubscriptionStatus;
1161
1168
  subscriptionId?: string;
1162
1169
  };
1163
1170
  type SubscriptionStatusData = {
1164
- subscriptionId: string | null;
1165
- status: EnumSubscriptionStatus;
1166
- priceId: string | null;
1171
+ billingPeriod: EnumBillingPeriod | null;
1172
+ cancelAtPeriodEnd: boolean;
1167
1173
  currentPlan: EnumUserLicence | null;
1174
+ endDate: Date | null;
1175
+ pendingBillingPeriod: EnumBillingPeriod | null;
1176
+ pendingChangeEffectiveAt: Date | null;
1177
+ pendingPlan: EnumUserLicence | null;
1178
+ priceId: string | null;
1179
+ scheduleId: string | null;
1180
+ status: EnumSubscriptionStatus;
1181
+ subscriptionId: string | null;
1168
1182
  };
1169
1183
  type SubscriptionPricingData = {
1170
1184
  basePrice: number;
@@ -1546,7 +1560,7 @@ type ResourceActivityType = {
1546
1560
  type ResourceActivityInputType = {
1547
1561
  resourceId: string;
1548
1562
  resourceType: EnumResourceType;
1549
- activity: Omit<ResourceActivityEntry, "timestamp" | "userId">;
1563
+ activity: Omit<ResourceActivityEntry, "timestamp">;
1550
1564
  };
1551
1565
 
1552
1566
  interface PartnerFormData extends BaseResourceTypeFormData {
@@ -1617,7 +1631,7 @@ type BillingCatalogEntryType = BillingCatalogDefinition & {
1617
1631
  currency: string;
1618
1632
  effectiveFrom: Date;
1619
1633
  key: BillingCatalogKey;
1620
- priceHistory: BillingCatalogPriceHistoryEntry[];
1634
+ priceHistory?: BillingCatalogPriceHistoryEntry[];
1621
1635
  revision: number;
1622
1636
  stripePriceId?: string | null;
1623
1637
  stripeProductId?: string | null;
@@ -2888,9 +2902,9 @@ declare const useCreateCheckoutSession: () => {
2888
2902
  };
2889
2903
  declare const useCancelSubscription: () => {
2890
2904
  cancelSubscription: (options?: _apollo_client.MutationFunctionOptions<{
2891
- cancelSubscription: MutationResponse<string>;
2905
+ cancelSubscription: MutationResponse<SubscriptionStatusData>;
2892
2906
  }, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
2893
- cancelSubscription: MutationResponse<string>;
2907
+ cancelSubscription: MutationResponse<SubscriptionStatusData>;
2894
2908
  }>>;
2895
2909
  error: _apollo_client.ApolloError | undefined;
2896
2910
  loading: boolean;
@@ -2899,19 +2913,9 @@ declare const useUpdateSubscriptionPlan: () => {
2899
2913
  error: _apollo_client.ApolloError | undefined;
2900
2914
  loading: boolean;
2901
2915
  updateSubscriptionPlan: (options?: _apollo_client.MutationFunctionOptions<{
2902
- updateSubscriptionPlan: MutationResponse<{
2903
- subscriptionId: string;
2904
- status: string;
2905
- priceId: string;
2906
- currentPlan: string;
2907
- }>;
2916
+ updateSubscriptionPlan: MutationResponse<SubscriptionStatusData>;
2908
2917
  }, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
2909
- updateSubscriptionPlan: MutationResponse<{
2910
- subscriptionId: string;
2911
- status: string;
2912
- priceId: string;
2913
- currentPlan: string;
2914
- }>;
2918
+ updateSubscriptionPlan: MutationResponse<SubscriptionStatusData>;
2915
2919
  }>>;
2916
2920
  };
2917
2921
  declare const useCreateCustomerPortal: () => {
package/dist/index.mjs CHANGED
@@ -3532,12 +3532,19 @@ var REDEEMED_REWARD_FIELDS_FRAGMENT = gql`
3532
3532
  `;
3533
3533
  var STRIPE_FIELDS_FRAGMENT = gql`
3534
3534
  fragment StripeSubscriptionFields on StripeSubscriptionType {
3535
+ billingPeriod
3536
+ cancelAtPeriodEnd
3535
3537
  customerId
3536
3538
  subscriptionId
3537
3539
  status
3538
3540
  currentPlan
3539
3541
  startDate
3540
3542
  endDate
3543
+ pendingPlan
3544
+ pendingBillingPeriod
3545
+ pendingChangeEffectiveAt
3546
+ priceId
3547
+ scheduleId
3541
3548
  }
3542
3549
  `;
3543
3550
  var USER_FIELDS_FRAGMENT = gql`
@@ -6955,25 +6962,38 @@ var CREATE_CHECKOUT_SESSION_MUTATION = gql30`
6955
6962
  var CANCEL_SUBSCRIPTION_MUTATION = gql30`
6956
6963
  mutation cancelSubscription {
6957
6964
  cancelSubscription {
6958
- data
6965
+ data {
6966
+ billingPeriod
6967
+ cancelAtPeriodEnd
6968
+ currentPlan
6969
+ endDate
6970
+ pendingBillingPeriod
6971
+ pendingChangeEffectiveAt
6972
+ pendingPlan
6973
+ priceId
6974
+ scheduleId
6975
+ status
6976
+ subscriptionId
6977
+ }
6959
6978
  message
6960
6979
  }
6961
6980
  }
6962
6981
  `;
6963
6982
  var UPDATE_SUBSCRIPTION_PLAN_MUTATION = gql30`
6964
- mutation updateSubscriptionPlan(
6965
- $newPlanId: LicencesEnumType!
6966
- $billingPeriod: BillingPeriodEnumType
6967
- ) {
6968
- updateSubscriptionPlan(
6969
- newPlanId: $newPlanId
6970
- billingPeriod: $billingPeriod
6971
- ) {
6983
+ mutation updateSubscriptionPlan($input: UpdateSubscriptionPlanInputType!) {
6984
+ updateSubscriptionPlan(input: $input) {
6972
6985
  data {
6973
- subscriptionId
6974
- status
6975
- priceId
6986
+ billingPeriod
6987
+ cancelAtPeriodEnd
6976
6988
  currentPlan
6989
+ endDate
6990
+ pendingBillingPeriod
6991
+ pendingChangeEffectiveAt
6992
+ pendingPlan
6993
+ priceId
6994
+ scheduleId
6995
+ status
6996
+ subscriptionId
6977
6997
  }
6978
6998
  message
6979
6999
  }
@@ -7016,10 +7036,17 @@ import { gql as gql31 } from "@apollo/client";
7016
7036
  var GET_SUBSCRIPTION_STATUS = gql31`
7017
7037
  query getSubscriptionStatus {
7018
7038
  getSubscriptionStatus {
7019
- subscriptionId
7020
- status
7021
- priceId
7039
+ billingPeriod
7040
+ cancelAtPeriodEnd
7022
7041
  currentPlan
7042
+ endDate
7043
+ pendingBillingPeriod
7044
+ pendingChangeEffectiveAt
7045
+ pendingPlan
7046
+ priceId
7047
+ scheduleId
7048
+ status
7049
+ subscriptionId
7023
7050
  }
7024
7051
  }
7025
7052
  `;