@carlonicora/nextjs-jsonapi 1.52.0 → 1.53.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/{AuthComponent-BkK4Sf3q.d.mts → AuthComponent-CK9aRRW2.d.mts} +1 -1
- package/dist/{AuthComponent-DCfP4o32.d.ts → AuthComponent-IqFWLNIU.d.ts} +1 -1
- package/dist/{BlockNoteEditor-KQPSJCYG.js → BlockNoteEditor-AROKR3J6.js} +14 -14
- package/dist/{BlockNoteEditor-KQPSJCYG.js.map → BlockNoteEditor-AROKR3J6.js.map} +1 -1
- package/dist/{BlockNoteEditor-WUVRCTQI.mjs → BlockNoteEditor-CNMSBGCL.mjs} +4 -4
- package/dist/ModulePathsInterface-49EWvbWy.d.mts +31 -0
- package/dist/ModulePathsInterface-wVS5Raa4.d.ts +31 -0
- package/dist/{auth.interface-C4kEZscm.d.ts → auth.interface-C1WjZ0fM.d.ts} +1 -1
- package/dist/{auth.interface-24ID4yhT.d.mts → auth.interface-fBFqIrw4.d.mts} +1 -1
- package/dist/billing/index.js +346 -346
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-BUCV5VFT.mjs → chunk-FE26PIZK.mjs} +53 -2
- package/dist/chunk-FE26PIZK.mjs.map +1 -0
- package/dist/{chunk-BTLJZIDS.mjs → chunk-G5473JP3.mjs} +869 -40
- package/dist/chunk-G5473JP3.mjs.map +1 -0
- package/dist/{chunk-XNISXVQL.mjs → chunk-J2PYGXVD.mjs} +70 -1
- package/dist/chunk-J2PYGXVD.mjs.map +1 -0
- package/dist/{chunk-YKPIFJOB.js → chunk-PQIXFKHT.js} +1457 -628
- package/dist/chunk-PQIXFKHT.js.map +1 -0
- package/dist/{chunk-QIA5FOQB.js → chunk-QOLVON35.js} +71 -2
- package/dist/chunk-QOLVON35.js.map +1 -0
- package/dist/{chunk-V63TFESU.js → chunk-UJBUJALX.js} +53 -2
- package/dist/chunk-UJBUJALX.js.map +1 -0
- package/dist/client/index.d.mts +25 -7
- package/dist/client/index.d.ts +25 -7
- package/dist/client/index.js +10 -4
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +9 -3
- package/dist/components/index.d.mts +52 -10
- package/dist/components/index.d.ts +52 -10
- package/dist/components/index.js +16 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +15 -3
- package/dist/{config-CPN6QZfo.d.ts → config-DZWAFB7H.d.ts} +1 -1
- package/dist/{config-DaxjKdIo.d.mts → config-ndRJIQsP.d.mts} +1 -1
- package/dist/{content.interface-DvPs_JbX.d.mts → content.interface-B5ySfiOE.d.mts} +1 -1
- package/dist/{content.interface-Czin-YRh.d.ts → content.interface-mmz0uMwm.d.ts} +1 -1
- package/dist/contexts/index.d.mts +2 -2
- package/dist/contexts/index.d.ts +2 -2
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +15 -10
- package/dist/core/index.d.ts +15 -10
- package/dist/core/index.js +6 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +5 -1
- package/dist/index.d.mts +47 -10
- package/dist/index.d.ts +47 -10
- package/dist/index.js +17 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -2
- package/dist/{notification.interface-DEW8hR8g.d.ts → notification.interface-COKHDQeE.d.ts} +1 -1
- package/dist/{notification.interface-DKR5WGKH.d.mts → notification.interface-DG7cq9oG.d.mts} +1 -1
- package/dist/{s3.service-BHjcTA0t.d.mts → s3.service-BoRPFx82.d.mts} +4 -4
- package/dist/{s3.service-C_K1VHyx.d.ts → s3.service-ppn9iGJU.d.ts} +4 -4
- package/dist/server/index.d.mts +4 -4
- package/dist/server/index.d.ts +4 -4
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/dist/useRbacState-DhuYYr0S.d.mts +77 -0
- package/dist/useRbacState-NnzNL2ED.d.ts +77 -0
- package/dist/{useSocket-BW6haECW.d.mts → useSocket-CtfuR5wD.d.mts} +1 -1
- package/dist/{useSocket-C9FmYuRM.d.ts → useSocket-bsV-K4qR.d.ts} +1 -1
- package/package.json +1 -1
- package/src/client/index.ts +4 -0
- package/src/components/containers/RoundPageContainer.tsx +1 -1
- package/src/components/containers/RoundPageContainerTitle.tsx +1 -1
- package/src/components/index.ts +6 -0
- package/src/core/index.ts +1 -0
- package/src/core/registry/ModuleRegistry.ts +3 -0
- package/src/features/rbac/components/RbacContainer.tsx +82 -0
- package/src/features/rbac/components/RbacFeatureSection.tsx +66 -0
- package/src/features/rbac/components/RbacModuleTable.tsx +121 -0
- package/src/features/rbac/components/RbacPermissionCell.tsx +97 -0
- package/src/features/rbac/components/RbacPermissionPicker.tsx +179 -0
- package/src/features/rbac/components/RbacToolbar.tsx +40 -0
- package/src/features/rbac/data/ModulePaths.ts +25 -0
- package/src/features/rbac/data/ModulePathsInterface.ts +6 -0
- package/src/features/rbac/data/PermissionMapping.ts +43 -0
- package/src/features/rbac/data/PermissionMappingInterface.ts +12 -0
- package/src/features/rbac/data/RbacService.ts +47 -0
- package/src/features/rbac/data/RbacTypes.ts +15 -0
- package/src/features/rbac/data/index.ts +6 -0
- package/src/features/rbac/hooks/useRbacState.test.ts +178 -0
- package/src/features/rbac/hooks/useRbacState.ts +319 -0
- package/src/features/rbac/index.ts +19 -0
- package/src/features/rbac/rbac.module.ts +19 -0
- package/src/features/rbac/utils/RbacMigrationGenerator.test.ts +124 -0
- package/src/features/rbac/utils/RbacMigrationGenerator.ts +184 -0
- package/src/index.ts +4 -0
- package/dist/chunk-BTLJZIDS.mjs.map +0 -1
- package/dist/chunk-BUCV5VFT.mjs.map +0 -1
- package/dist/chunk-QIA5FOQB.js.map +0 -1
- package/dist/chunk-V63TFESU.js.map +0 -1
- package/dist/chunk-XNISXVQL.mjs.map +0 -1
- package/dist/chunk-YKPIFJOB.js.map +0 -1
- package/dist/useDataListRetriever-BqJSFBck.d.mts +0 -33
- package/dist/useDataListRetriever-BqJSFBck.d.ts +0 -33
- /package/dist/{BlockNoteEditor-WUVRCTQI.mjs.map → BlockNoteEditor-CNMSBGCL.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
export { A as ApiData } from './ApiData-DPKNfY-9.mjs';
|
|
2
|
-
|
|
2
|
+
import { J as JsonApiHydratedDataInterface } from './ApiDataInterface-DPP8s46n.mjs';
|
|
3
|
+
export { A as ApiDataInterface } from './ApiDataInterface-DPP8s46n.mjs';
|
|
3
4
|
export { A as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys, c as createJsonApiInclusion } from './ApiRequestDataTypeInterface-CYEcRUrh.mjs';
|
|
4
5
|
export { A as ApiResponseInterface } from './ApiResponseInterface-zeewugD7.mjs';
|
|
5
|
-
|
|
6
|
-
export {
|
|
6
|
+
import { AbstractApiData } from './core/index.mjs';
|
|
7
|
+
export { AppModuleDefinitions, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModulePathsModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PermissionMappingModule, Push, PushInput, PushInterface, PushModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.mjs';
|
|
8
|
+
import { b as AbstractService } from './s3.service-BoRPFx82.mjs';
|
|
9
|
+
export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, c as NextRef, N as NotificationService, d as PreviousRef, P as PushService, R as RoleService, j as S3Input, k as S3Interface, S as S3Service, e as SelfRef, T as TotalRef, i as TwoFactorChallengeInterface, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-BoRPFx82.mjs';
|
|
7
10
|
export { B as BreadcrumbItemData } from './breadcrumb.item.data.interface-CgB4_1EE.mjs';
|
|
8
11
|
export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-Ck5lkQ5d.mjs';
|
|
9
12
|
export { ClassValue } from 'clsx';
|
|
10
|
-
export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, a as getIcon, g as getIconByModule, b as getIconByModuleName, c as getLucideIcon, d as getLucideIconByModule, e as getLucideIconByModuleName } from './AuthComponent-
|
|
11
|
-
|
|
12
|
-
export { A as
|
|
13
|
+
export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, a as getIcon, g as getIconByModule, b as getIconByModuleName, c as getLucideIcon, d as getLucideIconByModule, e as getLucideIconByModuleName } from './AuthComponent-CK9aRRW2.mjs';
|
|
14
|
+
import { R as RoleInterface } from './notification.interface-DG7cq9oG.mjs';
|
|
15
|
+
export { A as Action, C as CompanyInput, h as CompanyInterface, c as ModuleDefinition, g as ModuleFactory, b as ModulePermissionDefinition, M as ModuleWithPermissions, i as NotificationInput, N as NotificationInterface, a as PageUrl, P as PermissionCheck, d as PermissionConfig, e as PermissionModule, f as PermissionUser, j as RoleInput, k as UserInput, U as UserInterface } from './notification.interface-DG7cq9oG.mjs';
|
|
16
|
+
export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-fBFqIrw4.mjs';
|
|
13
17
|
export { I as InvoiceStatus, M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, e as PriceRecurring, q as PromotionCodeValidationResult, c as ProrationLineItem, b as ProrationPreviewInterface, R as ReportUsageInput, S as StripeCustomerInterface, a as StripeInvoiceInterface, f as StripePriceInput, d as StripePriceInterface, h as StripeProductInput, g as StripeProductInterface, l as StripeSubscriptionCreateMeta, m as StripeSubscriptionCreateResponse, k as StripeSubscriptionInput, j as StripeSubscriptionInterface, n as StripeUsageInterface, i as SubscriptionStatus, p as UsageRecordInterface, U as UsageSummaryInterface } from './stripe-promotion-code.interface-Dnm2DJKQ.mjs';
|
|
14
|
-
export { C as ContentInput, a as ContentInterface } from './content.interface-
|
|
15
|
-
|
|
18
|
+
export { C as ContentInput, a as ContentInterface } from './content.interface-B5ySfiOE.mjs';
|
|
19
|
+
import { F as FeatureInterface } from './feature.interface-BxFFOPNq.mjs';
|
|
20
|
+
export { M as ModuleInterface } from './feature.interface-BxFFOPNq.mjs';
|
|
16
21
|
export { A as AVAILABLE_OAUTH_SCOPES, D as DEFAULT_GRANT_TYPES, g as OAUTH_SCOPE_DISPLAY, b as OAuthClientCreateRequest, c as OAuthClientCreateResponse, a as OAuthClientInput, O as OAuthClientInterface, f as OAuthConsentInfo, d as OAuthConsentRequest, e as OAuthScopeInfo } from './oauth.interface-DsZ5ecSX.mjs';
|
|
17
|
-
export { I as I18nConfig, e as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, d as getStripePublishableKey, b as getTrackablePages } from './config-
|
|
22
|
+
export { I as I18nConfig, e as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, d as getStripePublishableKey, b as getTrackablePages } from './config-ndRJIQsP.mjs';
|
|
18
23
|
export { Q as QuestionnaireField, a as QuestionnaireFieldType, b as QuestionnaireOption, W as WaitlistConfig, c as configureWaitlist, g as getWaitlistConfig } from './waitlist.config-kPfjImle.mjs';
|
|
24
|
+
import { P as PermissionMappingInterface, M as ModulePathsInterface } from './ModulePathsInterface-49EWvbWy.mjs';
|
|
25
|
+
export { c as ACTION_TYPES, A as ActionType, C as COMPANY_ADMINISTRATOR_ROLE_ID, a as PermissionValue, b as PermissionsMap } from './ModulePathsInterface-49EWvbWy.mjs';
|
|
19
26
|
import 'react';
|
|
20
27
|
import 'zod';
|
|
21
28
|
import '@blocknote/core';
|
|
@@ -174,4 +181,34 @@ declare function getReferralConfig(): Required<ReferralConfig>;
|
|
|
174
181
|
*/
|
|
175
182
|
declare function isReferralEnabled(): boolean;
|
|
176
183
|
|
|
177
|
-
|
|
184
|
+
declare class PermissionMapping extends AbstractApiData implements PermissionMappingInterface {
|
|
185
|
+
private _roleId?;
|
|
186
|
+
private _moduleId?;
|
|
187
|
+
private _permissions?;
|
|
188
|
+
get roleId(): string;
|
|
189
|
+
get moduleId(): string;
|
|
190
|
+
get permissions(): {
|
|
191
|
+
create?: boolean | string;
|
|
192
|
+
read?: boolean | string;
|
|
193
|
+
update?: boolean | string;
|
|
194
|
+
delete?: boolean | string;
|
|
195
|
+
};
|
|
196
|
+
rehydrate(data: JsonApiHydratedDataInterface): this;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
declare class ModulePaths extends AbstractApiData implements ModulePathsInterface {
|
|
200
|
+
private _moduleId?;
|
|
201
|
+
private _paths?;
|
|
202
|
+
get moduleId(): string;
|
|
203
|
+
get paths(): string[];
|
|
204
|
+
rehydrate(data: JsonApiHydratedDataInterface): this;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
declare class RbacService extends AbstractService {
|
|
208
|
+
static getFeatures(): Promise<FeatureInterface[]>;
|
|
209
|
+
static getRoles(): Promise<RoleInterface[]>;
|
|
210
|
+
static getPermissionMappings(): Promise<PermissionMappingInterface[]>;
|
|
211
|
+
static getModuleRelationshipPaths(): Promise<ModulePathsInterface[]>;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export { AbstractApiData, AbstractService, FeatureInterface, JsonApiHydratedDataInterface, type LoginConfig, ModulePaths, ModulePathsInterface, PermissionMapping, PermissionMappingInterface, RbacService, type ReferralConfig, type RoleIdConfig, RoleInterface, type TokenHandler, type TokenParams, configureAuth, configureLogin, configureReferral, configureRoles, getReferralConfig, getRoleId, getTokenHandler, isReferralEnabled, isRolesConfigured };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
export { A as ApiData } from './ApiData-DPKNfY-9.js';
|
|
2
|
-
|
|
2
|
+
import { J as JsonApiHydratedDataInterface } from './ApiDataInterface-DPP8s46n.js';
|
|
3
|
+
export { A as ApiDataInterface } from './ApiDataInterface-DPP8s46n.js';
|
|
3
4
|
export { A as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys, c as createJsonApiInclusion } from './ApiRequestDataTypeInterface-CYEcRUrh.js';
|
|
4
5
|
export { A as ApiResponseInterface } from './ApiResponseInterface-CAIAeP5d.js';
|
|
5
|
-
|
|
6
|
-
export {
|
|
6
|
+
import { AbstractApiData } from './core/index.js';
|
|
7
|
+
export { AppModuleDefinitions, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModulePathsModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PermissionMappingModule, Push, PushInput, PushInterface, PushModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.js';
|
|
8
|
+
import { b as AbstractService } from './s3.service-ppn9iGJU.js';
|
|
9
|
+
export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, c as NextRef, N as NotificationService, d as PreviousRef, P as PushService, R as RoleService, j as S3Input, k as S3Interface, S as S3Service, e as SelfRef, T as TotalRef, i as TwoFactorChallengeInterface, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-ppn9iGJU.js';
|
|
7
10
|
export { B as BreadcrumbItemData } from './breadcrumb.item.data.interface-CgB4_1EE.js';
|
|
8
11
|
export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-Ck5lkQ5d.js';
|
|
9
12
|
export { ClassValue } from 'clsx';
|
|
10
|
-
export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, a as getIcon, g as getIconByModule, b as getIconByModuleName, c as getLucideIcon, d as getLucideIconByModule, e as getLucideIconByModuleName } from './AuthComponent-
|
|
11
|
-
|
|
12
|
-
export { A as
|
|
13
|
+
export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, a as getIcon, g as getIconByModule, b as getIconByModuleName, c as getLucideIcon, d as getLucideIconByModule, e as getLucideIconByModuleName } from './AuthComponent-IqFWLNIU.js';
|
|
14
|
+
import { R as RoleInterface } from './notification.interface-COKHDQeE.js';
|
|
15
|
+
export { A as Action, C as CompanyInput, h as CompanyInterface, c as ModuleDefinition, g as ModuleFactory, b as ModulePermissionDefinition, M as ModuleWithPermissions, i as NotificationInput, N as NotificationInterface, a as PageUrl, P as PermissionCheck, d as PermissionConfig, e as PermissionModule, f as PermissionUser, j as RoleInput, k as UserInput, U as UserInterface } from './notification.interface-COKHDQeE.js';
|
|
16
|
+
export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-C1WjZ0fM.js';
|
|
13
17
|
export { I as InvoiceStatus, M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, e as PriceRecurring, q as PromotionCodeValidationResult, c as ProrationLineItem, b as ProrationPreviewInterface, R as ReportUsageInput, S as StripeCustomerInterface, a as StripeInvoiceInterface, f as StripePriceInput, d as StripePriceInterface, h as StripeProductInput, g as StripeProductInterface, l as StripeSubscriptionCreateMeta, m as StripeSubscriptionCreateResponse, k as StripeSubscriptionInput, j as StripeSubscriptionInterface, n as StripeUsageInterface, i as SubscriptionStatus, p as UsageRecordInterface, U as UsageSummaryInterface } from './stripe-promotion-code.interface-BcJty0rv.js';
|
|
14
|
-
export { C as ContentInput, a as ContentInterface } from './content.interface-
|
|
15
|
-
|
|
18
|
+
export { C as ContentInput, a as ContentInterface } from './content.interface-mmz0uMwm.js';
|
|
19
|
+
import { F as FeatureInterface } from './feature.interface-CIWxo8NP.js';
|
|
20
|
+
export { M as ModuleInterface } from './feature.interface-CIWxo8NP.js';
|
|
16
21
|
export { A as AVAILABLE_OAUTH_SCOPES, D as DEFAULT_GRANT_TYPES, g as OAUTH_SCOPE_DISPLAY, b as OAuthClientCreateRequest, c as OAuthClientCreateResponse, a as OAuthClientInput, O as OAuthClientInterface, f as OAuthConsentInfo, d as OAuthConsentRequest, e as OAuthScopeInfo } from './oauth.interface-vL7za9Bz.js';
|
|
17
|
-
export { I as I18nConfig, e as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, d as getStripePublishableKey, b as getTrackablePages } from './config-
|
|
22
|
+
export { I as I18nConfig, e as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, d as getStripePublishableKey, b as getTrackablePages } from './config-DZWAFB7H.js';
|
|
18
23
|
export { Q as QuestionnaireField, a as QuestionnaireFieldType, b as QuestionnaireOption, W as WaitlistConfig, c as configureWaitlist, g as getWaitlistConfig } from './waitlist.config-kPfjImle.js';
|
|
24
|
+
import { P as PermissionMappingInterface, M as ModulePathsInterface } from './ModulePathsInterface-wVS5Raa4.js';
|
|
25
|
+
export { c as ACTION_TYPES, A as ActionType, C as COMPANY_ADMINISTRATOR_ROLE_ID, a as PermissionValue, b as PermissionsMap } from './ModulePathsInterface-wVS5Raa4.js';
|
|
19
26
|
import 'react';
|
|
20
27
|
import 'zod';
|
|
21
28
|
import '@blocknote/core';
|
|
@@ -174,4 +181,34 @@ declare function getReferralConfig(): Required<ReferralConfig>;
|
|
|
174
181
|
*/
|
|
175
182
|
declare function isReferralEnabled(): boolean;
|
|
176
183
|
|
|
177
|
-
|
|
184
|
+
declare class PermissionMapping extends AbstractApiData implements PermissionMappingInterface {
|
|
185
|
+
private _roleId?;
|
|
186
|
+
private _moduleId?;
|
|
187
|
+
private _permissions?;
|
|
188
|
+
get roleId(): string;
|
|
189
|
+
get moduleId(): string;
|
|
190
|
+
get permissions(): {
|
|
191
|
+
create?: boolean | string;
|
|
192
|
+
read?: boolean | string;
|
|
193
|
+
update?: boolean | string;
|
|
194
|
+
delete?: boolean | string;
|
|
195
|
+
};
|
|
196
|
+
rehydrate(data: JsonApiHydratedDataInterface): this;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
declare class ModulePaths extends AbstractApiData implements ModulePathsInterface {
|
|
200
|
+
private _moduleId?;
|
|
201
|
+
private _paths?;
|
|
202
|
+
get moduleId(): string;
|
|
203
|
+
get paths(): string[];
|
|
204
|
+
rehydrate(data: JsonApiHydratedDataInterface): this;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
declare class RbacService extends AbstractService {
|
|
208
|
+
static getFeatures(): Promise<FeatureInterface[]>;
|
|
209
|
+
static getRoles(): Promise<RoleInterface[]>;
|
|
210
|
+
static getPermissionMappings(): Promise<PermissionMappingInterface[]>;
|
|
211
|
+
static getModuleRelationshipPaths(): Promise<ModulePathsInterface[]>;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export { AbstractApiData, AbstractService, FeatureInterface, JsonApiHydratedDataInterface, type LoginConfig, ModulePaths, ModulePathsInterface, PermissionMapping, PermissionMappingInterface, RbacService, type ReferralConfig, type RoleIdConfig, RoleInterface, type TokenHandler, type TokenParams, configureAuth, configureLogin, configureReferral, configureRoles, getReferralConfig, getRoleId, getTokenHandler, isReferralEnabled, isRolesConfigured };
|
package/dist/index.js
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var _chunkV63TFESUjs = require('./chunk-V63TFESU.js');
|
|
18
17
|
|
|
19
18
|
|
|
20
19
|
|
|
20
|
+
var _chunkUJBUJALXjs = require('./chunk-UJBUJALX.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -172,7 +172,14 @@ var _chunkV63TFESUjs = require('./chunk-V63TFESU.js');
|
|
|
172
172
|
|
|
173
173
|
|
|
174
174
|
|
|
175
|
-
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
var _chunkQOLVON35js = require('./chunk-QOLVON35.js');
|
|
176
183
|
require('./chunk-LXKSUWAV.js');
|
|
177
184
|
require('./chunk-IBS6NI7D.js');
|
|
178
185
|
|
|
@@ -369,5 +376,12 @@ require('./chunk-7QVYU63E.js');
|
|
|
369
376
|
|
|
370
377
|
|
|
371
378
|
|
|
372
|
-
exports.AVAILABLE_OAUTH_SCOPES = _chunkQIA5FOQBjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkQIA5FOQBjs.AbstractApiData; exports.AbstractService = _chunkQIA5FOQBjs.AbstractService; exports.Action = _chunkQIA5FOQBjs.Action; exports.Auth = _chunkQIA5FOQBjs.Auth; exports.AuthComponent = _chunkQIA5FOQBjs.AuthComponent; exports.AuthModule = _chunkQIA5FOQBjs.AuthModule; exports.AuthService = _chunkQIA5FOQBjs.AuthService; exports.AuthorModule = _chunkQIA5FOQBjs.AuthorModule; exports.BackupCodeVerify = _chunkQIA5FOQBjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkQIA5FOQBjs.BackupCodeVerifyModule; exports.Billing = _chunkQIA5FOQBjs.Billing; exports.BillingModule = _chunkQIA5FOQBjs.BillingModule; exports.BillingService = _chunkQIA5FOQBjs.BillingService; exports.BlockNoteDiffUtil = _chunkQIA5FOQBjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkQIA5FOQBjs.BlockNoteWordDiffRendererUtil; exports.ClientAbstractService = _chunkQIA5FOQBjs.ClientAbstractService; exports.ClientHttpMethod = _chunkQIA5FOQBjs.ClientHttpMethod; exports.Company = _chunkQIA5FOQBjs.Company; exports.CompanyFields = _chunkQIA5FOQBjs.CompanyFields; exports.CompanyModule = _chunkQIA5FOQBjs.CompanyModule; exports.CompanyService = _chunkQIA5FOQBjs.CompanyService; exports.Content = _chunkQIA5FOQBjs.Content; exports.ContentFields = _chunkQIA5FOQBjs.ContentFields; exports.ContentModule = _chunkQIA5FOQBjs.ContentModule; exports.ContentService = _chunkQIA5FOQBjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkQIA5FOQBjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunk4MN547K7js.DataClassRegistry; exports.DataClassRegistry = _chunk4MN547K7js.DataClassRegistry; exports.EndpointCreator = _chunkQIA5FOQBjs.EndpointCreator; exports.Feature = _chunkQIA5FOQBjs.Feature; exports.FeatureModule = _chunkQIA5FOQBjs.FeatureModule; exports.FeatureService = _chunkQIA5FOQBjs.FeatureService; exports.HttpMethod = _chunkQIA5FOQBjs.HttpMethod; exports.InvoiceStatus = _chunkQIA5FOQBjs.InvoiceStatus; exports.JsonApiDataFactory = _chunk4MN547K7js.JsonApiDataFactory; exports.Module = _chunkQIA5FOQBjs.Module; exports.ModuleModule = _chunkQIA5FOQBjs.ModuleModule; exports.ModuleRegistrar = _chunkQIA5FOQBjs.ModuleRegistrar; exports.ModuleRegistry = _chunkQIA5FOQBjs.ModuleRegistry; exports.Modules = _chunkQIA5FOQBjs.Modules; exports.Notification = _chunkQIA5FOQBjs.Notification; exports.NotificationFields = _chunkQIA5FOQBjs.NotificationFields; exports.NotificationModule = _chunkQIA5FOQBjs.NotificationModule; exports.NotificationService = _chunkQIA5FOQBjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkQIA5FOQBjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkQIA5FOQBjs.OAuthClient; exports.OAuthModule = _chunkQIA5FOQBjs.OAuthModule; exports.OAuthService = _chunkQIA5FOQBjs.OAuthService; exports.Passkey = _chunkQIA5FOQBjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkQIA5FOQBjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkQIA5FOQBjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkQIA5FOQBjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkQIA5FOQBjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkQIA5FOQBjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkQIA5FOQBjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkQIA5FOQBjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkQIA5FOQBjs.PasskeyRename; exports.PasskeyRenameModule = _chunkQIA5FOQBjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkQIA5FOQBjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkQIA5FOQBjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkQIA5FOQBjs.PaymentMethod; exports.Push = _chunkQIA5FOQBjs.Push; exports.PushModule = _chunkQIA5FOQBjs.PushModule; exports.PushService = _chunkQIA5FOQBjs.PushService; exports.ReferralModule = _chunkQIA5FOQBjs.ReferralModule; exports.ReferralService = _chunkQIA5FOQBjs.ReferralService; exports.ReferralStats = _chunkQIA5FOQBjs.ReferralStats; exports.ReferralStatsModule = _chunkQIA5FOQBjs.ReferralStatsModule; exports.RehydrationFactory = _chunkQIA5FOQBjs.RehydrationFactory; exports.Role = _chunkQIA5FOQBjs.Role; exports.RoleFields = _chunkQIA5FOQBjs.RoleFields; exports.RoleModule = _chunkQIA5FOQBjs.RoleModule; exports.RoleService = _chunkQIA5FOQBjs.RoleService; exports.S3 = _chunkQIA5FOQBjs.S3; exports.S3Module = _chunkQIA5FOQBjs.S3Module; exports.S3Service = _chunkQIA5FOQBjs.S3Service; exports.StripeCustomer = _chunkQIA5FOQBjs.StripeCustomer; exports.StripeCustomerModule = _chunkQIA5FOQBjs.StripeCustomerModule; exports.StripeCustomerService = _chunkQIA5FOQBjs.StripeCustomerService; exports.StripeInvoice = _chunkQIA5FOQBjs.StripeInvoice; exports.StripeInvoiceModule = _chunkQIA5FOQBjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkQIA5FOQBjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkQIA5FOQBjs.StripePaymentMethodModule; exports.StripePrice = _chunkQIA5FOQBjs.StripePrice; exports.StripePriceModule = _chunkQIA5FOQBjs.StripePriceModule; exports.StripePriceService = _chunkQIA5FOQBjs.StripePriceService; exports.StripeProduct = _chunkQIA5FOQBjs.StripeProduct; exports.StripeProductModule = _chunkQIA5FOQBjs.StripeProductModule; exports.StripeProductService = _chunkQIA5FOQBjs.StripeProductService; exports.StripePromotionCode = _chunkQIA5FOQBjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkQIA5FOQBjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkQIA5FOQBjs.StripePromotionCodeService; exports.StripeSubscription = _chunkQIA5FOQBjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkQIA5FOQBjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkQIA5FOQBjs.StripeSubscriptionService; exports.StripeUsage = _chunkQIA5FOQBjs.StripeUsage; exports.StripeUsageModule = _chunkQIA5FOQBjs.StripeUsageModule; exports.StripeUsageService = _chunkQIA5FOQBjs.StripeUsageService; exports.SubscriptionStatus = _chunkQIA5FOQBjs.SubscriptionStatus; exports.TableOptions = _chunkQIA5FOQBjs.TableOptions; exports.TotpAuthenticator = _chunkQIA5FOQBjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkQIA5FOQBjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkQIA5FOQBjs.TotpSetup; exports.TotpSetupModule = _chunkQIA5FOQBjs.TotpSetupModule; exports.TotpVerify = _chunkQIA5FOQBjs.TotpVerify; exports.TotpVerifyLogin = _chunkQIA5FOQBjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkQIA5FOQBjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkQIA5FOQBjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkQIA5FOQBjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkQIA5FOQBjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkQIA5FOQBjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkQIA5FOQBjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkQIA5FOQBjs.TwoFactorService; exports.TwoFactorStatus = _chunkQIA5FOQBjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkQIA5FOQBjs.TwoFactorStatusModule; exports.User = _chunkQIA5FOQBjs.User; exports.UserFields = _chunkQIA5FOQBjs.UserFields; exports.UserModule = _chunkQIA5FOQBjs.UserModule; exports.UserService = _chunkQIA5FOQBjs.UserService; exports.Waitlist = _chunkQIA5FOQBjs.Waitlist; exports.WaitlistModule = _chunkQIA5FOQBjs.WaitlistModule; exports.WaitlistService = _chunkQIA5FOQBjs.WaitlistService; exports.WaitlistStats = _chunkQIA5FOQBjs.WaitlistStats; exports.WaitlistStatsModule = _chunkQIA5FOQBjs.WaitlistStatsModule; exports.checkPermissions = _chunkQIA5FOQBjs.checkPermissions; exports.checkPermissionsFromServer = _chunkQIA5FOQBjs.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkQIA5FOQBjs.clearLastApiTotal; exports.cn = _chunkQIA5FOQBjs.cn; exports.composeRefs = _chunkQIA5FOQBjs.composeRefs; exports.configureAuth = _chunkQIA5FOQBjs.configureAuth; exports.configureI18n = _chunkV63TFESUjs.configureI18n; exports.configureJsonApi = _chunkV63TFESUjs.configureJsonApi; exports.configureLogin = _chunkV63TFESUjs.configureLogin; exports.configureReferral = _chunkV63TFESUjs.configureReferral; exports.configureRoles = _chunkV63TFESUjs.configureRoles; exports.configureWaitlist = _chunkV63TFESUjs.configureWaitlist; exports.createJsonApiInclusion = _chunkQIA5FOQBjs.createJsonApiInclusion; exports.dismissToast = _chunkQIA5FOQBjs.dismissToast; exports.entityObjectSchema = _chunkQIA5FOQBjs.entityObjectSchema; exports.exists = _chunkQIA5FOQBjs.exists; exports.formatDate = _chunkQIA5FOQBjs.formatDate; exports.getApiUrl = _chunkV63TFESUjs.getApiUrl; exports.getAppUrl = _chunkV63TFESUjs.getAppUrl; exports.getBootstrapper = _chunk4MN547K7js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkQIA5FOQBjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkQIA5FOQBjs.getGlobalErrorHandler; exports.getIcon = _chunkQIA5FOQBjs.getIcon; exports.getIconByModule = _chunkQIA5FOQBjs.getIconByModule; exports.getIconByModuleName = _chunkQIA5FOQBjs.getIconByModuleName; exports.getLastApiTotal = _chunkQIA5FOQBjs.getLastApiTotal; exports.getLucideIcon = _chunkQIA5FOQBjs.getLucideIcon; exports.getLucideIconByModule = _chunkQIA5FOQBjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkQIA5FOQBjs.getLucideIconByModuleName; exports.getReferralConfig = _chunkV63TFESUjs.getReferralConfig; exports.getRoleId = _chunkV63TFESUjs.getRoleId; exports.getStripePublishableKey = _chunkV63TFESUjs.getStripePublishableKey; exports.getTableComponents = _chunkQIA5FOQBjs.getTableComponents; exports.getTableOptions = _chunkQIA5FOQBjs.getTableOptions; exports.getTokenHandler = _chunkQIA5FOQBjs.getTokenHandler; exports.getTrackablePages = _chunkV63TFESUjs.getTrackablePages; exports.getValueFromPath = _chunkQIA5FOQBjs.getValueFromPath; exports.getWaitlistConfig = _chunkV63TFESUjs.getWaitlistConfig; exports.hasBootstrapper = _chunk4MN547K7js.hasBootstrapper; exports.isReferralEnabled = _chunkV63TFESUjs.isReferralEnabled; exports.isRolesConfigured = _chunkV63TFESUjs.isRolesConfigured; exports.rehydrate = _chunkQIA5FOQBjs.rehydrate; exports.rehydrateList = _chunkQIA5FOQBjs.rehydrateList; exports.resetBootstrapStore = _chunk4MN547K7js.resetBootstrapStore; exports.setBootstrapper = _chunk4MN547K7js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkQIA5FOQBjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkQIA5FOQBjs.setGlobalErrorHandler; exports.showCustomToast = _chunkQIA5FOQBjs.showCustomToast; exports.showError = _chunkQIA5FOQBjs.showError; exports.showToast = _chunkQIA5FOQBjs.showToast; exports.translateData = _chunk4MN547K7js.translateData; exports.translateResponse = _chunk4MN547K7js.translateResponse; exports.tryBootstrap = _chunk4MN547K7js.tryBootstrap; exports.useComposedRefs = _chunkQIA5FOQBjs.useComposedRefs; exports.useIsMobile = _chunkQIA5FOQBjs.useIsMobile; exports.userObjectSchema = _chunkQIA5FOQBjs.userObjectSchema;
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
exports.ACTION_TYPES = _chunkUJBUJALXjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkQOLVON35js.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkQOLVON35js.AbstractApiData; exports.AbstractService = _chunkQOLVON35js.AbstractService; exports.Action = _chunkQOLVON35js.Action; exports.Auth = _chunkQOLVON35js.Auth; exports.AuthComponent = _chunkQOLVON35js.AuthComponent; exports.AuthModule = _chunkQOLVON35js.AuthModule; exports.AuthService = _chunkQOLVON35js.AuthService; exports.AuthorModule = _chunkQOLVON35js.AuthorModule; exports.BackupCodeVerify = _chunkQOLVON35js.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkQOLVON35js.BackupCodeVerifyModule; exports.Billing = _chunkQOLVON35js.Billing; exports.BillingModule = _chunkQOLVON35js.BillingModule; exports.BillingService = _chunkQOLVON35js.BillingService; exports.BlockNoteDiffUtil = _chunkQOLVON35js.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkQOLVON35js.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkUJBUJALXjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.ClientAbstractService = _chunkQOLVON35js.ClientAbstractService; exports.ClientHttpMethod = _chunkQOLVON35js.ClientHttpMethod; exports.Company = _chunkQOLVON35js.Company; exports.CompanyFields = _chunkQOLVON35js.CompanyFields; exports.CompanyModule = _chunkQOLVON35js.CompanyModule; exports.CompanyService = _chunkQOLVON35js.CompanyService; exports.Content = _chunkQOLVON35js.Content; exports.ContentFields = _chunkQOLVON35js.ContentFields; exports.ContentModule = _chunkQOLVON35js.ContentModule; exports.ContentService = _chunkQOLVON35js.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkQOLVON35js.DEFAULT_GRANT_TYPES; exports.DataClass = _chunk4MN547K7js.DataClassRegistry; exports.DataClassRegistry = _chunk4MN547K7js.DataClassRegistry; exports.EndpointCreator = _chunkQOLVON35js.EndpointCreator; exports.Feature = _chunkQOLVON35js.Feature; exports.FeatureModule = _chunkQOLVON35js.FeatureModule; exports.FeatureService = _chunkQOLVON35js.FeatureService; exports.HttpMethod = _chunkQOLVON35js.HttpMethod; exports.InvoiceStatus = _chunkQOLVON35js.InvoiceStatus; exports.JsonApiDataFactory = _chunk4MN547K7js.JsonApiDataFactory; exports.Module = _chunkQOLVON35js.Module; exports.ModuleModule = _chunkQOLVON35js.ModuleModule; exports.ModulePaths = _chunkQOLVON35js.ModulePaths; exports.ModulePathsModule = _chunkQOLVON35js.ModulePathsModule; exports.ModuleRegistrar = _chunkQOLVON35js.ModuleRegistrar; exports.ModuleRegistry = _chunkQOLVON35js.ModuleRegistry; exports.Modules = _chunkQOLVON35js.Modules; exports.Notification = _chunkQOLVON35js.Notification; exports.NotificationFields = _chunkQOLVON35js.NotificationFields; exports.NotificationModule = _chunkQOLVON35js.NotificationModule; exports.NotificationService = _chunkQOLVON35js.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkQOLVON35js.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkQOLVON35js.OAuthClient; exports.OAuthModule = _chunkQOLVON35js.OAuthModule; exports.OAuthService = _chunkQOLVON35js.OAuthService; exports.Passkey = _chunkQOLVON35js.Passkey; exports.PasskeyAuthenticationOptions = _chunkQOLVON35js.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkQOLVON35js.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkQOLVON35js.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkQOLVON35js.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkQOLVON35js.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkQOLVON35js.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkQOLVON35js.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkQOLVON35js.PasskeyRename; exports.PasskeyRenameModule = _chunkQOLVON35js.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkQOLVON35js.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkQOLVON35js.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkQOLVON35js.PaymentMethod; exports.PermissionMapping = _chunkQOLVON35js.PermissionMapping; exports.PermissionMappingModule = _chunkQOLVON35js.PermissionMappingModule; exports.Push = _chunkQOLVON35js.Push; exports.PushModule = _chunkQOLVON35js.PushModule; exports.PushService = _chunkQOLVON35js.PushService; exports.RbacService = _chunkUJBUJALXjs.RbacService; exports.ReferralModule = _chunkQOLVON35js.ReferralModule; exports.ReferralService = _chunkQOLVON35js.ReferralService; exports.ReferralStats = _chunkQOLVON35js.ReferralStats; exports.ReferralStatsModule = _chunkQOLVON35js.ReferralStatsModule; exports.RehydrationFactory = _chunkQOLVON35js.RehydrationFactory; exports.Role = _chunkQOLVON35js.Role; exports.RoleFields = _chunkQOLVON35js.RoleFields; exports.RoleModule = _chunkQOLVON35js.RoleModule; exports.RoleService = _chunkQOLVON35js.RoleService; exports.S3 = _chunkQOLVON35js.S3; exports.S3Module = _chunkQOLVON35js.S3Module; exports.S3Service = _chunkQOLVON35js.S3Service; exports.StripeCustomer = _chunkQOLVON35js.StripeCustomer; exports.StripeCustomerModule = _chunkQOLVON35js.StripeCustomerModule; exports.StripeCustomerService = _chunkQOLVON35js.StripeCustomerService; exports.StripeInvoice = _chunkQOLVON35js.StripeInvoice; exports.StripeInvoiceModule = _chunkQOLVON35js.StripeInvoiceModule; exports.StripeInvoiceService = _chunkQOLVON35js.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkQOLVON35js.StripePaymentMethodModule; exports.StripePrice = _chunkQOLVON35js.StripePrice; exports.StripePriceModule = _chunkQOLVON35js.StripePriceModule; exports.StripePriceService = _chunkQOLVON35js.StripePriceService; exports.StripeProduct = _chunkQOLVON35js.StripeProduct; exports.StripeProductModule = _chunkQOLVON35js.StripeProductModule; exports.StripeProductService = _chunkQOLVON35js.StripeProductService; exports.StripePromotionCode = _chunkQOLVON35js.StripePromotionCode; exports.StripePromotionCodeModule = _chunkQOLVON35js.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkQOLVON35js.StripePromotionCodeService; exports.StripeSubscription = _chunkQOLVON35js.StripeSubscription; exports.StripeSubscriptionModule = _chunkQOLVON35js.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkQOLVON35js.StripeSubscriptionService; exports.StripeUsage = _chunkQOLVON35js.StripeUsage; exports.StripeUsageModule = _chunkQOLVON35js.StripeUsageModule; exports.StripeUsageService = _chunkQOLVON35js.StripeUsageService; exports.SubscriptionStatus = _chunkQOLVON35js.SubscriptionStatus; exports.TableOptions = _chunkQOLVON35js.TableOptions; exports.TotpAuthenticator = _chunkQOLVON35js.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkQOLVON35js.TotpAuthenticatorModule; exports.TotpSetup = _chunkQOLVON35js.TotpSetup; exports.TotpSetupModule = _chunkQOLVON35js.TotpSetupModule; exports.TotpVerify = _chunkQOLVON35js.TotpVerify; exports.TotpVerifyLogin = _chunkQOLVON35js.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkQOLVON35js.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkQOLVON35js.TotpVerifyModule; exports.TwoFactorChallenge = _chunkQOLVON35js.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkQOLVON35js.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkQOLVON35js.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkQOLVON35js.TwoFactorEnableModule; exports.TwoFactorService = _chunkQOLVON35js.TwoFactorService; exports.TwoFactorStatus = _chunkQOLVON35js.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkQOLVON35js.TwoFactorStatusModule; exports.User = _chunkQOLVON35js.User; exports.UserFields = _chunkQOLVON35js.UserFields; exports.UserModule = _chunkQOLVON35js.UserModule; exports.UserService = _chunkQOLVON35js.UserService; exports.Waitlist = _chunkQOLVON35js.Waitlist; exports.WaitlistModule = _chunkQOLVON35js.WaitlistModule; exports.WaitlistService = _chunkQOLVON35js.WaitlistService; exports.WaitlistStats = _chunkQOLVON35js.WaitlistStats; exports.WaitlistStatsModule = _chunkQOLVON35js.WaitlistStatsModule; exports.checkPermissions = _chunkQOLVON35js.checkPermissions; exports.checkPermissionsFromServer = _chunkQOLVON35js.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkQOLVON35js.clearLastApiTotal; exports.cn = _chunkQOLVON35js.cn; exports.composeRefs = _chunkQOLVON35js.composeRefs; exports.configureAuth = _chunkQOLVON35js.configureAuth; exports.configureI18n = _chunkUJBUJALXjs.configureI18n; exports.configureJsonApi = _chunkUJBUJALXjs.configureJsonApi; exports.configureLogin = _chunkUJBUJALXjs.configureLogin; exports.configureReferral = _chunkUJBUJALXjs.configureReferral; exports.configureRoles = _chunkUJBUJALXjs.configureRoles; exports.configureWaitlist = _chunkUJBUJALXjs.configureWaitlist; exports.createJsonApiInclusion = _chunkQOLVON35js.createJsonApiInclusion; exports.dismissToast = _chunkQOLVON35js.dismissToast; exports.entityObjectSchema = _chunkQOLVON35js.entityObjectSchema; exports.exists = _chunkQOLVON35js.exists; exports.formatDate = _chunkQOLVON35js.formatDate; exports.getApiUrl = _chunkUJBUJALXjs.getApiUrl; exports.getAppUrl = _chunkUJBUJALXjs.getAppUrl; exports.getBootstrapper = _chunk4MN547K7js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkQOLVON35js.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkQOLVON35js.getGlobalErrorHandler; exports.getIcon = _chunkQOLVON35js.getIcon; exports.getIconByModule = _chunkQOLVON35js.getIconByModule; exports.getIconByModuleName = _chunkQOLVON35js.getIconByModuleName; exports.getLastApiTotal = _chunkQOLVON35js.getLastApiTotal; exports.getLucideIcon = _chunkQOLVON35js.getLucideIcon; exports.getLucideIconByModule = _chunkQOLVON35js.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkQOLVON35js.getLucideIconByModuleName; exports.getReferralConfig = _chunkUJBUJALXjs.getReferralConfig; exports.getRoleId = _chunkUJBUJALXjs.getRoleId; exports.getStripePublishableKey = _chunkUJBUJALXjs.getStripePublishableKey; exports.getTableComponents = _chunkQOLVON35js.getTableComponents; exports.getTableOptions = _chunkQOLVON35js.getTableOptions; exports.getTokenHandler = _chunkQOLVON35js.getTokenHandler; exports.getTrackablePages = _chunkUJBUJALXjs.getTrackablePages; exports.getValueFromPath = _chunkQOLVON35js.getValueFromPath; exports.getWaitlistConfig = _chunkUJBUJALXjs.getWaitlistConfig; exports.hasBootstrapper = _chunk4MN547K7js.hasBootstrapper; exports.isReferralEnabled = _chunkUJBUJALXjs.isReferralEnabled; exports.isRolesConfigured = _chunkUJBUJALXjs.isRolesConfigured; exports.rehydrate = _chunkQOLVON35js.rehydrate; exports.rehydrateList = _chunkQOLVON35js.rehydrateList; exports.resetBootstrapStore = _chunk4MN547K7js.resetBootstrapStore; exports.setBootstrapper = _chunk4MN547K7js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkQOLVON35js.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkQOLVON35js.setGlobalErrorHandler; exports.showCustomToast = _chunkQOLVON35js.showCustomToast; exports.showError = _chunkQOLVON35js.showError; exports.showToast = _chunkQOLVON35js.showToast; exports.translateData = _chunk4MN547K7js.translateData; exports.translateResponse = _chunk4MN547K7js.translateResponse; exports.tryBootstrap = _chunk4MN547K7js.tryBootstrap; exports.useComposedRefs = _chunkQOLVON35js.useComposedRefs; exports.useIsMobile = _chunkQOLVON35js.useIsMobile; exports.userObjectSchema = _chunkQOLVON35js.userObjectSchema;
|
|
373
387
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,6pWAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
+
ACTION_TYPES,
|
|
3
|
+
COMPANY_ADMINISTRATOR_ROLE_ID,
|
|
4
|
+
RbacService,
|
|
2
5
|
configureI18n,
|
|
3
6
|
configureJsonApi,
|
|
4
7
|
configureLogin,
|
|
@@ -14,7 +17,7 @@ import {
|
|
|
14
17
|
getWaitlistConfig,
|
|
15
18
|
isReferralEnabled,
|
|
16
19
|
isRolesConfigured
|
|
17
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FE26PIZK.mjs";
|
|
18
21
|
import {
|
|
19
22
|
AVAILABLE_OAUTH_SCOPES,
|
|
20
23
|
AbstractApiData,
|
|
@@ -51,6 +54,8 @@ import {
|
|
|
51
54
|
InvoiceStatus,
|
|
52
55
|
Module,
|
|
53
56
|
ModuleModule,
|
|
57
|
+
ModulePaths,
|
|
58
|
+
ModulePathsModule,
|
|
54
59
|
ModuleRegistrar,
|
|
55
60
|
ModuleRegistry,
|
|
56
61
|
Modules,
|
|
@@ -75,6 +80,8 @@ import {
|
|
|
75
80
|
PasskeyVerifyLogin,
|
|
76
81
|
PasskeyVerifyLoginModule,
|
|
77
82
|
PaymentMethod,
|
|
83
|
+
PermissionMapping,
|
|
84
|
+
PermissionMappingModule,
|
|
78
85
|
Push,
|
|
79
86
|
PushModule,
|
|
80
87
|
PushService,
|
|
@@ -172,7 +179,7 @@ import {
|
|
|
172
179
|
useComposedRefs,
|
|
173
180
|
useIsMobile,
|
|
174
181
|
userObjectSchema
|
|
175
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-J2PYGXVD.mjs";
|
|
176
183
|
import "./chunk-AUXK7QSA.mjs";
|
|
177
184
|
import "./chunk-C7C7VY4F.mjs";
|
|
178
185
|
import {
|
|
@@ -188,6 +195,7 @@ import {
|
|
|
188
195
|
} from "./chunk-BTKJFMFL.mjs";
|
|
189
196
|
import "./chunk-PAWJFY3S.mjs";
|
|
190
197
|
export {
|
|
198
|
+
ACTION_TYPES,
|
|
191
199
|
AVAILABLE_OAUTH_SCOPES,
|
|
192
200
|
AbstractApiData,
|
|
193
201
|
AbstractService,
|
|
@@ -204,6 +212,7 @@ export {
|
|
|
204
212
|
BillingService,
|
|
205
213
|
BlockNoteDiffUtil,
|
|
206
214
|
BlockNoteWordDiffRendererUtil,
|
|
215
|
+
COMPANY_ADMINISTRATOR_ROLE_ID,
|
|
207
216
|
ClientAbstractService,
|
|
208
217
|
ClientHttpMethod,
|
|
209
218
|
Company,
|
|
@@ -226,6 +235,8 @@ export {
|
|
|
226
235
|
JsonApiDataFactory,
|
|
227
236
|
Module,
|
|
228
237
|
ModuleModule,
|
|
238
|
+
ModulePaths,
|
|
239
|
+
ModulePathsModule,
|
|
229
240
|
ModuleRegistrar,
|
|
230
241
|
ModuleRegistry,
|
|
231
242
|
Modules,
|
|
@@ -250,9 +261,12 @@ export {
|
|
|
250
261
|
PasskeyVerifyLogin,
|
|
251
262
|
PasskeyVerifyLoginModule,
|
|
252
263
|
PaymentMethod,
|
|
264
|
+
PermissionMapping,
|
|
265
|
+
PermissionMappingModule,
|
|
253
266
|
Push,
|
|
254
267
|
PushModule,
|
|
255
268
|
PushService,
|
|
269
|
+
RbacService,
|
|
256
270
|
ReferralModule,
|
|
257
271
|
ReferralService,
|
|
258
272
|
ReferralStats,
|
|
@@ -181,4 +181,4 @@ interface NotificationInterface extends ApiDataInterface {
|
|
|
181
181
|
get actor(): UserInterface | undefined;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
export { Action as A, type CompanyInput as C, type ModuleWithPermissions as M, type NotificationInterface as N, type PermissionCheck as P, type
|
|
184
|
+
export { Action as A, type CompanyInput as C, type ModuleWithPermissions as M, type NotificationInterface as N, type PermissionCheck as P, type RoleInterface 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 NotificationInput as i, type RoleInput as j, type UserInput as k };
|
package/dist/{notification.interface-DKR5WGKH.d.mts → notification.interface-DG7cq9oG.d.mts}
RENAMED
|
@@ -181,4 +181,4 @@ interface NotificationInterface extends ApiDataInterface {
|
|
|
181
181
|
get actor(): UserInterface | undefined;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
export { Action as A, type CompanyInput as C, type ModuleWithPermissions as M, type NotificationInterface as N, type PermissionCheck as P, type
|
|
184
|
+
export { Action as A, type CompanyInput as C, type ModuleWithPermissions as M, type NotificationInterface as N, type PermissionCheck as P, type RoleInterface 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 NotificationInput as i, type RoleInput as j, type UserInput as k };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { F as FeatureInterface } from './feature.interface-BxFFOPNq.mjs';
|
|
2
|
-
import {
|
|
2
|
+
import { R as RoleInterface, U as UserInterface, k as UserInput, h as CompanyInterface, C as CompanyInput, N as NotificationInterface } from './notification.interface-DG7cq9oG.mjs';
|
|
3
3
|
import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiDataInterface-DPP8s46n.mjs';
|
|
4
|
-
import { A as AuthInput, b as AuthInterface } from './auth.interface-
|
|
5
|
-
import { a as ContentInterface } from './content.interface-
|
|
4
|
+
import { A as AuthInput, b as AuthInterface } from './auth.interface-fBFqIrw4.mjs';
|
|
5
|
+
import { a as ContentInterface } from './content.interface-B5ySfiOE.mjs';
|
|
6
6
|
import { A as ApiRequestDataTypeInterface } from './ApiRequestDataTypeInterface-CYEcRUrh.mjs';
|
|
7
7
|
|
|
8
8
|
declare enum HttpMethod {
|
|
@@ -370,4 +370,4 @@ declare class S3Service extends AbstractService {
|
|
|
370
370
|
}): Promise<void>;
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
-
export {
|
|
373
|
+
export { AuthService as A, CompanyService as C, FeatureService as F, HttpMethod as H, NotificationService as N, PushService as P, RoleService as R, S3Service as S, type TotalRef as T, UserService as U, ContentService as a, AbstractService as b, type NextRef as c, type PreviousRef as d, type SelfRef as e, clearLastApiTotal as f, getLastApiTotal as g, getGlobalErrorHandler as h, type TwoFactorChallengeInterface as i, type S3Input as j, type S3Interface as k, setGlobalErrorHandler as s };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { F as FeatureInterface } from './feature.interface-CIWxo8NP.js';
|
|
2
|
-
import {
|
|
2
|
+
import { R as RoleInterface, U as UserInterface, k as UserInput, h as CompanyInterface, C as CompanyInput, N as NotificationInterface } from './notification.interface-COKHDQeE.js';
|
|
3
3
|
import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiDataInterface-DPP8s46n.js';
|
|
4
|
-
import { A as AuthInput, b as AuthInterface } from './auth.interface-
|
|
5
|
-
import { a as ContentInterface } from './content.interface-
|
|
4
|
+
import { A as AuthInput, b as AuthInterface } from './auth.interface-C1WjZ0fM.js';
|
|
5
|
+
import { a as ContentInterface } from './content.interface-mmz0uMwm.js';
|
|
6
6
|
import { A as ApiRequestDataTypeInterface } from './ApiRequestDataTypeInterface-CYEcRUrh.js';
|
|
7
7
|
|
|
8
8
|
declare enum HttpMethod {
|
|
@@ -370,4 +370,4 @@ declare class S3Service extends AbstractService {
|
|
|
370
370
|
}): Promise<void>;
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
-
export {
|
|
373
|
+
export { AuthService as A, CompanyService as C, FeatureService as F, HttpMethod as H, NotificationService as N, PushService as P, RoleService as R, S3Service as S, type TotalRef as T, UserService as U, ContentService as a, AbstractService as b, type NextRef as c, type PreviousRef as d, type SelfRef as e, clearLastApiTotal as f, getLastApiTotal as g, getGlobalErrorHandler as h, type TwoFactorChallengeInterface as i, type S3Input as j, type S3Interface as k, setGlobalErrorHandler as s };
|
package/dist/server/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { A as ApiData } from '../ApiData-DPKNfY-9.mjs';
|
|
2
|
-
import { M as ModuleWithPermissions, A as Action } from '../notification.interface-
|
|
2
|
+
import { M as ModuleWithPermissions, A as Action } from '../notification.interface-DG7cq9oG.mjs';
|
|
3
3
|
import { A as ApiRequestDataTypeInterface } from '../ApiRequestDataTypeInterface-CYEcRUrh.mjs';
|
|
4
4
|
import { A as ApiResponseInterface } from '../ApiResponseInterface-zeewugD7.mjs';
|
|
5
|
-
export {
|
|
5
|
+
export { A as ServerAuthService, C as ServerCompanyService, a as ServerContentService, F as ServerFeatureService, N as ServerNotificationService, P as ServerPushService, R as ServerRoleService, S as ServerS3Service, U as ServerUserService } from '../s3.service-BoRPFx82.mjs';
|
|
6
6
|
import 'lucide-react';
|
|
7
7
|
import '../ApiDataInterface-DPP8s46n.mjs';
|
|
8
8
|
import '../feature.interface-BxFFOPNq.mjs';
|
|
9
|
-
import '../auth.interface-
|
|
10
|
-
import '../content.interface-
|
|
9
|
+
import '../auth.interface-fBFqIrw4.mjs';
|
|
10
|
+
import '../content.interface-B5ySfiOE.mjs';
|
|
11
11
|
|
|
12
12
|
type CacheProfile = "seconds" | "minutes" | "hours" | "days" | "weeks" | "max" | "default";
|
|
13
13
|
/**
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { A as ApiData } from '../ApiData-DPKNfY-9.js';
|
|
2
|
-
import { M as ModuleWithPermissions, A as Action } from '../notification.interface-
|
|
2
|
+
import { M as ModuleWithPermissions, A as Action } from '../notification.interface-COKHDQeE.js';
|
|
3
3
|
import { A as ApiRequestDataTypeInterface } from '../ApiRequestDataTypeInterface-CYEcRUrh.js';
|
|
4
4
|
import { A as ApiResponseInterface } from '../ApiResponseInterface-CAIAeP5d.js';
|
|
5
|
-
export {
|
|
5
|
+
export { A as ServerAuthService, C as ServerCompanyService, a as ServerContentService, F as ServerFeatureService, N as ServerNotificationService, P as ServerPushService, R as ServerRoleService, S as ServerS3Service, U as ServerUserService } from '../s3.service-ppn9iGJU.js';
|
|
6
6
|
import 'lucide-react';
|
|
7
7
|
import '../ApiDataInterface-DPP8s46n.js';
|
|
8
8
|
import '../feature.interface-CIWxo8NP.js';
|
|
9
|
-
import '../auth.interface-
|
|
10
|
-
import '../content.interface-
|
|
9
|
+
import '../auth.interface-C1WjZ0fM.js';
|
|
10
|
+
import '../content.interface-mmz0uMwm.js';
|
|
11
11
|
|
|
12
12
|
type CacheProfile = "seconds" | "minutes" | "hours" | "days" | "weeks" | "max" | "default";
|
|
13
13
|
/**
|
package/dist/server/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var _chunk3ZPK4QOBjs = require('../chunk-3ZPK4QOB.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkQOLVON35js = require('../chunk-QOLVON35.js');
|
|
19
19
|
require('../chunk-LXKSUWAV.js');
|
|
20
20
|
require('../chunk-IBS6NI7D.js');
|
|
21
21
|
|
|
@@ -86,7 +86,7 @@ var ServerSession = class {
|
|
|
86
86
|
if (!rawModules) return false;
|
|
87
87
|
const modules = JSON.parse(_pako2.default.ungzip(Buffer.from(rawModules, "base64"), { to: "string" }));
|
|
88
88
|
const selectedModule = modules.find((module) => module.id === params.module.moduleId);
|
|
89
|
-
return
|
|
89
|
+
return _chunkQOLVON35js.checkPermissionsFromServer.call(void 0, {
|
|
90
90
|
module: params.module,
|
|
91
91
|
action: params.action,
|
|
92
92
|
data: params.data,
|
|
@@ -296,5 +296,5 @@ _chunk7QVYU63Ejs.__name.call(void 0, ServerJsonApiDelete, "ServerJsonApiDelete")
|
|
|
296
296
|
|
|
297
297
|
|
|
298
298
|
|
|
299
|
-
exports.ServerAuthService =
|
|
299
|
+
exports.ServerAuthService = _chunkQOLVON35js.AuthService; exports.ServerCompanyService = _chunkQOLVON35js.CompanyService; exports.ServerContentService = _chunkQOLVON35js.ContentService; exports.ServerFeatureService = _chunkQOLVON35js.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkQOLVON35js.NotificationService; exports.ServerPushService = _chunkQOLVON35js.PushService; exports.ServerRoleService = _chunkQOLVON35js.RoleService; exports.ServerS3Service = _chunkQOLVON35js.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkQOLVON35js.UserService; exports.configureServerJsonApi = configureServerJsonApi; exports.getServerApiUrl = getServerApiUrl; exports.getServerAppUrl = getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = getServerTrackablePages; exports.invalidateCacheTag = invalidateCacheTag; exports.invalidateCacheTags = invalidateCacheTags; exports.serverRequest = _chunk3ZPK4QOBjs.serverRequest;
|
|
300
300
|
//# sourceMappingURL=index.js.map
|
package/dist/server/index.mjs
CHANGED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { F as FeatureInterface } from './feature.interface-BxFFOPNq.mjs';
|
|
2
|
+
import { R as RoleInterface } from './notification.interface-DG7cq9oG.mjs';
|
|
3
|
+
import { P as PermissionMappingInterface, M as ModulePathsInterface, A as ActionType, a as PermissionValue, b as PermissionsMap } from './ModulePathsInterface-49EWvbWy.mjs';
|
|
4
|
+
|
|
5
|
+
type PageInfo = {
|
|
6
|
+
startItem: number;
|
|
7
|
+
endItem: number;
|
|
8
|
+
pageSize: number;
|
|
9
|
+
};
|
|
10
|
+
type DataListRetriever<T> = {
|
|
11
|
+
ready?: boolean;
|
|
12
|
+
setReady: (state: boolean) => void;
|
|
13
|
+
isLoaded: boolean;
|
|
14
|
+
data: T[] | undefined;
|
|
15
|
+
total?: number;
|
|
16
|
+
next?: (onlyNewRecords?: boolean) => Promise<void>;
|
|
17
|
+
previous?: (onlyNewRecords?: boolean) => Promise<void>;
|
|
18
|
+
search: (search: string) => Promise<void>;
|
|
19
|
+
refresh: () => Promise<void>;
|
|
20
|
+
addAdditionalParameter: (key: string, value: any | null) => void;
|
|
21
|
+
removeAdditionalParameter: (key: string) => void;
|
|
22
|
+
setRefreshedElement: (element: T) => void;
|
|
23
|
+
removeElement: (element: T) => void;
|
|
24
|
+
isSearch: boolean;
|
|
25
|
+
pageInfo?: PageInfo;
|
|
26
|
+
};
|
|
27
|
+
declare function useDataListRetriever<T>(params: {
|
|
28
|
+
ready?: boolean;
|
|
29
|
+
retriever: (params: any) => Promise<T[]>;
|
|
30
|
+
retrieverParams?: any;
|
|
31
|
+
search?: string;
|
|
32
|
+
addAdditionalParameter?: (key: string, value: any | null) => void;
|
|
33
|
+
requiresSearch?: boolean;
|
|
34
|
+
module: any;
|
|
35
|
+
}): DataListRetriever<T>;
|
|
36
|
+
|
|
37
|
+
interface OriginalData {
|
|
38
|
+
features: FeatureInterface[];
|
|
39
|
+
roles: RoleInterface[];
|
|
40
|
+
permissionMappings: PermissionMappingInterface[];
|
|
41
|
+
moduleRelationshipPaths: Map<string, string[]>;
|
|
42
|
+
}
|
|
43
|
+
declare function useRbacState(): {
|
|
44
|
+
original: OriginalData | null;
|
|
45
|
+
isDirty: boolean;
|
|
46
|
+
init: (features: FeatureInterface[], roles: RoleInterface[], permissionMappings: PermissionMappingInterface[], modulePaths: ModulePathsInterface[]) => void;
|
|
47
|
+
setFeatureIsCore: (featureId: string, isCore: boolean) => void;
|
|
48
|
+
setModuleDefaultPermission: (moduleId: string, actionType: ActionType, value: PermissionValue) => void;
|
|
49
|
+
setRolePermission: (roleId: string, moduleId: string, actionType: ActionType, value: PermissionValue) => void;
|
|
50
|
+
clearRolePermission: (roleId: string, moduleId: string, actionType: ActionType) => void;
|
|
51
|
+
clearAllRolePermissions: (roleId: string, moduleId: string) => void;
|
|
52
|
+
resetModulePermissions: (moduleId: string, roles: {
|
|
53
|
+
id: string;
|
|
54
|
+
}[]) => void;
|
|
55
|
+
reset: () => void;
|
|
56
|
+
getFeatureIsCore: (featureId: string) => boolean;
|
|
57
|
+
getModuleDefaultPermission: (moduleId: string, actionType: ActionType) => PermissionValue | undefined;
|
|
58
|
+
getRolePermission: (roleId: string, moduleId: string, actionType: ActionType) => PermissionValue | undefined | null;
|
|
59
|
+
getEffectiveConfiguration: () => {
|
|
60
|
+
features: {
|
|
61
|
+
id: string;
|
|
62
|
+
name: string;
|
|
63
|
+
isCore: boolean;
|
|
64
|
+
modules: {
|
|
65
|
+
id: string;
|
|
66
|
+
name: string;
|
|
67
|
+
permissions: PermissionsMap;
|
|
68
|
+
}[];
|
|
69
|
+
}[];
|
|
70
|
+
roles: RoleInterface[];
|
|
71
|
+
rolePermissionsMap: Map<string, PermissionsMap>;
|
|
72
|
+
} | null;
|
|
73
|
+
getModuleRelationshipPaths: (moduleId: string) => string[];
|
|
74
|
+
};
|
|
75
|
+
type RbacStateApi = ReturnType<typeof useRbacState>;
|
|
76
|
+
|
|
77
|
+
export { type DataListRetriever as D, type RbacStateApi as R, useDataListRetriever as a, useRbacState as u };
|