@carlonicora/nextjs-jsonapi 1.23.0 → 1.24.1

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 (88) hide show
  1. package/dist/ApiDataInterface-DPP8s46n.d.mts +21 -0
  2. package/dist/ApiDataInterface-DPP8s46n.d.ts +21 -0
  3. package/dist/ApiRequestDataTypeInterface-CUKFDBx2.d.mts +20 -0
  4. package/dist/ApiRequestDataTypeInterface-CUKFDBx2.d.ts +20 -0
  5. package/dist/{ApiResponseInterface-BKyod24U.d.ts → ApiResponseInterface-CAIAeP5d.d.ts} +1 -1
  6. package/dist/{ApiResponseInterface-Dqvu09tz.d.mts → ApiResponseInterface-zeewugD7.d.mts} +1 -1
  7. package/dist/AuthComponent-hxOPs9o8.d.mts +11 -0
  8. package/dist/AuthComponent-hxOPs9o8.d.ts +11 -0
  9. package/dist/{BlockNoteEditor-KQTKURH6.js → BlockNoteEditor-UCHRVVVZ.js} +15 -15
  10. package/dist/{BlockNoteEditor-KQTKURH6.js.map → BlockNoteEditor-UCHRVVVZ.js.map} +1 -1
  11. package/dist/{BlockNoteEditor-VKN4LZUV.mjs → BlockNoteEditor-ZYZZ6B45.mjs} +5 -5
  12. package/dist/JsonApiRequest-GR3L56A5.js +24 -0
  13. package/dist/{JsonApiRequest-54ZBO7WQ.js.map → JsonApiRequest-GR3L56A5.js.map} +1 -1
  14. package/dist/{JsonApiRequest-XWQWTFEQ.mjs → JsonApiRequest-K5BRU7RE.mjs} +2 -2
  15. package/dist/billing/index.d.mts +249 -0
  16. package/dist/billing/index.d.ts +249 -0
  17. package/dist/billing/index.js +3479 -0
  18. package/dist/billing/index.js.map +1 -0
  19. package/dist/billing/index.mjs +3479 -0
  20. package/dist/billing/index.mjs.map +1 -0
  21. package/dist/{chunk-KUFWHMMY.mjs → chunk-5U4NJJOF.mjs} +5 -5
  22. package/dist/{chunk-YF5KBA7H.mjs → chunk-CU4RXSNY.mjs} +168 -3578
  23. package/dist/chunk-CU4RXSNY.mjs.map +1 -0
  24. package/dist/{chunk-LSIUPIYQ.js → chunk-EW6QPMN3.js} +3 -3
  25. package/dist/{chunk-LSIUPIYQ.js.map → chunk-EW6QPMN3.js.map} +1 -1
  26. package/dist/{chunk-LI6CPNJI.js → chunk-FM6WRAN5.js} +1 -1
  27. package/dist/{chunk-LI6CPNJI.js.map → chunk-FM6WRAN5.js.map} +1 -1
  28. package/dist/{chunk-L6XLESU5.mjs → chunk-GR4QPP36.mjs} +2 -2
  29. package/dist/{chunk-ODNMW2CG.js → chunk-ILKUML3Z.js} +761 -4171
  30. package/dist/chunk-ILKUML3Z.js.map +1 -0
  31. package/dist/{chunk-UYY34W7R.js → chunk-NQVPCNRS.js} +26 -26
  32. package/dist/{chunk-UYY34W7R.js.map → chunk-NQVPCNRS.js.map} +1 -1
  33. package/dist/{chunk-3VM3WAOV.mjs → chunk-U4MTVHOC.mjs} +1 -1
  34. package/dist/client/index.d.mts +7 -6
  35. package/dist/client/index.d.ts +7 -6
  36. package/dist/client/index.js +5 -5
  37. package/dist/client/index.mjs +4 -4
  38. package/dist/components/index.d.mts +8 -250
  39. package/dist/components/index.d.ts +8 -250
  40. package/dist/components/index.js +5 -83
  41. package/dist/components/index.js.map +1 -1
  42. package/dist/components/index.mjs +4 -82
  43. package/dist/{config--nwiW74Z.d.ts → config-D_91hrI-.d.ts} +1 -1
  44. package/dist/{config-BKSQmUWU.d.mts → config-h0hNLceh.d.mts} +1 -1
  45. package/dist/{content.interface-4VICFRA0.d.ts → content.interface-CUIEQ0jk.d.ts} +2 -2
  46. package/dist/{content.interface-CFc97-Cj.d.mts → content.interface-QcsFR5Ad.d.mts} +2 -2
  47. package/dist/contexts/index.d.mts +4 -3
  48. package/dist/contexts/index.d.ts +4 -3
  49. package/dist/contexts/index.js +5 -5
  50. package/dist/contexts/index.mjs +4 -4
  51. package/dist/core/index.d.mts +12 -10
  52. package/dist/core/index.d.ts +12 -10
  53. package/dist/core/index.js +3 -3
  54. package/dist/core/index.mjs +2 -2
  55. package/dist/index.d.mts +9 -7
  56. package/dist/index.d.ts +9 -7
  57. package/dist/index.js +4 -4
  58. package/dist/index.mjs +3 -3
  59. package/dist/{notification.interface-CqwaOIgM.d.ts → notification.interface-D7_g5SnS.d.ts} +2 -1
  60. package/dist/{notification.interface-BGaPiCUM.d.mts → notification.interface-blT8r47t.d.mts} +2 -1
  61. package/dist/{s3.service-BYs88XEE.d.ts → s3.service-B83hUhqV.d.ts} +4 -3
  62. package/dist/{s3.service-C0BjOdvn.d.mts → s3.service-DSDfcr0S.d.mts} +4 -3
  63. package/dist/server/index.d.mts +6 -5
  64. package/dist/server/index.d.ts +6 -5
  65. package/dist/server/index.js +15 -15
  66. package/dist/server/index.js.map +1 -1
  67. package/dist/server/index.mjs +5 -5
  68. package/dist/{stripe-subscription.interface-B-TM40Io.d.ts → stripe-subscription.interface-CFtupgYh.d.mts} +2 -12
  69. package/dist/{stripe-subscription.interface-DDxnpj0F.d.mts → stripe-subscription.interface-CNTsrbAx.d.ts} +2 -12
  70. package/dist/testing/index.d.mts +3 -2
  71. package/dist/testing/index.d.ts +3 -2
  72. package/dist/{useSocket-BNj9PrRw.d.mts → useSocket-B5M_a4bD.d.mts} +1 -1
  73. package/dist/{useSocket-Dwt8cz1x.d.ts → useSocket-Dd03muLJ.d.ts} +1 -1
  74. package/package.json +36 -31
  75. package/src/billing/index.ts +8 -0
  76. package/src/components/index.ts +1 -7
  77. package/src/components/pages/PageContentContainer.tsx +1 -2
  78. package/src/shadcnui/ui/resizable.tsx +7 -7
  79. package/dist/ApiRequestDataTypeInterface-DIEOFn9s.d.mts +0 -40
  80. package/dist/ApiRequestDataTypeInterface-DIEOFn9s.d.ts +0 -40
  81. package/dist/JsonApiRequest-54ZBO7WQ.js +0 -24
  82. package/dist/chunk-ODNMW2CG.js.map +0 -1
  83. package/dist/chunk-YF5KBA7H.mjs.map +0 -1
  84. /package/dist/{BlockNoteEditor-VKN4LZUV.mjs.map → BlockNoteEditor-ZYZZ6B45.mjs.map} +0 -0
  85. /package/dist/{JsonApiRequest-XWQWTFEQ.mjs.map → JsonApiRequest-K5BRU7RE.mjs.map} +0 -0
  86. /package/dist/{chunk-KUFWHMMY.mjs.map → chunk-5U4NJJOF.mjs.map} +0 -0
  87. /package/dist/{chunk-L6XLESU5.mjs.map → chunk-GR4QPP36.mjs.map} +0 -0
  88. /package/dist/{chunk-3VM3WAOV.mjs.map → chunk-U4MTVHOC.mjs.map} +0 -0
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
 
11
11
 
12
- var _chunkLSIUPIYQjs = require('./chunk-LSIUPIYQ.js');
12
+ var _chunkEW6QPMN3js = require('./chunk-EW6QPMN3.js');
13
13
 
14
14
 
15
15
 
@@ -114,7 +114,7 @@ var _chunkLSIUPIYQjs = require('./chunk-LSIUPIYQ.js');
114
114
 
115
115
 
116
116
 
117
- var _chunkUYY34W7Rjs = require('./chunk-UYY34W7R.js');
117
+ var _chunkNQVPCNRSjs = require('./chunk-NQVPCNRS.js');
118
118
  require('./chunk-LXKSUWAV.js');
119
119
  require('./chunk-IBS6NI7D.js');
120
120
 
@@ -127,7 +127,7 @@ require('./chunk-IBS6NI7D.js');
127
127
 
128
128
 
129
129
 
130
- var _chunkLI6CPNJIjs = require('./chunk-LI6CPNJI.js');
130
+ var _chunkFM6WRAN5js = require('./chunk-FM6WRAN5.js');
131
131
  require('./chunk-7QVYU63E.js');
132
132
 
133
133
 
@@ -253,5 +253,5 @@ require('./chunk-7QVYU63E.js');
253
253
 
254
254
 
255
255
 
256
- exports.AbstractApiData = _chunkUYY34W7Rjs.AbstractApiData; exports.AbstractService = _chunkUYY34W7Rjs.AbstractService; exports.Action = _chunkUYY34W7Rjs.Action; exports.Auth = _chunkUYY34W7Rjs.Auth; exports.AuthComponent = _chunkUYY34W7Rjs.AuthComponent; exports.AuthModule = _chunkUYY34W7Rjs.AuthModule; exports.AuthService = _chunkUYY34W7Rjs.AuthService; exports.AuthorModule = _chunkUYY34W7Rjs.AuthorModule; exports.Billing = _chunkUYY34W7Rjs.Billing; exports.BillingModule = _chunkUYY34W7Rjs.BillingModule; exports.BillingService = _chunkUYY34W7Rjs.BillingService; exports.BlockNoteDiffUtil = _chunkUYY34W7Rjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkUYY34W7Rjs.BlockNoteWordDiffRendererUtil; exports.ClientAbstractService = _chunkUYY34W7Rjs.ClientAbstractService; exports.ClientHttpMethod = _chunkUYY34W7Rjs.ClientHttpMethod; exports.Company = _chunkUYY34W7Rjs.Company; exports.CompanyFields = _chunkUYY34W7Rjs.CompanyFields; exports.CompanyModule = _chunkUYY34W7Rjs.CompanyModule; exports.CompanyService = _chunkUYY34W7Rjs.CompanyService; exports.Content = _chunkUYY34W7Rjs.Content; exports.ContentFields = _chunkUYY34W7Rjs.ContentFields; exports.ContentModule = _chunkUYY34W7Rjs.ContentModule; exports.ContentService = _chunkUYY34W7Rjs.ContentService; exports.DataClass = _chunkLI6CPNJIjs.DataClassRegistry; exports.DataClassRegistry = _chunkLI6CPNJIjs.DataClassRegistry; exports.EndpointCreator = _chunkUYY34W7Rjs.EndpointCreator; exports.Feature = _chunkUYY34W7Rjs.Feature; exports.FeatureModule = _chunkUYY34W7Rjs.FeatureModule; exports.FeatureService = _chunkUYY34W7Rjs.FeatureService; exports.HttpMethod = _chunkUYY34W7Rjs.HttpMethod; exports.InvoiceStatus = _chunkUYY34W7Rjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkLI6CPNJIjs.JsonApiDataFactory; exports.Module = _chunkUYY34W7Rjs.Module; exports.ModuleModule = _chunkUYY34W7Rjs.ModuleModule; exports.ModuleRegistrar = _chunkUYY34W7Rjs.ModuleRegistrar; exports.ModuleRegistry = _chunkUYY34W7Rjs.ModuleRegistry; exports.Modules = _chunkUYY34W7Rjs.Modules; exports.Notification = _chunkUYY34W7Rjs.Notification; exports.NotificationFields = _chunkUYY34W7Rjs.NotificationFields; exports.NotificationModule = _chunkUYY34W7Rjs.NotificationModule; exports.NotificationService = _chunkUYY34W7Rjs.NotificationService; exports.PaymentMethod = _chunkUYY34W7Rjs.PaymentMethod; exports.Push = _chunkUYY34W7Rjs.Push; exports.PushModule = _chunkUYY34W7Rjs.PushModule; exports.PushService = _chunkUYY34W7Rjs.PushService; exports.RehydrationFactory = _chunkUYY34W7Rjs.RehydrationFactory; exports.Role = _chunkUYY34W7Rjs.Role; exports.RoleFields = _chunkUYY34W7Rjs.RoleFields; exports.RoleModule = _chunkUYY34W7Rjs.RoleModule; exports.RoleService = _chunkUYY34W7Rjs.RoleService; exports.S3 = _chunkUYY34W7Rjs.S3; exports.S3Module = _chunkUYY34W7Rjs.S3Module; exports.S3Service = _chunkUYY34W7Rjs.S3Service; exports.StripeCustomer = _chunkUYY34W7Rjs.StripeCustomer; exports.StripeCustomerModule = _chunkUYY34W7Rjs.StripeCustomerModule; exports.StripeCustomerService = _chunkUYY34W7Rjs.StripeCustomerService; exports.StripeInvoice = _chunkUYY34W7Rjs.StripeInvoice; exports.StripeInvoiceModule = _chunkUYY34W7Rjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkUYY34W7Rjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkUYY34W7Rjs.StripePaymentMethodModule; exports.StripePrice = _chunkUYY34W7Rjs.StripePrice; exports.StripePriceModule = _chunkUYY34W7Rjs.StripePriceModule; exports.StripePriceService = _chunkUYY34W7Rjs.StripePriceService; exports.StripeProduct = _chunkUYY34W7Rjs.StripeProduct; exports.StripeProductModule = _chunkUYY34W7Rjs.StripeProductModule; exports.StripeProductService = _chunkUYY34W7Rjs.StripeProductService; exports.StripeSubscription = _chunkUYY34W7Rjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkUYY34W7Rjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkUYY34W7Rjs.StripeSubscriptionService; exports.StripeUsage = _chunkUYY34W7Rjs.StripeUsage; exports.StripeUsageModule = _chunkUYY34W7Rjs.StripeUsageModule; exports.StripeUsageService = _chunkUYY34W7Rjs.StripeUsageService; exports.SubscriptionStatus = _chunkUYY34W7Rjs.SubscriptionStatus; exports.TableOptions = _chunkUYY34W7Rjs.TableOptions; exports.User = _chunkUYY34W7Rjs.User; exports.UserFields = _chunkUYY34W7Rjs.UserFields; exports.UserModule = _chunkUYY34W7Rjs.UserModule; exports.UserService = _chunkUYY34W7Rjs.UserService; exports.checkPermissions = _chunkUYY34W7Rjs.checkPermissions; exports.checkPermissionsFromServer = _chunkUYY34W7Rjs.checkPermissionsFromServer; exports.cn = _chunkUYY34W7Rjs.cn; exports.composeRefs = _chunkUYY34W7Rjs.composeRefs; exports.configureAuth = _chunkUYY34W7Rjs.configureAuth; exports.configureI18n = _chunkLSIUPIYQjs.configureI18n; exports.configureJsonApi = _chunkLSIUPIYQjs.configureJsonApi; exports.configureLogin = _chunkLSIUPIYQjs.configureLogin; exports.configureRoles = _chunkLSIUPIYQjs.configureRoles; exports.createJsonApiInclusion = _chunkUYY34W7Rjs.createJsonApiInclusion; exports.entityObjectSchema = _chunkUYY34W7Rjs.entityObjectSchema; exports.exists = _chunkUYY34W7Rjs.exists; exports.formatDate = _chunkUYY34W7Rjs.formatDate; exports.getApiUrl = _chunkLSIUPIYQjs.getApiUrl; exports.getAppUrl = _chunkLSIUPIYQjs.getAppUrl; exports.getBootstrapper = _chunkLI6CPNJIjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkUYY34W7Rjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkUYY34W7Rjs.getGlobalErrorHandler; exports.getIcon = _chunkUYY34W7Rjs.getIcon; exports.getIconByModule = _chunkUYY34W7Rjs.getIconByModule; exports.getIconByModuleName = _chunkUYY34W7Rjs.getIconByModuleName; exports.getLucideIcon = _chunkUYY34W7Rjs.getLucideIcon; exports.getLucideIconByModule = _chunkUYY34W7Rjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkUYY34W7Rjs.getLucideIconByModuleName; exports.getRoleId = _chunkLSIUPIYQjs.getRoleId; exports.getStripePublishableKey = _chunkLSIUPIYQjs.getStripePublishableKey; exports.getTableComponents = _chunkUYY34W7Rjs.getTableComponents; exports.getTableOptions = _chunkUYY34W7Rjs.getTableOptions; exports.getTokenHandler = _chunkUYY34W7Rjs.getTokenHandler; exports.getTrackablePages = _chunkLSIUPIYQjs.getTrackablePages; exports.getValueFromPath = _chunkUYY34W7Rjs.getValueFromPath; exports.hasBootstrapper = _chunkLI6CPNJIjs.hasBootstrapper; exports.isRolesConfigured = _chunkLSIUPIYQjs.isRolesConfigured; exports.rehydrate = _chunkUYY34W7Rjs.rehydrate; exports.rehydrateList = _chunkUYY34W7Rjs.rehydrateList; exports.resetBootstrapStore = _chunkLI6CPNJIjs.resetBootstrapStore; exports.setBootstrapper = _chunkLI6CPNJIjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkUYY34W7Rjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkUYY34W7Rjs.setGlobalErrorHandler; exports.translateData = _chunkLI6CPNJIjs.translateData; exports.translateResponse = _chunkLI6CPNJIjs.translateResponse; exports.tryBootstrap = _chunkLI6CPNJIjs.tryBootstrap; exports.useComposedRefs = _chunkUYY34W7Rjs.useComposedRefs; exports.useIsMobile = _chunkUYY34W7Rjs.useIsMobile; exports.userObjectSchema = _chunkUYY34W7Rjs.userObjectSchema;
256
+ exports.AbstractApiData = _chunkNQVPCNRSjs.AbstractApiData; exports.AbstractService = _chunkNQVPCNRSjs.AbstractService; exports.Action = _chunkNQVPCNRSjs.Action; exports.Auth = _chunkNQVPCNRSjs.Auth; exports.AuthComponent = _chunkNQVPCNRSjs.AuthComponent; exports.AuthModule = _chunkNQVPCNRSjs.AuthModule; exports.AuthService = _chunkNQVPCNRSjs.AuthService; exports.AuthorModule = _chunkNQVPCNRSjs.AuthorModule; exports.Billing = _chunkNQVPCNRSjs.Billing; exports.BillingModule = _chunkNQVPCNRSjs.BillingModule; exports.BillingService = _chunkNQVPCNRSjs.BillingService; exports.BlockNoteDiffUtil = _chunkNQVPCNRSjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkNQVPCNRSjs.BlockNoteWordDiffRendererUtil; exports.ClientAbstractService = _chunkNQVPCNRSjs.ClientAbstractService; exports.ClientHttpMethod = _chunkNQVPCNRSjs.ClientHttpMethod; exports.Company = _chunkNQVPCNRSjs.Company; exports.CompanyFields = _chunkNQVPCNRSjs.CompanyFields; exports.CompanyModule = _chunkNQVPCNRSjs.CompanyModule; exports.CompanyService = _chunkNQVPCNRSjs.CompanyService; exports.Content = _chunkNQVPCNRSjs.Content; exports.ContentFields = _chunkNQVPCNRSjs.ContentFields; exports.ContentModule = _chunkNQVPCNRSjs.ContentModule; exports.ContentService = _chunkNQVPCNRSjs.ContentService; exports.DataClass = _chunkFM6WRAN5js.DataClassRegistry; exports.DataClassRegistry = _chunkFM6WRAN5js.DataClassRegistry; exports.EndpointCreator = _chunkNQVPCNRSjs.EndpointCreator; exports.Feature = _chunkNQVPCNRSjs.Feature; exports.FeatureModule = _chunkNQVPCNRSjs.FeatureModule; exports.FeatureService = _chunkNQVPCNRSjs.FeatureService; exports.HttpMethod = _chunkNQVPCNRSjs.HttpMethod; exports.InvoiceStatus = _chunkNQVPCNRSjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkFM6WRAN5js.JsonApiDataFactory; exports.Module = _chunkNQVPCNRSjs.Module; exports.ModuleModule = _chunkNQVPCNRSjs.ModuleModule; exports.ModuleRegistrar = _chunkNQVPCNRSjs.ModuleRegistrar; exports.ModuleRegistry = _chunkNQVPCNRSjs.ModuleRegistry; exports.Modules = _chunkNQVPCNRSjs.Modules; exports.Notification = _chunkNQVPCNRSjs.Notification; exports.NotificationFields = _chunkNQVPCNRSjs.NotificationFields; exports.NotificationModule = _chunkNQVPCNRSjs.NotificationModule; exports.NotificationService = _chunkNQVPCNRSjs.NotificationService; exports.PaymentMethod = _chunkNQVPCNRSjs.PaymentMethod; exports.Push = _chunkNQVPCNRSjs.Push; exports.PushModule = _chunkNQVPCNRSjs.PushModule; exports.PushService = _chunkNQVPCNRSjs.PushService; exports.RehydrationFactory = _chunkNQVPCNRSjs.RehydrationFactory; exports.Role = _chunkNQVPCNRSjs.Role; exports.RoleFields = _chunkNQVPCNRSjs.RoleFields; exports.RoleModule = _chunkNQVPCNRSjs.RoleModule; exports.RoleService = _chunkNQVPCNRSjs.RoleService; exports.S3 = _chunkNQVPCNRSjs.S3; exports.S3Module = _chunkNQVPCNRSjs.S3Module; exports.S3Service = _chunkNQVPCNRSjs.S3Service; exports.StripeCustomer = _chunkNQVPCNRSjs.StripeCustomer; exports.StripeCustomerModule = _chunkNQVPCNRSjs.StripeCustomerModule; exports.StripeCustomerService = _chunkNQVPCNRSjs.StripeCustomerService; exports.StripeInvoice = _chunkNQVPCNRSjs.StripeInvoice; exports.StripeInvoiceModule = _chunkNQVPCNRSjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkNQVPCNRSjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkNQVPCNRSjs.StripePaymentMethodModule; exports.StripePrice = _chunkNQVPCNRSjs.StripePrice; exports.StripePriceModule = _chunkNQVPCNRSjs.StripePriceModule; exports.StripePriceService = _chunkNQVPCNRSjs.StripePriceService; exports.StripeProduct = _chunkNQVPCNRSjs.StripeProduct; exports.StripeProductModule = _chunkNQVPCNRSjs.StripeProductModule; exports.StripeProductService = _chunkNQVPCNRSjs.StripeProductService; exports.StripeSubscription = _chunkNQVPCNRSjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkNQVPCNRSjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkNQVPCNRSjs.StripeSubscriptionService; exports.StripeUsage = _chunkNQVPCNRSjs.StripeUsage; exports.StripeUsageModule = _chunkNQVPCNRSjs.StripeUsageModule; exports.StripeUsageService = _chunkNQVPCNRSjs.StripeUsageService; exports.SubscriptionStatus = _chunkNQVPCNRSjs.SubscriptionStatus; exports.TableOptions = _chunkNQVPCNRSjs.TableOptions; exports.User = _chunkNQVPCNRSjs.User; exports.UserFields = _chunkNQVPCNRSjs.UserFields; exports.UserModule = _chunkNQVPCNRSjs.UserModule; exports.UserService = _chunkNQVPCNRSjs.UserService; exports.checkPermissions = _chunkNQVPCNRSjs.checkPermissions; exports.checkPermissionsFromServer = _chunkNQVPCNRSjs.checkPermissionsFromServer; exports.cn = _chunkNQVPCNRSjs.cn; exports.composeRefs = _chunkNQVPCNRSjs.composeRefs; exports.configureAuth = _chunkNQVPCNRSjs.configureAuth; exports.configureI18n = _chunkEW6QPMN3js.configureI18n; exports.configureJsonApi = _chunkEW6QPMN3js.configureJsonApi; exports.configureLogin = _chunkEW6QPMN3js.configureLogin; exports.configureRoles = _chunkEW6QPMN3js.configureRoles; exports.createJsonApiInclusion = _chunkNQVPCNRSjs.createJsonApiInclusion; exports.entityObjectSchema = _chunkNQVPCNRSjs.entityObjectSchema; exports.exists = _chunkNQVPCNRSjs.exists; exports.formatDate = _chunkNQVPCNRSjs.formatDate; exports.getApiUrl = _chunkEW6QPMN3js.getApiUrl; exports.getAppUrl = _chunkEW6QPMN3js.getAppUrl; exports.getBootstrapper = _chunkFM6WRAN5js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkNQVPCNRSjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkNQVPCNRSjs.getGlobalErrorHandler; exports.getIcon = _chunkNQVPCNRSjs.getIcon; exports.getIconByModule = _chunkNQVPCNRSjs.getIconByModule; exports.getIconByModuleName = _chunkNQVPCNRSjs.getIconByModuleName; exports.getLucideIcon = _chunkNQVPCNRSjs.getLucideIcon; exports.getLucideIconByModule = _chunkNQVPCNRSjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkNQVPCNRSjs.getLucideIconByModuleName; exports.getRoleId = _chunkEW6QPMN3js.getRoleId; exports.getStripePublishableKey = _chunkEW6QPMN3js.getStripePublishableKey; exports.getTableComponents = _chunkNQVPCNRSjs.getTableComponents; exports.getTableOptions = _chunkNQVPCNRSjs.getTableOptions; exports.getTokenHandler = _chunkNQVPCNRSjs.getTokenHandler; exports.getTrackablePages = _chunkEW6QPMN3js.getTrackablePages; exports.getValueFromPath = _chunkNQVPCNRSjs.getValueFromPath; exports.hasBootstrapper = _chunkFM6WRAN5js.hasBootstrapper; exports.isRolesConfigured = _chunkEW6QPMN3js.isRolesConfigured; exports.rehydrate = _chunkNQVPCNRSjs.rehydrate; exports.rehydrateList = _chunkNQVPCNRSjs.rehydrateList; exports.resetBootstrapStore = _chunkFM6WRAN5js.resetBootstrapStore; exports.setBootstrapper = _chunkFM6WRAN5js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkNQVPCNRSjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkNQVPCNRSjs.setGlobalErrorHandler; exports.translateData = _chunkFM6WRAN5js.translateData; exports.translateResponse = _chunkFM6WRAN5js.translateResponse; exports.tryBootstrap = _chunkFM6WRAN5js.tryBootstrap; exports.useComposedRefs = _chunkNQVPCNRSjs.useComposedRefs; exports.useIsMobile = _chunkNQVPCNRSjs.useIsMobile; exports.userObjectSchema = _chunkNQVPCNRSjs.userObjectSchema;
257
257
  //# sourceMappingURL=index.js.map
package/dist/index.mjs CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  getStripePublishableKey,
10
10
  getTrackablePages,
11
11
  isRolesConfigured
12
- } from "./chunk-L6XLESU5.mjs";
12
+ } from "./chunk-GR4QPP36.mjs";
13
13
  import {
14
14
  AbstractApiData,
15
15
  AbstractService,
@@ -114,7 +114,7 @@ import {
114
114
  useComposedRefs,
115
115
  useIsMobile,
116
116
  userObjectSchema
117
- } from "./chunk-KUFWHMMY.mjs";
117
+ } from "./chunk-5U4NJJOF.mjs";
118
118
  import "./chunk-AUXK7QSA.mjs";
119
119
  import "./chunk-C7C7VY4F.mjs";
120
120
  import {
@@ -127,7 +127,7 @@ import {
127
127
  translateData,
128
128
  translateResponse,
129
129
  tryBootstrap
130
- } from "./chunk-3VM3WAOV.mjs";
130
+ } from "./chunk-U4MTVHOC.mjs";
131
131
  import "./chunk-PAWJFY3S.mjs";
132
132
  export {
133
133
  AbstractApiData,
@@ -1,5 +1,6 @@
1
1
  import { LucideIcon } from 'lucide-react';
2
- import { a as ApiRequestDataTypeInterface, F as FieldSelector, A as ApiDataInterface } from './ApiRequestDataTypeInterface-DIEOFn9s.js';
2
+ import { A as ApiRequestDataTypeInterface, F as FieldSelector } from './ApiRequestDataTypeInterface-CUKFDBx2.js';
3
+ import { A as ApiDataInterface } from './ApiDataInterface-DPP8s46n.js';
3
4
 
4
5
  /**
5
6
  * Permission actions
@@ -1,5 +1,6 @@
1
1
  import { LucideIcon } from 'lucide-react';
2
- import { a as ApiRequestDataTypeInterface, F as FieldSelector, A as ApiDataInterface } from './ApiRequestDataTypeInterface-DIEOFn9s.mjs';
2
+ import { A as ApiRequestDataTypeInterface, F as FieldSelector } from './ApiRequestDataTypeInterface-CUKFDBx2.mjs';
3
+ import { A as ApiDataInterface } from './ApiDataInterface-DPP8s46n.mjs';
3
4
 
4
5
  /**
5
6
  * Permission actions
@@ -1,6 +1,7 @@
1
- import { F as FeatureInterface, k as RoleInterface, h as CompanyInterface, C as CompanyInput, U as UserInterface, l as UserInput, N as NotificationInterface } from './notification.interface-CqwaOIgM.js';
2
- import { a as ApiRequestDataTypeInterface, A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiRequestDataTypeInterface-DIEOFn9s.js';
3
- import { a as ContentInterface } from './content.interface-4VICFRA0.js';
1
+ import { F as FeatureInterface, k as RoleInterface, h as CompanyInterface, C as CompanyInput, U as UserInterface, l as UserInput, N as NotificationInterface } from './notification.interface-D7_g5SnS.js';
2
+ import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiDataInterface-DPP8s46n.js';
3
+ import { a as ContentInterface } from './content.interface-CUIEQ0jk.js';
4
+ import { A as ApiRequestDataTypeInterface } from './ApiRequestDataTypeInterface-CUKFDBx2.js';
4
5
 
5
6
  declare enum HttpMethod {
6
7
  GET = "GET",
@@ -1,6 +1,7 @@
1
- import { F as FeatureInterface, k as RoleInterface, h as CompanyInterface, C as CompanyInput, U as UserInterface, l as UserInput, N as NotificationInterface } from './notification.interface-BGaPiCUM.mjs';
2
- import { a as ApiRequestDataTypeInterface, A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiRequestDataTypeInterface-DIEOFn9s.mjs';
3
- import { a as ContentInterface } from './content.interface-CFc97-Cj.mjs';
1
+ import { F as FeatureInterface, k as RoleInterface, h as CompanyInterface, C as CompanyInput, U as UserInterface, l as UserInput, N as NotificationInterface } from './notification.interface-blT8r47t.mjs';
2
+ import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiDataInterface-DPP8s46n.mjs';
3
+ import { a as ContentInterface } from './content.interface-QcsFR5Ad.mjs';
4
+ import { A as ApiRequestDataTypeInterface } from './ApiRequestDataTypeInterface-CUKFDBx2.mjs';
4
5
 
5
6
  declare enum HttpMethod {
6
7
  GET = "GET",
@@ -1,10 +1,11 @@
1
1
  import { A as ApiData } from '../ApiData-DPKNfY-9.mjs';
2
- import { M as ModuleWithPermissions, A as Action } from '../notification.interface-BGaPiCUM.mjs';
3
- import { a as ApiRequestDataTypeInterface } from '../ApiRequestDataTypeInterface-DIEOFn9s.mjs';
4
- import { A as ApiResponseInterface } from '../ApiResponseInterface-Dqvu09tz.mjs';
5
- export { d as ServerAuthService, C as ServerCompanyService, e as ServerContentService, F as ServerFeatureService, f as ServerNotificationService, h as ServerPushService, R as ServerRoleService, k as ServerS3Service, U as ServerUserService } from '../s3.service-C0BjOdvn.mjs';
2
+ import { M as ModuleWithPermissions, A as Action } from '../notification.interface-blT8r47t.mjs';
3
+ import { A as ApiRequestDataTypeInterface } from '../ApiRequestDataTypeInterface-CUKFDBx2.mjs';
4
+ import { A as ApiResponseInterface } from '../ApiResponseInterface-zeewugD7.mjs';
5
+ export { d as ServerAuthService, C as ServerCompanyService, e as ServerContentService, F as ServerFeatureService, f as ServerNotificationService, h as ServerPushService, R as ServerRoleService, k as ServerS3Service, U as ServerUserService } from '../s3.service-DSDfcr0S.mjs';
6
6
  import 'lucide-react';
7
- import '../content.interface-CFc97-Cj.mjs';
7
+ import '../ApiDataInterface-DPP8s46n.mjs';
8
+ import '../content.interface-QcsFR5Ad.mjs';
8
9
 
9
10
  type CacheProfile = "seconds" | "minutes" | "hours" | "days" | "weeks" | "max" | "default";
10
11
  /**
@@ -1,10 +1,11 @@
1
1
  import { A as ApiData } from '../ApiData-DPKNfY-9.js';
2
- import { M as ModuleWithPermissions, A as Action } from '../notification.interface-CqwaOIgM.js';
3
- import { a as ApiRequestDataTypeInterface } from '../ApiRequestDataTypeInterface-DIEOFn9s.js';
4
- import { A as ApiResponseInterface } from '../ApiResponseInterface-BKyod24U.js';
5
- export { d as ServerAuthService, C as ServerCompanyService, e as ServerContentService, F as ServerFeatureService, f as ServerNotificationService, h as ServerPushService, R as ServerRoleService, k as ServerS3Service, U as ServerUserService } from '../s3.service-BYs88XEE.js';
2
+ import { M as ModuleWithPermissions, A as Action } from '../notification.interface-D7_g5SnS.js';
3
+ import { A as ApiRequestDataTypeInterface } from '../ApiRequestDataTypeInterface-CUKFDBx2.js';
4
+ import { A as ApiResponseInterface } from '../ApiResponseInterface-CAIAeP5d.js';
5
+ export { d as ServerAuthService, C as ServerCompanyService, e as ServerContentService, F as ServerFeatureService, f as ServerNotificationService, h as ServerPushService, R as ServerRoleService, k as ServerS3Service, U as ServerUserService } from '../s3.service-B83hUhqV.js';
6
6
  import 'lucide-react';
7
- import '../content.interface-4VICFRA0.js';
7
+ import '../ApiDataInterface-DPP8s46n.js';
8
+ import '../content.interface-CUIEQ0jk.js';
8
9
 
9
10
  type CacheProfile = "seconds" | "minutes" | "hours" | "days" | "weeks" | "max" | "default";
10
11
  /**
@@ -1,5 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
+ var _chunkYUO55Q5Ajs = require('../chunk-YUO55Q5A.js');
4
+
5
+
3
6
  var _chunk3ZPK4QOBjs = require('../chunk-3ZPK4QOB.js');
4
7
 
5
8
 
@@ -12,16 +15,13 @@ var _chunk3ZPK4QOBjs = require('../chunk-3ZPK4QOB.js');
12
15
 
13
16
 
14
17
 
15
- var _chunkUYY34W7Rjs = require('../chunk-UYY34W7R.js');
18
+ var _chunkNQVPCNRSjs = require('../chunk-NQVPCNRS.js');
16
19
  require('../chunk-LXKSUWAV.js');
17
20
  require('../chunk-IBS6NI7D.js');
18
21
 
19
22
 
20
23
 
21
- var _chunkLI6CPNJIjs = require('../chunk-LI6CPNJI.js');
22
-
23
-
24
- var _chunkYUO55Q5Ajs = require('../chunk-YUO55Q5A.js');
24
+ var _chunkFM6WRAN5js = require('../chunk-FM6WRAN5.js');
25
25
 
26
26
 
27
27
  var _chunk7QVYU63Ejs = require('../chunk-7QVYU63E.js');
@@ -93,7 +93,7 @@ var ServerSession = class {
93
93
  if (!rawModules) return false;
94
94
  const modules = JSON.parse(_pako2.default.ungzip(Buffer.from(rawModules, "base64"), { to: "string" }));
95
95
  const selectedModule = modules.find((module) => module.id === params.module.moduleId);
96
- return _chunkUYY34W7Rjs.checkPermissionsFromServer.call(void 0, {
96
+ return _chunkNQVPCNRSjs.checkPermissionsFromServer.call(void 0, {
97
97
  module: params.module,
98
98
  action: params.action,
99
99
  data: params.data,
@@ -165,7 +165,7 @@ async function ServerJsonApiGet(params) {
165
165
  language: params.language,
166
166
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _26 => _26.additionalHeaders])
167
167
  });
168
- return _chunkLI6CPNJIjs.translateResponse.call(void 0, {
168
+ return _chunkFM6WRAN5js.translateResponse.call(void 0, {
169
169
  classKey: params.classKey,
170
170
  apiResponse,
171
171
  companyId: params.companyId,
@@ -186,7 +186,7 @@ async function ServerJsonApiPost(params) {
186
186
  if (!body) {
187
187
  body = {};
188
188
  } else if (params.overridesJsonApiCreation !== true) {
189
- body = _chunkLI6CPNJIjs.JsonApiDataFactory.create(params.classKey, body);
189
+ body = _chunkFM6WRAN5js.JsonApiDataFactory.create(params.classKey, body);
190
190
  }
191
191
  const apiResponse = await _chunk3ZPK4QOBjs.serverRequest.call(void 0, {
192
192
  method: "POST",
@@ -198,7 +198,7 @@ async function ServerJsonApiPost(params) {
198
198
  language: params.language,
199
199
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _27 => _27.additionalHeaders])
200
200
  });
201
- return _chunkLI6CPNJIjs.translateResponse.call(void 0, {
201
+ return _chunkFM6WRAN5js.translateResponse.call(void 0, {
202
202
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
203
203
  apiResponse,
204
204
  companyId: params.companyId,
@@ -213,7 +213,7 @@ async function ServerJsonApiPut(params) {
213
213
  if (!body) {
214
214
  body = {};
215
215
  } else {
216
- body = _chunkLI6CPNJIjs.JsonApiDataFactory.create(params.classKey, body);
216
+ body = _chunkFM6WRAN5js.JsonApiDataFactory.create(params.classKey, body);
217
217
  }
218
218
  const apiResponse = await _chunk3ZPK4QOBjs.serverRequest.call(void 0, {
219
219
  method: "PUT",
@@ -225,7 +225,7 @@ async function ServerJsonApiPut(params) {
225
225
  language: params.language,
226
226
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _28 => _28.additionalHeaders])
227
227
  });
228
- return _chunkLI6CPNJIjs.translateResponse.call(void 0, {
228
+ return _chunkFM6WRAN5js.translateResponse.call(void 0, {
229
229
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
230
230
  apiResponse,
231
231
  companyId: params.companyId,
@@ -240,7 +240,7 @@ async function ServerJsonApiPatch(params) {
240
240
  if (!body) {
241
241
  body = {};
242
242
  } else if (params.overridesJsonApiCreation !== true) {
243
- body = _chunkLI6CPNJIjs.JsonApiDataFactory.create(params.classKey, body);
243
+ body = _chunkFM6WRAN5js.JsonApiDataFactory.create(params.classKey, body);
244
244
  }
245
245
  const apiResponse = await _chunk3ZPK4QOBjs.serverRequest.call(void 0, {
246
246
  method: "PATCH",
@@ -252,7 +252,7 @@ async function ServerJsonApiPatch(params) {
252
252
  language: params.language,
253
253
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _29 => _29.additionalHeaders])
254
254
  });
255
- return _chunkLI6CPNJIjs.translateResponse.call(void 0, {
255
+ return _chunkFM6WRAN5js.translateResponse.call(void 0, {
256
256
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
257
257
  apiResponse,
258
258
  companyId: params.companyId,
@@ -271,7 +271,7 @@ async function ServerJsonApiDelete(params) {
271
271
  language: params.language,
272
272
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _30 => _30.additionalHeaders])
273
273
  });
274
- return _chunkLI6CPNJIjs.translateResponse.call(void 0, {
274
+ return _chunkFM6WRAN5js.translateResponse.call(void 0, {
275
275
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
276
276
  apiResponse,
277
277
  companyId: params.companyId,
@@ -303,5 +303,5 @@ _chunk7QVYU63Ejs.__name.call(void 0, ServerJsonApiDelete, "ServerJsonApiDelete")
303
303
 
304
304
 
305
305
 
306
- exports.ServerAuthService = _chunkUYY34W7Rjs.AuthService; exports.ServerCompanyService = _chunkUYY34W7Rjs.CompanyService; exports.ServerContentService = _chunkUYY34W7Rjs.ContentService; exports.ServerFeatureService = _chunkUYY34W7Rjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkUYY34W7Rjs.NotificationService; exports.ServerPushService = _chunkUYY34W7Rjs.PushService; exports.ServerRoleService = _chunkUYY34W7Rjs.RoleService; exports.ServerS3Service = _chunkUYY34W7Rjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkUYY34W7Rjs.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 = _chunk3ZPK4QOBjs.serverRequest;
306
+ exports.ServerAuthService = _chunkNQVPCNRSjs.AuthService; exports.ServerCompanyService = _chunkNQVPCNRSjs.CompanyService; exports.ServerContentService = _chunkNQVPCNRSjs.ContentService; exports.ServerFeatureService = _chunkNQVPCNRSjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkNQVPCNRSjs.NotificationService; exports.ServerPushService = _chunkNQVPCNRSjs.PushService; exports.ServerRoleService = _chunkNQVPCNRSjs.RoleService; exports.ServerS3Service = _chunkNQVPCNRSjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkNQVPCNRSjs.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 = _chunk3ZPK4QOBjs.serverRequest;
307
307
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/server/index.js","../../src/server/cache.ts","../../src/server/ServerSession.ts","../../src/server/JsonApiServer.ts"],"names":[],"mappings":"AAAA;AACE;AACF,uDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACF,uDAA6B;AAC7B;AACE;AACF,uDAA6B;AAC7B;AACE;AACF,uDAA6B;AAC7B;AACA;AC1BA,mCAA8B;AAW9B,MAAA,SAAsB,kBAAA,CAAmB,GAAA,EAAa,QAAA,EAAwB,KAAA,EAAsB;AAClG,EAAA,kCAAA,GAAc,EAAK,OAAO,CAAA;AAC5B;AAFsB,qCAAA,kBAAA,EAAA,oBAAA,CAAA;AAUtB,MAAA,SAAsB,mBAAA,CAAoB,IAAA,EAAgB,QAAA,EAAwB,KAAA,EAAsB;AACtG,EAAA,IAAA,CAAA,MAAW,IAAA,GAAO,IAAA,EAAM;AACtB,IAAA,kCAAA,GAAc,EAAK,OAAO,CAAA;AAAA,EAC5B;AACF;AAJsB,qCAAA,mBAAA,EAAA,qBAAA,CAAA;ADiBtB;AACA;AEzCA,uCAAwB;AACxB,6CAAyB;AACzB,wEAAiB;AAGV,IAAM,cAAA,EAAN,MAAoB;AAAA,EAL3B,OAK2B;AAAA,IAAA,qCAAA,IAAA,EAAA,eAAA,CAAA;AAAA,EAAA;AAAA,EACzB,OAAA,MAAa,QAAA,CAAA,EAAW;AACtB,IAAA,MAAM,YAAA,EAAc,MAAM,8BAAA,CAAQ;AAClC,IAAA,MAAM,MAAA,EAAQ,WAAA,CAAY,GAAA,CA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,IAAA;AACxC,IAAA;AACkB,IAAA;AACD,IAAA;AAClB,EAAA;AACH;AArCsB;AA+CY;AACV,EAAA;AACa,EAAA;AAEjB,EAAA;AACP,EAAA;AACD,IAAA;AACH,EAAA;AACmC,IAAA;AAC1C,EAAA;AAEwC,EAAA;AAC9B,IAAA;AAC2B,IAAA;AACnC,IAAA;AACA,IAAA;AACc,IAAA;AACI,IAAA;AACD,IAAA;AACiB,IAAA;AACnC,EAAA;AAEwB,EAAA;AACiB,IAAA;AACxC,IAAA;AACkB,IAAA;AACD,IAAA;AAClB,EAAA;AACH;AApCsB;AA+CY;AACV,EAAA;AACa,EAAA;AAEjB,EAAA;AACP,EAAA;AACD,IAAA;AACqC,EAAA;AACL,IAAA;AAC1C,EAAA;AAEwC,EAAA;AAC9B,IAAA;AAC2B,IAAA;AACnC,IAAA;AACA,IAAA;AACc,IAAA;AACI,IAAA;AACD,IAAA;AACiB,IAAA;AACnC,EAAA;AAEwB,EAAA;AACiB,IAAA;AACxC,IAAA;AACkB,IAAA;AACD,IAAA;AAClB,EAAA;AACH;AArCsB;AA6CY;AACV,EAAA;AACa,EAAA;AAEK,EAAA;AAC9B,IAAA;AAC2B,IAAA;AACnC,IAAA;AACkB,IAAA;AACD,IAAA;AACiB,IAAA;AACnC,EAAA;AAEwB,EAAA;AACiB,IAAA;AACxC,IAAA;AACkB,IAAA;AACD,IAAA;AAClB,EAAA;AACH;AAzBsB;AHsD6B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/server/index.js","sourcesContent":[null,"// Server-only utilities (NOT server actions - these cannot be called from client components)\n\nimport { revalidateTag } from \"next/cache\";\n\nexport type CacheProfile = \"seconds\" | \"minutes\" | \"hours\" | \"days\" | \"weeks\" | \"max\" | \"default\";\n\n/**\n * Revalidate a cache tag to invalidate cached data.\n * Next.js 16+ requires a profile parameter.\n *\n * @param tag - The cache tag to invalidate\n * @param profile - The cache profile (defaults to \"max\" for immediate invalidation)\n */\nexport async function invalidateCacheTag(tag: string, profile: CacheProfile = \"max\"): Promise<void> {\n revalidateTag(tag, profile);\n}\n\n/**\n * Revalidate multiple cache tags.\n *\n * @param tags - Array of cache tags to invalidate\n * @param profile - The cache profile (defaults to \"max\" for immediate invalidation)\n */\nexport async function invalidateCacheTags(tags: string[], profile: CacheProfile = \"max\"): Promise<void> {\n for (const tag of tags) {\n revalidateTag(tag, profile);\n }\n}\n","import { cookies } from \"next/headers\";\nimport { redirect } from \"next/navigation\";\nimport pako from \"pako\";\nimport { Action, checkPermissionsFromServer, ModuleWithPermissions } from \"../permissions\";\n\nexport class ServerSession {\n static async isLogged() {\n const cookieStore = await cookies();\n const token = cookieStore.get(\"token\");\n\n if (!token || !token.value) return false;\n return true;\n }\n\n static async isLicenseActive(): Promise<boolean> {\n const cookieStore = await cookies();\n const licenseExpirationDate = cookieStore.get(\"licenseExpirationDate\")?.value;\n\n if (!licenseExpirationDate) return false;\n\n const now = new Date();\n return new Date(licenseExpirationDate) > now;\n }\n\n static async companyId() {\n const cookieStore = await cookies();\n return cookieStore.get(\"companyId\")?.value ?? \"\";\n }\n\n static async userId() {\n const cookieStore = await cookies();\n return cookieStore.get(\"userId\")?.value ?? \"\";\n }\n\n static async checkPermission<M extends ModuleWithPermissions>(params: { module: M; action: Action; data?: any }) {\n if (!(await this.hasPermissionToModule(params))) redirect(`/401`);\n }\n\n static async hasRole(roleId: string): Promise<boolean> {\n const cookieStore = await cookies();\n const roles = cookieStore.get(\"roles\")?.value;\n\n if (!roles || !roles.includes(roleId)) return false;\n\n return true;\n }\n\n static async hasFeature(featureId: string): Promise<boolean> {\n const cookieStore = await cookies();\n const features = cookieStore.get(\"features\")?.value;\n\n if (!features || !features.includes(featureId)) return false;\n\n return true;\n }\n\n static async hasPermissionToModule<M extends ModuleWithPermissions>(params: {\n module: M;\n action: Action;\n data?: any;\n }): Promise<boolean> {\n const cookieStore = await cookies();\n\n if (params.module.feature) {\n const features = cookieStore.get(\"features\")?.value;\n\n if (features && !features.includes(params.module.feature)) return false;\n }\n\n const rawModules = cookieStore.get(\"modules\")?.value;\n if (!rawModules) return false;\n\n const modules: {\n id: string;\n permissions: {\n create: boolean | string;\n read: boolean | string;\n update: boolean | string;\n delete: boolean | string;\n };\n }[] = JSON.parse(pako.ungzip(Buffer.from(rawModules, \"base64\"), { to: \"string\" }));\n\n const selectedModule = modules.find((module) => module.id === params.module.moduleId);\n\n return checkPermissionsFromServer({\n module: params.module,\n action: params.action,\n data: params.data,\n userId: await this.userId(),\n selectedModule: selectedModule,\n });\n\n // if (!selectedModule) return false;\n\n // if (!selectedModule.permissions[params.action]) return false;\n // if (typeof selectedModule.permissions[params.action] === \"boolean\")\n // return selectedModule.permissions[params.action] as boolean;\n\n // if (!params.data) return false;\n\n // return params.data[selectedModule.permissions[params.action] as string] === this.userId;\n }\n}\n","// Server-only utilities (NOT server actions - these cannot be called from client components)\n\nimport { JsonApiDataFactory } from \"../core/factories/JsonApiDataFactory\";\nimport { ApiRequestDataTypeInterface } from \"../core/interfaces/ApiRequestDataTypeInterface\";\nimport { ApiResponseInterface } from \"../core/interfaces/ApiResponseInterface\";\nimport { translateResponse } from \"../core/utils/translateResponse\";\nimport { ModuleWithPermissions } from \"../permissions/types\";\nimport { serverRequest } from \"./request\";\nimport { getServerToken } from \"./token\";\n\n// Config storage for server contexts\nlet _serverConfig: {\n apiUrl: string;\n appUrl?: string;\n trackablePages?: ModuleWithPermissions[];\n bootstrapper?: () => void;\n additionalHeaders?: Record<string, string>;\n} | null = null;\n\n/**\n * Configure the JSON:API server client.\n * Call this in your Bootstrapper or server initialization.\n */\nexport function configureServerJsonApi(config: {\n apiUrl: string;\n appUrl?: string;\n trackablePages?: ModuleWithPermissions[];\n bootstrapper?: () => void;\n additionalHeaders?: Record<string, string>;\n}): void {\n _serverConfig = config;\n if (config.bootstrapper) {\n config.bootstrapper();\n }\n}\n\nexport function getServerApiUrl(): string {\n if (_serverConfig?.apiUrl) {\n return _serverConfig.apiUrl;\n }\n const envUrl = process.env.NEXT_PUBLIC_API_URL;\n if (!envUrl) {\n throw new Error(\n \"API URL not configured. Use configureServerJsonApi() or set NEXT_PUBLIC_API_URL environment variable.\",\n );\n }\n return envUrl;\n}\n\nexport function getServerAppUrl(): string {\n if (_serverConfig?.appUrl) {\n return _serverConfig.appUrl;\n }\n const envUrl = process.env.NEXT_PUBLIC_ADDRESS;\n if (!envUrl) {\n throw new Error(\n \"App URL not configured. Use configureServerJsonApi({ appUrl }) or set NEXT_PUBLIC_ADDRESS environment variable.\",\n );\n }\n return envUrl.trim().replace(/\\/+$/, \"\");\n}\n\nexport function getServerTrackablePages(): ModuleWithPermissions[] {\n return _serverConfig?.trackablePages ?? [];\n}\n\nfunction runServerBootstrapper(): void {\n if (_serverConfig?.bootstrapper) {\n _serverConfig.bootstrapper();\n }\n}\n\nfunction buildServerUrl(endpoint: string): string {\n const apiUrl = getServerApiUrl();\n return endpoint.startsWith(\"http\") ? endpoint : `${apiUrl}${endpoint}`;\n}\n\nexport async function ServerJsonApiGet(params: {\n classKey: ApiRequestDataTypeInterface;\n endpoint: string;\n companyId?: string;\n language: string;\n}): Promise<ApiResponseInterface> {\n runServerBootstrapper();\n const token = await getServerToken();\n\n const apiResponse = await serverRequest({\n method: \"GET\",\n url: buildServerUrl(params.endpoint),\n token,\n cache: params.classKey.cache,\n companyId: params.companyId,\n language: params.language,\n additionalHeaders: _serverConfig?.additionalHeaders,\n });\n\n return translateResponse({\n classKey: params.classKey,\n apiResponse,\n companyId: params.companyId,\n language: params.language,\n paginationHandler: async (endpoint: string) =>\n ServerJsonApiGet({\n classKey: params.classKey,\n endpoint,\n companyId: params.companyId,\n language: params.language,\n }),\n });\n}\n\nexport async function ServerJsonApiPost(params: {\n classKey: ApiRequestDataTypeInterface;\n endpoint: string;\n companyId?: string;\n body?: any;\n overridesJsonApiCreation?: boolean;\n files?: { [key: string]: File | Blob } | File | Blob;\n language: string;\n responseType?: ApiRequestDataTypeInterface;\n}): Promise<ApiResponseInterface> {\n runServerBootstrapper();\n const token = await getServerToken();\n\n let body = params.body;\n if (!body) {\n body = {};\n } else if (params.overridesJsonApiCreation !== true) {\n body = JsonApiDataFactory.create(params.classKey, body);\n }\n\n const apiResponse = await serverRequest({\n method: \"POST\",\n url: buildServerUrl(params.endpoint),\n token,\n body,\n files: params.files,\n companyId: params.companyId,\n language: params.language,\n additionalHeaders: _serverConfig?.additionalHeaders,\n });\n\n return translateResponse({\n classKey: params.responseType ?? params.classKey,\n apiResponse,\n companyId: params.companyId,\n language: params.language,\n });\n}\n\nexport async function ServerJsonApiPut(params: {\n classKey: ApiRequestDataTypeInterface;\n endpoint: string;\n companyId?: string;\n body?: any;\n files?: { [key: string]: File | Blob } | File | Blob;\n language: string;\n responseType?: ApiRequestDataTypeInterface;\n}): Promise<ApiResponseInterface> {\n runServerBootstrapper();\n const token = await getServerToken();\n\n let body = params.body;\n if (!body) {\n body = {};\n } else {\n body = JsonApiDataFactory.create(params.classKey, body);\n }\n\n const apiResponse = await serverRequest({\n method: \"PUT\",\n url: buildServerUrl(params.endpoint),\n token,\n body,\n files: params.files,\n companyId: params.companyId,\n language: params.language,\n additionalHeaders: _serverConfig?.additionalHeaders,\n });\n\n return translateResponse({\n classKey: params.responseType ?? params.classKey,\n apiResponse,\n companyId: params.companyId,\n language: params.language,\n });\n}\n\nexport async function ServerJsonApiPatch(params: {\n classKey: ApiRequestDataTypeInterface;\n endpoint: string;\n companyId?: string;\n body?: any;\n files?: { [key: string]: File | Blob } | File | Blob;\n overridesJsonApiCreation?: boolean;\n responseType?: ApiRequestDataTypeInterface;\n language: string;\n}): Promise<ApiResponseInterface> {\n runServerBootstrapper();\n const token = await getServerToken();\n\n let body = params.body;\n if (!body) {\n body = {};\n } else if (params.overridesJsonApiCreation !== true) {\n body = JsonApiDataFactory.create(params.classKey, body);\n }\n\n const apiResponse = await serverRequest({\n method: \"PATCH\",\n url: buildServerUrl(params.endpoint),\n token,\n body,\n files: params.files,\n companyId: params.companyId,\n language: params.language,\n additionalHeaders: _serverConfig?.additionalHeaders,\n });\n\n return translateResponse({\n classKey: params.responseType ?? params.classKey,\n apiResponse,\n companyId: params.companyId,\n language: params.language,\n });\n}\n\nexport async function ServerJsonApiDelete(params: {\n classKey: ApiRequestDataTypeInterface;\n endpoint: string;\n companyId?: string;\n language: string;\n responseType?: ApiRequestDataTypeInterface;\n}): Promise<ApiResponseInterface> {\n runServerBootstrapper();\n const token = await getServerToken();\n\n const apiResponse = await serverRequest({\n method: \"DELETE\",\n url: buildServerUrl(params.endpoint),\n token,\n companyId: params.companyId,\n language: params.language,\n additionalHeaders: _serverConfig?.additionalHeaders,\n });\n\n return translateResponse({\n classKey: params.responseType ?? params.classKey,\n apiResponse,\n companyId: params.companyId,\n language: params.language,\n });\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/server/index.js","../../src/server/cache.ts","../../src/server/ServerSession.ts","../../src/server/JsonApiServer.ts"],"names":[],"mappings":"AAAA;AACE;AACF,uDAA6B;AAC7B;AACE;AACF,uDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACF,uDAA6B;AAC7B;AACE;AACF,uDAA6B;AAC7B;AACA;AC1BA,mCAA8B;AAW9B,MAAA,SAAsB,kBAAA,CAAmB,GAAA,EAAa,QAAA,EAAwB,KAAA,EAAsB;AAClG,EAAA,kCAAA,GAAc,EAAK,OAAO,CAAA;AAC5B;AAFsB,qCAAA,kBAAA,EAAA,oBAAA,CAAA;AAUtB,MAAA,SAAsB,mBAAA,CAAoB,IAAA,EAAgB,QAAA,EAAwB,KAAA,EAAsB;AACtG,EAAA,IAAA,CAAA,MAAW,IAAA,GA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,EAAA;AACiB,IAAA;AACxC,IAAA;AACkB,IAAA;AACD,IAAA;AAClB,EAAA;AACH;AAzBsB;AHsD6B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/server/index.js","sourcesContent":[null,"// Server-only utilities (NOT server actions - these cannot be called from client components)\n\nimport { revalidateTag } from \"next/cache\";\n\nexport type CacheProfile = \"seconds\" | \"minutes\" | \"hours\" | \"days\" | \"weeks\" | \"max\" | \"default\";\n\n/**\n * Revalidate a cache tag to invalidate cached data.\n * Next.js 16+ requires a profile parameter.\n *\n * @param tag - The cache tag to invalidate\n * @param profile - The cache profile (defaults to \"max\" for immediate invalidation)\n */\nexport async function invalidateCacheTag(tag: string, profile: CacheProfile = \"max\"): Promise<void> {\n revalidateTag(tag, profile);\n}\n\n/**\n * Revalidate multiple cache tags.\n *\n * @param tags - Array of cache tags to invalidate\n * @param profile - The cache profile (defaults to \"max\" for immediate invalidation)\n */\nexport async function invalidateCacheTags(tags: string[], profile: CacheProfile = \"max\"): Promise<void> {\n for (const tag of tags) {\n revalidateTag(tag, profile);\n }\n}\n","import { cookies } from \"next/headers\";\nimport { redirect } from \"next/navigation\";\nimport pako from \"pako\";\nimport { Action, checkPermissionsFromServer, ModuleWithPermissions } from \"../permissions\";\n\nexport class ServerSession {\n static async isLogged() {\n const cookieStore = await cookies();\n const token = cookieStore.get(\"token\");\n\n if (!token || !token.value) return false;\n return true;\n }\n\n static async isLicenseActive(): Promise<boolean> {\n const cookieStore = await cookies();\n const licenseExpirationDate = cookieStore.get(\"licenseExpirationDate\")?.value;\n\n if (!licenseExpirationDate) return false;\n\n const now = new Date();\n return new Date(licenseExpirationDate) > now;\n }\n\n static async companyId() {\n const cookieStore = await cookies();\n return cookieStore.get(\"companyId\")?.value ?? \"\";\n }\n\n static async userId() {\n const cookieStore = await cookies();\n return cookieStore.get(\"userId\")?.value ?? \"\";\n }\n\n static async checkPermission<M extends ModuleWithPermissions>(params: { module: M; action: Action; data?: any }) {\n if (!(await this.hasPermissionToModule(params))) redirect(`/401`);\n }\n\n static async hasRole(roleId: string): Promise<boolean> {\n const cookieStore = await cookies();\n const roles = cookieStore.get(\"roles\")?.value;\n\n if (!roles || !roles.includes(roleId)) return false;\n\n return true;\n }\n\n static async hasFeature(featureId: string): Promise<boolean> {\n const cookieStore = await cookies();\n const features = cookieStore.get(\"features\")?.value;\n\n if (!features || !features.includes(featureId)) return false;\n\n return true;\n }\n\n static async hasPermissionToModule<M extends ModuleWithPermissions>(params: {\n module: M;\n action: Action;\n data?: any;\n }): Promise<boolean> {\n const cookieStore = await cookies();\n\n if (params.module.feature) {\n const features = cookieStore.get(\"features\")?.value;\n\n if (features && !features.includes(params.module.feature)) return false;\n }\n\n const rawModules = cookieStore.get(\"modules\")?.value;\n if (!rawModules) return false;\n\n const modules: {\n id: string;\n permissions: {\n create: boolean | string;\n read: boolean | string;\n update: boolean | string;\n delete: boolean | string;\n };\n }[] = JSON.parse(pako.ungzip(Buffer.from(rawModules, \"base64\"), { to: \"string\" }));\n\n const selectedModule = modules.find((module) => module.id === params.module.moduleId);\n\n return checkPermissionsFromServer({\n module: params.module,\n action: params.action,\n data: params.data,\n userId: await this.userId(),\n selectedModule: selectedModule,\n });\n\n // if (!selectedModule) return false;\n\n // if (!selectedModule.permissions[params.action]) return false;\n // if (typeof selectedModule.permissions[params.action] === \"boolean\")\n // return selectedModule.permissions[params.action] as boolean;\n\n // if (!params.data) return false;\n\n // return params.data[selectedModule.permissions[params.action] as string] === this.userId;\n }\n}\n","// Server-only utilities (NOT server actions - these cannot be called from client components)\n\nimport { JsonApiDataFactory } from \"../core/factories/JsonApiDataFactory\";\nimport { ApiRequestDataTypeInterface } from \"../core/interfaces/ApiRequestDataTypeInterface\";\nimport { ApiResponseInterface } from \"../core/interfaces/ApiResponseInterface\";\nimport { translateResponse } from \"../core/utils/translateResponse\";\nimport { ModuleWithPermissions } from \"../permissions/types\";\nimport { serverRequest } from \"./request\";\nimport { getServerToken } from \"./token\";\n\n// Config storage for server contexts\nlet _serverConfig: {\n apiUrl: string;\n appUrl?: string;\n trackablePages?: ModuleWithPermissions[];\n bootstrapper?: () => void;\n additionalHeaders?: Record<string, string>;\n} | null = null;\n\n/**\n * Configure the JSON:API server client.\n * Call this in your Bootstrapper or server initialization.\n */\nexport function configureServerJsonApi(config: {\n apiUrl: string;\n appUrl?: string;\n trackablePages?: ModuleWithPermissions[];\n bootstrapper?: () => void;\n additionalHeaders?: Record<string, string>;\n}): void {\n _serverConfig = config;\n if (config.bootstrapper) {\n config.bootstrapper();\n }\n}\n\nexport function getServerApiUrl(): string {\n if (_serverConfig?.apiUrl) {\n return _serverConfig.apiUrl;\n }\n const envUrl = process.env.NEXT_PUBLIC_API_URL;\n if (!envUrl) {\n throw new Error(\n \"API URL not configured. Use configureServerJsonApi() or set NEXT_PUBLIC_API_URL environment variable.\",\n );\n }\n return envUrl;\n}\n\nexport function getServerAppUrl(): string {\n if (_serverConfig?.appUrl) {\n return _serverConfig.appUrl;\n }\n const envUrl = process.env.NEXT_PUBLIC_ADDRESS;\n if (!envUrl) {\n throw new Error(\n \"App URL not configured. Use configureServerJsonApi({ appUrl }) or set NEXT_PUBLIC_ADDRESS environment variable.\",\n );\n }\n return envUrl.trim().replace(/\\/+$/, \"\");\n}\n\nexport function getServerTrackablePages(): ModuleWithPermissions[] {\n return _serverConfig?.trackablePages ?? [];\n}\n\nfunction runServerBootstrapper(): void {\n if (_serverConfig?.bootstrapper) {\n _serverConfig.bootstrapper();\n }\n}\n\nfunction buildServerUrl(endpoint: string): string {\n const apiUrl = getServerApiUrl();\n return endpoint.startsWith(\"http\") ? endpoint : `${apiUrl}${endpoint}`;\n}\n\nexport async function ServerJsonApiGet(params: {\n classKey: ApiRequestDataTypeInterface;\n endpoint: string;\n companyId?: string;\n language: string;\n}): Promise<ApiResponseInterface> {\n runServerBootstrapper();\n const token = await getServerToken();\n\n const apiResponse = await serverRequest({\n method: \"GET\",\n url: buildServerUrl(params.endpoint),\n token,\n cache: params.classKey.cache,\n companyId: params.companyId,\n language: params.language,\n additionalHeaders: _serverConfig?.additionalHeaders,\n });\n\n return translateResponse({\n classKey: params.classKey,\n apiResponse,\n companyId: params.companyId,\n language: params.language,\n paginationHandler: async (endpoint: string) =>\n ServerJsonApiGet({\n classKey: params.classKey,\n endpoint,\n companyId: params.companyId,\n language: params.language,\n }),\n });\n}\n\nexport async function ServerJsonApiPost(params: {\n classKey: ApiRequestDataTypeInterface;\n endpoint: string;\n companyId?: string;\n body?: any;\n overridesJsonApiCreation?: boolean;\n files?: { [key: string]: File | Blob } | File | Blob;\n language: string;\n responseType?: ApiRequestDataTypeInterface;\n}): Promise<ApiResponseInterface> {\n runServerBootstrapper();\n const token = await getServerToken();\n\n let body = params.body;\n if (!body) {\n body = {};\n } else if (params.overridesJsonApiCreation !== true) {\n body = JsonApiDataFactory.create(params.classKey, body);\n }\n\n const apiResponse = await serverRequest({\n method: \"POST\",\n url: buildServerUrl(params.endpoint),\n token,\n body,\n files: params.files,\n companyId: params.companyId,\n language: params.language,\n additionalHeaders: _serverConfig?.additionalHeaders,\n });\n\n return translateResponse({\n classKey: params.responseType ?? params.classKey,\n apiResponse,\n companyId: params.companyId,\n language: params.language,\n });\n}\n\nexport async function ServerJsonApiPut(params: {\n classKey: ApiRequestDataTypeInterface;\n endpoint: string;\n companyId?: string;\n body?: any;\n files?: { [key: string]: File | Blob } | File | Blob;\n language: string;\n responseType?: ApiRequestDataTypeInterface;\n}): Promise<ApiResponseInterface> {\n runServerBootstrapper();\n const token = await getServerToken();\n\n let body = params.body;\n if (!body) {\n body = {};\n } else {\n body = JsonApiDataFactory.create(params.classKey, body);\n }\n\n const apiResponse = await serverRequest({\n method: \"PUT\",\n url: buildServerUrl(params.endpoint),\n token,\n body,\n files: params.files,\n companyId: params.companyId,\n language: params.language,\n additionalHeaders: _serverConfig?.additionalHeaders,\n });\n\n return translateResponse({\n classKey: params.responseType ?? params.classKey,\n apiResponse,\n companyId: params.companyId,\n language: params.language,\n });\n}\n\nexport async function ServerJsonApiPatch(params: {\n classKey: ApiRequestDataTypeInterface;\n endpoint: string;\n companyId?: string;\n body?: any;\n files?: { [key: string]: File | Blob } | File | Blob;\n overridesJsonApiCreation?: boolean;\n responseType?: ApiRequestDataTypeInterface;\n language: string;\n}): Promise<ApiResponseInterface> {\n runServerBootstrapper();\n const token = await getServerToken();\n\n let body = params.body;\n if (!body) {\n body = {};\n } else if (params.overridesJsonApiCreation !== true) {\n body = JsonApiDataFactory.create(params.classKey, body);\n }\n\n const apiResponse = await serverRequest({\n method: \"PATCH\",\n url: buildServerUrl(params.endpoint),\n token,\n body,\n files: params.files,\n companyId: params.companyId,\n language: params.language,\n additionalHeaders: _serverConfig?.additionalHeaders,\n });\n\n return translateResponse({\n classKey: params.responseType ?? params.classKey,\n apiResponse,\n companyId: params.companyId,\n language: params.language,\n });\n}\n\nexport async function ServerJsonApiDelete(params: {\n classKey: ApiRequestDataTypeInterface;\n endpoint: string;\n companyId?: string;\n language: string;\n responseType?: ApiRequestDataTypeInterface;\n}): Promise<ApiResponseInterface> {\n runServerBootstrapper();\n const token = await getServerToken();\n\n const apiResponse = await serverRequest({\n method: \"DELETE\",\n url: buildServerUrl(params.endpoint),\n token,\n companyId: params.companyId,\n language: params.language,\n additionalHeaders: _serverConfig?.additionalHeaders,\n });\n\n return translateResponse({\n classKey: params.responseType ?? params.classKey,\n apiResponse,\n companyId: params.companyId,\n language: params.language,\n });\n}\n"]}
@@ -1,3 +1,6 @@
1
+ import {
2
+ getServerToken
3
+ } from "../chunk-F5UNXZ3J.mjs";
1
4
  import {
2
5
  serverRequest
3
6
  } from "../chunk-KJ4ETLJB.mjs";
@@ -12,16 +15,13 @@ import {
12
15
  S3Service,
13
16
  UserService,
14
17
  checkPermissionsFromServer
15
- } from "../chunk-KUFWHMMY.mjs";
18
+ } from "../chunk-5U4NJJOF.mjs";
16
19
  import "../chunk-AUXK7QSA.mjs";
17
20
  import "../chunk-C7C7VY4F.mjs";
18
21
  import {
19
22
  JsonApiDataFactory,
20
23
  translateResponse
21
- } from "../chunk-3VM3WAOV.mjs";
22
- import {
23
- getServerToken
24
- } from "../chunk-F5UNXZ3J.mjs";
24
+ } from "../chunk-U4MTVHOC.mjs";
25
25
  import {
26
26
  __name
27
27
  } from "../chunk-PAWJFY3S.mjs";
@@ -1,14 +1,4 @@
1
- import { A as ApiDataInterface } from './ApiRequestDataTypeInterface-DIEOFn9s.js';
2
-
3
- declare enum AuthComponent {
4
- Login = 0,
5
- ForgotPassword = 1,
6
- ResetPassword = 2,
7
- ActivateAccount = 3,
8
- AcceptInvitation = 4,
9
- Register = 5,
10
- Landing = 6
11
- }
1
+ import { A as ApiDataInterface } from './ApiDataInterface-DPP8s46n.mjs';
12
2
 
13
3
  interface StripeUsageInterface extends ApiDataInterface {
14
4
  get subscriptionId(): string;
@@ -223,4 +213,4 @@ interface StripeSubscriptionCreateResponse {
223
213
  meta: StripeSubscriptionCreateMeta;
224
214
  }
225
215
 
226
- export { AuthComponent as A, InvoiceStatus as I, type MeterInterface as M, type PaymentMethodInterface as P, type ReportUsageInput as R, type StripeCustomerInterface as S, type UsageSummaryInterface as U, type StripeInvoiceInterface as a, type ProrationPreviewInterface as b, type ProrationLineItem as c, type StripePriceInterface as d, type PriceRecurring as e, type StripePriceInput as f, type StripeProductInterface as g, type StripeProductInput as h, SubscriptionStatus as i, type StripeSubscriptionInterface as j, type StripeSubscriptionInput as k, type StripeSubscriptionCreateMeta as l, type StripeSubscriptionCreateResponse as m, type StripeUsageInterface as n, type MeterSummaryInterface as o, type UsageRecordInterface as p };
216
+ export { InvoiceStatus as I, type MeterInterface as M, type PaymentMethodInterface as P, type ReportUsageInput as R, type StripeCustomerInterface as S, type UsageSummaryInterface as U, type StripeInvoiceInterface as a, type ProrationPreviewInterface as b, type ProrationLineItem as c, type StripePriceInterface as d, type PriceRecurring as e, type StripePriceInput as f, type StripeProductInterface as g, type StripeProductInput as h, SubscriptionStatus as i, type StripeSubscriptionInterface as j, type StripeSubscriptionInput as k, type StripeSubscriptionCreateMeta as l, type StripeSubscriptionCreateResponse as m, type StripeUsageInterface as n, type MeterSummaryInterface as o, type UsageRecordInterface as p };
@@ -1,14 +1,4 @@
1
- import { A as ApiDataInterface } from './ApiRequestDataTypeInterface-DIEOFn9s.mjs';
2
-
3
- declare enum AuthComponent {
4
- Login = 0,
5
- ForgotPassword = 1,
6
- ResetPassword = 2,
7
- ActivateAccount = 3,
8
- AcceptInvitation = 4,
9
- Register = 5,
10
- Landing = 6
11
- }
1
+ import { A as ApiDataInterface } from './ApiDataInterface-DPP8s46n.js';
12
2
 
13
3
  interface StripeUsageInterface extends ApiDataInterface {
14
4
  get subscriptionId(): string;
@@ -223,4 +213,4 @@ interface StripeSubscriptionCreateResponse {
223
213
  meta: StripeSubscriptionCreateMeta;
224
214
  }
225
215
 
226
- export { AuthComponent as A, InvoiceStatus as I, type MeterInterface as M, type PaymentMethodInterface as P, type ReportUsageInput as R, type StripeCustomerInterface as S, type UsageSummaryInterface as U, type StripeInvoiceInterface as a, type ProrationPreviewInterface as b, type ProrationLineItem as c, type StripePriceInterface as d, type PriceRecurring as e, type StripePriceInput as f, type StripeProductInterface as g, type StripeProductInput as h, SubscriptionStatus as i, type StripeSubscriptionInterface as j, type StripeSubscriptionInput as k, type StripeSubscriptionCreateMeta as l, type StripeSubscriptionCreateResponse as m, type StripeUsageInterface as n, type MeterSummaryInterface as o, type UsageRecordInterface as p };
216
+ export { InvoiceStatus as I, type MeterInterface as M, type PaymentMethodInterface as P, type ReportUsageInput as R, type StripeCustomerInterface as S, type UsageSummaryInterface as U, type StripeInvoiceInterface as a, type ProrationPreviewInterface as b, type ProrationLineItem as c, type StripePriceInterface as d, type PriceRecurring as e, type StripePriceInput as f, type StripeProductInterface as g, type StripeProductInput as h, SubscriptionStatus as i, type StripeSubscriptionInterface as j, type StripeSubscriptionInput as k, type StripeSubscriptionCreateMeta as l, type StripeSubscriptionCreateResponse as m, type StripeUsageInterface as n, type MeterSummaryInterface as o, type UsageRecordInterface as p };
@@ -1,8 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React__default, { ReactElement } from 'react';
3
3
  import { J as JsonApiConfig } from '../JsonApiContext-Bsm_Q2oe.mjs';
4
- import { a as ApiRequestDataTypeInterface, A as ApiDataInterface } from '../ApiRequestDataTypeInterface-DIEOFn9s.mjs';
5
- import { A as ApiResponseInterface } from '../ApiResponseInterface-Dqvu09tz.mjs';
4
+ import { A as ApiRequestDataTypeInterface } from '../ApiRequestDataTypeInterface-CUKFDBx2.mjs';
5
+ import { A as ApiResponseInterface } from '../ApiResponseInterface-zeewugD7.mjs';
6
+ import { A as ApiDataInterface } from '../ApiDataInterface-DPP8s46n.mjs';
6
7
  import { Mock } from 'vitest';
7
8
  import { RenderOptions, RenderResult } from '@testing-library/react';
8
9
  export { fireEvent, render, screen, waitFor, within } from '@testing-library/react';
@@ -1,8 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React__default, { ReactElement } from 'react';
3
3
  import { J as JsonApiConfig } from '../JsonApiContext-Bsm_Q2oe.js';
4
- import { a as ApiRequestDataTypeInterface, A as ApiDataInterface } from '../ApiRequestDataTypeInterface-DIEOFn9s.js';
5
- import { A as ApiResponseInterface } from '../ApiResponseInterface-BKyod24U.js';
4
+ import { A as ApiRequestDataTypeInterface } from '../ApiRequestDataTypeInterface-CUKFDBx2.js';
5
+ import { A as ApiResponseInterface } from '../ApiResponseInterface-CAIAeP5d.js';
6
+ import { A as ApiDataInterface } from '../ApiDataInterface-DPP8s46n.js';
6
7
  import { Mock } from 'vitest';
7
8
  import { RenderOptions, RenderResult } from '@testing-library/react';
8
9
  export { fireEvent, render, screen, waitFor, within } from '@testing-library/react';
@@ -1,4 +1,4 @@
1
- import { N as NotificationInterface } from './notification.interface-BGaPiCUM.mjs';
1
+ import { N as NotificationInterface } from './notification.interface-blT8r47t.mjs';
2
2
 
3
3
  interface UseSocketOptions {
4
4
  token: string;
@@ -1,4 +1,4 @@
1
- import { N as NotificationInterface } from './notification.interface-CqwaOIgM.js';
1
+ import { N as NotificationInterface } from './notification.interface-D7_g5SnS.js';
2
2
 
3
3
  interface UseSocketOptions {
4
4
  token: string;