@carlonicora/nextjs-jsonapi 1.16.0 → 1.17.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/ApiData-DPKNfY-9.d.mts +10 -0
- package/dist/ApiData-DPKNfY-9.d.ts +10 -0
- package/dist/ApiRequestDataTypeInterface-DIEOFn9s.d.mts +40 -0
- package/dist/ApiRequestDataTypeInterface-DIEOFn9s.d.ts +40 -0
- package/dist/{ApiResponseInterface-BvWIeLkq.d.ts → ApiResponseInterface-BKyod24U.d.ts} +2 -11
- package/dist/{ApiResponseInterface-CAbw0sv7.d.mts → ApiResponseInterface-Dqvu09tz.d.mts} +2 -11
- package/dist/{BlockNoteEditor-MBFDWP7X.js → BlockNoteEditor-34T5CY27.js} +17 -16
- package/dist/BlockNoteEditor-34T5CY27.js.map +1 -0
- package/dist/{BlockNoteEditor-HFX7Z5BQ.mjs → BlockNoteEditor-4Z6TZBJE.mjs} +7 -6
- package/dist/{BlockNoteEditor-HFX7Z5BQ.mjs.map → BlockNoteEditor-4Z6TZBJE.mjs.map} +1 -1
- package/dist/JsonApiContext-Bsm_Q2oe.d.mts +41 -0
- package/dist/JsonApiContext-Bsm_Q2oe.d.ts +41 -0
- package/dist/JsonApiRequest-54ZBO7WQ.js +24 -0
- package/dist/{JsonApiRequest-45CLE65I.js.map → JsonApiRequest-54ZBO7WQ.js.map} +1 -1
- package/dist/{JsonApiRequest-6IPS3DZJ.mjs → JsonApiRequest-XWQWTFEQ.mjs} +2 -2
- package/dist/chunk-3EPNHTMH.js +26 -0
- package/dist/chunk-3EPNHTMH.js.map +1 -0
- package/dist/{chunk-BCKYJQ3K.mjs → chunk-3VM3WAOV.mjs} +1 -1
- package/dist/{chunk-R5QSSISB.js → chunk-7DTKRMYW.js} +21 -14
- package/dist/chunk-7DTKRMYW.js.map +1 -0
- package/dist/{chunk-ONB2DAIV.js → chunk-D7H7SRWB.js} +455 -470
- package/dist/chunk-D7H7SRWB.js.map +1 -0
- package/dist/{chunk-BCQSE3EU.mjs → chunk-KUFWHMMY.mjs} +8 -8
- package/dist/{chunk-POKIJ56Q.mjs → chunk-KX7YG6LY.mjs} +22 -15
- package/dist/chunk-KX7YG6LY.mjs.map +1 -0
- package/dist/{chunk-GPGJNTHP.js → chunk-LI6CPNJI.js} +1 -1
- package/dist/{chunk-GPGJNTHP.js.map → chunk-LI6CPNJI.js.map} +1 -1
- package/dist/{chunk-5RAUCUAA.mjs → chunk-SXPXC2TY.mjs} +18 -33
- package/dist/chunk-SXPXC2TY.mjs.map +1 -0
- package/dist/{chunk-2AZLCF6D.js → chunk-UYY34W7R.js} +28 -28
- package/dist/{chunk-2AZLCF6D.js.map → chunk-UYY34W7R.js.map} +1 -1
- package/dist/chunk-VOXD3ZLY.mjs +26 -0
- package/dist/chunk-VOXD3ZLY.mjs.map +1 -0
- package/dist/client/index.d.mts +11 -45
- package/dist/client/index.d.ts +11 -45
- package/dist/client/index.js +9 -7
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +11 -9
- package/dist/components/index.d.mts +4 -3
- package/dist/components/index.d.ts +4 -3
- package/dist/components/index.js +7 -6
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +6 -5
- package/dist/{config-DEaUbBqR.d.ts → config--nwiW74Z.d.ts} +1 -1
- package/dist/{config-CWsTwnsK.d.mts → config-BKSQmUWU.d.mts} +1 -1
- package/dist/{content.interface-D_4b4RQt.d.ts → content.interface-4VICFRA0.d.ts} +2 -1
- package/dist/{content.interface-Dk4UZcJM.d.mts → content.interface-CFc97-Cj.d.mts} +2 -1
- package/dist/contexts/index.d.mts +3 -2
- package/dist/contexts/index.d.ts +3 -2
- package/dist/contexts/index.js +7 -6
- package/dist/contexts/index.js.map +1 -1
- package/dist/contexts/index.mjs +6 -5
- package/dist/core/index.d.mts +11 -8
- package/dist/core/index.d.ts +11 -8
- package/dist/core/index.js +4 -4
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +3 -3
- package/dist/index.d.mts +15 -11
- package/dist/index.d.ts +15 -11
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/{notification.interface-BllkURRm.d.ts → notification.interface-BGaPiCUM.d.mts} +2 -40
- package/dist/{notification.interface-BllkURRm.d.mts → notification.interface-CqwaOIgM.d.ts} +2 -40
- package/dist/{s3.service-BEfGqho0.d.ts → s3.service-BYs88XEE.d.ts} +3 -2
- package/dist/{s3.service-DIQRYe93.d.mts → s3.service-C0BjOdvn.d.mts} +3 -2
- package/dist/server/index.d.mts +6 -4
- package/dist/server/index.d.ts +6 -4
- package/dist/server/index.js +13 -13
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/{stripe-subscription.interface-C63L6hVg.d.mts → stripe-subscription.interface-B-TM40Io.d.ts} +1 -1
- package/dist/{stripe-subscription.interface-CUvNDvw5.d.ts → stripe-subscription.interface-DDxnpj0F.d.mts} +1 -1
- package/dist/testing/index.d.mts +338 -0
- package/dist/testing/index.d.ts +338 -0
- package/dist/testing/index.js +323 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/index.mjs +323 -0
- package/dist/testing/index.mjs.map +1 -0
- package/dist/{useSocket-BpenBR2z.d.mts → useSocket-BNj9PrRw.d.mts} +1 -1
- package/dist/{useSocket-D-QYA0Sr.d.ts → useSocket-Dwt8cz1x.d.ts} +1 -1
- package/package.json +21 -3
- package/src/client/hooks/__tests__/useJsonApiGet.test.tsx +229 -0
- package/src/client/hooks/__tests__/useJsonApiMutation.test.tsx +348 -0
- package/src/client/hooks/__tests__/useRehydration.test.ts +188 -0
- package/src/components/forms/__tests__/FormCheckbox.test.tsx +238 -0
- package/src/components/forms/__tests__/FormDate.test.tsx +212 -0
- package/src/components/forms/__tests__/FormInput.test.tsx +292 -0
- package/src/components/forms/__tests__/FormSelect.test.tsx +173 -0
- package/src/components/tables/__tests__/ContentListTable.test.tsx +411 -0
- package/src/core/endpoint/__tests__/EndpointCreator.test.ts +168 -0
- package/src/core/factories/__tests__/JsonApiDataFactory.test.ts +109 -0
- package/src/core/factories/__tests__/RehydrationFactory.test.ts +151 -0
- package/src/core/registry/__tests__/DataClassRegistry.test.ts +136 -0
- package/src/core/registry/__tests__/ModuleRegistrar.test.ts +159 -0
- package/src/features/auth/components/details/LandingComponent.tsx +14 -12
- package/src/hooks/__tests__/useDataListRetriever.test.ts +321 -0
- package/src/hooks/__tests__/useDebounce.test.ts +170 -0
- package/src/index.ts +4 -1
- package/src/login/config.ts +27 -0
- package/src/login/index.ts +2 -0
- package/src/testing/factories/createMockApiData.ts +143 -0
- package/src/testing/factories/createMockModule.ts +32 -0
- package/src/testing/factories/createMockResponse.ts +93 -0
- package/src/testing/factories/createMockService.ts +79 -0
- package/src/testing/index.ts +70 -0
- package/src/testing/matchers/jsonApiMatchers.ts +174 -0
- package/src/testing/providers/MockJsonApiProvider.tsx +58 -0
- package/src/testing/utils/renderWithProviders.tsx +76 -0
- package/src/utils/__tests__/date-formatter.test.ts +161 -0
- package/src/utils/__tests__/exists.test.ts +100 -0
- package/src/utils/cn.test.ts +44 -0
- package/dist/BlockNoteEditor-MBFDWP7X.js.map +0 -1
- package/dist/JsonApiRequest-45CLE65I.js +0 -24
- package/dist/chunk-5RAUCUAA.mjs.map +0 -1
- package/dist/chunk-ONB2DAIV.js.map +0 -1
- package/dist/chunk-POKIJ56Q.mjs.map +0 -1
- package/dist/chunk-R5QSSISB.js.map +0 -1
- package/src/discord/config.ts +0 -15
- package/src/discord/index.ts +0 -1
- /package/dist/{JsonApiRequest-6IPS3DZJ.mjs.map → JsonApiRequest-XWQWTFEQ.mjs.map} +0 -0
- /package/dist/{chunk-BCKYJQ3K.mjs.map → chunk-3VM3WAOV.mjs.map} +0 -0
- /package/dist/{chunk-BCQSE3EU.mjs.map → chunk-KUFWHMMY.mjs.map} +0 -0
package/dist/contexts/index.js
CHANGED
|
@@ -18,12 +18,13 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
22
|
-
require('../chunk-
|
|
23
|
-
require('../chunk-
|
|
24
|
-
require('../chunk-IBS6NI7D.js');
|
|
25
|
-
require('../chunk-GPGJNTHP.js');
|
|
21
|
+
var _chunkD7H7SRWBjs = require('../chunk-D7H7SRWB.js');
|
|
22
|
+
require('../chunk-7DTKRMYW.js');
|
|
23
|
+
require('../chunk-UYY34W7R.js');
|
|
26
24
|
require('../chunk-LXKSUWAV.js');
|
|
25
|
+
require('../chunk-IBS6NI7D.js');
|
|
26
|
+
require('../chunk-LI6CPNJI.js');
|
|
27
|
+
require('../chunk-3EPNHTMH.js');
|
|
27
28
|
require('../chunk-7QVYU63E.js');
|
|
28
29
|
|
|
29
30
|
|
|
@@ -44,5 +45,5 @@ require('../chunk-7QVYU63E.js');
|
|
|
44
45
|
|
|
45
46
|
|
|
46
47
|
|
|
47
|
-
exports.CommonProvider =
|
|
48
|
+
exports.CommonProvider = _chunkD7H7SRWBjs.CommonProvider; exports.CompanyProvider = _chunkD7H7SRWBjs.CompanyProvider; exports.CurrentUserProvider = _chunkD7H7SRWBjs.CurrentUserProvider; exports.NotificationContextProvider = _chunkD7H7SRWBjs.NotificationContextProvider; exports.RoleProvider = _chunkD7H7SRWBjs.RoleProvider; exports.SharedProvider = _chunkD7H7SRWBjs.SharedProvider; exports.SocketContext = _chunkD7H7SRWBjs.SocketContext; exports.SocketProvider = _chunkD7H7SRWBjs.SocketProvider; exports.UserProvider = _chunkD7H7SRWBjs.UserProvider; exports.recentPagesAtom = _chunkD7H7SRWBjs.recentPagesAtom; exports.useCommonContext = _chunkD7H7SRWBjs.useCommonContext; exports.useCompanyContext = _chunkD7H7SRWBjs.useCompanyContext; exports.useCurrentUserContext = _chunkD7H7SRWBjs.useCurrentUserContext; exports.useNotificationContext = _chunkD7H7SRWBjs.useNotificationContext; exports.useRoleContext = _chunkD7H7SRWBjs.useRoleContext; exports.useSharedContext = _chunkD7H7SRWBjs.useSharedContext; exports.useSocketContext = _chunkD7H7SRWBjs.useSocketContext; exports.useUserContext = _chunkD7H7SRWBjs.useUserContext;
|
|
48
49
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/contexts/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,imCAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/contexts/index.js"}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/contexts/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,imCAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/contexts/index.js"}
|
package/dist/contexts/index.mjs
CHANGED
|
@@ -18,12 +18,13 @@ import {
|
|
|
18
18
|
useSharedContext,
|
|
19
19
|
useSocketContext,
|
|
20
20
|
useUserContext
|
|
21
|
-
} from "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-C7C7VY4F.mjs";
|
|
25
|
-
import "../chunk-BCKYJQ3K.mjs";
|
|
21
|
+
} from "../chunk-SXPXC2TY.mjs";
|
|
22
|
+
import "../chunk-KX7YG6LY.mjs";
|
|
23
|
+
import "../chunk-KUFWHMMY.mjs";
|
|
26
24
|
import "../chunk-AUXK7QSA.mjs";
|
|
25
|
+
import "../chunk-C7C7VY4F.mjs";
|
|
26
|
+
import "../chunk-3VM3WAOV.mjs";
|
|
27
|
+
import "../chunk-VOXD3ZLY.mjs";
|
|
27
28
|
import "../chunk-PAWJFY3S.mjs";
|
|
28
29
|
export {
|
|
29
30
|
CommonProvider,
|
package/dist/core/index.d.mts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { A as ApiData
|
|
2
|
-
import { A as ApiDataInterface, J as JsonApiHydratedDataInterface, a as ApiRequestDataTypeInterface,
|
|
3
|
-
export { G as GetterKeys,
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { A as ApiData } from '../ApiData-DPKNfY-9.mjs';
|
|
2
|
+
import { A as ApiDataInterface, J as JsonApiHydratedDataInterface, a as ApiRequestDataTypeInterface, F as FieldSelector } from '../ApiRequestDataTypeInterface-DIEOFn9s.mjs';
|
|
3
|
+
export { G as GetterKeys, c as createJsonApiInclusion } from '../ApiRequestDataTypeInterface-DIEOFn9s.mjs';
|
|
4
|
+
import { A as ApiResponseInterface } from '../ApiResponseInterface-Dqvu09tz.mjs';
|
|
5
|
+
import { c as AuthInterface, a as AuthInput, A as AbstractService, N as NextRef, P as PreviousRef, j as S3Interface, i as S3Input } from '../s3.service-C0BjOdvn.mjs';
|
|
6
|
+
export { b as AuthQuery, d as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, f as NotificationService, h as PushService, R as RoleService, k as S3Service, S as SelfRef, U as UserService, g as getGlobalErrorHandler, s as setGlobalErrorHandler } from '../s3.service-C0BjOdvn.mjs';
|
|
7
|
+
import { M as ModuleWithPermissions, f as PermissionUser, A as Action, e as PermissionModule, g as ModuleFactory, i as ModuleInterface, F as FeatureInterface, k as RoleInterface, R as RoleInput, h as CompanyInterface, C as CompanyInput, U as UserInterface, l as UserInput, N as NotificationInterface, j as NotificationInput } from '../notification.interface-BGaPiCUM.mjs';
|
|
8
|
+
export { c as ModuleDefinition, b as ModulePermissionDefinition, a as PageUrl, P as PermissionCheck, d as PermissionConfig } from '../notification.interface-BGaPiCUM.mjs';
|
|
6
9
|
export { B as BreadcrumbItemData } from '../breadcrumb.item.data.interface-CgB4_1EE.mjs';
|
|
7
10
|
export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from '../content.fields-Ck5lkQ5d.mjs';
|
|
8
11
|
import { ClassValue } from 'clsx';
|
|
@@ -12,9 +15,9 @@ import { ReactElement, ReactNode } from 'react';
|
|
|
12
15
|
import { z } from 'zod';
|
|
13
16
|
import { PartialBlock } from '@blocknote/core';
|
|
14
17
|
import { LucideIcon } from 'lucide-react';
|
|
15
|
-
import { M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, S as StripeCustomerInterface, a as StripeInvoiceInterface, j as StripeSubscriptionInterface, I as InvoiceStatus, g as StripeProductInterface, d as StripePriceInterface, h as StripeProductInput, e as PriceRecurring, f as StripePriceInput, i as SubscriptionStatus, k as StripeSubscriptionInput, m as StripeSubscriptionCreateResponse, b as ProrationPreviewInterface, n as StripeUsageInterface, R as ReportUsageInput, U as UsageSummaryInterface } from '../stripe-subscription.interface-
|
|
16
|
-
export { A as AuthComponent, c as ProrationLineItem, l as StripeSubscriptionCreateMeta, p as UsageRecordInterface } from '../stripe-subscription.interface-
|
|
17
|
-
import { a as ContentInterface, C as ContentInput } from '../content.interface-
|
|
18
|
+
import { M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, S as StripeCustomerInterface, a as StripeInvoiceInterface, j as StripeSubscriptionInterface, I as InvoiceStatus, g as StripeProductInterface, d as StripePriceInterface, h as StripeProductInput, e as PriceRecurring, f as StripePriceInput, i as SubscriptionStatus, k as StripeSubscriptionInput, m as StripeSubscriptionCreateResponse, b as ProrationPreviewInterface, n as StripeUsageInterface, R as ReportUsageInput, U as UsageSummaryInterface } from '../stripe-subscription.interface-DDxnpj0F.mjs';
|
|
19
|
+
export { A as AuthComponent, c as ProrationLineItem, l as StripeSubscriptionCreateMeta, p as UsageRecordInterface } from '../stripe-subscription.interface-DDxnpj0F.mjs';
|
|
20
|
+
import { a as ContentInterface, C as ContentInput } from '../content.interface-CFc97-Cj.mjs';
|
|
18
21
|
import 'd3';
|
|
19
22
|
|
|
20
23
|
declare abstract class AbstractApiData implements ApiDataInterface {
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { A as ApiData
|
|
2
|
-
import { A as ApiDataInterface, J as JsonApiHydratedDataInterface, a as ApiRequestDataTypeInterface,
|
|
3
|
-
export { G as GetterKeys,
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { A as ApiData } from '../ApiData-DPKNfY-9.js';
|
|
2
|
+
import { A as ApiDataInterface, J as JsonApiHydratedDataInterface, a as ApiRequestDataTypeInterface, F as FieldSelector } from '../ApiRequestDataTypeInterface-DIEOFn9s.js';
|
|
3
|
+
export { G as GetterKeys, c as createJsonApiInclusion } from '../ApiRequestDataTypeInterface-DIEOFn9s.js';
|
|
4
|
+
import { A as ApiResponseInterface } from '../ApiResponseInterface-BKyod24U.js';
|
|
5
|
+
import { c as AuthInterface, a as AuthInput, A as AbstractService, N as NextRef, P as PreviousRef, j as S3Interface, i as S3Input } from '../s3.service-BYs88XEE.js';
|
|
6
|
+
export { b as AuthQuery, d as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, f as NotificationService, h as PushService, R as RoleService, k as S3Service, S as SelfRef, U as UserService, g as getGlobalErrorHandler, s as setGlobalErrorHandler } from '../s3.service-BYs88XEE.js';
|
|
7
|
+
import { M as ModuleWithPermissions, f as PermissionUser, A as Action, e as PermissionModule, g as ModuleFactory, i as ModuleInterface, F as FeatureInterface, k as RoleInterface, R as RoleInput, h as CompanyInterface, C as CompanyInput, U as UserInterface, l as UserInput, N as NotificationInterface, j as NotificationInput } from '../notification.interface-CqwaOIgM.js';
|
|
8
|
+
export { c as ModuleDefinition, b as ModulePermissionDefinition, a as PageUrl, P as PermissionCheck, d as PermissionConfig } from '../notification.interface-CqwaOIgM.js';
|
|
6
9
|
export { B as BreadcrumbItemData } from '../breadcrumb.item.data.interface-CgB4_1EE.js';
|
|
7
10
|
export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from '../content.fields-Ck5lkQ5d.js';
|
|
8
11
|
import { ClassValue } from 'clsx';
|
|
@@ -12,9 +15,9 @@ import { ReactElement, ReactNode } from 'react';
|
|
|
12
15
|
import { z } from 'zod';
|
|
13
16
|
import { PartialBlock } from '@blocknote/core';
|
|
14
17
|
import { LucideIcon } from 'lucide-react';
|
|
15
|
-
import { M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, S as StripeCustomerInterface, a as StripeInvoiceInterface, j as StripeSubscriptionInterface, I as InvoiceStatus, g as StripeProductInterface, d as StripePriceInterface, h as StripeProductInput, e as PriceRecurring, f as StripePriceInput, i as SubscriptionStatus, k as StripeSubscriptionInput, m as StripeSubscriptionCreateResponse, b as ProrationPreviewInterface, n as StripeUsageInterface, R as ReportUsageInput, U as UsageSummaryInterface } from '../stripe-subscription.interface-
|
|
16
|
-
export { A as AuthComponent, c as ProrationLineItem, l as StripeSubscriptionCreateMeta, p as UsageRecordInterface } from '../stripe-subscription.interface-
|
|
17
|
-
import { a as ContentInterface, C as ContentInput } from '../content.interface-
|
|
18
|
+
import { M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, S as StripeCustomerInterface, a as StripeInvoiceInterface, j as StripeSubscriptionInterface, I as InvoiceStatus, g as StripeProductInterface, d as StripePriceInterface, h as StripeProductInput, e as PriceRecurring, f as StripePriceInput, i as SubscriptionStatus, k as StripeSubscriptionInput, m as StripeSubscriptionCreateResponse, b as ProrationPreviewInterface, n as StripeUsageInterface, R as ReportUsageInput, U as UsageSummaryInterface } from '../stripe-subscription.interface-B-TM40Io.js';
|
|
19
|
+
export { A as AuthComponent, c as ProrationLineItem, l as StripeSubscriptionCreateMeta, p as UsageRecordInterface } from '../stripe-subscription.interface-B-TM40Io.js';
|
|
20
|
+
import { a as ContentInterface, C as ContentInput } from '../content.interface-4VICFRA0.js';
|
|
18
21
|
import 'd3';
|
|
19
22
|
|
|
20
23
|
declare abstract class AbstractApiData implements ApiDataInterface {
|
package/dist/core/index.js
CHANGED
|
@@ -100,7 +100,8 @@
|
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
|
|
103
|
-
var
|
|
103
|
+
var _chunkUYY34W7Rjs = require('../chunk-UYY34W7R.js');
|
|
104
|
+
require('../chunk-LXKSUWAV.js');
|
|
104
105
|
require('../chunk-IBS6NI7D.js');
|
|
105
106
|
|
|
106
107
|
|
|
@@ -112,8 +113,7 @@ require('../chunk-IBS6NI7D.js');
|
|
|
112
113
|
|
|
113
114
|
|
|
114
115
|
|
|
115
|
-
var
|
|
116
|
-
require('../chunk-LXKSUWAV.js');
|
|
116
|
+
var _chunkLI6CPNJIjs = require('../chunk-LI6CPNJI.js');
|
|
117
117
|
require('../chunk-7QVYU63E.js');
|
|
118
118
|
|
|
119
119
|
|
|
@@ -227,5 +227,5 @@ require('../chunk-7QVYU63E.js');
|
|
|
227
227
|
|
|
228
228
|
|
|
229
229
|
|
|
230
|
-
exports.AbstractApiData =
|
|
230
|
+
exports.AbstractApiData = _chunkUYY34W7Rjs.AbstractApiData; exports.AbstractService = _chunkUYY34W7Rjs.AbstractService; exports.Action = _chunkUYY34W7Rjs.Action; exports.Auth = _chunkUYY34W7Rjs.Auth; exports.AuthComponent = _chunkUYY34W7Rjs.AuthComponent; exports.AuthModule = _chunkUYY34W7Rjs.AuthModule; exports.AuthService = _chunkUYY34W7Rjs.AuthService; exports.AuthorModule = _chunkUYY34W7Rjs.AuthorModule; exports.Billing = _chunkUYY34W7Rjs.Billing; exports.BillingModule = _chunkUYY34W7Rjs.BillingModule; exports.BillingService = _chunkUYY34W7Rjs.BillingService; exports.BlockNoteDiffUtil = _chunkUYY34W7Rjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkUYY34W7Rjs.BlockNoteWordDiffRendererUtil; exports.ClientAbstractService = _chunkUYY34W7Rjs.ClientAbstractService; exports.ClientHttpMethod = _chunkUYY34W7Rjs.ClientHttpMethod; exports.Company = _chunkUYY34W7Rjs.Company; exports.CompanyFields = _chunkUYY34W7Rjs.CompanyFields; exports.CompanyModule = _chunkUYY34W7Rjs.CompanyModule; exports.CompanyService = _chunkUYY34W7Rjs.CompanyService; exports.Content = _chunkUYY34W7Rjs.Content; exports.ContentFields = _chunkUYY34W7Rjs.ContentFields; exports.ContentModule = _chunkUYY34W7Rjs.ContentModule; exports.ContentService = _chunkUYY34W7Rjs.ContentService; exports.DataClass = _chunkLI6CPNJIjs.DataClassRegistry; exports.DataClassRegistry = _chunkLI6CPNJIjs.DataClassRegistry; exports.EndpointCreator = _chunkUYY34W7Rjs.EndpointCreator; exports.Feature = _chunkUYY34W7Rjs.Feature; exports.FeatureModule = _chunkUYY34W7Rjs.FeatureModule; exports.FeatureService = _chunkUYY34W7Rjs.FeatureService; exports.HttpMethod = _chunkUYY34W7Rjs.HttpMethod; exports.InvoiceStatus = _chunkUYY34W7Rjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkLI6CPNJIjs.JsonApiDataFactory; exports.Module = _chunkUYY34W7Rjs.Module; exports.ModuleModule = _chunkUYY34W7Rjs.ModuleModule; exports.ModuleRegistrar = _chunkUYY34W7Rjs.ModuleRegistrar; exports.ModuleRegistry = _chunkUYY34W7Rjs.ModuleRegistry; exports.Modules = _chunkUYY34W7Rjs.Modules; exports.Notification = _chunkUYY34W7Rjs.Notification; exports.NotificationFields = _chunkUYY34W7Rjs.NotificationFields; exports.NotificationModule = _chunkUYY34W7Rjs.NotificationModule; exports.NotificationService = _chunkUYY34W7Rjs.NotificationService; exports.PaymentMethod = _chunkUYY34W7Rjs.PaymentMethod; exports.Push = _chunkUYY34W7Rjs.Push; exports.PushModule = _chunkUYY34W7Rjs.PushModule; exports.PushService = _chunkUYY34W7Rjs.PushService; exports.RehydrationFactory = _chunkUYY34W7Rjs.RehydrationFactory; exports.Role = _chunkUYY34W7Rjs.Role; exports.RoleFields = _chunkUYY34W7Rjs.RoleFields; exports.RoleModule = _chunkUYY34W7Rjs.RoleModule; exports.RoleService = _chunkUYY34W7Rjs.RoleService; exports.S3 = _chunkUYY34W7Rjs.S3; exports.S3Module = _chunkUYY34W7Rjs.S3Module; exports.S3Service = _chunkUYY34W7Rjs.S3Service; exports.StripeCustomer = _chunkUYY34W7Rjs.StripeCustomer; exports.StripeCustomerModule = _chunkUYY34W7Rjs.StripeCustomerModule; exports.StripeCustomerService = _chunkUYY34W7Rjs.StripeCustomerService; exports.StripeInvoice = _chunkUYY34W7Rjs.StripeInvoice; exports.StripeInvoiceModule = _chunkUYY34W7Rjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkUYY34W7Rjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkUYY34W7Rjs.StripePaymentMethodModule; exports.StripePrice = _chunkUYY34W7Rjs.StripePrice; exports.StripePriceModule = _chunkUYY34W7Rjs.StripePriceModule; exports.StripePriceService = _chunkUYY34W7Rjs.StripePriceService; exports.StripeProduct = _chunkUYY34W7Rjs.StripeProduct; exports.StripeProductModule = _chunkUYY34W7Rjs.StripeProductModule; exports.StripeProductService = _chunkUYY34W7Rjs.StripeProductService; exports.StripeSubscription = _chunkUYY34W7Rjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkUYY34W7Rjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkUYY34W7Rjs.StripeSubscriptionService; exports.StripeUsage = _chunkUYY34W7Rjs.StripeUsage; exports.StripeUsageModule = _chunkUYY34W7Rjs.StripeUsageModule; exports.StripeUsageService = _chunkUYY34W7Rjs.StripeUsageService; exports.SubscriptionStatus = _chunkUYY34W7Rjs.SubscriptionStatus; exports.TableOptions = _chunkUYY34W7Rjs.TableOptions; exports.User = _chunkUYY34W7Rjs.User; exports.UserFields = _chunkUYY34W7Rjs.UserFields; exports.UserModule = _chunkUYY34W7Rjs.UserModule; exports.UserService = _chunkUYY34W7Rjs.UserService; exports.checkPermissions = _chunkUYY34W7Rjs.checkPermissions; exports.checkPermissionsFromServer = _chunkUYY34W7Rjs.checkPermissionsFromServer; exports.cn = _chunkUYY34W7Rjs.cn; exports.composeRefs = _chunkUYY34W7Rjs.composeRefs; exports.createJsonApiInclusion = _chunkUYY34W7Rjs.createJsonApiInclusion; exports.entityObjectSchema = _chunkUYY34W7Rjs.entityObjectSchema; exports.exists = _chunkUYY34W7Rjs.exists; exports.formatDate = _chunkUYY34W7Rjs.formatDate; exports.getBootstrapper = _chunkLI6CPNJIjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkUYY34W7Rjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkUYY34W7Rjs.getGlobalErrorHandler; exports.getIcon = _chunkUYY34W7Rjs.getIcon; exports.getIconByModule = _chunkUYY34W7Rjs.getIconByModule; exports.getIconByModuleName = _chunkUYY34W7Rjs.getIconByModuleName; exports.getLucideIcon = _chunkUYY34W7Rjs.getLucideIcon; exports.getLucideIconByModule = _chunkUYY34W7Rjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkUYY34W7Rjs.getLucideIconByModuleName; exports.getTableComponents = _chunkUYY34W7Rjs.getTableComponents; exports.getTableOptions = _chunkUYY34W7Rjs.getTableOptions; exports.getValueFromPath = _chunkUYY34W7Rjs.getValueFromPath; exports.hasBootstrapper = _chunkLI6CPNJIjs.hasBootstrapper; exports.rehydrate = _chunkUYY34W7Rjs.rehydrate; exports.rehydrateList = _chunkUYY34W7Rjs.rehydrateList; exports.resetBootstrapStore = _chunkLI6CPNJIjs.resetBootstrapStore; exports.setBootstrapper = _chunkLI6CPNJIjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkUYY34W7Rjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkUYY34W7Rjs.setGlobalErrorHandler; exports.translateData = _chunkLI6CPNJIjs.translateData; exports.translateResponse = _chunkLI6CPNJIjs.translateResponse; exports.tryBootstrap = _chunkLI6CPNJIjs.tryBootstrap; exports.useComposedRefs = _chunkUYY34W7Rjs.useComposedRefs; exports.useIsMobile = _chunkUYY34W7Rjs.useIsMobile; exports.userObjectSchema = _chunkUYY34W7Rjs.userObjectSchema;
|
|
231
231
|
//# 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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B
|
|
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;AACA;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,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,61MAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/core/index.js"}
|
package/dist/core/index.mjs
CHANGED
|
@@ -100,7 +100,8 @@ import {
|
|
|
100
100
|
useComposedRefs,
|
|
101
101
|
useIsMobile,
|
|
102
102
|
userObjectSchema
|
|
103
|
-
} from "../chunk-
|
|
103
|
+
} from "../chunk-KUFWHMMY.mjs";
|
|
104
|
+
import "../chunk-AUXK7QSA.mjs";
|
|
104
105
|
import "../chunk-C7C7VY4F.mjs";
|
|
105
106
|
import {
|
|
106
107
|
DataClassRegistry,
|
|
@@ -112,8 +113,7 @@ import {
|
|
|
112
113
|
translateData,
|
|
113
114
|
translateResponse,
|
|
114
115
|
tryBootstrap
|
|
115
|
-
} from "../chunk-
|
|
116
|
-
import "../chunk-AUXK7QSA.mjs";
|
|
116
|
+
} from "../chunk-3VM3WAOV.mjs";
|
|
117
117
|
import "../chunk-PAWJFY3S.mjs";
|
|
118
118
|
export {
|
|
119
119
|
AbstractApiData,
|
package/dist/index.d.mts
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
|
-
export { A as ApiData
|
|
2
|
-
export {
|
|
1
|
+
export { A as ApiData } from './ApiData-DPKNfY-9.mjs';
|
|
2
|
+
export { A as ApiDataInterface, a as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys, J as JsonApiHydratedDataInterface, c as createJsonApiInclusion } from './ApiRequestDataTypeInterface-DIEOFn9s.mjs';
|
|
3
|
+
export { A as ApiResponseInterface } from './ApiResponseInterface-Dqvu09tz.mjs';
|
|
3
4
|
export { AbstractApiData, AppModuleDefinitions, Auth, AuthModule, AuthorModule, Billing, BillingModule, BillingService, 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, PaymentMethod, Push, PushInput, PushInterface, PushModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, User, UserModule, UserObject, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getIcon, getIconByModule, getIconByModuleName, getLucideIcon, getLucideIconByModule, getLucideIconByModuleName, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, translateData, translateResponse, tryBootstrap, 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-
|
|
5
|
+
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-C0BjOdvn.mjs';
|
|
5
6
|
export { B as BreadcrumbItemData } from './breadcrumb.item.data.interface-CgB4_1EE.mjs';
|
|
6
7
|
export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-Ck5lkQ5d.mjs';
|
|
7
8
|
export { ClassValue } from 'clsx';
|
|
8
|
-
export { A as
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
|
|
9
|
+
export { A as Action, C as CompanyInput, h as CompanyInterface, F as FeatureInterface, c as ModuleDefinition, g as ModuleFactory, i as ModuleInterface, b as ModulePermissionDefinition, M as ModuleWithPermissions, j as NotificationInput, N as NotificationInterface, a as PageUrl, P as PermissionCheck, d as PermissionConfig, e as PermissionModule, f as PermissionUser, R as RoleInput, k as RoleInterface, l as UserInput, U as UserInterface } from './notification.interface-BGaPiCUM.mjs';
|
|
10
|
+
export { A as AuthComponent, I as InvoiceStatus, M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, e as PriceRecurring, 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-subscription.interface-DDxnpj0F.mjs';
|
|
11
|
+
export { C as ContentInput, a as ContentInterface } from './content.interface-CFc97-Cj.mjs';
|
|
12
|
+
export { I as I18nConfig, e as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, d as getStripePublishableKey, b as getTrackablePages } from './config-BKSQmUWU.mjs';
|
|
12
13
|
import 'react';
|
|
13
14
|
import 'zod';
|
|
14
15
|
import '@blocknote/core';
|
|
16
|
+
import 'lucide-react';
|
|
15
17
|
import 'd3';
|
|
16
18
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
interface LoginConfig {
|
|
20
|
+
useDiscordAuth: boolean;
|
|
19
21
|
useInternalAuth: boolean;
|
|
20
|
-
|
|
22
|
+
allowRegistration?: boolean;
|
|
23
|
+
}
|
|
24
|
+
declare function configureLogin(params: LoginConfig): void;
|
|
21
25
|
|
|
22
26
|
/**
|
|
23
27
|
* Role ID configuration interface
|
|
@@ -99,4 +103,4 @@ declare function configureAuth(handler: TokenHandler): void;
|
|
|
99
103
|
*/
|
|
100
104
|
declare function getTokenHandler(): TokenHandler | null;
|
|
101
105
|
|
|
102
|
-
export { type RoleIdConfig, type TokenHandler, type TokenParams, configureAuth,
|
|
106
|
+
export { type LoginConfig, type RoleIdConfig, type TokenHandler, type TokenParams, configureAuth, configureLogin, configureRoles, getRoleId, getTokenHandler, isRolesConfigured };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
|
-
export { A as ApiData
|
|
2
|
-
export {
|
|
1
|
+
export { A as ApiData } from './ApiData-DPKNfY-9.js';
|
|
2
|
+
export { A as ApiDataInterface, a as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys, J as JsonApiHydratedDataInterface, c as createJsonApiInclusion } from './ApiRequestDataTypeInterface-DIEOFn9s.js';
|
|
3
|
+
export { A as ApiResponseInterface } from './ApiResponseInterface-BKyod24U.js';
|
|
3
4
|
export { AbstractApiData, AppModuleDefinitions, Auth, AuthModule, AuthorModule, Billing, BillingModule, BillingService, 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, PaymentMethod, Push, PushInput, PushInterface, PushModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, User, UserModule, UserObject, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getIcon, getIconByModule, getIconByModuleName, getLucideIcon, getLucideIconByModule, getLucideIconByModuleName, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, translateData, translateResponse, tryBootstrap, 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-
|
|
5
|
+
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-BYs88XEE.js';
|
|
5
6
|
export { B as BreadcrumbItemData } from './breadcrumb.item.data.interface-CgB4_1EE.js';
|
|
6
7
|
export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-Ck5lkQ5d.js';
|
|
7
8
|
export { ClassValue } from 'clsx';
|
|
8
|
-
export { A as
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
|
|
9
|
+
export { A as Action, C as CompanyInput, h as CompanyInterface, F as FeatureInterface, c as ModuleDefinition, g as ModuleFactory, i as ModuleInterface, b as ModulePermissionDefinition, M as ModuleWithPermissions, j as NotificationInput, N as NotificationInterface, a as PageUrl, P as PermissionCheck, d as PermissionConfig, e as PermissionModule, f as PermissionUser, R as RoleInput, k as RoleInterface, l as UserInput, U as UserInterface } from './notification.interface-CqwaOIgM.js';
|
|
10
|
+
export { A as AuthComponent, I as InvoiceStatus, M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, e as PriceRecurring, 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-subscription.interface-B-TM40Io.js';
|
|
11
|
+
export { C as ContentInput, a as ContentInterface } from './content.interface-4VICFRA0.js';
|
|
12
|
+
export { I as I18nConfig, e as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, d as getStripePublishableKey, b as getTrackablePages } from './config--nwiW74Z.js';
|
|
12
13
|
import 'react';
|
|
13
14
|
import 'zod';
|
|
14
15
|
import '@blocknote/core';
|
|
16
|
+
import 'lucide-react';
|
|
15
17
|
import 'd3';
|
|
16
18
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
interface LoginConfig {
|
|
20
|
+
useDiscordAuth: boolean;
|
|
19
21
|
useInternalAuth: boolean;
|
|
20
|
-
|
|
22
|
+
allowRegistration?: boolean;
|
|
23
|
+
}
|
|
24
|
+
declare function configureLogin(params: LoginConfig): void;
|
|
21
25
|
|
|
22
26
|
/**
|
|
23
27
|
* Role ID configuration interface
|
|
@@ -99,4 +103,4 @@ declare function configureAuth(handler: TokenHandler): void;
|
|
|
99
103
|
*/
|
|
100
104
|
declare function getTokenHandler(): TokenHandler | null;
|
|
101
105
|
|
|
102
|
-
export { type RoleIdConfig, type TokenHandler, type TokenParams, configureAuth,
|
|
106
|
+
export { type LoginConfig, type RoleIdConfig, type TokenHandler, type TokenParams, configureAuth, configureLogin, configureRoles, getRoleId, getTokenHandler, isRolesConfigured };
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk7DTKRMYWjs = require('./chunk-7DTKRMYW.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -114,7 +114,8 @@ var _chunkR5QSSISBjs = require('./chunk-R5QSSISB.js');
|
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
|
|
117
|
-
var
|
|
117
|
+
var _chunkUYY34W7Rjs = require('./chunk-UYY34W7R.js');
|
|
118
|
+
require('./chunk-LXKSUWAV.js');
|
|
118
119
|
require('./chunk-IBS6NI7D.js');
|
|
119
120
|
|
|
120
121
|
|
|
@@ -126,8 +127,7 @@ require('./chunk-IBS6NI7D.js');
|
|
|
126
127
|
|
|
127
128
|
|
|
128
129
|
|
|
129
|
-
var
|
|
130
|
-
require('./chunk-LXKSUWAV.js');
|
|
130
|
+
var _chunkLI6CPNJIjs = require('./chunk-LI6CPNJI.js');
|
|
131
131
|
require('./chunk-7QVYU63E.js');
|
|
132
132
|
|
|
133
133
|
|
|
@@ -253,5 +253,5 @@ require('./chunk-7QVYU63E.js');
|
|
|
253
253
|
|
|
254
254
|
|
|
255
255
|
|
|
256
|
-
exports.AbstractApiData =
|
|
256
|
+
exports.AbstractApiData = _chunkUYY34W7Rjs.AbstractApiData; exports.AbstractService = _chunkUYY34W7Rjs.AbstractService; exports.Action = _chunkUYY34W7Rjs.Action; exports.Auth = _chunkUYY34W7Rjs.Auth; exports.AuthComponent = _chunkUYY34W7Rjs.AuthComponent; exports.AuthModule = _chunkUYY34W7Rjs.AuthModule; exports.AuthService = _chunkUYY34W7Rjs.AuthService; exports.AuthorModule = _chunkUYY34W7Rjs.AuthorModule; exports.Billing = _chunkUYY34W7Rjs.Billing; exports.BillingModule = _chunkUYY34W7Rjs.BillingModule; exports.BillingService = _chunkUYY34W7Rjs.BillingService; exports.BlockNoteDiffUtil = _chunkUYY34W7Rjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkUYY34W7Rjs.BlockNoteWordDiffRendererUtil; exports.ClientAbstractService = _chunkUYY34W7Rjs.ClientAbstractService; exports.ClientHttpMethod = _chunkUYY34W7Rjs.ClientHttpMethod; exports.Company = _chunkUYY34W7Rjs.Company; exports.CompanyFields = _chunkUYY34W7Rjs.CompanyFields; exports.CompanyModule = _chunkUYY34W7Rjs.CompanyModule; exports.CompanyService = _chunkUYY34W7Rjs.CompanyService; exports.Content = _chunkUYY34W7Rjs.Content; exports.ContentFields = _chunkUYY34W7Rjs.ContentFields; exports.ContentModule = _chunkUYY34W7Rjs.ContentModule; exports.ContentService = _chunkUYY34W7Rjs.ContentService; exports.DataClass = _chunkLI6CPNJIjs.DataClassRegistry; exports.DataClassRegistry = _chunkLI6CPNJIjs.DataClassRegistry; exports.EndpointCreator = _chunkUYY34W7Rjs.EndpointCreator; exports.Feature = _chunkUYY34W7Rjs.Feature; exports.FeatureModule = _chunkUYY34W7Rjs.FeatureModule; exports.FeatureService = _chunkUYY34W7Rjs.FeatureService; exports.HttpMethod = _chunkUYY34W7Rjs.HttpMethod; exports.InvoiceStatus = _chunkUYY34W7Rjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkLI6CPNJIjs.JsonApiDataFactory; exports.Module = _chunkUYY34W7Rjs.Module; exports.ModuleModule = _chunkUYY34W7Rjs.ModuleModule; exports.ModuleRegistrar = _chunkUYY34W7Rjs.ModuleRegistrar; exports.ModuleRegistry = _chunkUYY34W7Rjs.ModuleRegistry; exports.Modules = _chunkUYY34W7Rjs.Modules; exports.Notification = _chunkUYY34W7Rjs.Notification; exports.NotificationFields = _chunkUYY34W7Rjs.NotificationFields; exports.NotificationModule = _chunkUYY34W7Rjs.NotificationModule; exports.NotificationService = _chunkUYY34W7Rjs.NotificationService; exports.PaymentMethod = _chunkUYY34W7Rjs.PaymentMethod; exports.Push = _chunkUYY34W7Rjs.Push; exports.PushModule = _chunkUYY34W7Rjs.PushModule; exports.PushService = _chunkUYY34W7Rjs.PushService; exports.RehydrationFactory = _chunkUYY34W7Rjs.RehydrationFactory; exports.Role = _chunkUYY34W7Rjs.Role; exports.RoleFields = _chunkUYY34W7Rjs.RoleFields; exports.RoleModule = _chunkUYY34W7Rjs.RoleModule; exports.RoleService = _chunkUYY34W7Rjs.RoleService; exports.S3 = _chunkUYY34W7Rjs.S3; exports.S3Module = _chunkUYY34W7Rjs.S3Module; exports.S3Service = _chunkUYY34W7Rjs.S3Service; exports.StripeCustomer = _chunkUYY34W7Rjs.StripeCustomer; exports.StripeCustomerModule = _chunkUYY34W7Rjs.StripeCustomerModule; exports.StripeCustomerService = _chunkUYY34W7Rjs.StripeCustomerService; exports.StripeInvoice = _chunkUYY34W7Rjs.StripeInvoice; exports.StripeInvoiceModule = _chunkUYY34W7Rjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkUYY34W7Rjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkUYY34W7Rjs.StripePaymentMethodModule; exports.StripePrice = _chunkUYY34W7Rjs.StripePrice; exports.StripePriceModule = _chunkUYY34W7Rjs.StripePriceModule; exports.StripePriceService = _chunkUYY34W7Rjs.StripePriceService; exports.StripeProduct = _chunkUYY34W7Rjs.StripeProduct; exports.StripeProductModule = _chunkUYY34W7Rjs.StripeProductModule; exports.StripeProductService = _chunkUYY34W7Rjs.StripeProductService; exports.StripeSubscription = _chunkUYY34W7Rjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkUYY34W7Rjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkUYY34W7Rjs.StripeSubscriptionService; exports.StripeUsage = _chunkUYY34W7Rjs.StripeUsage; exports.StripeUsageModule = _chunkUYY34W7Rjs.StripeUsageModule; exports.StripeUsageService = _chunkUYY34W7Rjs.StripeUsageService; exports.SubscriptionStatus = _chunkUYY34W7Rjs.SubscriptionStatus; exports.TableOptions = _chunkUYY34W7Rjs.TableOptions; exports.User = _chunkUYY34W7Rjs.User; exports.UserFields = _chunkUYY34W7Rjs.UserFields; exports.UserModule = _chunkUYY34W7Rjs.UserModule; exports.UserService = _chunkUYY34W7Rjs.UserService; exports.checkPermissions = _chunkUYY34W7Rjs.checkPermissions; exports.checkPermissionsFromServer = _chunkUYY34W7Rjs.checkPermissionsFromServer; exports.cn = _chunkUYY34W7Rjs.cn; exports.composeRefs = _chunkUYY34W7Rjs.composeRefs; exports.configureAuth = _chunkUYY34W7Rjs.configureAuth; exports.configureI18n = _chunk7DTKRMYWjs.configureI18n; exports.configureJsonApi = _chunk7DTKRMYWjs.configureJsonApi; exports.configureLogin = _chunk7DTKRMYWjs.configureLogin; exports.configureRoles = _chunk7DTKRMYWjs.configureRoles; exports.createJsonApiInclusion = _chunkUYY34W7Rjs.createJsonApiInclusion; exports.entityObjectSchema = _chunkUYY34W7Rjs.entityObjectSchema; exports.exists = _chunkUYY34W7Rjs.exists; exports.formatDate = _chunkUYY34W7Rjs.formatDate; exports.getApiUrl = _chunk7DTKRMYWjs.getApiUrl; exports.getAppUrl = _chunk7DTKRMYWjs.getAppUrl; exports.getBootstrapper = _chunkLI6CPNJIjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkUYY34W7Rjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkUYY34W7Rjs.getGlobalErrorHandler; exports.getIcon = _chunkUYY34W7Rjs.getIcon; exports.getIconByModule = _chunkUYY34W7Rjs.getIconByModule; exports.getIconByModuleName = _chunkUYY34W7Rjs.getIconByModuleName; exports.getLucideIcon = _chunkUYY34W7Rjs.getLucideIcon; exports.getLucideIconByModule = _chunkUYY34W7Rjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkUYY34W7Rjs.getLucideIconByModuleName; exports.getRoleId = _chunk7DTKRMYWjs.getRoleId; exports.getStripePublishableKey = _chunk7DTKRMYWjs.getStripePublishableKey; exports.getTableComponents = _chunkUYY34W7Rjs.getTableComponents; exports.getTableOptions = _chunkUYY34W7Rjs.getTableOptions; exports.getTokenHandler = _chunkUYY34W7Rjs.getTokenHandler; exports.getTrackablePages = _chunk7DTKRMYWjs.getTrackablePages; exports.getValueFromPath = _chunkUYY34W7Rjs.getValueFromPath; exports.hasBootstrapper = _chunkLI6CPNJIjs.hasBootstrapper; exports.isRolesConfigured = _chunk7DTKRMYWjs.isRolesConfigured; exports.rehydrate = _chunkUYY34W7Rjs.rehydrate; exports.rehydrateList = _chunkUYY34W7Rjs.rehydrateList; exports.resetBootstrapStore = _chunkLI6CPNJIjs.resetBootstrapStore; exports.setBootstrapper = _chunkLI6CPNJIjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkUYY34W7Rjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkUYY34W7Rjs.setGlobalErrorHandler; exports.translateData = _chunkLI6CPNJIjs.translateData; exports.translateResponse = _chunkLI6CPNJIjs.translateResponse; exports.tryBootstrap = _chunkLI6CPNJIjs.tryBootstrap; exports.useComposedRefs = _chunkUYY34W7Rjs.useComposedRefs; exports.useIsMobile = _chunkUYY34W7Rjs.useIsMobile; exports.userObjectSchema = _chunkUYY34W7Rjs.userObjectSchema;
|
|
257
257
|
//# 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;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;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B
|
|
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;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;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;AACF,uhOAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
configureDiscord,
|
|
3
2
|
configureI18n,
|
|
4
3
|
configureJsonApi,
|
|
4
|
+
configureLogin,
|
|
5
5
|
configureRoles,
|
|
6
6
|
getApiUrl,
|
|
7
7
|
getAppUrl,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
getStripePublishableKey,
|
|
10
10
|
getTrackablePages,
|
|
11
11
|
isRolesConfigured
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KX7YG6LY.mjs";
|
|
13
13
|
import {
|
|
14
14
|
AbstractApiData,
|
|
15
15
|
AbstractService,
|
|
@@ -114,7 +114,8 @@ import {
|
|
|
114
114
|
useComposedRefs,
|
|
115
115
|
useIsMobile,
|
|
116
116
|
userObjectSchema
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-KUFWHMMY.mjs";
|
|
118
|
+
import "./chunk-AUXK7QSA.mjs";
|
|
118
119
|
import "./chunk-C7C7VY4F.mjs";
|
|
119
120
|
import {
|
|
120
121
|
DataClassRegistry,
|
|
@@ -126,8 +127,7 @@ import {
|
|
|
126
127
|
translateData,
|
|
127
128
|
translateResponse,
|
|
128
129
|
tryBootstrap
|
|
129
|
-
} from "./chunk-
|
|
130
|
-
import "./chunk-AUXK7QSA.mjs";
|
|
130
|
+
} from "./chunk-3VM3WAOV.mjs";
|
|
131
131
|
import "./chunk-PAWJFY3S.mjs";
|
|
132
132
|
export {
|
|
133
133
|
AbstractApiData,
|
|
@@ -213,9 +213,9 @@ export {
|
|
|
213
213
|
cn,
|
|
214
214
|
composeRefs,
|
|
215
215
|
configureAuth,
|
|
216
|
-
configureDiscord,
|
|
217
216
|
configureI18n,
|
|
218
217
|
configureJsonApi,
|
|
218
|
+
configureLogin,
|
|
219
219
|
configureRoles,
|
|
220
220
|
createJsonApiInclusion,
|
|
221
221
|
entityObjectSchema,
|
|
@@ -1,43 +1,5 @@
|
|
|
1
1
|
import { LucideIcon } from 'lucide-react';
|
|
2
|
-
|
|
3
|
-
interface JsonApiHydratedDataInterface {
|
|
4
|
-
jsonApi: any;
|
|
5
|
-
included: any[];
|
|
6
|
-
allData?: any[];
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
interface ApiDataInterface {
|
|
10
|
-
get included(): any[];
|
|
11
|
-
get type(): string;
|
|
12
|
-
get id(): string;
|
|
13
|
-
get createdAt(): Date;
|
|
14
|
-
get updatedAt(): Date;
|
|
15
|
-
get self(): string | undefined;
|
|
16
|
-
get jsonApi(): any;
|
|
17
|
-
generateApiUrl(params?: any): string;
|
|
18
|
-
dehydrate(): JsonApiHydratedDataInterface;
|
|
19
|
-
rehydrate(data: JsonApiHydratedDataInterface): this;
|
|
20
|
-
createJsonApi(data: any): any;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
type GetterKeys<T> = {
|
|
24
|
-
[K in keyof T]: T[K] extends () => any ? never : K;
|
|
25
|
-
}[keyof T];
|
|
26
|
-
type FieldSelector<T> = {
|
|
27
|
-
type: string;
|
|
28
|
-
fields: ReadonlyArray<GetterKeys<T>>;
|
|
29
|
-
};
|
|
30
|
-
declare function createJsonApiInclusion<T>(dataType: string, fields: ReadonlyArray<GetterKeys<T>>): FieldSelector<T>;
|
|
31
|
-
|
|
32
|
-
type ApiRequestDataTypeInterface = {
|
|
33
|
-
name: string;
|
|
34
|
-
cache?: string;
|
|
35
|
-
inclusions?: Record<string, {
|
|
36
|
-
types?: string[];
|
|
37
|
-
fields?: FieldSelector<any>[];
|
|
38
|
-
}>;
|
|
39
|
-
model: new () => any;
|
|
40
|
-
};
|
|
2
|
+
import { a as ApiRequestDataTypeInterface, F as FieldSelector, A as ApiDataInterface } from './ApiRequestDataTypeInterface-DIEOFn9s.mjs';
|
|
41
3
|
|
|
42
4
|
/**
|
|
43
5
|
* Permission actions
|
|
@@ -226,4 +188,4 @@ interface NotificationInterface extends ApiDataInterface {
|
|
|
226
188
|
get actor(): UserInterface | undefined;
|
|
227
189
|
}
|
|
228
190
|
|
|
229
|
-
export {
|
|
191
|
+
export { Action as A, type CompanyInput as C, type FeatureInterface as F, type ModuleWithPermissions as M, type NotificationInterface as N, type PermissionCheck as P, type RoleInput as R, type UserInterface as U, type PageUrl 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, type CompanyInterface as h, type ModuleInterface as i, type NotificationInput as j, type RoleInterface as k, type UserInput as l };
|
|
@@ -1,43 +1,5 @@
|
|
|
1
1
|
import { LucideIcon } from 'lucide-react';
|
|
2
|
-
|
|
3
|
-
interface JsonApiHydratedDataInterface {
|
|
4
|
-
jsonApi: any;
|
|
5
|
-
included: any[];
|
|
6
|
-
allData?: any[];
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
interface ApiDataInterface {
|
|
10
|
-
get included(): any[];
|
|
11
|
-
get type(): string;
|
|
12
|
-
get id(): string;
|
|
13
|
-
get createdAt(): Date;
|
|
14
|
-
get updatedAt(): Date;
|
|
15
|
-
get self(): string | undefined;
|
|
16
|
-
get jsonApi(): any;
|
|
17
|
-
generateApiUrl(params?: any): string;
|
|
18
|
-
dehydrate(): JsonApiHydratedDataInterface;
|
|
19
|
-
rehydrate(data: JsonApiHydratedDataInterface): this;
|
|
20
|
-
createJsonApi(data: any): any;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
type GetterKeys<T> = {
|
|
24
|
-
[K in keyof T]: T[K] extends () => any ? never : K;
|
|
25
|
-
}[keyof T];
|
|
26
|
-
type FieldSelector<T> = {
|
|
27
|
-
type: string;
|
|
28
|
-
fields: ReadonlyArray<GetterKeys<T>>;
|
|
29
|
-
};
|
|
30
|
-
declare function createJsonApiInclusion<T>(dataType: string, fields: ReadonlyArray<GetterKeys<T>>): FieldSelector<T>;
|
|
31
|
-
|
|
32
|
-
type ApiRequestDataTypeInterface = {
|
|
33
|
-
name: string;
|
|
34
|
-
cache?: string;
|
|
35
|
-
inclusions?: Record<string, {
|
|
36
|
-
types?: string[];
|
|
37
|
-
fields?: FieldSelector<any>[];
|
|
38
|
-
}>;
|
|
39
|
-
model: new () => any;
|
|
40
|
-
};
|
|
2
|
+
import { a as ApiRequestDataTypeInterface, F as FieldSelector, A as ApiDataInterface } from './ApiRequestDataTypeInterface-DIEOFn9s.js';
|
|
41
3
|
|
|
42
4
|
/**
|
|
43
5
|
* Permission actions
|
|
@@ -226,4 +188,4 @@ interface NotificationInterface extends ApiDataInterface {
|
|
|
226
188
|
get actor(): UserInterface | undefined;
|
|
227
189
|
}
|
|
228
190
|
|
|
229
|
-
export {
|
|
191
|
+
export { Action as A, type CompanyInput as C, type FeatureInterface as F, type ModuleWithPermissions as M, type NotificationInterface as N, type PermissionCheck as P, type RoleInput as R, type UserInterface as U, type PageUrl 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, type CompanyInterface as h, type ModuleInterface as i, type NotificationInput as j, type RoleInterface as k, type UserInput as l };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
1
|
+
import { F as FeatureInterface, k as RoleInterface, h as CompanyInterface, C as CompanyInput, U as UserInterface, l as UserInput, N as NotificationInterface } from './notification.interface-CqwaOIgM.js';
|
|
2
|
+
import { a as ApiRequestDataTypeInterface, A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiRequestDataTypeInterface-DIEOFn9s.js';
|
|
3
|
+
import { a as ContentInterface } from './content.interface-4VICFRA0.js';
|
|
3
4
|
|
|
4
5
|
declare enum HttpMethod {
|
|
5
6
|
GET = "GET",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
1
|
+
import { F as FeatureInterface, k as RoleInterface, h as CompanyInterface, C as CompanyInput, U as UserInterface, l as UserInput, N as NotificationInterface } from './notification.interface-BGaPiCUM.mjs';
|
|
2
|
+
import { a as ApiRequestDataTypeInterface, A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiRequestDataTypeInterface-DIEOFn9s.mjs';
|
|
3
|
+
import { a as ContentInterface } from './content.interface-CFc97-Cj.mjs';
|
|
3
4
|
|
|
4
5
|
declare enum HttpMethod {
|
|
5
6
|
GET = "GET",
|
package/dist/server/index.d.mts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { A as ApiData
|
|
2
|
-
import { M as ModuleWithPermissions,
|
|
3
|
-
|
|
1
|
+
import { A as ApiData } from '../ApiData-DPKNfY-9.mjs';
|
|
2
|
+
import { M as ModuleWithPermissions, A as Action } from '../notification.interface-BGaPiCUM.mjs';
|
|
3
|
+
import { a as ApiRequestDataTypeInterface } from '../ApiRequestDataTypeInterface-DIEOFn9s.mjs';
|
|
4
|
+
import { A as ApiResponseInterface } from '../ApiResponseInterface-Dqvu09tz.mjs';
|
|
5
|
+
export { d as ServerAuthService, C as ServerCompanyService, e as ServerContentService, F as ServerFeatureService, f as ServerNotificationService, h as ServerPushService, R as ServerRoleService, k as ServerS3Service, U as ServerUserService } from '../s3.service-C0BjOdvn.mjs';
|
|
4
6
|
import 'lucide-react';
|
|
5
|
-
import '../content.interface-
|
|
7
|
+
import '../content.interface-CFc97-Cj.mjs';
|
|
6
8
|
|
|
7
9
|
type CacheProfile = "seconds" | "minutes" | "hours" | "days" | "weeks" | "max" | "default";
|
|
8
10
|
/**
|