@carlonicora/nextjs-jsonapi 1.108.0 → 1.109.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 (166) hide show
  1. package/dist/{AssistantInterface-BYgI5z1-.d.mts → AssistantInterface-B1c8FhGA.d.mts} +2 -0
  2. package/dist/{AssistantInterface-DfDcz0gJ.d.ts → AssistantInterface-BBUHxOCd.d.ts} +2 -0
  3. package/dist/{AssistantMessageInterface-BpEhx2pC.d.ts → AssistantMessageInterface-Cs1yb-gF.d.ts} +3 -1
  4. package/dist/{AssistantMessageInterface-DJ3Me16Y.d.mts → AssistantMessageInterface-DQ3mH5L8.d.mts} +3 -1
  5. package/dist/{AuthComponent-B6DIk8Vf.d.ts → AuthComponent-Cd7lcYif.d.ts} +1 -1
  6. package/dist/{AuthComponent-BKI0ZbtD.d.mts → AuthComponent-DdxCFgUZ.d.mts} +1 -1
  7. package/dist/{BlockNoteEditor-2AXSTGGG.js → BlockNoteEditor-3XYBZLWO.js} +20 -19
  8. package/dist/BlockNoteEditor-3XYBZLWO.js.map +1 -0
  9. package/dist/{BlockNoteEditor-XVIBGXHF.mjs → BlockNoteEditor-EBFZG7AL.mjs} +5 -4
  10. package/dist/{BlockNoteEditor-XVIBGXHF.mjs.map → BlockNoteEditor-EBFZG7AL.mjs.map} +1 -1
  11. package/dist/{auth.interface-BBUgMZzs.d.ts → auth.interface-8b601idJ.d.ts} +1 -1
  12. package/dist/{auth.interface-XYEREOD6.d.mts → auth.interface-CXBF8Mhi.d.mts} +1 -1
  13. package/dist/billing/index.js +347 -346
  14. package/dist/billing/index.js.map +1 -1
  15. package/dist/billing/index.mjs +4 -3
  16. package/dist/billing/index.mjs.map +1 -1
  17. package/dist/chunk-3J7RQBF3.js +123 -0
  18. package/dist/chunk-3J7RQBF3.js.map +1 -0
  19. package/dist/{chunk-VLDLERJN.js → chunk-7E3O52U5.js} +15 -8
  20. package/dist/chunk-7E3O52U5.js.map +1 -0
  21. package/dist/{chunk-RXXZGPC3.js → chunk-CFI4WZ5R.js} +159 -113
  22. package/dist/chunk-CFI4WZ5R.js.map +1 -0
  23. package/dist/chunk-CQID6RCF.mjs +38 -0
  24. package/dist/chunk-CQID6RCF.mjs.map +1 -0
  25. package/dist/{chunk-56XBGQGU.mjs → chunk-CRTVAQEK.mjs} +42 -27
  26. package/dist/chunk-CRTVAQEK.mjs.map +1 -0
  27. package/dist/{chunk-N3NVIPSU.mjs → chunk-MSNNAHDB.mjs} +129 -83
  28. package/dist/{chunk-N3NVIPSU.mjs.map → chunk-MSNNAHDB.mjs.map} +1 -1
  29. package/dist/chunk-MZTKPPET.mjs +123 -0
  30. package/dist/chunk-MZTKPPET.mjs.map +1 -0
  31. package/dist/{chunk-HC3JFN3C.js → chunk-UHO3KUUH.js} +838 -823
  32. package/dist/chunk-UHO3KUUH.js.map +1 -0
  33. package/dist/{chunk-CFECWLHH.mjs → chunk-UOYIWJEJ.mjs} +10 -3
  34. package/dist/chunk-UOYIWJEJ.mjs.map +1 -0
  35. package/dist/chunk-YQQHAFBS.js +38 -0
  36. package/dist/chunk-YQQHAFBS.js.map +1 -0
  37. package/dist/client/index.d.mts +8 -16
  38. package/dist/client/index.d.ts +8 -16
  39. package/dist/client/index.js +5 -4
  40. package/dist/client/index.js.map +1 -1
  41. package/dist/client/index.mjs +4 -3
  42. package/dist/components/index.d.mts +6 -5
  43. package/dist/components/index.d.ts +6 -5
  44. package/dist/components/index.js +5 -4
  45. package/dist/components/index.js.map +1 -1
  46. package/dist/components/index.mjs +4 -3
  47. package/dist/{config-CLQynoaa.d.ts → config-CN23v3eJ.d.ts} +4 -1
  48. package/dist/{config-k61pe_o2.d.mts → config-gh88Qn4h.d.mts} +4 -1
  49. package/dist/contexts/index.d.mts +18 -7
  50. package/dist/contexts/index.d.ts +18 -7
  51. package/dist/contexts/index.js +5 -4
  52. package/dist/contexts/index.js.map +1 -1
  53. package/dist/contexts/index.mjs +4 -3
  54. package/dist/core/index.d.mts +44 -11
  55. package/dist/core/index.d.ts +44 -11
  56. package/dist/core/index.js +2 -2
  57. package/dist/core/index.mjs +1 -1
  58. package/dist/features/help/index.css +29 -0
  59. package/dist/features/help/index.css.map +1 -0
  60. package/dist/features/help/index.d.mts +115 -0
  61. package/dist/features/help/index.d.ts +115 -0
  62. package/dist/features/help/index.js +532 -0
  63. package/dist/features/help/index.js.map +1 -0
  64. package/dist/features/help/index.mjs +532 -0
  65. package/dist/features/help/index.mjs.map +1 -0
  66. package/dist/features/help/server/createHelpAssetRouteHandler.d.mts +11 -0
  67. package/dist/features/help/server/createHelpAssetRouteHandler.d.ts +11 -0
  68. package/dist/features/help/server/createHelpAssetRouteHandler.js +43 -0
  69. package/dist/features/help/server/createHelpAssetRouteHandler.js.map +1 -0
  70. package/dist/features/help/server/createHelpAssetRouteHandler.mjs +43 -0
  71. package/dist/features/help/server/createHelpAssetRouteHandler.mjs.map +1 -0
  72. package/dist/features/help/server.d.mts +71 -0
  73. package/dist/features/help/server.d.ts +71 -0
  74. package/dist/features/help/server.js +123 -0
  75. package/dist/features/help/server.js.map +1 -0
  76. package/dist/features/help/server.mjs +123 -0
  77. package/dist/features/help/server.mjs.map +1 -0
  78. package/dist/help-content-config.interface-B9L02u9i.d.mts +50 -0
  79. package/dist/help-content-config.interface-B9L02u9i.d.ts +50 -0
  80. package/dist/index.d.mts +10 -8
  81. package/dist/index.d.ts +10 -8
  82. package/dist/index.js +4 -3
  83. package/dist/index.js.map +1 -1
  84. package/dist/index.mjs +3 -2
  85. package/dist/{notification.interface-aLEJbA_g.d.ts → notification.interface-C1T1C2ee.d.ts} +1 -100
  86. package/dist/{notification.interface-DLZGtV7Z.d.mts → notification.interface-DIxR23eS.d.mts} +1 -100
  87. package/dist/{s3.service-CVgLWaDc.d.mts → s3.service-0BTClOYO.d.mts} +2 -2
  88. package/dist/{s3.service-SLlX0Zbz.d.ts → s3.service-CT27Fm1s.d.ts} +2 -2
  89. package/dist/server/index.d.mts +4 -3
  90. package/dist/server/index.d.ts +4 -3
  91. package/dist/server/index.js +3 -3
  92. package/dist/server/index.mjs +1 -1
  93. package/dist/types-CQSjy7et.d.mts +101 -0
  94. package/dist/types-DHOxe8rc.d.ts +101 -0
  95. package/dist/usePageUrlGenerator-tjq2mlDV.d.ts +14 -0
  96. package/dist/usePageUrlGenerator-uOnyJ6j2.d.mts +14 -0
  97. package/dist/{useSocket-BkxHHujj.d.mts → useSocket-B1fMIr17.d.mts} +1 -1
  98. package/dist/{useSocket-CMDjWFYm.d.ts → useSocket-BdJTBXKv.d.ts} +1 -1
  99. package/package.json +20 -1
  100. package/src/client/config.ts +9 -1
  101. package/src/core/registry/helpStore.ts +45 -0
  102. package/src/features/assistant/contexts/AssistantContext.tsx +35 -19
  103. package/src/features/assistant/contexts/__tests__/AssistantContext.spec.tsx +66 -6
  104. package/src/features/assistant/data/Assistant.ts +2 -0
  105. package/src/features/assistant/data/AssistantInterface.ts +2 -0
  106. package/src/features/assistant/data/AssistantService.ts +18 -8
  107. package/src/features/assistant-message/components/parts/MessageSourcesPanel.tsx +6 -4
  108. package/src/features/assistant-message/components/parts/tabs/ContentsTab.tsx +5 -1
  109. package/src/features/assistant-message/components/parts/tabs/ReferencesTab.tsx +2 -1
  110. package/src/features/assistant-message/data/AssistantMessage.ts +27 -1
  111. package/src/features/assistant-message/data/AssistantMessageInterface.ts +1 -0
  112. package/src/features/assistant-message/data/__tests__/AssistantMessage.spec.ts +7 -3
  113. package/src/features/help/components/HelpArticleBody.tsx +54 -0
  114. package/src/features/help/components/HelpAskAi.tsx +36 -0
  115. package/src/features/help/components/HelpAssistantSheet.tsx +53 -0
  116. package/src/features/help/components/HelpHeader.tsx +40 -0
  117. package/src/features/help/components/HelpHint.tsx +77 -0
  118. package/src/features/help/components/HelpSearchResultRow.tsx +51 -0
  119. package/src/features/help/components/HelpSideNav.tsx +84 -0
  120. package/src/features/help/components/HelpTOC.tsx +49 -0
  121. package/src/features/help/components/__tests__/HelpAskAi.spec.tsx +68 -0
  122. package/src/features/help/components/__tests__/HelpAssistantSheet.spec.tsx +36 -0
  123. package/src/features/help/components/__tests__/HelpHint.spec.tsx +50 -0
  124. package/src/features/help/components/__tests__/HelpSearchResultRow.spec.tsx +59 -0
  125. package/src/features/help/components/__tests__/HelpSideNav.spec.tsx +52 -0
  126. package/src/features/help/components/mdx/Callout.tsx +21 -0
  127. package/src/features/help/components/mdx/EntityRef.tsx +18 -0
  128. package/src/features/help/components/mdx/KeyBinding.tsx +6 -0
  129. package/src/features/help/components/mdx/Related.tsx +33 -0
  130. package/src/features/help/components/mdx/Screenshot.tsx +9 -0
  131. package/src/features/help/components/mdx/Steps.tsx +21 -0
  132. package/src/features/help/components/mdx/Video.tsx +8 -0
  133. package/src/features/help/components/mdx/mdx-server-components.ts +23 -0
  134. package/src/features/help/components/mdx/mdxComponents.ts +9 -0
  135. package/src/features/help/contexts/HelpContext.spec.tsx +28 -0
  136. package/src/features/help/contexts/HelpContext.tsx +24 -0
  137. package/src/features/help/hooks/useHelp.ts +1 -0
  138. package/src/features/help/hooks/useHelpArticle.ts +7 -0
  139. package/src/features/help/hooks/useHelpFilter.ts +27 -0
  140. package/src/features/help/hooks/useHelpManifest.ts +5 -0
  141. package/src/features/help/i18n-keys.ts +34 -0
  142. package/src/features/help/index.ts +27 -0
  143. package/src/features/help/interfaces/help-content-config.interface.ts +17 -0
  144. package/src/features/help/server/__tests__/createHelpAssetRouteHandler.spec.ts +43 -0
  145. package/src/features/help/server/createHelpAssetRouteHandler.ts +35 -0
  146. package/src/features/help/server/generateHelpArticleMetadata.ts +18 -0
  147. package/src/features/help/server/generateHelpArticleStaticParams.ts +7 -0
  148. package/src/features/help/server/generateHelpModeStaticParams.ts +5 -0
  149. package/src/features/help/server/getHelpContent.ts +17 -0
  150. package/src/features/help/server/index.ts +8 -0
  151. package/src/features/help/server/serializeHelpArticle.tsx +46 -0
  152. package/src/features/help/server-entry.ts +20 -0
  153. package/src/features/help/types/help-article.types.ts +37 -0
  154. package/src/features/help/utils/__tests__/helpNavigation.spec.ts +70 -0
  155. package/src/features/help/utils/articleUrl.ts +13 -0
  156. package/src/features/help/utils/helpNavigation.ts +29 -0
  157. package/src/features/how-to/HowToModule.ts +1 -1
  158. package/src/features/how-to/data/HowTo.ts +21 -3
  159. package/src/features/how-to/data/HowToInterface.ts +1 -0
  160. package/src/index.ts +4 -0
  161. package/dist/BlockNoteEditor-2AXSTGGG.js.map +0 -1
  162. package/dist/chunk-56XBGQGU.mjs.map +0 -1
  163. package/dist/chunk-CFECWLHH.mjs.map +0 -1
  164. package/dist/chunk-HC3JFN3C.js.map +0 -1
  165. package/dist/chunk-RXXZGPC3.js.map +0 -1
  166. package/dist/chunk-VLDLERJN.js.map +0 -1
package/dist/index.d.mts CHANGED
@@ -4,19 +4,20 @@ 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-CVgLWaDc.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-CVgLWaDc.mjs';
9
- export { b as AssistantMessageInput, c as AssistantMessageInterface, A as AssistantMessageRole, B as BreadcrumbItemData, d as ChunkInterface, C as ChunkRelationshipMeta, H as HowToInput, a as HowToInterface } from './AssistantMessageInterface-DJ3Me16Y.mjs';
7
+ import { b as AbstractService } from './s3.service-0BTClOYO.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-0BTClOYO.mjs';
9
+ export { b as AssistantMessageInput, c as AssistantMessageInterface, A as AssistantMessageRole, B as BreadcrumbItemData, d as ChunkInterface, C as ChunkRelationshipMeta, H as HowToInput, a as HowToInterface } from './AssistantMessageInterface-DQ3mH5L8.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';
12
- export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, b as getIcon, a as getIconByModule, c as getIconByModuleName, g as getInitials, d as getLucideIcon, e as getLucideIconByModule, f as getLucideIconByModuleName } from './AuthComponent-BKI0ZbtD.mjs';
13
- export { A as Action, i as CompanyInput, j as CompanyInterface, a as ContentInput, C as ContentInterface, d as ModuleDefinition, h as ModuleFactory, c as ModulePermissionDefinition, M as ModuleWithPermissions, k as NotificationInput, N as NotificationInterface, b as PageUrl, P as PermissionCheck, e as PermissionConfig, f as PermissionModule, g as PermissionUser, R as RoleInput, l as RoleInterface, m as UserInput, U as UserInterface } from './notification.interface-DLZGtV7Z.mjs';
14
- export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-XYEREOD6.mjs';
12
+ export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, b as getIcon, a as getIconByModule, c as getIconByModuleName, g as getInitials, d as getLucideIcon, e as getLucideIconByModule, f as getLucideIconByModuleName } from './AuthComponent-DdxCFgUZ.mjs';
13
+ export { A as Action, c as ModuleDefinition, g as ModuleFactory, b as ModulePermissionDefinition, M as ModuleWithPermissions, P as PageUrl, a as PermissionCheck, d as PermissionConfig, e as PermissionModule, f as PermissionUser } from './types-CQSjy7et.mjs';
14
+ export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-CXBF8Mhi.mjs';
15
15
  export { I as InvoiceStatus, M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, e as PriceRecurring, q as PromotionCodeValidationResult, c as ProrationLineItem, b as ProrationPreviewInterface, R as ReportUsageInput, S as StripeCustomerInterface, a as StripeInvoiceInterface, f as StripePriceInput, d as StripePriceInterface, h as StripeProductInput, g as StripeProductInterface, l as StripeSubscriptionCreateMeta, m as StripeSubscriptionCreateResponse, k as StripeSubscriptionInput, j as StripeSubscriptionInterface, n as StripeUsageInterface, i as SubscriptionStatus, p as UsageRecordInterface, U as UsageSummaryInterface } from './stripe-promotion-code.interface-ClZ7DxS9.mjs';
16
- export { A as AssistantInput, a as AssistantInterface } from './AssistantInterface-BYgI5z1-.mjs';
16
+ export { b as CompanyInput, c as CompanyInterface, a as ContentInput, C as ContentInterface, d as NotificationInput, N as NotificationInterface, R as RoleInput, e as RoleInterface, f as UserInput, U as UserInterface } from './notification.interface-DIxR23eS.mjs';
17
+ export { A as AssistantInput, a as AssistantInterface } from './AssistantInterface-B1c8FhGA.mjs';
17
18
  export { F as FeatureInterface, M as ModuleInterface } from './feature.interface-CXb1-vNq.mjs';
18
19
  export { A as AVAILABLE_OAUTH_SCOPES, D as DEFAULT_GRANT_TYPES, g as OAUTH_SCOPE_DISPLAY, b as OAuthClientCreateRequest, c as OAuthClientCreateResponse, a as OAuthClientInput, O as OAuthClientInterface, f as OAuthConsentInfo, d as OAuthConsentRequest, e as OAuthScopeInfo } from './oauth.interface-o5FLpiN7.mjs';
19
- export { I as I18nConfig, f as configureI18n, c as configureJsonApi, g as getApiUrl, b as getAppUrl, a as getPublicApiUrl, e as getStripePublishableKey, d as getTrackablePages } from './config-k61pe_o2.mjs';
20
+ export { I as I18nConfig, f as configureI18n, c as configureJsonApi, g as getApiUrl, b as getAppUrl, a as getPublicApiUrl, e as getStripePublishableKey, d as getTrackablePages } from './config-gh88Qn4h.mjs';
20
21
  export { Q as QuestionnaireField, a as QuestionnaireFieldType, b as QuestionnaireOption, W as WaitlistConfig, c as configureWaitlist, g as getWaitlistConfig } from './waitlist.config-kPfjImle.mjs';
21
22
  import { R as RbacMatrix } from './RbacTypes-BTbr27Ew.mjs';
22
23
  export { a as ACTION_TYPES, A as ActionType, C as COMPANY_ADMINISTRATOR_ROLE_ID, c as PermToken, P as PermissionValue, b as PermissionsMap, d as RbacModuleBlock } from './RbacTypes-BTbr27Ew.mjs';
@@ -27,6 +28,7 @@ import 'sonner';
27
28
  import '@simplewebauthn/browser';
28
29
  import 'd3';
29
30
  import 'lucide-react';
31
+ import './help-content-config.interface-B9L02u9i.mjs';
30
32
 
31
33
  type RegistrationMode = "open" | "closed" | "waitlist";
32
34
  interface LoginConfig {
package/dist/index.d.ts CHANGED
@@ -4,19 +4,20 @@ 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-SLlX0Zbz.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-SLlX0Zbz.js';
9
- export { b as AssistantMessageInput, c as AssistantMessageInterface, A as AssistantMessageRole, B as BreadcrumbItemData, d as ChunkInterface, C as ChunkRelationshipMeta, H as HowToInput, a as HowToInterface } from './AssistantMessageInterface-BpEhx2pC.js';
7
+ import { b as AbstractService } from './s3.service-CT27Fm1s.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-CT27Fm1s.js';
9
+ export { b as AssistantMessageInput, c as AssistantMessageInterface, A as AssistantMessageRole, B as BreadcrumbItemData, d as ChunkInterface, C as ChunkRelationshipMeta, H as HowToInput, a as HowToInterface } from './AssistantMessageInterface-Cs1yb-gF.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';
12
- export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, b as getIcon, a as getIconByModule, c as getIconByModuleName, g as getInitials, d as getLucideIcon, e as getLucideIconByModule, f as getLucideIconByModuleName } from './AuthComponent-B6DIk8Vf.js';
13
- export { A as Action, i as CompanyInput, j as CompanyInterface, a as ContentInput, C as ContentInterface, d as ModuleDefinition, h as ModuleFactory, c as ModulePermissionDefinition, M as ModuleWithPermissions, k as NotificationInput, N as NotificationInterface, b as PageUrl, P as PermissionCheck, e as PermissionConfig, f as PermissionModule, g as PermissionUser, R as RoleInput, l as RoleInterface, m as UserInput, U as UserInterface } from './notification.interface-aLEJbA_g.js';
14
- export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-BBUgMZzs.js';
12
+ export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, b as getIcon, a as getIconByModule, c as getIconByModuleName, g as getInitials, d as getLucideIcon, e as getLucideIconByModule, f as getLucideIconByModuleName } from './AuthComponent-Cd7lcYif.js';
13
+ export { A as Action, c as ModuleDefinition, g as ModuleFactory, b as ModulePermissionDefinition, M as ModuleWithPermissions, P as PageUrl, a as PermissionCheck, d as PermissionConfig, e as PermissionModule, f as PermissionUser } from './types-DHOxe8rc.js';
14
+ export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-8b601idJ.js';
15
15
  export { I as InvoiceStatus, M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, e as PriceRecurring, q as PromotionCodeValidationResult, c as ProrationLineItem, b as ProrationPreviewInterface, R as ReportUsageInput, S as StripeCustomerInterface, a as StripeInvoiceInterface, f as StripePriceInput, d as StripePriceInterface, h as StripeProductInput, g as StripeProductInterface, l as StripeSubscriptionCreateMeta, m as StripeSubscriptionCreateResponse, k as StripeSubscriptionInput, j as StripeSubscriptionInterface, n as StripeUsageInterface, i as SubscriptionStatus, p as UsageRecordInterface, U as UsageSummaryInterface } from './stripe-promotion-code.interface-C3qqh3mi.js';
16
- export { A as AssistantInput, a as AssistantInterface } from './AssistantInterface-DfDcz0gJ.js';
16
+ export { b as CompanyInput, c as CompanyInterface, a as ContentInput, C as ContentInterface, d as NotificationInput, N as NotificationInterface, R as RoleInput, e as RoleInterface, f as UserInput, U as UserInterface } from './notification.interface-C1T1C2ee.js';
17
+ export { A as AssistantInput, a as AssistantInterface } from './AssistantInterface-BBUHxOCd.js';
17
18
  export { F as FeatureInterface, M as ModuleInterface } from './feature.interface-BO25VLlx.js';
18
19
  export { A as AVAILABLE_OAUTH_SCOPES, D as DEFAULT_GRANT_TYPES, g as OAUTH_SCOPE_DISPLAY, b as OAuthClientCreateRequest, c as OAuthClientCreateResponse, a as OAuthClientInput, O as OAuthClientInterface, f as OAuthConsentInfo, d as OAuthConsentRequest, e as OAuthScopeInfo } from './oauth.interface-B6xmfDzK.js';
19
- export { I as I18nConfig, f as configureI18n, c as configureJsonApi, g as getApiUrl, b as getAppUrl, a as getPublicApiUrl, e as getStripePublishableKey, d as getTrackablePages } from './config-CLQynoaa.js';
20
+ export { I as I18nConfig, f as configureI18n, c as configureJsonApi, g as getApiUrl, b as getAppUrl, a as getPublicApiUrl, e as getStripePublishableKey, d as getTrackablePages } from './config-CN23v3eJ.js';
20
21
  export { Q as QuestionnaireField, a as QuestionnaireFieldType, b as QuestionnaireOption, W as WaitlistConfig, c as configureWaitlist, g as getWaitlistConfig } from './waitlist.config-kPfjImle.js';
21
22
  import { R as RbacMatrix } from './RbacTypes-BTbr27Ew.js';
22
23
  export { a as ACTION_TYPES, A as ActionType, C as COMPANY_ADMINISTRATOR_ROLE_ID, c as PermToken, P as PermissionValue, b as PermissionsMap, d as RbacModuleBlock } from './RbacTypes-BTbr27Ew.js';
@@ -27,6 +28,7 @@ import 'sonner';
27
28
  import '@simplewebauthn/browser';
28
29
  import 'd3';
29
30
  import 'lucide-react';
31
+ import './help-content-config.interface-B9L02u9i.js';
30
32
 
31
33
  type RegistrationMode = "open" | "closed" | "waitlist";
32
34
  interface LoginConfig {
package/dist/index.js CHANGED
@@ -18,7 +18,8 @@
18
18
 
19
19
 
20
20
 
21
- var _chunkVLDLERJNjs = require('./chunk-VLDLERJN.js');
21
+ var _chunk7E3O52U5js = require('./chunk-7E3O52U5.js');
22
+ require('./chunk-YQQHAFBS.js');
22
23
 
23
24
 
24
25
 
@@ -199,7 +200,7 @@ var _chunkVLDLERJNjs = require('./chunk-VLDLERJN.js');
199
200
 
200
201
 
201
202
 
202
- var _chunkRXXZGPC3js = require('./chunk-RXXZGPC3.js');
203
+ var _chunkCFI4WZ5Rjs = require('./chunk-CFI4WZ5R.js');
203
204
  require('./chunk-LXKSUWAV.js');
204
205
  require('./chunk-IBS6NI7D.js');
205
206
 
@@ -423,5 +424,5 @@ require('./chunk-7QVYU63E.js');
423
424
 
424
425
 
425
426
 
426
- exports.ACTION_TYPES = _chunkVLDLERJNjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkRXXZGPC3js.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkRXXZGPC3js.AbstractApiData; exports.AbstractService = _chunkRXXZGPC3js.AbstractService; exports.Action = _chunkRXXZGPC3js.Action; exports.Assistant = _chunkRXXZGPC3js.Assistant; exports.AssistantMessage = _chunkRXXZGPC3js.AssistantMessage; exports.AssistantMessageModule = _chunkRXXZGPC3js.AssistantMessageModule; exports.AssistantMessageService = _chunkRXXZGPC3js.AssistantMessageService; exports.AssistantModule = _chunkRXXZGPC3js.AssistantModule; exports.AssistantService = _chunkRXXZGPC3js.AssistantService; exports.AuditLog = _chunkRXXZGPC3js.AuditLog; exports.AuditLogModule = _chunkRXXZGPC3js.AuditLogModule; exports.AuditLogService = _chunkRXXZGPC3js.AuditLogService; exports.Auth = _chunkRXXZGPC3js.Auth; exports.AuthComponent = _chunkRXXZGPC3js.AuthComponent; exports.AuthModule = _chunkRXXZGPC3js.AuthModule; exports.AuthService = _chunkRXXZGPC3js.AuthService; exports.AuthorModule = _chunkRXXZGPC3js.AuthorModule; exports.BackupCodeVerify = _chunkRXXZGPC3js.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkRXXZGPC3js.BackupCodeVerifyModule; exports.Billing = _chunkRXXZGPC3js.Billing; exports.BillingModule = _chunkRXXZGPC3js.BillingModule; exports.BillingService = _chunkRXXZGPC3js.BillingService; exports.BlockNoteDiffUtil = _chunkRXXZGPC3js.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkRXXZGPC3js.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkVLDLERJNjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.Chunk = _chunkRXXZGPC3js.Chunk; exports.ChunkModule = _chunkRXXZGPC3js.ChunkModule; exports.ClientAbstractService = _chunkRXXZGPC3js.ClientAbstractService; exports.ClientHttpMethod = _chunkRXXZGPC3js.ClientHttpMethod; exports.Company = _chunkRXXZGPC3js.Company; exports.CompanyFields = _chunkRXXZGPC3js.CompanyFields; exports.CompanyModule = _chunkRXXZGPC3js.CompanyModule; exports.CompanyService = _chunkRXXZGPC3js.CompanyService; exports.Content = _chunkRXXZGPC3js.Content; exports.ContentFields = _chunkRXXZGPC3js.ContentFields; exports.ContentModule = _chunkRXXZGPC3js.ContentModule; exports.ContentService = _chunkRXXZGPC3js.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkRXXZGPC3js.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkJ5LROFGLjs.DataClassRegistry; exports.DataClassRegistry = _chunkJ5LROFGLjs.DataClassRegistry; exports.EndpointCreator = _chunkRXXZGPC3js.EndpointCreator; exports.Feature = _chunkRXXZGPC3js.Feature; exports.FeatureModule = _chunkRXXZGPC3js.FeatureModule; exports.FeatureService = _chunkRXXZGPC3js.FeatureService; exports.HowTo = _chunkRXXZGPC3js.HowTo; exports.HowToFields = _chunkRXXZGPC3js.HowToFields; exports.HowToModule = _chunkRXXZGPC3js.HowToModule; exports.HowToService = _chunkRXXZGPC3js.HowToService; exports.HttpMethod = _chunkRXXZGPC3js.HttpMethod; exports.InvoiceStatus = _chunkRXXZGPC3js.InvoiceStatus; exports.JsonApiDataFactory = _chunkJ5LROFGLjs.JsonApiDataFactory; exports.Module = _chunkRXXZGPC3js.Module; exports.ModuleModule = _chunkRXXZGPC3js.ModuleModule; exports.ModulePaths = _chunkRXXZGPC3js.ModulePaths; exports.ModulePathsModule = _chunkRXXZGPC3js.ModulePathsModule; exports.ModuleRegistrar = _chunkRXXZGPC3js.ModuleRegistrar; exports.ModuleRegistry = _chunkRXXZGPC3js.ModuleRegistry; exports.Modules = _chunkRXXZGPC3js.Modules; exports.Notification = _chunkRXXZGPC3js.Notification; exports.NotificationFields = _chunkRXXZGPC3js.NotificationFields; exports.NotificationModule = _chunkRXXZGPC3js.NotificationModule; exports.NotificationService = _chunkRXXZGPC3js.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkRXXZGPC3js.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkRXXZGPC3js.OAuthClient; exports.OAuthModule = _chunkRXXZGPC3js.OAuthModule; exports.OAuthService = _chunkRXXZGPC3js.OAuthService; exports.Passkey = _chunkRXXZGPC3js.Passkey; exports.PasskeyAuthenticationOptions = _chunkRXXZGPC3js.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkRXXZGPC3js.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkRXXZGPC3js.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkRXXZGPC3js.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkRXXZGPC3js.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkRXXZGPC3js.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkRXXZGPC3js.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkRXXZGPC3js.PasskeyRename; exports.PasskeyRenameModule = _chunkRXXZGPC3js.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkRXXZGPC3js.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkRXXZGPC3js.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkRXXZGPC3js.PaymentMethod; exports.PermissionMapping = _chunkRXXZGPC3js.PermissionMapping; exports.PermissionMappingModule = _chunkRXXZGPC3js.PermissionMappingModule; exports.Push = _chunkRXXZGPC3js.Push; exports.PushModule = _chunkRXXZGPC3js.PushModule; exports.PushService = _chunkRXXZGPC3js.PushService; exports.RbacMatrixModel = _chunkRXXZGPC3js.RbacMatrixModel; exports.RbacMatrixModule = _chunkRXXZGPC3js.RbacMatrixModule; exports.RbacService = _chunkVLDLERJNjs.RbacService; exports.ReferralModule = _chunkRXXZGPC3js.ReferralModule; exports.ReferralService = _chunkRXXZGPC3js.ReferralService; exports.ReferralStats = _chunkRXXZGPC3js.ReferralStats; exports.ReferralStatsModule = _chunkRXXZGPC3js.ReferralStatsModule; exports.RehydrationFactory = _chunkRXXZGPC3js.RehydrationFactory; exports.Role = _chunkRXXZGPC3js.Role; exports.RoleFields = _chunkRXXZGPC3js.RoleFields; exports.RoleModule = _chunkRXXZGPC3js.RoleModule; exports.RoleService = _chunkRXXZGPC3js.RoleService; exports.S3 = _chunkRXXZGPC3js.S3; exports.S3Module = _chunkRXXZGPC3js.S3Module; exports.S3Service = _chunkRXXZGPC3js.S3Service; exports.StripeCustomer = _chunkRXXZGPC3js.StripeCustomer; exports.StripeCustomerModule = _chunkRXXZGPC3js.StripeCustomerModule; exports.StripeCustomerService = _chunkRXXZGPC3js.StripeCustomerService; exports.StripeInvoice = _chunkRXXZGPC3js.StripeInvoice; exports.StripeInvoiceModule = _chunkRXXZGPC3js.StripeInvoiceModule; exports.StripeInvoiceService = _chunkRXXZGPC3js.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkRXXZGPC3js.StripePaymentMethodModule; exports.StripePrice = _chunkRXXZGPC3js.StripePrice; exports.StripePriceModule = _chunkRXXZGPC3js.StripePriceModule; exports.StripePriceService = _chunkRXXZGPC3js.StripePriceService; exports.StripeProduct = _chunkRXXZGPC3js.StripeProduct; exports.StripeProductModule = _chunkRXXZGPC3js.StripeProductModule; exports.StripeProductService = _chunkRXXZGPC3js.StripeProductService; exports.StripePromotionCode = _chunkRXXZGPC3js.StripePromotionCode; exports.StripePromotionCodeModule = _chunkRXXZGPC3js.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkRXXZGPC3js.StripePromotionCodeService; exports.StripeSubscription = _chunkRXXZGPC3js.StripeSubscription; exports.StripeSubscriptionModule = _chunkRXXZGPC3js.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkRXXZGPC3js.StripeSubscriptionService; exports.StripeUsage = _chunkRXXZGPC3js.StripeUsage; exports.StripeUsageModule = _chunkRXXZGPC3js.StripeUsageModule; exports.StripeUsageService = _chunkRXXZGPC3js.StripeUsageService; exports.SubscriptionStatus = _chunkRXXZGPC3js.SubscriptionStatus; exports.TableOptions = _chunkRXXZGPC3js.TableOptions; exports.TotpAuthenticator = _chunkRXXZGPC3js.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkRXXZGPC3js.TotpAuthenticatorModule; exports.TotpSetup = _chunkRXXZGPC3js.TotpSetup; exports.TotpSetupModule = _chunkRXXZGPC3js.TotpSetupModule; exports.TotpVerify = _chunkRXXZGPC3js.TotpVerify; exports.TotpVerifyLogin = _chunkRXXZGPC3js.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkRXXZGPC3js.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkRXXZGPC3js.TotpVerifyModule; exports.TwoFactorChallenge = _chunkRXXZGPC3js.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkRXXZGPC3js.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkRXXZGPC3js.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkRXXZGPC3js.TwoFactorEnableModule; exports.TwoFactorService = _chunkRXXZGPC3js.TwoFactorService; exports.TwoFactorStatus = _chunkRXXZGPC3js.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkRXXZGPC3js.TwoFactorStatusModule; exports.User = _chunkRXXZGPC3js.User; exports.UserFields = _chunkRXXZGPC3js.UserFields; exports.UserModule = _chunkRXXZGPC3js.UserModule; exports.UserService = _chunkRXXZGPC3js.UserService; exports.Waitlist = _chunkRXXZGPC3js.Waitlist; exports.WaitlistModule = _chunkRXXZGPC3js.WaitlistModule; exports.WaitlistService = _chunkRXXZGPC3js.WaitlistService; exports.WaitlistStats = _chunkRXXZGPC3js.WaitlistStats; exports.WaitlistStatsModule = _chunkRXXZGPC3js.WaitlistStatsModule; exports.checkPermissions = _chunkRXXZGPC3js.checkPermissions; exports.checkPermissionsFromServer = _chunkRXXZGPC3js.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkRXXZGPC3js.clearLastApiTotal; exports.cn = _chunkRXXZGPC3js.cn; exports.composeRefs = _chunkRXXZGPC3js.composeRefs; exports.configureAuth = _chunkRXXZGPC3js.configureAuth; exports.configureI18n = _chunkVLDLERJNjs.configureI18n; exports.configureJsonApi = _chunkVLDLERJNjs.configureJsonApi; exports.configureLogin = _chunkVLDLERJNjs.configureLogin; exports.configureReferral = _chunkVLDLERJNjs.configureReferral; exports.configureRoles = _chunkVLDLERJNjs.configureRoles; exports.configureWaitlist = _chunkVLDLERJNjs.configureWaitlist; exports.createJsonApiInclusion = _chunkRXXZGPC3js.createJsonApiInclusion; exports.dismissToast = _chunkRXXZGPC3js.dismissToast; exports.entityObjectSchema = _chunkRXXZGPC3js.entityObjectSchema; exports.exists = _chunkRXXZGPC3js.exists; exports.formatDate = _chunkRXXZGPC3js.formatDate; exports.formatLocalDate = _chunkRXXZGPC3js.formatLocalDate; exports.getApiUrl = _chunkVLDLERJNjs.getApiUrl; exports.getAppUrl = _chunkVLDLERJNjs.getAppUrl; exports.getBootstrapper = _chunkJ5LROFGLjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkRXXZGPC3js.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkRXXZGPC3js.getGlobalErrorHandler; exports.getIcon = _chunkRXXZGPC3js.getIcon; exports.getIconByModule = _chunkRXXZGPC3js.getIconByModule; exports.getIconByModuleName = _chunkRXXZGPC3js.getIconByModuleName; exports.getInitials = _chunkRXXZGPC3js.getInitials; exports.getLastApiTotal = _chunkRXXZGPC3js.getLastApiTotal; exports.getLucideIcon = _chunkRXXZGPC3js.getLucideIcon; exports.getLucideIconByModule = _chunkRXXZGPC3js.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkRXXZGPC3js.getLucideIconByModuleName; exports.getPublicApiUrl = _chunkVLDLERJNjs.getPublicApiUrl; exports.getReferralConfig = _chunkVLDLERJNjs.getReferralConfig; exports.getRoleId = _chunkVLDLERJNjs.getRoleId; exports.getStripePublishableKey = _chunkVLDLERJNjs.getStripePublishableKey; exports.getTableComponents = _chunkRXXZGPC3js.getTableComponents; exports.getTableOptions = _chunkRXXZGPC3js.getTableOptions; exports.getTokenHandler = _chunkRXXZGPC3js.getTokenHandler; exports.getTrackablePages = _chunkVLDLERJNjs.getTrackablePages; exports.getValueFromPath = _chunkRXXZGPC3js.getValueFromPath; exports.getWaitlistConfig = _chunkVLDLERJNjs.getWaitlistConfig; exports.hasBootstrapper = _chunkJ5LROFGLjs.hasBootstrapper; exports.isReferralEnabled = _chunkVLDLERJNjs.isReferralEnabled; exports.isRolesConfigured = _chunkVLDLERJNjs.isRolesConfigured; exports.rehydrate = _chunkRXXZGPC3js.rehydrate; exports.rehydrateList = _chunkRXXZGPC3js.rehydrateList; exports.resetBootstrapStore = _chunkJ5LROFGLjs.resetBootstrapStore; exports.setBootstrapper = _chunkJ5LROFGLjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkRXXZGPC3js.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkRXXZGPC3js.setGlobalErrorHandler; exports.showCustomToast = _chunkRXXZGPC3js.showCustomToast; exports.showError = _chunkRXXZGPC3js.showError; exports.showToast = _chunkRXXZGPC3js.showToast; exports.translateData = _chunkJ5LROFGLjs.translateData; exports.translateResponse = _chunkJ5LROFGLjs.translateResponse; exports.tryBootstrap = _chunkJ5LROFGLjs.tryBootstrap; exports.useComposedRefs = _chunkRXXZGPC3js.useComposedRefs; exports.useIsMobile = _chunkRXXZGPC3js.useIsMobile; exports.userObjectSchema = _chunkRXXZGPC3js.userObjectSchema;
427
+ exports.ACTION_TYPES = _chunk7E3O52U5js.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkCFI4WZ5Rjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkCFI4WZ5Rjs.AbstractApiData; exports.AbstractService = _chunkCFI4WZ5Rjs.AbstractService; exports.Action = _chunkCFI4WZ5Rjs.Action; exports.Assistant = _chunkCFI4WZ5Rjs.Assistant; exports.AssistantMessage = _chunkCFI4WZ5Rjs.AssistantMessage; exports.AssistantMessageModule = _chunkCFI4WZ5Rjs.AssistantMessageModule; exports.AssistantMessageService = _chunkCFI4WZ5Rjs.AssistantMessageService; exports.AssistantModule = _chunkCFI4WZ5Rjs.AssistantModule; exports.AssistantService = _chunkCFI4WZ5Rjs.AssistantService; exports.AuditLog = _chunkCFI4WZ5Rjs.AuditLog; exports.AuditLogModule = _chunkCFI4WZ5Rjs.AuditLogModule; exports.AuditLogService = _chunkCFI4WZ5Rjs.AuditLogService; exports.Auth = _chunkCFI4WZ5Rjs.Auth; exports.AuthComponent = _chunkCFI4WZ5Rjs.AuthComponent; exports.AuthModule = _chunkCFI4WZ5Rjs.AuthModule; exports.AuthService = _chunkCFI4WZ5Rjs.AuthService; exports.AuthorModule = _chunkCFI4WZ5Rjs.AuthorModule; exports.BackupCodeVerify = _chunkCFI4WZ5Rjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkCFI4WZ5Rjs.BackupCodeVerifyModule; exports.Billing = _chunkCFI4WZ5Rjs.Billing; exports.BillingModule = _chunkCFI4WZ5Rjs.BillingModule; exports.BillingService = _chunkCFI4WZ5Rjs.BillingService; exports.BlockNoteDiffUtil = _chunkCFI4WZ5Rjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkCFI4WZ5Rjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunk7E3O52U5js.COMPANY_ADMINISTRATOR_ROLE_ID; exports.Chunk = _chunkCFI4WZ5Rjs.Chunk; exports.ChunkModule = _chunkCFI4WZ5Rjs.ChunkModule; exports.ClientAbstractService = _chunkCFI4WZ5Rjs.ClientAbstractService; exports.ClientHttpMethod = _chunkCFI4WZ5Rjs.ClientHttpMethod; exports.Company = _chunkCFI4WZ5Rjs.Company; exports.CompanyFields = _chunkCFI4WZ5Rjs.CompanyFields; exports.CompanyModule = _chunkCFI4WZ5Rjs.CompanyModule; exports.CompanyService = _chunkCFI4WZ5Rjs.CompanyService; exports.Content = _chunkCFI4WZ5Rjs.Content; exports.ContentFields = _chunkCFI4WZ5Rjs.ContentFields; exports.ContentModule = _chunkCFI4WZ5Rjs.ContentModule; exports.ContentService = _chunkCFI4WZ5Rjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkCFI4WZ5Rjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkJ5LROFGLjs.DataClassRegistry; exports.DataClassRegistry = _chunkJ5LROFGLjs.DataClassRegistry; exports.EndpointCreator = _chunkCFI4WZ5Rjs.EndpointCreator; exports.Feature = _chunkCFI4WZ5Rjs.Feature; exports.FeatureModule = _chunkCFI4WZ5Rjs.FeatureModule; exports.FeatureService = _chunkCFI4WZ5Rjs.FeatureService; exports.HowTo = _chunkCFI4WZ5Rjs.HowTo; exports.HowToFields = _chunkCFI4WZ5Rjs.HowToFields; exports.HowToModule = _chunkCFI4WZ5Rjs.HowToModule; exports.HowToService = _chunkCFI4WZ5Rjs.HowToService; exports.HttpMethod = _chunkCFI4WZ5Rjs.HttpMethod; exports.InvoiceStatus = _chunkCFI4WZ5Rjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkJ5LROFGLjs.JsonApiDataFactory; exports.Module = _chunkCFI4WZ5Rjs.Module; exports.ModuleModule = _chunkCFI4WZ5Rjs.ModuleModule; exports.ModulePaths = _chunkCFI4WZ5Rjs.ModulePaths; exports.ModulePathsModule = _chunkCFI4WZ5Rjs.ModulePathsModule; exports.ModuleRegistrar = _chunkCFI4WZ5Rjs.ModuleRegistrar; exports.ModuleRegistry = _chunkCFI4WZ5Rjs.ModuleRegistry; exports.Modules = _chunkCFI4WZ5Rjs.Modules; exports.Notification = _chunkCFI4WZ5Rjs.Notification; exports.NotificationFields = _chunkCFI4WZ5Rjs.NotificationFields; exports.NotificationModule = _chunkCFI4WZ5Rjs.NotificationModule; exports.NotificationService = _chunkCFI4WZ5Rjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkCFI4WZ5Rjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkCFI4WZ5Rjs.OAuthClient; exports.OAuthModule = _chunkCFI4WZ5Rjs.OAuthModule; exports.OAuthService = _chunkCFI4WZ5Rjs.OAuthService; exports.Passkey = _chunkCFI4WZ5Rjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkCFI4WZ5Rjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkCFI4WZ5Rjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkCFI4WZ5Rjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkCFI4WZ5Rjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkCFI4WZ5Rjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkCFI4WZ5Rjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkCFI4WZ5Rjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkCFI4WZ5Rjs.PasskeyRename; exports.PasskeyRenameModule = _chunkCFI4WZ5Rjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkCFI4WZ5Rjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkCFI4WZ5Rjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkCFI4WZ5Rjs.PaymentMethod; exports.PermissionMapping = _chunkCFI4WZ5Rjs.PermissionMapping; exports.PermissionMappingModule = _chunkCFI4WZ5Rjs.PermissionMappingModule; exports.Push = _chunkCFI4WZ5Rjs.Push; exports.PushModule = _chunkCFI4WZ5Rjs.PushModule; exports.PushService = _chunkCFI4WZ5Rjs.PushService; exports.RbacMatrixModel = _chunkCFI4WZ5Rjs.RbacMatrixModel; exports.RbacMatrixModule = _chunkCFI4WZ5Rjs.RbacMatrixModule; exports.RbacService = _chunk7E3O52U5js.RbacService; exports.ReferralModule = _chunkCFI4WZ5Rjs.ReferralModule; exports.ReferralService = _chunkCFI4WZ5Rjs.ReferralService; exports.ReferralStats = _chunkCFI4WZ5Rjs.ReferralStats; exports.ReferralStatsModule = _chunkCFI4WZ5Rjs.ReferralStatsModule; exports.RehydrationFactory = _chunkCFI4WZ5Rjs.RehydrationFactory; exports.Role = _chunkCFI4WZ5Rjs.Role; exports.RoleFields = _chunkCFI4WZ5Rjs.RoleFields; exports.RoleModule = _chunkCFI4WZ5Rjs.RoleModule; exports.RoleService = _chunkCFI4WZ5Rjs.RoleService; exports.S3 = _chunkCFI4WZ5Rjs.S3; exports.S3Module = _chunkCFI4WZ5Rjs.S3Module; exports.S3Service = _chunkCFI4WZ5Rjs.S3Service; exports.StripeCustomer = _chunkCFI4WZ5Rjs.StripeCustomer; exports.StripeCustomerModule = _chunkCFI4WZ5Rjs.StripeCustomerModule; exports.StripeCustomerService = _chunkCFI4WZ5Rjs.StripeCustomerService; exports.StripeInvoice = _chunkCFI4WZ5Rjs.StripeInvoice; exports.StripeInvoiceModule = _chunkCFI4WZ5Rjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkCFI4WZ5Rjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkCFI4WZ5Rjs.StripePaymentMethodModule; exports.StripePrice = _chunkCFI4WZ5Rjs.StripePrice; exports.StripePriceModule = _chunkCFI4WZ5Rjs.StripePriceModule; exports.StripePriceService = _chunkCFI4WZ5Rjs.StripePriceService; exports.StripeProduct = _chunkCFI4WZ5Rjs.StripeProduct; exports.StripeProductModule = _chunkCFI4WZ5Rjs.StripeProductModule; exports.StripeProductService = _chunkCFI4WZ5Rjs.StripeProductService; exports.StripePromotionCode = _chunkCFI4WZ5Rjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkCFI4WZ5Rjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkCFI4WZ5Rjs.StripePromotionCodeService; exports.StripeSubscription = _chunkCFI4WZ5Rjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkCFI4WZ5Rjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkCFI4WZ5Rjs.StripeSubscriptionService; exports.StripeUsage = _chunkCFI4WZ5Rjs.StripeUsage; exports.StripeUsageModule = _chunkCFI4WZ5Rjs.StripeUsageModule; exports.StripeUsageService = _chunkCFI4WZ5Rjs.StripeUsageService; exports.SubscriptionStatus = _chunkCFI4WZ5Rjs.SubscriptionStatus; exports.TableOptions = _chunkCFI4WZ5Rjs.TableOptions; exports.TotpAuthenticator = _chunkCFI4WZ5Rjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkCFI4WZ5Rjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkCFI4WZ5Rjs.TotpSetup; exports.TotpSetupModule = _chunkCFI4WZ5Rjs.TotpSetupModule; exports.TotpVerify = _chunkCFI4WZ5Rjs.TotpVerify; exports.TotpVerifyLogin = _chunkCFI4WZ5Rjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkCFI4WZ5Rjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkCFI4WZ5Rjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkCFI4WZ5Rjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkCFI4WZ5Rjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkCFI4WZ5Rjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkCFI4WZ5Rjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkCFI4WZ5Rjs.TwoFactorService; exports.TwoFactorStatus = _chunkCFI4WZ5Rjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkCFI4WZ5Rjs.TwoFactorStatusModule; exports.User = _chunkCFI4WZ5Rjs.User; exports.UserFields = _chunkCFI4WZ5Rjs.UserFields; exports.UserModule = _chunkCFI4WZ5Rjs.UserModule; exports.UserService = _chunkCFI4WZ5Rjs.UserService; exports.Waitlist = _chunkCFI4WZ5Rjs.Waitlist; exports.WaitlistModule = _chunkCFI4WZ5Rjs.WaitlistModule; exports.WaitlistService = _chunkCFI4WZ5Rjs.WaitlistService; exports.WaitlistStats = _chunkCFI4WZ5Rjs.WaitlistStats; exports.WaitlistStatsModule = _chunkCFI4WZ5Rjs.WaitlistStatsModule; exports.checkPermissions = _chunkCFI4WZ5Rjs.checkPermissions; exports.checkPermissionsFromServer = _chunkCFI4WZ5Rjs.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkCFI4WZ5Rjs.clearLastApiTotal; exports.cn = _chunkCFI4WZ5Rjs.cn; exports.composeRefs = _chunkCFI4WZ5Rjs.composeRefs; exports.configureAuth = _chunkCFI4WZ5Rjs.configureAuth; exports.configureI18n = _chunk7E3O52U5js.configureI18n; exports.configureJsonApi = _chunk7E3O52U5js.configureJsonApi; exports.configureLogin = _chunk7E3O52U5js.configureLogin; exports.configureReferral = _chunk7E3O52U5js.configureReferral; exports.configureRoles = _chunk7E3O52U5js.configureRoles; exports.configureWaitlist = _chunk7E3O52U5js.configureWaitlist; exports.createJsonApiInclusion = _chunkCFI4WZ5Rjs.createJsonApiInclusion; exports.dismissToast = _chunkCFI4WZ5Rjs.dismissToast; exports.entityObjectSchema = _chunkCFI4WZ5Rjs.entityObjectSchema; exports.exists = _chunkCFI4WZ5Rjs.exists; exports.formatDate = _chunkCFI4WZ5Rjs.formatDate; exports.formatLocalDate = _chunkCFI4WZ5Rjs.formatLocalDate; exports.getApiUrl = _chunk7E3O52U5js.getApiUrl; exports.getAppUrl = _chunk7E3O52U5js.getAppUrl; exports.getBootstrapper = _chunkJ5LROFGLjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkCFI4WZ5Rjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkCFI4WZ5Rjs.getGlobalErrorHandler; exports.getIcon = _chunkCFI4WZ5Rjs.getIcon; exports.getIconByModule = _chunkCFI4WZ5Rjs.getIconByModule; exports.getIconByModuleName = _chunkCFI4WZ5Rjs.getIconByModuleName; exports.getInitials = _chunkCFI4WZ5Rjs.getInitials; exports.getLastApiTotal = _chunkCFI4WZ5Rjs.getLastApiTotal; exports.getLucideIcon = _chunkCFI4WZ5Rjs.getLucideIcon; exports.getLucideIconByModule = _chunkCFI4WZ5Rjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkCFI4WZ5Rjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunk7E3O52U5js.getPublicApiUrl; exports.getReferralConfig = _chunk7E3O52U5js.getReferralConfig; exports.getRoleId = _chunk7E3O52U5js.getRoleId; exports.getStripePublishableKey = _chunk7E3O52U5js.getStripePublishableKey; exports.getTableComponents = _chunkCFI4WZ5Rjs.getTableComponents; exports.getTableOptions = _chunkCFI4WZ5Rjs.getTableOptions; exports.getTokenHandler = _chunkCFI4WZ5Rjs.getTokenHandler; exports.getTrackablePages = _chunk7E3O52U5js.getTrackablePages; exports.getValueFromPath = _chunkCFI4WZ5Rjs.getValueFromPath; exports.getWaitlistConfig = _chunk7E3O52U5js.getWaitlistConfig; exports.hasBootstrapper = _chunkJ5LROFGLjs.hasBootstrapper; exports.isReferralEnabled = _chunk7E3O52U5js.isReferralEnabled; exports.isRolesConfigured = _chunk7E3O52U5js.isRolesConfigured; exports.rehydrate = _chunkCFI4WZ5Rjs.rehydrate; exports.rehydrateList = _chunkCFI4WZ5Rjs.rehydrateList; exports.resetBootstrapStore = _chunkJ5LROFGLjs.resetBootstrapStore; exports.setBootstrapper = _chunkJ5LROFGLjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkCFI4WZ5Rjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkCFI4WZ5Rjs.setGlobalErrorHandler; exports.showCustomToast = _chunkCFI4WZ5Rjs.showCustomToast; exports.showError = _chunkCFI4WZ5Rjs.showError; exports.showToast = _chunkCFI4WZ5Rjs.showToast; exports.translateData = _chunkJ5LROFGLjs.translateData; exports.translateResponse = _chunkJ5LROFGLjs.translateResponse; exports.tryBootstrap = _chunkJ5LROFGLjs.tryBootstrap; exports.useComposedRefs = _chunkCFI4WZ5Rjs.useComposedRefs; exports.useIsMobile = _chunkCFI4WZ5Rjs.useIsMobile; exports.userObjectSchema = _chunkCFI4WZ5Rjs.userObjectSchema;
427
428
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uwYAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"}
1
+ {"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uwYAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"}
package/dist/index.mjs CHANGED
@@ -18,7 +18,8 @@ import {
18
18
  getWaitlistConfig,
19
19
  isReferralEnabled,
20
20
  isRolesConfigured
21
- } from "./chunk-CFECWLHH.mjs";
21
+ } from "./chunk-UOYIWJEJ.mjs";
22
+ import "./chunk-CQID6RCF.mjs";
22
23
  import {
23
24
  AVAILABLE_OAUTH_SCOPES,
24
25
  AbstractApiData,
@@ -199,7 +200,7 @@ import {
199
200
  useComposedRefs,
200
201
  useIsMobile,
201
202
  userObjectSchema
202
- } from "./chunk-N3NVIPSU.mjs";
203
+ } from "./chunk-MSNNAHDB.mjs";
203
204
  import "./chunk-AUXK7QSA.mjs";
204
205
  import "./chunk-C7C7VY4F.mjs";
205
206
  import {
@@ -1,105 +1,6 @@
1
- import { LucideIcon } from 'lucide-react';
2
- import { A as ApiRequestDataTypeInterface, F as FieldSelector } from './ApiRequestDataTypeInterface-CYEcRUrh.js';
3
1
  import { A as ApiDataInterface } from './ApiDataInterface-BcZeXy5X.js';
4
2
  import { F as FeatureInterface, M as ModuleInterface } from './feature.interface-BO25VLlx.js';
5
3
 
6
- /**
7
- * Permission actions
8
- */
9
- declare enum Action {
10
- Read = "read",
11
- Create = "create",
12
- Update = "update",
13
- Delete = "delete"
14
- }
15
- /**
16
- * Generic permission check type.
17
- * Can be a boolean or a function that checks permissions dynamically.
18
- * @template T - The data type being checked
19
- * @template U - The user type (defaults to PermissionUser)
20
- */
21
- type PermissionCheck<T, U = PermissionUser> = boolean | ((user?: U | string, data?: T) => boolean);
22
- /**
23
- * Page URL configuration for modules
24
- */
25
- type PageUrl = {
26
- pageUrl?: string;
27
- };
28
- /**
29
- * Module permission definition wrapper
30
- */
31
- type ModulePermissionDefinition<T> = {
32
- interface: T;
33
- };
34
- /**
35
- * Base module definition
36
- */
37
- type ModuleDefinition = {
38
- pageUrl?: string;
39
- name: string;
40
- model: any;
41
- feature?: string;
42
- moduleId?: string;
43
- };
44
- /**
45
- * Permission configuration for a module.
46
- * Can be a boolean (allow/deny all) or a string path for dynamic checks.
47
- */
48
- interface PermissionConfig {
49
- create: boolean | string;
50
- read: boolean | string;
51
- update: boolean | string;
52
- delete: boolean | string;
53
- }
54
- /**
55
- * Generic interface for a module that has permissions.
56
- * Apps should ensure their Module class implements this.
57
- */
58
- interface PermissionModule {
59
- id: string;
60
- permissions: PermissionConfig;
61
- }
62
- /**
63
- * Generic interface for a user that has modules with permissions.
64
- * Apps should ensure their User class implements this.
65
- */
66
- interface PermissionUser {
67
- id: string;
68
- modules: PermissionModule[];
69
- }
70
- /**
71
- * Module definition with permissions - extends ApiRequestDataTypeInterface
72
- */
73
- type ModuleWithPermissions = ApiRequestDataTypeInterface & {
74
- pageUrl?: string;
75
- feature?: string;
76
- moduleId?: string;
77
- icon?: LucideIcon;
78
- inclusions?: Record<string, {
79
- types?: string[];
80
- fields?: FieldSelector<any>[];
81
- include?: string[];
82
- }>;
83
- };
84
- /**
85
- * Factory type for creating module definitions
86
- */
87
- type ModuleFactory = (params: {
88
- pageUrl?: string;
89
- name: string;
90
- cache?: string | "days" | "default" | "hours" | "max" | "minutes" | "seconds" | "weeks";
91
- model: any;
92
- feature?: string;
93
- moduleId?: string;
94
- icon?: LucideIcon;
95
- identifier?: string[];
96
- inclusions?: Record<string, {
97
- types?: string[];
98
- fields?: FieldSelector<any>[];
99
- include?: string[];
100
- }>;
101
- }) => ModuleWithPermissions;
102
-
103
4
  type CompanyInput = {
104
5
  id: string;
105
6
  name?: string;
@@ -219,4 +120,4 @@ interface NotificationInterface extends ApiDataInterface {
219
120
  get actor(): UserInterface | undefined;
220
121
  }
221
122
 
222
- export { Action as A, type ContentInterface as C, type ModuleWithPermissions as M, type NotificationInterface as N, type PermissionCheck as P, type RoleInput as R, type UserInterface as U, type ContentInput as a, type PageUrl as b, type ModulePermissionDefinition as c, type ModuleDefinition as d, type PermissionConfig as e, type PermissionModule as f, type PermissionUser as g, type ModuleFactory as h, type CompanyInput as i, type CompanyInterface as j, type NotificationInput as k, type RoleInterface as l, type UserInput as m };
123
+ export type { ContentInterface as C, NotificationInterface as N, RoleInput as R, UserInterface as U, ContentInput as a, CompanyInput as b, CompanyInterface as c, NotificationInput as d, RoleInterface as e, UserInput as f };
@@ -1,105 +1,6 @@
1
- import { LucideIcon } from 'lucide-react';
2
- import { A as ApiRequestDataTypeInterface, F as FieldSelector } from './ApiRequestDataTypeInterface-CYEcRUrh.mjs';
3
1
  import { A as ApiDataInterface } from './ApiDataInterface-BcZeXy5X.mjs';
4
2
  import { F as FeatureInterface, M as ModuleInterface } from './feature.interface-CXb1-vNq.mjs';
5
3
 
6
- /**
7
- * Permission actions
8
- */
9
- declare enum Action {
10
- Read = "read",
11
- Create = "create",
12
- Update = "update",
13
- Delete = "delete"
14
- }
15
- /**
16
- * Generic permission check type.
17
- * Can be a boolean or a function that checks permissions dynamically.
18
- * @template T - The data type being checked
19
- * @template U - The user type (defaults to PermissionUser)
20
- */
21
- type PermissionCheck<T, U = PermissionUser> = boolean | ((user?: U | string, data?: T) => boolean);
22
- /**
23
- * Page URL configuration for modules
24
- */
25
- type PageUrl = {
26
- pageUrl?: string;
27
- };
28
- /**
29
- * Module permission definition wrapper
30
- */
31
- type ModulePermissionDefinition<T> = {
32
- interface: T;
33
- };
34
- /**
35
- * Base module definition
36
- */
37
- type ModuleDefinition = {
38
- pageUrl?: string;
39
- name: string;
40
- model: any;
41
- feature?: string;
42
- moduleId?: string;
43
- };
44
- /**
45
- * Permission configuration for a module.
46
- * Can be a boolean (allow/deny all) or a string path for dynamic checks.
47
- */
48
- interface PermissionConfig {
49
- create: boolean | string;
50
- read: boolean | string;
51
- update: boolean | string;
52
- delete: boolean | string;
53
- }
54
- /**
55
- * Generic interface for a module that has permissions.
56
- * Apps should ensure their Module class implements this.
57
- */
58
- interface PermissionModule {
59
- id: string;
60
- permissions: PermissionConfig;
61
- }
62
- /**
63
- * Generic interface for a user that has modules with permissions.
64
- * Apps should ensure their User class implements this.
65
- */
66
- interface PermissionUser {
67
- id: string;
68
- modules: PermissionModule[];
69
- }
70
- /**
71
- * Module definition with permissions - extends ApiRequestDataTypeInterface
72
- */
73
- type ModuleWithPermissions = ApiRequestDataTypeInterface & {
74
- pageUrl?: string;
75
- feature?: string;
76
- moduleId?: string;
77
- icon?: LucideIcon;
78
- inclusions?: Record<string, {
79
- types?: string[];
80
- fields?: FieldSelector<any>[];
81
- include?: string[];
82
- }>;
83
- };
84
- /**
85
- * Factory type for creating module definitions
86
- */
87
- type ModuleFactory = (params: {
88
- pageUrl?: string;
89
- name: string;
90
- cache?: string | "days" | "default" | "hours" | "max" | "minutes" | "seconds" | "weeks";
91
- model: any;
92
- feature?: string;
93
- moduleId?: string;
94
- icon?: LucideIcon;
95
- identifier?: string[];
96
- inclusions?: Record<string, {
97
- types?: string[];
98
- fields?: FieldSelector<any>[];
99
- include?: string[];
100
- }>;
101
- }) => ModuleWithPermissions;
102
-
103
4
  type CompanyInput = {
104
5
  id: string;
105
6
  name?: string;
@@ -219,4 +120,4 @@ interface NotificationInterface extends ApiDataInterface {
219
120
  get actor(): UserInterface | undefined;
220
121
  }
221
122
 
222
- export { Action as A, type ContentInterface as C, type ModuleWithPermissions as M, type NotificationInterface as N, type PermissionCheck as P, type RoleInput as R, type UserInterface as U, type ContentInput as a, type PageUrl as b, type ModulePermissionDefinition as c, type ModuleDefinition as d, type PermissionConfig as e, type PermissionModule as f, type PermissionUser as g, type ModuleFactory as h, type CompanyInput as i, type CompanyInterface as j, type NotificationInput as k, type RoleInterface as l, type UserInput as m };
123
+ export type { ContentInterface as C, NotificationInterface as N, RoleInput as R, UserInterface as U, ContentInput as a, CompanyInput as b, CompanyInterface as c, NotificationInput as d, RoleInterface as e, UserInput as f };
@@ -1,7 +1,7 @@
1
1
  import { F as FeatureInterface } from './feature.interface-CXb1-vNq.mjs';
2
- import { l as RoleInterface, U as UserInterface, m as UserInput, j as CompanyInterface, i as CompanyInput, C as ContentInterface, N as NotificationInterface } from './notification.interface-DLZGtV7Z.mjs';
2
+ import { e as RoleInterface, U as UserInterface, f as UserInput, c as CompanyInterface, b as CompanyInput, C as ContentInterface, N as NotificationInterface } from './notification.interface-DIxR23eS.mjs';
3
3
  import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiDataInterface-BcZeXy5X.mjs';
4
- import { A as AuthInput, b as AuthInterface } from './auth.interface-XYEREOD6.mjs';
4
+ import { A as AuthInput, b as AuthInterface } from './auth.interface-CXBF8Mhi.mjs';
5
5
  import { A as ApiRequestDataTypeInterface } from './ApiRequestDataTypeInterface-CYEcRUrh.mjs';
6
6
 
7
7
  declare enum HttpMethod {
@@ -1,7 +1,7 @@
1
1
  import { F as FeatureInterface } from './feature.interface-BO25VLlx.js';
2
- import { l as RoleInterface, U as UserInterface, m as UserInput, j as CompanyInterface, i as CompanyInput, C as ContentInterface, N as NotificationInterface } from './notification.interface-aLEJbA_g.js';
2
+ import { e as RoleInterface, U as UserInterface, f as UserInput, c as CompanyInterface, b as CompanyInput, C as ContentInterface, N as NotificationInterface } from './notification.interface-C1T1C2ee.js';
3
3
  import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiDataInterface-BcZeXy5X.js';
4
- import { A as AuthInput, b as AuthInterface } from './auth.interface-BBUgMZzs.js';
4
+ import { A as AuthInput, b as AuthInterface } from './auth.interface-8b601idJ.js';
5
5
  import { A as ApiRequestDataTypeInterface } from './ApiRequestDataTypeInterface-CYEcRUrh.js';
6
6
 
7
7
  declare enum HttpMethod {
@@ -1,12 +1,13 @@
1
1
  import { A as ApiData } from '../ApiData-DPKNfY-9.mjs';
2
- import { M as ModuleWithPermissions, A as Action } from '../notification.interface-DLZGtV7Z.mjs';
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-CVgLWaDc.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-0BTClOYO.mjs';
6
6
  import 'lucide-react';
7
7
  import '../ApiDataInterface-BcZeXy5X.mjs';
8
8
  import '../feature.interface-CXb1-vNq.mjs';
9
- import '../auth.interface-XYEREOD6.mjs';
9
+ import '../notification.interface-DIxR23eS.mjs';
10
+ import '../auth.interface-CXBF8Mhi.mjs';
10
11
 
11
12
  type CacheProfile = "seconds" | "minutes" | "hours" | "days" | "weeks" | "max" | "default";
12
13
  /**
@@ -1,12 +1,13 @@
1
1
  import { A as ApiData } from '../ApiData-DPKNfY-9.js';
2
- import { M as ModuleWithPermissions, A as Action } from '../notification.interface-aLEJbA_g.js';
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-SLlX0Zbz.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-CT27Fm1s.js';
6
6
  import 'lucide-react';
7
7
  import '../ApiDataInterface-BcZeXy5X.js';
8
8
  import '../feature.interface-BO25VLlx.js';
9
- import '../auth.interface-BBUgMZzs.js';
9
+ import '../notification.interface-C1T1C2ee.js';
10
+ import '../auth.interface-8b601idJ.js';
10
11
 
11
12
  type CacheProfile = "seconds" | "minutes" | "hours" | "days" | "weeks" | "max" | "default";
12
13
  /**
@@ -15,7 +15,7 @@ var _chunkIOLU4ASDjs = require('../chunk-IOLU4ASD.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkRXXZGPC3js = require('../chunk-RXXZGPC3.js');
18
+ var _chunkCFI4WZ5Rjs = require('../chunk-CFI4WZ5R.js');
19
19
  require('../chunk-LXKSUWAV.js');
20
20
  require('../chunk-IBS6NI7D.js');
21
21
 
@@ -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 _chunkRXXZGPC3js.checkPermissionsFromServer.call(void 0, {
89
+ return _chunkCFI4WZ5Rjs.checkPermissionsFromServer.call(void 0, {
90
90
  module: params.module,
91
91
  action: params.action,
92
92
  data: params.data,
@@ -296,5 +296,5 @@ _chunk7QVYU63Ejs.__name.call(void 0, ServerJsonApiDelete, "ServerJsonApiDelete")
296
296
 
297
297
 
298
298
 
299
- exports.ServerAuthService = _chunkRXXZGPC3js.AuthService; exports.ServerCompanyService = _chunkRXXZGPC3js.CompanyService; exports.ServerContentService = _chunkRXXZGPC3js.ContentService; exports.ServerFeatureService = _chunkRXXZGPC3js.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkRXXZGPC3js.NotificationService; exports.ServerPushService = _chunkRXXZGPC3js.PushService; exports.ServerRoleService = _chunkRXXZGPC3js.RoleService; exports.ServerS3Service = _chunkRXXZGPC3js.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkRXXZGPC3js.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 = _chunkCFI4WZ5Rjs.AuthService; exports.ServerCompanyService = _chunkCFI4WZ5Rjs.CompanyService; exports.ServerContentService = _chunkCFI4WZ5Rjs.ContentService; exports.ServerFeatureService = _chunkCFI4WZ5Rjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkCFI4WZ5Rjs.NotificationService; exports.ServerPushService = _chunkCFI4WZ5Rjs.PushService; exports.ServerRoleService = _chunkCFI4WZ5Rjs.RoleService; exports.ServerS3Service = _chunkCFI4WZ5Rjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkCFI4WZ5Rjs.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,7 +15,7 @@ import {
15
15
  S3Service,
16
16
  UserService,
17
17
  checkPermissionsFromServer
18
- } from "../chunk-N3NVIPSU.mjs";
18
+ } from "../chunk-MSNNAHDB.mjs";
19
19
  import "../chunk-AUXK7QSA.mjs";
20
20
  import "../chunk-C7C7VY4F.mjs";
21
21
  import {
@@ -0,0 +1,101 @@
1
+ import { LucideIcon } from 'lucide-react';
2
+ import { A as ApiRequestDataTypeInterface, F as FieldSelector } from './ApiRequestDataTypeInterface-CYEcRUrh.mjs';
3
+
4
+ /**
5
+ * Permission actions
6
+ */
7
+ declare enum Action {
8
+ Read = "read",
9
+ Create = "create",
10
+ Update = "update",
11
+ Delete = "delete"
12
+ }
13
+ /**
14
+ * Generic permission check type.
15
+ * Can be a boolean or a function that checks permissions dynamically.
16
+ * @template T - The data type being checked
17
+ * @template U - The user type (defaults to PermissionUser)
18
+ */
19
+ type PermissionCheck<T, U = PermissionUser> = boolean | ((user?: U | string, data?: T) => boolean);
20
+ /**
21
+ * Page URL configuration for modules
22
+ */
23
+ type PageUrl = {
24
+ pageUrl?: string;
25
+ };
26
+ /**
27
+ * Module permission definition wrapper
28
+ */
29
+ type ModulePermissionDefinition<T> = {
30
+ interface: T;
31
+ };
32
+ /**
33
+ * Base module definition
34
+ */
35
+ type ModuleDefinition = {
36
+ pageUrl?: string;
37
+ name: string;
38
+ model: any;
39
+ feature?: string;
40
+ moduleId?: string;
41
+ };
42
+ /**
43
+ * Permission configuration for a module.
44
+ * Can be a boolean (allow/deny all) or a string path for dynamic checks.
45
+ */
46
+ interface PermissionConfig {
47
+ create: boolean | string;
48
+ read: boolean | string;
49
+ update: boolean | string;
50
+ delete: boolean | string;
51
+ }
52
+ /**
53
+ * Generic interface for a module that has permissions.
54
+ * Apps should ensure their Module class implements this.
55
+ */
56
+ interface PermissionModule {
57
+ id: string;
58
+ permissions: PermissionConfig;
59
+ }
60
+ /**
61
+ * Generic interface for a user that has modules with permissions.
62
+ * Apps should ensure their User class implements this.
63
+ */
64
+ interface PermissionUser {
65
+ id: string;
66
+ modules: PermissionModule[];
67
+ }
68
+ /**
69
+ * Module definition with permissions - extends ApiRequestDataTypeInterface
70
+ */
71
+ type ModuleWithPermissions = ApiRequestDataTypeInterface & {
72
+ pageUrl?: string;
73
+ feature?: string;
74
+ moduleId?: string;
75
+ icon?: LucideIcon;
76
+ inclusions?: Record<string, {
77
+ types?: string[];
78
+ fields?: FieldSelector<any>[];
79
+ include?: string[];
80
+ }>;
81
+ };
82
+ /**
83
+ * Factory type for creating module definitions
84
+ */
85
+ type ModuleFactory = (params: {
86
+ pageUrl?: string;
87
+ name: string;
88
+ cache?: string | "days" | "default" | "hours" | "max" | "minutes" | "seconds" | "weeks";
89
+ model: any;
90
+ feature?: string;
91
+ moduleId?: string;
92
+ icon?: LucideIcon;
93
+ identifier?: string[];
94
+ inclusions?: Record<string, {
95
+ types?: string[];
96
+ fields?: FieldSelector<any>[];
97
+ include?: string[];
98
+ }>;
99
+ }) => ModuleWithPermissions;
100
+
101
+ export { Action as A, type ModuleWithPermissions as M, type PageUrl as P, type PermissionCheck as a, type ModulePermissionDefinition as b, type ModuleDefinition as c, type PermissionConfig as d, type PermissionModule as e, type PermissionUser as f, type ModuleFactory as g };