@carlonicora/nextjs-jsonapi 3.24.0 → 3.24.2

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 (92) hide show
  1. package/dist/{BlockNoteEditor-PTD2V4CH.js → BlockNoteEditor-35D4R7HJ.js} +21 -21
  2. package/dist/{BlockNoteEditor-PTD2V4CH.js.map → BlockNoteEditor-35D4R7HJ.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-Q2WEDMKJ.mjs → BlockNoteEditor-65HR6ULV.mjs} +6 -6
  4. package/dist/{BlockNoteViewer-WO6GTDSI.mjs → BlockNoteViewer-KDKGUIG5.mjs} +4 -4
  5. package/dist/{BlockNoteViewer-WOXEJ6RM.js → BlockNoteViewer-QDXDVYEM.js} +5 -5
  6. package/dist/{BlockNoteViewer-WOXEJ6RM.js.map → BlockNoteViewer-QDXDVYEM.js.map} +1 -1
  7. package/dist/JsonApiRequest-G625QAH5.js +26 -0
  8. package/dist/{JsonApiRequest-E4PZPH3N.js.map → JsonApiRequest-G625QAH5.js.map} +1 -1
  9. package/dist/{JsonApiRequest-7AEQWMLJ.mjs → JsonApiRequest-RRMNV7YE.mjs} +2 -2
  10. package/dist/billing/index.d.mts +57 -2
  11. package/dist/billing/index.d.ts +57 -2
  12. package/dist/billing/index.js +408 -403
  13. package/dist/billing/index.js.map +1 -1
  14. package/dist/billing/index.mjs +10 -5
  15. package/dist/{chunk-3YJF7QY4.js → chunk-2XCUAHQT.js} +834 -834
  16. package/dist/{chunk-3YJF7QY4.js.map → chunk-2XCUAHQT.js.map} +1 -1
  17. package/dist/{chunk-3D2MCVRZ.js → chunk-3AR4KA5D.js} +13 -13
  18. package/dist/{chunk-3D2MCVRZ.js.map → chunk-3AR4KA5D.js.map} +1 -1
  19. package/dist/{chunk-GJHKOG5L.mjs → chunk-4O7R2Z2O.mjs} +10 -10
  20. package/dist/chunk-4O7R2Z2O.mjs.map +1 -0
  21. package/dist/{chunk-IOLU4ASD.js → chunk-5TRFNKJS.js} +3 -2
  22. package/dist/chunk-5TRFNKJS.js.map +1 -0
  23. package/dist/{chunk-2O3SFHQ7.mjs → chunk-IBVKPLHT.mjs} +14 -8
  24. package/dist/chunk-IBVKPLHT.mjs.map +1 -0
  25. package/dist/{chunk-IBS6NI7D.js → chunk-JTPRJNT2.js} +3 -2
  26. package/dist/chunk-JTPRJNT2.js.map +1 -0
  27. package/dist/{chunk-C7C7VY4F.mjs → chunk-PI56A4DG.mjs} +3 -2
  28. package/dist/{chunk-C7C7VY4F.mjs.map → chunk-PI56A4DG.mjs.map} +1 -1
  29. package/dist/{chunk-IEJYBQ6J.mjs → chunk-SJLXPHK5.mjs} +3 -2
  30. package/dist/{chunk-IEJYBQ6J.mjs.map → chunk-SJLXPHK5.mjs.map} +1 -1
  31. package/dist/{chunk-BMVA2IM5.mjs → chunk-T76WLDE5.mjs} +3 -3
  32. package/dist/{chunk-IV4DTYXN.js → chunk-U7QVISQS.js} +46 -40
  33. package/dist/chunk-U7QVISQS.js.map +1 -0
  34. package/dist/{chunk-LU7DJ4QF.js → chunk-YXRVPEEJ.js} +3 -3
  35. package/dist/{chunk-LU7DJ4QF.js.map → chunk-YXRVPEEJ.js.map} +1 -1
  36. package/dist/{chunk-HAI7G6MD.mjs → chunk-ZJI5ZZW5.mjs} +3 -3
  37. package/dist/client/index.js +6 -6
  38. package/dist/client/index.mjs +5 -5
  39. package/dist/components/index.js +6 -6
  40. package/dist/components/index.mjs +5 -5
  41. package/dist/contexts/index.js +6 -6
  42. package/dist/contexts/index.mjs +5 -5
  43. package/dist/core/index.d.mts +2 -2
  44. package/dist/core/index.d.ts +2 -2
  45. package/dist/core/index.js +4 -4
  46. package/dist/core/index.mjs +3 -3
  47. package/dist/features/help/index.js +39 -39
  48. package/dist/features/help/index.mjs +5 -5
  49. package/dist/features/tokenusage/index.js +103 -103
  50. package/dist/features/tokenusage/index.mjs +5 -5
  51. package/dist/index.d.mts +1 -1
  52. package/dist/index.d.ts +1 -1
  53. package/dist/index.js +5 -5
  54. package/dist/index.mjs +4 -4
  55. package/dist/{request-FYMQK5CX.mjs → request-5RLK2AM3.mjs} +2 -2
  56. package/dist/request-EUGTI3BE.js +9 -0
  57. package/dist/{request-ZYY6RI5X.js.map → request-EUGTI3BE.js.map} +1 -1
  58. package/dist/{request-6VYDNP5T.mjs → request-FXF63NSQ.mjs} +2 -2
  59. package/dist/request-ZTX6I63X.js +8 -0
  60. package/dist/request-ZTX6I63X.js.map +1 -0
  61. package/dist/{s3.service-DJHqEZAp.d.ts → s3.service-Bqr-fQmi.d.ts} +1 -0
  62. package/dist/{s3.service-DaRFLnrX.d.mts → s3.service-Buiy1ncj.d.mts} +1 -0
  63. package/dist/server/index.d.mts +1 -1
  64. package/dist/server/index.d.ts +1 -1
  65. package/dist/server/index.js +21 -21
  66. package/dist/server/index.mjs +4 -4
  67. package/package.json +1 -1
  68. package/src/client/__tests__/request.test.ts +29 -0
  69. package/src/client/request.ts +5 -1
  70. package/src/features/billing/stripe-customer/data/stripe-customer.service.ts +5 -0
  71. package/src/features/billing/stripe-subscription/components/index.ts +1 -0
  72. package/src/features/notification/contexts/NotificationContext.tsx +5 -2
  73. package/src/features/notification/contexts/__tests__/NotificationContext.spec.tsx +32 -0
  74. package/src/features/notification/data/notification.service.ts +6 -1
  75. package/src/server/__tests__/request.test.ts +17 -0
  76. package/src/server/request.ts +5 -1
  77. package/dist/JsonApiRequest-E4PZPH3N.js +0 -26
  78. package/dist/chunk-2O3SFHQ7.mjs.map +0 -1
  79. package/dist/chunk-GJHKOG5L.mjs.map +0 -1
  80. package/dist/chunk-IBS6NI7D.js.map +0 -1
  81. package/dist/chunk-IOLU4ASD.js.map +0 -1
  82. package/dist/chunk-IV4DTYXN.js.map +0 -1
  83. package/dist/request-UR7VPG3G.js +0 -8
  84. package/dist/request-UR7VPG3G.js.map +0 -1
  85. package/dist/request-ZYY6RI5X.js +0 -9
  86. /package/dist/{BlockNoteEditor-Q2WEDMKJ.mjs.map → BlockNoteEditor-65HR6ULV.mjs.map} +0 -0
  87. /package/dist/{BlockNoteViewer-WO6GTDSI.mjs.map → BlockNoteViewer-KDKGUIG5.mjs.map} +0 -0
  88. /package/dist/{JsonApiRequest-7AEQWMLJ.mjs.map → JsonApiRequest-RRMNV7YE.mjs.map} +0 -0
  89. /package/dist/{chunk-BMVA2IM5.mjs.map → chunk-T76WLDE5.mjs.map} +0 -0
  90. /package/dist/{chunk-HAI7G6MD.mjs.map → chunk-ZJI5ZZW5.mjs.map} +0 -0
  91. /package/dist/{request-6VYDNP5T.mjs.map → request-5RLK2AM3.mjs.map} +0 -0
  92. /package/dist/{request-FYMQK5CX.mjs.map → request-FXF63NSQ.mjs.map} +0 -0
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
 
20
20
 
21
- var _chunk3D2MCVRZjs = require('./chunk-3D2MCVRZ.js');
21
+ var _chunk3AR4KA5Djs = require('./chunk-3AR4KA5D.js');
22
22
 
23
23
 
24
24
 
@@ -244,9 +244,9 @@ var _chunk3D2MCVRZjs = require('./chunk-3D2MCVRZ.js');
244
244
 
245
245
 
246
246
 
247
- var _chunkIV4DTYXNjs = require('./chunk-IV4DTYXN.js');
247
+ var _chunkU7QVISQSjs = require('./chunk-U7QVISQS.js');
248
248
  require('./chunk-LXKSUWAV.js');
249
- require('./chunk-IBS6NI7D.js');
249
+ require('./chunk-JTPRJNT2.js');
250
250
 
251
251
 
252
252
 
@@ -258,7 +258,7 @@ require('./chunk-IBS6NI7D.js');
258
258
 
259
259
 
260
260
 
261
- var _chunkLU7DJ4QFjs = require('./chunk-LU7DJ4QF.js');
261
+ var _chunkYXRVPEEJjs = require('./chunk-YXRVPEEJ.js');
262
262
  require('./chunk-7QVYU63E.js');
263
263
 
264
264
 
@@ -515,5 +515,5 @@ require('./chunk-7QVYU63E.js');
515
515
 
516
516
 
517
517
 
518
- exports.ACTION_TYPES = _chunk3D2MCVRZjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkIV4DTYXNjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkIV4DTYXNjs.AbstractApiData; exports.AbstractService = _chunkIV4DTYXNjs.AbstractService; exports.Action = _chunkIV4DTYXNjs.Action; exports.AiConnection = _chunkIV4DTYXNjs.AiConnection; exports.AiConnectionFields = _chunkIV4DTYXNjs.AiConnectionFields; exports.AiConnectionModule = _chunkIV4DTYXNjs.AiConnectionModule; exports.AiConnectionService = _chunkIV4DTYXNjs.AiConnectionService; exports.Assistant = _chunkIV4DTYXNjs.Assistant; exports.AssistantAction = _chunkIV4DTYXNjs.AssistantAction; exports.AssistantActionModule = _chunkIV4DTYXNjs.AssistantActionModule; exports.AssistantActionService = _chunkIV4DTYXNjs.AssistantActionService; exports.AssistantMessage = _chunkIV4DTYXNjs.AssistantMessage; exports.AssistantMessageModule = _chunkIV4DTYXNjs.AssistantMessageModule; exports.AssistantMessageService = _chunkIV4DTYXNjs.AssistantMessageService; exports.AssistantModule = _chunkIV4DTYXNjs.AssistantModule; exports.AssistantService = _chunkIV4DTYXNjs.AssistantService; exports.AuditLog = _chunkIV4DTYXNjs.AuditLog; exports.AuditLogModule = _chunkIV4DTYXNjs.AuditLogModule; exports.AuditLogService = _chunkIV4DTYXNjs.AuditLogService; exports.Auth = _chunkIV4DTYXNjs.Auth; exports.AuthComponent = _chunkIV4DTYXNjs.AuthComponent; exports.AuthModule = _chunkIV4DTYXNjs.AuthModule; exports.AuthService = _chunkIV4DTYXNjs.AuthService; exports.AuthorModule = _chunkIV4DTYXNjs.AuthorModule; exports.BackupCodeVerify = _chunkIV4DTYXNjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkIV4DTYXNjs.BackupCodeVerifyModule; exports.Billing = _chunkIV4DTYXNjs.Billing; exports.BillingModule = _chunkIV4DTYXNjs.BillingModule; exports.BillingService = _chunkIV4DTYXNjs.BillingService; exports.BlockNoteDiffUtil = _chunkIV4DTYXNjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkIV4DTYXNjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunk3D2MCVRZjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.CURRENT_USER_STORAGE_KEY = _chunkIV4DTYXNjs.CURRENT_USER_STORAGE_KEY; exports.Chunk = _chunkIV4DTYXNjs.Chunk; exports.ChunkModule = _chunkIV4DTYXNjs.ChunkModule; exports.ClientAbstractService = _chunkIV4DTYXNjs.ClientAbstractService; exports.ClientHttpMethod = _chunkIV4DTYXNjs.ClientHttpMethod; exports.Company = _chunkIV4DTYXNjs.Company; exports.CompanyFields = _chunkIV4DTYXNjs.CompanyFields; exports.CompanyModule = _chunkIV4DTYXNjs.CompanyModule; exports.CompanyService = _chunkIV4DTYXNjs.CompanyService; exports.Content = _chunkIV4DTYXNjs.Content; exports.ContentFields = _chunkIV4DTYXNjs.ContentFields; exports.ContentModule = _chunkIV4DTYXNjs.ContentModule; exports.ContentService = _chunkIV4DTYXNjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkIV4DTYXNjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkLU7DJ4QFjs.DataClassRegistry; exports.DataClassRegistry = _chunkLU7DJ4QFjs.DataClassRegistry; exports.ENV = _chunkLU7DJ4QFjs.ENV; exports.EndpointCreator = _chunkIV4DTYXNjs.EndpointCreator; exports.EntityAiStatus = _chunkIV4DTYXNjs.EntityAiStatus; exports.Feature = _chunkIV4DTYXNjs.Feature; exports.FeatureModule = _chunkIV4DTYXNjs.FeatureModule; exports.FeatureService = _chunkIV4DTYXNjs.FeatureService; exports.HandbookPage = _chunkIV4DTYXNjs.HandbookPage; exports.HandbookPageFields = _chunkIV4DTYXNjs.HandbookPageFields; exports.HandbookPageModule = _chunkIV4DTYXNjs.HandbookPageModule; exports.HandbookPageService = _chunkIV4DTYXNjs.HandbookPageService; exports.HandbookSection = _chunkIV4DTYXNjs.HandbookSection; exports.HandbookSectionModule = _chunkIV4DTYXNjs.HandbookSectionModule; exports.HandbookSectionService = _chunkIV4DTYXNjs.HandbookSectionService; exports.HandbookThread = _chunkIV4DTYXNjs.HandbookThread; exports.HandbookThreadMessage = _chunkIV4DTYXNjs.HandbookThreadMessage; exports.HandbookThreadMessageModule = _chunkIV4DTYXNjs.HandbookThreadMessageModule; exports.HandbookThreadMessageService = _chunkIV4DTYXNjs.HandbookThreadMessageService; exports.HandbookThreadModule = _chunkIV4DTYXNjs.HandbookThreadModule; exports.HandbookThreadService = _chunkIV4DTYXNjs.HandbookThreadService; exports.HowTo = _chunkIV4DTYXNjs.HowTo; exports.HowToFields = _chunkIV4DTYXNjs.HowToFields; exports.HowToModule = _chunkIV4DTYXNjs.HowToModule; exports.HowToService = _chunkIV4DTYXNjs.HowToService; exports.HttpMethod = _chunkIV4DTYXNjs.HttpMethod; exports.InvoiceStatus = _chunkIV4DTYXNjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkLU7DJ4QFjs.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunkIV4DTYXNjs.MOBILE_BREAKPOINT; exports.Module = _chunkIV4DTYXNjs.Module; exports.ModuleModule = _chunkIV4DTYXNjs.ModuleModule; exports.ModulePaths = _chunkIV4DTYXNjs.ModulePaths; exports.ModulePathsModule = _chunkIV4DTYXNjs.ModulePathsModule; exports.ModuleRegistrar = _chunkIV4DTYXNjs.ModuleRegistrar; exports.ModuleRegistry = _chunkIV4DTYXNjs.ModuleRegistry; exports.Modules = _chunkIV4DTYXNjs.Modules; exports.Notification = _chunkIV4DTYXNjs.Notification; exports.NotificationFields = _chunkIV4DTYXNjs.NotificationFields; exports.NotificationModule = _chunkIV4DTYXNjs.NotificationModule; exports.NotificationService = _chunkIV4DTYXNjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkIV4DTYXNjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkIV4DTYXNjs.OAuthClient; exports.OAuthModule = _chunkIV4DTYXNjs.OAuthModule; exports.OAuthService = _chunkIV4DTYXNjs.OAuthService; exports.Passkey = _chunkIV4DTYXNjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkIV4DTYXNjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkIV4DTYXNjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkIV4DTYXNjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkIV4DTYXNjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkIV4DTYXNjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkIV4DTYXNjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkIV4DTYXNjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkIV4DTYXNjs.PasskeyRename; exports.PasskeyRenameModule = _chunkIV4DTYXNjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkIV4DTYXNjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkIV4DTYXNjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkIV4DTYXNjs.PaymentMethod; exports.PermissionMapping = _chunkIV4DTYXNjs.PermissionMapping; exports.PermissionMappingModule = _chunkIV4DTYXNjs.PermissionMappingModule; exports.Push = _chunkIV4DTYXNjs.Push; exports.PushModule = _chunkIV4DTYXNjs.PushModule; exports.PushService = _chunkIV4DTYXNjs.PushService; exports.RbacMatrixModel = _chunkIV4DTYXNjs.RbacMatrixModel; exports.RbacMatrixModule = _chunkIV4DTYXNjs.RbacMatrixModule; exports.RbacService = _chunk3D2MCVRZjs.RbacService; exports.ReferralModule = _chunkIV4DTYXNjs.ReferralModule; exports.ReferralService = _chunkIV4DTYXNjs.ReferralService; exports.ReferralStats = _chunkIV4DTYXNjs.ReferralStats; exports.ReferralStatsModule = _chunkIV4DTYXNjs.ReferralStatsModule; exports.RehydrationFactory = _chunkIV4DTYXNjs.RehydrationFactory; exports.Role = _chunkIV4DTYXNjs.Role; exports.RoleFields = _chunkIV4DTYXNjs.RoleFields; exports.RoleModule = _chunkIV4DTYXNjs.RoleModule; exports.RoleService = _chunkIV4DTYXNjs.RoleService; exports.S3 = _chunkIV4DTYXNjs.S3; exports.S3Module = _chunkIV4DTYXNjs.S3Module; exports.S3Service = _chunkIV4DTYXNjs.S3Service; exports.StripeCustomer = _chunkIV4DTYXNjs.StripeCustomer; exports.StripeCustomerModule = _chunkIV4DTYXNjs.StripeCustomerModule; exports.StripeCustomerService = _chunkIV4DTYXNjs.StripeCustomerService; exports.StripeInvoice = _chunkIV4DTYXNjs.StripeInvoice; exports.StripeInvoiceModule = _chunkIV4DTYXNjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkIV4DTYXNjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkIV4DTYXNjs.StripePaymentMethodModule; exports.StripePrice = _chunkIV4DTYXNjs.StripePrice; exports.StripePriceFields = _chunkIV4DTYXNjs.StripePriceFields; exports.StripePriceModule = _chunkIV4DTYXNjs.StripePriceModule; exports.StripePriceService = _chunkIV4DTYXNjs.StripePriceService; exports.StripeProduct = _chunkIV4DTYXNjs.StripeProduct; exports.StripeProductFields = _chunkIV4DTYXNjs.StripeProductFields; exports.StripeProductModule = _chunkIV4DTYXNjs.StripeProductModule; exports.StripeProductService = _chunkIV4DTYXNjs.StripeProductService; exports.StripePromotionCode = _chunkIV4DTYXNjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkIV4DTYXNjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkIV4DTYXNjs.StripePromotionCodeService; exports.StripeSubscription = _chunkIV4DTYXNjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkIV4DTYXNjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkIV4DTYXNjs.StripeSubscriptionService; exports.StripeUsage = _chunkIV4DTYXNjs.StripeUsage; exports.StripeUsageModule = _chunkIV4DTYXNjs.StripeUsageModule; exports.StripeUsageService = _chunkIV4DTYXNjs.StripeUsageService; exports.SubscriptionStatus = _chunkIV4DTYXNjs.SubscriptionStatus; exports.TableOptions = _chunkIV4DTYXNjs.TableOptions; exports.TokenUsageAdminBreakdownModule = _chunkIV4DTYXNjs.TokenUsageAdminBreakdownModule; exports.TokenUsageAdminSummaryModule = _chunkIV4DTYXNjs.TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = _chunkIV4DTYXNjs.TokenUsageAdminTimelineModule; exports.TotpAuthenticator = _chunkIV4DTYXNjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkIV4DTYXNjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkIV4DTYXNjs.TotpSetup; exports.TotpSetupModule = _chunkIV4DTYXNjs.TotpSetupModule; exports.TotpVerify = _chunkIV4DTYXNjs.TotpVerify; exports.TotpVerifyLogin = _chunkIV4DTYXNjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkIV4DTYXNjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkIV4DTYXNjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkIV4DTYXNjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkIV4DTYXNjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkIV4DTYXNjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkIV4DTYXNjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkIV4DTYXNjs.TwoFactorService; exports.TwoFactorStatus = _chunkIV4DTYXNjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkIV4DTYXNjs.TwoFactorStatusModule; exports.User = _chunkIV4DTYXNjs.User; exports.UserFields = _chunkIV4DTYXNjs.UserFields; exports.UserModule = _chunkIV4DTYXNjs.UserModule; exports.UserService = _chunkIV4DTYXNjs.UserService; exports.VIEWPORT_COOKIE_NAME = _chunkIV4DTYXNjs.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunkIV4DTYXNjs.Waitlist; exports.WaitlistModule = _chunkIV4DTYXNjs.WaitlistModule; exports.WaitlistService = _chunkIV4DTYXNjs.WaitlistService; exports.WaitlistStats = _chunkIV4DTYXNjs.WaitlistStats; exports.WaitlistStatsModule = _chunkIV4DTYXNjs.WaitlistStatsModule; exports.checkPermissions = _chunkIV4DTYXNjs.checkPermissions; exports.checkPermissionsFromServer = _chunkIV4DTYXNjs.checkPermissionsFromServer; exports.clearLastApiMeta = _chunkIV4DTYXNjs.clearLastApiMeta; exports.clearLastApiTotal = _chunkIV4DTYXNjs.clearLastApiTotal; exports.cn = _chunkIV4DTYXNjs.cn; exports.composeRefs = _chunkIV4DTYXNjs.composeRefs; exports.configureAuth = _chunkIV4DTYXNjs.configureAuth; exports.configureI18n = _chunk3D2MCVRZjs.configureI18n; exports.configureJsonApi = _chunk3D2MCVRZjs.configureJsonApi; exports.configureLogin = _chunk3D2MCVRZjs.configureLogin; exports.configureReferral = _chunk3D2MCVRZjs.configureReferral; exports.configureRoles = _chunk3D2MCVRZjs.configureRoles; exports.configureTokenUsage = _chunkIV4DTYXNjs.configureTokenUsage; exports.configureWaitlist = _chunk3D2MCVRZjs.configureWaitlist; exports.createJsonApiInclusion = _chunkIV4DTYXNjs.createJsonApiInclusion; exports.dismissToast = _chunkIV4DTYXNjs.dismissToast; exports.entityObjectSchema = _chunkIV4DTYXNjs.entityObjectSchema; exports.exists = _chunkIV4DTYXNjs.exists; exports.formatCodiceFiscale = _chunkIV4DTYXNjs.formatCodiceFiscale; exports.formatDate = _chunkIV4DTYXNjs.formatDate; exports.formatLocalDate = _chunkIV4DTYXNjs.formatLocalDate; exports.formatPartitaIva = _chunkIV4DTYXNjs.formatPartitaIva; exports.getApiUrl = _chunk3D2MCVRZjs.getApiUrl; exports.getAppUrl = _chunk3D2MCVRZjs.getAppUrl; exports.getBootstrapper = _chunkLU7DJ4QFjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkIV4DTYXNjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkIV4DTYXNjs.getGlobalErrorHandler; exports.getIcon = _chunkIV4DTYXNjs.getIcon; exports.getIconByModule = _chunkIV4DTYXNjs.getIconByModule; exports.getIconByModuleName = _chunkIV4DTYXNjs.getIconByModuleName; exports.getInitials = _chunkIV4DTYXNjs.getInitials; exports.getLastApiMeta = _chunkIV4DTYXNjs.getLastApiMeta; exports.getLastApiTotal = _chunkIV4DTYXNjs.getLastApiTotal; exports.getLucideIcon = _chunkIV4DTYXNjs.getLucideIcon; exports.getLucideIconByModule = _chunkIV4DTYXNjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkIV4DTYXNjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunk3D2MCVRZjs.getPublicApiUrl; exports.getReferralConfig = _chunk3D2MCVRZjs.getReferralConfig; exports.getRoleId = _chunk3D2MCVRZjs.getRoleId; exports.getStripePublishableKey = _chunk3D2MCVRZjs.getStripePublishableKey; exports.getTableComponents = _chunkIV4DTYXNjs.getTableComponents; exports.getTableOptions = _chunkIV4DTYXNjs.getTableOptions; exports.getTokenHandler = _chunkIV4DTYXNjs.getTokenHandler; exports.getTokenUsageCurrency = _chunkIV4DTYXNjs.getTokenUsageCurrency; exports.getTrackablePages = _chunk3D2MCVRZjs.getTrackablePages; exports.getValueFromPath = _chunkIV4DTYXNjs.getValueFromPath; exports.getWaitlistConfig = _chunk3D2MCVRZjs.getWaitlistConfig; exports.handbookPageContent = _chunkIV4DTYXNjs.handbookPageContent; exports.handbookPageSummary = _chunkIV4DTYXNjs.handbookPageSummary; exports.handbookPageTitle = _chunkIV4DTYXNjs.handbookPageTitle; exports.handbookSectionSummary = _chunkIV4DTYXNjs.handbookSectionSummary; exports.handbookSectionTitle = _chunkIV4DTYXNjs.handbookSectionTitle; exports.hasBootstrapper = _chunkLU7DJ4QFjs.hasBootstrapper; exports.isReferralEnabled = _chunk3D2MCVRZjs.isReferralEnabled; exports.isRemoteImageSrc = _chunkIV4DTYXNjs.isRemoteImageSrc; exports.isRolesConfigured = _chunk3D2MCVRZjs.isRolesConfigured; exports.rehydrate = _chunkIV4DTYXNjs.rehydrate; exports.rehydrateList = _chunkIV4DTYXNjs.rehydrateList; exports.resetBootstrapStore = _chunkLU7DJ4QFjs.resetBootstrapStore; exports.setBootstrapper = _chunkLU7DJ4QFjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkIV4DTYXNjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkIV4DTYXNjs.setGlobalErrorHandler; exports.showCustomToast = _chunkIV4DTYXNjs.showCustomToast; exports.showError = _chunkIV4DTYXNjs.showError; exports.showToast = _chunkIV4DTYXNjs.showToast; exports.tokenUsageModules = _chunkIV4DTYXNjs.tokenUsageModules; exports.translateData = _chunkLU7DJ4QFjs.translateData; exports.translateResponse = _chunkLU7DJ4QFjs.translateResponse; exports.tryBootstrap = _chunkLU7DJ4QFjs.tryBootstrap; exports.useComposedRefs = _chunkIV4DTYXNjs.useComposedRefs; exports.useIsMobile = _chunkIV4DTYXNjs.useIsMobile; exports.userObjectSchema = _chunkIV4DTYXNjs.userObjectSchema; exports.validateCodiceFiscale = _chunkIV4DTYXNjs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunkIV4DTYXNjs.validateItalianTaxCode; exports.validatePartitaIva = _chunkIV4DTYXNjs.validatePartitaIva;
518
+ exports.ACTION_TYPES = _chunk3AR4KA5Djs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkU7QVISQSjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkU7QVISQSjs.AbstractApiData; exports.AbstractService = _chunkU7QVISQSjs.AbstractService; exports.Action = _chunkU7QVISQSjs.Action; exports.AiConnection = _chunkU7QVISQSjs.AiConnection; exports.AiConnectionFields = _chunkU7QVISQSjs.AiConnectionFields; exports.AiConnectionModule = _chunkU7QVISQSjs.AiConnectionModule; exports.AiConnectionService = _chunkU7QVISQSjs.AiConnectionService; exports.Assistant = _chunkU7QVISQSjs.Assistant; exports.AssistantAction = _chunkU7QVISQSjs.AssistantAction; exports.AssistantActionModule = _chunkU7QVISQSjs.AssistantActionModule; exports.AssistantActionService = _chunkU7QVISQSjs.AssistantActionService; exports.AssistantMessage = _chunkU7QVISQSjs.AssistantMessage; exports.AssistantMessageModule = _chunkU7QVISQSjs.AssistantMessageModule; exports.AssistantMessageService = _chunkU7QVISQSjs.AssistantMessageService; exports.AssistantModule = _chunkU7QVISQSjs.AssistantModule; exports.AssistantService = _chunkU7QVISQSjs.AssistantService; exports.AuditLog = _chunkU7QVISQSjs.AuditLog; exports.AuditLogModule = _chunkU7QVISQSjs.AuditLogModule; exports.AuditLogService = _chunkU7QVISQSjs.AuditLogService; exports.Auth = _chunkU7QVISQSjs.Auth; exports.AuthComponent = _chunkU7QVISQSjs.AuthComponent; exports.AuthModule = _chunkU7QVISQSjs.AuthModule; exports.AuthService = _chunkU7QVISQSjs.AuthService; exports.AuthorModule = _chunkU7QVISQSjs.AuthorModule; exports.BackupCodeVerify = _chunkU7QVISQSjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkU7QVISQSjs.BackupCodeVerifyModule; exports.Billing = _chunkU7QVISQSjs.Billing; exports.BillingModule = _chunkU7QVISQSjs.BillingModule; exports.BillingService = _chunkU7QVISQSjs.BillingService; exports.BlockNoteDiffUtil = _chunkU7QVISQSjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkU7QVISQSjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunk3AR4KA5Djs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.CURRENT_USER_STORAGE_KEY = _chunkU7QVISQSjs.CURRENT_USER_STORAGE_KEY; exports.Chunk = _chunkU7QVISQSjs.Chunk; exports.ChunkModule = _chunkU7QVISQSjs.ChunkModule; exports.ClientAbstractService = _chunkU7QVISQSjs.ClientAbstractService; exports.ClientHttpMethod = _chunkU7QVISQSjs.ClientHttpMethod; exports.Company = _chunkU7QVISQSjs.Company; exports.CompanyFields = _chunkU7QVISQSjs.CompanyFields; exports.CompanyModule = _chunkU7QVISQSjs.CompanyModule; exports.CompanyService = _chunkU7QVISQSjs.CompanyService; exports.Content = _chunkU7QVISQSjs.Content; exports.ContentFields = _chunkU7QVISQSjs.ContentFields; exports.ContentModule = _chunkU7QVISQSjs.ContentModule; exports.ContentService = _chunkU7QVISQSjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkU7QVISQSjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkYXRVPEEJjs.DataClassRegistry; exports.DataClassRegistry = _chunkYXRVPEEJjs.DataClassRegistry; exports.ENV = _chunkYXRVPEEJjs.ENV; exports.EndpointCreator = _chunkU7QVISQSjs.EndpointCreator; exports.EntityAiStatus = _chunkU7QVISQSjs.EntityAiStatus; exports.Feature = _chunkU7QVISQSjs.Feature; exports.FeatureModule = _chunkU7QVISQSjs.FeatureModule; exports.FeatureService = _chunkU7QVISQSjs.FeatureService; exports.HandbookPage = _chunkU7QVISQSjs.HandbookPage; exports.HandbookPageFields = _chunkU7QVISQSjs.HandbookPageFields; exports.HandbookPageModule = _chunkU7QVISQSjs.HandbookPageModule; exports.HandbookPageService = _chunkU7QVISQSjs.HandbookPageService; exports.HandbookSection = _chunkU7QVISQSjs.HandbookSection; exports.HandbookSectionModule = _chunkU7QVISQSjs.HandbookSectionModule; exports.HandbookSectionService = _chunkU7QVISQSjs.HandbookSectionService; exports.HandbookThread = _chunkU7QVISQSjs.HandbookThread; exports.HandbookThreadMessage = _chunkU7QVISQSjs.HandbookThreadMessage; exports.HandbookThreadMessageModule = _chunkU7QVISQSjs.HandbookThreadMessageModule; exports.HandbookThreadMessageService = _chunkU7QVISQSjs.HandbookThreadMessageService; exports.HandbookThreadModule = _chunkU7QVISQSjs.HandbookThreadModule; exports.HandbookThreadService = _chunkU7QVISQSjs.HandbookThreadService; exports.HowTo = _chunkU7QVISQSjs.HowTo; exports.HowToFields = _chunkU7QVISQSjs.HowToFields; exports.HowToModule = _chunkU7QVISQSjs.HowToModule; exports.HowToService = _chunkU7QVISQSjs.HowToService; exports.HttpMethod = _chunkU7QVISQSjs.HttpMethod; exports.InvoiceStatus = _chunkU7QVISQSjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkYXRVPEEJjs.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunkU7QVISQSjs.MOBILE_BREAKPOINT; exports.Module = _chunkU7QVISQSjs.Module; exports.ModuleModule = _chunkU7QVISQSjs.ModuleModule; exports.ModulePaths = _chunkU7QVISQSjs.ModulePaths; exports.ModulePathsModule = _chunkU7QVISQSjs.ModulePathsModule; exports.ModuleRegistrar = _chunkU7QVISQSjs.ModuleRegistrar; exports.ModuleRegistry = _chunkU7QVISQSjs.ModuleRegistry; exports.Modules = _chunkU7QVISQSjs.Modules; exports.Notification = _chunkU7QVISQSjs.Notification; exports.NotificationFields = _chunkU7QVISQSjs.NotificationFields; exports.NotificationModule = _chunkU7QVISQSjs.NotificationModule; exports.NotificationService = _chunkU7QVISQSjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkU7QVISQSjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkU7QVISQSjs.OAuthClient; exports.OAuthModule = _chunkU7QVISQSjs.OAuthModule; exports.OAuthService = _chunkU7QVISQSjs.OAuthService; exports.Passkey = _chunkU7QVISQSjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkU7QVISQSjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkU7QVISQSjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkU7QVISQSjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkU7QVISQSjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkU7QVISQSjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkU7QVISQSjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkU7QVISQSjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkU7QVISQSjs.PasskeyRename; exports.PasskeyRenameModule = _chunkU7QVISQSjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkU7QVISQSjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkU7QVISQSjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkU7QVISQSjs.PaymentMethod; exports.PermissionMapping = _chunkU7QVISQSjs.PermissionMapping; exports.PermissionMappingModule = _chunkU7QVISQSjs.PermissionMappingModule; exports.Push = _chunkU7QVISQSjs.Push; exports.PushModule = _chunkU7QVISQSjs.PushModule; exports.PushService = _chunkU7QVISQSjs.PushService; exports.RbacMatrixModel = _chunkU7QVISQSjs.RbacMatrixModel; exports.RbacMatrixModule = _chunkU7QVISQSjs.RbacMatrixModule; exports.RbacService = _chunk3AR4KA5Djs.RbacService; exports.ReferralModule = _chunkU7QVISQSjs.ReferralModule; exports.ReferralService = _chunkU7QVISQSjs.ReferralService; exports.ReferralStats = _chunkU7QVISQSjs.ReferralStats; exports.ReferralStatsModule = _chunkU7QVISQSjs.ReferralStatsModule; exports.RehydrationFactory = _chunkU7QVISQSjs.RehydrationFactory; exports.Role = _chunkU7QVISQSjs.Role; exports.RoleFields = _chunkU7QVISQSjs.RoleFields; exports.RoleModule = _chunkU7QVISQSjs.RoleModule; exports.RoleService = _chunkU7QVISQSjs.RoleService; exports.S3 = _chunkU7QVISQSjs.S3; exports.S3Module = _chunkU7QVISQSjs.S3Module; exports.S3Service = _chunkU7QVISQSjs.S3Service; exports.StripeCustomer = _chunkU7QVISQSjs.StripeCustomer; exports.StripeCustomerModule = _chunkU7QVISQSjs.StripeCustomerModule; exports.StripeCustomerService = _chunkU7QVISQSjs.StripeCustomerService; exports.StripeInvoice = _chunkU7QVISQSjs.StripeInvoice; exports.StripeInvoiceModule = _chunkU7QVISQSjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkU7QVISQSjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkU7QVISQSjs.StripePaymentMethodModule; exports.StripePrice = _chunkU7QVISQSjs.StripePrice; exports.StripePriceFields = _chunkU7QVISQSjs.StripePriceFields; exports.StripePriceModule = _chunkU7QVISQSjs.StripePriceModule; exports.StripePriceService = _chunkU7QVISQSjs.StripePriceService; exports.StripeProduct = _chunkU7QVISQSjs.StripeProduct; exports.StripeProductFields = _chunkU7QVISQSjs.StripeProductFields; exports.StripeProductModule = _chunkU7QVISQSjs.StripeProductModule; exports.StripeProductService = _chunkU7QVISQSjs.StripeProductService; exports.StripePromotionCode = _chunkU7QVISQSjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkU7QVISQSjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkU7QVISQSjs.StripePromotionCodeService; exports.StripeSubscription = _chunkU7QVISQSjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkU7QVISQSjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkU7QVISQSjs.StripeSubscriptionService; exports.StripeUsage = _chunkU7QVISQSjs.StripeUsage; exports.StripeUsageModule = _chunkU7QVISQSjs.StripeUsageModule; exports.StripeUsageService = _chunkU7QVISQSjs.StripeUsageService; exports.SubscriptionStatus = _chunkU7QVISQSjs.SubscriptionStatus; exports.TableOptions = _chunkU7QVISQSjs.TableOptions; exports.TokenUsageAdminBreakdownModule = _chunkU7QVISQSjs.TokenUsageAdminBreakdownModule; exports.TokenUsageAdminSummaryModule = _chunkU7QVISQSjs.TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = _chunkU7QVISQSjs.TokenUsageAdminTimelineModule; exports.TotpAuthenticator = _chunkU7QVISQSjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkU7QVISQSjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkU7QVISQSjs.TotpSetup; exports.TotpSetupModule = _chunkU7QVISQSjs.TotpSetupModule; exports.TotpVerify = _chunkU7QVISQSjs.TotpVerify; exports.TotpVerifyLogin = _chunkU7QVISQSjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkU7QVISQSjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkU7QVISQSjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkU7QVISQSjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkU7QVISQSjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkU7QVISQSjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkU7QVISQSjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkU7QVISQSjs.TwoFactorService; exports.TwoFactorStatus = _chunkU7QVISQSjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkU7QVISQSjs.TwoFactorStatusModule; exports.User = _chunkU7QVISQSjs.User; exports.UserFields = _chunkU7QVISQSjs.UserFields; exports.UserModule = _chunkU7QVISQSjs.UserModule; exports.UserService = _chunkU7QVISQSjs.UserService; exports.VIEWPORT_COOKIE_NAME = _chunkU7QVISQSjs.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunkU7QVISQSjs.Waitlist; exports.WaitlistModule = _chunkU7QVISQSjs.WaitlistModule; exports.WaitlistService = _chunkU7QVISQSjs.WaitlistService; exports.WaitlistStats = _chunkU7QVISQSjs.WaitlistStats; exports.WaitlistStatsModule = _chunkU7QVISQSjs.WaitlistStatsModule; exports.checkPermissions = _chunkU7QVISQSjs.checkPermissions; exports.checkPermissionsFromServer = _chunkU7QVISQSjs.checkPermissionsFromServer; exports.clearLastApiMeta = _chunkU7QVISQSjs.clearLastApiMeta; exports.clearLastApiTotal = _chunkU7QVISQSjs.clearLastApiTotal; exports.cn = _chunkU7QVISQSjs.cn; exports.composeRefs = _chunkU7QVISQSjs.composeRefs; exports.configureAuth = _chunkU7QVISQSjs.configureAuth; exports.configureI18n = _chunk3AR4KA5Djs.configureI18n; exports.configureJsonApi = _chunk3AR4KA5Djs.configureJsonApi; exports.configureLogin = _chunk3AR4KA5Djs.configureLogin; exports.configureReferral = _chunk3AR4KA5Djs.configureReferral; exports.configureRoles = _chunk3AR4KA5Djs.configureRoles; exports.configureTokenUsage = _chunkU7QVISQSjs.configureTokenUsage; exports.configureWaitlist = _chunk3AR4KA5Djs.configureWaitlist; exports.createJsonApiInclusion = _chunkU7QVISQSjs.createJsonApiInclusion; exports.dismissToast = _chunkU7QVISQSjs.dismissToast; exports.entityObjectSchema = _chunkU7QVISQSjs.entityObjectSchema; exports.exists = _chunkU7QVISQSjs.exists; exports.formatCodiceFiscale = _chunkU7QVISQSjs.formatCodiceFiscale; exports.formatDate = _chunkU7QVISQSjs.formatDate; exports.formatLocalDate = _chunkU7QVISQSjs.formatLocalDate; exports.formatPartitaIva = _chunkU7QVISQSjs.formatPartitaIva; exports.getApiUrl = _chunk3AR4KA5Djs.getApiUrl; exports.getAppUrl = _chunk3AR4KA5Djs.getAppUrl; exports.getBootstrapper = _chunkYXRVPEEJjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkU7QVISQSjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkU7QVISQSjs.getGlobalErrorHandler; exports.getIcon = _chunkU7QVISQSjs.getIcon; exports.getIconByModule = _chunkU7QVISQSjs.getIconByModule; exports.getIconByModuleName = _chunkU7QVISQSjs.getIconByModuleName; exports.getInitials = _chunkU7QVISQSjs.getInitials; exports.getLastApiMeta = _chunkU7QVISQSjs.getLastApiMeta; exports.getLastApiTotal = _chunkU7QVISQSjs.getLastApiTotal; exports.getLucideIcon = _chunkU7QVISQSjs.getLucideIcon; exports.getLucideIconByModule = _chunkU7QVISQSjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkU7QVISQSjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunk3AR4KA5Djs.getPublicApiUrl; exports.getReferralConfig = _chunk3AR4KA5Djs.getReferralConfig; exports.getRoleId = _chunk3AR4KA5Djs.getRoleId; exports.getStripePublishableKey = _chunk3AR4KA5Djs.getStripePublishableKey; exports.getTableComponents = _chunkU7QVISQSjs.getTableComponents; exports.getTableOptions = _chunkU7QVISQSjs.getTableOptions; exports.getTokenHandler = _chunkU7QVISQSjs.getTokenHandler; exports.getTokenUsageCurrency = _chunkU7QVISQSjs.getTokenUsageCurrency; exports.getTrackablePages = _chunk3AR4KA5Djs.getTrackablePages; exports.getValueFromPath = _chunkU7QVISQSjs.getValueFromPath; exports.getWaitlistConfig = _chunk3AR4KA5Djs.getWaitlistConfig; exports.handbookPageContent = _chunkU7QVISQSjs.handbookPageContent; exports.handbookPageSummary = _chunkU7QVISQSjs.handbookPageSummary; exports.handbookPageTitle = _chunkU7QVISQSjs.handbookPageTitle; exports.handbookSectionSummary = _chunkU7QVISQSjs.handbookSectionSummary; exports.handbookSectionTitle = _chunkU7QVISQSjs.handbookSectionTitle; exports.hasBootstrapper = _chunkYXRVPEEJjs.hasBootstrapper; exports.isReferralEnabled = _chunk3AR4KA5Djs.isReferralEnabled; exports.isRemoteImageSrc = _chunkU7QVISQSjs.isRemoteImageSrc; exports.isRolesConfigured = _chunk3AR4KA5Djs.isRolesConfigured; exports.rehydrate = _chunkU7QVISQSjs.rehydrate; exports.rehydrateList = _chunkU7QVISQSjs.rehydrateList; exports.resetBootstrapStore = _chunkYXRVPEEJjs.resetBootstrapStore; exports.setBootstrapper = _chunkYXRVPEEJjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkU7QVISQSjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkU7QVISQSjs.setGlobalErrorHandler; exports.showCustomToast = _chunkU7QVISQSjs.showCustomToast; exports.showError = _chunkU7QVISQSjs.showError; exports.showToast = _chunkU7QVISQSjs.showToast; exports.tokenUsageModules = _chunkU7QVISQSjs.tokenUsageModules; exports.translateData = _chunkYXRVPEEJjs.translateData; exports.translateResponse = _chunkYXRVPEEJjs.translateResponse; exports.tryBootstrap = _chunkYXRVPEEJjs.tryBootstrap; exports.useComposedRefs = _chunkU7QVISQSjs.useComposedRefs; exports.useIsMobile = _chunkU7QVISQSjs.useIsMobile; exports.userObjectSchema = _chunkU7QVISQSjs.userObjectSchema; exports.validateCodiceFiscale = _chunkU7QVISQSjs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunkU7QVISQSjs.validateItalianTaxCode; exports.validatePartitaIva = _chunkU7QVISQSjs.validatePartitaIva;
519
519
  //# sourceMappingURL=index.js.map
package/dist/index.mjs CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  getWaitlistConfig,
19
19
  isReferralEnabled,
20
20
  isRolesConfigured
21
- } from "./chunk-HAI7G6MD.mjs";
21
+ } from "./chunk-ZJI5ZZW5.mjs";
22
22
  import {
23
23
  AVAILABLE_OAUTH_SCOPES,
24
24
  AbstractApiData,
@@ -244,9 +244,9 @@ import {
244
244
  validateCodiceFiscale,
245
245
  validateItalianTaxCode,
246
246
  validatePartitaIva
247
- } from "./chunk-2O3SFHQ7.mjs";
247
+ } from "./chunk-IBVKPLHT.mjs";
248
248
  import "./chunk-AUXK7QSA.mjs";
249
- import "./chunk-C7C7VY4F.mjs";
249
+ import "./chunk-PI56A4DG.mjs";
250
250
  import {
251
251
  DataClassRegistry,
252
252
  ENV,
@@ -258,7 +258,7 @@ import {
258
258
  translateData,
259
259
  translateResponse,
260
260
  tryBootstrap
261
- } from "./chunk-BMVA2IM5.mjs";
261
+ } from "./chunk-T76WLDE5.mjs";
262
262
  import "./chunk-PAWJFY3S.mjs";
263
263
  export {
264
264
  ACTION_TYPES,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  directFetch
4
- } from "./chunk-C7C7VY4F.mjs";
4
+ } from "./chunk-PI56A4DG.mjs";
5
5
  import "./chunk-PAWJFY3S.mjs";
6
6
  export {
7
7
  directFetch
8
8
  };
9
- //# sourceMappingURL=request-FYMQK5CX.mjs.map
9
+ //# sourceMappingURL=request-5RLK2AM3.mjs.map
@@ -0,0 +1,9 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+
4
+ var _chunkJTPRJNT2js = require('./chunk-JTPRJNT2.js');
5
+ require('./chunk-7QVYU63E.js');
6
+
7
+
8
+ exports.directFetch = _chunkJTPRJNT2js.directFetch;
9
+ //# sourceMappingURL=request-EUGTI3BE.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/request-ZYY6RI5X.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACF,mDAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/request-ZYY6RI5X.js"}
1
+ {"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/request-EUGTI3BE.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACF,mDAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/request-EUGTI3BE.js"}
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  serverRequest
3
- } from "./chunk-IEJYBQ6J.mjs";
3
+ } from "./chunk-SJLXPHK5.mjs";
4
4
  import "./chunk-PAWJFY3S.mjs";
5
5
  export {
6
6
  serverRequest
7
7
  };
8
- //# sourceMappingURL=request-6VYDNP5T.mjs.map
8
+ //# sourceMappingURL=request-FXF63NSQ.mjs.map
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk5TRFNKJSjs = require('./chunk-5TRFNKJS.js');
4
+ require('./chunk-7QVYU63E.js');
5
+
6
+
7
+ exports.serverRequest = _chunk5TRFNKJSjs.serverRequest;
8
+ //# sourceMappingURL=request-ZTX6I63X.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/request-ZTX6I63X.js"],"names":[],"mappings":"AAAA;AACE;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACF,uDAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/request-ZTX6I63X.js"}
@@ -228,6 +228,7 @@ declare class NotificationService extends AbstractService {
228
228
  static findMany(params: {
229
229
  isArchived?: boolean;
230
230
  next?: NextRef;
231
+ suppressGlobalError?: boolean;
231
232
  }): Promise<NotificationInterface[]>;
232
233
  static markAsRead(params: {
233
234
  data: any;
@@ -228,6 +228,7 @@ declare class NotificationService extends AbstractService {
228
228
  static findMany(params: {
229
229
  isArchived?: boolean;
230
230
  next?: NextRef;
231
+ suppressGlobalError?: boolean;
231
232
  }): Promise<NotificationInterface[]>;
232
233
  static markAsRead(params: {
233
234
  data: any;
@@ -2,7 +2,7 @@ import { A as ApiData } from '../ApiData-DPKNfY-9.mjs';
2
2
  import { M as ModuleWithPermissions, A as Action } from '../types-Bq_UA8Lg.mjs';
3
3
  import { A as ApiRequestDataTypeInterface } from '../ApiRequestDataTypeInterface-CYEcRUrh.mjs';
4
4
  import { A as ApiResponseInterface } from '../ApiResponseInterface-rsXRL_Hn.mjs';
5
- export { A as ServerAuthService, C as ServerCompanyService, a as ServerContentService, F as ServerFeatureService, N as ServerNotificationService, P as ServerPushService, R as ServerRoleService, S as ServerS3Service, U as ServerUserService } from '../s3.service-DaRFLnrX.mjs';
5
+ export { A as ServerAuthService, C as ServerCompanyService, a as ServerContentService, F as ServerFeatureService, N as ServerNotificationService, P as ServerPushService, R as ServerRoleService, S as ServerS3Service, U as ServerUserService } from '../s3.service-Buiy1ncj.mjs';
6
6
  import 'lucide-react';
7
7
  import '../ApiDataInterface-BcZeXy5X.mjs';
8
8
  import '../AbstractService-Ckm2X5fW.mjs';
@@ -2,7 +2,7 @@ import { A as ApiData } from '../ApiData-DPKNfY-9.js';
2
2
  import { M as ModuleWithPermissions, A as Action } from '../types-bsm8Fp55.js';
3
3
  import { A as ApiRequestDataTypeInterface } from '../ApiRequestDataTypeInterface-CYEcRUrh.js';
4
4
  import { A as ApiResponseInterface } from '../ApiResponseInterface-CWLvSCvS.js';
5
- export { A as ServerAuthService, C as ServerCompanyService, a as ServerContentService, F as ServerFeatureService, N as ServerNotificationService, P as ServerPushService, R as ServerRoleService, S as ServerS3Service, U as ServerUserService } from '../s3.service-DJHqEZAp.js';
5
+ export { A as ServerAuthService, C as ServerCompanyService, a as ServerContentService, F as ServerFeatureService, N as ServerNotificationService, P as ServerPushService, R as ServerRoleService, S as ServerS3Service, U as ServerUserService } from '../s3.service-Bqr-fQmi.js';
6
6
  import 'lucide-react';
7
7
  import '../ApiDataInterface-BcZeXy5X.js';
8
8
  import '../AbstractService-V3VGQMhL.js';
@@ -3,7 +3,7 @@
3
3
  var _chunkYUO55Q5Ajs = require('../chunk-YUO55Q5A.js');
4
4
 
5
5
 
6
- var _chunkIOLU4ASDjs = require('../chunk-IOLU4ASD.js');
6
+ var _chunk5TRFNKJSjs = require('../chunk-5TRFNKJS.js');
7
7
 
8
8
 
9
9
 
@@ -15,14 +15,14 @@ var _chunkIOLU4ASDjs = require('../chunk-IOLU4ASD.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkIV4DTYXNjs = require('../chunk-IV4DTYXN.js');
18
+ var _chunkU7QVISQSjs = require('../chunk-U7QVISQS.js');
19
19
  require('../chunk-LXKSUWAV.js');
20
- require('../chunk-IBS6NI7D.js');
20
+ require('../chunk-JTPRJNT2.js');
21
21
 
22
22
 
23
23
 
24
24
 
25
- var _chunkLU7DJ4QFjs = require('../chunk-LU7DJ4QF.js');
25
+ var _chunkYXRVPEEJjs = require('../chunk-YXRVPEEJ.js');
26
26
 
27
27
 
28
28
  var _chunk7QVYU63Ejs = require('../chunk-7QVYU63E.js');
@@ -87,7 +87,7 @@ var ServerSession = class {
87
87
  if (!rawModules) return false;
88
88
  const modules = JSON.parse(_pako.ungzip.call(void 0, Buffer.from(rawModules, "base64"), { toText: true }));
89
89
  const selectedModule = modules.find((module) => module.id === params.module.moduleId);
90
- return _chunkIV4DTYXNjs.checkPermissionsFromServer.call(void 0, {
90
+ return _chunkU7QVISQSjs.checkPermissionsFromServer.call(void 0, {
91
91
  module: params.module,
92
92
  action: params.action,
93
93
  data: params.data,
@@ -110,7 +110,7 @@ function getServerApiUrl() {
110
110
  if (_optionalChain([_serverConfig, 'optionalAccess', _19 => _19.apiUrl])) {
111
111
  return _serverConfig.apiUrl;
112
112
  }
113
- const envUrl = _chunkLU7DJ4QFjs.ENV.API_URL;
113
+ const envUrl = _chunkYXRVPEEJjs.ENV.API_URL;
114
114
  if (!envUrl) {
115
115
  throw new Error(
116
116
  "API URL not configured. Use configureServerJsonApi() or set NEXT_PUBLIC_API_URL environment variable."
@@ -123,7 +123,7 @@ function getServerAppUrl() {
123
123
  if (_optionalChain([_serverConfig, 'optionalAccess', _20 => _20.appUrl])) {
124
124
  return _serverConfig.appUrl;
125
125
  }
126
- const envUrl = _chunkLU7DJ4QFjs.ENV.APP_URL;
126
+ const envUrl = _chunkYXRVPEEJjs.ENV.APP_URL;
127
127
  if (!envUrl) {
128
128
  throw new Error(
129
129
  "App URL not configured. Use configureServerJsonApi({ appUrl }) or set NEXT_PUBLIC_ADDRESS environment variable."
@@ -150,7 +150,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, buildServerUrl, "buildServerUrl");
150
150
  async function ServerJsonApiGet(params) {
151
151
  runServerBootstrapper();
152
152
  const token = await _chunkYUO55Q5Ajs.getServerToken.call(void 0, );
153
- const apiResponse = await _chunkIOLU4ASDjs.serverRequest.call(void 0, {
153
+ const apiResponse = await _chunk5TRFNKJSjs.serverRequest.call(void 0, {
154
154
  method: "GET",
155
155
  url: buildServerUrl(params.endpoint),
156
156
  token,
@@ -159,7 +159,7 @@ async function ServerJsonApiGet(params) {
159
159
  language: params.language,
160
160
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _23 => _23.additionalHeaders])
161
161
  });
162
- return _chunkLU7DJ4QFjs.translateResponse.call(void 0, {
162
+ return _chunkYXRVPEEJjs.translateResponse.call(void 0, {
163
163
  classKey: params.classKey,
164
164
  apiResponse,
165
165
  companyId: params.companyId,
@@ -180,9 +180,9 @@ async function ServerJsonApiPost(params) {
180
180
  if (!body) {
181
181
  body = {};
182
182
  } else if (params.overridesJsonApiCreation !== true) {
183
- body = _chunkLU7DJ4QFjs.JsonApiDataFactory.create(params.classKey, body);
183
+ body = _chunkYXRVPEEJjs.JsonApiDataFactory.create(params.classKey, body);
184
184
  }
185
- const apiResponse = await _chunkIOLU4ASDjs.serverRequest.call(void 0, {
185
+ const apiResponse = await _chunk5TRFNKJSjs.serverRequest.call(void 0, {
186
186
  method: "POST",
187
187
  url: buildServerUrl(params.endpoint),
188
188
  token,
@@ -192,7 +192,7 @@ async function ServerJsonApiPost(params) {
192
192
  language: params.language,
193
193
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _24 => _24.additionalHeaders])
194
194
  });
195
- return _chunkLU7DJ4QFjs.translateResponse.call(void 0, {
195
+ return _chunkYXRVPEEJjs.translateResponse.call(void 0, {
196
196
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
197
197
  apiResponse,
198
198
  companyId: params.companyId,
@@ -207,9 +207,9 @@ async function ServerJsonApiPut(params) {
207
207
  if (!body) {
208
208
  body = {};
209
209
  } else {
210
- body = _chunkLU7DJ4QFjs.JsonApiDataFactory.create(params.classKey, body);
210
+ body = _chunkYXRVPEEJjs.JsonApiDataFactory.create(params.classKey, body);
211
211
  }
212
- const apiResponse = await _chunkIOLU4ASDjs.serverRequest.call(void 0, {
212
+ const apiResponse = await _chunk5TRFNKJSjs.serverRequest.call(void 0, {
213
213
  method: "PUT",
214
214
  url: buildServerUrl(params.endpoint),
215
215
  token,
@@ -219,7 +219,7 @@ async function ServerJsonApiPut(params) {
219
219
  language: params.language,
220
220
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _25 => _25.additionalHeaders])
221
221
  });
222
- return _chunkLU7DJ4QFjs.translateResponse.call(void 0, {
222
+ return _chunkYXRVPEEJjs.translateResponse.call(void 0, {
223
223
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
224
224
  apiResponse,
225
225
  companyId: params.companyId,
@@ -234,9 +234,9 @@ async function ServerJsonApiPatch(params) {
234
234
  if (!body) {
235
235
  body = {};
236
236
  } else if (params.overridesJsonApiCreation !== true) {
237
- body = _chunkLU7DJ4QFjs.JsonApiDataFactory.create(params.classKey, body);
237
+ body = _chunkYXRVPEEJjs.JsonApiDataFactory.create(params.classKey, body);
238
238
  }
239
- const apiResponse = await _chunkIOLU4ASDjs.serverRequest.call(void 0, {
239
+ const apiResponse = await _chunk5TRFNKJSjs.serverRequest.call(void 0, {
240
240
  method: "PATCH",
241
241
  url: buildServerUrl(params.endpoint),
242
242
  token,
@@ -246,7 +246,7 @@ async function ServerJsonApiPatch(params) {
246
246
  language: params.language,
247
247
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _26 => _26.additionalHeaders])
248
248
  });
249
- return _chunkLU7DJ4QFjs.translateResponse.call(void 0, {
249
+ return _chunkYXRVPEEJjs.translateResponse.call(void 0, {
250
250
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
251
251
  apiResponse,
252
252
  companyId: params.companyId,
@@ -257,7 +257,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ServerJsonApiPatch, "ServerJsonApiPatch");
257
257
  async function ServerJsonApiDelete(params) {
258
258
  runServerBootstrapper();
259
259
  const token = await _chunkYUO55Q5Ajs.getServerToken.call(void 0, );
260
- const apiResponse = await _chunkIOLU4ASDjs.serverRequest.call(void 0, {
260
+ const apiResponse = await _chunk5TRFNKJSjs.serverRequest.call(void 0, {
261
261
  method: "DELETE",
262
262
  url: buildServerUrl(params.endpoint),
263
263
  token,
@@ -265,7 +265,7 @@ async function ServerJsonApiDelete(params) {
265
265
  language: params.language,
266
266
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _27 => _27.additionalHeaders])
267
267
  });
268
- return _chunkLU7DJ4QFjs.translateResponse.call(void 0, {
268
+ return _chunkYXRVPEEJjs.translateResponse.call(void 0, {
269
269
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
270
270
  apiResponse,
271
271
  companyId: params.companyId,
@@ -297,5 +297,5 @@ _chunk7QVYU63Ejs.__name.call(void 0, ServerJsonApiDelete, "ServerJsonApiDelete")
297
297
 
298
298
 
299
299
 
300
- exports.ServerAuthService = _chunkIV4DTYXNjs.AuthService; exports.ServerCompanyService = _chunkIV4DTYXNjs.CompanyService; exports.ServerContentService = _chunkIV4DTYXNjs.ContentService; exports.ServerFeatureService = _chunkIV4DTYXNjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkIV4DTYXNjs.NotificationService; exports.ServerPushService = _chunkIV4DTYXNjs.PushService; exports.ServerRoleService = _chunkIV4DTYXNjs.RoleService; exports.ServerS3Service = _chunkIV4DTYXNjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkIV4DTYXNjs.UserService; exports.configureServerJsonApi = configureServerJsonApi; exports.getServerApiUrl = getServerApiUrl; exports.getServerAppUrl = getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = getServerTrackablePages; exports.invalidateCacheTag = invalidateCacheTag; exports.invalidateCacheTags = invalidateCacheTags; exports.serverRequest = _chunkIOLU4ASDjs.serverRequest;
300
+ exports.ServerAuthService = _chunkU7QVISQSjs.AuthService; exports.ServerCompanyService = _chunkU7QVISQSjs.CompanyService; exports.ServerContentService = _chunkU7QVISQSjs.ContentService; exports.ServerFeatureService = _chunkU7QVISQSjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkU7QVISQSjs.NotificationService; exports.ServerPushService = _chunkU7QVISQSjs.PushService; exports.ServerRoleService = _chunkU7QVISQSjs.RoleService; exports.ServerS3Service = _chunkU7QVISQSjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkU7QVISQSjs.UserService; exports.configureServerJsonApi = configureServerJsonApi; exports.getServerApiUrl = getServerApiUrl; exports.getServerAppUrl = getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = getServerTrackablePages; exports.invalidateCacheTag = invalidateCacheTag; exports.invalidateCacheTags = invalidateCacheTags; exports.serverRequest = _chunk5TRFNKJSjs.serverRequest;
301
301
  //# sourceMappingURL=index.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "../chunk-F5UNXZ3J.mjs";
4
4
  import {
5
5
  serverRequest
6
- } from "../chunk-IEJYBQ6J.mjs";
6
+ } from "../chunk-SJLXPHK5.mjs";
7
7
  import {
8
8
  AuthService,
9
9
  CompanyService,
@@ -15,14 +15,14 @@ import {
15
15
  S3Service,
16
16
  UserService,
17
17
  checkPermissionsFromServer
18
- } from "../chunk-2O3SFHQ7.mjs";
18
+ } from "../chunk-IBVKPLHT.mjs";
19
19
  import "../chunk-AUXK7QSA.mjs";
20
- import "../chunk-C7C7VY4F.mjs";
20
+ import "../chunk-PI56A4DG.mjs";
21
21
  import {
22
22
  ENV,
23
23
  JsonApiDataFactory,
24
24
  translateResponse
25
- } from "../chunk-BMVA2IM5.mjs";
25
+ } from "../chunk-T76WLDE5.mjs";
26
26
  import {
27
27
  __name
28
28
  } from "../chunk-PAWJFY3S.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlonicora/nextjs-jsonapi",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
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",
@@ -0,0 +1,29 @@
1
+ import { afterEach, describe, expect, it, vi } from "vitest";
2
+ import { directFetch } from "../request";
3
+
4
+ describe("directFetch", () => {
5
+ afterEach(() => {
6
+ vi.unstubAllGlobals();
7
+ });
8
+
9
+ it("reports 503 when the API cannot be reached at all", async () => {
10
+ vi.stubGlobal("fetch", vi.fn().mockRejectedValue(new TypeError("Failed to fetch")));
11
+
12
+ const response = await directFetch({ method: "GET", url: "http://api.test/users", language: "en" });
13
+
14
+ expect(response.ok).toBe(false);
15
+ expect(response.status).toBe(503);
16
+ });
17
+
18
+ it("passes through a 500 the API actually returned", async () => {
19
+ vi.stubGlobal(
20
+ "fetch",
21
+ vi.fn().mockResolvedValue(new Response(JSON.stringify({}), { status: 500, statusText: "Internal Server Error" })),
22
+ );
23
+
24
+ const response = await directFetch({ method: "GET", url: "http://api.test/users", language: "en" });
25
+
26
+ expect(response.ok).toBe(false);
27
+ expect(response.status).toBe(500);
28
+ });
29
+ });
@@ -88,8 +88,12 @@ export async function directFetch(params: DirectFetchParams): Promise<ApiData> {
88
88
  response.data = undefined;
89
89
  }
90
90
  } catch {
91
+ // fetch() only throws when the API could not be reached at all (server
92
+ // down, DNS, connection refused). Report it as 503 so consumers can tell
93
+ // "API unreachable" apart from a 500 the API actually returned.
91
94
  response.ok = false;
92
- response.status = 500;
95
+ response.status = 503;
96
+ response.statusText = "Service Unavailable";
93
97
  response.data = undefined;
94
98
  }
95
99
 
@@ -22,6 +22,11 @@ export class StripeCustomerService extends AbstractService {
22
22
  type: Modules.StripeCustomer,
23
23
  method: HttpMethod.GET,
24
24
  endpoint: endpoint.generate(),
25
+ // A 404 here means the company has no billing customer yet — an expected
26
+ // state that BillingDashboardContainer turns into a setup prompt. Without
27
+ // this, the global error handler swallows it and replaces the page with a
28
+ // 404 screen.
29
+ suppressGlobalError: true,
25
30
  });
26
31
  }
27
32
 
@@ -3,3 +3,4 @@ export * from "./details";
3
3
  export * from "./forms";
4
4
  export * from "./lists";
5
5
  export * from "./widgets";
6
+ export * from "./wizards";
@@ -95,7 +95,10 @@ export const NotificationContextProvider = ({ children }: NotificationContextPro
95
95
  setError(null);
96
96
 
97
97
  try {
98
- const fetchedNotifications = await NotificationService.findMany({});
98
+ // Background load: a failure must throw into the catch below. Routed
99
+ // through the global error handler, callApi resolves to undefined
100
+ // instead, which lands in state and crashes every consumer.
101
+ const fetchedNotifications = await NotificationService.findMany({ suppressGlobalError: true });
99
102
  setNotifications(fetchedNotifications);
100
103
  setLastLoaded(Date.now());
101
104
  } catch (error) {
@@ -146,7 +149,7 @@ export const NotificationContextProvider = ({ children }: NotificationContextPro
146
149
  };
147
150
 
148
151
  await NotificationService.markAsRead({ data: data });
149
- const allNotifications = await NotificationService.findMany({});
152
+ const allNotifications = await NotificationService.findMany({ suppressGlobalError: true });
150
153
  setNotifications(allNotifications);
151
154
  setLastLoaded(Date.now());
152
155
  } catch (error) {
@@ -94,3 +94,35 @@ describe("NotificationContextProvider mount load", () => {
94
94
  expect(NotificationService.findMany).toHaveBeenCalledTimes(1);
95
95
  });
96
96
  });
97
+
98
+ describe("NotificationContextProvider failed load", () => {
99
+ beforeEach(() => {
100
+ userMock.currentUser = undefined;
101
+ vi.mocked(NotificationService.findMany).mockReset();
102
+ });
103
+
104
+ it("asks the service to throw instead of routing to the global error handler", async () => {
105
+ vi.mocked(NotificationService.findMany).mockResolvedValue([] as never);
106
+
107
+ const { result } = renderHook(() => useNotificationContext(), { wrapper });
108
+
109
+ await act(async () => {
110
+ await result.current.loadNotifications();
111
+ });
112
+
113
+ expect(NotificationService.findMany).toHaveBeenCalledWith({ suppressGlobalError: true });
114
+ });
115
+
116
+ it("keeps notifications an array and records the error when the API is unreachable", async () => {
117
+ vi.mocked(NotificationService.findMany).mockRejectedValue(new Error("500:"));
118
+
119
+ const { result } = renderHook(() => useNotificationContext(), { wrapper });
120
+
121
+ await act(async () => {
122
+ await result.current.loadNotifications();
123
+ });
124
+
125
+ expect(result.current.notifications).toEqual([]);
126
+ expect(result.current.error).toBe("500:");
127
+ });
128
+ });
@@ -2,7 +2,11 @@ import { AbstractService, EndpointCreator, HttpMethod, Modules, NextRef } from "
2
2
  import { NotificationInterface } from "./notification.interface";
3
3
 
4
4
  export class NotificationService extends AbstractService {
5
- static async findMany(params: { isArchived?: boolean; next?: NextRef }): Promise<NotificationInterface[]> {
5
+ static async findMany(params: {
6
+ isArchived?: boolean;
7
+ next?: NextRef;
8
+ suppressGlobalError?: boolean;
9
+ }): Promise<NotificationInterface[]> {
6
10
  const endpoint = new EndpointCreator({ endpoint: Modules.Notification });
7
11
 
8
12
  if (params.isArchived) endpoint.addAdditionalParam("isArchived", "true");
@@ -12,6 +16,7 @@ export class NotificationService extends AbstractService {
12
16
  method: HttpMethod.GET,
13
17
  endpoint: endpoint.generate(),
14
18
  next: params.next,
19
+ suppressGlobalError: params.suppressGlobalError,
15
20
  });
16
21
  }
17
22
 
@@ -0,0 +1,17 @@
1
+ import { afterEach, describe, expect, it, vi } from "vitest";
2
+ import { serverRequest } from "../request";
3
+
4
+ describe("serverRequest", () => {
5
+ afterEach(() => {
6
+ vi.unstubAllGlobals();
7
+ });
8
+
9
+ it("reports 503 when the API cannot be reached at all", async () => {
10
+ vi.stubGlobal("fetch", vi.fn().mockRejectedValue(new TypeError("fetch failed")));
11
+
12
+ const response = await serverRequest({ method: "GET", url: "http://api.test/users", language: "en" } as any);
13
+
14
+ expect(response.ok).toBe(false);
15
+ expect(response.status).toBe(503);
16
+ });
17
+ });
@@ -118,8 +118,12 @@ export async function serverRequest(params: ServerRequestParams): Promise<ApiDat
118
118
  response.data = undefined;
119
119
  }
120
120
  } catch {
121
+ // fetch() only throws when the API could not be reached at all (server
122
+ // down, DNS, connection refused). Report it as 503 so consumers can tell
123
+ // "API unreachable" apart from a 500 the API actually returned.
121
124
  response.ok = false;
122
- response.status = 500;
125
+ response.status = 503;
126
+ response.statusText = "Service Unavailable";
123
127
  response.data = undefined;
124
128
  }
125
129
 
@@ -1,26 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
- var _chunkLU7DJ4QFjs = require('./chunk-LU7DJ4QF.js');
13
- require('./chunk-7QVYU63E.js');
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
- exports.JsonApiDelete = _chunkLU7DJ4QFjs.JsonApiDelete; exports.JsonApiGet = _chunkLU7DJ4QFjs.JsonApiGet; exports.JsonApiPatch = _chunkLU7DJ4QFjs.JsonApiPatch; exports.JsonApiPost = _chunkLU7DJ4QFjs.JsonApiPost; exports.JsonApiPut = _chunkLU7DJ4QFjs.JsonApiPut; exports.buildUrl = _chunkLU7DJ4QFjs.buildUrl; exports.configureJsonApi = _chunkLU7DJ4QFjs.configureJsonApi; exports.getApiUrl = _chunkLU7DJ4QFjs.getApiUrl; exports.getAppUrl = _chunkLU7DJ4QFjs.getAppUrl; exports.getTrackablePages = _chunkLU7DJ4QFjs.getTrackablePages;
26
- //# sourceMappingURL=JsonApiRequest-E4PZPH3N.js.map