@carlonicora/nextjs-jsonapi 1.5.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.
- package/dist/{ApiResponseInterface-DDI7QQPR.d.ts → ApiResponseInterface-DMwITHYP.d.mts} +11 -2
- package/dist/{ApiResponseInterface-BHN5D9r5.d.mts → ApiResponseInterface-DWgIAXI-.d.ts} +11 -2
- package/dist/AuthComponent-hxOPs9o8.d.mts +11 -0
- package/dist/AuthComponent-hxOPs9o8.d.ts +11 -0
- package/dist/{BlockNoteEditor-G6AK2NWA.js → BlockNoteEditor-IJASTIUZ.js} +16 -23
- package/dist/BlockNoteEditor-IJASTIUZ.js.map +1 -0
- package/dist/{BlockNoteEditor-AIEEQM6A.mjs → BlockNoteEditor-M6TUP3NT.mjs} +8 -15
- package/dist/BlockNoteEditor-M6TUP3NT.mjs.map +1 -0
- package/dist/JsonApiRequest-2OM5NDAW.js +24 -0
- package/dist/JsonApiRequest-2OM5NDAW.js.map +1 -0
- package/dist/{JsonApiRequest-6UR7DIAR.mjs → JsonApiRequest-SYZ6FGCA.mjs} +2 -3
- package/dist/{chunk-2K3Q24UF.js → chunk-3ZPK4QOB.js} +24 -14
- package/dist/chunk-3ZPK4QOB.js.map +1 -0
- package/dist/{chunk-VET55IZO.js → chunk-4L7OWJ2P.js} +10290 -7537
- package/dist/chunk-4L7OWJ2P.js.map +1 -0
- package/dist/chunk-4U5CJA44.mjs +3435 -0
- package/dist/chunk-4U5CJA44.mjs.map +1 -0
- package/dist/chunk-AGWQ75PQ.js +142 -0
- package/dist/chunk-AGWQ75PQ.js.map +1 -0
- package/dist/{chunk-PMXG5WBC.js → chunk-CKS6SVUK.js} +160 -24
- package/dist/chunk-CKS6SVUK.js.map +1 -0
- package/dist/{chunk-YF5XQZDR.mjs → chunk-F5UNXZ3J.mjs} +1 -1
- package/dist/chunk-F5UNXZ3J.mjs.map +1 -0
- package/dist/chunk-IGOWVLJH.mjs +142 -0
- package/dist/chunk-IGOWVLJH.mjs.map +1 -0
- package/dist/{chunk-HR4H2FP7.mjs → chunk-KJ4ETLJB.mjs} +24 -14
- package/dist/chunk-KJ4ETLJB.mjs.map +1 -0
- package/dist/{chunk-IKBA4AHN.mjs → chunk-SAL7XW2G.mjs} +143 -7
- package/dist/chunk-SAL7XW2G.mjs.map +1 -0
- package/dist/chunk-TW4QRJ7D.mjs +12085 -0
- package/dist/chunk-TW4QRJ7D.mjs.map +1 -0
- package/dist/chunk-U4NADAHN.js +3435 -0
- package/dist/chunk-U4NADAHN.js.map +1 -0
- package/dist/{chunk-EFJEWLRL.js → chunk-YUO55Q5A.js} +1 -1
- package/dist/chunk-YUO55Q5A.js.map +1 -0
- package/dist/client/index.d.mts +161 -11
- package/dist/client/index.d.ts +161 -11
- package/dist/client/index.js +71 -11
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +70 -10
- package/dist/components/index.d.mts +763 -11
- package/dist/components/index.d.ts +763 -11
- package/dist/components/index.js +462 -11
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +463 -12
- package/dist/config-BdCV25CE.d.mts +69 -0
- package/dist/config-C9dt1QiR.d.ts +69 -0
- package/dist/content.fields-Ck5lkQ5d.d.mts +47 -0
- package/dist/content.fields-Ck5lkQ5d.d.ts +47 -0
- package/dist/{content.interface-CR2aBeAW.d.ts → content.interface-B6qP_ABq.d.mts} +2 -3
- package/dist/{content.interface-FpLfsaRm.d.mts → content.interface-DHAFLasV.d.ts} +2 -3
- package/dist/contexts/index.d.mts +13 -6
- package/dist/contexts/index.d.ts +13 -6
- package/dist/contexts/index.js +7 -11
- package/dist/contexts/index.js.map +1 -1
- package/dist/contexts/index.mjs +6 -10
- package/dist/core/index.d.mts +575 -8
- package/dist/core/index.d.ts +575 -8
- package/dist/core/index.js +131 -3
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +132 -4
- package/dist/index.d.mts +95 -71
- package/dist/index.d.ts +95 -71
- package/dist/index.js +113 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +135 -29
- package/dist/notification.interface-agcMYCkg.d.mts +228 -0
- package/dist/notification.interface-agcMYCkg.d.ts +228 -0
- package/dist/request-GBLBPYFM.js +8 -0
- package/dist/request-GBLBPYFM.js.map +1 -0
- package/dist/request-XABCMU25.mjs +8 -0
- package/dist/s3.service-DYnmymEd.d.mts +350 -0
- package/dist/s3.service-DyXjKTqr.d.ts +350 -0
- package/dist/server/index.d.mts +69 -4
- package/dist/server/index.d.ts +69 -4
- package/dist/server/index.js +211 -5
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +211 -5
- package/dist/server/index.mjs.map +1 -1
- package/dist/token-2UWQJY5T.js +8 -0
- package/dist/token-2UWQJY5T.js.map +1 -0
- package/dist/token-EOK3N45S.mjs +8 -0
- package/dist/{useSocket-L-An7_Mr.d.mts → useSocket-91s8M4Xd.d.mts} +1 -1
- package/dist/{useSocket-BV6yMdWS.d.ts → useSocket-DSR7vaXj.d.ts} +1 -1
- package/package.json +12 -52
- package/src/client/JsonApiClient.ts +248 -0
- package/src/client/config.ts +78 -0
- package/src/client/index.ts +6 -1
- package/src/components/containers/TabsContainer.tsx +1 -1
- package/src/components/editors/BlockNoteEditor.tsx +3 -1
- package/src/components/index.ts +4 -0
- package/src/components/navigations/Breadcrumb.tsx +1 -1
- package/src/components/navigations/Header.tsx +2 -2
- package/src/contexts/CommonContext.tsx +1 -1
- package/src/contexts/SocketContext.tsx +1 -1
- package/src/contexts/index.ts +3 -0
- package/src/core/abstracts/ClientAbstractService.ts +255 -0
- package/src/core/abstracts/ServerAbstractService.ts +180 -0
- package/src/core/abstracts/index.ts +2 -0
- package/src/core/index.ts +35 -3
- package/src/discord/config.ts +15 -0
- package/src/discord/index.ts +1 -0
- package/src/features/auth/components/details/LandingComponent.tsx +2 -2
- package/src/features/auth/components/forms/AcceptInvitation.tsx +1 -1
- package/src/features/auth/components/forms/ActivateAccount.tsx +1 -1
- package/src/features/auth/components/forms/Cookies.tsx +2 -1
- package/src/features/auth/components/forms/ForgotPassword.tsx +1 -1
- package/src/features/auth/components/forms/Login.tsx +1 -1
- package/src/features/auth/components/forms/Logout.tsx +1 -1
- package/src/features/auth/components/forms/RefreshUser.tsx +2 -1
- package/src/features/auth/components/forms/Register.tsx +1 -1
- package/src/features/auth/components/forms/ResetPassword.tsx +1 -1
- package/src/features/auth/data/auth.service.ts +1 -1
- package/src/features/auth/utils/AuthCookies.ts +1 -1
- package/src/features/company/components/forms/CompanyConfigurationEditor.tsx +4 -2
- package/src/features/company/components/forms/CompanyDeleter.tsx +2 -1
- package/src/features/company/components/forms/CompanyEditor.tsx +6 -3
- package/src/features/company/components/forms/CompanyLicense.tsx +4 -2
- package/src/features/company/components/lists/CompaniesList.tsx +2 -1
- package/src/features/content/components/lists/ContentsListById.tsx +2 -1
- package/src/features/content/components/lists/RelevantContentsList.tsx +2 -1
- package/src/features/notification/components/lists/NotificationsList.tsx +2 -1
- package/src/features/notification/contexts/NotificationContext.tsx +2 -1
- package/src/features/role/components/forms/RemoveUserFromRole.tsx +4 -2
- package/src/features/role/components/forms/UserRoleAdd.tsx +2 -1
- package/src/features/role/components/lists/RolesList.tsx +2 -1
- package/src/features/role/components/lists/UserRolesList.tsx +2 -1
- package/src/features/user/components/forms/RoleUserAdd.tsx +4 -2
- package/src/features/user/components/forms/UserDeleter.tsx +2 -1
- package/src/features/user/components/forms/UserEditor.tsx +6 -3
- package/src/features/user/components/forms/UserMultiSelect.tsx +2 -1
- package/src/features/user/components/forms/UserReactivator.tsx +2 -1
- package/src/features/user/components/forms/UserResentInvitationEmail.tsx +2 -1
- package/src/features/user/components/forms/UserSelector.tsx +2 -1
- package/src/features/user/components/lists/AdminUsersList.tsx +2 -1
- package/src/features/user/components/lists/CompanyUsersList.tsx +2 -1
- package/src/features/user/components/lists/RelevantUsersList.tsx +2 -1
- package/src/features/user/components/lists/RoleUsersList.tsx +2 -1
- package/src/features/user/components/lists/UsersListByContentIds.tsx +2 -1
- package/src/features/user/hooks/useUserSearch.ts +2 -1
- package/src/hooks/useDataListRetriever.ts +4 -4
- package/src/hooks/usePageTracker.ts +1 -1
- package/src/hooks/usePushNotifications.ts +3 -2
- package/src/hooks/useSocket.ts +1 -1
- package/src/index.ts +7 -2
- package/src/roles/config.ts +0 -15
- package/src/roles/index.ts +1 -9
- package/src/server/JsonApiServer.ts +249 -0
- package/src/server/cache.ts +1 -1
- package/src/server/index.ts +13 -0
- package/src/server/request.ts +32 -18
- package/src/server/token.ts +1 -1
- package/dist/AbstractService-BsY6W3Ej.d.mts +0 -109
- package/dist/AbstractService-wLid8dB0.d.ts +0 -109
- package/dist/ApiData-DPKNfY-9.d.mts +0 -10
- package/dist/ApiData-DPKNfY-9.d.ts +0 -10
- package/dist/ApiDataInterface-DPP8s46n.d.mts +0 -21
- package/dist/ApiDataInterface-DPP8s46n.d.ts +0 -21
- package/dist/AuthComponent-B_Ps2Vb9.d.ts +0 -78
- package/dist/AuthComponent-CxnGgvoh.d.mts +0 -78
- package/dist/BlockNoteEditor-AIEEQM6A.mjs.map +0 -1
- package/dist/BlockNoteEditor-G6AK2NWA.js.map +0 -1
- package/dist/JsonApiRequest-UJ7FGIVI.js +0 -25
- package/dist/JsonApiRequest-UJ7FGIVI.js.map +0 -1
- package/dist/atoms/index.d.mts +0 -12
- package/dist/atoms/index.d.ts +0 -12
- package/dist/atoms/index.js +0 -9
- package/dist/atoms/index.js.map +0 -1
- package/dist/atoms/index.mjs +0 -9
- package/dist/chunk-2K3Q24UF.js.map +0 -1
- package/dist/chunk-32HM6MDD.js +0 -98
- package/dist/chunk-32HM6MDD.js.map +0 -1
- package/dist/chunk-3FBCC4G3.js +0 -8
- package/dist/chunk-3FBCC4G3.js.map +0 -1
- package/dist/chunk-3UELCPIN.js +0 -46
- package/dist/chunk-3UELCPIN.js.map +0 -1
- package/dist/chunk-5IET37O4.js +0 -4210
- package/dist/chunk-5IET37O4.js.map +0 -1
- package/dist/chunk-AGAJMJ4T.js +0 -147
- package/dist/chunk-AGAJMJ4T.js.map +0 -1
- package/dist/chunk-AYHKQWHH.js +0 -68
- package/dist/chunk-AYHKQWHH.js.map +0 -1
- package/dist/chunk-DEYKTLA3.js +0 -1131
- package/dist/chunk-DEYKTLA3.js.map +0 -1
- package/dist/chunk-EFJEWLRL.js.map +0 -1
- package/dist/chunk-FMBQZAIP.mjs +0 -490
- package/dist/chunk-FMBQZAIP.mjs.map +0 -1
- package/dist/chunk-HAG77QBV.mjs +0 -98
- package/dist/chunk-HAG77QBV.mjs.map +0 -1
- package/dist/chunk-HR4H2FP7.mjs.map +0 -1
- package/dist/chunk-IKBA4AHN.mjs.map +0 -1
- package/dist/chunk-J7YDGYSW.mjs +0 -9332
- package/dist/chunk-J7YDGYSW.mjs.map +0 -1
- package/dist/chunk-JGFWIT2E.mjs +0 -1131
- package/dist/chunk-JGFWIT2E.mjs.map +0 -1
- package/dist/chunk-P2F54I7Q.mjs +0 -4210
- package/dist/chunk-P2F54I7Q.mjs.map +0 -1
- package/dist/chunk-PMXG5WBC.js.map +0 -1
- package/dist/chunk-Q2N6SQYW.mjs +0 -8
- package/dist/chunk-Q2N6SQYW.mjs.map +0 -1
- package/dist/chunk-Q4FXESVT.js +0 -490
- package/dist/chunk-Q4FXESVT.js.map +0 -1
- package/dist/chunk-RBIVEH2K.mjs +0 -147
- package/dist/chunk-RBIVEH2K.mjs.map +0 -1
- package/dist/chunk-SM63SZCP.mjs +0 -68
- package/dist/chunk-SM63SZCP.mjs.map +0 -1
- package/dist/chunk-SZZYEG3P.mjs +0 -46
- package/dist/chunk-SZZYEG3P.mjs.map +0 -1
- package/dist/chunk-VET55IZO.js.map +0 -1
- package/dist/chunk-YF5XQZDR.mjs.map +0 -1
- package/dist/config-BmnK65TD.d.mts +0 -35
- package/dist/config-BmnK65TD.d.ts +0 -35
- package/dist/config-DQeAo9Kf.d.mts +0 -49
- package/dist/config-DQeAo9Kf.d.ts +0 -49
- package/dist/content.fields-cHPdM8GJ.d.mts +0 -27
- package/dist/content.fields-cHPdM8GJ.d.ts +0 -27
- package/dist/d3.link.interface-ClC4Irqp.d.mts +0 -21
- package/dist/d3.link.interface-ClC4Irqp.d.ts +0 -21
- package/dist/features/index.d.mts +0 -477
- package/dist/features/index.d.ts +0 -477
- package/dist/features/index.js +0 -108
- package/dist/features/index.js.map +0 -1
- package/dist/features/index.mjs +0 -108
- package/dist/hooks/index.d.mts +0 -69
- package/dist/hooks/index.d.ts +0 -69
- package/dist/hooks/index.js +0 -55
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/index.mjs +0 -55
- package/dist/hooks/index.mjs.map +0 -1
- package/dist/interfaces/index.d.mts +0 -4
- package/dist/interfaces/index.d.ts +0 -4
- package/dist/interfaces/index.js +0 -2
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/index.mjs +0 -2
- package/dist/interfaces/index.mjs.map +0 -1
- package/dist/notification.interface-B2BrLoDA.d.mts +0 -14
- package/dist/notification.interface-DlZLnAfg.d.ts +0 -14
- package/dist/permissions/index.d.mts +0 -41
- package/dist/permissions/index.d.ts +0 -41
- package/dist/permissions/index.js +0 -14
- package/dist/permissions/index.js.map +0 -1
- package/dist/permissions/index.mjs +0 -14
- package/dist/permissions/index.mjs.map +0 -1
- package/dist/request-7FE3LJLV.mjs +0 -9
- package/dist/request-7FE3LJLV.mjs.map +0 -1
- package/dist/request-QFS7NEIE.js +0 -9
- package/dist/request-QFS7NEIE.js.map +0 -1
- package/dist/roles/index.d.mts +0 -39
- package/dist/roles/index.d.ts +0 -39
- package/dist/roles/index.js +0 -18
- package/dist/roles/index.js.map +0 -1
- package/dist/roles/index.mjs +0 -18
- package/dist/roles/index.mjs.map +0 -1
- package/dist/shadcnui/index.d.mts +0 -698
- package/dist/shadcnui/index.d.ts +0 -698
- package/dist/shadcnui/index.js +0 -468
- package/dist/shadcnui/index.js.map +0 -1
- package/dist/shadcnui/index.mjs +0 -467
- package/dist/shadcnui/index.mjs.map +0 -1
- package/dist/token-IJSPOMW6.mjs +0 -9
- package/dist/token-IJSPOMW6.mjs.map +0 -1
- package/dist/token-UYE7CV6X.js +0 -9
- package/dist/token-UYE7CV6X.js.map +0 -1
- package/dist/types-B2QRyqyK.d.ts +0 -39
- package/dist/types-CgvNmxTd.d.mts +0 -39
- package/dist/types-t2PyXhDu.d.mts +0 -116
- package/dist/types-t2PyXhDu.d.ts +0 -116
- package/dist/user.interface-CooB1R79.d.mts +0 -85
- package/dist/user.interface-KnIT9pVY.d.ts +0 -85
- package/dist/utils/index.d.mts +0 -224
- package/dist/utils/index.d.ts +0 -224
- package/dist/utils/index.js +0 -46
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/index.mjs +0 -46
- package/dist/utils/index.mjs.map +0 -1
- /package/dist/{JsonApiRequest-6UR7DIAR.mjs.map → JsonApiRequest-SYZ6FGCA.mjs.map} +0 -0
- /package/dist/{atoms/index.mjs.map → request-XABCMU25.mjs.map} +0 -0
- /package/dist/{features/index.mjs.map → token-EOK3N45S.mjs.map} +0 -0
package/dist/core/index.js
CHANGED
|
@@ -12,13 +12,78 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var _chunkQ4FXESVTjs = require('../chunk-Q4FXESVT.js');
|
|
16
15
|
|
|
17
16
|
|
|
18
17
|
|
|
19
18
|
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
var _chunkU4NADAHNjs = require('../chunk-U4NADAHN.js');
|
|
79
|
+
require('../chunk-IBS6NI7D.js');
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
var _chunkCKS6SVUKjs = require('../chunk-CKS6SVUK.js');
|
|
86
|
+
require('../chunk-LXKSUWAV.js');
|
|
22
87
|
require('../chunk-7QVYU63E.js');
|
|
23
88
|
|
|
24
89
|
|
|
@@ -39,5 +104,68 @@ require('../chunk-7QVYU63E.js');
|
|
|
39
104
|
|
|
40
105
|
|
|
41
106
|
|
|
42
|
-
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
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.createJsonApiInclusion = _chunkU4NADAHNjs.createJsonApiInclusion; exports.entityObjectSchema = _chunkU4NADAHNjs.entityObjectSchema; exports.exists = _chunkU4NADAHNjs.exists; exports.formatDate = _chunkU4NADAHNjs.formatDate; 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.getTableComponents = _chunkU4NADAHNjs.getTableComponents; exports.getTableOptions = _chunkU4NADAHNjs.getTableOptions; exports.getValueFromPath = _chunkU4NADAHNjs.getValueFromPath; 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;
|
|
43
171
|
//# sourceMappingURL=index.js.map
|
package/dist/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/core/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/core/index.js"],"names":[],"mappings":"AAAA;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;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;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;AACF,u/IAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/core/index.js"}
|
package/dist/core/index.mjs
CHANGED
|
@@ -1,43 +1,171 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbstractApiData,
|
|
3
3
|
AbstractService,
|
|
4
|
+
Action,
|
|
5
|
+
Auth,
|
|
6
|
+
AuthComponent,
|
|
7
|
+
AuthModule,
|
|
8
|
+
AuthService,
|
|
9
|
+
AuthorModule,
|
|
10
|
+
BlockNoteDiffUtil,
|
|
11
|
+
BlockNoteWordDiffRendererUtil,
|
|
12
|
+
ClientAbstractService,
|
|
13
|
+
ClientHttpMethod,
|
|
14
|
+
Company,
|
|
15
|
+
CompanyFields,
|
|
16
|
+
CompanyModule,
|
|
17
|
+
CompanyService,
|
|
18
|
+
Content,
|
|
19
|
+
ContentFields,
|
|
20
|
+
ContentModule,
|
|
21
|
+
ContentService,
|
|
4
22
|
EndpointCreator,
|
|
23
|
+
Feature,
|
|
24
|
+
FeatureModule,
|
|
25
|
+
FeatureService,
|
|
5
26
|
HttpMethod,
|
|
27
|
+
Module,
|
|
28
|
+
ModuleModule,
|
|
6
29
|
ModuleRegistrar,
|
|
7
30
|
ModuleRegistry,
|
|
8
31
|
Modules,
|
|
32
|
+
Notification,
|
|
33
|
+
NotificationFields,
|
|
34
|
+
NotificationModule,
|
|
35
|
+
NotificationService,
|
|
36
|
+
Push,
|
|
37
|
+
PushModule,
|
|
38
|
+
PushService,
|
|
9
39
|
RehydrationFactory,
|
|
40
|
+
Role,
|
|
41
|
+
RoleFields,
|
|
42
|
+
RoleModule,
|
|
43
|
+
RoleService,
|
|
44
|
+
S3,
|
|
45
|
+
S3Module,
|
|
46
|
+
S3Service,
|
|
47
|
+
TableOptions,
|
|
48
|
+
User,
|
|
49
|
+
UserFields,
|
|
50
|
+
UserModule,
|
|
51
|
+
UserService,
|
|
52
|
+
checkPermissions,
|
|
53
|
+
checkPermissionsFromServer,
|
|
54
|
+
cn,
|
|
55
|
+
composeRefs,
|
|
10
56
|
createJsonApiInclusion,
|
|
57
|
+
entityObjectSchema,
|
|
58
|
+
exists,
|
|
59
|
+
formatDate,
|
|
60
|
+
getClientGlobalErrorHandler,
|
|
11
61
|
getGlobalErrorHandler,
|
|
62
|
+
getIcon,
|
|
63
|
+
getIconByModule,
|
|
64
|
+
getIconByModuleName,
|
|
65
|
+
getLucideIcon,
|
|
66
|
+
getLucideIconByModule,
|
|
67
|
+
getLucideIconByModuleName,
|
|
68
|
+
getTableComponents,
|
|
69
|
+
getTableOptions,
|
|
70
|
+
getValueFromPath,
|
|
12
71
|
rehydrate,
|
|
13
72
|
rehydrateList,
|
|
14
|
-
|
|
15
|
-
|
|
73
|
+
setClientGlobalErrorHandler,
|
|
74
|
+
setGlobalErrorHandler,
|
|
75
|
+
useComposedRefs,
|
|
76
|
+
useIsMobile,
|
|
77
|
+
userObjectSchema
|
|
78
|
+
} from "../chunk-4U5CJA44.mjs";
|
|
79
|
+
import "../chunk-C7C7VY4F.mjs";
|
|
16
80
|
import {
|
|
17
81
|
DataClassRegistry,
|
|
18
82
|
JsonApiDataFactory,
|
|
19
83
|
translateData,
|
|
20
84
|
translateResponse
|
|
21
|
-
} from "../chunk-
|
|
85
|
+
} from "../chunk-SAL7XW2G.mjs";
|
|
86
|
+
import "../chunk-AUXK7QSA.mjs";
|
|
22
87
|
import "../chunk-PAWJFY3S.mjs";
|
|
23
88
|
export {
|
|
24
89
|
AbstractApiData,
|
|
25
90
|
AbstractService,
|
|
91
|
+
Action,
|
|
92
|
+
Auth,
|
|
93
|
+
AuthComponent,
|
|
94
|
+
AuthModule,
|
|
95
|
+
AuthService,
|
|
96
|
+
AuthorModule,
|
|
97
|
+
BlockNoteDiffUtil,
|
|
98
|
+
BlockNoteWordDiffRendererUtil,
|
|
99
|
+
ClientAbstractService,
|
|
100
|
+
ClientHttpMethod,
|
|
101
|
+
Company,
|
|
102
|
+
CompanyFields,
|
|
103
|
+
CompanyModule,
|
|
104
|
+
CompanyService,
|
|
105
|
+
Content,
|
|
106
|
+
ContentFields,
|
|
107
|
+
ContentModule,
|
|
108
|
+
ContentService,
|
|
26
109
|
DataClassRegistry as DataClass,
|
|
27
110
|
DataClassRegistry,
|
|
28
111
|
EndpointCreator,
|
|
112
|
+
Feature,
|
|
113
|
+
FeatureModule,
|
|
114
|
+
FeatureService,
|
|
29
115
|
HttpMethod,
|
|
30
116
|
JsonApiDataFactory,
|
|
117
|
+
Module,
|
|
118
|
+
ModuleModule,
|
|
31
119
|
ModuleRegistrar,
|
|
32
120
|
ModuleRegistry,
|
|
33
121
|
Modules,
|
|
122
|
+
Notification,
|
|
123
|
+
NotificationFields,
|
|
124
|
+
NotificationModule,
|
|
125
|
+
NotificationService,
|
|
126
|
+
Push,
|
|
127
|
+
PushModule,
|
|
128
|
+
PushService,
|
|
34
129
|
RehydrationFactory,
|
|
130
|
+
Role,
|
|
131
|
+
RoleFields,
|
|
132
|
+
RoleModule,
|
|
133
|
+
RoleService,
|
|
134
|
+
S3,
|
|
135
|
+
S3Module,
|
|
136
|
+
S3Service,
|
|
137
|
+
TableOptions,
|
|
138
|
+
User,
|
|
139
|
+
UserFields,
|
|
140
|
+
UserModule,
|
|
141
|
+
UserService,
|
|
142
|
+
checkPermissions,
|
|
143
|
+
checkPermissionsFromServer,
|
|
144
|
+
cn,
|
|
145
|
+
composeRefs,
|
|
35
146
|
createJsonApiInclusion,
|
|
147
|
+
entityObjectSchema,
|
|
148
|
+
exists,
|
|
149
|
+
formatDate,
|
|
150
|
+
getClientGlobalErrorHandler,
|
|
36
151
|
getGlobalErrorHandler,
|
|
152
|
+
getIcon,
|
|
153
|
+
getIconByModule,
|
|
154
|
+
getIconByModuleName,
|
|
155
|
+
getLucideIcon,
|
|
156
|
+
getLucideIconByModule,
|
|
157
|
+
getLucideIconByModuleName,
|
|
158
|
+
getTableComponents,
|
|
159
|
+
getTableOptions,
|
|
160
|
+
getValueFromPath,
|
|
37
161
|
rehydrate,
|
|
38
162
|
rehydrateList,
|
|
163
|
+
setClientGlobalErrorHandler,
|
|
39
164
|
setGlobalErrorHandler,
|
|
40
165
|
translateData,
|
|
41
|
-
translateResponse
|
|
166
|
+
translateResponse,
|
|
167
|
+
useComposedRefs,
|
|
168
|
+
useIsMobile,
|
|
169
|
+
userObjectSchema
|
|
42
170
|
};
|
|
43
171
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,78 +1,102 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
export { A as
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export { T as TokenHandler, a as TokenParams, c as configureAuth, g as getTokenHandler } from './config-DQeAo9Kf.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';
|
|
5
|
+
export { B as BreadcrumbItemData } from './breadcrumb.item.data.interface-CgB4_1EE.mjs';
|
|
6
|
+
export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-Ck5lkQ5d.mjs';
|
|
7
|
+
export { ClassValue } from 'clsx';
|
|
8
|
+
export { A as AuthComponent } from './AuthComponent-hxOPs9o8.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';
|
|
13
|
+
import 'zod';
|
|
14
|
+
import '@blocknote/core';
|
|
15
|
+
import 'd3';
|
|
16
|
+
|
|
17
|
+
declare function configureDiscord(params: {
|
|
18
|
+
useDiscord: boolean;
|
|
19
|
+
useInternalAuth: boolean;
|
|
20
|
+
}): void;
|
|
14
21
|
|
|
15
22
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
23
|
+
* Role ID configuration interface
|
|
24
|
+
* Apps provide their role IDs via configureRoles()
|
|
18
25
|
*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
} | File | Blob;
|
|
55
|
-
language: string;
|
|
56
|
-
responseType?: ApiRequestDataTypeInterface;
|
|
57
|
-
}): Promise<ApiResponseInterface>;
|
|
58
|
-
declare function JsonApiPatch(params: {
|
|
59
|
-
classKey: ApiRequestDataTypeInterface;
|
|
60
|
-
endpoint: string;
|
|
61
|
-
companyId?: string;
|
|
62
|
-
body?: any;
|
|
63
|
-
files?: {
|
|
64
|
-
[key: string]: File | Blob;
|
|
65
|
-
} | File | Blob;
|
|
66
|
-
overridesJsonApiCreation?: boolean;
|
|
67
|
-
responseType?: ApiRequestDataTypeInterface;
|
|
68
|
-
language: string;
|
|
69
|
-
}): Promise<ApiResponseInterface>;
|
|
70
|
-
declare function JsonApiDelete(params: {
|
|
71
|
-
classKey: ApiRequestDataTypeInterface;
|
|
72
|
-
endpoint: string;
|
|
26
|
+
interface RoleIdConfig {
|
|
27
|
+
Administrator: string;
|
|
28
|
+
CompanyAdministrator: string;
|
|
29
|
+
[key: string]: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Configure role IDs for the library
|
|
33
|
+
* Call this at app startup to provide role ID constants
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import { configureRoles } from "@carlonicora/nextjs-jsonapi";
|
|
38
|
+
* import { RoleId } from "@phlow/shared";
|
|
39
|
+
*
|
|
40
|
+
* configureRoles(RoleId);
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
declare function configureRoles(roleId: RoleIdConfig): void;
|
|
44
|
+
/**
|
|
45
|
+
* Get configured role IDs
|
|
46
|
+
* @throws Error if roles not configured
|
|
47
|
+
*/
|
|
48
|
+
declare function getRoleId(): RoleIdConfig;
|
|
49
|
+
/**
|
|
50
|
+
* Check if roles have been configured
|
|
51
|
+
*/
|
|
52
|
+
declare function isRolesConfigured(): boolean;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Token parameters for authentication cookie management
|
|
56
|
+
*/
|
|
57
|
+
interface TokenParams {
|
|
58
|
+
token?: string;
|
|
59
|
+
refreshToken?: string;
|
|
60
|
+
userId?: string;
|
|
73
61
|
companyId?: string;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
62
|
+
licenseExpirationDate?: Date;
|
|
63
|
+
roles?: string[];
|
|
64
|
+
features?: string[];
|
|
65
|
+
modules?: {
|
|
66
|
+
id: string;
|
|
67
|
+
permissions: {
|
|
68
|
+
create: boolean | string;
|
|
69
|
+
read: boolean | string;
|
|
70
|
+
update: boolean | string;
|
|
71
|
+
delete: boolean | string;
|
|
72
|
+
};
|
|
73
|
+
}[];
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Token handler interface for dependency injection
|
|
77
|
+
* Apps must provide implementations of these functions via configureAuth()
|
|
78
|
+
*/
|
|
79
|
+
interface TokenHandler {
|
|
80
|
+
updateToken: (params: TokenParams) => Promise<void>;
|
|
81
|
+
removeToken: () => Promise<void>;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Configure authentication token handling
|
|
85
|
+
* Call this at app startup to provide Server Actions for cookie management
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```typescript
|
|
89
|
+
* import { configureAuth } from "@carlonicora/nextjs-jsonapi/features";
|
|
90
|
+
* import { updateToken, removeToken } from "@/features/auth/utils/AuthCookies";
|
|
91
|
+
*
|
|
92
|
+
* configureAuth({ updateToken, removeToken });
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
declare function configureAuth(handler: TokenHandler): void;
|
|
96
|
+
/**
|
|
97
|
+
* Internal getter for AuthService to access the token handler
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
declare function getTokenHandler(): TokenHandler | null;
|
|
77
101
|
|
|
78
|
-
export {
|
|
102
|
+
export { type RoleIdConfig, type TokenHandler, type TokenParams, configureAuth, configureDiscord, configureRoles, getRoleId, getTokenHandler, isRolesConfigured };
|