@carlonicora/nextjs-jsonapi 3.0.1 → 3.1.1
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/AbstractApiData-DtitRWPz.d.ts +47 -0
- package/dist/AbstractApiData-XLhBP5Tl.d.mts +47 -0
- package/dist/{BlockNoteEditor-G4XNDV2O.mjs → BlockNoteEditor-FIMPVA7K.mjs} +5 -5
- package/dist/{BlockNoteEditor-3IZ7PMFM.js → BlockNoteEditor-GJPTMKS7.js} +20 -20
- package/dist/{BlockNoteEditor-3IZ7PMFM.js.map → BlockNoteEditor-GJPTMKS7.js.map} +1 -1
- package/dist/{JsonApiRequest-3UWVIIFL.mjs → JsonApiRequest-2OQCZAK6.mjs} +2 -2
- package/dist/JsonApiRequest-6TYNBVUL.js +26 -0
- package/dist/{JsonApiRequest-QRU3IPIU.js.map → JsonApiRequest-6TYNBVUL.js.map} +1 -1
- package/dist/ai-connection.module-28f-hux0.d.mts +255 -0
- package/dist/ai-connection.module-Bqwh_DnR.d.ts +255 -0
- package/dist/billing/index.js +399 -399
- package/dist/billing/index.mjs +4 -4
- package/dist/{chunk-TWXKAY34.mjs → chunk-CGJW7ZZM.mjs} +310 -5
- package/dist/chunk-CGJW7ZZM.mjs.map +1 -0
- package/dist/{chunk-E5YA5Z5X.mjs → chunk-CMGXH5SA.mjs} +2 -1
- package/dist/chunk-CMGXH5SA.mjs.map +1 -0
- package/dist/{chunk-5GVBUTS4.js → chunk-E5FWGOP5.js} +1454 -794
- package/dist/chunk-E5FWGOP5.js.map +1 -0
- package/dist/{chunk-JKGEJGSD.js → chunk-H7DOSB7W.js} +9 -9
- package/dist/{chunk-JKGEJGSD.js.map → chunk-H7DOSB7W.js.map} +1 -1
- package/dist/{chunk-FPO4DLZN.js → chunk-PFAZPP54.js} +2 -1
- package/dist/chunk-PFAZPP54.js.map +1 -0
- package/dist/{chunk-WCX4CLRJ.mjs → chunk-VUMM7V5G.mjs} +1740 -1080
- package/dist/chunk-VUMM7V5G.mjs.map +1 -0
- package/dist/{chunk-53B6NPGA.js → chunk-YUXCJ35V.js} +377 -72
- package/dist/chunk-YUXCJ35V.js.map +1 -0
- package/dist/{chunk-PHEFWL6L.mjs → chunk-ZMYZFQN3.mjs} +3 -3
- package/dist/client/index.js +5 -5
- package/dist/client/index.mjs +4 -4
- package/dist/components/index.d.mts +122 -4
- package/dist/components/index.d.ts +122 -4
- package/dist/components/index.js +31 -5
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +30 -4
- package/dist/{config-BIjrg5wd.d.ts → config-B6UB7j69.d.ts} +1 -46
- package/dist/{config-BRUjtCd1.d.mts → config-n-ZpPmOL.d.mts} +1 -46
- package/dist/contexts/index.js +5 -5
- package/dist/contexts/index.mjs +4 -4
- package/dist/core/index.d.mts +5 -4
- package/dist/core/index.d.ts +5 -4
- package/dist/core/index.js +11 -3
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +10 -2
- package/dist/features/help/index.js +38 -38
- package/dist/features/help/index.mjs +4 -4
- package/dist/features/tokenusage/index.d.mts +2 -2
- package/dist/features/tokenusage/index.d.ts +2 -2
- package/dist/features/tokenusage/index.js +102 -102
- package/dist/features/tokenusage/index.mjs +4 -4
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -3
- package/dist/server/index.js +12 -12
- package/dist/server/index.mjs +2 -2
- package/package.json +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/tables/ContentListTable.tsx +1 -1
- package/src/core/index.ts +5 -0
- package/src/core/registry/ModuleRegistry.ts +2 -0
- package/src/core/utils/translateResponse.ts +6 -0
- package/src/features/administration/components/AdminIndexContainer.tsx +9 -2
- package/src/features/ai-connection/ai-connection.module.ts +14 -0
- package/src/features/ai-connection/components/containers/AiConnectionsContainer.tsx +109 -0
- package/src/features/ai-connection/components/forms/AiConnectionDeleter.tsx +58 -0
- package/src/features/ai-connection/components/forms/AiConnectionEditor.tsx +329 -0
- package/src/features/ai-connection/components/lists/AiConnectionTypeCard.tsx +223 -0
- package/src/features/ai-connection/contexts/AiConnectionsContext.tsx +111 -0
- package/src/features/ai-connection/data/__tests__/ai-connection.test.ts +202 -0
- package/src/features/ai-connection/data/ai-connection.fields.ts +6 -0
- package/src/features/ai-connection/data/ai-connection.interface.ts +87 -0
- package/src/features/ai-connection/data/ai-connection.service.ts +90 -0
- package/src/features/ai-connection/data/ai-connection.ts +244 -0
- package/src/features/ai-connection/data/index.ts +4 -0
- package/src/features/ai-connection/i18n-keys.ts +66 -0
- package/src/features/ai-connection/index.ts +11 -0
- package/src/features/index.ts +1 -0
- package/dist/AuthComponent-Cik96ElA.d.mts +0 -56
- package/dist/AuthComponent-DTTKu3VK.d.ts +0 -56
- package/dist/JsonApiRequest-QRU3IPIU.js +0 -26
- package/dist/chunk-53B6NPGA.js.map +0 -1
- package/dist/chunk-5GVBUTS4.js.map +0 -1
- package/dist/chunk-E5YA5Z5X.mjs.map +0 -1
- package/dist/chunk-FPO4DLZN.js.map +0 -1
- package/dist/chunk-TWXKAY34.mjs.map +0 -1
- package/dist/chunk-WCX4CLRJ.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-G4XNDV2O.mjs.map → BlockNoteEditor-FIMPVA7K.mjs.map} +0 -0
- /package/dist/{JsonApiRequest-3UWVIIFL.mjs.map → JsonApiRequest-2OQCZAK6.mjs.map} +0 -0
- /package/dist/{chunk-PHEFWL6L.mjs.map → chunk-ZMYZFQN3.mjs.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -2,15 +2,14 @@ export { A as ApiData } from './ApiData-DPKNfY-9.js';
|
|
|
2
2
|
import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiDataInterface-BcZeXy5X.js';
|
|
3
3
|
export { A as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys, c as createJsonApiInclusion } from './ApiRequestDataTypeInterface-CYEcRUrh.js';
|
|
4
4
|
export { A as ApiResponseInterface } from './ApiResponseInterface-CWLvSCvS.js';
|
|
5
|
-
import { A as AbstractApiData } from './
|
|
6
|
-
export { b as TokenUsageAdminBreakdownModule, T as TokenUsageAdminSummaryModule, a as TokenUsageAdminTimelineModule, c as configureTokenUsage, g as getTokenUsageCurrency, t as tokenUsageModules } from './config-BIjrg5wd.js';
|
|
5
|
+
import { A as AbstractApiData } from './AbstractApiData-DtitRWPz.js';
|
|
7
6
|
import { A as AbstractService } from './AbstractService-Cew0PD0L.js';
|
|
8
7
|
export { H as HttpMethod, N as NextRef, P as PreviousRef, S as SelfRef, T as TotalRef, b as clearLastApiMeta, c as clearLastApiTotal, d as getGlobalErrorHandler, a as getLastApiMeta, g as getLastApiTotal, s as setGlobalErrorHandler } from './AbstractService-Cew0PD0L.js';
|
|
9
8
|
export { AppModuleDefinitions, Assistant, AssistantAction, AssistantActionInput, AssistantActionInterface, AssistantActionModule, AssistantActionService, AssistantActionStatus, AssistantMessage, AssistantMessageModule, AssistantMessageService, AssistantModule, AssistantService, AuditLog, AuditLogInterface, AuditLogModule, AuditLogService, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, Chunk, ChunkInput, ChunkModule, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, CodiceFiscaleValidationOptions, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityAiStatus, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, HowTo, HowToFields, HowToModule, HowToService, InviteValidation, JsonApiDataFactory, MOBILE_BREAKPOINT, Module, ModuleDefinitions, ModuleModule, ModulePathsModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PermissionMappingModule, Push, PushInput, PushInterface, PushModule, RbacMatrixModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceFields, StripePriceModule, StripePriceService, StripeProduct, StripeProductFields, 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, VIEWPORT_COOKIE_NAME, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatCodiceFiscale, formatDate, formatLocalDate, formatPartitaIva, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, isRemoteImageSrc, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema, validateCodiceFiscale, validateItalianTaxCode, validatePartitaIva } from './core/index.js';
|
|
10
9
|
export { c as AssistantMessageInput, d as AssistantMessageInterface, A as AssistantMessageRole, b as AssistantMessageType, B as BreadcrumbItemData, e as ChunkInterface, C as ChunkRelationshipMeta, H as HowToInput, a as HowToInterface } from './AssistantMessageInterface-Dh0BpbP2.js';
|
|
11
10
|
export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-1AlHDtDb.js';
|
|
12
11
|
export { ClassValue } from 'clsx';
|
|
13
|
-
export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, b as getIcon, a as getIconByModule, c as getIconByModuleName, g as getInitials, d as getLucideIcon, e as getLucideIconByModule, f as getLucideIconByModuleName } from './
|
|
12
|
+
export { h as AiConnection, l as AiConnectionEnvDefaults, i as AiConnectionFields, n as AiConnectionInput, m as AiConnectionInterface, p as AiConnectionModule, o as AiConnectionService, j as AiProviderFieldDescriptor, k as AiProviderRegistry, A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, b as getIcon, a as getIconByModule, c as getIconByModuleName, g as getInitials, d as getLucideIcon, e as getLucideIconByModule, f as getLucideIconByModuleName } from './ai-connection.module-Bqwh_DnR.js';
|
|
14
13
|
export { A as Action, d as ModuleDefinition, a as ModuleFactory, c as ModulePermissionDefinition, M as ModuleWithPermissions, P as PageUrl, b as PermissionCheck, e as PermissionConfig, f as PermissionModule, g as PermissionUser } from './types-bsm8Fp55.js';
|
|
15
14
|
export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-COmBjh89.js';
|
|
16
15
|
export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, N as NotificationService, P as PushService, R as RoleService, b as S3Input, c as S3Interface, S as S3Service, T as TwoFactorChallengeInterface, U as UserService } from './s3.service-CpwA3sl_.js';
|
|
@@ -19,6 +18,7 @@ export { b as CompanyInput, c as CompanyInterface, a as ContentInput, C as Conte
|
|
|
19
18
|
export { A as AssistantInput, a as AssistantInterface } from './AssistantInterface-DwdBzS9f.js';
|
|
20
19
|
export { F as FeatureInterface, M as ModuleInterface } from './feature.interface-BO25VLlx.js';
|
|
21
20
|
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-CD90ycYz.js';
|
|
21
|
+
export { b as TokenUsageAdminBreakdownModule, T as TokenUsageAdminSummaryModule, a as TokenUsageAdminTimelineModule, c as configureTokenUsage, g as getTokenUsageCurrency, t as tokenUsageModules } from './config-B6UB7j69.js';
|
|
22
22
|
export { I as I18nConfig, f as configureI18n, c as configureJsonApi, g as getApiUrl, b as getAppUrl, a as getPublicApiUrl, e as getStripePublishableKey, d as getTrackablePages } from './config-Cd5xTEfZ.js';
|
|
23
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
24
|
import { R as RbacMatrix } from './RbacTypes-BTbr27Ew.js';
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkH7DOSB7Wjs = require('./chunk-H7DOSB7W.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -221,7 +221,11 @@ var _chunkJKGEJGSDjs = require('./chunk-JKGEJGSD.js');
|
|
|
221
221
|
|
|
222
222
|
|
|
223
223
|
|
|
224
|
-
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
var _chunkYUXCJ35Vjs = require('./chunk-YUXCJ35V.js');
|
|
225
229
|
require('./chunk-LXKSUWAV.js');
|
|
226
230
|
require('./chunk-IBS6NI7D.js');
|
|
227
231
|
|
|
@@ -234,7 +238,7 @@ require('./chunk-IBS6NI7D.js');
|
|
|
234
238
|
|
|
235
239
|
|
|
236
240
|
|
|
237
|
-
var
|
|
241
|
+
var _chunkPFAZPP54js = require('./chunk-PFAZPP54.js');
|
|
238
242
|
require('./chunk-7QVYU63E.js');
|
|
239
243
|
|
|
240
244
|
|
|
@@ -467,5 +471,9 @@ require('./chunk-7QVYU63E.js');
|
|
|
467
471
|
|
|
468
472
|
|
|
469
473
|
|
|
470
|
-
exports.ACTION_TYPES = _chunkJKGEJGSDjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunk53B6NPGAjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunk53B6NPGAjs.AbstractApiData; exports.AbstractService = _chunk53B6NPGAjs.AbstractService; exports.Action = _chunk53B6NPGAjs.Action; exports.Assistant = _chunk53B6NPGAjs.Assistant; exports.AssistantAction = _chunk53B6NPGAjs.AssistantAction; exports.AssistantActionModule = _chunk53B6NPGAjs.AssistantActionModule; exports.AssistantActionService = _chunk53B6NPGAjs.AssistantActionService; exports.AssistantMessage = _chunk53B6NPGAjs.AssistantMessage; exports.AssistantMessageModule = _chunk53B6NPGAjs.AssistantMessageModule; exports.AssistantMessageService = _chunk53B6NPGAjs.AssistantMessageService; exports.AssistantModule = _chunk53B6NPGAjs.AssistantModule; exports.AssistantService = _chunk53B6NPGAjs.AssistantService; exports.AuditLog = _chunk53B6NPGAjs.AuditLog; exports.AuditLogModule = _chunk53B6NPGAjs.AuditLogModule; exports.AuditLogService = _chunk53B6NPGAjs.AuditLogService; exports.Auth = _chunk53B6NPGAjs.Auth; exports.AuthComponent = _chunk53B6NPGAjs.AuthComponent; exports.AuthModule = _chunk53B6NPGAjs.AuthModule; exports.AuthService = _chunk53B6NPGAjs.AuthService; exports.AuthorModule = _chunk53B6NPGAjs.AuthorModule; exports.BackupCodeVerify = _chunk53B6NPGAjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunk53B6NPGAjs.BackupCodeVerifyModule; exports.Billing = _chunk53B6NPGAjs.Billing; exports.BillingModule = _chunk53B6NPGAjs.BillingModule; exports.BillingService = _chunk53B6NPGAjs.BillingService; exports.BlockNoteDiffUtil = _chunk53B6NPGAjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunk53B6NPGAjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkJKGEJGSDjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.Chunk = _chunk53B6NPGAjs.Chunk; exports.ChunkModule = _chunk53B6NPGAjs.ChunkModule; exports.ClientAbstractService = _chunk53B6NPGAjs.ClientAbstractService; exports.ClientHttpMethod = _chunk53B6NPGAjs.ClientHttpMethod; exports.Company = _chunk53B6NPGAjs.Company; exports.CompanyFields = _chunk53B6NPGAjs.CompanyFields; exports.CompanyModule = _chunk53B6NPGAjs.CompanyModule; exports.CompanyService = _chunk53B6NPGAjs.CompanyService; exports.Content = _chunk53B6NPGAjs.Content; exports.ContentFields = _chunk53B6NPGAjs.ContentFields; exports.ContentModule = _chunk53B6NPGAjs.ContentModule; exports.ContentService = _chunk53B6NPGAjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunk53B6NPGAjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkFPO4DLZNjs.DataClassRegistry; exports.DataClassRegistry = _chunkFPO4DLZNjs.DataClassRegistry; exports.EndpointCreator = _chunk53B6NPGAjs.EndpointCreator; exports.EntityAiStatus = _chunk53B6NPGAjs.EntityAiStatus; exports.Feature = _chunk53B6NPGAjs.Feature; exports.FeatureModule = _chunk53B6NPGAjs.FeatureModule; exports.FeatureService = _chunk53B6NPGAjs.FeatureService; exports.HowTo = _chunk53B6NPGAjs.HowTo; exports.HowToFields = _chunk53B6NPGAjs.HowToFields; exports.HowToModule = _chunk53B6NPGAjs.HowToModule; exports.HowToService = _chunk53B6NPGAjs.HowToService; exports.HttpMethod = _chunk53B6NPGAjs.HttpMethod; exports.InvoiceStatus = _chunk53B6NPGAjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkFPO4DLZNjs.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunk53B6NPGAjs.MOBILE_BREAKPOINT; exports.Module = _chunk53B6NPGAjs.Module; exports.ModuleModule = _chunk53B6NPGAjs.ModuleModule; exports.ModulePaths = _chunk53B6NPGAjs.ModulePaths; exports.ModulePathsModule = _chunk53B6NPGAjs.ModulePathsModule; exports.ModuleRegistrar = _chunk53B6NPGAjs.ModuleRegistrar; exports.ModuleRegistry = _chunk53B6NPGAjs.ModuleRegistry; exports.Modules = _chunk53B6NPGAjs.Modules; exports.Notification = _chunk53B6NPGAjs.Notification; exports.NotificationFields = _chunk53B6NPGAjs.NotificationFields; exports.NotificationModule = _chunk53B6NPGAjs.NotificationModule; exports.NotificationService = _chunk53B6NPGAjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunk53B6NPGAjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunk53B6NPGAjs.OAuthClient; exports.OAuthModule = _chunk53B6NPGAjs.OAuthModule; exports.OAuthService = _chunk53B6NPGAjs.OAuthService; exports.Passkey = _chunk53B6NPGAjs.Passkey; exports.PasskeyAuthenticationOptions = _chunk53B6NPGAjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunk53B6NPGAjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunk53B6NPGAjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunk53B6NPGAjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunk53B6NPGAjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunk53B6NPGAjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunk53B6NPGAjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunk53B6NPGAjs.PasskeyRename; exports.PasskeyRenameModule = _chunk53B6NPGAjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunk53B6NPGAjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunk53B6NPGAjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunk53B6NPGAjs.PaymentMethod; exports.PermissionMapping = _chunk53B6NPGAjs.PermissionMapping; exports.PermissionMappingModule = _chunk53B6NPGAjs.PermissionMappingModule; exports.Push = _chunk53B6NPGAjs.Push; exports.PushModule = _chunk53B6NPGAjs.PushModule; exports.PushService = _chunk53B6NPGAjs.PushService; exports.RbacMatrixModel = _chunk53B6NPGAjs.RbacMatrixModel; exports.RbacMatrixModule = _chunk53B6NPGAjs.RbacMatrixModule; exports.RbacService = _chunkJKGEJGSDjs.RbacService; exports.ReferralModule = _chunk53B6NPGAjs.ReferralModule; exports.ReferralService = _chunk53B6NPGAjs.ReferralService; exports.ReferralStats = _chunk53B6NPGAjs.ReferralStats; exports.ReferralStatsModule = _chunk53B6NPGAjs.ReferralStatsModule; exports.RehydrationFactory = _chunk53B6NPGAjs.RehydrationFactory; exports.Role = _chunk53B6NPGAjs.Role; exports.RoleFields = _chunk53B6NPGAjs.RoleFields; exports.RoleModule = _chunk53B6NPGAjs.RoleModule; exports.RoleService = _chunk53B6NPGAjs.RoleService; exports.S3 = _chunk53B6NPGAjs.S3; exports.S3Module = _chunk53B6NPGAjs.S3Module; exports.S3Service = _chunk53B6NPGAjs.S3Service; exports.StripeCustomer = _chunk53B6NPGAjs.StripeCustomer; exports.StripeCustomerModule = _chunk53B6NPGAjs.StripeCustomerModule; exports.StripeCustomerService = _chunk53B6NPGAjs.StripeCustomerService; exports.StripeInvoice = _chunk53B6NPGAjs.StripeInvoice; exports.StripeInvoiceModule = _chunk53B6NPGAjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunk53B6NPGAjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunk53B6NPGAjs.StripePaymentMethodModule; exports.StripePrice = _chunk53B6NPGAjs.StripePrice; exports.StripePriceFields = _chunk53B6NPGAjs.StripePriceFields; exports.StripePriceModule = _chunk53B6NPGAjs.StripePriceModule; exports.StripePriceService = _chunk53B6NPGAjs.StripePriceService; exports.StripeProduct = _chunk53B6NPGAjs.StripeProduct; exports.StripeProductFields = _chunk53B6NPGAjs.StripeProductFields; exports.StripeProductModule = _chunk53B6NPGAjs.StripeProductModule; exports.StripeProductService = _chunk53B6NPGAjs.StripeProductService; exports.StripePromotionCode = _chunk53B6NPGAjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunk53B6NPGAjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunk53B6NPGAjs.StripePromotionCodeService; exports.StripeSubscription = _chunk53B6NPGAjs.StripeSubscription; exports.StripeSubscriptionModule = _chunk53B6NPGAjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunk53B6NPGAjs.StripeSubscriptionService; exports.StripeUsage = _chunk53B6NPGAjs.StripeUsage; exports.StripeUsageModule = _chunk53B6NPGAjs.StripeUsageModule; exports.StripeUsageService = _chunk53B6NPGAjs.StripeUsageService; exports.SubscriptionStatus = _chunk53B6NPGAjs.SubscriptionStatus; exports.TableOptions = _chunk53B6NPGAjs.TableOptions; exports.TokenUsageAdminBreakdownModule = _chunk53B6NPGAjs.TokenUsageAdminBreakdownModule; exports.TokenUsageAdminSummaryModule = _chunk53B6NPGAjs.TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = _chunk53B6NPGAjs.TokenUsageAdminTimelineModule; exports.TotpAuthenticator = _chunk53B6NPGAjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunk53B6NPGAjs.TotpAuthenticatorModule; exports.TotpSetup = _chunk53B6NPGAjs.TotpSetup; exports.TotpSetupModule = _chunk53B6NPGAjs.TotpSetupModule; exports.TotpVerify = _chunk53B6NPGAjs.TotpVerify; exports.TotpVerifyLogin = _chunk53B6NPGAjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunk53B6NPGAjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunk53B6NPGAjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunk53B6NPGAjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunk53B6NPGAjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunk53B6NPGAjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunk53B6NPGAjs.TwoFactorEnableModule; exports.TwoFactorService = _chunk53B6NPGAjs.TwoFactorService; exports.TwoFactorStatus = _chunk53B6NPGAjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunk53B6NPGAjs.TwoFactorStatusModule; exports.User = _chunk53B6NPGAjs.User; exports.UserFields = _chunk53B6NPGAjs.UserFields; exports.UserModule = _chunk53B6NPGAjs.UserModule; exports.UserService = _chunk53B6NPGAjs.UserService; exports.VIEWPORT_COOKIE_NAME = _chunk53B6NPGAjs.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunk53B6NPGAjs.Waitlist; exports.WaitlistModule = _chunk53B6NPGAjs.WaitlistModule; exports.WaitlistService = _chunk53B6NPGAjs.WaitlistService; exports.WaitlistStats = _chunk53B6NPGAjs.WaitlistStats; exports.WaitlistStatsModule = _chunk53B6NPGAjs.WaitlistStatsModule; exports.checkPermissions = _chunk53B6NPGAjs.checkPermissions; exports.checkPermissionsFromServer = _chunk53B6NPGAjs.checkPermissionsFromServer; exports.clearLastApiMeta = _chunk53B6NPGAjs.clearLastApiMeta; exports.clearLastApiTotal = _chunk53B6NPGAjs.clearLastApiTotal; exports.cn = _chunk53B6NPGAjs.cn; exports.composeRefs = _chunk53B6NPGAjs.composeRefs; exports.configureAuth = _chunk53B6NPGAjs.configureAuth; exports.configureI18n = _chunkJKGEJGSDjs.configureI18n; exports.configureJsonApi = _chunkJKGEJGSDjs.configureJsonApi; exports.configureLogin = _chunkJKGEJGSDjs.configureLogin; exports.configureReferral = _chunkJKGEJGSDjs.configureReferral; exports.configureRoles = _chunkJKGEJGSDjs.configureRoles; exports.configureTokenUsage = _chunk53B6NPGAjs.configureTokenUsage; exports.configureWaitlist = _chunkJKGEJGSDjs.configureWaitlist; exports.createJsonApiInclusion = _chunk53B6NPGAjs.createJsonApiInclusion; exports.dismissToast = _chunk53B6NPGAjs.dismissToast; exports.entityObjectSchema = _chunk53B6NPGAjs.entityObjectSchema; exports.exists = _chunk53B6NPGAjs.exists; exports.formatCodiceFiscale = _chunk53B6NPGAjs.formatCodiceFiscale; exports.formatDate = _chunk53B6NPGAjs.formatDate; exports.formatLocalDate = _chunk53B6NPGAjs.formatLocalDate; exports.formatPartitaIva = _chunk53B6NPGAjs.formatPartitaIva; exports.getApiUrl = _chunkJKGEJGSDjs.getApiUrl; exports.getAppUrl = _chunkJKGEJGSDjs.getAppUrl; exports.getBootstrapper = _chunkFPO4DLZNjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunk53B6NPGAjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunk53B6NPGAjs.getGlobalErrorHandler; exports.getIcon = _chunk53B6NPGAjs.getIcon; exports.getIconByModule = _chunk53B6NPGAjs.getIconByModule; exports.getIconByModuleName = _chunk53B6NPGAjs.getIconByModuleName; exports.getInitials = _chunk53B6NPGAjs.getInitials; exports.getLastApiMeta = _chunk53B6NPGAjs.getLastApiMeta; exports.getLastApiTotal = _chunk53B6NPGAjs.getLastApiTotal; exports.getLucideIcon = _chunk53B6NPGAjs.getLucideIcon; exports.getLucideIconByModule = _chunk53B6NPGAjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunk53B6NPGAjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunkJKGEJGSDjs.getPublicApiUrl; exports.getReferralConfig = _chunkJKGEJGSDjs.getReferralConfig; exports.getRoleId = _chunkJKGEJGSDjs.getRoleId; exports.getStripePublishableKey = _chunkJKGEJGSDjs.getStripePublishableKey; exports.getTableComponents = _chunk53B6NPGAjs.getTableComponents; exports.getTableOptions = _chunk53B6NPGAjs.getTableOptions; exports.getTokenHandler = _chunk53B6NPGAjs.getTokenHandler; exports.getTokenUsageCurrency = _chunk53B6NPGAjs.getTokenUsageCurrency; exports.getTrackablePages = _chunkJKGEJGSDjs.getTrackablePages; exports.getValueFromPath = _chunk53B6NPGAjs.getValueFromPath; exports.getWaitlistConfig = _chunkJKGEJGSDjs.getWaitlistConfig; exports.hasBootstrapper = _chunkFPO4DLZNjs.hasBootstrapper; exports.isReferralEnabled = _chunkJKGEJGSDjs.isReferralEnabled; exports.isRemoteImageSrc = _chunk53B6NPGAjs.isRemoteImageSrc; exports.isRolesConfigured = _chunkJKGEJGSDjs.isRolesConfigured; exports.rehydrate = _chunk53B6NPGAjs.rehydrate; exports.rehydrateList = _chunk53B6NPGAjs.rehydrateList; exports.resetBootstrapStore = _chunkFPO4DLZNjs.resetBootstrapStore; exports.setBootstrapper = _chunkFPO4DLZNjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunk53B6NPGAjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunk53B6NPGAjs.setGlobalErrorHandler; exports.showCustomToast = _chunk53B6NPGAjs.showCustomToast; exports.showError = _chunk53B6NPGAjs.showError; exports.showToast = _chunk53B6NPGAjs.showToast; exports.tokenUsageModules = _chunk53B6NPGAjs.tokenUsageModules; exports.translateData = _chunkFPO4DLZNjs.translateData; exports.translateResponse = _chunkFPO4DLZNjs.translateResponse; exports.tryBootstrap = _chunkFPO4DLZNjs.tryBootstrap; exports.useComposedRefs = _chunk53B6NPGAjs.useComposedRefs; exports.useIsMobile = _chunk53B6NPGAjs.useIsMobile; exports.userObjectSchema = _chunk53B6NPGAjs.userObjectSchema; exports.validateCodiceFiscale = _chunk53B6NPGAjs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunk53B6NPGAjs.validateItalianTaxCode; exports.validatePartitaIva = _chunk53B6NPGAjs.validatePartitaIva;
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
exports.ACTION_TYPES = _chunkH7DOSB7Wjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkYUXCJ35Vjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkYUXCJ35Vjs.AbstractApiData; exports.AbstractService = _chunkYUXCJ35Vjs.AbstractService; exports.Action = _chunkYUXCJ35Vjs.Action; exports.AiConnection = _chunkYUXCJ35Vjs.AiConnection; exports.AiConnectionFields = _chunkYUXCJ35Vjs.AiConnectionFields; exports.AiConnectionModule = _chunkYUXCJ35Vjs.AiConnectionModule; exports.AiConnectionService = _chunkYUXCJ35Vjs.AiConnectionService; exports.Assistant = _chunkYUXCJ35Vjs.Assistant; exports.AssistantAction = _chunkYUXCJ35Vjs.AssistantAction; exports.AssistantActionModule = _chunkYUXCJ35Vjs.AssistantActionModule; exports.AssistantActionService = _chunkYUXCJ35Vjs.AssistantActionService; exports.AssistantMessage = _chunkYUXCJ35Vjs.AssistantMessage; exports.AssistantMessageModule = _chunkYUXCJ35Vjs.AssistantMessageModule; exports.AssistantMessageService = _chunkYUXCJ35Vjs.AssistantMessageService; exports.AssistantModule = _chunkYUXCJ35Vjs.AssistantModule; exports.AssistantService = _chunkYUXCJ35Vjs.AssistantService; exports.AuditLog = _chunkYUXCJ35Vjs.AuditLog; exports.AuditLogModule = _chunkYUXCJ35Vjs.AuditLogModule; exports.AuditLogService = _chunkYUXCJ35Vjs.AuditLogService; exports.Auth = _chunkYUXCJ35Vjs.Auth; exports.AuthComponent = _chunkYUXCJ35Vjs.AuthComponent; exports.AuthModule = _chunkYUXCJ35Vjs.AuthModule; exports.AuthService = _chunkYUXCJ35Vjs.AuthService; exports.AuthorModule = _chunkYUXCJ35Vjs.AuthorModule; exports.BackupCodeVerify = _chunkYUXCJ35Vjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkYUXCJ35Vjs.BackupCodeVerifyModule; exports.Billing = _chunkYUXCJ35Vjs.Billing; exports.BillingModule = _chunkYUXCJ35Vjs.BillingModule; exports.BillingService = _chunkYUXCJ35Vjs.BillingService; exports.BlockNoteDiffUtil = _chunkYUXCJ35Vjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkYUXCJ35Vjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkH7DOSB7Wjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.Chunk = _chunkYUXCJ35Vjs.Chunk; exports.ChunkModule = _chunkYUXCJ35Vjs.ChunkModule; exports.ClientAbstractService = _chunkYUXCJ35Vjs.ClientAbstractService; exports.ClientHttpMethod = _chunkYUXCJ35Vjs.ClientHttpMethod; exports.Company = _chunkYUXCJ35Vjs.Company; exports.CompanyFields = _chunkYUXCJ35Vjs.CompanyFields; exports.CompanyModule = _chunkYUXCJ35Vjs.CompanyModule; exports.CompanyService = _chunkYUXCJ35Vjs.CompanyService; exports.Content = _chunkYUXCJ35Vjs.Content; exports.ContentFields = _chunkYUXCJ35Vjs.ContentFields; exports.ContentModule = _chunkYUXCJ35Vjs.ContentModule; exports.ContentService = _chunkYUXCJ35Vjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkYUXCJ35Vjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkPFAZPP54js.DataClassRegistry; exports.DataClassRegistry = _chunkPFAZPP54js.DataClassRegistry; exports.EndpointCreator = _chunkYUXCJ35Vjs.EndpointCreator; exports.EntityAiStatus = _chunkYUXCJ35Vjs.EntityAiStatus; exports.Feature = _chunkYUXCJ35Vjs.Feature; exports.FeatureModule = _chunkYUXCJ35Vjs.FeatureModule; exports.FeatureService = _chunkYUXCJ35Vjs.FeatureService; exports.HowTo = _chunkYUXCJ35Vjs.HowTo; exports.HowToFields = _chunkYUXCJ35Vjs.HowToFields; exports.HowToModule = _chunkYUXCJ35Vjs.HowToModule; exports.HowToService = _chunkYUXCJ35Vjs.HowToService; exports.HttpMethod = _chunkYUXCJ35Vjs.HttpMethod; exports.InvoiceStatus = _chunkYUXCJ35Vjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkPFAZPP54js.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunkYUXCJ35Vjs.MOBILE_BREAKPOINT; exports.Module = _chunkYUXCJ35Vjs.Module; exports.ModuleModule = _chunkYUXCJ35Vjs.ModuleModule; exports.ModulePaths = _chunkYUXCJ35Vjs.ModulePaths; exports.ModulePathsModule = _chunkYUXCJ35Vjs.ModulePathsModule; exports.ModuleRegistrar = _chunkYUXCJ35Vjs.ModuleRegistrar; exports.ModuleRegistry = _chunkYUXCJ35Vjs.ModuleRegistry; exports.Modules = _chunkYUXCJ35Vjs.Modules; exports.Notification = _chunkYUXCJ35Vjs.Notification; exports.NotificationFields = _chunkYUXCJ35Vjs.NotificationFields; exports.NotificationModule = _chunkYUXCJ35Vjs.NotificationModule; exports.NotificationService = _chunkYUXCJ35Vjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkYUXCJ35Vjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkYUXCJ35Vjs.OAuthClient; exports.OAuthModule = _chunkYUXCJ35Vjs.OAuthModule; exports.OAuthService = _chunkYUXCJ35Vjs.OAuthService; exports.Passkey = _chunkYUXCJ35Vjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkYUXCJ35Vjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkYUXCJ35Vjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkYUXCJ35Vjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkYUXCJ35Vjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkYUXCJ35Vjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkYUXCJ35Vjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkYUXCJ35Vjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkYUXCJ35Vjs.PasskeyRename; exports.PasskeyRenameModule = _chunkYUXCJ35Vjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkYUXCJ35Vjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkYUXCJ35Vjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkYUXCJ35Vjs.PaymentMethod; exports.PermissionMapping = _chunkYUXCJ35Vjs.PermissionMapping; exports.PermissionMappingModule = _chunkYUXCJ35Vjs.PermissionMappingModule; exports.Push = _chunkYUXCJ35Vjs.Push; exports.PushModule = _chunkYUXCJ35Vjs.PushModule; exports.PushService = _chunkYUXCJ35Vjs.PushService; exports.RbacMatrixModel = _chunkYUXCJ35Vjs.RbacMatrixModel; exports.RbacMatrixModule = _chunkYUXCJ35Vjs.RbacMatrixModule; exports.RbacService = _chunkH7DOSB7Wjs.RbacService; exports.ReferralModule = _chunkYUXCJ35Vjs.ReferralModule; exports.ReferralService = _chunkYUXCJ35Vjs.ReferralService; exports.ReferralStats = _chunkYUXCJ35Vjs.ReferralStats; exports.ReferralStatsModule = _chunkYUXCJ35Vjs.ReferralStatsModule; exports.RehydrationFactory = _chunkYUXCJ35Vjs.RehydrationFactory; exports.Role = _chunkYUXCJ35Vjs.Role; exports.RoleFields = _chunkYUXCJ35Vjs.RoleFields; exports.RoleModule = _chunkYUXCJ35Vjs.RoleModule; exports.RoleService = _chunkYUXCJ35Vjs.RoleService; exports.S3 = _chunkYUXCJ35Vjs.S3; exports.S3Module = _chunkYUXCJ35Vjs.S3Module; exports.S3Service = _chunkYUXCJ35Vjs.S3Service; exports.StripeCustomer = _chunkYUXCJ35Vjs.StripeCustomer; exports.StripeCustomerModule = _chunkYUXCJ35Vjs.StripeCustomerModule; exports.StripeCustomerService = _chunkYUXCJ35Vjs.StripeCustomerService; exports.StripeInvoice = _chunkYUXCJ35Vjs.StripeInvoice; exports.StripeInvoiceModule = _chunkYUXCJ35Vjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkYUXCJ35Vjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkYUXCJ35Vjs.StripePaymentMethodModule; exports.StripePrice = _chunkYUXCJ35Vjs.StripePrice; exports.StripePriceFields = _chunkYUXCJ35Vjs.StripePriceFields; exports.StripePriceModule = _chunkYUXCJ35Vjs.StripePriceModule; exports.StripePriceService = _chunkYUXCJ35Vjs.StripePriceService; exports.StripeProduct = _chunkYUXCJ35Vjs.StripeProduct; exports.StripeProductFields = _chunkYUXCJ35Vjs.StripeProductFields; exports.StripeProductModule = _chunkYUXCJ35Vjs.StripeProductModule; exports.StripeProductService = _chunkYUXCJ35Vjs.StripeProductService; exports.StripePromotionCode = _chunkYUXCJ35Vjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkYUXCJ35Vjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkYUXCJ35Vjs.StripePromotionCodeService; exports.StripeSubscription = _chunkYUXCJ35Vjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkYUXCJ35Vjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkYUXCJ35Vjs.StripeSubscriptionService; exports.StripeUsage = _chunkYUXCJ35Vjs.StripeUsage; exports.StripeUsageModule = _chunkYUXCJ35Vjs.StripeUsageModule; exports.StripeUsageService = _chunkYUXCJ35Vjs.StripeUsageService; exports.SubscriptionStatus = _chunkYUXCJ35Vjs.SubscriptionStatus; exports.TableOptions = _chunkYUXCJ35Vjs.TableOptions; exports.TokenUsageAdminBreakdownModule = _chunkYUXCJ35Vjs.TokenUsageAdminBreakdownModule; exports.TokenUsageAdminSummaryModule = _chunkYUXCJ35Vjs.TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = _chunkYUXCJ35Vjs.TokenUsageAdminTimelineModule; exports.TotpAuthenticator = _chunkYUXCJ35Vjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkYUXCJ35Vjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkYUXCJ35Vjs.TotpSetup; exports.TotpSetupModule = _chunkYUXCJ35Vjs.TotpSetupModule; exports.TotpVerify = _chunkYUXCJ35Vjs.TotpVerify; exports.TotpVerifyLogin = _chunkYUXCJ35Vjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkYUXCJ35Vjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkYUXCJ35Vjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkYUXCJ35Vjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkYUXCJ35Vjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkYUXCJ35Vjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkYUXCJ35Vjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkYUXCJ35Vjs.TwoFactorService; exports.TwoFactorStatus = _chunkYUXCJ35Vjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkYUXCJ35Vjs.TwoFactorStatusModule; exports.User = _chunkYUXCJ35Vjs.User; exports.UserFields = _chunkYUXCJ35Vjs.UserFields; exports.UserModule = _chunkYUXCJ35Vjs.UserModule; exports.UserService = _chunkYUXCJ35Vjs.UserService; exports.VIEWPORT_COOKIE_NAME = _chunkYUXCJ35Vjs.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunkYUXCJ35Vjs.Waitlist; exports.WaitlistModule = _chunkYUXCJ35Vjs.WaitlistModule; exports.WaitlistService = _chunkYUXCJ35Vjs.WaitlistService; exports.WaitlistStats = _chunkYUXCJ35Vjs.WaitlistStats; exports.WaitlistStatsModule = _chunkYUXCJ35Vjs.WaitlistStatsModule; exports.checkPermissions = _chunkYUXCJ35Vjs.checkPermissions; exports.checkPermissionsFromServer = _chunkYUXCJ35Vjs.checkPermissionsFromServer; exports.clearLastApiMeta = _chunkYUXCJ35Vjs.clearLastApiMeta; exports.clearLastApiTotal = _chunkYUXCJ35Vjs.clearLastApiTotal; exports.cn = _chunkYUXCJ35Vjs.cn; exports.composeRefs = _chunkYUXCJ35Vjs.composeRefs; exports.configureAuth = _chunkYUXCJ35Vjs.configureAuth; exports.configureI18n = _chunkH7DOSB7Wjs.configureI18n; exports.configureJsonApi = _chunkH7DOSB7Wjs.configureJsonApi; exports.configureLogin = _chunkH7DOSB7Wjs.configureLogin; exports.configureReferral = _chunkH7DOSB7Wjs.configureReferral; exports.configureRoles = _chunkH7DOSB7Wjs.configureRoles; exports.configureTokenUsage = _chunkYUXCJ35Vjs.configureTokenUsage; exports.configureWaitlist = _chunkH7DOSB7Wjs.configureWaitlist; exports.createJsonApiInclusion = _chunkYUXCJ35Vjs.createJsonApiInclusion; exports.dismissToast = _chunkYUXCJ35Vjs.dismissToast; exports.entityObjectSchema = _chunkYUXCJ35Vjs.entityObjectSchema; exports.exists = _chunkYUXCJ35Vjs.exists; exports.formatCodiceFiscale = _chunkYUXCJ35Vjs.formatCodiceFiscale; exports.formatDate = _chunkYUXCJ35Vjs.formatDate; exports.formatLocalDate = _chunkYUXCJ35Vjs.formatLocalDate; exports.formatPartitaIva = _chunkYUXCJ35Vjs.formatPartitaIva; exports.getApiUrl = _chunkH7DOSB7Wjs.getApiUrl; exports.getAppUrl = _chunkH7DOSB7Wjs.getAppUrl; exports.getBootstrapper = _chunkPFAZPP54js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkYUXCJ35Vjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkYUXCJ35Vjs.getGlobalErrorHandler; exports.getIcon = _chunkYUXCJ35Vjs.getIcon; exports.getIconByModule = _chunkYUXCJ35Vjs.getIconByModule; exports.getIconByModuleName = _chunkYUXCJ35Vjs.getIconByModuleName; exports.getInitials = _chunkYUXCJ35Vjs.getInitials; exports.getLastApiMeta = _chunkYUXCJ35Vjs.getLastApiMeta; exports.getLastApiTotal = _chunkYUXCJ35Vjs.getLastApiTotal; exports.getLucideIcon = _chunkYUXCJ35Vjs.getLucideIcon; exports.getLucideIconByModule = _chunkYUXCJ35Vjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkYUXCJ35Vjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunkH7DOSB7Wjs.getPublicApiUrl; exports.getReferralConfig = _chunkH7DOSB7Wjs.getReferralConfig; exports.getRoleId = _chunkH7DOSB7Wjs.getRoleId; exports.getStripePublishableKey = _chunkH7DOSB7Wjs.getStripePublishableKey; exports.getTableComponents = _chunkYUXCJ35Vjs.getTableComponents; exports.getTableOptions = _chunkYUXCJ35Vjs.getTableOptions; exports.getTokenHandler = _chunkYUXCJ35Vjs.getTokenHandler; exports.getTokenUsageCurrency = _chunkYUXCJ35Vjs.getTokenUsageCurrency; exports.getTrackablePages = _chunkH7DOSB7Wjs.getTrackablePages; exports.getValueFromPath = _chunkYUXCJ35Vjs.getValueFromPath; exports.getWaitlistConfig = _chunkH7DOSB7Wjs.getWaitlistConfig; exports.hasBootstrapper = _chunkPFAZPP54js.hasBootstrapper; exports.isReferralEnabled = _chunkH7DOSB7Wjs.isReferralEnabled; exports.isRemoteImageSrc = _chunkYUXCJ35Vjs.isRemoteImageSrc; exports.isRolesConfigured = _chunkH7DOSB7Wjs.isRolesConfigured; exports.rehydrate = _chunkYUXCJ35Vjs.rehydrate; exports.rehydrateList = _chunkYUXCJ35Vjs.rehydrateList; exports.resetBootstrapStore = _chunkPFAZPP54js.resetBootstrapStore; exports.setBootstrapper = _chunkPFAZPP54js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkYUXCJ35Vjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkYUXCJ35Vjs.setGlobalErrorHandler; exports.showCustomToast = _chunkYUXCJ35Vjs.showCustomToast; exports.showError = _chunkYUXCJ35Vjs.showError; exports.showToast = _chunkYUXCJ35Vjs.showToast; exports.tokenUsageModules = _chunkYUXCJ35Vjs.tokenUsageModules; exports.translateData = _chunkPFAZPP54js.translateData; exports.translateResponse = _chunkPFAZPP54js.translateResponse; exports.tryBootstrap = _chunkPFAZPP54js.tryBootstrap; exports.useComposedRefs = _chunkYUXCJ35Vjs.useComposedRefs; exports.useIsMobile = _chunkYUXCJ35Vjs.useIsMobile; exports.userObjectSchema = _chunkYUXCJ35Vjs.userObjectSchema; exports.validateCodiceFiscale = _chunkYUXCJ35Vjs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunkYUXCJ35Vjs.validateItalianTaxCode; exports.validatePartitaIva = _chunkYUXCJ35Vjs.validatePartitaIva;
|
|
471
479
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,u/bAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"}
|
package/dist/index.mjs
CHANGED
|
@@ -18,12 +18,16 @@ import {
|
|
|
18
18
|
getWaitlistConfig,
|
|
19
19
|
isReferralEnabled,
|
|
20
20
|
isRolesConfigured
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZMYZFQN3.mjs";
|
|
22
22
|
import {
|
|
23
23
|
AVAILABLE_OAUTH_SCOPES,
|
|
24
24
|
AbstractApiData,
|
|
25
25
|
AbstractService,
|
|
26
26
|
Action,
|
|
27
|
+
AiConnection,
|
|
28
|
+
AiConnectionFields,
|
|
29
|
+
AiConnectionModule,
|
|
30
|
+
AiConnectionService,
|
|
27
31
|
Assistant,
|
|
28
32
|
AssistantAction,
|
|
29
33
|
AssistantActionModule,
|
|
@@ -221,7 +225,7 @@ import {
|
|
|
221
225
|
validateCodiceFiscale,
|
|
222
226
|
validateItalianTaxCode,
|
|
223
227
|
validatePartitaIva
|
|
224
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-CGJW7ZZM.mjs";
|
|
225
229
|
import "./chunk-AUXK7QSA.mjs";
|
|
226
230
|
import "./chunk-C7C7VY4F.mjs";
|
|
227
231
|
import {
|
|
@@ -234,7 +238,7 @@ import {
|
|
|
234
238
|
translateData,
|
|
235
239
|
translateResponse,
|
|
236
240
|
tryBootstrap
|
|
237
|
-
} from "./chunk-
|
|
241
|
+
} from "./chunk-CMGXH5SA.mjs";
|
|
238
242
|
import "./chunk-PAWJFY3S.mjs";
|
|
239
243
|
export {
|
|
240
244
|
ACTION_TYPES,
|
|
@@ -242,6 +246,10 @@ export {
|
|
|
242
246
|
AbstractApiData,
|
|
243
247
|
AbstractService,
|
|
244
248
|
Action,
|
|
249
|
+
AiConnection,
|
|
250
|
+
AiConnectionFields,
|
|
251
|
+
AiConnectionModule,
|
|
252
|
+
AiConnectionService,
|
|
245
253
|
Assistant,
|
|
246
254
|
AssistantAction,
|
|
247
255
|
AssistantActionModule,
|
package/dist/server/index.js
CHANGED
|
@@ -15,13 +15,13 @@ var _chunkIOLU4ASDjs = require('../chunk-IOLU4ASD.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkYUXCJ35Vjs = require('../chunk-YUXCJ35V.js');
|
|
19
19
|
require('../chunk-LXKSUWAV.js');
|
|
20
20
|
require('../chunk-IBS6NI7D.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkPFAZPP54js = require('../chunk-PFAZPP54.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunk7QVYU63Ejs = require('../chunk-7QVYU63E.js');
|
|
@@ -86,7 +86,7 @@ var ServerSession = class {
|
|
|
86
86
|
if (!rawModules) return false;
|
|
87
87
|
const modules = JSON.parse(_pako.ungzip.call(void 0, Buffer.from(rawModules, "base64"), { toText: true }));
|
|
88
88
|
const selectedModule = modules.find((module) => module.id === params.module.moduleId);
|
|
89
|
-
return
|
|
89
|
+
return _chunkYUXCJ35Vjs.checkPermissionsFromServer.call(void 0, {
|
|
90
90
|
module: params.module,
|
|
91
91
|
action: params.action,
|
|
92
92
|
data: params.data,
|
|
@@ -158,7 +158,7 @@ async function ServerJsonApiGet(params) {
|
|
|
158
158
|
language: params.language,
|
|
159
159
|
additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _23 => _23.additionalHeaders])
|
|
160
160
|
});
|
|
161
|
-
return
|
|
161
|
+
return _chunkPFAZPP54js.translateResponse.call(void 0, {
|
|
162
162
|
classKey: params.classKey,
|
|
163
163
|
apiResponse,
|
|
164
164
|
companyId: params.companyId,
|
|
@@ -179,7 +179,7 @@ async function ServerJsonApiPost(params) {
|
|
|
179
179
|
if (!body) {
|
|
180
180
|
body = {};
|
|
181
181
|
} else if (params.overridesJsonApiCreation !== true) {
|
|
182
|
-
body =
|
|
182
|
+
body = _chunkPFAZPP54js.JsonApiDataFactory.create(params.classKey, body);
|
|
183
183
|
}
|
|
184
184
|
const apiResponse = await _chunkIOLU4ASDjs.serverRequest.call(void 0, {
|
|
185
185
|
method: "POST",
|
|
@@ -191,7 +191,7 @@ async function ServerJsonApiPost(params) {
|
|
|
191
191
|
language: params.language,
|
|
192
192
|
additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _24 => _24.additionalHeaders])
|
|
193
193
|
});
|
|
194
|
-
return
|
|
194
|
+
return _chunkPFAZPP54js.translateResponse.call(void 0, {
|
|
195
195
|
classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
|
|
196
196
|
apiResponse,
|
|
197
197
|
companyId: params.companyId,
|
|
@@ -206,7 +206,7 @@ async function ServerJsonApiPut(params) {
|
|
|
206
206
|
if (!body) {
|
|
207
207
|
body = {};
|
|
208
208
|
} else {
|
|
209
|
-
body =
|
|
209
|
+
body = _chunkPFAZPP54js.JsonApiDataFactory.create(params.classKey, body);
|
|
210
210
|
}
|
|
211
211
|
const apiResponse = await _chunkIOLU4ASDjs.serverRequest.call(void 0, {
|
|
212
212
|
method: "PUT",
|
|
@@ -218,7 +218,7 @@ async function ServerJsonApiPut(params) {
|
|
|
218
218
|
language: params.language,
|
|
219
219
|
additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _25 => _25.additionalHeaders])
|
|
220
220
|
});
|
|
221
|
-
return
|
|
221
|
+
return _chunkPFAZPP54js.translateResponse.call(void 0, {
|
|
222
222
|
classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
|
|
223
223
|
apiResponse,
|
|
224
224
|
companyId: params.companyId,
|
|
@@ -233,7 +233,7 @@ async function ServerJsonApiPatch(params) {
|
|
|
233
233
|
if (!body) {
|
|
234
234
|
body = {};
|
|
235
235
|
} else if (params.overridesJsonApiCreation !== true) {
|
|
236
|
-
body =
|
|
236
|
+
body = _chunkPFAZPP54js.JsonApiDataFactory.create(params.classKey, body);
|
|
237
237
|
}
|
|
238
238
|
const apiResponse = await _chunkIOLU4ASDjs.serverRequest.call(void 0, {
|
|
239
239
|
method: "PATCH",
|
|
@@ -245,7 +245,7 @@ async function ServerJsonApiPatch(params) {
|
|
|
245
245
|
language: params.language,
|
|
246
246
|
additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _26 => _26.additionalHeaders])
|
|
247
247
|
});
|
|
248
|
-
return
|
|
248
|
+
return _chunkPFAZPP54js.translateResponse.call(void 0, {
|
|
249
249
|
classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
|
|
250
250
|
apiResponse,
|
|
251
251
|
companyId: params.companyId,
|
|
@@ -264,7 +264,7 @@ async function ServerJsonApiDelete(params) {
|
|
|
264
264
|
language: params.language,
|
|
265
265
|
additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _27 => _27.additionalHeaders])
|
|
266
266
|
});
|
|
267
|
-
return
|
|
267
|
+
return _chunkPFAZPP54js.translateResponse.call(void 0, {
|
|
268
268
|
classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
|
|
269
269
|
apiResponse,
|
|
270
270
|
companyId: params.companyId,
|
|
@@ -296,5 +296,5 @@ _chunk7QVYU63Ejs.__name.call(void 0, ServerJsonApiDelete, "ServerJsonApiDelete")
|
|
|
296
296
|
|
|
297
297
|
|
|
298
298
|
|
|
299
|
-
exports.ServerAuthService =
|
|
299
|
+
exports.ServerAuthService = _chunkYUXCJ35Vjs.AuthService; exports.ServerCompanyService = _chunkYUXCJ35Vjs.CompanyService; exports.ServerContentService = _chunkYUXCJ35Vjs.ContentService; exports.ServerFeatureService = _chunkYUXCJ35Vjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkYUXCJ35Vjs.NotificationService; exports.ServerPushService = _chunkYUXCJ35Vjs.PushService; exports.ServerRoleService = _chunkYUXCJ35Vjs.RoleService; exports.ServerS3Service = _chunkYUXCJ35Vjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkYUXCJ35Vjs.UserService; exports.configureServerJsonApi = configureServerJsonApi; exports.getServerApiUrl = getServerApiUrl; exports.getServerAppUrl = getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = getServerTrackablePages; exports.invalidateCacheTag = invalidateCacheTag; exports.invalidateCacheTags = invalidateCacheTags; exports.serverRequest = _chunkIOLU4ASDjs.serverRequest;
|
|
300
300
|
//# sourceMappingURL=index.js.map
|
package/dist/server/index.mjs
CHANGED
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
S3Service,
|
|
16
16
|
UserService,
|
|
17
17
|
checkPermissionsFromServer
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-CGJW7ZZM.mjs";
|
|
19
19
|
import "../chunk-AUXK7QSA.mjs";
|
|
20
20
|
import "../chunk-C7C7VY4F.mjs";
|
|
21
21
|
import {
|
|
22
22
|
JsonApiDataFactory,
|
|
23
23
|
translateResponse
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-CMGXH5SA.mjs";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
27
|
} from "../chunk-PAWJFY3S.mjs";
|
package/package.json
CHANGED
package/src/components/index.ts
CHANGED
|
@@ -21,6 +21,7 @@ export { parseFiscalData } from "../utils/fiscal-utils";
|
|
|
21
21
|
// Feature components
|
|
22
22
|
export * from "../features/auth/components";
|
|
23
23
|
export * from "../features/administration";
|
|
24
|
+
export * from "../features/ai-connection";
|
|
24
25
|
// Billing components moved to separate entry point: @carlonicora/nextjs-jsonapi/billing
|
|
25
26
|
export * from "../features/company/components";
|
|
26
27
|
export * from "../features/content/components";
|
|
@@ -182,8 +182,8 @@ export const ContentListTable = memo(function ContentListTable(props: ContentLis
|
|
|
182
182
|
</div>
|
|
183
183
|
{(props.functions || props.filters || allowSearch) && (
|
|
184
184
|
<>
|
|
185
|
-
{props.functions}
|
|
186
185
|
{props.filters}
|
|
186
|
+
{props.functions}
|
|
187
187
|
{/* `allowSearch !== false`, not `allowSearch`: the search box has
|
|
188
188
|
always rendered here whenever `functions`/`filters` were set, and
|
|
189
189
|
most callers rely on that without passing the flag. Gating on the
|
package/src/core/index.ts
CHANGED
|
@@ -55,6 +55,11 @@ export * from "../features/billing/stripe-product";
|
|
|
55
55
|
export * from "../features/billing/stripe-subscription";
|
|
56
56
|
export * from "../features/billing/stripe-usage";
|
|
57
57
|
export * from "../features/billing/stripe-promotion-code";
|
|
58
|
+
// AI connection administration: data + module only, NOT the feature barrel —
|
|
59
|
+
// that one also re-exports the feature's client components, and core must stay
|
|
60
|
+
// importable from the server (same rationale as the tokenusage entries below).
|
|
61
|
+
export * from "../features/ai-connection/data";
|
|
62
|
+
export * from "../features/ai-connection/ai-connection.module";
|
|
58
63
|
export * from "../features/company/company.module";
|
|
59
64
|
export * from "../features/company/data";
|
|
60
65
|
export * from "../features/content/content.module";
|
|
@@ -30,6 +30,8 @@ export interface FoundationModuleDefinitions {
|
|
|
30
30
|
StripePrice: ModuleWithPermissions;
|
|
31
31
|
StripeUsage: ModuleWithPermissions;
|
|
32
32
|
StripePromotionCode: ModuleWithPermissions;
|
|
33
|
+
// AI connection administration
|
|
34
|
+
AiConnection: ModuleWithPermissions;
|
|
33
35
|
// OAuth modules
|
|
34
36
|
OAuth: ModuleWithPermissions;
|
|
35
37
|
// Waitlist modules
|
|
@@ -83,6 +83,12 @@ export async function translateResponse<T extends ApiDataInterface>(params: {
|
|
|
83
83
|
|
|
84
84
|
if (params.apiResponse.status === 204) return response;
|
|
85
85
|
|
|
86
|
+
// A success with no body (e.g. a 200 from a handler that sends nothing —
|
|
87
|
+
// @HttpCode is inert when a controller injects @Res, so "204" endpoints can
|
|
88
|
+
// arrive as empty 200s) translates to an empty success, not a crash on
|
|
89
|
+
// `.included` below.
|
|
90
|
+
if (params.apiResponse.data === undefined || params.apiResponse.data === null) return response;
|
|
91
|
+
|
|
86
92
|
response.raw = params.apiResponse.data;
|
|
87
93
|
|
|
88
94
|
// Extract meta from JSON:API response
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { Building2Icon, CoinsIcon, CreditCardIcon, ShieldCheckIcon, UsersIcon } from "lucide-react";
|
|
3
|
+
import { Building2Icon, CoinsIcon, CreditCardIcon, PlugZapIcon, ShieldCheckIcon, UsersIcon } from "lucide-react";
|
|
4
4
|
import { useTranslations } from "next-intl";
|
|
5
5
|
import { getStripePublishableKey } from "../../../client/config";
|
|
6
6
|
import { MicroLabel, RoundPageContainer } from "../../../components";
|
|
@@ -38,6 +38,13 @@ const PLATFORM_SECTIONS: AdminSection[] = [
|
|
|
38
38
|
descriptionKey: "administration.token_usage.description",
|
|
39
39
|
href: "/administration/token-usage",
|
|
40
40
|
},
|
|
41
|
+
{
|
|
42
|
+
key: "ai-connections",
|
|
43
|
+
icon: PlugZapIcon,
|
|
44
|
+
labelKey: "ai_connections.admin.title",
|
|
45
|
+
descriptionKey: "administration.ai_connections.description",
|
|
46
|
+
href: "/administration/ai-connections",
|
|
47
|
+
},
|
|
41
48
|
{
|
|
42
49
|
key: "rbac",
|
|
43
50
|
icon: ShieldCheckIcon,
|
|
@@ -64,7 +71,7 @@ const BILLING_SECTION: AdminSection = {
|
|
|
64
71
|
};
|
|
65
72
|
|
|
66
73
|
/** Keys of the built-in platform sections, for `hiddenSections`. */
|
|
67
|
-
export type PlatformSectionKey = "companies" | "users" | "token-usage" | "rbac" | "billing";
|
|
74
|
+
export type PlatformSectionKey = "companies" | "users" | "token-usage" | "ai-connections" | "rbac" | "billing";
|
|
68
75
|
|
|
69
76
|
type AdminIndexProps = {
|
|
70
77
|
/** Project-specific groups, appended after the built-in platform group. */
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ModuleFactory } from "../../permissions";
|
|
2
|
+
import { AiConnection } from "./data";
|
|
3
|
+
|
|
4
|
+
export const AiConnectionModule = (factory: ModuleFactory) =>
|
|
5
|
+
factory({
|
|
6
|
+
name: "ai-connections",
|
|
7
|
+
// The administration route this entity is served at. `name` above stays the
|
|
8
|
+
// API endpoint; this drives generateUrl / rewriteUrl / EditorSheet
|
|
9
|
+
// navigation, so it must match the real Next.js route or RoundPageContainer
|
|
10
|
+
// rewrites the URL to a 404 on the first tab change.
|
|
11
|
+
pageUrl: "/administration/ai-connections",
|
|
12
|
+
model: AiConnection,
|
|
13
|
+
moduleId: "7d3f2b8a-91c4-4e6d-a5f0-2c9b8e4d1a37",
|
|
14
|
+
});
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useTranslations } from "next-intl";
|
|
4
|
+
import { useEffect, useMemo, useState } from "react";
|
|
5
|
+
import { RoundPageContainer } from "../../../../components";
|
|
6
|
+
import { Modules } from "../../../../core";
|
|
7
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../../../../shadcnui";
|
|
8
|
+
import { CompanyInterface } from "../../../company/data/company.interface";
|
|
9
|
+
import { CompanyService } from "../../../company/data/company.service";
|
|
10
|
+
import { AiConnectionsProvider, useAiConnections } from "../../contexts/AiConnectionsContext";
|
|
11
|
+
import { AiConnectionTypeCard } from "../lists/AiConnectionTypeCard";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The eight definable connection types, in the order the page presents them.
|
|
15
|
+
* Mirrors AI_CONNECTION_TYPES on the backend (core/llm/interfaces/ai-candidate.interface.ts);
|
|
16
|
+
* the frontend renders them blind — every label is an i18n key.
|
|
17
|
+
*/
|
|
18
|
+
export const AI_CONNECTION_TYPE_ORDER = [
|
|
19
|
+
"ai",
|
|
20
|
+
"aiLite",
|
|
21
|
+
"aiLarge",
|
|
22
|
+
"vision",
|
|
23
|
+
"audio",
|
|
24
|
+
"embedder",
|
|
25
|
+
"transcriber",
|
|
26
|
+
"documentAi",
|
|
27
|
+
] as const;
|
|
28
|
+
|
|
29
|
+
/** Sentinel for the global chain — Base UI Select cannot hold `null`. */
|
|
30
|
+
const GLOBAL_SCOPE = "global";
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Page container for the AI-connections administration surface.
|
|
34
|
+
*
|
|
35
|
+
* Client component by necessity: `module={Modules.AiConnection}` is a registry
|
|
36
|
+
* entry carrying an icon component and methods, which a Server Component cannot
|
|
37
|
+
* pass across the boundary. Routes mount this container bare — it brings its own
|
|
38
|
+
* provider (which publishes the page chrome) and its own shell, the same shape
|
|
39
|
+
* as ProductsListContainer.
|
|
40
|
+
*/
|
|
41
|
+
export function AiConnectionsContainer() {
|
|
42
|
+
return (
|
|
43
|
+
<AiConnectionsProvider>
|
|
44
|
+
<RoundPageContainer module={Modules.AiConnection} fullWidth forceHeader>
|
|
45
|
+
<AiConnectionsBody />
|
|
46
|
+
</RoundPageContainer>
|
|
47
|
+
</AiConnectionsProvider>
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function AiConnectionsBody() {
|
|
52
|
+
const t = useTranslations();
|
|
53
|
+
const { scopeCompanyId, setScopeCompanyId } = useAiConnections();
|
|
54
|
+
const [companies, setCompanies] = useState<CompanyInterface[]>([]);
|
|
55
|
+
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
let active = true;
|
|
58
|
+
CompanyService.findMany({})
|
|
59
|
+
.then((response) => {
|
|
60
|
+
if (active) setCompanies(response ?? []);
|
|
61
|
+
})
|
|
62
|
+
.catch(() => {
|
|
63
|
+
// A company list that cannot be read only costs the per-company scope;
|
|
64
|
+
// the global chains — the page's primary content — still render.
|
|
65
|
+
if (active) setCompanies([]);
|
|
66
|
+
});
|
|
67
|
+
return () => {
|
|
68
|
+
active = false;
|
|
69
|
+
};
|
|
70
|
+
}, []);
|
|
71
|
+
|
|
72
|
+
const scopeItems = useMemo<Record<string, string>>(
|
|
73
|
+
() => ({
|
|
74
|
+
[GLOBAL_SCOPE]: t("ai_connections.admin.scope.global"),
|
|
75
|
+
...Object.fromEntries(companies.map((company) => [company.id, company.name])),
|
|
76
|
+
}),
|
|
77
|
+
[companies, t],
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
return (
|
|
81
|
+
<div className="flex w-full flex-col gap-4 p-4">
|
|
82
|
+
<div className="flex flex-wrap items-center gap-2">
|
|
83
|
+
<Select
|
|
84
|
+
items={scopeItems}
|
|
85
|
+
value={scopeCompanyId ?? GLOBAL_SCOPE}
|
|
86
|
+
onValueChange={(value) => setScopeCompanyId(!value || value === GLOBAL_SCOPE ? null : String(value))}
|
|
87
|
+
>
|
|
88
|
+
<SelectTrigger size="sm" className="w-64" aria-label={t("ai_connections.admin.scope.company")}>
|
|
89
|
+
<SelectValue placeholder={t("ai_connections.admin.scope.global")} />
|
|
90
|
+
</SelectTrigger>
|
|
91
|
+
<SelectContent>
|
|
92
|
+
<SelectItem value={GLOBAL_SCOPE}>{t("ai_connections.admin.scope.global")}</SelectItem>
|
|
93
|
+
{companies.map((company) => (
|
|
94
|
+
<SelectItem key={company.id} value={company.id}>
|
|
95
|
+
{company.name}
|
|
96
|
+
</SelectItem>
|
|
97
|
+
))}
|
|
98
|
+
</SelectContent>
|
|
99
|
+
</Select>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
<div className="flex w-full flex-col gap-4">
|
|
103
|
+
{AI_CONNECTION_TYPE_ORDER.map((connectionType) => (
|
|
104
|
+
<AiConnectionTypeCard key={connectionType} connectionType={connectionType} />
|
|
105
|
+
))}
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
);
|
|
109
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { TrashIcon } from "lucide-react";
|
|
4
|
+
import { useTranslations } from "next-intl";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
import { errorToast } from "../../../../components/errors";
|
|
7
|
+
import { Button, ConfirmDialog } from "../../../../shadcnui";
|
|
8
|
+
import { AiConnectionInterface, AiConnectionService } from "../../data";
|
|
9
|
+
import { useAiConnections } from "../../contexts/AiConnectionsContext";
|
|
10
|
+
|
|
11
|
+
export type AiConnectionDeleterProps = {
|
|
12
|
+
connection: AiConnectionInterface;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Removes one link from a fallback chain.
|
|
17
|
+
*
|
|
18
|
+
* Built on ConfirmDialog, which is controlled and trigger-less by design — the
|
|
19
|
+
* caller owns the trigger button, so none of Base UI's trigger-composition
|
|
20
|
+
* pitfalls apply (no asChild, no nested <button>). Mirrors ProductArchiver.
|
|
21
|
+
*/
|
|
22
|
+
export function AiConnectionDeleter({ connection }: AiConnectionDeleterProps) {
|
|
23
|
+
const t = useTranslations();
|
|
24
|
+
const { refresh } = useAiConnections();
|
|
25
|
+
const [open, setOpen] = useState<boolean>(false);
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<>
|
|
29
|
+
<Button
|
|
30
|
+
variant="ghost"
|
|
31
|
+
size="icon-sm"
|
|
32
|
+
className="text-muted-foreground"
|
|
33
|
+
aria-label={t("ai_connections.admin.delete.title")}
|
|
34
|
+
onClick={() => setOpen(true)}
|
|
35
|
+
>
|
|
36
|
+
<TrashIcon />
|
|
37
|
+
</Button>
|
|
38
|
+
<ConfirmDialog
|
|
39
|
+
open={open}
|
|
40
|
+
onOpenChange={setOpen}
|
|
41
|
+
title={t("ai_connections.admin.delete.title")}
|
|
42
|
+
description={t("ai_connections.admin.delete.description", { name: connection.name })}
|
|
43
|
+
confirmLabel={t("ai_connections.admin.delete.confirm")}
|
|
44
|
+
cancelLabel={t("ui.buttons.cancel")}
|
|
45
|
+
destructive
|
|
46
|
+
onConfirm={async () => {
|
|
47
|
+
try {
|
|
48
|
+
await AiConnectionService.delete({ id: connection.id });
|
|
49
|
+
await refresh();
|
|
50
|
+
} catch (error) {
|
|
51
|
+
errorToast({ title: t("ai_connections.admin.delete.title"), error });
|
|
52
|
+
throw error; // keeps the dialog open — ConfirmDialog swallows rejections
|
|
53
|
+
}
|
|
54
|
+
}}
|
|
55
|
+
/>
|
|
56
|
+
</>
|
|
57
|
+
);
|
|
58
|
+
}
|