@carlonicora/nextjs-jsonapi 1.6.0 → 1.7.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 (96) hide show
  1. package/dist/{ApiResponseInterface-CfcC7pPC.d.mts → ApiResponseInterface-DMwITHYP.d.mts} +1 -1
  2. package/dist/{ApiResponseInterface-DTBJaV5R.d.ts → ApiResponseInterface-DWgIAXI-.d.ts} +1 -1
  3. package/dist/{BlockNoteEditor-7FM7B737.js → BlockNoteEditor-IJASTIUZ.js} +14 -18
  4. package/dist/BlockNoteEditor-IJASTIUZ.js.map +1 -0
  5. package/dist/{BlockNoteEditor-RVL76ZAS.mjs → BlockNoteEditor-M6TUP3NT.mjs} +5 -9
  6. package/dist/{BlockNoteEditor-RVL76ZAS.mjs.map → BlockNoteEditor-M6TUP3NT.mjs.map} +1 -1
  7. package/dist/JsonApiRequest-2OM5NDAW.js +24 -0
  8. package/dist/JsonApiRequest-2OM5NDAW.js.map +1 -0
  9. package/dist/{JsonApiRequest-VCCRO732.mjs → JsonApiRequest-SYZ6FGCA.mjs} +2 -3
  10. package/dist/{chunk-SVX7E6RR.js → chunk-4L7OWJ2P.js} +360 -364
  11. package/dist/chunk-4L7OWJ2P.js.map +1 -0
  12. package/dist/{chunk-KFL5ZFM4.mjs → chunk-4U5CJA44.mjs} +732 -20
  13. package/dist/chunk-4U5CJA44.mjs.map +1 -0
  14. package/dist/{chunk-ZUEEIQHW.js → chunk-CKS6SVUK.js} +158 -22
  15. package/dist/chunk-CKS6SVUK.js.map +1 -0
  16. package/dist/{chunk-F4Y3GZG4.mjs → chunk-SAL7XW2G.mjs} +141 -5
  17. package/dist/chunk-SAL7XW2G.mjs.map +1 -0
  18. package/dist/{chunk-ZQTFZKLJ.mjs → chunk-TW4QRJ7D.mjs} +10 -14
  19. package/dist/{chunk-ZQTFZKLJ.mjs.map → chunk-TW4QRJ7D.mjs.map} +1 -1
  20. package/dist/{chunk-2Z56AS2S.js → chunk-U4NADAHN.js} +744 -32
  21. package/dist/chunk-U4NADAHN.js.map +1 -0
  22. package/dist/client/index.d.mts +5 -5
  23. package/dist/client/index.d.ts +5 -5
  24. package/dist/client/index.js +4 -7
  25. package/dist/client/index.js.map +1 -1
  26. package/dist/client/index.mjs +3 -6
  27. package/dist/components/index.d.mts +2 -2
  28. package/dist/components/index.d.ts +2 -2
  29. package/dist/components/index.js +4 -7
  30. package/dist/components/index.js.map +1 -1
  31. package/dist/components/index.mjs +3 -6
  32. package/dist/{config-B43zxEvn.d.mts → config-BdCV25CE.d.mts} +1 -1
  33. package/dist/{config-D2OUrI_G.d.ts → config-C9dt1QiR.d.ts} +1 -1
  34. package/dist/{content.interface-Bs8a7uW6.d.mts → content.interface-B6qP_ABq.d.mts} +1 -1
  35. package/dist/{content.interface-UtsJ-mzs.d.ts → content.interface-DHAFLasV.d.ts} +1 -1
  36. package/dist/contexts/index.d.mts +2 -2
  37. package/dist/contexts/index.d.ts +2 -2
  38. package/dist/contexts/index.js +4 -7
  39. package/dist/contexts/index.js.map +1 -1
  40. package/dist/contexts/index.mjs +3 -6
  41. package/dist/core/index.d.mts +43 -7
  42. package/dist/core/index.d.ts +43 -7
  43. package/dist/core/index.js +29 -3
  44. package/dist/core/index.js.map +1 -1
  45. package/dist/core/index.mjs +28 -2
  46. package/dist/index.d.mts +7 -44
  47. package/dist/index.d.ts +7 -44
  48. package/dist/index.js +20 -4
  49. package/dist/index.js.map +1 -1
  50. package/dist/index.mjs +24 -8
  51. package/dist/{notification.interface-BdcwkuQE.d.mts → notification.interface-agcMYCkg.d.mts} +1 -1
  52. package/dist/{notification.interface-BdcwkuQE.d.ts → notification.interface-agcMYCkg.d.ts} +1 -1
  53. package/dist/s3.service-DYnmymEd.d.mts +350 -0
  54. package/dist/s3.service-DyXjKTqr.d.ts +350 -0
  55. package/dist/server/index.d.mts +5 -235
  56. package/dist/server/index.d.ts +5 -235
  57. package/dist/server/index.js +12 -16
  58. package/dist/server/index.js.map +1 -1
  59. package/dist/server/index.mjs +3 -7
  60. package/dist/server/index.mjs.map +1 -1
  61. package/dist/{useSocket-BWJUXuOl.d.mts → useSocket-91s8M4Xd.d.mts} +1 -1
  62. package/dist/{useSocket-8vwK_R_c.d.ts → useSocket-DSR7vaXj.d.ts} +1 -1
  63. package/package.json +1 -1
  64. package/src/core/index.ts +3 -0
  65. package/src/features/auth/data/index.ts +1 -0
  66. package/src/features/company/data/index.ts +1 -0
  67. package/src/features/content/data/index.ts +1 -0
  68. package/src/features/feature/data/index.ts +1 -0
  69. package/src/features/notification/data/index.ts +1 -0
  70. package/src/features/push/data/index.ts +1 -0
  71. package/src/features/role/data/index.ts +1 -0
  72. package/src/features/s3/data/index.ts +1 -0
  73. package/src/features/user/data/index.ts +1 -0
  74. package/dist/BlockNoteEditor-7FM7B737.js.map +0 -1
  75. package/dist/JsonApiRequest-KOKGVPBI.js +0 -25
  76. package/dist/JsonApiRequest-KOKGVPBI.js.map +0 -1
  77. package/dist/chunk-2Z56AS2S.js.map +0 -1
  78. package/dist/chunk-37NJZ2VD.mjs +0 -637
  79. package/dist/chunk-37NJZ2VD.mjs.map +0 -1
  80. package/dist/chunk-AGAJMJ4T.js +0 -147
  81. package/dist/chunk-AGAJMJ4T.js.map +0 -1
  82. package/dist/chunk-CSM6AIAP.js +0 -98
  83. package/dist/chunk-CSM6AIAP.js.map +0 -1
  84. package/dist/chunk-F4Y3GZG4.mjs.map +0 -1
  85. package/dist/chunk-K4W5QXL5.mjs +0 -98
  86. package/dist/chunk-K4W5QXL5.mjs.map +0 -1
  87. package/dist/chunk-KFL5ZFM4.mjs.map +0 -1
  88. package/dist/chunk-LOSPCUCF.js +0 -637
  89. package/dist/chunk-LOSPCUCF.js.map +0 -1
  90. package/dist/chunk-RBIVEH2K.mjs +0 -147
  91. package/dist/chunk-RBIVEH2K.mjs.map +0 -1
  92. package/dist/chunk-SVX7E6RR.js.map +0 -1
  93. package/dist/chunk-ZUEEIQHW.js.map +0 -1
  94. package/dist/s3.interface-D7ttGatc.d.ts +0 -119
  95. package/dist/s3.interface-DlaMDRTn.d.mts +0 -119
  96. /package/dist/{JsonApiRequest-VCCRO732.mjs.map → JsonApiRequest-SYZ6FGCA.mjs.map} +0 -0
@@ -1,9 +1,11 @@
1
1
  import {
2
2
  AbstractApiData,
3
3
  AbstractService,
4
+ Action,
4
5
  Auth,
5
6
  AuthComponent,
6
7
  AuthModule,
8
+ AuthService,
7
9
  AuthorModule,
8
10
  BlockNoteDiffUtil,
9
11
  BlockNoteWordDiffRendererUtil,
@@ -12,12 +14,15 @@ import {
12
14
  Company,
13
15
  CompanyFields,
14
16
  CompanyModule,
17
+ CompanyService,
15
18
  Content,
16
19
  ContentFields,
17
20
  ContentModule,
21
+ ContentService,
18
22
  EndpointCreator,
19
23
  Feature,
20
24
  FeatureModule,
25
+ FeatureService,
21
26
  HttpMethod,
22
27
  Module,
23
28
  ModuleModule,
@@ -27,18 +32,25 @@ import {
27
32
  Notification,
28
33
  NotificationFields,
29
34
  NotificationModule,
35
+ NotificationService,
30
36
  Push,
31
37
  PushModule,
38
+ PushService,
32
39
  RehydrationFactory,
33
40
  Role,
34
41
  RoleFields,
35
42
  RoleModule,
43
+ RoleService,
36
44
  S3,
37
45
  S3Module,
46
+ S3Service,
38
47
  TableOptions,
39
48
  User,
40
49
  UserFields,
41
50
  UserModule,
51
+ UserService,
52
+ checkPermissions,
53
+ checkPermissionsFromServer,
42
54
  cn,
43
55
  composeRefs,
44
56
  createJsonApiInclusion,
@@ -55,6 +67,7 @@ import {
55
67
  getLucideIconByModuleName,
56
68
  getTableComponents,
57
69
  getTableOptions,
70
+ getValueFromPath,
58
71
  rehydrate,
59
72
  rehydrateList,
60
73
  setClientGlobalErrorHandler,
@@ -62,22 +75,24 @@ import {
62
75
  useComposedRefs,
63
76
  useIsMobile,
64
77
  userObjectSchema
65
- } from "../chunk-KFL5ZFM4.mjs";
78
+ } from "../chunk-4U5CJA44.mjs";
66
79
  import "../chunk-C7C7VY4F.mjs";
67
80
  import {
68
81
  DataClassRegistry,
69
82
  JsonApiDataFactory,
70
83
  translateData,
71
84
  translateResponse
72
- } from "../chunk-RBIVEH2K.mjs";
85
+ } from "../chunk-SAL7XW2G.mjs";
73
86
  import "../chunk-AUXK7QSA.mjs";
74
87
  import "../chunk-PAWJFY3S.mjs";
75
88
  export {
76
89
  AbstractApiData,
77
90
  AbstractService,
91
+ Action,
78
92
  Auth,
79
93
  AuthComponent,
80
94
  AuthModule,
95
+ AuthService,
81
96
  AuthorModule,
82
97
  BlockNoteDiffUtil,
83
98
  BlockNoteWordDiffRendererUtil,
@@ -86,14 +101,17 @@ export {
86
101
  Company,
87
102
  CompanyFields,
88
103
  CompanyModule,
104
+ CompanyService,
89
105
  Content,
90
106
  ContentFields,
91
107
  ContentModule,
108
+ ContentService,
92
109
  DataClassRegistry as DataClass,
93
110
  DataClassRegistry,
94
111
  EndpointCreator,
95
112
  Feature,
96
113
  FeatureModule,
114
+ FeatureService,
97
115
  HttpMethod,
98
116
  JsonApiDataFactory,
99
117
  Module,
@@ -104,18 +122,25 @@ export {
104
122
  Notification,
105
123
  NotificationFields,
106
124
  NotificationModule,
125
+ NotificationService,
107
126
  Push,
108
127
  PushModule,
128
+ PushService,
109
129
  RehydrationFactory,
110
130
  Role,
111
131
  RoleFields,
112
132
  RoleModule,
133
+ RoleService,
113
134
  S3,
114
135
  S3Module,
136
+ S3Service,
115
137
  TableOptions,
116
138
  User,
117
139
  UserFields,
118
140
  UserModule,
141
+ UserService,
142
+ checkPermissions,
143
+ checkPermissionsFromServer,
119
144
  cn,
120
145
  composeRefs,
121
146
  createJsonApiInclusion,
@@ -132,6 +157,7 @@ export {
132
157
  getLucideIconByModuleName,
133
158
  getTableComponents,
134
159
  getTableOptions,
160
+ getValueFromPath,
135
161
  rehydrate,
136
162
  rehydrateList,
137
163
  setClientGlobalErrorHandler,
package/dist/index.d.mts CHANGED
@@ -1,56 +1,19 @@
1
- export { A as ApiData, a as ApiResponseInterface } from './ApiResponseInterface-CfcC7pPC.mjs';
2
- import { P as PermissionUser, M as ModuleWithPermissions, b as Action, c as PermissionModule } from './notification.interface-BdcwkuQE.mjs';
3
- export { A as ApiDataInterface, a as ApiRequestDataTypeInterface, C as CompanyInput, e as CompanyInterface, f as FeatureInterface, F as FieldSelector, G as GetterKeys, J as JsonApiHydratedDataInterface, n as ModuleDefinition, p as ModuleFactory, g as ModuleInterface, m as ModulePermissionDefinition, h as NotificationInput, N as NotificationInterface, l as PageUrl, k as PermissionCheck, o as PermissionConfig, R as RoleInput, i as RoleInterface, j as UserInput, U as UserInterface, d as createJsonApiInclusion } from './notification.interface-BdcwkuQE.mjs';
4
- export { AbstractApiData, AppModuleDefinitions, Auth, AuthModule, AuthorModule, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, Push, PushInput, PushInterface, PushModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, TableOptions, User, UserModule, UserObject, WordDiff, cn, composeRefs, entityObjectSchema, exists, formatDate, getClientGlobalErrorHandler, getIcon, getIconByModule, getIconByModuleName, getLucideIcon, getLucideIconByModule, getLucideIconByModuleName, getTableComponents, getTableOptions, rehydrate, rehydrateList, setClientGlobalErrorHandler, translateData, translateResponse, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.mjs';
5
- export { A as AbstractService, a as AuthInput, c as AuthInterface, b as AuthQuery, H as HttpMethod, N as NextRef, P as PreviousRef, d as S3Input, e as S3Interface, S as SelfRef, g as getGlobalErrorHandler, s as setGlobalErrorHandler } from './s3.interface-DlaMDRTn.mjs';
1
+ export { A as ApiData, a as ApiResponseInterface } from './ApiResponseInterface-DMwITHYP.mjs';
2
+ export { b as Action, A as ApiDataInterface, a as ApiRequestDataTypeInterface, C as CompanyInput, k as CompanyInterface, l as FeatureInterface, F as FieldSelector, G as GetterKeys, J as JsonApiHydratedDataInterface, f as ModuleDefinition, j as ModuleFactory, m as ModuleInterface, e as ModulePermissionDefinition, M as ModuleWithPermissions, n as NotificationInput, N as NotificationInterface, d as PageUrl, P as PermissionCheck, g as PermissionConfig, h as PermissionModule, i as PermissionUser, R as RoleInput, o as RoleInterface, p as UserInput, U as UserInterface, c as createJsonApiInclusion } from './notification.interface-agcMYCkg.mjs';
3
+ export { AbstractApiData, AppModuleDefinitions, Auth, AuthModule, AuthorModule, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, Push, PushInput, PushInterface, PushModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, TableOptions, User, UserModule, UserObject, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, entityObjectSchema, exists, formatDate, getClientGlobalErrorHandler, getIcon, getIconByModule, getIconByModuleName, getLucideIcon, getLucideIconByModule, getLucideIconByModuleName, getTableComponents, getTableOptions, getValueFromPath, rehydrate, rehydrateList, setClientGlobalErrorHandler, translateData, translateResponse, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.mjs';
4
+ export { A as AbstractService, a as AuthInput, c as AuthInterface, b as AuthQuery, d as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, N as NextRef, f as NotificationService, P as PreviousRef, h as PushService, R as RoleService, i as S3Input, j as S3Interface, k as S3Service, S as SelfRef, U as UserService, g as getGlobalErrorHandler, s as setGlobalErrorHandler } from './s3.service-DYnmymEd.mjs';
6
5
  export { B as BreadcrumbItemData } from './breadcrumb.item.data.interface-CgB4_1EE.mjs';
7
6
  export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-Ck5lkQ5d.mjs';
8
7
  export { ClassValue } from 'clsx';
9
8
  export { A as AuthComponent } from './AuthComponent-hxOPs9o8.mjs';
10
- export { C as ContentInput, a as ContentInterface } from './content.interface-Bs8a7uW6.mjs';
11
- export { I as I18nConfig, d as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, b as getTrackablePages } from './config-B43zxEvn.mjs';
9
+ export { C as ContentInput, a as ContentInterface } from './content.interface-B6qP_ABq.mjs';
10
+ export { I as I18nConfig, d as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, b as getTrackablePages } from './config-BdCV25CE.mjs';
12
11
  import 'lucide-react';
13
12
  import 'react';
14
13
  import 'zod';
15
14
  import '@blocknote/core';
16
15
  import 'd3';
17
16
 
18
- /**
19
- * Check if a user has permission to perform an action on a module.
20
- *
21
- * @param module - The module to check permissions for
22
- * @param action - The action to check (read, create, update, delete)
23
- * @param user - The user with their modules and permissions
24
- * @param data - Optional data object for path-based permission checks
25
- */
26
- declare function checkPermissions<T extends PermissionUser>(params: {
27
- module: ModuleWithPermissions;
28
- action: Action;
29
- user: T;
30
- data?: any;
31
- }): boolean;
32
- /**
33
- * Check permissions from server context where user object is not fully available.
34
- *
35
- * @param module - The module to check permissions for
36
- * @param action - The action to check
37
- * @param userId - The user's ID
38
- * @param selectedModule - The selected module with its permissions
39
- * @param data - Optional data object for path-based permission checks
40
- */
41
- declare function checkPermissionsFromServer(params: {
42
- module: ModuleWithPermissions;
43
- action: Action;
44
- userId: string;
45
- selectedModule?: PermissionModule;
46
- data?: any;
47
- }): boolean;
48
- /**
49
- * Traverse an object path and check if the value matches the user ID.
50
- * Handles nested objects, arrays, and various data structures.
51
- */
52
- declare function getValueFromPath(obj: any, path: string, userId: string): any;
53
-
54
17
  declare function configureDiscord(params: {
55
18
  useDiscord: boolean;
56
19
  useInternalAuth: boolean;
@@ -136,4 +99,4 @@ declare function configureAuth(handler: TokenHandler): void;
136
99
  */
137
100
  declare function getTokenHandler(): TokenHandler | null;
138
101
 
139
- export { Action, ModuleWithPermissions, PermissionModule, PermissionUser, type RoleIdConfig, type TokenHandler, type TokenParams, checkPermissions, checkPermissionsFromServer, configureAuth, configureDiscord, configureRoles, getRoleId, getTokenHandler, getValueFromPath, isRolesConfigured };
102
+ export { type RoleIdConfig, type TokenHandler, type TokenParams, configureAuth, configureDiscord, configureRoles, getRoleId, getTokenHandler, isRolesConfigured };
package/dist/index.d.ts CHANGED
@@ -1,56 +1,19 @@
1
- export { A as ApiData, a as ApiResponseInterface } from './ApiResponseInterface-DTBJaV5R.js';
2
- import { P as PermissionUser, M as ModuleWithPermissions, b as Action, c as PermissionModule } from './notification.interface-BdcwkuQE.js';
3
- export { A as ApiDataInterface, a as ApiRequestDataTypeInterface, C as CompanyInput, e as CompanyInterface, f as FeatureInterface, F as FieldSelector, G as GetterKeys, J as JsonApiHydratedDataInterface, n as ModuleDefinition, p as ModuleFactory, g as ModuleInterface, m as ModulePermissionDefinition, h as NotificationInput, N as NotificationInterface, l as PageUrl, k as PermissionCheck, o as PermissionConfig, R as RoleInput, i as RoleInterface, j as UserInput, U as UserInterface, d as createJsonApiInclusion } from './notification.interface-BdcwkuQE.js';
4
- export { AbstractApiData, AppModuleDefinitions, Auth, AuthModule, AuthorModule, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, Push, PushInput, PushInterface, PushModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, TableOptions, User, UserModule, UserObject, WordDiff, cn, composeRefs, entityObjectSchema, exists, formatDate, getClientGlobalErrorHandler, getIcon, getIconByModule, getIconByModuleName, getLucideIcon, getLucideIconByModule, getLucideIconByModuleName, getTableComponents, getTableOptions, rehydrate, rehydrateList, setClientGlobalErrorHandler, translateData, translateResponse, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.js';
5
- export { A as AbstractService, a as AuthInput, c as AuthInterface, b as AuthQuery, H as HttpMethod, N as NextRef, P as PreviousRef, d as S3Input, e as S3Interface, S as SelfRef, g as getGlobalErrorHandler, s as setGlobalErrorHandler } from './s3.interface-D7ttGatc.js';
1
+ export { A as ApiData, a as ApiResponseInterface } from './ApiResponseInterface-DWgIAXI-.js';
2
+ export { b as Action, A as ApiDataInterface, a as ApiRequestDataTypeInterface, C as CompanyInput, k as CompanyInterface, l as FeatureInterface, F as FieldSelector, G as GetterKeys, J as JsonApiHydratedDataInterface, f as ModuleDefinition, j as ModuleFactory, m as ModuleInterface, e as ModulePermissionDefinition, M as ModuleWithPermissions, n as NotificationInput, N as NotificationInterface, d as PageUrl, P as PermissionCheck, g as PermissionConfig, h as PermissionModule, i as PermissionUser, R as RoleInput, o as RoleInterface, p as UserInput, U as UserInterface, c as createJsonApiInclusion } from './notification.interface-agcMYCkg.js';
3
+ export { AbstractApiData, AppModuleDefinitions, Auth, AuthModule, AuthorModule, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, Push, PushInput, PushInterface, PushModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, TableOptions, User, UserModule, UserObject, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, entityObjectSchema, exists, formatDate, getClientGlobalErrorHandler, getIcon, getIconByModule, getIconByModuleName, getLucideIcon, getLucideIconByModule, getLucideIconByModuleName, getTableComponents, getTableOptions, getValueFromPath, rehydrate, rehydrateList, setClientGlobalErrorHandler, translateData, translateResponse, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.js';
4
+ export { A as AbstractService, a as AuthInput, c as AuthInterface, b as AuthQuery, d as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, N as NextRef, f as NotificationService, P as PreviousRef, h as PushService, R as RoleService, i as S3Input, j as S3Interface, k as S3Service, S as SelfRef, U as UserService, g as getGlobalErrorHandler, s as setGlobalErrorHandler } from './s3.service-DyXjKTqr.js';
6
5
  export { B as BreadcrumbItemData } from './breadcrumb.item.data.interface-CgB4_1EE.js';
7
6
  export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-Ck5lkQ5d.js';
8
7
  export { ClassValue } from 'clsx';
9
8
  export { A as AuthComponent } from './AuthComponent-hxOPs9o8.js';
10
- export { C as ContentInput, a as ContentInterface } from './content.interface-UtsJ-mzs.js';
11
- export { I as I18nConfig, d as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, b as getTrackablePages } from './config-D2OUrI_G.js';
9
+ export { C as ContentInput, a as ContentInterface } from './content.interface-DHAFLasV.js';
10
+ export { I as I18nConfig, d as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, b as getTrackablePages } from './config-C9dt1QiR.js';
12
11
  import 'lucide-react';
13
12
  import 'react';
14
13
  import 'zod';
15
14
  import '@blocknote/core';
16
15
  import 'd3';
17
16
 
18
- /**
19
- * Check if a user has permission to perform an action on a module.
20
- *
21
- * @param module - The module to check permissions for
22
- * @param action - The action to check (read, create, update, delete)
23
- * @param user - The user with their modules and permissions
24
- * @param data - Optional data object for path-based permission checks
25
- */
26
- declare function checkPermissions<T extends PermissionUser>(params: {
27
- module: ModuleWithPermissions;
28
- action: Action;
29
- user: T;
30
- data?: any;
31
- }): boolean;
32
- /**
33
- * Check permissions from server context where user object is not fully available.
34
- *
35
- * @param module - The module to check permissions for
36
- * @param action - The action to check
37
- * @param userId - The user's ID
38
- * @param selectedModule - The selected module with its permissions
39
- * @param data - Optional data object for path-based permission checks
40
- */
41
- declare function checkPermissionsFromServer(params: {
42
- module: ModuleWithPermissions;
43
- action: Action;
44
- userId: string;
45
- selectedModule?: PermissionModule;
46
- data?: any;
47
- }): boolean;
48
- /**
49
- * Traverse an object path and check if the value matches the user ID.
50
- * Handles nested objects, arrays, and various data structures.
51
- */
52
- declare function getValueFromPath(obj: any, path: string, userId: string): any;
53
-
54
17
  declare function configureDiscord(params: {
55
18
  useDiscord: boolean;
56
19
  useInternalAuth: boolean;
@@ -136,4 +99,4 @@ declare function configureAuth(handler: TokenHandler): void;
136
99
  */
137
100
  declare function getTokenHandler(): TokenHandler | null;
138
101
 
139
- export { Action, ModuleWithPermissions, PermissionModule, PermissionUser, type RoleIdConfig, type TokenHandler, type TokenParams, checkPermissions, checkPermissionsFromServer, configureAuth, configureDiscord, configureRoles, getRoleId, getTokenHandler, getValueFromPath, isRolesConfigured };
102
+ export { type RoleIdConfig, type TokenHandler, type TokenParams, configureAuth, configureDiscord, configureRoles, getRoleId, getTokenHandler, isRolesConfigured };
package/dist/index.js CHANGED
@@ -14,7 +14,6 @@ var _chunkAGWQ75PQjs = require('./chunk-AGWQ75PQ.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkCSM6AIAPjs = require('./chunk-CSM6AIAP.js');
18
17
 
19
18
 
20
19
 
@@ -81,14 +80,22 @@ var _chunkCSM6AIAPjs = require('./chunk-CSM6AIAP.js');
81
80
 
82
81
 
83
82
 
84
- var _chunk2Z56AS2Sjs = require('./chunk-2Z56AS2S.js');
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+ var _chunkU4NADAHNjs = require('./chunk-U4NADAHN.js');
85
92
  require('./chunk-IBS6NI7D.js');
86
93
 
87
94
 
88
95
 
89
96
 
90
97
 
91
- var _chunkAGAJMJ4Tjs = require('./chunk-AGAJMJ4T.js');
98
+ var _chunkCKS6SVUKjs = require('./chunk-CKS6SVUK.js');
92
99
  require('./chunk-LXKSUWAV.js');
93
100
  require('./chunk-7QVYU63E.js');
94
101
 
@@ -175,5 +182,14 @@ require('./chunk-7QVYU63E.js');
175
182
 
176
183
 
177
184
 
178
- exports.AbstractApiData = _chunk2Z56AS2Sjs.AbstractApiData; exports.AbstractService = _chunk2Z56AS2Sjs.AbstractService; exports.Action = _chunkCSM6AIAPjs.Action; exports.Auth = _chunk2Z56AS2Sjs.Auth; exports.AuthComponent = _chunk2Z56AS2Sjs.AuthComponent; exports.AuthModule = _chunk2Z56AS2Sjs.AuthModule; exports.AuthorModule = _chunk2Z56AS2Sjs.AuthorModule; exports.BlockNoteDiffUtil = _chunk2Z56AS2Sjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunk2Z56AS2Sjs.BlockNoteWordDiffRendererUtil; exports.ClientAbstractService = _chunk2Z56AS2Sjs.ClientAbstractService; exports.ClientHttpMethod = _chunk2Z56AS2Sjs.ClientHttpMethod; exports.Company = _chunk2Z56AS2Sjs.Company; exports.CompanyFields = _chunk2Z56AS2Sjs.CompanyFields; exports.CompanyModule = _chunk2Z56AS2Sjs.CompanyModule; exports.Content = _chunk2Z56AS2Sjs.Content; exports.ContentFields = _chunk2Z56AS2Sjs.ContentFields; exports.ContentModule = _chunk2Z56AS2Sjs.ContentModule; exports.DataClass = _chunkAGAJMJ4Tjs.DataClassRegistry; exports.DataClassRegistry = _chunkAGAJMJ4Tjs.DataClassRegistry; exports.EndpointCreator = _chunk2Z56AS2Sjs.EndpointCreator; exports.Feature = _chunk2Z56AS2Sjs.Feature; exports.FeatureModule = _chunk2Z56AS2Sjs.FeatureModule; exports.HttpMethod = _chunk2Z56AS2Sjs.HttpMethod; exports.JsonApiDataFactory = _chunkAGAJMJ4Tjs.JsonApiDataFactory; exports.Module = _chunk2Z56AS2Sjs.Module; exports.ModuleModule = _chunk2Z56AS2Sjs.ModuleModule; exports.ModuleRegistrar = _chunk2Z56AS2Sjs.ModuleRegistrar; exports.ModuleRegistry = _chunk2Z56AS2Sjs.ModuleRegistry; exports.Modules = _chunk2Z56AS2Sjs.Modules; exports.Notification = _chunk2Z56AS2Sjs.Notification; exports.NotificationFields = _chunk2Z56AS2Sjs.NotificationFields; exports.NotificationModule = _chunk2Z56AS2Sjs.NotificationModule; exports.Push = _chunk2Z56AS2Sjs.Push; exports.PushModule = _chunk2Z56AS2Sjs.PushModule; exports.RehydrationFactory = _chunk2Z56AS2Sjs.RehydrationFactory; exports.Role = _chunk2Z56AS2Sjs.Role; exports.RoleFields = _chunk2Z56AS2Sjs.RoleFields; exports.RoleModule = _chunk2Z56AS2Sjs.RoleModule; exports.S3 = _chunk2Z56AS2Sjs.S3; exports.S3Module = _chunk2Z56AS2Sjs.S3Module; exports.TableOptions = _chunk2Z56AS2Sjs.TableOptions; exports.User = _chunk2Z56AS2Sjs.User; exports.UserFields = _chunk2Z56AS2Sjs.UserFields; exports.UserModule = _chunk2Z56AS2Sjs.UserModule; exports.checkPermissions = _chunkCSM6AIAPjs.checkPermissions; exports.checkPermissionsFromServer = _chunkCSM6AIAPjs.checkPermissionsFromServer; exports.cn = _chunk2Z56AS2Sjs.cn; exports.composeRefs = _chunk2Z56AS2Sjs.composeRefs; exports.configureAuth = _chunk2Z56AS2Sjs.configureAuth; exports.configureDiscord = _chunkAGWQ75PQjs.configureDiscord; exports.configureI18n = _chunkAGWQ75PQjs.configureI18n; exports.configureJsonApi = _chunkAGWQ75PQjs.configureJsonApi; exports.configureRoles = _chunkAGWQ75PQjs.configureRoles; exports.createJsonApiInclusion = _chunk2Z56AS2Sjs.createJsonApiInclusion; exports.entityObjectSchema = _chunk2Z56AS2Sjs.entityObjectSchema; exports.exists = _chunk2Z56AS2Sjs.exists; exports.formatDate = _chunk2Z56AS2Sjs.formatDate; exports.getApiUrl = _chunkAGWQ75PQjs.getApiUrl; exports.getAppUrl = _chunkAGWQ75PQjs.getAppUrl; exports.getClientGlobalErrorHandler = _chunk2Z56AS2Sjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunk2Z56AS2Sjs.getGlobalErrorHandler; exports.getIcon = _chunk2Z56AS2Sjs.getIcon; exports.getIconByModule = _chunk2Z56AS2Sjs.getIconByModule; exports.getIconByModuleName = _chunk2Z56AS2Sjs.getIconByModuleName; exports.getLucideIcon = _chunk2Z56AS2Sjs.getLucideIcon; exports.getLucideIconByModule = _chunk2Z56AS2Sjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunk2Z56AS2Sjs.getLucideIconByModuleName; exports.getRoleId = _chunkAGWQ75PQjs.getRoleId; exports.getTableComponents = _chunk2Z56AS2Sjs.getTableComponents; exports.getTableOptions = _chunk2Z56AS2Sjs.getTableOptions; exports.getTokenHandler = _chunk2Z56AS2Sjs.getTokenHandler; exports.getTrackablePages = _chunkAGWQ75PQjs.getTrackablePages; exports.getValueFromPath = _chunkCSM6AIAPjs.getValueFromPath; exports.isRolesConfigured = _chunkAGWQ75PQjs.isRolesConfigured; exports.rehydrate = _chunk2Z56AS2Sjs.rehydrate; exports.rehydrateList = _chunk2Z56AS2Sjs.rehydrateList; exports.setClientGlobalErrorHandler = _chunk2Z56AS2Sjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunk2Z56AS2Sjs.setGlobalErrorHandler; exports.translateData = _chunkAGAJMJ4Tjs.translateData; exports.translateResponse = _chunkAGAJMJ4Tjs.translateResponse; exports.useComposedRefs = _chunk2Z56AS2Sjs.useComposedRefs; exports.useIsMobile = _chunk2Z56AS2Sjs.useIsMobile; exports.userObjectSchema = _chunk2Z56AS2Sjs.userObjectSchema;
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+ exports.AbstractApiData = _chunkU4NADAHNjs.AbstractApiData; exports.AbstractService = _chunkU4NADAHNjs.AbstractService; exports.Action = _chunkU4NADAHNjs.Action; exports.Auth = _chunkU4NADAHNjs.Auth; exports.AuthComponent = _chunkU4NADAHNjs.AuthComponent; exports.AuthModule = _chunkU4NADAHNjs.AuthModule; exports.AuthService = _chunkU4NADAHNjs.AuthService; exports.AuthorModule = _chunkU4NADAHNjs.AuthorModule; exports.BlockNoteDiffUtil = _chunkU4NADAHNjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkU4NADAHNjs.BlockNoteWordDiffRendererUtil; exports.ClientAbstractService = _chunkU4NADAHNjs.ClientAbstractService; exports.ClientHttpMethod = _chunkU4NADAHNjs.ClientHttpMethod; exports.Company = _chunkU4NADAHNjs.Company; exports.CompanyFields = _chunkU4NADAHNjs.CompanyFields; exports.CompanyModule = _chunkU4NADAHNjs.CompanyModule; exports.CompanyService = _chunkU4NADAHNjs.CompanyService; exports.Content = _chunkU4NADAHNjs.Content; exports.ContentFields = _chunkU4NADAHNjs.ContentFields; exports.ContentModule = _chunkU4NADAHNjs.ContentModule; exports.ContentService = _chunkU4NADAHNjs.ContentService; exports.DataClass = _chunkCKS6SVUKjs.DataClassRegistry; exports.DataClassRegistry = _chunkCKS6SVUKjs.DataClassRegistry; exports.EndpointCreator = _chunkU4NADAHNjs.EndpointCreator; exports.Feature = _chunkU4NADAHNjs.Feature; exports.FeatureModule = _chunkU4NADAHNjs.FeatureModule; exports.FeatureService = _chunkU4NADAHNjs.FeatureService; exports.HttpMethod = _chunkU4NADAHNjs.HttpMethod; exports.JsonApiDataFactory = _chunkCKS6SVUKjs.JsonApiDataFactory; exports.Module = _chunkU4NADAHNjs.Module; exports.ModuleModule = _chunkU4NADAHNjs.ModuleModule; exports.ModuleRegistrar = _chunkU4NADAHNjs.ModuleRegistrar; exports.ModuleRegistry = _chunkU4NADAHNjs.ModuleRegistry; exports.Modules = _chunkU4NADAHNjs.Modules; exports.Notification = _chunkU4NADAHNjs.Notification; exports.NotificationFields = _chunkU4NADAHNjs.NotificationFields; exports.NotificationModule = _chunkU4NADAHNjs.NotificationModule; exports.NotificationService = _chunkU4NADAHNjs.NotificationService; exports.Push = _chunkU4NADAHNjs.Push; exports.PushModule = _chunkU4NADAHNjs.PushModule; exports.PushService = _chunkU4NADAHNjs.PushService; exports.RehydrationFactory = _chunkU4NADAHNjs.RehydrationFactory; exports.Role = _chunkU4NADAHNjs.Role; exports.RoleFields = _chunkU4NADAHNjs.RoleFields; exports.RoleModule = _chunkU4NADAHNjs.RoleModule; exports.RoleService = _chunkU4NADAHNjs.RoleService; exports.S3 = _chunkU4NADAHNjs.S3; exports.S3Module = _chunkU4NADAHNjs.S3Module; exports.S3Service = _chunkU4NADAHNjs.S3Service; exports.TableOptions = _chunkU4NADAHNjs.TableOptions; exports.User = _chunkU4NADAHNjs.User; exports.UserFields = _chunkU4NADAHNjs.UserFields; exports.UserModule = _chunkU4NADAHNjs.UserModule; exports.UserService = _chunkU4NADAHNjs.UserService; exports.checkPermissions = _chunkU4NADAHNjs.checkPermissions; exports.checkPermissionsFromServer = _chunkU4NADAHNjs.checkPermissionsFromServer; exports.cn = _chunkU4NADAHNjs.cn; exports.composeRefs = _chunkU4NADAHNjs.composeRefs; exports.configureAuth = _chunkU4NADAHNjs.configureAuth; exports.configureDiscord = _chunkAGWQ75PQjs.configureDiscord; exports.configureI18n = _chunkAGWQ75PQjs.configureI18n; exports.configureJsonApi = _chunkAGWQ75PQjs.configureJsonApi; exports.configureRoles = _chunkAGWQ75PQjs.configureRoles; exports.createJsonApiInclusion = _chunkU4NADAHNjs.createJsonApiInclusion; exports.entityObjectSchema = _chunkU4NADAHNjs.entityObjectSchema; exports.exists = _chunkU4NADAHNjs.exists; exports.formatDate = _chunkU4NADAHNjs.formatDate; exports.getApiUrl = _chunkAGWQ75PQjs.getApiUrl; exports.getAppUrl = _chunkAGWQ75PQjs.getAppUrl; exports.getClientGlobalErrorHandler = _chunkU4NADAHNjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkU4NADAHNjs.getGlobalErrorHandler; exports.getIcon = _chunkU4NADAHNjs.getIcon; exports.getIconByModule = _chunkU4NADAHNjs.getIconByModule; exports.getIconByModuleName = _chunkU4NADAHNjs.getIconByModuleName; exports.getLucideIcon = _chunkU4NADAHNjs.getLucideIcon; exports.getLucideIconByModule = _chunkU4NADAHNjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkU4NADAHNjs.getLucideIconByModuleName; exports.getRoleId = _chunkAGWQ75PQjs.getRoleId; exports.getTableComponents = _chunkU4NADAHNjs.getTableComponents; exports.getTableOptions = _chunkU4NADAHNjs.getTableOptions; exports.getTokenHandler = _chunkU4NADAHNjs.getTokenHandler; exports.getTrackablePages = _chunkAGWQ75PQjs.getTrackablePages; exports.getValueFromPath = _chunkU4NADAHNjs.getValueFromPath; exports.isRolesConfigured = _chunkAGWQ75PQjs.isRolesConfigured; exports.rehydrate = _chunkU4NADAHNjs.rehydrate; exports.rehydrateList = _chunkU4NADAHNjs.rehydrateList; exports.setClientGlobalErrorHandler = _chunkU4NADAHNjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkU4NADAHNjs.setGlobalErrorHandler; exports.translateData = _chunkCKS6SVUKjs.translateData; exports.translateResponse = _chunkCKS6SVUKjs.translateResponse; exports.useComposedRefs = _chunkU4NADAHNjs.useComposedRefs; exports.useIsMobile = _chunkU4NADAHNjs.useIsMobile; exports.userObjectSchema = _chunkU4NADAHNjs.userObjectSchema;
179
195
  //# 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;AACF,sDAA4B;AAC5B;AACE;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;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;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;AACF,unJAAC","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;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;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;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;AACF,ymKAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"}
package/dist/index.mjs CHANGED
@@ -9,18 +9,14 @@ import {
9
9
  getTrackablePages,
10
10
  isRolesConfigured
11
11
  } from "./chunk-IGOWVLJH.mjs";
12
- import {
13
- Action,
14
- checkPermissions,
15
- checkPermissionsFromServer,
16
- getValueFromPath
17
- } from "./chunk-K4W5QXL5.mjs";
18
12
  import {
19
13
  AbstractApiData,
20
14
  AbstractService,
15
+ Action,
21
16
  Auth,
22
17
  AuthComponent,
23
18
  AuthModule,
19
+ AuthService,
24
20
  AuthorModule,
25
21
  BlockNoteDiffUtil,
26
22
  BlockNoteWordDiffRendererUtil,
@@ -29,12 +25,15 @@ import {
29
25
  Company,
30
26
  CompanyFields,
31
27
  CompanyModule,
28
+ CompanyService,
32
29
  Content,
33
30
  ContentFields,
34
31
  ContentModule,
32
+ ContentService,
35
33
  EndpointCreator,
36
34
  Feature,
37
35
  FeatureModule,
36
+ FeatureService,
38
37
  HttpMethod,
39
38
  Module,
40
39
  ModuleModule,
@@ -44,18 +43,25 @@ import {
44
43
  Notification,
45
44
  NotificationFields,
46
45
  NotificationModule,
46
+ NotificationService,
47
47
  Push,
48
48
  PushModule,
49
+ PushService,
49
50
  RehydrationFactory,
50
51
  Role,
51
52
  RoleFields,
52
53
  RoleModule,
54
+ RoleService,
53
55
  S3,
54
56
  S3Module,
57
+ S3Service,
55
58
  TableOptions,
56
59
  User,
57
60
  UserFields,
58
61
  UserModule,
62
+ UserService,
63
+ checkPermissions,
64
+ checkPermissionsFromServer,
59
65
  cn,
60
66
  composeRefs,
61
67
  configureAuth,
@@ -74,6 +80,7 @@ import {
74
80
  getTableComponents,
75
81
  getTableOptions,
76
82
  getTokenHandler,
83
+ getValueFromPath,
77
84
  rehydrate,
78
85
  rehydrateList,
79
86
  setClientGlobalErrorHandler,
@@ -81,14 +88,14 @@ import {
81
88
  useComposedRefs,
82
89
  useIsMobile,
83
90
  userObjectSchema
84
- } from "./chunk-KFL5ZFM4.mjs";
91
+ } from "./chunk-4U5CJA44.mjs";
85
92
  import "./chunk-C7C7VY4F.mjs";
86
93
  import {
87
94
  DataClassRegistry,
88
95
  JsonApiDataFactory,
89
96
  translateData,
90
97
  translateResponse
91
- } from "./chunk-RBIVEH2K.mjs";
98
+ } from "./chunk-SAL7XW2G.mjs";
92
99
  import "./chunk-AUXK7QSA.mjs";
93
100
  import "./chunk-PAWJFY3S.mjs";
94
101
  export {
@@ -98,6 +105,7 @@ export {
98
105
  Auth,
99
106
  AuthComponent,
100
107
  AuthModule,
108
+ AuthService,
101
109
  AuthorModule,
102
110
  BlockNoteDiffUtil,
103
111
  BlockNoteWordDiffRendererUtil,
@@ -106,14 +114,17 @@ export {
106
114
  Company,
107
115
  CompanyFields,
108
116
  CompanyModule,
117
+ CompanyService,
109
118
  Content,
110
119
  ContentFields,
111
120
  ContentModule,
121
+ ContentService,
112
122
  DataClassRegistry as DataClass,
113
123
  DataClassRegistry,
114
124
  EndpointCreator,
115
125
  Feature,
116
126
  FeatureModule,
127
+ FeatureService,
117
128
  HttpMethod,
118
129
  JsonApiDataFactory,
119
130
  Module,
@@ -124,18 +135,23 @@ export {
124
135
  Notification,
125
136
  NotificationFields,
126
137
  NotificationModule,
138
+ NotificationService,
127
139
  Push,
128
140
  PushModule,
141
+ PushService,
129
142
  RehydrationFactory,
130
143
  Role,
131
144
  RoleFields,
132
145
  RoleModule,
146
+ RoleService,
133
147
  S3,
134
148
  S3Module,
149
+ S3Service,
135
150
  TableOptions,
136
151
  User,
137
152
  UserFields,
138
153
  UserModule,
154
+ UserService,
139
155
  checkPermissions,
140
156
  checkPermissionsFromServer,
141
157
  cn,
@@ -225,4 +225,4 @@ interface NotificationInterface extends ApiDataInterface {
225
225
  get actor(): UserInterface | undefined;
226
226
  }
227
227
 
228
- export { type ApiDataInterface as A, type CompanyInput as C, type FieldSelector as F, type GetterKeys as G, type JsonApiHydratedDataInterface as J, type ModuleWithPermissions as M, type NotificationInterface as N, type PermissionUser as P, type RoleInput as R, type UserInterface as U, type ApiRequestDataTypeInterface as a, Action as b, type PermissionModule as c, createJsonApiInclusion as d, type CompanyInterface as e, type FeatureInterface as f, type ModuleInterface as g, type NotificationInput as h, type RoleInterface as i, type UserInput as j, type PermissionCheck as k, type PageUrl as l, type ModulePermissionDefinition as m, type ModuleDefinition as n, type PermissionConfig as o, type ModuleFactory as p };
228
+ export { type ApiDataInterface as A, type CompanyInput as C, type FieldSelector as F, type GetterKeys as G, type JsonApiHydratedDataInterface as J, type ModuleWithPermissions as M, type NotificationInterface as N, type PermissionCheck as P, type RoleInput as R, type UserInterface as U, type ApiRequestDataTypeInterface as a, Action as b, createJsonApiInclusion as c, type PageUrl as d, type ModulePermissionDefinition as e, type ModuleDefinition as f, type PermissionConfig as g, type PermissionModule as h, type PermissionUser as i, type ModuleFactory as j, type CompanyInterface as k, type FeatureInterface as l, type ModuleInterface as m, type NotificationInput as n, type RoleInterface as o, type UserInput as p };
@@ -225,4 +225,4 @@ interface NotificationInterface extends ApiDataInterface {
225
225
  get actor(): UserInterface | undefined;
226
226
  }
227
227
 
228
- export { type ApiDataInterface as A, type CompanyInput as C, type FieldSelector as F, type GetterKeys as G, type JsonApiHydratedDataInterface as J, type ModuleWithPermissions as M, type NotificationInterface as N, type PermissionUser as P, type RoleInput as R, type UserInterface as U, type ApiRequestDataTypeInterface as a, Action as b, type PermissionModule as c, createJsonApiInclusion as d, type CompanyInterface as e, type FeatureInterface as f, type ModuleInterface as g, type NotificationInput as h, type RoleInterface as i, type UserInput as j, type PermissionCheck as k, type PageUrl as l, type ModulePermissionDefinition as m, type ModuleDefinition as n, type PermissionConfig as o, type ModuleFactory as p };
228
+ export { type ApiDataInterface as A, type CompanyInput as C, type FieldSelector as F, type GetterKeys as G, type JsonApiHydratedDataInterface as J, type ModuleWithPermissions as M, type NotificationInterface as N, type PermissionCheck as P, type RoleInput as R, type UserInterface as U, type ApiRequestDataTypeInterface as a, Action as b, createJsonApiInclusion as c, type PageUrl as d, type ModulePermissionDefinition as e, type ModuleDefinition as f, type PermissionConfig as g, type PermissionModule as h, type PermissionUser as i, type ModuleFactory as j, type CompanyInterface as k, type FeatureInterface as l, type ModuleInterface as m, type NotificationInput as n, type RoleInterface as o, type UserInput as p };