@carlonicora/nextjs-jsonapi 5.7.2 → 6.0.0

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 (72) hide show
  1. package/dist/{BlockNoteEditor-R3745ALQ.mjs → BlockNoteEditor-FZNU4YQT.mjs} +4 -4
  2. package/dist/{BlockNoteEditor-G45WMJ5V.js → BlockNoteEditor-SAU3G6H7.js} +19 -19
  3. package/dist/{BlockNoteEditor-G45WMJ5V.js.map → BlockNoteEditor-SAU3G6H7.js.map} +1 -1
  4. package/dist/{BlockNoteViewer-TNK3OMH5.mjs → BlockNoteViewer-6XDDVTN6.mjs} +2 -2
  5. package/dist/{BlockNoteViewer-5PGOVURC.js → BlockNoteViewer-7BTV7QQA.js} +3 -3
  6. package/dist/{BlockNoteViewer-5PGOVURC.js.map → BlockNoteViewer-7BTV7QQA.js.map} +1 -1
  7. package/dist/billing/index.js +492 -519
  8. package/dist/billing/index.js.map +1 -1
  9. package/dist/billing/index.mjs +5 -32
  10. package/dist/billing/index.mjs.map +1 -1
  11. package/dist/{chunk-CP7BXAFH.js → chunk-F4JB7YAP.js} +8 -8
  12. package/dist/{chunk-CP7BXAFH.js.map → chunk-F4JB7YAP.js.map} +1 -1
  13. package/dist/{chunk-KOA5PZZA.mjs → chunk-GFGKMUPZ.mjs} +2 -2
  14. package/dist/{chunk-EXG4ANC7.js → chunk-IPYXT7MH.js} +868 -868
  15. package/dist/{chunk-EXG4ANC7.js.map → chunk-IPYXT7MH.js.map} +1 -1
  16. package/dist/{chunk-RJMLAW5O.mjs → chunk-JVJS5RHB.mjs} +2 -2
  17. package/dist/{chunk-WU47MIZZ.js → chunk-MTI2UXDA.js} +4 -4
  18. package/dist/{chunk-WU47MIZZ.js.map → chunk-MTI2UXDA.js.map} +1 -1
  19. package/dist/{chunk-6KAYEYFU.mjs → chunk-RYZYKG6W.mjs} +2 -2
  20. package/dist/{chunk-3CSPHMVK.js → chunk-T3YQ47EF.js} +2 -32
  21. package/dist/chunk-T3YQ47EF.js.map +1 -0
  22. package/dist/{chunk-YG4YFAYY.js → chunk-TPZS46IM.js} +3 -3
  23. package/dist/{chunk-YG4YFAYY.js.map → chunk-TPZS46IM.js.map} +1 -1
  24. package/dist/{chunk-JCNB5KTQ.mjs → chunk-U7DR5VDT.mjs} +5 -5
  25. package/dist/{chunk-CJS5WA4E.mjs → chunk-USYZNWKS.mjs} +2 -32
  26. package/dist/chunk-USYZNWKS.mjs.map +1 -0
  27. package/dist/client/index.js +4 -4
  28. package/dist/client/index.mjs +3 -3
  29. package/dist/components/index.js +4 -4
  30. package/dist/components/index.mjs +3 -3
  31. package/dist/contexts/index.js +4 -4
  32. package/dist/contexts/index.mjs +3 -3
  33. package/dist/core/index.d.mts +0 -12
  34. package/dist/core/index.d.ts +0 -12
  35. package/dist/core/index.js +2 -2
  36. package/dist/core/index.mjs +1 -1
  37. package/dist/email-automations/index.js +92 -92
  38. package/dist/email-automations/index.mjs +3 -3
  39. package/dist/features/analytics/index.js +121 -121
  40. package/dist/features/analytics/index.mjs +4 -4
  41. package/dist/features/analytics/server.js +4 -4
  42. package/dist/features/analytics/server.mjs +2 -2
  43. package/dist/features/blog/index.js +150 -150
  44. package/dist/features/blog/index.mjs +3 -3
  45. package/dist/features/blog/server.js +16 -16
  46. package/dist/features/blog/server.mjs +1 -1
  47. package/dist/features/help/index.js +37 -37
  48. package/dist/features/help/index.mjs +3 -3
  49. package/dist/features/tokenusage/index.js +124 -124
  50. package/dist/features/tokenusage/index.mjs +4 -4
  51. package/dist/index.js +3 -3
  52. package/dist/index.mjs +2 -2
  53. package/dist/server/index.js +3 -3
  54. package/dist/server/index.mjs +2 -2
  55. package/messages/en.json +2 -3
  56. package/messages/it.json +2 -3
  57. package/package.json +1 -1
  58. package/src/features/__tests__/i18n-keys.contract.spec.ts +4 -0
  59. package/src/features/billing/components/cards/SubscriptionSummaryCard.tsx +22 -14
  60. package/src/features/billing/i18n-keys.ts +1 -2
  61. package/src/features/billing/stripe-subscription/components/details/SubscriptionDetails.tsx +1 -40
  62. package/src/features/billing/stripe-subscription/data/__tests__/stripe-subscription.spec.ts +59 -0
  63. package/src/features/billing/stripe-subscription/data/stripe-subscription.service.ts +0 -34
  64. package/src/features/billing/stripe-subscription/data/stripe-subscription.ts +1 -1
  65. package/dist/chunk-3CSPHMVK.js.map +0 -1
  66. package/dist/chunk-CJS5WA4E.mjs.map +0 -1
  67. /package/dist/{BlockNoteEditor-R3745ALQ.mjs.map → BlockNoteEditor-FZNU4YQT.mjs.map} +0 -0
  68. /package/dist/{BlockNoteViewer-TNK3OMH5.mjs.map → BlockNoteViewer-6XDDVTN6.mjs.map} +0 -0
  69. /package/dist/{chunk-KOA5PZZA.mjs.map → chunk-GFGKMUPZ.mjs.map} +0 -0
  70. /package/dist/{chunk-RJMLAW5O.mjs.map → chunk-JVJS5RHB.mjs.map} +0 -0
  71. /package/dist/{chunk-6KAYEYFU.mjs.map → chunk-RYZYKG6W.mjs.map} +0 -0
  72. /package/dist/{chunk-JCNB5KTQ.mjs.map → chunk-U7DR5VDT.mjs.map} +0 -0
@@ -9,7 +9,7 @@ import {
9
9
  percentageDelta,
10
10
  seriesColor,
11
11
  useUsageFormatters
12
- } from "../../chunk-6KAYEYFU.mjs";
12
+ } from "../../chunk-RYZYKG6W.mjs";
13
13
  import {
14
14
  Button,
15
15
  Card,
@@ -37,8 +37,8 @@ import {
37
37
  TableHeader,
38
38
  TableRow,
39
39
  usePageUrlGenerator
40
- } from "../../chunk-JCNB5KTQ.mjs";
41
- import "../../chunk-RJMLAW5O.mjs";
40
+ } from "../../chunk-U7DR5VDT.mjs";
41
+ import "../../chunk-JVJS5RHB.mjs";
42
42
  import "../../chunk-PW42LRSL.mjs";
43
43
  import {
44
44
  AbstractService,
@@ -57,7 +57,7 @@ import {
57
57
  configureTokenUsage,
58
58
  getTokenUsageCurrency,
59
59
  tokenUsageModules
60
- } from "../../chunk-CJS5WA4E.mjs";
60
+ } from "../../chunk-USYZNWKS.mjs";
61
61
  import "../../chunk-V5MI7RNB.mjs";
62
62
  import "../../chunk-AUXK7QSA.mjs";
63
63
  import "../../chunk-PI56A4DG.mjs";
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@
19
19
 
20
20
 
21
21
 
22
- var _chunkCP7BXAFHjs = require('./chunk-CP7BXAFH.js');
22
+ var _chunkF4JB7YAPjs = require('./chunk-F4JB7YAP.js');
23
23
 
24
24
 
25
25
 
@@ -306,7 +306,7 @@ var _chunkG4JR3SFVjs = require('./chunk-G4JR3SFV.js');
306
306
 
307
307
 
308
308
 
309
- var _chunk3CSPHMVKjs = require('./chunk-3CSPHMVK.js');
309
+ var _chunkT3YQ47EFjs = require('./chunk-T3YQ47EF.js');
310
310
 
311
311
 
312
312
 
@@ -637,5 +637,5 @@ require('./chunk-7QVYU63E.js');
637
637
 
638
638
 
639
639
 
640
- exports.ACTION_TYPES = _chunkCP7BXAFHjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunk3CSPHMVKjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunk3CSPHMVKjs.AbstractApiData; exports.AbstractService = _chunk3CSPHMVKjs.AbstractService; exports.Action = _chunk3CSPHMVKjs.Action; exports.AiConnection = _chunk3CSPHMVKjs.AiConnection; exports.AiConnectionFields = _chunk3CSPHMVKjs.AiConnectionFields; exports.AiConnectionModule = _chunk3CSPHMVKjs.AiConnectionModule; exports.AiConnectionService = _chunk3CSPHMVKjs.AiConnectionService; exports.Assistant = _chunk3CSPHMVKjs.Assistant; exports.AssistantAction = _chunk3CSPHMVKjs.AssistantAction; exports.AssistantActionModule = _chunk3CSPHMVKjs.AssistantActionModule; exports.AssistantActionService = _chunk3CSPHMVKjs.AssistantActionService; exports.AssistantMessage = _chunk3CSPHMVKjs.AssistantMessage; exports.AssistantMessageModule = _chunk3CSPHMVKjs.AssistantMessageModule; exports.AssistantMessageService = _chunk3CSPHMVKjs.AssistantMessageService; exports.AssistantModule = _chunk3CSPHMVKjs.AssistantModule; exports.AssistantService = _chunk3CSPHMVKjs.AssistantService; exports.AuditLog = _chunk3CSPHMVKjs.AuditLog; exports.AuditLogModule = _chunk3CSPHMVKjs.AuditLogModule; exports.AuditLogService = _chunk3CSPHMVKjs.AuditLogService; exports.Auth = _chunk3CSPHMVKjs.Auth; exports.AuthComponent = _chunk3CSPHMVKjs.AuthComponent; exports.AuthModule = _chunk3CSPHMVKjs.AuthModule; exports.AuthService = _chunk3CSPHMVKjs.AuthService; exports.AuthorModule = _chunk3CSPHMVKjs.AuthorModule; exports.BackupCodeVerify = _chunk3CSPHMVKjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunk3CSPHMVKjs.BackupCodeVerifyModule; exports.Billing = _chunk3CSPHMVKjs.Billing; exports.BillingModule = _chunk3CSPHMVKjs.BillingModule; exports.BillingService = _chunk3CSPHMVKjs.BillingService; exports.BlockNoteDiffUtil = _chunk3CSPHMVKjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunk3CSPHMVKjs.BlockNoteWordDiffRendererUtil; exports.BlogCategory = _chunk3CSPHMVKjs.BlogCategory; exports.BlogCategoryFields = _chunk3CSPHMVKjs.BlogCategoryFields; exports.BlogCategoryModule = _chunk3CSPHMVKjs.BlogCategoryModule; exports.BlogCategoryService = _chunk3CSPHMVKjs.BlogCategoryService; exports.BlogCategoryTranslation = _chunk3CSPHMVKjs.BlogCategoryTranslation; exports.BlogCategoryTranslationModule = _chunk3CSPHMVKjs.BlogCategoryTranslationModule; exports.BlogCategoryTranslationService = _chunk3CSPHMVKjs.BlogCategoryTranslationService; exports.BlogPost = _chunk3CSPHMVKjs.BlogPost; exports.BlogPostFields = _chunk3CSPHMVKjs.BlogPostFields; exports.BlogPostModule = _chunk3CSPHMVKjs.BlogPostModule; exports.BlogPostService = _chunk3CSPHMVKjs.BlogPostService; exports.BlogPostTranslation = _chunk3CSPHMVKjs.BlogPostTranslation; exports.BlogPostTranslationModule = _chunk3CSPHMVKjs.BlogPostTranslationModule; exports.BlogPostTranslationService = _chunk3CSPHMVKjs.BlogPostTranslationService; exports.BlogSettings = _chunk3CSPHMVKjs.BlogSettings; exports.BlogSettingsModule = _chunk3CSPHMVKjs.BlogSettingsModule; exports.BlogSettingsService = _chunk3CSPHMVKjs.BlogSettingsService; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkCP7BXAFHjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.CURRENT_USER_STORAGE_KEY = _chunk3CSPHMVKjs.CURRENT_USER_STORAGE_KEY; exports.Chunk = _chunk3CSPHMVKjs.Chunk; exports.ChunkModule = _chunk3CSPHMVKjs.ChunkModule; exports.ClientAbstractService = _chunk3CSPHMVKjs.ClientAbstractService; exports.ClientHttpMethod = _chunk3CSPHMVKjs.ClientHttpMethod; exports.Company = _chunk3CSPHMVKjs.Company; exports.CompanyFields = _chunk3CSPHMVKjs.CompanyFields; exports.CompanyModule = _chunk3CSPHMVKjs.CompanyModule; exports.CompanyService = _chunk3CSPHMVKjs.CompanyService; exports.Content = _chunk3CSPHMVKjs.Content; exports.ContentFields = _chunk3CSPHMVKjs.ContentFields; exports.ContentModule = _chunk3CSPHMVKjs.ContentModule; exports.ContentService = _chunk3CSPHMVKjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunk3CSPHMVKjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkGHE4VT2Rjs.DataClassRegistry; exports.DataClassRegistry = _chunkGHE4VT2Rjs.DataClassRegistry; exports.EMAIL_AUTOMATION_UNSUBSCRIBE_TYPE = _chunk3CSPHMVKjs.EMAIL_AUTOMATION_UNSUBSCRIBE_TYPE; exports.ENV = _chunkGHE4VT2Rjs.ENV; exports.EmailAutomation = _chunk3CSPHMVKjs.EmailAutomation; exports.EmailAutomationEnrollment = _chunk3CSPHMVKjs.EmailAutomationEnrollment; exports.EmailAutomationEnrollmentFields = _chunk3CSPHMVKjs.EmailAutomationEnrollmentFields; exports.EmailAutomationEnrollmentModule = _chunk3CSPHMVKjs.EmailAutomationEnrollmentModule; exports.EmailAutomationEnrollmentService = _chunk3CSPHMVKjs.EmailAutomationEnrollmentService; exports.EmailAutomationFields = _chunk3CSPHMVKjs.EmailAutomationFields; exports.EmailAutomationModule = _chunk3CSPHMVKjs.EmailAutomationModule; exports.EmailAutomationService = _chunk3CSPHMVKjs.EmailAutomationService; exports.EmailAutomationStep = _chunk3CSPHMVKjs.EmailAutomationStep; exports.EmailAutomationStepModule = _chunk3CSPHMVKjs.EmailAutomationStepModule; exports.EmailAutomationStepService = _chunk3CSPHMVKjs.EmailAutomationStepService; exports.EmailAutomationTrigger = _chunk3CSPHMVKjs.EmailAutomationTrigger; exports.EmailAutomationTriggerModule = _chunk3CSPHMVKjs.EmailAutomationTriggerModule; exports.EndpointCreator = _chunk3CSPHMVKjs.EndpointCreator; exports.EntityAiStatus = _chunk3CSPHMVKjs.EntityAiStatus; exports.Feature = _chunk3CSPHMVKjs.Feature; exports.FeatureModule = _chunk3CSPHMVKjs.FeatureModule; exports.FeatureService = _chunk3CSPHMVKjs.FeatureService; exports.HandbookPage = _chunk3CSPHMVKjs.HandbookPage; exports.HandbookPageFields = _chunk3CSPHMVKjs.HandbookPageFields; exports.HandbookPageModule = _chunk3CSPHMVKjs.HandbookPageModule; exports.HandbookPageService = _chunk3CSPHMVKjs.HandbookPageService; exports.HandbookSection = _chunk3CSPHMVKjs.HandbookSection; exports.HandbookSectionModule = _chunk3CSPHMVKjs.HandbookSectionModule; exports.HandbookSectionService = _chunk3CSPHMVKjs.HandbookSectionService; exports.HandbookThread = _chunk3CSPHMVKjs.HandbookThread; exports.HandbookThreadMessage = _chunk3CSPHMVKjs.HandbookThreadMessage; exports.HandbookThreadMessageModule = _chunk3CSPHMVKjs.HandbookThreadMessageModule; exports.HandbookThreadMessageService = _chunk3CSPHMVKjs.HandbookThreadMessageService; exports.HandbookThreadModule = _chunk3CSPHMVKjs.HandbookThreadModule; exports.HandbookThreadService = _chunk3CSPHMVKjs.HandbookThreadService; exports.HowTo = _chunk3CSPHMVKjs.HowTo; exports.HowToFields = _chunk3CSPHMVKjs.HowToFields; exports.HowToModule = _chunk3CSPHMVKjs.HowToModule; exports.HowToService = _chunk3CSPHMVKjs.HowToService; exports.HttpMethod = _chunk3CSPHMVKjs.HttpMethod; exports.InvoiceStatus = _chunk3CSPHMVKjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkGHE4VT2Rjs.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunk3CSPHMVKjs.MOBILE_BREAKPOINT; exports.Module = _chunk3CSPHMVKjs.Module; exports.ModuleModule = _chunk3CSPHMVKjs.ModuleModule; exports.ModulePaths = _chunk3CSPHMVKjs.ModulePaths; exports.ModulePathsModule = _chunk3CSPHMVKjs.ModulePathsModule; exports.ModuleRegistrar = _chunk3CSPHMVKjs.ModuleRegistrar; exports.ModuleRegistry = _chunk3CSPHMVKjs.ModuleRegistry; exports.Modules = _chunk3CSPHMVKjs.Modules; exports.Notification = _chunk3CSPHMVKjs.Notification; exports.NotificationFields = _chunk3CSPHMVKjs.NotificationFields; exports.NotificationModule = _chunk3CSPHMVKjs.NotificationModule; exports.NotificationService = _chunk3CSPHMVKjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunk3CSPHMVKjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunk3CSPHMVKjs.OAuthClient; exports.OAuthModule = _chunk3CSPHMVKjs.OAuthModule; exports.OAuthService = _chunk3CSPHMVKjs.OAuthService; exports.Passkey = _chunk3CSPHMVKjs.Passkey; exports.PasskeyAuthenticationOptions = _chunk3CSPHMVKjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunk3CSPHMVKjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunk3CSPHMVKjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunk3CSPHMVKjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunk3CSPHMVKjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunk3CSPHMVKjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunk3CSPHMVKjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunk3CSPHMVKjs.PasskeyRename; exports.PasskeyRenameModule = _chunk3CSPHMVKjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunk3CSPHMVKjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunk3CSPHMVKjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunk3CSPHMVKjs.PaymentMethod; exports.PermissionMapping = _chunk3CSPHMVKjs.PermissionMapping; exports.PermissionMappingModule = _chunk3CSPHMVKjs.PermissionMappingModule; exports.Push = _chunk3CSPHMVKjs.Push; exports.PushModule = _chunk3CSPHMVKjs.PushModule; exports.PushService = _chunk3CSPHMVKjs.PushService; exports.RbacMatrixModel = _chunk3CSPHMVKjs.RbacMatrixModel; exports.RbacMatrixModule = _chunk3CSPHMVKjs.RbacMatrixModule; exports.RbacService = _chunkCP7BXAFHjs.RbacService; exports.ReferralModule = _chunk3CSPHMVKjs.ReferralModule; exports.ReferralService = _chunk3CSPHMVKjs.ReferralService; exports.ReferralStats = _chunk3CSPHMVKjs.ReferralStats; exports.ReferralStatsModule = _chunk3CSPHMVKjs.ReferralStatsModule; exports.RehydrationFactory = _chunk3CSPHMVKjs.RehydrationFactory; exports.Role = _chunk3CSPHMVKjs.Role; exports.RoleFields = _chunk3CSPHMVKjs.RoleFields; exports.RoleModule = _chunk3CSPHMVKjs.RoleModule; exports.RoleService = _chunk3CSPHMVKjs.RoleService; exports.S3 = _chunk3CSPHMVKjs.S3; exports.S3Module = _chunk3CSPHMVKjs.S3Module; exports.S3Service = _chunk3CSPHMVKjs.S3Service; exports.SIGNUP_SOURCE_COOKIE = _chunkCP7BXAFHjs.SIGNUP_SOURCE_COOKIE; exports.SIGNUP_SOURCE_COOKIE_MAX_AGE = _chunkCP7BXAFHjs.SIGNUP_SOURCE_COOKIE_MAX_AGE; exports.STRIPE_COUPON_CODE_AUTOMATIC_SEGMENT = _chunk3CSPHMVKjs.STRIPE_COUPON_CODE_AUTOMATIC_SEGMENT; exports.STRIPE_COUPON_DETAIL_PAGE_URL = _chunk3CSPHMVKjs.STRIPE_COUPON_DETAIL_PAGE_URL; exports.STRIPE_COUPON_REFRESH_SEGMENT = _chunk3CSPHMVKjs.STRIPE_COUPON_REFRESH_SEGMENT; exports.StripeCoupon = _chunk3CSPHMVKjs.StripeCoupon; exports.StripeCouponCode = _chunk3CSPHMVKjs.StripeCouponCode; exports.StripeCouponCodeFields = _chunk3CSPHMVKjs.StripeCouponCodeFields; exports.StripeCouponCodeModule = _chunk3CSPHMVKjs.StripeCouponCodeModule; exports.StripeCouponCodeService = _chunk3CSPHMVKjs.StripeCouponCodeService; exports.StripeCouponFields = _chunk3CSPHMVKjs.StripeCouponFields; exports.StripeCouponModule = _chunk3CSPHMVKjs.StripeCouponModule; exports.StripeCouponOffer = _chunk3CSPHMVKjs.StripeCouponOffer; exports.StripeCouponOfferModule = _chunk3CSPHMVKjs.StripeCouponOfferModule; exports.StripeCouponService = _chunk3CSPHMVKjs.StripeCouponService; exports.StripeCustomer = _chunk3CSPHMVKjs.StripeCustomer; exports.StripeCustomerModule = _chunk3CSPHMVKjs.StripeCustomerModule; exports.StripeCustomerService = _chunk3CSPHMVKjs.StripeCustomerService; exports.StripeInvoice = _chunk3CSPHMVKjs.StripeInvoice; exports.StripeInvoiceModule = _chunk3CSPHMVKjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunk3CSPHMVKjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunk3CSPHMVKjs.StripePaymentMethodModule; exports.StripePrice = _chunk3CSPHMVKjs.StripePrice; exports.StripePriceFields = _chunk3CSPHMVKjs.StripePriceFields; exports.StripePriceModule = _chunk3CSPHMVKjs.StripePriceModule; exports.StripePriceService = _chunk3CSPHMVKjs.StripePriceService; exports.StripeProduct = _chunk3CSPHMVKjs.StripeProduct; exports.StripeProductFields = _chunk3CSPHMVKjs.StripeProductFields; exports.StripeProductModule = _chunk3CSPHMVKjs.StripeProductModule; exports.StripeProductService = _chunk3CSPHMVKjs.StripeProductService; exports.StripePromotionCode = _chunk3CSPHMVKjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunk3CSPHMVKjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunk3CSPHMVKjs.StripePromotionCodeService; exports.StripeSubscription = _chunk3CSPHMVKjs.StripeSubscription; exports.StripeSubscriptionModule = _chunk3CSPHMVKjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunk3CSPHMVKjs.StripeSubscriptionService; exports.StripeUsage = _chunk3CSPHMVKjs.StripeUsage; exports.StripeUsageModule = _chunk3CSPHMVKjs.StripeUsageModule; exports.StripeUsageService = _chunk3CSPHMVKjs.StripeUsageService; exports.SubscriptionStatus = _chunk3CSPHMVKjs.SubscriptionStatus; exports.TableOptions = _chunk3CSPHMVKjs.TableOptions; exports.TokenUsageAdminBreakdownModule = _chunk3CSPHMVKjs.TokenUsageAdminBreakdownModule; exports.TokenUsageAdminSummaryModule = _chunk3CSPHMVKjs.TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = _chunk3CSPHMVKjs.TokenUsageAdminTimelineModule; exports.TotpAuthenticator = _chunk3CSPHMVKjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunk3CSPHMVKjs.TotpAuthenticatorModule; exports.TotpSetup = _chunk3CSPHMVKjs.TotpSetup; exports.TotpSetupModule = _chunk3CSPHMVKjs.TotpSetupModule; exports.TotpVerify = _chunk3CSPHMVKjs.TotpVerify; exports.TotpVerifyLogin = _chunk3CSPHMVKjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunk3CSPHMVKjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunk3CSPHMVKjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunk3CSPHMVKjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunk3CSPHMVKjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunk3CSPHMVKjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunk3CSPHMVKjs.TwoFactorEnableModule; exports.TwoFactorService = _chunk3CSPHMVKjs.TwoFactorService; exports.TwoFactorStatus = _chunk3CSPHMVKjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunk3CSPHMVKjs.TwoFactorStatusModule; exports.User = _chunk3CSPHMVKjs.User; exports.UserFields = _chunk3CSPHMVKjs.UserFields; exports.UserModule = _chunk3CSPHMVKjs.UserModule; exports.UserService = _chunk3CSPHMVKjs.UserService; exports.VIEWPORT_COOKIE_NAME = _chunk3CSPHMVKjs.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunk3CSPHMVKjs.Waitlist; exports.WaitlistFields = _chunk3CSPHMVKjs.WaitlistFields; exports.WaitlistModule = _chunk3CSPHMVKjs.WaitlistModule; exports.WaitlistService = _chunk3CSPHMVKjs.WaitlistService; exports.WaitlistStats = _chunk3CSPHMVKjs.WaitlistStats; exports.WaitlistStatsModule = _chunk3CSPHMVKjs.WaitlistStatsModule; exports.analyticsModules = _chunk3CSPHMVKjs.analyticsModules; exports.captureSignupSource = _chunkCP7BXAFHjs.captureSignupSource; exports.checkPermissions = _chunk3CSPHMVKjs.checkPermissions; exports.checkPermissionsFromServer = _chunk3CSPHMVKjs.checkPermissionsFromServer; exports.clearLastApiMeta = _chunk3CSPHMVKjs.clearLastApiMeta; exports.clearLastApiTotal = _chunk3CSPHMVKjs.clearLastApiTotal; exports.cn = _chunk3CSPHMVKjs.cn; exports.composeRefs = _chunk3CSPHMVKjs.composeRefs; exports.configureAuth = _chunk3CSPHMVKjs.configureAuth; exports.configureI18n = _chunk3CSPHMVKjs.configureI18n; exports.configureJsonApi = _chunkCP7BXAFHjs.configureJsonApi; exports.configureLogin = _chunkCP7BXAFHjs.configureLogin; exports.configureReferral = _chunkCP7BXAFHjs.configureReferral; exports.configureRoles = _chunkG4JR3SFVjs.configureRoles; exports.configureTokenUsage = _chunk3CSPHMVKjs.configureTokenUsage; exports.configureWaitlist = _chunkCP7BXAFHjs.configureWaitlist; exports.couponPlacesLeft = _chunk3CSPHMVKjs.couponPlacesLeft; exports.couponPlacesTotal = _chunk3CSPHMVKjs.couponPlacesTotal; exports.createJsonApiInclusion = _chunk3CSPHMVKjs.createJsonApiInclusion; exports.dateFormatLocale = _chunk3CSPHMVKjs.dateFormatLocale; exports.dismissToast = _chunk3CSPHMVKjs.dismissToast; exports.entityObjectSchema = _chunk3CSPHMVKjs.entityObjectSchema; exports.exists = _chunk3CSPHMVKjs.exists; exports.formatCodiceFiscale = _chunk3CSPHMVKjs.formatCodiceFiscale; exports.formatCouponDiscount = _chunk3CSPHMVKjs.formatCouponDiscount; exports.formatCurrency = _chunk3CSPHMVKjs.formatCurrency; exports.formatDate = _chunk3CSPHMVKjs.formatDate; exports.formatFixed = _chunk3CSPHMVKjs.formatFixed; exports.formatInterval = _chunk3CSPHMVKjs.formatInterval; exports.formatLocalDate = _chunk3CSPHMVKjs.formatLocalDate; exports.formatPartitaIva = _chunk3CSPHMVKjs.formatPartitaIva; exports.getApiUrl = _chunkCP7BXAFHjs.getApiUrl; exports.getAppUrl = _chunkCP7BXAFHjs.getAppUrl; exports.getBootstrapper = _chunkGHE4VT2Rjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunk3CSPHMVKjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunk3CSPHMVKjs.getGlobalErrorHandler; exports.getIcon = _chunk3CSPHMVKjs.getIcon; exports.getIconByModule = _chunk3CSPHMVKjs.getIconByModule; exports.getIconByModuleName = _chunk3CSPHMVKjs.getIconByModuleName; exports.getInitials = _chunk3CSPHMVKjs.getInitials; exports.getLastApiMeta = _chunk3CSPHMVKjs.getLastApiMeta; exports.getLastApiTotal = _chunk3CSPHMVKjs.getLastApiTotal; exports.getLucideIcon = _chunk3CSPHMVKjs.getLucideIcon; exports.getLucideIconByModule = _chunk3CSPHMVKjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunk3CSPHMVKjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunkCP7BXAFHjs.getPublicApiUrl; exports.getReferralConfig = _chunkCP7BXAFHjs.getReferralConfig; exports.getRoleId = _chunkG4JR3SFVjs.getRoleId; exports.getSignupSource = _chunkCP7BXAFHjs.getSignupSource; exports.getStripePublishableKey = _chunkCP7BXAFHjs.getStripePublishableKey; exports.getTableComponents = _chunk3CSPHMVKjs.getTableComponents; exports.getTableOptions = _chunk3CSPHMVKjs.getTableOptions; exports.getTokenHandler = _chunk3CSPHMVKjs.getTokenHandler; exports.getTokenUsageCurrency = _chunk3CSPHMVKjs.getTokenUsageCurrency; exports.getTrackablePages = _chunkCP7BXAFHjs.getTrackablePages; exports.getValueFromPath = _chunk3CSPHMVKjs.getValueFromPath; exports.getWaitlistConfig = _chunkCP7BXAFHjs.getWaitlistConfig; exports.handbookPageContent = _chunk3CSPHMVKjs.handbookPageContent; exports.handbookPageSummary = _chunk3CSPHMVKjs.handbookPageSummary; exports.handbookPageTitle = _chunk3CSPHMVKjs.handbookPageTitle; exports.handbookSectionSummary = _chunk3CSPHMVKjs.handbookSectionSummary; exports.handbookSectionTitle = _chunk3CSPHMVKjs.handbookSectionTitle; exports.hasBootstrapper = _chunkGHE4VT2Rjs.hasBootstrapper; exports.isReferralEnabled = _chunkCP7BXAFHjs.isReferralEnabled; exports.isRemoteImageSrc = _chunk3CSPHMVKjs.isRemoteImageSrc; exports.isRolesConfigured = _chunkG4JR3SFVjs.isRolesConfigured; exports.mergeMessages = _chunk3CSPHMVKjs.mergeMessages; exports.readSignupSourceFromLocation = _chunkCP7BXAFHjs.readSignupSourceFromLocation; exports.rehydrate = _chunk3CSPHMVKjs.rehydrate; exports.rehydrateList = _chunk3CSPHMVKjs.rehydrateList; exports.resetBootstrapStore = _chunkGHE4VT2Rjs.resetBootstrapStore; exports.setBootstrapper = _chunkGHE4VT2Rjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunk3CSPHMVKjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunk3CSPHMVKjs.setGlobalErrorHandler; exports.showCustomToast = _chunk3CSPHMVKjs.showCustomToast; exports.showError = _chunk3CSPHMVKjs.showError; exports.showToast = _chunk3CSPHMVKjs.showToast; exports.toPromotionCodeResult = _chunk3CSPHMVKjs.toPromotionCodeResult; exports.tokenUsageModules = _chunk3CSPHMVKjs.tokenUsageModules; exports.translateData = _chunkGHE4VT2Rjs.translateData; exports.translateResponse = _chunkGHE4VT2Rjs.translateResponse; exports.tryBootstrap = _chunkGHE4VT2Rjs.tryBootstrap; exports.useComposedRefs = _chunk3CSPHMVKjs.useComposedRefs; exports.useIsMobile = _chunk3CSPHMVKjs.useIsMobile; exports.userObjectSchema = _chunk3CSPHMVKjs.userObjectSchema; exports.validateCodiceFiscale = _chunk3CSPHMVKjs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunk3CSPHMVKjs.validateItalianTaxCode; exports.validatePartitaIva = _chunk3CSPHMVKjs.validatePartitaIva;
640
+ exports.ACTION_TYPES = _chunkF4JB7YAPjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkT3YQ47EFjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkT3YQ47EFjs.AbstractApiData; exports.AbstractService = _chunkT3YQ47EFjs.AbstractService; exports.Action = _chunkT3YQ47EFjs.Action; exports.AiConnection = _chunkT3YQ47EFjs.AiConnection; exports.AiConnectionFields = _chunkT3YQ47EFjs.AiConnectionFields; exports.AiConnectionModule = _chunkT3YQ47EFjs.AiConnectionModule; exports.AiConnectionService = _chunkT3YQ47EFjs.AiConnectionService; exports.Assistant = _chunkT3YQ47EFjs.Assistant; exports.AssistantAction = _chunkT3YQ47EFjs.AssistantAction; exports.AssistantActionModule = _chunkT3YQ47EFjs.AssistantActionModule; exports.AssistantActionService = _chunkT3YQ47EFjs.AssistantActionService; exports.AssistantMessage = _chunkT3YQ47EFjs.AssistantMessage; exports.AssistantMessageModule = _chunkT3YQ47EFjs.AssistantMessageModule; exports.AssistantMessageService = _chunkT3YQ47EFjs.AssistantMessageService; exports.AssistantModule = _chunkT3YQ47EFjs.AssistantModule; exports.AssistantService = _chunkT3YQ47EFjs.AssistantService; exports.AuditLog = _chunkT3YQ47EFjs.AuditLog; exports.AuditLogModule = _chunkT3YQ47EFjs.AuditLogModule; exports.AuditLogService = _chunkT3YQ47EFjs.AuditLogService; exports.Auth = _chunkT3YQ47EFjs.Auth; exports.AuthComponent = _chunkT3YQ47EFjs.AuthComponent; exports.AuthModule = _chunkT3YQ47EFjs.AuthModule; exports.AuthService = _chunkT3YQ47EFjs.AuthService; exports.AuthorModule = _chunkT3YQ47EFjs.AuthorModule; exports.BackupCodeVerify = _chunkT3YQ47EFjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkT3YQ47EFjs.BackupCodeVerifyModule; exports.Billing = _chunkT3YQ47EFjs.Billing; exports.BillingModule = _chunkT3YQ47EFjs.BillingModule; exports.BillingService = _chunkT3YQ47EFjs.BillingService; exports.BlockNoteDiffUtil = _chunkT3YQ47EFjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkT3YQ47EFjs.BlockNoteWordDiffRendererUtil; exports.BlogCategory = _chunkT3YQ47EFjs.BlogCategory; exports.BlogCategoryFields = _chunkT3YQ47EFjs.BlogCategoryFields; exports.BlogCategoryModule = _chunkT3YQ47EFjs.BlogCategoryModule; exports.BlogCategoryService = _chunkT3YQ47EFjs.BlogCategoryService; exports.BlogCategoryTranslation = _chunkT3YQ47EFjs.BlogCategoryTranslation; exports.BlogCategoryTranslationModule = _chunkT3YQ47EFjs.BlogCategoryTranslationModule; exports.BlogCategoryTranslationService = _chunkT3YQ47EFjs.BlogCategoryTranslationService; exports.BlogPost = _chunkT3YQ47EFjs.BlogPost; exports.BlogPostFields = _chunkT3YQ47EFjs.BlogPostFields; exports.BlogPostModule = _chunkT3YQ47EFjs.BlogPostModule; exports.BlogPostService = _chunkT3YQ47EFjs.BlogPostService; exports.BlogPostTranslation = _chunkT3YQ47EFjs.BlogPostTranslation; exports.BlogPostTranslationModule = _chunkT3YQ47EFjs.BlogPostTranslationModule; exports.BlogPostTranslationService = _chunkT3YQ47EFjs.BlogPostTranslationService; exports.BlogSettings = _chunkT3YQ47EFjs.BlogSettings; exports.BlogSettingsModule = _chunkT3YQ47EFjs.BlogSettingsModule; exports.BlogSettingsService = _chunkT3YQ47EFjs.BlogSettingsService; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkF4JB7YAPjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.CURRENT_USER_STORAGE_KEY = _chunkT3YQ47EFjs.CURRENT_USER_STORAGE_KEY; exports.Chunk = _chunkT3YQ47EFjs.Chunk; exports.ChunkModule = _chunkT3YQ47EFjs.ChunkModule; exports.ClientAbstractService = _chunkT3YQ47EFjs.ClientAbstractService; exports.ClientHttpMethod = _chunkT3YQ47EFjs.ClientHttpMethod; exports.Company = _chunkT3YQ47EFjs.Company; exports.CompanyFields = _chunkT3YQ47EFjs.CompanyFields; exports.CompanyModule = _chunkT3YQ47EFjs.CompanyModule; exports.CompanyService = _chunkT3YQ47EFjs.CompanyService; exports.Content = _chunkT3YQ47EFjs.Content; exports.ContentFields = _chunkT3YQ47EFjs.ContentFields; exports.ContentModule = _chunkT3YQ47EFjs.ContentModule; exports.ContentService = _chunkT3YQ47EFjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkT3YQ47EFjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkGHE4VT2Rjs.DataClassRegistry; exports.DataClassRegistry = _chunkGHE4VT2Rjs.DataClassRegistry; exports.EMAIL_AUTOMATION_UNSUBSCRIBE_TYPE = _chunkT3YQ47EFjs.EMAIL_AUTOMATION_UNSUBSCRIBE_TYPE; exports.ENV = _chunkGHE4VT2Rjs.ENV; exports.EmailAutomation = _chunkT3YQ47EFjs.EmailAutomation; exports.EmailAutomationEnrollment = _chunkT3YQ47EFjs.EmailAutomationEnrollment; exports.EmailAutomationEnrollmentFields = _chunkT3YQ47EFjs.EmailAutomationEnrollmentFields; exports.EmailAutomationEnrollmentModule = _chunkT3YQ47EFjs.EmailAutomationEnrollmentModule; exports.EmailAutomationEnrollmentService = _chunkT3YQ47EFjs.EmailAutomationEnrollmentService; exports.EmailAutomationFields = _chunkT3YQ47EFjs.EmailAutomationFields; exports.EmailAutomationModule = _chunkT3YQ47EFjs.EmailAutomationModule; exports.EmailAutomationService = _chunkT3YQ47EFjs.EmailAutomationService; exports.EmailAutomationStep = _chunkT3YQ47EFjs.EmailAutomationStep; exports.EmailAutomationStepModule = _chunkT3YQ47EFjs.EmailAutomationStepModule; exports.EmailAutomationStepService = _chunkT3YQ47EFjs.EmailAutomationStepService; exports.EmailAutomationTrigger = _chunkT3YQ47EFjs.EmailAutomationTrigger; exports.EmailAutomationTriggerModule = _chunkT3YQ47EFjs.EmailAutomationTriggerModule; exports.EndpointCreator = _chunkT3YQ47EFjs.EndpointCreator; exports.EntityAiStatus = _chunkT3YQ47EFjs.EntityAiStatus; exports.Feature = _chunkT3YQ47EFjs.Feature; exports.FeatureModule = _chunkT3YQ47EFjs.FeatureModule; exports.FeatureService = _chunkT3YQ47EFjs.FeatureService; exports.HandbookPage = _chunkT3YQ47EFjs.HandbookPage; exports.HandbookPageFields = _chunkT3YQ47EFjs.HandbookPageFields; exports.HandbookPageModule = _chunkT3YQ47EFjs.HandbookPageModule; exports.HandbookPageService = _chunkT3YQ47EFjs.HandbookPageService; exports.HandbookSection = _chunkT3YQ47EFjs.HandbookSection; exports.HandbookSectionModule = _chunkT3YQ47EFjs.HandbookSectionModule; exports.HandbookSectionService = _chunkT3YQ47EFjs.HandbookSectionService; exports.HandbookThread = _chunkT3YQ47EFjs.HandbookThread; exports.HandbookThreadMessage = _chunkT3YQ47EFjs.HandbookThreadMessage; exports.HandbookThreadMessageModule = _chunkT3YQ47EFjs.HandbookThreadMessageModule; exports.HandbookThreadMessageService = _chunkT3YQ47EFjs.HandbookThreadMessageService; exports.HandbookThreadModule = _chunkT3YQ47EFjs.HandbookThreadModule; exports.HandbookThreadService = _chunkT3YQ47EFjs.HandbookThreadService; exports.HowTo = _chunkT3YQ47EFjs.HowTo; exports.HowToFields = _chunkT3YQ47EFjs.HowToFields; exports.HowToModule = _chunkT3YQ47EFjs.HowToModule; exports.HowToService = _chunkT3YQ47EFjs.HowToService; exports.HttpMethod = _chunkT3YQ47EFjs.HttpMethod; exports.InvoiceStatus = _chunkT3YQ47EFjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkGHE4VT2Rjs.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunkT3YQ47EFjs.MOBILE_BREAKPOINT; exports.Module = _chunkT3YQ47EFjs.Module; exports.ModuleModule = _chunkT3YQ47EFjs.ModuleModule; exports.ModulePaths = _chunkT3YQ47EFjs.ModulePaths; exports.ModulePathsModule = _chunkT3YQ47EFjs.ModulePathsModule; exports.ModuleRegistrar = _chunkT3YQ47EFjs.ModuleRegistrar; exports.ModuleRegistry = _chunkT3YQ47EFjs.ModuleRegistry; exports.Modules = _chunkT3YQ47EFjs.Modules; exports.Notification = _chunkT3YQ47EFjs.Notification; exports.NotificationFields = _chunkT3YQ47EFjs.NotificationFields; exports.NotificationModule = _chunkT3YQ47EFjs.NotificationModule; exports.NotificationService = _chunkT3YQ47EFjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkT3YQ47EFjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkT3YQ47EFjs.OAuthClient; exports.OAuthModule = _chunkT3YQ47EFjs.OAuthModule; exports.OAuthService = _chunkT3YQ47EFjs.OAuthService; exports.Passkey = _chunkT3YQ47EFjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkT3YQ47EFjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkT3YQ47EFjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkT3YQ47EFjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkT3YQ47EFjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkT3YQ47EFjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkT3YQ47EFjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkT3YQ47EFjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkT3YQ47EFjs.PasskeyRename; exports.PasskeyRenameModule = _chunkT3YQ47EFjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkT3YQ47EFjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkT3YQ47EFjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkT3YQ47EFjs.PaymentMethod; exports.PermissionMapping = _chunkT3YQ47EFjs.PermissionMapping; exports.PermissionMappingModule = _chunkT3YQ47EFjs.PermissionMappingModule; exports.Push = _chunkT3YQ47EFjs.Push; exports.PushModule = _chunkT3YQ47EFjs.PushModule; exports.PushService = _chunkT3YQ47EFjs.PushService; exports.RbacMatrixModel = _chunkT3YQ47EFjs.RbacMatrixModel; exports.RbacMatrixModule = _chunkT3YQ47EFjs.RbacMatrixModule; exports.RbacService = _chunkF4JB7YAPjs.RbacService; exports.ReferralModule = _chunkT3YQ47EFjs.ReferralModule; exports.ReferralService = _chunkT3YQ47EFjs.ReferralService; exports.ReferralStats = _chunkT3YQ47EFjs.ReferralStats; exports.ReferralStatsModule = _chunkT3YQ47EFjs.ReferralStatsModule; exports.RehydrationFactory = _chunkT3YQ47EFjs.RehydrationFactory; exports.Role = _chunkT3YQ47EFjs.Role; exports.RoleFields = _chunkT3YQ47EFjs.RoleFields; exports.RoleModule = _chunkT3YQ47EFjs.RoleModule; exports.RoleService = _chunkT3YQ47EFjs.RoleService; exports.S3 = _chunkT3YQ47EFjs.S3; exports.S3Module = _chunkT3YQ47EFjs.S3Module; exports.S3Service = _chunkT3YQ47EFjs.S3Service; exports.SIGNUP_SOURCE_COOKIE = _chunkF4JB7YAPjs.SIGNUP_SOURCE_COOKIE; exports.SIGNUP_SOURCE_COOKIE_MAX_AGE = _chunkF4JB7YAPjs.SIGNUP_SOURCE_COOKIE_MAX_AGE; exports.STRIPE_COUPON_CODE_AUTOMATIC_SEGMENT = _chunkT3YQ47EFjs.STRIPE_COUPON_CODE_AUTOMATIC_SEGMENT; exports.STRIPE_COUPON_DETAIL_PAGE_URL = _chunkT3YQ47EFjs.STRIPE_COUPON_DETAIL_PAGE_URL; exports.STRIPE_COUPON_REFRESH_SEGMENT = _chunkT3YQ47EFjs.STRIPE_COUPON_REFRESH_SEGMENT; exports.StripeCoupon = _chunkT3YQ47EFjs.StripeCoupon; exports.StripeCouponCode = _chunkT3YQ47EFjs.StripeCouponCode; exports.StripeCouponCodeFields = _chunkT3YQ47EFjs.StripeCouponCodeFields; exports.StripeCouponCodeModule = _chunkT3YQ47EFjs.StripeCouponCodeModule; exports.StripeCouponCodeService = _chunkT3YQ47EFjs.StripeCouponCodeService; exports.StripeCouponFields = _chunkT3YQ47EFjs.StripeCouponFields; exports.StripeCouponModule = _chunkT3YQ47EFjs.StripeCouponModule; exports.StripeCouponOffer = _chunkT3YQ47EFjs.StripeCouponOffer; exports.StripeCouponOfferModule = _chunkT3YQ47EFjs.StripeCouponOfferModule; exports.StripeCouponService = _chunkT3YQ47EFjs.StripeCouponService; exports.StripeCustomer = _chunkT3YQ47EFjs.StripeCustomer; exports.StripeCustomerModule = _chunkT3YQ47EFjs.StripeCustomerModule; exports.StripeCustomerService = _chunkT3YQ47EFjs.StripeCustomerService; exports.StripeInvoice = _chunkT3YQ47EFjs.StripeInvoice; exports.StripeInvoiceModule = _chunkT3YQ47EFjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkT3YQ47EFjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkT3YQ47EFjs.StripePaymentMethodModule; exports.StripePrice = _chunkT3YQ47EFjs.StripePrice; exports.StripePriceFields = _chunkT3YQ47EFjs.StripePriceFields; exports.StripePriceModule = _chunkT3YQ47EFjs.StripePriceModule; exports.StripePriceService = _chunkT3YQ47EFjs.StripePriceService; exports.StripeProduct = _chunkT3YQ47EFjs.StripeProduct; exports.StripeProductFields = _chunkT3YQ47EFjs.StripeProductFields; exports.StripeProductModule = _chunkT3YQ47EFjs.StripeProductModule; exports.StripeProductService = _chunkT3YQ47EFjs.StripeProductService; exports.StripePromotionCode = _chunkT3YQ47EFjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkT3YQ47EFjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkT3YQ47EFjs.StripePromotionCodeService; exports.StripeSubscription = _chunkT3YQ47EFjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkT3YQ47EFjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkT3YQ47EFjs.StripeSubscriptionService; exports.StripeUsage = _chunkT3YQ47EFjs.StripeUsage; exports.StripeUsageModule = _chunkT3YQ47EFjs.StripeUsageModule; exports.StripeUsageService = _chunkT3YQ47EFjs.StripeUsageService; exports.SubscriptionStatus = _chunkT3YQ47EFjs.SubscriptionStatus; exports.TableOptions = _chunkT3YQ47EFjs.TableOptions; exports.TokenUsageAdminBreakdownModule = _chunkT3YQ47EFjs.TokenUsageAdminBreakdownModule; exports.TokenUsageAdminSummaryModule = _chunkT3YQ47EFjs.TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = _chunkT3YQ47EFjs.TokenUsageAdminTimelineModule; exports.TotpAuthenticator = _chunkT3YQ47EFjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkT3YQ47EFjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkT3YQ47EFjs.TotpSetup; exports.TotpSetupModule = _chunkT3YQ47EFjs.TotpSetupModule; exports.TotpVerify = _chunkT3YQ47EFjs.TotpVerify; exports.TotpVerifyLogin = _chunkT3YQ47EFjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkT3YQ47EFjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkT3YQ47EFjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkT3YQ47EFjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkT3YQ47EFjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkT3YQ47EFjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkT3YQ47EFjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkT3YQ47EFjs.TwoFactorService; exports.TwoFactorStatus = _chunkT3YQ47EFjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkT3YQ47EFjs.TwoFactorStatusModule; exports.User = _chunkT3YQ47EFjs.User; exports.UserFields = _chunkT3YQ47EFjs.UserFields; exports.UserModule = _chunkT3YQ47EFjs.UserModule; exports.UserService = _chunkT3YQ47EFjs.UserService; exports.VIEWPORT_COOKIE_NAME = _chunkT3YQ47EFjs.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunkT3YQ47EFjs.Waitlist; exports.WaitlistFields = _chunkT3YQ47EFjs.WaitlistFields; exports.WaitlistModule = _chunkT3YQ47EFjs.WaitlistModule; exports.WaitlistService = _chunkT3YQ47EFjs.WaitlistService; exports.WaitlistStats = _chunkT3YQ47EFjs.WaitlistStats; exports.WaitlistStatsModule = _chunkT3YQ47EFjs.WaitlistStatsModule; exports.analyticsModules = _chunkT3YQ47EFjs.analyticsModules; exports.captureSignupSource = _chunkF4JB7YAPjs.captureSignupSource; exports.checkPermissions = _chunkT3YQ47EFjs.checkPermissions; exports.checkPermissionsFromServer = _chunkT3YQ47EFjs.checkPermissionsFromServer; exports.clearLastApiMeta = _chunkT3YQ47EFjs.clearLastApiMeta; exports.clearLastApiTotal = _chunkT3YQ47EFjs.clearLastApiTotal; exports.cn = _chunkT3YQ47EFjs.cn; exports.composeRefs = _chunkT3YQ47EFjs.composeRefs; exports.configureAuth = _chunkT3YQ47EFjs.configureAuth; exports.configureI18n = _chunkT3YQ47EFjs.configureI18n; exports.configureJsonApi = _chunkF4JB7YAPjs.configureJsonApi; exports.configureLogin = _chunkF4JB7YAPjs.configureLogin; exports.configureReferral = _chunkF4JB7YAPjs.configureReferral; exports.configureRoles = _chunkG4JR3SFVjs.configureRoles; exports.configureTokenUsage = _chunkT3YQ47EFjs.configureTokenUsage; exports.configureWaitlist = _chunkF4JB7YAPjs.configureWaitlist; exports.couponPlacesLeft = _chunkT3YQ47EFjs.couponPlacesLeft; exports.couponPlacesTotal = _chunkT3YQ47EFjs.couponPlacesTotal; exports.createJsonApiInclusion = _chunkT3YQ47EFjs.createJsonApiInclusion; exports.dateFormatLocale = _chunkT3YQ47EFjs.dateFormatLocale; exports.dismissToast = _chunkT3YQ47EFjs.dismissToast; exports.entityObjectSchema = _chunkT3YQ47EFjs.entityObjectSchema; exports.exists = _chunkT3YQ47EFjs.exists; exports.formatCodiceFiscale = _chunkT3YQ47EFjs.formatCodiceFiscale; exports.formatCouponDiscount = _chunkT3YQ47EFjs.formatCouponDiscount; exports.formatCurrency = _chunkT3YQ47EFjs.formatCurrency; exports.formatDate = _chunkT3YQ47EFjs.formatDate; exports.formatFixed = _chunkT3YQ47EFjs.formatFixed; exports.formatInterval = _chunkT3YQ47EFjs.formatInterval; exports.formatLocalDate = _chunkT3YQ47EFjs.formatLocalDate; exports.formatPartitaIva = _chunkT3YQ47EFjs.formatPartitaIva; exports.getApiUrl = _chunkF4JB7YAPjs.getApiUrl; exports.getAppUrl = _chunkF4JB7YAPjs.getAppUrl; exports.getBootstrapper = _chunkGHE4VT2Rjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkT3YQ47EFjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkT3YQ47EFjs.getGlobalErrorHandler; exports.getIcon = _chunkT3YQ47EFjs.getIcon; exports.getIconByModule = _chunkT3YQ47EFjs.getIconByModule; exports.getIconByModuleName = _chunkT3YQ47EFjs.getIconByModuleName; exports.getInitials = _chunkT3YQ47EFjs.getInitials; exports.getLastApiMeta = _chunkT3YQ47EFjs.getLastApiMeta; exports.getLastApiTotal = _chunkT3YQ47EFjs.getLastApiTotal; exports.getLucideIcon = _chunkT3YQ47EFjs.getLucideIcon; exports.getLucideIconByModule = _chunkT3YQ47EFjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkT3YQ47EFjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunkF4JB7YAPjs.getPublicApiUrl; exports.getReferralConfig = _chunkF4JB7YAPjs.getReferralConfig; exports.getRoleId = _chunkG4JR3SFVjs.getRoleId; exports.getSignupSource = _chunkF4JB7YAPjs.getSignupSource; exports.getStripePublishableKey = _chunkF4JB7YAPjs.getStripePublishableKey; exports.getTableComponents = _chunkT3YQ47EFjs.getTableComponents; exports.getTableOptions = _chunkT3YQ47EFjs.getTableOptions; exports.getTokenHandler = _chunkT3YQ47EFjs.getTokenHandler; exports.getTokenUsageCurrency = _chunkT3YQ47EFjs.getTokenUsageCurrency; exports.getTrackablePages = _chunkF4JB7YAPjs.getTrackablePages; exports.getValueFromPath = _chunkT3YQ47EFjs.getValueFromPath; exports.getWaitlistConfig = _chunkF4JB7YAPjs.getWaitlistConfig; exports.handbookPageContent = _chunkT3YQ47EFjs.handbookPageContent; exports.handbookPageSummary = _chunkT3YQ47EFjs.handbookPageSummary; exports.handbookPageTitle = _chunkT3YQ47EFjs.handbookPageTitle; exports.handbookSectionSummary = _chunkT3YQ47EFjs.handbookSectionSummary; exports.handbookSectionTitle = _chunkT3YQ47EFjs.handbookSectionTitle; exports.hasBootstrapper = _chunkGHE4VT2Rjs.hasBootstrapper; exports.isReferralEnabled = _chunkF4JB7YAPjs.isReferralEnabled; exports.isRemoteImageSrc = _chunkT3YQ47EFjs.isRemoteImageSrc; exports.isRolesConfigured = _chunkG4JR3SFVjs.isRolesConfigured; exports.mergeMessages = _chunkT3YQ47EFjs.mergeMessages; exports.readSignupSourceFromLocation = _chunkF4JB7YAPjs.readSignupSourceFromLocation; exports.rehydrate = _chunkT3YQ47EFjs.rehydrate; exports.rehydrateList = _chunkT3YQ47EFjs.rehydrateList; exports.resetBootstrapStore = _chunkGHE4VT2Rjs.resetBootstrapStore; exports.setBootstrapper = _chunkGHE4VT2Rjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkT3YQ47EFjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkT3YQ47EFjs.setGlobalErrorHandler; exports.showCustomToast = _chunkT3YQ47EFjs.showCustomToast; exports.showError = _chunkT3YQ47EFjs.showError; exports.showToast = _chunkT3YQ47EFjs.showToast; exports.toPromotionCodeResult = _chunkT3YQ47EFjs.toPromotionCodeResult; exports.tokenUsageModules = _chunkT3YQ47EFjs.tokenUsageModules; exports.translateData = _chunkGHE4VT2Rjs.translateData; exports.translateResponse = _chunkGHE4VT2Rjs.translateResponse; exports.tryBootstrap = _chunkGHE4VT2Rjs.tryBootstrap; exports.useComposedRefs = _chunkT3YQ47EFjs.useComposedRefs; exports.useIsMobile = _chunkT3YQ47EFjs.useIsMobile; exports.userObjectSchema = _chunkT3YQ47EFjs.userObjectSchema; exports.validateCodiceFiscale = _chunkT3YQ47EFjs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunkT3YQ47EFjs.validateItalianTaxCode; exports.validatePartitaIva = _chunkT3YQ47EFjs.validatePartitaIva;
641
641
  //# sourceMappingURL=index.js.map
package/dist/index.mjs CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  getWaitlistConfig,
20
20
  isReferralEnabled,
21
21
  readSignupSourceFromLocation
22
- } from "./chunk-RJMLAW5O.mjs";
22
+ } from "./chunk-JVJS5RHB.mjs";
23
23
  import {
24
24
  configureRoles,
25
25
  getRoleId,
@@ -306,7 +306,7 @@ import {
306
306
  validateCodiceFiscale,
307
307
  validateItalianTaxCode,
308
308
  validatePartitaIva
309
- } from "./chunk-CJS5WA4E.mjs";
309
+ } from "./chunk-USYZNWKS.mjs";
310
310
  import {
311
311
  DataClassRegistry,
312
312
  ENV,
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkWU47MIZZjs = require('../chunk-WU47MIZZ.js');
6
+ var _chunkMTI2UXDAjs = require('../chunk-MTI2UXDA.js');
7
7
 
8
8
 
9
9
  var _chunkIK65TDQHjs = require('../chunk-IK65TDQH.js');
@@ -35,7 +35,7 @@ require('../chunk-G4JR3SFV.js');
35
35
 
36
36
 
37
37
 
38
- var _chunk3CSPHMVKjs = require('../chunk-3CSPHMVK.js');
38
+ var _chunkT3YQ47EFjs = require('../chunk-T3YQ47EF.js');
39
39
  require('../chunk-GHE4VT2R.js');
40
40
  require('../chunk-LXKSUWAV.js');
41
41
  require('../chunk-JTPRJNT2.js');
@@ -66,5 +66,5 @@ require('../chunk-7QVYU63E.js');
66
66
 
67
67
 
68
68
 
69
- exports.CACHE_PROFILES = _chunkIK65TDQHjs.CACHE_PROFILES; exports.ServerAuthService = _chunk3CSPHMVKjs.AuthService; exports.ServerCompanyService = _chunk3CSPHMVKjs.CompanyService; exports.ServerContentService = _chunk3CSPHMVKjs.ContentService; exports.ServerFeatureService = _chunk3CSPHMVKjs.FeatureService; exports.ServerJsonApiDelete = _chunkKSYQEKJXjs.ServerJsonApiDelete; exports.ServerJsonApiGet = _chunkKSYQEKJXjs.ServerJsonApiGet; exports.ServerJsonApiPatch = _chunkKSYQEKJXjs.ServerJsonApiPatch; exports.ServerJsonApiPost = _chunkKSYQEKJXjs.ServerJsonApiPost; exports.ServerJsonApiPut = _chunkKSYQEKJXjs.ServerJsonApiPut; exports.ServerNotificationService = _chunk3CSPHMVKjs.NotificationService; exports.ServerPushService = _chunk3CSPHMVKjs.PushService; exports.ServerRoleService = _chunk3CSPHMVKjs.RoleService; exports.ServerS3Service = _chunk3CSPHMVKjs.S3Service; exports.ServerSession = _chunkWU47MIZZjs.ServerSession; exports.ServerUserService = _chunk3CSPHMVKjs.UserService; exports.configureServerJsonApi = _chunkKSYQEKJXjs.configureServerJsonApi; exports.getServerApiUrl = _chunkKSYQEKJXjs.getServerApiUrl; exports.getServerAppUrl = _chunkKSYQEKJXjs.getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = _chunkKSYQEKJXjs.getServerTrackablePages; exports.invalidateCacheTag = _chunkWU47MIZZjs.invalidateCacheTag; exports.invalidateCacheTags = _chunkWU47MIZZjs.invalidateCacheTags; exports.serverRequest = _chunk6TUB7Y6Tjs.serverRequest; exports.updateCacheTag = _chunkWU47MIZZjs.updateCacheTag;
69
+ exports.CACHE_PROFILES = _chunkIK65TDQHjs.CACHE_PROFILES; exports.ServerAuthService = _chunkT3YQ47EFjs.AuthService; exports.ServerCompanyService = _chunkT3YQ47EFjs.CompanyService; exports.ServerContentService = _chunkT3YQ47EFjs.ContentService; exports.ServerFeatureService = _chunkT3YQ47EFjs.FeatureService; exports.ServerJsonApiDelete = _chunkKSYQEKJXjs.ServerJsonApiDelete; exports.ServerJsonApiGet = _chunkKSYQEKJXjs.ServerJsonApiGet; exports.ServerJsonApiPatch = _chunkKSYQEKJXjs.ServerJsonApiPatch; exports.ServerJsonApiPost = _chunkKSYQEKJXjs.ServerJsonApiPost; exports.ServerJsonApiPut = _chunkKSYQEKJXjs.ServerJsonApiPut; exports.ServerNotificationService = _chunkT3YQ47EFjs.NotificationService; exports.ServerPushService = _chunkT3YQ47EFjs.PushService; exports.ServerRoleService = _chunkT3YQ47EFjs.RoleService; exports.ServerS3Service = _chunkT3YQ47EFjs.S3Service; exports.ServerSession = _chunkMTI2UXDAjs.ServerSession; exports.ServerUserService = _chunkT3YQ47EFjs.UserService; exports.configureServerJsonApi = _chunkKSYQEKJXjs.configureServerJsonApi; exports.getServerApiUrl = _chunkKSYQEKJXjs.getServerApiUrl; exports.getServerAppUrl = _chunkKSYQEKJXjs.getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = _chunkKSYQEKJXjs.getServerTrackablePages; exports.invalidateCacheTag = _chunkMTI2UXDAjs.invalidateCacheTag; exports.invalidateCacheTags = _chunkMTI2UXDAjs.invalidateCacheTags; exports.serverRequest = _chunk6TUB7Y6Tjs.serverRequest; exports.updateCacheTag = _chunkMTI2UXDAjs.updateCacheTag;
70
70
  //# sourceMappingURL=index.js.map
@@ -3,7 +3,7 @@ import {
3
3
  invalidateCacheTag,
4
4
  invalidateCacheTags,
5
5
  updateCacheTag
6
- } from "../chunk-KOA5PZZA.mjs";
6
+ } from "../chunk-GFGKMUPZ.mjs";
7
7
  import {
8
8
  CACHE_PROFILES
9
9
  } from "../chunk-T7SAW3UW.mjs";
@@ -35,7 +35,7 @@ import {
35
35
  RoleService,
36
36
  S3Service,
37
37
  UserService
38
- } from "../chunk-CJS5WA4E.mjs";
38
+ } from "../chunk-USYZNWKS.mjs";
39
39
  import "../chunk-V5MI7RNB.mjs";
40
40
  import "../chunk-AUXK7QSA.mjs";
41
41
  import "../chunk-PI56A4DG.mjs";
package/messages/en.json CHANGED
@@ -597,7 +597,8 @@
597
597
  "fallback_name": "Subscription",
598
598
  "more": "+{count} more subscription(s)",
599
599
  "renews_on": "Renews on {date}",
600
- "view_plans": "View Plans"
600
+ "view_plans": "View Plans",
601
+ "payment_failing": "Payment failing"
601
602
  },
602
603
  "usage": {
603
604
  "across_meters": "Across {count} meters",
@@ -770,8 +771,6 @@
770
771
  "details_description": "View and manage your subscription",
771
772
  "details_title": "Subscription Details",
772
773
  "manage_portal": "Manage via Portal",
773
- "pause": "Pause",
774
- "pausing": "Pausing...",
775
774
  "resume": "Resume",
776
775
  "resuming": "Resuming...",
777
776
  "trial_ends": "Trial Ends:",
package/messages/it.json CHANGED
@@ -597,7 +597,8 @@
597
597
  "fallback_name": "Abbonamento",
598
598
  "more": "+{count} altri abbonamenti",
599
599
  "renews_on": "Si rinnova il {date}",
600
- "view_plans": "Vedi i piani"
600
+ "view_plans": "Vedi i piani",
601
+ "payment_failing": "Pagamento non riuscito"
601
602
  },
602
603
  "usage": {
603
604
  "across_meters": "Su {count} contatori",
@@ -770,8 +771,6 @@
770
771
  "details_description": "Visualizza e gestisci il tuo abbonamento",
771
772
  "details_title": "Dettagli abbonamento",
772
773
  "manage_portal": "Gestisci dal portale",
773
- "pause": "Sospendi",
774
- "pausing": "Sospensione...",
775
774
  "resume": "Riattiva",
776
775
  "resuming": "Riattivazione...",
777
776
  "trial_ends": "Fine della prova:",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlonicora/nextjs-jsonapi",
3
- "version": "5.7.2",
3
+ "version": "6.0.0",
4
4
  "description": "Next.js JSON:API client with server/client support and caching",
5
5
  "author": "Carlo Nicora",
6
6
  "license": "GPL-3.0-or-later",
@@ -35,6 +35,10 @@ const DECLARED_FOR_APP_RENDERED_SURFACES = new Set<string>([
35
35
  "administration.users.description",
36
36
  "administration.ai_connections.description",
37
37
  "analytics.admin.description",
38
+ // No longer read in the package (resume was removed), kept for apps that may
39
+ // still render them.
40
+ "billing.ui.subscription.resume",
41
+ "billing.ui.subscription.resuming",
38
42
  "handbook.chat.delete_confirm",
39
43
  "handbook.chat.rename_placeholder",
40
44
  "handbook.contents.title",
@@ -79,8 +79,12 @@ export function SubscriptionSummaryCard({
79
79
  );
80
80
  }
81
81
 
82
+ // A failing card (past_due) still counts as the GM's plan: they keep it during the grace period.
82
83
  const activeSubscriptions = subscriptions.filter(
83
- (sub) => sub.status === SubscriptionStatus.ACTIVE || sub.status === SubscriptionStatus.TRIALING,
84
+ (sub) =>
85
+ sub.status === SubscriptionStatus.ACTIVE ||
86
+ sub.status === SubscriptionStatus.TRIALING ||
87
+ sub.status === SubscriptionStatus.PAST_DUE,
84
88
  );
85
89
  const primarySubscription = activeSubscriptions[0];
86
90
 
@@ -115,19 +119,23 @@ export function SubscriptionSummaryCard({
115
119
  <p className="text-xl font-bold">
116
120
  {formatPlanName(primarySubscription, t("billing.ui.cards.subscriptions.fallback_name"))}
117
121
  </p>
118
- <Badge
119
- variant={
120
- primarySubscription.cancelAtPeriodEnd
121
- ? "secondary"
122
- : getStatusBadgeVariant(primarySubscription.status)
123
- }
124
- >
125
- {primarySubscription.cancelAtPeriodEnd
126
- ? t("billing.ui.cards.subscriptions.canceling")
127
- : SUBSCRIPTION_STATUSES.includes(primarySubscription.status)
128
- ? t(`billing.ui.subscription_status.${primarySubscription.status}`)
129
- : primarySubscription.status}
130
- </Badge>
122
+ {primarySubscription.status === SubscriptionStatus.PAST_DUE ? (
123
+ <Badge variant="softRed">{t("billing.ui.cards.subscriptions.payment_failing")}</Badge>
124
+ ) : (
125
+ <Badge
126
+ variant={
127
+ primarySubscription.cancelAtPeriodEnd
128
+ ? "secondary"
129
+ : getStatusBadgeVariant(primarySubscription.status)
130
+ }
131
+ >
132
+ {primarySubscription.cancelAtPeriodEnd
133
+ ? t("billing.ui.cards.subscriptions.canceling")
134
+ : SUBSCRIPTION_STATUSES.includes(primarySubscription.status)
135
+ ? t(`billing.ui.subscription_status.${primarySubscription.status}`)
136
+ : primarySubscription.status}
137
+ </Badge>
138
+ )}
131
139
  </div>
132
140
  <p className="text-xs text-muted-foreground">
133
141
  {!primarySubscription.price?.isTrial
@@ -214,6 +214,7 @@ export const BILLING_UI_I18N_KEYS = [
214
214
  "billing.ui.cards.subscriptions.ends_on",
215
215
  "billing.ui.cards.subscriptions.fallback_name",
216
216
  "billing.ui.cards.subscriptions.more",
217
+ "billing.ui.cards.subscriptions.payment_failing",
217
218
  "billing.ui.cards.subscriptions.renews_on",
218
219
  "billing.ui.cards.subscriptions.view_plans",
219
220
  "billing.ui.cards.usage.across_meters",
@@ -336,8 +337,6 @@ export const BILLING_UI_I18N_KEYS = [
336
337
  "billing.ui.subscription.details_description",
337
338
  "billing.ui.subscription.details_title",
338
339
  "billing.ui.subscription.manage_portal",
339
- "billing.ui.subscription.pause",
340
- "billing.ui.subscription.pausing",
341
340
  "billing.ui.subscription.resume",
342
341
  "billing.ui.subscription.resuming",
343
342
  "billing.ui.subscription.trial_ends",
@@ -11,7 +11,7 @@ import {
11
11
  } from "../../../components/utils";
12
12
  import { StripeCustomerService } from "../../../stripe-customer";
13
13
  import { StripePriceInterface } from "../../../stripe-price/data/stripe-price.interface";
14
- import { StripeSubscriptionInterface, StripeSubscriptionService, SubscriptionStatus } from "../../data";
14
+ import { StripeSubscriptionInterface, SubscriptionStatus } from "../../data";
15
15
  import { CancelSubscriptionDialog } from "../forms/CancelSubscriptionDialog";
16
16
  import { SubscriptionStatusBadge } from "../widgets/SubscriptionStatusBadge";
17
17
 
@@ -75,31 +75,6 @@ export function SubscriptionDetails({
75
75
  const t = useTranslations();
76
76
  const fmt = useBillingFormatOptions();
77
77
  const [showCancel, setShowCancel] = useState<boolean>(false);
78
- const [isProcessing, setIsProcessing] = useState<boolean>(false);
79
-
80
- const handlePause = async () => {
81
- setIsProcessing(true);
82
- try {
83
- await StripeSubscriptionService.pauseSubscription({ subscriptionId: subscription.id });
84
- onSubscriptionChange();
85
- } catch (error) {
86
- console.error("[SubscriptionDetails] Failed to pause subscription:", error);
87
- } finally {
88
- setIsProcessing(false);
89
- }
90
- };
91
-
92
- const handleResume = async () => {
93
- setIsProcessing(true);
94
- try {
95
- await StripeSubscriptionService.resumeSubscription({ subscriptionId: subscription.id });
96
- onSubscriptionChange();
97
- } catch (error) {
98
- console.error("[SubscriptionDetails] Failed to resume subscription:", error);
99
- } finally {
100
- setIsProcessing(false);
101
- }
102
- };
103
78
 
104
79
  const handleManageViaPortal = async () => {
105
80
  try {
@@ -110,8 +85,6 @@ export function SubscriptionDetails({
110
85
  }
111
86
  };
112
87
 
113
- const canPause = subscription.status === SubscriptionStatus.ACTIVE;
114
- const canResume = subscription.status === SubscriptionStatus.PAUSED;
115
88
  const canCancel =
116
89
  subscription.status === SubscriptionStatus.ACTIVE ||
117
90
  subscription.status === SubscriptionStatus.TRIALING ||
@@ -187,18 +160,6 @@ export function SubscriptionDetails({
187
160
  </Button>
188
161
  )}
189
162
 
190
- {canPause && (
191
- <Button variant="outline" onClick={handlePause} disabled={isProcessing}>
192
- {isProcessing ? t("billing.ui.subscription.pausing") : t("billing.ui.subscription.pause")}
193
- </Button>
194
- )}
195
-
196
- {canResume && (
197
- <Button variant="outline" onClick={handleResume} disabled={isProcessing}>
198
- {isProcessing ? t("billing.ui.subscription.resuming") : t("billing.ui.subscription.resume")}
199
- </Button>
200
- )}
201
-
202
163
  {canCancel && (
203
164
  <Button variant="destructive" onClick={() => setShowCancel(true)}>
204
165
  {t("ui.buttons.cancel")}
@@ -0,0 +1,59 @@
1
+ import { beforeAll, describe, expect, it } from "vitest";
2
+ import { DataClassRegistry } from "../../../../../core/registry/DataClassRegistry";
3
+ import { ModuleRegistry } from "../../../../../core/registry/ModuleRegistry";
4
+ import { ModuleFactory, ModuleWithPermissions } from "../../../../../permissions/types";
5
+ import { FeatureModule } from "../../../../feature/feature.module";
6
+ import { StripeProductModule } from "../../../stripe-product/stripe-product.module";
7
+ import { StripePrice } from "../../../stripe-price/data/stripe-price";
8
+ import { StripePriceModule } from "../../../stripe-price/stripe-price.module";
9
+ import { StripeSubscription } from "../stripe-subscription";
10
+
11
+ // rehydrate reads Modules.StripePrice (whose own rehydrate reads StripeProduct and Feature), so
12
+ // those modules and the price class are registered.
13
+ const moduleFactory: ModuleFactory = (params) =>
14
+ ({ pageUrl: params.pageUrl, name: params.name, model: params.model }) as ModuleWithPermissions;
15
+
16
+ beforeAll(() => {
17
+ const priceModule = StripePriceModule(moduleFactory);
18
+ ModuleRegistry.register("StripePrice", priceModule);
19
+ ModuleRegistry.register("StripeProduct", StripeProductModule(moduleFactory));
20
+ ModuleRegistry.register("Feature", FeatureModule(moduleFactory));
21
+ DataClassRegistry.registerObjectClass(priceModule, StripePrice);
22
+ });
23
+
24
+ const baseAttributes = {
25
+ stripeSubscriptionId: "sub_1",
26
+ status: "active",
27
+ currentPeriodStart: "2026-10-01T00:00:00.000Z",
28
+ currentPeriodEnd: "2026-11-01T00:00:00.000Z",
29
+ };
30
+
31
+ describe("StripeSubscription", () => {
32
+ it("reads the price from the stripePrice relationship", () => {
33
+ const subscription = new StripeSubscription().rehydrate({
34
+ jsonApi: {
35
+ id: "sub-1",
36
+ type: "stripe-subscriptions",
37
+ attributes: baseAttributes,
38
+ relationships: { stripePrice: { data: { type: "stripe-prices", id: "price-1" } } },
39
+ },
40
+ included: [
41
+ {
42
+ id: "price-1",
43
+ type: "stripe-prices",
44
+ attributes: {
45
+ stripePriceId: "price_1",
46
+ currency: "eur",
47
+ unitAmount: 900,
48
+ priceType: "recurring",
49
+ recurringInterval: "month",
50
+ },
51
+ },
52
+ ],
53
+ });
54
+
55
+ expect(subscription.price?.id).toBe("price-1");
56
+ expect(subscription.price?.unitAmount).toBe(900);
57
+ expect(subscription.price?.recurring?.interval).toBe("month");
58
+ });
59
+ });
@@ -176,40 +176,6 @@ export class StripeSubscriptionService extends AbstractService {
176
176
  });
177
177
  }
178
178
 
179
- /**
180
- * Pause a subscription
181
- */
182
- static async pauseSubscription(params: { subscriptionId: string }): Promise<StripeSubscriptionInterface> {
183
- const endpoint = new EndpointCreator({
184
- endpoint: Modules.StripeSubscription,
185
- id: params.subscriptionId,
186
- childEndpoint: "pause",
187
- });
188
-
189
- return this.callApi<StripeSubscriptionInterface>({
190
- type: Modules.StripeSubscription,
191
- method: HttpMethod.POST,
192
- endpoint: endpoint.generate(),
193
- });
194
- }
195
-
196
- /**
197
- * Resume a paused subscription
198
- */
199
- static async resumeSubscription(params: { subscriptionId: string }): Promise<StripeSubscriptionInterface> {
200
- const endpoint = new EndpointCreator({
201
- endpoint: Modules.StripeSubscription,
202
- id: params.subscriptionId,
203
- childEndpoint: "resume",
204
- });
205
-
206
- return this.callApi<StripeSubscriptionInterface>({
207
- type: Modules.StripeSubscription,
208
- method: HttpMethod.POST,
209
- endpoint: endpoint.generate(),
210
- });
211
- }
212
-
213
179
  /**
214
180
  * Sync a subscription with the latest data from Stripe
215
181
  * This is useful after payment confirmation to get the updated status
@@ -98,7 +98,7 @@ export class StripeSubscription extends AbstractApiData implements StripeSubscri
98
98
  : undefined;
99
99
 
100
100
  // Hydrate price relationship
101
- this._price = this._readIncluded(data, "price", Modules.StripePrice) as StripePriceInterface;
101
+ this._price = this._readIncluded(data, "stripePrice", Modules.StripePrice) as StripePriceInterface;
102
102
 
103
103
  return this;
104
104
  }