@carlonicora/nextjs-jsonapi 1.118.0 → 1.119.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/{BlockNoteEditor-5FFVS7KW.js → BlockNoteEditor-BPACLNMB.js} +20 -20
  2. package/dist/{BlockNoteEditor-5FFVS7KW.js.map → BlockNoteEditor-BPACLNMB.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-6GRZW6BL.mjs → BlockNoteEditor-CEDKBT67.mjs} +5 -5
  4. package/dist/JsonApiRequest-HE5LTEYK.js +26 -0
  5. package/dist/JsonApiRequest-HE5LTEYK.js.map +1 -0
  6. package/dist/{JsonApiRequest-IYL5RZ7I.mjs → JsonApiRequest-SN3DNFDR.mjs} +4 -2
  7. package/dist/billing/index.js +347 -347
  8. package/dist/billing/index.mjs +4 -4
  9. package/dist/{chunk-KXHEOLPZ.mjs → chunk-4SPL6QH3.mjs} +6 -6
  10. package/dist/{chunk-6KLR3WJQ.js → chunk-55Q43DI5.js} +9 -9
  11. package/dist/{chunk-6KLR3WJQ.js.map → chunk-55Q43DI5.js.map} +1 -1
  12. package/dist/{chunk-WEPQD5MP.mjs → chunk-5U7QDGDQ.mjs} +3 -3
  13. package/dist/{chunk-S2PTWBN6.js → chunk-6P7MEU7Q.js} +64 -50
  14. package/dist/chunk-6P7MEU7Q.js.map +1 -0
  15. package/dist/{chunk-M2ODDWY3.js → chunk-DXTOA7OO.js} +701 -701
  16. package/dist/{chunk-M2ODDWY3.js.map → chunk-DXTOA7OO.js.map} +1 -1
  17. package/dist/{chunk-M7XAKLSP.mjs → chunk-FWOS6PC5.mjs} +38 -24
  18. package/dist/chunk-FWOS6PC5.mjs.map +1 -0
  19. package/dist/{chunk-J5LROFGL.js → chunk-RCMIVTVL.js} +14 -11
  20. package/dist/chunk-RCMIVTVL.js.map +1 -0
  21. package/dist/{chunk-KK7PYKVI.mjs → chunk-WC2BTKJP.mjs} +13 -10
  22. package/dist/{chunk-KK7PYKVI.mjs.map → chunk-WC2BTKJP.mjs.map} +1 -1
  23. package/dist/client/index.d.mts +15 -1
  24. package/dist/client/index.d.ts +15 -1
  25. package/dist/client/index.js +7 -5
  26. package/dist/client/index.js.map +1 -1
  27. package/dist/client/index.mjs +6 -4
  28. package/dist/components/index.js +5 -5
  29. package/dist/components/index.mjs +4 -4
  30. package/dist/contexts/index.js +5 -5
  31. package/dist/contexts/index.mjs +4 -4
  32. package/dist/core/index.d.mts +7 -2
  33. package/dist/core/index.d.ts +7 -2
  34. package/dist/core/index.js +3 -3
  35. package/dist/core/index.mjs +2 -2
  36. package/dist/features/help/index.js +37 -37
  37. package/dist/features/help/index.mjs +4 -4
  38. package/dist/index.d.mts +2 -2
  39. package/dist/index.d.ts +2 -2
  40. package/dist/index.js +4 -4
  41. package/dist/index.mjs +3 -3
  42. package/dist/{s3.service-CihgBy97.d.mts → s3.service-CBqyDZyz.d.mts} +7 -0
  43. package/dist/{s3.service-Cyvfk3qV.d.ts → s3.service-gcEjq8gF.d.ts} +7 -0
  44. package/dist/server/index.d.mts +1 -1
  45. package/dist/server/index.d.ts +1 -1
  46. package/dist/server/index.js +12 -12
  47. package/dist/server/index.mjs +2 -2
  48. package/package.json +1 -1
  49. package/src/client/JsonApiClient.ts +23 -8
  50. package/src/client/__tests__/JsonApiClient.test.ts +31 -0
  51. package/src/core/abstracts/AbstractService.ts +13 -0
  52. package/src/core/abstracts/ClientAbstractService.ts +10 -0
  53. package/src/unified/JsonApiRequest.ts +22 -8
  54. package/src/unified/__tests__/JsonApiRequest.test.ts +29 -0
  55. package/dist/JsonApiRequest-OSGJ63XR.js +0 -24
  56. package/dist/JsonApiRequest-OSGJ63XR.js.map +0 -1
  57. package/dist/chunk-J5LROFGL.js.map +0 -1
  58. package/dist/chunk-M7XAKLSP.mjs.map +0 -1
  59. package/dist/chunk-S2PTWBN6.js.map +0 -1
  60. /package/dist/{BlockNoteEditor-6GRZW6BL.mjs.map → BlockNoteEditor-CEDKBT67.mjs.map} +0 -0
  61. /package/dist/{JsonApiRequest-IYL5RZ7I.mjs.map → JsonApiRequest-SN3DNFDR.mjs.map} +0 -0
  62. /package/dist/{chunk-KXHEOLPZ.mjs.map → chunk-4SPL6QH3.mjs.map} +0 -0
  63. /package/dist/{chunk-WEPQD5MP.mjs.map → chunk-5U7QDGDQ.mjs.map} +0 -0
package/dist/index.d.mts CHANGED
@@ -4,8 +4,8 @@ export { A as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys,
4
4
  export { A as ApiResponseInterface } from './ApiResponseInterface-rsXRL_Hn.mjs';
5
5
  import { AbstractApiData } from './core/index.mjs';
6
6
  export { AppModuleDefinitions, Assistant, AssistantMessage, AssistantMessageModule, AssistantMessageService, AssistantModule, AssistantService, AuditLog, AuditLogInterface, AuditLogModule, AuditLogService, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, Chunk, ChunkInput, ChunkModule, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, HowTo, HowToFields, HowToModule, HowToService, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModulePathsModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PermissionMappingModule, Push, PushInput, PushInterface, PushModule, RbacMatrixModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, formatLocalDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.mjs';
7
- import { b as AbstractService } from './s3.service-CihgBy97.mjs';
8
- export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, c as NextRef, N as NotificationService, d as PreviousRef, P as PushService, R as RoleService, j as S3Input, k as S3Interface, S as S3Service, e as SelfRef, T as TotalRef, i as TwoFactorChallengeInterface, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-CihgBy97.mjs';
7
+ import { b as AbstractService } from './s3.service-CBqyDZyz.mjs';
8
+ export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, c as NextRef, N as NotificationService, d as PreviousRef, P as PushService, R as RoleService, j as S3Input, k as S3Interface, S as S3Service, e as SelfRef, T as TotalRef, i as TwoFactorChallengeInterface, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-CBqyDZyz.mjs';
9
9
  export { c as AssistantMessageInput, d as AssistantMessageInterface, A as AssistantMessageRole, b as AssistantMessageType, B as BreadcrumbItemData, e as ChunkInterface, C as ChunkRelationshipMeta, H as HowToInput, a as HowToInterface } from './AssistantMessageInterface-DH1QwtC_.mjs';
10
10
  export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-xH3TGvVk.mjs';
11
11
  export { ClassValue } from 'clsx';
package/dist/index.d.ts CHANGED
@@ -4,8 +4,8 @@ export { A as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys,
4
4
  export { A as ApiResponseInterface } from './ApiResponseInterface-CWLvSCvS.js';
5
5
  import { AbstractApiData } from './core/index.js';
6
6
  export { AppModuleDefinitions, Assistant, AssistantMessage, AssistantMessageModule, AssistantMessageService, AssistantModule, AssistantService, AuditLog, AuditLogInterface, AuditLogModule, AuditLogService, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, Chunk, ChunkInput, ChunkModule, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, HowTo, HowToFields, HowToModule, HowToService, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModulePathsModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PermissionMappingModule, Push, PushInput, PushInterface, PushModule, RbacMatrixModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, formatLocalDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.js';
7
- import { b as AbstractService } from './s3.service-Cyvfk3qV.js';
8
- export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, c as NextRef, N as NotificationService, d as PreviousRef, P as PushService, R as RoleService, j as S3Input, k as S3Interface, S as S3Service, e as SelfRef, T as TotalRef, i as TwoFactorChallengeInterface, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-Cyvfk3qV.js';
7
+ import { b as AbstractService } from './s3.service-gcEjq8gF.js';
8
+ export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, c as NextRef, N as NotificationService, d as PreviousRef, P as PushService, R as RoleService, j as S3Input, k as S3Interface, S as S3Service, e as SelfRef, T as TotalRef, i as TwoFactorChallengeInterface, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-gcEjq8gF.js';
9
9
  export { c as AssistantMessageInput, d as AssistantMessageInterface, A as AssistantMessageRole, b as AssistantMessageType, B as BreadcrumbItemData, e as ChunkInterface, C as ChunkRelationshipMeta, H as HowToInput, a as HowToInterface } from './AssistantMessageInterface-giWvsOrX.js';
10
10
  export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-xH3TGvVk.js';
11
11
  export { ClassValue } from 'clsx';
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
 
20
20
 
21
- var _chunk6KLR3WJQjs = require('./chunk-6KLR3WJQ.js');
21
+ var _chunk55Q43DI5js = require('./chunk-55Q43DI5.js');
22
22
 
23
23
 
24
24
 
@@ -199,7 +199,7 @@ var _chunk6KLR3WJQjs = require('./chunk-6KLR3WJQ.js');
199
199
 
200
200
 
201
201
 
202
- var _chunkS2PTWBN6js = require('./chunk-S2PTWBN6.js');
202
+ var _chunk6P7MEU7Qjs = require('./chunk-6P7MEU7Q.js');
203
203
  require('./chunk-LXKSUWAV.js');
204
204
  require('./chunk-IBS6NI7D.js');
205
205
 
@@ -212,7 +212,7 @@ require('./chunk-IBS6NI7D.js');
212
212
 
213
213
 
214
214
 
215
- var _chunkJ5LROFGLjs = require('./chunk-J5LROFGL.js');
215
+ var _chunkRCMIVTVLjs = require('./chunk-RCMIVTVL.js');
216
216
  require('./chunk-7QVYU63E.js');
217
217
 
218
218
 
@@ -423,5 +423,5 @@ require('./chunk-7QVYU63E.js');
423
423
 
424
424
 
425
425
 
426
- exports.ACTION_TYPES = _chunk6KLR3WJQjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkS2PTWBN6js.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkS2PTWBN6js.AbstractApiData; exports.AbstractService = _chunkS2PTWBN6js.AbstractService; exports.Action = _chunkS2PTWBN6js.Action; exports.Assistant = _chunkS2PTWBN6js.Assistant; exports.AssistantMessage = _chunkS2PTWBN6js.AssistantMessage; exports.AssistantMessageModule = _chunkS2PTWBN6js.AssistantMessageModule; exports.AssistantMessageService = _chunkS2PTWBN6js.AssistantMessageService; exports.AssistantModule = _chunkS2PTWBN6js.AssistantModule; exports.AssistantService = _chunkS2PTWBN6js.AssistantService; exports.AuditLog = _chunkS2PTWBN6js.AuditLog; exports.AuditLogModule = _chunkS2PTWBN6js.AuditLogModule; exports.AuditLogService = _chunkS2PTWBN6js.AuditLogService; exports.Auth = _chunkS2PTWBN6js.Auth; exports.AuthComponent = _chunkS2PTWBN6js.AuthComponent; exports.AuthModule = _chunkS2PTWBN6js.AuthModule; exports.AuthService = _chunkS2PTWBN6js.AuthService; exports.AuthorModule = _chunkS2PTWBN6js.AuthorModule; exports.BackupCodeVerify = _chunkS2PTWBN6js.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkS2PTWBN6js.BackupCodeVerifyModule; exports.Billing = _chunkS2PTWBN6js.Billing; exports.BillingModule = _chunkS2PTWBN6js.BillingModule; exports.BillingService = _chunkS2PTWBN6js.BillingService; exports.BlockNoteDiffUtil = _chunkS2PTWBN6js.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkS2PTWBN6js.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunk6KLR3WJQjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.Chunk = _chunkS2PTWBN6js.Chunk; exports.ChunkModule = _chunkS2PTWBN6js.ChunkModule; exports.ClientAbstractService = _chunkS2PTWBN6js.ClientAbstractService; exports.ClientHttpMethod = _chunkS2PTWBN6js.ClientHttpMethod; exports.Company = _chunkS2PTWBN6js.Company; exports.CompanyFields = _chunkS2PTWBN6js.CompanyFields; exports.CompanyModule = _chunkS2PTWBN6js.CompanyModule; exports.CompanyService = _chunkS2PTWBN6js.CompanyService; exports.Content = _chunkS2PTWBN6js.Content; exports.ContentFields = _chunkS2PTWBN6js.ContentFields; exports.ContentModule = _chunkS2PTWBN6js.ContentModule; exports.ContentService = _chunkS2PTWBN6js.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkS2PTWBN6js.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkJ5LROFGLjs.DataClassRegistry; exports.DataClassRegistry = _chunkJ5LROFGLjs.DataClassRegistry; exports.EndpointCreator = _chunkS2PTWBN6js.EndpointCreator; exports.Feature = _chunkS2PTWBN6js.Feature; exports.FeatureModule = _chunkS2PTWBN6js.FeatureModule; exports.FeatureService = _chunkS2PTWBN6js.FeatureService; exports.HowTo = _chunkS2PTWBN6js.HowTo; exports.HowToFields = _chunkS2PTWBN6js.HowToFields; exports.HowToModule = _chunkS2PTWBN6js.HowToModule; exports.HowToService = _chunkS2PTWBN6js.HowToService; exports.HttpMethod = _chunkS2PTWBN6js.HttpMethod; exports.InvoiceStatus = _chunkS2PTWBN6js.InvoiceStatus; exports.JsonApiDataFactory = _chunkJ5LROFGLjs.JsonApiDataFactory; exports.Module = _chunkS2PTWBN6js.Module; exports.ModuleModule = _chunkS2PTWBN6js.ModuleModule; exports.ModulePaths = _chunkS2PTWBN6js.ModulePaths; exports.ModulePathsModule = _chunkS2PTWBN6js.ModulePathsModule; exports.ModuleRegistrar = _chunkS2PTWBN6js.ModuleRegistrar; exports.ModuleRegistry = _chunkS2PTWBN6js.ModuleRegistry; exports.Modules = _chunkS2PTWBN6js.Modules; exports.Notification = _chunkS2PTWBN6js.Notification; exports.NotificationFields = _chunkS2PTWBN6js.NotificationFields; exports.NotificationModule = _chunkS2PTWBN6js.NotificationModule; exports.NotificationService = _chunkS2PTWBN6js.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkS2PTWBN6js.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkS2PTWBN6js.OAuthClient; exports.OAuthModule = _chunkS2PTWBN6js.OAuthModule; exports.OAuthService = _chunkS2PTWBN6js.OAuthService; exports.Passkey = _chunkS2PTWBN6js.Passkey; exports.PasskeyAuthenticationOptions = _chunkS2PTWBN6js.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkS2PTWBN6js.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkS2PTWBN6js.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkS2PTWBN6js.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkS2PTWBN6js.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkS2PTWBN6js.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkS2PTWBN6js.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkS2PTWBN6js.PasskeyRename; exports.PasskeyRenameModule = _chunkS2PTWBN6js.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkS2PTWBN6js.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkS2PTWBN6js.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkS2PTWBN6js.PaymentMethod; exports.PermissionMapping = _chunkS2PTWBN6js.PermissionMapping; exports.PermissionMappingModule = _chunkS2PTWBN6js.PermissionMappingModule; exports.Push = _chunkS2PTWBN6js.Push; exports.PushModule = _chunkS2PTWBN6js.PushModule; exports.PushService = _chunkS2PTWBN6js.PushService; exports.RbacMatrixModel = _chunkS2PTWBN6js.RbacMatrixModel; exports.RbacMatrixModule = _chunkS2PTWBN6js.RbacMatrixModule; exports.RbacService = _chunk6KLR3WJQjs.RbacService; exports.ReferralModule = _chunkS2PTWBN6js.ReferralModule; exports.ReferralService = _chunkS2PTWBN6js.ReferralService; exports.ReferralStats = _chunkS2PTWBN6js.ReferralStats; exports.ReferralStatsModule = _chunkS2PTWBN6js.ReferralStatsModule; exports.RehydrationFactory = _chunkS2PTWBN6js.RehydrationFactory; exports.Role = _chunkS2PTWBN6js.Role; exports.RoleFields = _chunkS2PTWBN6js.RoleFields; exports.RoleModule = _chunkS2PTWBN6js.RoleModule; exports.RoleService = _chunkS2PTWBN6js.RoleService; exports.S3 = _chunkS2PTWBN6js.S3; exports.S3Module = _chunkS2PTWBN6js.S3Module; exports.S3Service = _chunkS2PTWBN6js.S3Service; exports.StripeCustomer = _chunkS2PTWBN6js.StripeCustomer; exports.StripeCustomerModule = _chunkS2PTWBN6js.StripeCustomerModule; exports.StripeCustomerService = _chunkS2PTWBN6js.StripeCustomerService; exports.StripeInvoice = _chunkS2PTWBN6js.StripeInvoice; exports.StripeInvoiceModule = _chunkS2PTWBN6js.StripeInvoiceModule; exports.StripeInvoiceService = _chunkS2PTWBN6js.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkS2PTWBN6js.StripePaymentMethodModule; exports.StripePrice = _chunkS2PTWBN6js.StripePrice; exports.StripePriceModule = _chunkS2PTWBN6js.StripePriceModule; exports.StripePriceService = _chunkS2PTWBN6js.StripePriceService; exports.StripeProduct = _chunkS2PTWBN6js.StripeProduct; exports.StripeProductModule = _chunkS2PTWBN6js.StripeProductModule; exports.StripeProductService = _chunkS2PTWBN6js.StripeProductService; exports.StripePromotionCode = _chunkS2PTWBN6js.StripePromotionCode; exports.StripePromotionCodeModule = _chunkS2PTWBN6js.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkS2PTWBN6js.StripePromotionCodeService; exports.StripeSubscription = _chunkS2PTWBN6js.StripeSubscription; exports.StripeSubscriptionModule = _chunkS2PTWBN6js.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkS2PTWBN6js.StripeSubscriptionService; exports.StripeUsage = _chunkS2PTWBN6js.StripeUsage; exports.StripeUsageModule = _chunkS2PTWBN6js.StripeUsageModule; exports.StripeUsageService = _chunkS2PTWBN6js.StripeUsageService; exports.SubscriptionStatus = _chunkS2PTWBN6js.SubscriptionStatus; exports.TableOptions = _chunkS2PTWBN6js.TableOptions; exports.TotpAuthenticator = _chunkS2PTWBN6js.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkS2PTWBN6js.TotpAuthenticatorModule; exports.TotpSetup = _chunkS2PTWBN6js.TotpSetup; exports.TotpSetupModule = _chunkS2PTWBN6js.TotpSetupModule; exports.TotpVerify = _chunkS2PTWBN6js.TotpVerify; exports.TotpVerifyLogin = _chunkS2PTWBN6js.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkS2PTWBN6js.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkS2PTWBN6js.TotpVerifyModule; exports.TwoFactorChallenge = _chunkS2PTWBN6js.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkS2PTWBN6js.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkS2PTWBN6js.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkS2PTWBN6js.TwoFactorEnableModule; exports.TwoFactorService = _chunkS2PTWBN6js.TwoFactorService; exports.TwoFactorStatus = _chunkS2PTWBN6js.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkS2PTWBN6js.TwoFactorStatusModule; exports.User = _chunkS2PTWBN6js.User; exports.UserFields = _chunkS2PTWBN6js.UserFields; exports.UserModule = _chunkS2PTWBN6js.UserModule; exports.UserService = _chunkS2PTWBN6js.UserService; exports.Waitlist = _chunkS2PTWBN6js.Waitlist; exports.WaitlistModule = _chunkS2PTWBN6js.WaitlistModule; exports.WaitlistService = _chunkS2PTWBN6js.WaitlistService; exports.WaitlistStats = _chunkS2PTWBN6js.WaitlistStats; exports.WaitlistStatsModule = _chunkS2PTWBN6js.WaitlistStatsModule; exports.checkPermissions = _chunkS2PTWBN6js.checkPermissions; exports.checkPermissionsFromServer = _chunkS2PTWBN6js.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkS2PTWBN6js.clearLastApiTotal; exports.cn = _chunkS2PTWBN6js.cn; exports.composeRefs = _chunkS2PTWBN6js.composeRefs; exports.configureAuth = _chunkS2PTWBN6js.configureAuth; exports.configureI18n = _chunk6KLR3WJQjs.configureI18n; exports.configureJsonApi = _chunk6KLR3WJQjs.configureJsonApi; exports.configureLogin = _chunk6KLR3WJQjs.configureLogin; exports.configureReferral = _chunk6KLR3WJQjs.configureReferral; exports.configureRoles = _chunk6KLR3WJQjs.configureRoles; exports.configureWaitlist = _chunk6KLR3WJQjs.configureWaitlist; exports.createJsonApiInclusion = _chunkS2PTWBN6js.createJsonApiInclusion; exports.dismissToast = _chunkS2PTWBN6js.dismissToast; exports.entityObjectSchema = _chunkS2PTWBN6js.entityObjectSchema; exports.exists = _chunkS2PTWBN6js.exists; exports.formatDate = _chunkS2PTWBN6js.formatDate; exports.formatLocalDate = _chunkS2PTWBN6js.formatLocalDate; exports.getApiUrl = _chunk6KLR3WJQjs.getApiUrl; exports.getAppUrl = _chunk6KLR3WJQjs.getAppUrl; exports.getBootstrapper = _chunkJ5LROFGLjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkS2PTWBN6js.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkS2PTWBN6js.getGlobalErrorHandler; exports.getIcon = _chunkS2PTWBN6js.getIcon; exports.getIconByModule = _chunkS2PTWBN6js.getIconByModule; exports.getIconByModuleName = _chunkS2PTWBN6js.getIconByModuleName; exports.getInitials = _chunkS2PTWBN6js.getInitials; exports.getLastApiTotal = _chunkS2PTWBN6js.getLastApiTotal; exports.getLucideIcon = _chunkS2PTWBN6js.getLucideIcon; exports.getLucideIconByModule = _chunkS2PTWBN6js.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkS2PTWBN6js.getLucideIconByModuleName; exports.getPublicApiUrl = _chunk6KLR3WJQjs.getPublicApiUrl; exports.getReferralConfig = _chunk6KLR3WJQjs.getReferralConfig; exports.getRoleId = _chunk6KLR3WJQjs.getRoleId; exports.getStripePublishableKey = _chunk6KLR3WJQjs.getStripePublishableKey; exports.getTableComponents = _chunkS2PTWBN6js.getTableComponents; exports.getTableOptions = _chunkS2PTWBN6js.getTableOptions; exports.getTokenHandler = _chunkS2PTWBN6js.getTokenHandler; exports.getTrackablePages = _chunk6KLR3WJQjs.getTrackablePages; exports.getValueFromPath = _chunkS2PTWBN6js.getValueFromPath; exports.getWaitlistConfig = _chunk6KLR3WJQjs.getWaitlistConfig; exports.hasBootstrapper = _chunkJ5LROFGLjs.hasBootstrapper; exports.isReferralEnabled = _chunk6KLR3WJQjs.isReferralEnabled; exports.isRolesConfigured = _chunk6KLR3WJQjs.isRolesConfigured; exports.rehydrate = _chunkS2PTWBN6js.rehydrate; exports.rehydrateList = _chunkS2PTWBN6js.rehydrateList; exports.resetBootstrapStore = _chunkJ5LROFGLjs.resetBootstrapStore; exports.setBootstrapper = _chunkJ5LROFGLjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkS2PTWBN6js.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkS2PTWBN6js.setGlobalErrorHandler; exports.showCustomToast = _chunkS2PTWBN6js.showCustomToast; exports.showError = _chunkS2PTWBN6js.showError; exports.showToast = _chunkS2PTWBN6js.showToast; exports.translateData = _chunkJ5LROFGLjs.translateData; exports.translateResponse = _chunkJ5LROFGLjs.translateResponse; exports.tryBootstrap = _chunkJ5LROFGLjs.tryBootstrap; exports.useComposedRefs = _chunkS2PTWBN6js.useComposedRefs; exports.useIsMobile = _chunkS2PTWBN6js.useIsMobile; exports.userObjectSchema = _chunkS2PTWBN6js.userObjectSchema;
426
+ exports.ACTION_TYPES = _chunk55Q43DI5js.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunk6P7MEU7Qjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunk6P7MEU7Qjs.AbstractApiData; exports.AbstractService = _chunk6P7MEU7Qjs.AbstractService; exports.Action = _chunk6P7MEU7Qjs.Action; exports.Assistant = _chunk6P7MEU7Qjs.Assistant; exports.AssistantMessage = _chunk6P7MEU7Qjs.AssistantMessage; exports.AssistantMessageModule = _chunk6P7MEU7Qjs.AssistantMessageModule; exports.AssistantMessageService = _chunk6P7MEU7Qjs.AssistantMessageService; exports.AssistantModule = _chunk6P7MEU7Qjs.AssistantModule; exports.AssistantService = _chunk6P7MEU7Qjs.AssistantService; exports.AuditLog = _chunk6P7MEU7Qjs.AuditLog; exports.AuditLogModule = _chunk6P7MEU7Qjs.AuditLogModule; exports.AuditLogService = _chunk6P7MEU7Qjs.AuditLogService; exports.Auth = _chunk6P7MEU7Qjs.Auth; exports.AuthComponent = _chunk6P7MEU7Qjs.AuthComponent; exports.AuthModule = _chunk6P7MEU7Qjs.AuthModule; exports.AuthService = _chunk6P7MEU7Qjs.AuthService; exports.AuthorModule = _chunk6P7MEU7Qjs.AuthorModule; exports.BackupCodeVerify = _chunk6P7MEU7Qjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunk6P7MEU7Qjs.BackupCodeVerifyModule; exports.Billing = _chunk6P7MEU7Qjs.Billing; exports.BillingModule = _chunk6P7MEU7Qjs.BillingModule; exports.BillingService = _chunk6P7MEU7Qjs.BillingService; exports.BlockNoteDiffUtil = _chunk6P7MEU7Qjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunk6P7MEU7Qjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunk55Q43DI5js.COMPANY_ADMINISTRATOR_ROLE_ID; exports.Chunk = _chunk6P7MEU7Qjs.Chunk; exports.ChunkModule = _chunk6P7MEU7Qjs.ChunkModule; exports.ClientAbstractService = _chunk6P7MEU7Qjs.ClientAbstractService; exports.ClientHttpMethod = _chunk6P7MEU7Qjs.ClientHttpMethod; exports.Company = _chunk6P7MEU7Qjs.Company; exports.CompanyFields = _chunk6P7MEU7Qjs.CompanyFields; exports.CompanyModule = _chunk6P7MEU7Qjs.CompanyModule; exports.CompanyService = _chunk6P7MEU7Qjs.CompanyService; exports.Content = _chunk6P7MEU7Qjs.Content; exports.ContentFields = _chunk6P7MEU7Qjs.ContentFields; exports.ContentModule = _chunk6P7MEU7Qjs.ContentModule; exports.ContentService = _chunk6P7MEU7Qjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunk6P7MEU7Qjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkRCMIVTVLjs.DataClassRegistry; exports.DataClassRegistry = _chunkRCMIVTVLjs.DataClassRegistry; exports.EndpointCreator = _chunk6P7MEU7Qjs.EndpointCreator; exports.Feature = _chunk6P7MEU7Qjs.Feature; exports.FeatureModule = _chunk6P7MEU7Qjs.FeatureModule; exports.FeatureService = _chunk6P7MEU7Qjs.FeatureService; exports.HowTo = _chunk6P7MEU7Qjs.HowTo; exports.HowToFields = _chunk6P7MEU7Qjs.HowToFields; exports.HowToModule = _chunk6P7MEU7Qjs.HowToModule; exports.HowToService = _chunk6P7MEU7Qjs.HowToService; exports.HttpMethod = _chunk6P7MEU7Qjs.HttpMethod; exports.InvoiceStatus = _chunk6P7MEU7Qjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkRCMIVTVLjs.JsonApiDataFactory; exports.Module = _chunk6P7MEU7Qjs.Module; exports.ModuleModule = _chunk6P7MEU7Qjs.ModuleModule; exports.ModulePaths = _chunk6P7MEU7Qjs.ModulePaths; exports.ModulePathsModule = _chunk6P7MEU7Qjs.ModulePathsModule; exports.ModuleRegistrar = _chunk6P7MEU7Qjs.ModuleRegistrar; exports.ModuleRegistry = _chunk6P7MEU7Qjs.ModuleRegistry; exports.Modules = _chunk6P7MEU7Qjs.Modules; exports.Notification = _chunk6P7MEU7Qjs.Notification; exports.NotificationFields = _chunk6P7MEU7Qjs.NotificationFields; exports.NotificationModule = _chunk6P7MEU7Qjs.NotificationModule; exports.NotificationService = _chunk6P7MEU7Qjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunk6P7MEU7Qjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunk6P7MEU7Qjs.OAuthClient; exports.OAuthModule = _chunk6P7MEU7Qjs.OAuthModule; exports.OAuthService = _chunk6P7MEU7Qjs.OAuthService; exports.Passkey = _chunk6P7MEU7Qjs.Passkey; exports.PasskeyAuthenticationOptions = _chunk6P7MEU7Qjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunk6P7MEU7Qjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunk6P7MEU7Qjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunk6P7MEU7Qjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunk6P7MEU7Qjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunk6P7MEU7Qjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunk6P7MEU7Qjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunk6P7MEU7Qjs.PasskeyRename; exports.PasskeyRenameModule = _chunk6P7MEU7Qjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunk6P7MEU7Qjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunk6P7MEU7Qjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunk6P7MEU7Qjs.PaymentMethod; exports.PermissionMapping = _chunk6P7MEU7Qjs.PermissionMapping; exports.PermissionMappingModule = _chunk6P7MEU7Qjs.PermissionMappingModule; exports.Push = _chunk6P7MEU7Qjs.Push; exports.PushModule = _chunk6P7MEU7Qjs.PushModule; exports.PushService = _chunk6P7MEU7Qjs.PushService; exports.RbacMatrixModel = _chunk6P7MEU7Qjs.RbacMatrixModel; exports.RbacMatrixModule = _chunk6P7MEU7Qjs.RbacMatrixModule; exports.RbacService = _chunk55Q43DI5js.RbacService; exports.ReferralModule = _chunk6P7MEU7Qjs.ReferralModule; exports.ReferralService = _chunk6P7MEU7Qjs.ReferralService; exports.ReferralStats = _chunk6P7MEU7Qjs.ReferralStats; exports.ReferralStatsModule = _chunk6P7MEU7Qjs.ReferralStatsModule; exports.RehydrationFactory = _chunk6P7MEU7Qjs.RehydrationFactory; exports.Role = _chunk6P7MEU7Qjs.Role; exports.RoleFields = _chunk6P7MEU7Qjs.RoleFields; exports.RoleModule = _chunk6P7MEU7Qjs.RoleModule; exports.RoleService = _chunk6P7MEU7Qjs.RoleService; exports.S3 = _chunk6P7MEU7Qjs.S3; exports.S3Module = _chunk6P7MEU7Qjs.S3Module; exports.S3Service = _chunk6P7MEU7Qjs.S3Service; exports.StripeCustomer = _chunk6P7MEU7Qjs.StripeCustomer; exports.StripeCustomerModule = _chunk6P7MEU7Qjs.StripeCustomerModule; exports.StripeCustomerService = _chunk6P7MEU7Qjs.StripeCustomerService; exports.StripeInvoice = _chunk6P7MEU7Qjs.StripeInvoice; exports.StripeInvoiceModule = _chunk6P7MEU7Qjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunk6P7MEU7Qjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunk6P7MEU7Qjs.StripePaymentMethodModule; exports.StripePrice = _chunk6P7MEU7Qjs.StripePrice; exports.StripePriceModule = _chunk6P7MEU7Qjs.StripePriceModule; exports.StripePriceService = _chunk6P7MEU7Qjs.StripePriceService; exports.StripeProduct = _chunk6P7MEU7Qjs.StripeProduct; exports.StripeProductModule = _chunk6P7MEU7Qjs.StripeProductModule; exports.StripeProductService = _chunk6P7MEU7Qjs.StripeProductService; exports.StripePromotionCode = _chunk6P7MEU7Qjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunk6P7MEU7Qjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunk6P7MEU7Qjs.StripePromotionCodeService; exports.StripeSubscription = _chunk6P7MEU7Qjs.StripeSubscription; exports.StripeSubscriptionModule = _chunk6P7MEU7Qjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunk6P7MEU7Qjs.StripeSubscriptionService; exports.StripeUsage = _chunk6P7MEU7Qjs.StripeUsage; exports.StripeUsageModule = _chunk6P7MEU7Qjs.StripeUsageModule; exports.StripeUsageService = _chunk6P7MEU7Qjs.StripeUsageService; exports.SubscriptionStatus = _chunk6P7MEU7Qjs.SubscriptionStatus; exports.TableOptions = _chunk6P7MEU7Qjs.TableOptions; exports.TotpAuthenticator = _chunk6P7MEU7Qjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunk6P7MEU7Qjs.TotpAuthenticatorModule; exports.TotpSetup = _chunk6P7MEU7Qjs.TotpSetup; exports.TotpSetupModule = _chunk6P7MEU7Qjs.TotpSetupModule; exports.TotpVerify = _chunk6P7MEU7Qjs.TotpVerify; exports.TotpVerifyLogin = _chunk6P7MEU7Qjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunk6P7MEU7Qjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunk6P7MEU7Qjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunk6P7MEU7Qjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunk6P7MEU7Qjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunk6P7MEU7Qjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunk6P7MEU7Qjs.TwoFactorEnableModule; exports.TwoFactorService = _chunk6P7MEU7Qjs.TwoFactorService; exports.TwoFactorStatus = _chunk6P7MEU7Qjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunk6P7MEU7Qjs.TwoFactorStatusModule; exports.User = _chunk6P7MEU7Qjs.User; exports.UserFields = _chunk6P7MEU7Qjs.UserFields; exports.UserModule = _chunk6P7MEU7Qjs.UserModule; exports.UserService = _chunk6P7MEU7Qjs.UserService; exports.Waitlist = _chunk6P7MEU7Qjs.Waitlist; exports.WaitlistModule = _chunk6P7MEU7Qjs.WaitlistModule; exports.WaitlistService = _chunk6P7MEU7Qjs.WaitlistService; exports.WaitlistStats = _chunk6P7MEU7Qjs.WaitlistStats; exports.WaitlistStatsModule = _chunk6P7MEU7Qjs.WaitlistStatsModule; exports.checkPermissions = _chunk6P7MEU7Qjs.checkPermissions; exports.checkPermissionsFromServer = _chunk6P7MEU7Qjs.checkPermissionsFromServer; exports.clearLastApiTotal = _chunk6P7MEU7Qjs.clearLastApiTotal; exports.cn = _chunk6P7MEU7Qjs.cn; exports.composeRefs = _chunk6P7MEU7Qjs.composeRefs; exports.configureAuth = _chunk6P7MEU7Qjs.configureAuth; exports.configureI18n = _chunk55Q43DI5js.configureI18n; exports.configureJsonApi = _chunk55Q43DI5js.configureJsonApi; exports.configureLogin = _chunk55Q43DI5js.configureLogin; exports.configureReferral = _chunk55Q43DI5js.configureReferral; exports.configureRoles = _chunk55Q43DI5js.configureRoles; exports.configureWaitlist = _chunk55Q43DI5js.configureWaitlist; exports.createJsonApiInclusion = _chunk6P7MEU7Qjs.createJsonApiInclusion; exports.dismissToast = _chunk6P7MEU7Qjs.dismissToast; exports.entityObjectSchema = _chunk6P7MEU7Qjs.entityObjectSchema; exports.exists = _chunk6P7MEU7Qjs.exists; exports.formatDate = _chunk6P7MEU7Qjs.formatDate; exports.formatLocalDate = _chunk6P7MEU7Qjs.formatLocalDate; exports.getApiUrl = _chunk55Q43DI5js.getApiUrl; exports.getAppUrl = _chunk55Q43DI5js.getAppUrl; exports.getBootstrapper = _chunkRCMIVTVLjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunk6P7MEU7Qjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunk6P7MEU7Qjs.getGlobalErrorHandler; exports.getIcon = _chunk6P7MEU7Qjs.getIcon; exports.getIconByModule = _chunk6P7MEU7Qjs.getIconByModule; exports.getIconByModuleName = _chunk6P7MEU7Qjs.getIconByModuleName; exports.getInitials = _chunk6P7MEU7Qjs.getInitials; exports.getLastApiTotal = _chunk6P7MEU7Qjs.getLastApiTotal; exports.getLucideIcon = _chunk6P7MEU7Qjs.getLucideIcon; exports.getLucideIconByModule = _chunk6P7MEU7Qjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunk6P7MEU7Qjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunk55Q43DI5js.getPublicApiUrl; exports.getReferralConfig = _chunk55Q43DI5js.getReferralConfig; exports.getRoleId = _chunk55Q43DI5js.getRoleId; exports.getStripePublishableKey = _chunk55Q43DI5js.getStripePublishableKey; exports.getTableComponents = _chunk6P7MEU7Qjs.getTableComponents; exports.getTableOptions = _chunk6P7MEU7Qjs.getTableOptions; exports.getTokenHandler = _chunk6P7MEU7Qjs.getTokenHandler; exports.getTrackablePages = _chunk55Q43DI5js.getTrackablePages; exports.getValueFromPath = _chunk6P7MEU7Qjs.getValueFromPath; exports.getWaitlistConfig = _chunk55Q43DI5js.getWaitlistConfig; exports.hasBootstrapper = _chunkRCMIVTVLjs.hasBootstrapper; exports.isReferralEnabled = _chunk55Q43DI5js.isReferralEnabled; exports.isRolesConfigured = _chunk55Q43DI5js.isRolesConfigured; exports.rehydrate = _chunk6P7MEU7Qjs.rehydrate; exports.rehydrateList = _chunk6P7MEU7Qjs.rehydrateList; exports.resetBootstrapStore = _chunkRCMIVTVLjs.resetBootstrapStore; exports.setBootstrapper = _chunkRCMIVTVLjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunk6P7MEU7Qjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunk6P7MEU7Qjs.setGlobalErrorHandler; exports.showCustomToast = _chunk6P7MEU7Qjs.showCustomToast; exports.showError = _chunk6P7MEU7Qjs.showError; exports.showToast = _chunk6P7MEU7Qjs.showToast; exports.translateData = _chunkRCMIVTVLjs.translateData; exports.translateResponse = _chunkRCMIVTVLjs.translateResponse; exports.tryBootstrap = _chunkRCMIVTVLjs.tryBootstrap; exports.useComposedRefs = _chunk6P7MEU7Qjs.useComposedRefs; exports.useIsMobile = _chunk6P7MEU7Qjs.useIsMobile; exports.userObjectSchema = _chunk6P7MEU7Qjs.userObjectSchema;
427
427
  //# 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-WEPQD5MP.mjs";
21
+ } from "./chunk-5U7QDGDQ.mjs";
22
22
  import {
23
23
  AVAILABLE_OAUTH_SCOPES,
24
24
  AbstractApiData,
@@ -199,7 +199,7 @@ import {
199
199
  useComposedRefs,
200
200
  useIsMobile,
201
201
  userObjectSchema
202
- } from "./chunk-M7XAKLSP.mjs";
202
+ } from "./chunk-FWOS6PC5.mjs";
203
203
  import "./chunk-AUXK7QSA.mjs";
204
204
  import "./chunk-C7C7VY4F.mjs";
205
205
  import {
@@ -212,7 +212,7 @@ import {
212
212
  translateData,
213
213
  translateResponse,
214
214
  tryBootstrap
215
- } from "./chunk-KK7PYKVI.mjs";
215
+ } from "./chunk-WC2BTKJP.mjs";
216
216
  import "./chunk-PAWJFY3S.mjs";
217
217
  export {
218
218
  ACTION_TYPES,
@@ -84,6 +84,12 @@ declare abstract class AbstractService {
84
84
  } | File | Blob;
85
85
  token?: string;
86
86
  suppressGlobalError?: boolean;
87
+ /**
88
+ * Per-call override of the API base URL. When omitted, the existing global
89
+ * `NEXT_PUBLIC_API_URL` (or `configureJsonApi({ apiUrl })`) resolution is used —
90
+ * fully backward compatible. Ignored when `endpoint` starts with "http" (passthrough).
91
+ */
92
+ baseUrl?: string;
87
93
  }): Promise<T>;
88
94
  /**
89
95
  * Make an API call and return both data and meta from the response.
@@ -112,6 +118,7 @@ declare abstract class AbstractService {
112
118
  method: HttpMethod;
113
119
  endpoint: string;
114
120
  companyId?: string;
121
+ baseUrl?: string;
115
122
  suppressGlobalError?: boolean;
116
123
  }): Promise<any>;
117
124
  }
@@ -84,6 +84,12 @@ declare abstract class AbstractService {
84
84
  } | File | Blob;
85
85
  token?: string;
86
86
  suppressGlobalError?: boolean;
87
+ /**
88
+ * Per-call override of the API base URL. When omitted, the existing global
89
+ * `NEXT_PUBLIC_API_URL` (or `configureJsonApi({ apiUrl })`) resolution is used —
90
+ * fully backward compatible. Ignored when `endpoint` starts with "http" (passthrough).
91
+ */
92
+ baseUrl?: string;
87
93
  }): Promise<T>;
88
94
  /**
89
95
  * Make an API call and return both data and meta from the response.
@@ -112,6 +118,7 @@ declare abstract class AbstractService {
112
118
  method: HttpMethod;
113
119
  endpoint: string;
114
120
  companyId?: string;
121
+ baseUrl?: string;
115
122
  suppressGlobalError?: boolean;
116
123
  }): Promise<any>;
117
124
  }
@@ -2,7 +2,7 @@ import { A as ApiData } from '../ApiData-DPKNfY-9.mjs';
2
2
  import { M as ModuleWithPermissions, A as Action } from '../types-CQSjy7et.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-CihgBy97.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-CBqyDZyz.mjs';
6
6
  import 'lucide-react';
7
7
  import '../ApiDataInterface-BcZeXy5X.mjs';
8
8
  import '../feature.interface-CXb1-vNq.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-DHOxe8rc.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-Cyvfk3qV.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-gcEjq8gF.js';
6
6
  import 'lucide-react';
7
7
  import '../ApiDataInterface-BcZeXy5X.js';
8
8
  import '../feature.interface-BO25VLlx.js';
@@ -15,13 +15,13 @@ var _chunkIOLU4ASDjs = require('../chunk-IOLU4ASD.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkS2PTWBN6js = require('../chunk-S2PTWBN6.js');
18
+ var _chunk6P7MEU7Qjs = require('../chunk-6P7MEU7Q.js');
19
19
  require('../chunk-LXKSUWAV.js');
20
20
  require('../chunk-IBS6NI7D.js');
21
21
 
22
22
 
23
23
 
24
- var _chunkJ5LROFGLjs = require('../chunk-J5LROFGL.js');
24
+ var _chunkRCMIVTVLjs = require('../chunk-RCMIVTVL.js');
25
25
 
26
26
 
27
27
  var _chunk7QVYU63Ejs = require('../chunk-7QVYU63E.js');
@@ -86,7 +86,7 @@ var ServerSession = class {
86
86
  if (!rawModules) return false;
87
87
  const modules = JSON.parse(_pako2.default.ungzip(Buffer.from(rawModules, "base64"), { to: "string" }));
88
88
  const selectedModule = modules.find((module) => module.id === params.module.moduleId);
89
- return _chunkS2PTWBN6js.checkPermissionsFromServer.call(void 0, {
89
+ return _chunk6P7MEU7Qjs.checkPermissionsFromServer.call(void 0, {
90
90
  module: params.module,
91
91
  action: params.action,
92
92
  data: params.data,
@@ -158,7 +158,7 @@ async function ServerJsonApiGet(params) {
158
158
  language: params.language,
159
159
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _23 => _23.additionalHeaders])
160
160
  });
161
- return _chunkJ5LROFGLjs.translateResponse.call(void 0, {
161
+ return _chunkRCMIVTVLjs.translateResponse.call(void 0, {
162
162
  classKey: params.classKey,
163
163
  apiResponse,
164
164
  companyId: params.companyId,
@@ -179,7 +179,7 @@ async function ServerJsonApiPost(params) {
179
179
  if (!body) {
180
180
  body = {};
181
181
  } else if (params.overridesJsonApiCreation !== true) {
182
- body = _chunkJ5LROFGLjs.JsonApiDataFactory.create(params.classKey, body);
182
+ body = _chunkRCMIVTVLjs.JsonApiDataFactory.create(params.classKey, body);
183
183
  }
184
184
  const apiResponse = await _chunkIOLU4ASDjs.serverRequest.call(void 0, {
185
185
  method: "POST",
@@ -191,7 +191,7 @@ async function ServerJsonApiPost(params) {
191
191
  language: params.language,
192
192
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _24 => _24.additionalHeaders])
193
193
  });
194
- return _chunkJ5LROFGLjs.translateResponse.call(void 0, {
194
+ return _chunkRCMIVTVLjs.translateResponse.call(void 0, {
195
195
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
196
196
  apiResponse,
197
197
  companyId: params.companyId,
@@ -206,7 +206,7 @@ async function ServerJsonApiPut(params) {
206
206
  if (!body) {
207
207
  body = {};
208
208
  } else {
209
- body = _chunkJ5LROFGLjs.JsonApiDataFactory.create(params.classKey, body);
209
+ body = _chunkRCMIVTVLjs.JsonApiDataFactory.create(params.classKey, body);
210
210
  }
211
211
  const apiResponse = await _chunkIOLU4ASDjs.serverRequest.call(void 0, {
212
212
  method: "PUT",
@@ -218,7 +218,7 @@ async function ServerJsonApiPut(params) {
218
218
  language: params.language,
219
219
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _25 => _25.additionalHeaders])
220
220
  });
221
- return _chunkJ5LROFGLjs.translateResponse.call(void 0, {
221
+ return _chunkRCMIVTVLjs.translateResponse.call(void 0, {
222
222
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
223
223
  apiResponse,
224
224
  companyId: params.companyId,
@@ -233,7 +233,7 @@ async function ServerJsonApiPatch(params) {
233
233
  if (!body) {
234
234
  body = {};
235
235
  } else if (params.overridesJsonApiCreation !== true) {
236
- body = _chunkJ5LROFGLjs.JsonApiDataFactory.create(params.classKey, body);
236
+ body = _chunkRCMIVTVLjs.JsonApiDataFactory.create(params.classKey, body);
237
237
  }
238
238
  const apiResponse = await _chunkIOLU4ASDjs.serverRequest.call(void 0, {
239
239
  method: "PATCH",
@@ -245,7 +245,7 @@ async function ServerJsonApiPatch(params) {
245
245
  language: params.language,
246
246
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _26 => _26.additionalHeaders])
247
247
  });
248
- return _chunkJ5LROFGLjs.translateResponse.call(void 0, {
248
+ return _chunkRCMIVTVLjs.translateResponse.call(void 0, {
249
249
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
250
250
  apiResponse,
251
251
  companyId: params.companyId,
@@ -264,7 +264,7 @@ async function ServerJsonApiDelete(params) {
264
264
  language: params.language,
265
265
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _27 => _27.additionalHeaders])
266
266
  });
267
- return _chunkJ5LROFGLjs.translateResponse.call(void 0, {
267
+ return _chunkRCMIVTVLjs.translateResponse.call(void 0, {
268
268
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
269
269
  apiResponse,
270
270
  companyId: params.companyId,
@@ -296,5 +296,5 @@ _chunk7QVYU63Ejs.__name.call(void 0, ServerJsonApiDelete, "ServerJsonApiDelete")
296
296
 
297
297
 
298
298
 
299
- exports.ServerAuthService = _chunkS2PTWBN6js.AuthService; exports.ServerCompanyService = _chunkS2PTWBN6js.CompanyService; exports.ServerContentService = _chunkS2PTWBN6js.ContentService; exports.ServerFeatureService = _chunkS2PTWBN6js.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkS2PTWBN6js.NotificationService; exports.ServerPushService = _chunkS2PTWBN6js.PushService; exports.ServerRoleService = _chunkS2PTWBN6js.RoleService; exports.ServerS3Service = _chunkS2PTWBN6js.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkS2PTWBN6js.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;
299
+ exports.ServerAuthService = _chunk6P7MEU7Qjs.AuthService; exports.ServerCompanyService = _chunk6P7MEU7Qjs.CompanyService; exports.ServerContentService = _chunk6P7MEU7Qjs.ContentService; exports.ServerFeatureService = _chunk6P7MEU7Qjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunk6P7MEU7Qjs.NotificationService; exports.ServerPushService = _chunk6P7MEU7Qjs.PushService; exports.ServerRoleService = _chunk6P7MEU7Qjs.RoleService; exports.ServerS3Service = _chunk6P7MEU7Qjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunk6P7MEU7Qjs.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
300
  //# sourceMappingURL=index.js.map
@@ -15,13 +15,13 @@ import {
15
15
  S3Service,
16
16
  UserService,
17
17
  checkPermissionsFromServer
18
- } from "../chunk-M7XAKLSP.mjs";
18
+ } from "../chunk-FWOS6PC5.mjs";
19
19
  import "../chunk-AUXK7QSA.mjs";
20
20
  import "../chunk-C7C7VY4F.mjs";
21
21
  import {
22
22
  JsonApiDataFactory,
23
23
  translateResponse
24
- } from "../chunk-KK7PYKVI.mjs";
24
+ } from "../chunk-WC2BTKJP.mjs";
25
25
  import {
26
26
  __name
27
27
  } from "../chunk-PAWJFY3S.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlonicora/nextjs-jsonapi",
3
- "version": "1.118.0",
3
+ "version": "1.119.0",
4
4
  "description": "Next.js JSON:API client with server/client support and caching",
5
5
  "author": "Carlo Nicora",
6
6
  "license": "GPL-3.0-or-later",
@@ -72,9 +72,18 @@ function runClientBootstrapper(): void {
72
72
  }
73
73
  }
74
74
 
75
- function buildClientUrl(endpoint: string): string {
76
- const apiUrl = getClientApiUrl();
77
- return endpoint.startsWith("http") ? endpoint : `${apiUrl}${endpoint}`;
75
+ /**
76
+ * Resolve the final request URL for an endpoint (client-side variant of `buildUrl`
77
+ * in `unified/JsonApiRequest.ts` kept in lockstep with it).
78
+ *
79
+ * - `endpoint` starting with "http" is always passed through unchanged (existing behaviour).
80
+ * - Otherwise, an explicit `baseUrl` (per-call override) takes precedence over the global
81
+ * `getClientApiUrl()` resolution. Omitting `baseUrl` preserves today's behaviour exactly.
82
+ */
83
+ export function buildClientUrl(endpoint: string, baseUrl?: string): string {
84
+ if (endpoint.startsWith("http")) return endpoint;
85
+ const apiUrl = baseUrl ?? getClientApiUrl();
86
+ return `${apiUrl}${endpoint}`;
78
87
  }
79
88
 
80
89
  export async function ClientJsonApiGet(params: {
@@ -82,13 +91,14 @@ export async function ClientJsonApiGet(params: {
82
91
  endpoint: string;
83
92
  companyId?: string;
84
93
  language: string;
94
+ baseUrl?: string;
85
95
  }): Promise<ApiResponseInterface> {
86
96
  runClientBootstrapper();
87
97
  const token = await getClientToken();
88
98
 
89
99
  const apiResponse = await directFetch({
90
100
  method: "GET",
91
- url: buildClientUrl(params.endpoint),
101
+ url: buildClientUrl(params.endpoint, params.baseUrl),
92
102
  token,
93
103
  companyId: params.companyId,
94
104
  language: params.language,
@@ -106,6 +116,7 @@ export async function ClientJsonApiGet(params: {
106
116
  endpoint,
107
117
  companyId: params.companyId,
108
118
  language: params.language,
119
+ baseUrl: params.baseUrl,
109
120
  }),
110
121
  });
111
122
  }
@@ -119,6 +130,7 @@ export async function ClientJsonApiPost(params: {
119
130
  files?: { [key: string]: File | Blob } | File | Blob;
120
131
  language: string;
121
132
  responseType?: ApiRequestDataTypeInterface;
133
+ baseUrl?: string;
122
134
  }): Promise<ApiResponseInterface> {
123
135
  runClientBootstrapper();
124
136
  const token = await getClientToken();
@@ -132,7 +144,7 @@ export async function ClientJsonApiPost(params: {
132
144
 
133
145
  const apiResponse = await directFetch({
134
146
  method: "POST",
135
- url: buildClientUrl(params.endpoint),
147
+ url: buildClientUrl(params.endpoint, params.baseUrl),
136
148
  token,
137
149
  body,
138
150
  files: params.files,
@@ -157,6 +169,7 @@ export async function ClientJsonApiPut(params: {
157
169
  files?: { [key: string]: File | Blob } | File | Blob;
158
170
  language: string;
159
171
  responseType?: ApiRequestDataTypeInterface;
172
+ baseUrl?: string;
160
173
  }): Promise<ApiResponseInterface> {
161
174
  runClientBootstrapper();
162
175
  const token = await getClientToken();
@@ -170,7 +183,7 @@ export async function ClientJsonApiPut(params: {
170
183
 
171
184
  const apiResponse = await directFetch({
172
185
  method: "PUT",
173
- url: buildClientUrl(params.endpoint),
186
+ url: buildClientUrl(params.endpoint, params.baseUrl),
174
187
  token,
175
188
  body,
176
189
  files: params.files,
@@ -196,6 +209,7 @@ export async function ClientJsonApiPatch(params: {
196
209
  overridesJsonApiCreation?: boolean;
197
210
  responseType?: ApiRequestDataTypeInterface;
198
211
  language: string;
212
+ baseUrl?: string;
199
213
  }): Promise<ApiResponseInterface> {
200
214
  runClientBootstrapper();
201
215
  const token = await getClientToken();
@@ -209,7 +223,7 @@ export async function ClientJsonApiPatch(params: {
209
223
 
210
224
  const apiResponse = await directFetch({
211
225
  method: "PATCH",
212
- url: buildClientUrl(params.endpoint),
226
+ url: buildClientUrl(params.endpoint, params.baseUrl),
213
227
  token,
214
228
  body,
215
229
  files: params.files,
@@ -232,13 +246,14 @@ export async function ClientJsonApiDelete(params: {
232
246
  companyId?: string;
233
247
  language: string;
234
248
  responseType?: ApiRequestDataTypeInterface;
249
+ baseUrl?: string;
235
250
  }): Promise<ApiResponseInterface> {
236
251
  runClientBootstrapper();
237
252
  const token = await getClientToken();
238
253
 
239
254
  const apiResponse = await directFetch({
240
255
  method: "DELETE",
241
- url: buildClientUrl(params.endpoint),
256
+ url: buildClientUrl(params.endpoint, params.baseUrl),
242
257
  token,
243
258
  companyId: params.companyId,
244
259
  language: params.language,
@@ -0,0 +1,31 @@
1
+ import { afterEach, describe, expect, it, vi } from "vitest";
2
+ import { buildClientUrl } from "../JsonApiClient";
3
+
4
+ describe("buildClientUrl", () => {
5
+ afterEach(() => {
6
+ vi.unstubAllEnvs();
7
+ });
8
+
9
+ it("uses NEXT_PUBLIC_API_URL when baseUrl is omitted", () => {
10
+ vi.stubEnv("NEXT_PUBLIC_API_URL", "https://api.example.com");
11
+
12
+ expect(buildClientUrl("/sncass/sync")).toBe("https://api.example.com/sncass/sync");
13
+ });
14
+
15
+ it("uses the per-call baseUrl override when provided", () => {
16
+ vi.stubEnv("NEXT_PUBLIC_API_URL", "https://api.example.com");
17
+
18
+ expect(buildClientUrl("/sncass/sync", "https://corpus.example.com")).toBe("https://corpus.example.com/sncass/sync");
19
+ });
20
+
21
+ it("passes through an http-prefixed endpoint regardless of baseUrl", () => {
22
+ vi.stubEnv("NEXT_PUBLIC_API_URL", "https://api.example.com");
23
+
24
+ expect(buildClientUrl("https://elsewhere.example.com/sncass/sync", "https://corpus.example.com")).toBe(
25
+ "https://elsewhere.example.com/sncass/sync",
26
+ );
27
+ expect(buildClientUrl("https://elsewhere.example.com/sncass/sync")).toBe(
28
+ "https://elsewhere.example.com/sncass/sync",
29
+ );
30
+ });
31
+ });
@@ -147,6 +147,12 @@ export abstract class AbstractService {
147
147
  files?: { [key: string]: File | Blob } | File | Blob;
148
148
  token?: string;
149
149
  suppressGlobalError?: boolean;
150
+ /**
151
+ * Per-call override of the API base URL. When omitted, the existing global
152
+ * `NEXT_PUBLIC_API_URL` (or `configureJsonApi({ apiUrl })`) resolution is used —
153
+ * fully backward compatible. Ignored when `endpoint` starts with "http" (passthrough).
154
+ */
155
+ baseUrl?: string;
150
156
  }): Promise<T> {
151
157
  // Dynamic import to avoid bundling issues
152
158
  const { JsonApiGet, JsonApiPost, JsonApiPut, JsonApiPatch, JsonApiDelete } =
@@ -171,6 +177,7 @@ export abstract class AbstractService {
171
177
  endpoint: params.endpoint,
172
178
  companyId: params.companyId,
173
179
  language: language,
180
+ baseUrl: params.baseUrl,
174
181
  });
175
182
  break;
176
183
  case HttpMethod.POST:
@@ -184,6 +191,7 @@ export abstract class AbstractService {
184
191
  responseType: params.responseType,
185
192
  files: params.files,
186
193
  token: params.token,
194
+ baseUrl: params.baseUrl,
187
195
  });
188
196
  break;
189
197
  case HttpMethod.PUT:
@@ -195,6 +203,7 @@ export abstract class AbstractService {
195
203
  language: language,
196
204
  responseType: params.responseType,
197
205
  files: params.files,
206
+ baseUrl: params.baseUrl,
198
207
  });
199
208
  break;
200
209
  case HttpMethod.PATCH:
@@ -207,6 +216,7 @@ export abstract class AbstractService {
207
216
  language: language,
208
217
  responseType: params.responseType,
209
218
  files: params.files,
219
+ baseUrl: params.baseUrl,
210
220
  });
211
221
  break;
212
222
  case HttpMethod.DELETE:
@@ -216,6 +226,7 @@ export abstract class AbstractService {
216
226
  companyId: params.companyId,
217
227
  language: language,
218
228
  responseType: params.responseType,
229
+ baseUrl: params.baseUrl,
219
230
  });
220
231
  break;
221
232
  default:
@@ -359,6 +370,7 @@ export abstract class AbstractService {
359
370
  method: HttpMethod;
360
371
  endpoint: string;
361
372
  companyId?: string;
373
+ baseUrl?: string;
362
374
  suppressGlobalError?: boolean;
363
375
  }): Promise<any> {
364
376
  const { JsonApiGet } = await import("../../unified/JsonApiRequest");
@@ -377,6 +389,7 @@ export abstract class AbstractService {
377
389
  classKey: params.type,
378
390
  endpoint: params.endpoint,
379
391
  companyId: params.companyId,
392
+ baseUrl: params.baseUrl,
380
393
  language: language,
381
394
  });
382
395
 
@@ -147,6 +147,11 @@ export abstract class ClientAbstractService {
147
147
  total?: ClientTotalRef;
148
148
  responseType?: ApiRequestDataTypeInterface;
149
149
  files?: { [key: string]: File | Blob } | File | Blob;
150
+ /**
151
+ * Per-call override of the API base URL (mirrors `AbstractService.callApi`'s `baseUrl`).
152
+ * Omitted => existing global `NEXT_PUBLIC_API_URL` resolution, unchanged.
153
+ */
154
+ baseUrl?: string;
150
155
  }): Promise<T> {
151
156
  let apiResponse: ApiResponseInterface;
152
157
 
@@ -160,6 +165,7 @@ export abstract class ClientAbstractService {
160
165
  endpoint: params.endpoint,
161
166
  companyId: params.companyId,
162
167
  language: language,
168
+ baseUrl: params.baseUrl,
163
169
  });
164
170
  break;
165
171
  case ClientHttpMethod.POST:
@@ -172,6 +178,7 @@ export abstract class ClientAbstractService {
172
178
  language: language,
173
179
  responseType: params.responseType,
174
180
  files: params.files,
181
+ baseUrl: params.baseUrl,
175
182
  });
176
183
  break;
177
184
  case ClientHttpMethod.PUT:
@@ -183,6 +190,7 @@ export abstract class ClientAbstractService {
183
190
  language: language,
184
191
  responseType: params.responseType,
185
192
  files: params.files,
193
+ baseUrl: params.baseUrl,
186
194
  });
187
195
  break;
188
196
  case ClientHttpMethod.PATCH:
@@ -195,6 +203,7 @@ export abstract class ClientAbstractService {
195
203
  language: language,
196
204
  responseType: params.responseType,
197
205
  files: params.files,
206
+ baseUrl: params.baseUrl,
198
207
  });
199
208
  break;
200
209
  case ClientHttpMethod.DELETE:
@@ -204,6 +213,7 @@ export abstract class ClientAbstractService {
204
213
  companyId: params.companyId,
205
214
  language: language,
206
215
  responseType: params.responseType,
216
+ baseUrl: params.baseUrl,
207
217
  });
208
218
  break;
209
219
  default: