@carlonicora/nextjs-jsonapi 2.4.0 → 3.0.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/{BlockNoteEditor-7WGCH2KB.js → BlockNoteEditor-CDTU6DRN.js} +19 -19
- package/dist/{BlockNoteEditor-7WGCH2KB.js.map → BlockNoteEditor-CDTU6DRN.js.map} +1 -1
- package/dist/{BlockNoteEditor-GWAV5ESO.mjs → BlockNoteEditor-VVAY73V2.mjs} +4 -4
- package/dist/billing/index.d.mts +127 -46
- package/dist/billing/index.d.ts +127 -46
- package/dist/billing/index.js +1243 -1084
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +983 -824
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-V66AZWPG.js → chunk-53B6NPGA.js} +278 -8
- package/dist/chunk-53B6NPGA.js.map +1 -0
- package/dist/{chunk-M2EGUO2F.mjs → chunk-J54546YC.mjs} +1608 -1419
- package/dist/chunk-J54546YC.mjs.map +1 -0
- package/dist/{chunk-TOKHHZSP.js → chunk-JKGEJGSD.js} +7 -7
- package/dist/{chunk-TOKHHZSP.js.map → chunk-JKGEJGSD.js.map} +1 -1
- package/dist/{chunk-3LVSA7IM.mjs → chunk-PHEFWL6L.mjs} +2 -2
- package/dist/{chunk-LCCRUWWY.mjs → chunk-TWXKAY34.mjs} +273 -3
- package/dist/chunk-TWXKAY34.mjs.map +1 -0
- package/dist/{chunk-GYGMEDVS.js → chunk-UGNLKDI6.js} +1012 -823
- package/dist/chunk-UGNLKDI6.js.map +1 -0
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +16 -1
- package/dist/components/index.d.ts +16 -1
- package/dist/components/index.js +4 -4
- package/dist/components/index.mjs +3 -3
- package/dist/{tokenusage-admin.module-5wJ_tZTj.d.ts → config-BIjrg5wd.d.ts} +39 -1
- package/dist/{tokenusage-admin.module-DQVT4O4j.d.mts → config-BRUjtCd1.d.mts} +39 -1
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +22 -3
- package/dist/core/index.d.ts +22 -3
- package/dist/core/index.js +12 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +11 -1
- package/dist/features/help/index.js +37 -37
- package/dist/features/help/index.mjs +3 -3
- package/dist/features/tokenusage/index.d.mts +413 -14
- package/dist/features/tokenusage/index.d.ts +413 -14
- package/dist/features/tokenusage/index.js +481 -120
- package/dist/features/tokenusage/index.js.map +1 -1
- package/dist/features/tokenusage/index.mjs +431 -70
- package/dist/features/tokenusage/index.mjs.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -2
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
- package/src/client/index.ts +4 -0
- package/src/core/index.ts +10 -0
- package/src/core/registry/ModuleRegistry.ts +4 -0
- package/src/features/administration/components/AdminIndexContainer.tsx +1 -1
- package/src/features/administration/components/__tests__/AdminIndexContainer.spec.tsx +1 -1
- package/src/features/billing/contexts/PriceContext.tsx +202 -0
- package/src/features/billing/contexts/ProductContext.tsx +185 -0
- package/src/features/billing/contexts/__tests__/PriceContext.spec.tsx +89 -0
- package/src/features/billing/contexts/__tests__/ProductContext.spec.tsx +81 -0
- package/src/features/billing/contexts/index.ts +2 -1
- package/src/features/billing/i18n-keys.ts +88 -0
- package/src/features/billing/stripe-price/components/containers/PriceContainer.tsx +21 -0
- package/src/features/billing/stripe-price/components/containers/index.ts +1 -0
- package/src/features/billing/stripe-price/components/details/PriceDetails.tsx +131 -0
- package/src/features/billing/stripe-price/components/details/index.ts +1 -0
- package/src/features/billing/stripe-price/components/forms/PriceArchiver.tsx +55 -0
- package/src/features/billing/stripe-price/components/forms/PriceEditor.tsx +307 -374
- package/src/features/billing/stripe-price/components/forms/index.ts +3 -1
- package/src/features/billing/stripe-price/components/index.ts +2 -0
- package/src/features/billing/stripe-price/components/lists/PricesList.tsx +49 -267
- package/src/features/billing/stripe-price/data/index.ts +1 -0
- package/src/features/billing/stripe-price/data/stripe-price.fields.ts +8 -0
- package/src/features/billing/stripe-price/hooks/useStripePriceTableStructure.tsx +119 -0
- package/src/features/billing/stripe-price/stripe-price.module.ts +5 -1
- package/src/features/billing/stripe-product/components/containers/ProductContainer.tsx +45 -0
- package/src/features/billing/stripe-product/components/containers/ProductsListContainer.tsx +27 -0
- package/src/features/billing/stripe-product/components/containers/index.ts +2 -2
- package/src/features/billing/stripe-product/components/details/ProductDetails.tsx +45 -0
- package/src/features/billing/stripe-product/components/details/index.ts +1 -0
- package/src/features/billing/stripe-product/components/forms/ProductArchiver.tsx +55 -0
- package/src/features/billing/stripe-product/components/forms/ProductEditor.tsx +92 -81
- package/src/features/billing/stripe-product/components/forms/index.ts +3 -1
- package/src/features/billing/stripe-product/components/index.ts +1 -0
- package/src/features/billing/stripe-product/components/lists/ProductsList.tsx +45 -187
- package/src/features/billing/stripe-product/data/index.ts +1 -0
- package/src/features/billing/stripe-product/data/stripe-product.fields.ts +6 -0
- package/src/features/billing/stripe-product/hooks/useStripeProductTableStructure.tsx +80 -0
- package/src/features/billing/stripe-product/stripe-product.module.ts +5 -1
- package/src/features/tokenusage/components/TokenUsageAdminContainer.tsx +20 -4
- package/src/features/tokenusage/components/TokenUsageAdminTiles.tsx +31 -18
- package/src/features/tokenusage/components/TokenUsageBreakdownTable.tsx +13 -13
- package/src/features/tokenusage/components/TokenUsageRankedBar.tsx +24 -7
- package/src/features/tokenusage/components/TokenUsageReportContainer.tsx +102 -0
- package/src/features/tokenusage/components/TokenUsageReportFilterBar.tsx +34 -0
- package/src/features/tokenusage/components/TokenUsageReportTiles.tsx +161 -0
- package/src/features/tokenusage/components/TokenUsageTimelineChart.tsx +15 -13
- package/src/features/tokenusage/components/__tests__/TokenUsageAdminTiles.spec.tsx +4 -2
- package/src/features/tokenusage/components/__tests__/TokenUsageRankedBar.spec.tsx +3 -1
- package/src/features/tokenusage/contexts/TokenUsageAdminContext.tsx +6 -3
- package/src/features/tokenusage/contexts/TokenUsageReportContext.tsx +199 -0
- package/src/features/tokenusage/data/TokenUsageReportService.ts +65 -0
- package/src/features/tokenusage/data/index.ts +9 -0
- package/src/features/tokenusage/data/tokenusage-report-breakdown.interface.ts +12 -0
- package/src/features/tokenusage/data/tokenusage-report-breakdown.ts +94 -0
- package/src/features/tokenusage/data/tokenusage-report-summary.interface.ts +12 -0
- package/src/features/tokenusage/data/tokenusage-report-summary.ts +87 -0
- package/src/features/tokenusage/data/tokenusage-report-timeline.interface.ts +13 -0
- package/src/features/tokenusage/data/tokenusage-report-timeline.ts +94 -0
- package/src/features/tokenusage/data/tokenusage-report.types.ts +51 -0
- package/src/features/tokenusage/i18n-keys.ts +28 -0
- package/src/features/tokenusage/index.ts +18 -0
- package/src/features/tokenusage/lib/config.ts +22 -0
- package/src/features/tokenusage/lib/formatters.ts +100 -0
- package/src/features/tokenusage/lib/metrics.ts +8 -26
- package/src/features/tokenusage/lib/palette.ts +41 -14
- package/src/features/tokenusage/tokenusage-admin.module.ts +4 -0
- package/src/features/tokenusage/tokenusage.modules.ts +40 -0
- package/src/shadcnui/ui/chart.tsx +30 -3
- package/dist/chunk-GYGMEDVS.js.map +0 -1
- package/dist/chunk-LCCRUWWY.mjs.map +0 -1
- package/dist/chunk-M2EGUO2F.mjs.map +0 -1
- package/dist/chunk-V66AZWPG.js.map +0 -1
- package/src/features/billing/contexts/BillingContext.tsx +0 -95
- package/src/features/billing/stripe-product/components/containers/ProductsAdminContainer.tsx +0 -98
- package/src/features/billing/stripe-product/components/containers/ProductsAdminPageContainer.tsx +0 -27
- /package/dist/{BlockNoteEditor-GWAV5ESO.mjs.map → BlockNoteEditor-VVAY73V2.mjs.map} +0 -0
- /package/dist/{chunk-3LVSA7IM.mjs.map → chunk-PHEFWL6L.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -2,11 +2,11 @@ export { A as ApiData } from './ApiData-DPKNfY-9.mjs';
|
|
|
2
2
|
import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiDataInterface-BcZeXy5X.mjs';
|
|
3
3
|
export { A as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys, c as createJsonApiInclusion } from './ApiRequestDataTypeInterface-CYEcRUrh.mjs';
|
|
4
4
|
export { A as ApiResponseInterface } from './ApiResponseInterface-rsXRL_Hn.mjs';
|
|
5
|
-
import { A as AbstractApiData } from './
|
|
6
|
-
export { b as TokenUsageAdminBreakdownModule, T as TokenUsageAdminSummaryModule, a as TokenUsageAdminTimelineModule } from './
|
|
5
|
+
import { A as AbstractApiData } from './config-BRUjtCd1.mjs';
|
|
6
|
+
export { b as TokenUsageAdminBreakdownModule, T as TokenUsageAdminSummaryModule, a as TokenUsageAdminTimelineModule, c as configureTokenUsage, g as getTokenUsageCurrency, t as tokenUsageModules } from './config-BRUjtCd1.mjs';
|
|
7
7
|
import { A as AbstractService } from './AbstractService-B0T7h8fX.mjs';
|
|
8
8
|
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-B0T7h8fX.mjs';
|
|
9
|
-
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, 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, 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.mjs';
|
|
9
|
+
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.mjs';
|
|
10
10
|
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-Ce8FcllX.mjs';
|
|
11
11
|
export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-1AlHDtDb.mjs';
|
|
12
12
|
export { ClassValue } from 'clsx';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ 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 } from './
|
|
5
|
+
import { A as AbstractApiData } from './config-BIjrg5wd.js';
|
|
6
|
+
export { b as TokenUsageAdminBreakdownModule, T as TokenUsageAdminSummaryModule, a as TokenUsageAdminTimelineModule, c as configureTokenUsage, g as getTokenUsageCurrency, t as tokenUsageModules } from './config-BIjrg5wd.js';
|
|
7
7
|
import { A as AbstractService } from './AbstractService-Cew0PD0L.js';
|
|
8
8
|
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
|
-
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, 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, 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';
|
|
9
|
+
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
10
|
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
11
|
export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-1AlHDtDb.js';
|
|
12
12
|
export { ClassValue } from 'clsx';
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkJKGEJGSDjs = require('./chunk-JKGEJGSD.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -216,7 +216,12 @@ var _chunkTOKHHZSPjs = require('./chunk-TOKHHZSP.js');
|
|
|
216
216
|
|
|
217
217
|
|
|
218
218
|
|
|
219
|
-
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
var _chunk53B6NPGAjs = require('./chunk-53B6NPGA.js');
|
|
220
225
|
require('./chunk-LXKSUWAV.js');
|
|
221
226
|
require('./chunk-IBS6NI7D.js');
|
|
222
227
|
|
|
@@ -457,5 +462,10 @@ require('./chunk-7QVYU63E.js');
|
|
|
457
462
|
|
|
458
463
|
|
|
459
464
|
|
|
460
|
-
exports.ACTION_TYPES = _chunkTOKHHZSPjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkV66AZWPGjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkV66AZWPGjs.AbstractApiData; exports.AbstractService = _chunkV66AZWPGjs.AbstractService; exports.Action = _chunkV66AZWPGjs.Action; exports.Assistant = _chunkV66AZWPGjs.Assistant; exports.AssistantAction = _chunkV66AZWPGjs.AssistantAction; exports.AssistantActionModule = _chunkV66AZWPGjs.AssistantActionModule; exports.AssistantActionService = _chunkV66AZWPGjs.AssistantActionService; exports.AssistantMessage = _chunkV66AZWPGjs.AssistantMessage; exports.AssistantMessageModule = _chunkV66AZWPGjs.AssistantMessageModule; exports.AssistantMessageService = _chunkV66AZWPGjs.AssistantMessageService; exports.AssistantModule = _chunkV66AZWPGjs.AssistantModule; exports.AssistantService = _chunkV66AZWPGjs.AssistantService; exports.AuditLog = _chunkV66AZWPGjs.AuditLog; exports.AuditLogModule = _chunkV66AZWPGjs.AuditLogModule; exports.AuditLogService = _chunkV66AZWPGjs.AuditLogService; exports.Auth = _chunkV66AZWPGjs.Auth; exports.AuthComponent = _chunkV66AZWPGjs.AuthComponent; exports.AuthModule = _chunkV66AZWPGjs.AuthModule; exports.AuthService = _chunkV66AZWPGjs.AuthService; exports.AuthorModule = _chunkV66AZWPGjs.AuthorModule; exports.BackupCodeVerify = _chunkV66AZWPGjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkV66AZWPGjs.BackupCodeVerifyModule; exports.Billing = _chunkV66AZWPGjs.Billing; exports.BillingModule = _chunkV66AZWPGjs.BillingModule; exports.BillingService = _chunkV66AZWPGjs.BillingService; exports.BlockNoteDiffUtil = _chunkV66AZWPGjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkV66AZWPGjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkTOKHHZSPjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.Chunk = _chunkV66AZWPGjs.Chunk; exports.ChunkModule = _chunkV66AZWPGjs.ChunkModule; exports.ClientAbstractService = _chunkV66AZWPGjs.ClientAbstractService; exports.ClientHttpMethod = _chunkV66AZWPGjs.ClientHttpMethod; exports.Company = _chunkV66AZWPGjs.Company; exports.CompanyFields = _chunkV66AZWPGjs.CompanyFields; exports.CompanyModule = _chunkV66AZWPGjs.CompanyModule; exports.CompanyService = _chunkV66AZWPGjs.CompanyService; exports.Content = _chunkV66AZWPGjs.Content; exports.ContentFields = _chunkV66AZWPGjs.ContentFields; exports.ContentModule = _chunkV66AZWPGjs.ContentModule; exports.ContentService = _chunkV66AZWPGjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkV66AZWPGjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkFPO4DLZNjs.DataClassRegistry; exports.DataClassRegistry = _chunkFPO4DLZNjs.DataClassRegistry; exports.EndpointCreator = _chunkV66AZWPGjs.EndpointCreator; exports.EntityAiStatus = _chunkV66AZWPGjs.EntityAiStatus; exports.Feature = _chunkV66AZWPGjs.Feature; exports.FeatureModule = _chunkV66AZWPGjs.FeatureModule; exports.FeatureService = _chunkV66AZWPGjs.FeatureService; exports.HowTo = _chunkV66AZWPGjs.HowTo; exports.HowToFields = _chunkV66AZWPGjs.HowToFields; exports.HowToModule = _chunkV66AZWPGjs.HowToModule; exports.HowToService = _chunkV66AZWPGjs.HowToService; exports.HttpMethod = _chunkV66AZWPGjs.HttpMethod; exports.InvoiceStatus = _chunkV66AZWPGjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkFPO4DLZNjs.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunkV66AZWPGjs.MOBILE_BREAKPOINT; exports.Module = _chunkV66AZWPGjs.Module; exports.ModuleModule = _chunkV66AZWPGjs.ModuleModule; exports.ModulePaths = _chunkV66AZWPGjs.ModulePaths; exports.ModulePathsModule = _chunkV66AZWPGjs.ModulePathsModule; exports.ModuleRegistrar = _chunkV66AZWPGjs.ModuleRegistrar; exports.ModuleRegistry = _chunkV66AZWPGjs.ModuleRegistry; exports.Modules = _chunkV66AZWPGjs.Modules; exports.Notification = _chunkV66AZWPGjs.Notification; exports.NotificationFields = _chunkV66AZWPGjs.NotificationFields; exports.NotificationModule = _chunkV66AZWPGjs.NotificationModule; exports.NotificationService = _chunkV66AZWPGjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkV66AZWPGjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkV66AZWPGjs.OAuthClient; exports.OAuthModule = _chunkV66AZWPGjs.OAuthModule; exports.OAuthService = _chunkV66AZWPGjs.OAuthService; exports.Passkey = _chunkV66AZWPGjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkV66AZWPGjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkV66AZWPGjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkV66AZWPGjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkV66AZWPGjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkV66AZWPGjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkV66AZWPGjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkV66AZWPGjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkV66AZWPGjs.PasskeyRename; exports.PasskeyRenameModule = _chunkV66AZWPGjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkV66AZWPGjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkV66AZWPGjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkV66AZWPGjs.PaymentMethod; exports.PermissionMapping = _chunkV66AZWPGjs.PermissionMapping; exports.PermissionMappingModule = _chunkV66AZWPGjs.PermissionMappingModule; exports.Push = _chunkV66AZWPGjs.Push; exports.PushModule = _chunkV66AZWPGjs.PushModule; exports.PushService = _chunkV66AZWPGjs.PushService; exports.RbacMatrixModel = _chunkV66AZWPGjs.RbacMatrixModel; exports.RbacMatrixModule = _chunkV66AZWPGjs.RbacMatrixModule; exports.RbacService = _chunkTOKHHZSPjs.RbacService; exports.ReferralModule = _chunkV66AZWPGjs.ReferralModule; exports.ReferralService = _chunkV66AZWPGjs.ReferralService; exports.ReferralStats = _chunkV66AZWPGjs.ReferralStats; exports.ReferralStatsModule = _chunkV66AZWPGjs.ReferralStatsModule; exports.RehydrationFactory = _chunkV66AZWPGjs.RehydrationFactory; exports.Role = _chunkV66AZWPGjs.Role; exports.RoleFields = _chunkV66AZWPGjs.RoleFields; exports.RoleModule = _chunkV66AZWPGjs.RoleModule; exports.RoleService = _chunkV66AZWPGjs.RoleService; exports.S3 = _chunkV66AZWPGjs.S3; exports.S3Module = _chunkV66AZWPGjs.S3Module; exports.S3Service = _chunkV66AZWPGjs.S3Service; exports.StripeCustomer = _chunkV66AZWPGjs.StripeCustomer; exports.StripeCustomerModule = _chunkV66AZWPGjs.StripeCustomerModule; exports.StripeCustomerService = _chunkV66AZWPGjs.StripeCustomerService; exports.StripeInvoice = _chunkV66AZWPGjs.StripeInvoice; exports.StripeInvoiceModule = _chunkV66AZWPGjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkV66AZWPGjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkV66AZWPGjs.StripePaymentMethodModule; exports.StripePrice = _chunkV66AZWPGjs.StripePrice; exports.StripePriceModule = _chunkV66AZWPGjs.StripePriceModule; exports.StripePriceService = _chunkV66AZWPGjs.StripePriceService; exports.StripeProduct = _chunkV66AZWPGjs.StripeProduct; exports.StripeProductModule = _chunkV66AZWPGjs.StripeProductModule; exports.StripeProductService = _chunkV66AZWPGjs.StripeProductService; exports.StripePromotionCode = _chunkV66AZWPGjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkV66AZWPGjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkV66AZWPGjs.StripePromotionCodeService; exports.StripeSubscription = _chunkV66AZWPGjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkV66AZWPGjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkV66AZWPGjs.StripeSubscriptionService; exports.StripeUsage = _chunkV66AZWPGjs.StripeUsage; exports.StripeUsageModule = _chunkV66AZWPGjs.StripeUsageModule; exports.StripeUsageService = _chunkV66AZWPGjs.StripeUsageService; exports.SubscriptionStatus = _chunkV66AZWPGjs.SubscriptionStatus; exports.TableOptions = _chunkV66AZWPGjs.TableOptions; exports.TokenUsageAdminBreakdownModule = _chunkV66AZWPGjs.TokenUsageAdminBreakdownModule; exports.TokenUsageAdminSummaryModule = _chunkV66AZWPGjs.TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = _chunkV66AZWPGjs.TokenUsageAdminTimelineModule; exports.TotpAuthenticator = _chunkV66AZWPGjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkV66AZWPGjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkV66AZWPGjs.TotpSetup; exports.TotpSetupModule = _chunkV66AZWPGjs.TotpSetupModule; exports.TotpVerify = _chunkV66AZWPGjs.TotpVerify; exports.TotpVerifyLogin = _chunkV66AZWPGjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkV66AZWPGjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkV66AZWPGjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkV66AZWPGjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkV66AZWPGjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkV66AZWPGjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkV66AZWPGjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkV66AZWPGjs.TwoFactorService; exports.TwoFactorStatus = _chunkV66AZWPGjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkV66AZWPGjs.TwoFactorStatusModule; exports.User = _chunkV66AZWPGjs.User; exports.UserFields = _chunkV66AZWPGjs.UserFields; exports.UserModule = _chunkV66AZWPGjs.UserModule; exports.UserService = _chunkV66AZWPGjs.UserService; exports.VIEWPORT_COOKIE_NAME = _chunkV66AZWPGjs.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunkV66AZWPGjs.Waitlist; exports.WaitlistModule = _chunkV66AZWPGjs.WaitlistModule; exports.WaitlistService = _chunkV66AZWPGjs.WaitlistService; exports.WaitlistStats = _chunkV66AZWPGjs.WaitlistStats; exports.WaitlistStatsModule = _chunkV66AZWPGjs.WaitlistStatsModule; exports.checkPermissions = _chunkV66AZWPGjs.checkPermissions; exports.checkPermissionsFromServer = _chunkV66AZWPGjs.checkPermissionsFromServer; exports.clearLastApiMeta = _chunkV66AZWPGjs.clearLastApiMeta; exports.clearLastApiTotal = _chunkV66AZWPGjs.clearLastApiTotal; exports.cn = _chunkV66AZWPGjs.cn; exports.composeRefs = _chunkV66AZWPGjs.composeRefs; exports.configureAuth = _chunkV66AZWPGjs.configureAuth; exports.configureI18n = _chunkTOKHHZSPjs.configureI18n; exports.configureJsonApi = _chunkTOKHHZSPjs.configureJsonApi; exports.configureLogin = _chunkTOKHHZSPjs.configureLogin; exports.configureReferral = _chunkTOKHHZSPjs.configureReferral; exports.configureRoles = _chunkTOKHHZSPjs.configureRoles; exports.configureWaitlist = _chunkTOKHHZSPjs.configureWaitlist; exports.createJsonApiInclusion = _chunkV66AZWPGjs.createJsonApiInclusion; exports.dismissToast = _chunkV66AZWPGjs.dismissToast; exports.entityObjectSchema = _chunkV66AZWPGjs.entityObjectSchema; exports.exists = _chunkV66AZWPGjs.exists; exports.formatCodiceFiscale = _chunkV66AZWPGjs.formatCodiceFiscale; exports.formatDate = _chunkV66AZWPGjs.formatDate; exports.formatLocalDate = _chunkV66AZWPGjs.formatLocalDate; exports.formatPartitaIva = _chunkV66AZWPGjs.formatPartitaIva; exports.getApiUrl = _chunkTOKHHZSPjs.getApiUrl; exports.getAppUrl = _chunkTOKHHZSPjs.getAppUrl; exports.getBootstrapper = _chunkFPO4DLZNjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkV66AZWPGjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkV66AZWPGjs.getGlobalErrorHandler; exports.getIcon = _chunkV66AZWPGjs.getIcon; exports.getIconByModule = _chunkV66AZWPGjs.getIconByModule; exports.getIconByModuleName = _chunkV66AZWPGjs.getIconByModuleName; exports.getInitials = _chunkV66AZWPGjs.getInitials; exports.getLastApiMeta = _chunkV66AZWPGjs.getLastApiMeta; exports.getLastApiTotal = _chunkV66AZWPGjs.getLastApiTotal; exports.getLucideIcon = _chunkV66AZWPGjs.getLucideIcon; exports.getLucideIconByModule = _chunkV66AZWPGjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkV66AZWPGjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunkTOKHHZSPjs.getPublicApiUrl; exports.getReferralConfig = _chunkTOKHHZSPjs.getReferralConfig; exports.getRoleId = _chunkTOKHHZSPjs.getRoleId; exports.getStripePublishableKey = _chunkTOKHHZSPjs.getStripePublishableKey; exports.getTableComponents = _chunkV66AZWPGjs.getTableComponents; exports.getTableOptions = _chunkV66AZWPGjs.getTableOptions; exports.getTokenHandler = _chunkV66AZWPGjs.getTokenHandler; exports.getTrackablePages = _chunkTOKHHZSPjs.getTrackablePages; exports.getValueFromPath = _chunkV66AZWPGjs.getValueFromPath; exports.getWaitlistConfig = _chunkTOKHHZSPjs.getWaitlistConfig; exports.hasBootstrapper = _chunkFPO4DLZNjs.hasBootstrapper; exports.isReferralEnabled = _chunkTOKHHZSPjs.isReferralEnabled; exports.isRemoteImageSrc = _chunkV66AZWPGjs.isRemoteImageSrc; exports.isRolesConfigured = _chunkTOKHHZSPjs.isRolesConfigured; exports.rehydrate = _chunkV66AZWPGjs.rehydrate; exports.rehydrateList = _chunkV66AZWPGjs.rehydrateList; exports.resetBootstrapStore = _chunkFPO4DLZNjs.resetBootstrapStore; exports.setBootstrapper = _chunkFPO4DLZNjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkV66AZWPGjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkV66AZWPGjs.setGlobalErrorHandler; exports.showCustomToast = _chunkV66AZWPGjs.showCustomToast; exports.showError = _chunkV66AZWPGjs.showError; exports.showToast = _chunkV66AZWPGjs.showToast; exports.translateData = _chunkFPO4DLZNjs.translateData; exports.translateResponse = _chunkFPO4DLZNjs.translateResponse; exports.tryBootstrap = _chunkFPO4DLZNjs.tryBootstrap; exports.useComposedRefs = _chunkV66AZWPGjs.useComposedRefs; exports.useIsMobile = _chunkV66AZWPGjs.useIsMobile; exports.userObjectSchema = _chunkV66AZWPGjs.userObjectSchema; exports.validateCodiceFiscale = _chunkV66AZWPGjs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunkV66AZWPGjs.validateItalianTaxCode; exports.validatePartitaIva = _chunkV66AZWPGjs.validatePartitaIva;
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
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;
|
|
461
471
|
//# 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;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;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;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,yvbAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"}
|
package/dist/index.mjs
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
getWaitlistConfig,
|
|
19
19
|
isReferralEnabled,
|
|
20
20
|
isRolesConfigured
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-PHEFWL6L.mjs";
|
|
22
22
|
import {
|
|
23
23
|
AVAILABLE_OAUTH_SCOPES,
|
|
24
24
|
AbstractApiData,
|
|
@@ -128,9 +128,11 @@ import {
|
|
|
128
128
|
StripeInvoiceService,
|
|
129
129
|
StripePaymentMethodModule,
|
|
130
130
|
StripePrice,
|
|
131
|
+
StripePriceFields,
|
|
131
132
|
StripePriceModule,
|
|
132
133
|
StripePriceService,
|
|
133
134
|
StripeProduct,
|
|
135
|
+
StripeProductFields,
|
|
134
136
|
StripeProductModule,
|
|
135
137
|
StripeProductService,
|
|
136
138
|
StripePromotionCode,
|
|
@@ -179,6 +181,7 @@ import {
|
|
|
179
181
|
cn,
|
|
180
182
|
composeRefs,
|
|
181
183
|
configureAuth,
|
|
184
|
+
configureTokenUsage,
|
|
182
185
|
createJsonApiInclusion,
|
|
183
186
|
dismissToast,
|
|
184
187
|
entityObjectSchema,
|
|
@@ -201,6 +204,7 @@ import {
|
|
|
201
204
|
getTableComponents,
|
|
202
205
|
getTableOptions,
|
|
203
206
|
getTokenHandler,
|
|
207
|
+
getTokenUsageCurrency,
|
|
204
208
|
getValueFromPath,
|
|
205
209
|
isRemoteImageSrc,
|
|
206
210
|
rehydrate,
|
|
@@ -210,13 +214,14 @@ import {
|
|
|
210
214
|
showCustomToast,
|
|
211
215
|
showError,
|
|
212
216
|
showToast,
|
|
217
|
+
tokenUsageModules,
|
|
213
218
|
useComposedRefs,
|
|
214
219
|
useIsMobile,
|
|
215
220
|
userObjectSchema,
|
|
216
221
|
validateCodiceFiscale,
|
|
217
222
|
validateItalianTaxCode,
|
|
218
223
|
validatePartitaIva
|
|
219
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-TWXKAY34.mjs";
|
|
220
225
|
import "./chunk-AUXK7QSA.mjs";
|
|
221
226
|
import "./chunk-C7C7VY4F.mjs";
|
|
222
227
|
import {
|
|
@@ -346,9 +351,11 @@ export {
|
|
|
346
351
|
StripeInvoiceService,
|
|
347
352
|
StripePaymentMethodModule,
|
|
348
353
|
StripePrice,
|
|
354
|
+
StripePriceFields,
|
|
349
355
|
StripePriceModule,
|
|
350
356
|
StripePriceService,
|
|
351
357
|
StripeProduct,
|
|
358
|
+
StripeProductFields,
|
|
352
359
|
StripeProductModule,
|
|
353
360
|
StripeProductService,
|
|
354
361
|
StripePromotionCode,
|
|
@@ -402,6 +409,7 @@ export {
|
|
|
402
409
|
configureLogin,
|
|
403
410
|
configureReferral,
|
|
404
411
|
configureRoles,
|
|
412
|
+
configureTokenUsage,
|
|
405
413
|
configureWaitlist,
|
|
406
414
|
createJsonApiInclusion,
|
|
407
415
|
dismissToast,
|
|
@@ -432,6 +440,7 @@ export {
|
|
|
432
440
|
getTableComponents,
|
|
433
441
|
getTableOptions,
|
|
434
442
|
getTokenHandler,
|
|
443
|
+
getTokenUsageCurrency,
|
|
435
444
|
getTrackablePages,
|
|
436
445
|
getValueFromPath,
|
|
437
446
|
getWaitlistConfig,
|
|
@@ -448,6 +457,7 @@ export {
|
|
|
448
457
|
showCustomToast,
|
|
449
458
|
showError,
|
|
450
459
|
showToast,
|
|
460
|
+
tokenUsageModules,
|
|
451
461
|
translateData,
|
|
452
462
|
translateResponse,
|
|
453
463
|
tryBootstrap,
|
package/dist/server/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var _chunkIOLU4ASDjs = require('../chunk-IOLU4ASD.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk53B6NPGAjs = require('../chunk-53B6NPGA.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(_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 _chunk53B6NPGAjs.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 = _chunk53B6NPGAjs.AuthService; exports.ServerCompanyService = _chunk53B6NPGAjs.CompanyService; exports.ServerContentService = _chunk53B6NPGAjs.ContentService; exports.ServerFeatureService = _chunk53B6NPGAjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunk53B6NPGAjs.NotificationService; exports.ServerPushService = _chunk53B6NPGAjs.PushService; exports.ServerRoleService = _chunk53B6NPGAjs.RoleService; exports.ServerS3Service = _chunk53B6NPGAjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunk53B6NPGAjs.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
package/package.json
CHANGED
package/src/client/index.ts
CHANGED
|
@@ -19,6 +19,8 @@ export * from "../hooks";
|
|
|
19
19
|
import { useCompanyTableStructure } from "../features/company/hooks";
|
|
20
20
|
import { useRoleTableStructure } from "../features/role/hooks";
|
|
21
21
|
import { useUserTableStructure } from "../features/user/hooks";
|
|
22
|
+
import { useStripePriceTableStructure } from "../features/billing/stripe-price/hooks/useStripePriceTableStructure";
|
|
23
|
+
import { useStripeProductTableStructure } from "../features/billing/stripe-product/hooks/useStripeProductTableStructure";
|
|
22
24
|
import { registerTableGenerator } from "../hooks";
|
|
23
25
|
|
|
24
26
|
export * from "../features/content/hooks";
|
|
@@ -30,4 +32,6 @@ export * from "../features/company/hooks/useSubscriptionStatus";
|
|
|
30
32
|
registerTableGenerator("roles", useRoleTableStructure);
|
|
31
33
|
registerTableGenerator("users", useUserTableStructure);
|
|
32
34
|
registerTableGenerator("companies", useCompanyTableStructure);
|
|
35
|
+
registerTableGenerator("stripe-products", useStripeProductTableStructure);
|
|
36
|
+
registerTableGenerator("stripe-prices", useStripePriceTableStructure);
|
|
33
37
|
// Note: Content registration moved to app-level to support app-specific cellTopic
|
package/src/core/index.ts
CHANGED
|
@@ -98,4 +98,14 @@ export * from "../features/referral/referral-stats.module";
|
|
|
98
98
|
// them in its bootstrapper without pulling the feature's client bundle —
|
|
99
99
|
// same placement as waitlist-stats and referral-stats above.
|
|
100
100
|
export * from "../features/tokenusage/tokenusage-admin.module";
|
|
101
|
+
// The full six-module bundle (administrative + self-service). Same placement
|
|
102
|
+
// rationale as the line above: a bootstrapper needs it, and it must not drag
|
|
103
|
+
// the feature's recharts client bundle in.
|
|
104
|
+
export * from "../features/tokenusage/tokenusage.modules";
|
|
105
|
+
// configureTokenUsage() is called from the app's bootstrap file, which is
|
|
106
|
+
// evaluated on the server as well as the client. Reaching it through the
|
|
107
|
+
// client-marked ./tokenusage barrel makes it a client function, and calling one
|
|
108
|
+
// from the server throws at module evaluation — so it is exported here, exactly
|
|
109
|
+
// like configureJsonApi. lib/config holds no React and no charting code.
|
|
110
|
+
export * from "../features/tokenusage/lib/config";
|
|
101
111
|
export * from "../features/audit-log";
|
|
@@ -63,6 +63,10 @@ export interface FoundationModuleDefinitions {
|
|
|
63
63
|
TokenUsageAdminSummary: ModuleWithPermissions;
|
|
64
64
|
TokenUsageAdminTimeline: ModuleWithPermissions;
|
|
65
65
|
TokenUsageAdminBreakdown: ModuleWithPermissions;
|
|
66
|
+
// Self-service token-usage reporting modules
|
|
67
|
+
TokenUsageReportSummary: ModuleWithPermissions;
|
|
68
|
+
TokenUsageReportTimeline: ModuleWithPermissions;
|
|
69
|
+
TokenUsageReportBreakdown: ModuleWithPermissions;
|
|
66
70
|
}
|
|
67
71
|
|
|
68
72
|
// App-specific modules - apps will augment this interface ONLY
|
|
@@ -60,7 +60,7 @@ const BILLING_SECTION: AdminSection = {
|
|
|
60
60
|
icon: CreditCardIcon,
|
|
61
61
|
labelKey: "billing.admin.products.title",
|
|
62
62
|
descriptionKey: "administration.billing.description",
|
|
63
|
-
href: "/administration/
|
|
63
|
+
href: "/administration/products",
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
/** Keys of the built-in platform sections, for `hiddenSections`. */
|
|
@@ -66,7 +66,7 @@ describe("AdminIndexGrid", () => {
|
|
|
66
66
|
configure("pk_test_123");
|
|
67
67
|
render(<AdminIndexGrid />);
|
|
68
68
|
|
|
69
|
-
expect(screen.getByTestId("admin-index-billing")).toHaveAttribute("href", "/administration/
|
|
69
|
+
expect(screen.getByTestId("admin-index-billing")).toHaveAttribute("href", "/administration/products");
|
|
70
70
|
});
|
|
71
71
|
|
|
72
72
|
it("appends additionalGroups after the platform group, in order", () => {
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useTranslations } from "next-intl";
|
|
4
|
+
import { createContext, ReactNode, useCallback, useContext, useMemo, useState } from "react";
|
|
5
|
+
import { SharedProvider } from "../../../contexts/SharedContext";
|
|
6
|
+
import { JsonApiHydratedDataInterface, Modules, rehydrate } from "../../../core";
|
|
7
|
+
import { usePageUrlGenerator } from "../../../hooks";
|
|
8
|
+
import { BreadcrumbItemData } from "../../../interfaces";
|
|
9
|
+
import { getRoleId } from "../../../roles";
|
|
10
|
+
import { useCurrentUserContext } from "../../user/contexts";
|
|
11
|
+
import { formatCurrency, formatInterval } from "../components/utils/currency";
|
|
12
|
+
import { PriceArchiver } from "../stripe-price/components/forms/PriceArchiver";
|
|
13
|
+
import PriceEditor from "../stripe-price/components/forms/PriceEditor";
|
|
14
|
+
import { StripePriceInput, StripePriceInterface } from "../stripe-price/data/stripe-price.interface";
|
|
15
|
+
import { StripePriceService } from "../stripe-price/data/stripe-price.service";
|
|
16
|
+
|
|
17
|
+
export interface PriceContextType {
|
|
18
|
+
price: StripePriceInterface | undefined;
|
|
19
|
+
setPrice: (value: StripePriceInterface | undefined) => void;
|
|
20
|
+
reloadPrice: () => Promise<void>;
|
|
21
|
+
createPrice: (input: StripePriceInput) => Promise<StripePriceInterface>;
|
|
22
|
+
updatePrice: (input: StripePriceInput) => Promise<StripePriceInterface>;
|
|
23
|
+
archivePrice: (id?: string) => Promise<void>;
|
|
24
|
+
restorePrice: (id?: string) => Promise<void>;
|
|
25
|
+
/** Bumped by every mutation. Mounted lists re-fetch on it. */
|
|
26
|
+
priceVersion: number;
|
|
27
|
+
refreshPrices: () => void;
|
|
28
|
+
/** Product a newly created price attaches to. Set in list mode (prices tab). */
|
|
29
|
+
productId: string | undefined;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const PriceContext = createContext<PriceContextType | undefined>(undefined);
|
|
33
|
+
|
|
34
|
+
export type PriceProviderProps = {
|
|
35
|
+
children: ReactNode;
|
|
36
|
+
dehydratedPrice?: JsonApiHydratedDataInterface;
|
|
37
|
+
/**
|
|
38
|
+
* Publish breadcrumbs + title into SharedProvider. Pass `false` when this
|
|
39
|
+
* provider is mounted INSIDE another entity's page (the prices tab mounts
|
|
40
|
+
* PriceProvider that way): SharedProvider replaces its value for the subtree
|
|
41
|
+
* rather than merging (SharedContext.tsx:35-37), so a nested provider that
|
|
42
|
+
* publishes chrome would blank the host page's title.
|
|
43
|
+
*/
|
|
44
|
+
publishChrome?: boolean;
|
|
45
|
+
/** Required in list mode (the prices tab) so new prices attach to the right product. */
|
|
46
|
+
productId?: string;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const defaultContextValue: PriceContextType = {
|
|
50
|
+
price: undefined,
|
|
51
|
+
setPrice: () => {},
|
|
52
|
+
reloadPrice: async () => {},
|
|
53
|
+
createPrice: async () => {
|
|
54
|
+
throw new Error("createPrice requires a PriceProvider");
|
|
55
|
+
},
|
|
56
|
+
updatePrice: async () => {
|
|
57
|
+
throw new Error("updatePrice requires a PriceProvider");
|
|
58
|
+
},
|
|
59
|
+
archivePrice: async () => {},
|
|
60
|
+
restorePrice: async () => {},
|
|
61
|
+
priceVersion: 0,
|
|
62
|
+
refreshPrices: () => {},
|
|
63
|
+
productId: undefined,
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/** Human label for a price: its nickname, else amount + interval. */
|
|
67
|
+
export function priceLabel(price: StripePriceInterface): string {
|
|
68
|
+
return price.nickname ?? `${formatCurrency(price.unitAmount, price.currency)} ${formatInterval(price)}`.trim();
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export const PriceProvider = ({
|
|
72
|
+
children,
|
|
73
|
+
dehydratedPrice,
|
|
74
|
+
publishChrome = true,
|
|
75
|
+
productId: productIdProp,
|
|
76
|
+
}: PriceProviderProps) => {
|
|
77
|
+
const t = useTranslations();
|
|
78
|
+
const generateUrl = usePageUrlGenerator();
|
|
79
|
+
const { hasRole } = useCurrentUserContext();
|
|
80
|
+
|
|
81
|
+
const [price, setPrice] = useState<StripePriceInterface | undefined>(
|
|
82
|
+
dehydratedPrice ? rehydrate<StripePriceInterface>(Modules.StripePrice, dehydratedPrice) : undefined,
|
|
83
|
+
);
|
|
84
|
+
const [priceVersion, setPriceVersion] = useState<number>(0);
|
|
85
|
+
|
|
86
|
+
const refreshPrices = useCallback(() => setPriceVersion((value) => value + 1), []);
|
|
87
|
+
|
|
88
|
+
// NOT `price.productId`: that getter throws ("productId is not defined") when
|
|
89
|
+
// the attribute is absent, and it always is — the API's mapStripePrice sets
|
|
90
|
+
// `stripeProduct: undefined`, and the serialiser derives the productId
|
|
91
|
+
// attribute from exactly that field, so a price never carries one over the
|
|
92
|
+
// wire. Reading it here crashed the whole price page on mount. Fall back to
|
|
93
|
+
// the hydrated relationship, which is a safe optional getter.
|
|
94
|
+
const productId = productIdProp ?? price?.product?.id;
|
|
95
|
+
|
|
96
|
+
const reloadPrice = useCallback(async () => {
|
|
97
|
+
if (!price?.id) return;
|
|
98
|
+
setPrice(await StripePriceService.getPrice({ id: price.id }));
|
|
99
|
+
}, [price?.id]);
|
|
100
|
+
|
|
101
|
+
const createPrice = useCallback(
|
|
102
|
+
async (input: StripePriceInput) => {
|
|
103
|
+
const saved = await StripePriceService.createPrice(input);
|
|
104
|
+
refreshPrices();
|
|
105
|
+
return saved;
|
|
106
|
+
},
|
|
107
|
+
[refreshPrices],
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
const updatePrice = useCallback(
|
|
111
|
+
async (input: StripePriceInput) => {
|
|
112
|
+
const saved = await StripePriceService.updatePrice(input);
|
|
113
|
+
setPrice(saved);
|
|
114
|
+
refreshPrices();
|
|
115
|
+
return saved;
|
|
116
|
+
},
|
|
117
|
+
[refreshPrices],
|
|
118
|
+
);
|
|
119
|
+
|
|
120
|
+
// The archive/reactivate routes answer 204 NO_CONTENT with an empty body
|
|
121
|
+
// (stripe-price.controller.ts:129-155) even though the service signature
|
|
122
|
+
// claims it returns void — so the response is discarded and the entity is
|
|
123
|
+
// re-read instead.
|
|
124
|
+
const archivePrice = useCallback(
|
|
125
|
+
async (id?: string) => {
|
|
126
|
+
const target = id ?? price?.id;
|
|
127
|
+
if (!target) return;
|
|
128
|
+
await StripePriceService.archivePrice({ id: target });
|
|
129
|
+
await reloadPrice();
|
|
130
|
+
refreshPrices();
|
|
131
|
+
},
|
|
132
|
+
[price?.id, reloadPrice, refreshPrices],
|
|
133
|
+
);
|
|
134
|
+
|
|
135
|
+
const restorePrice = useCallback(
|
|
136
|
+
async (id?: string) => {
|
|
137
|
+
const target = id ?? price?.id;
|
|
138
|
+
if (!target) return;
|
|
139
|
+
await StripePriceService.reactivatePrice({ id: target });
|
|
140
|
+
await reloadPrice();
|
|
141
|
+
refreshPrices();
|
|
142
|
+
},
|
|
143
|
+
[price?.id, reloadPrice, refreshPrices],
|
|
144
|
+
);
|
|
145
|
+
|
|
146
|
+
const value = useMemo<PriceContextType>(
|
|
147
|
+
() => ({
|
|
148
|
+
price,
|
|
149
|
+
setPrice,
|
|
150
|
+
reloadPrice,
|
|
151
|
+
createPrice,
|
|
152
|
+
updatePrice,
|
|
153
|
+
archivePrice,
|
|
154
|
+
restorePrice,
|
|
155
|
+
priceVersion,
|
|
156
|
+
refreshPrices,
|
|
157
|
+
productId,
|
|
158
|
+
}),
|
|
159
|
+
[price, reloadPrice, createPrice, updatePrice, archivePrice, restorePrice, priceVersion, refreshPrices, productId],
|
|
160
|
+
);
|
|
161
|
+
|
|
162
|
+
if (!publishChrome) return <PriceContext.Provider value={value}>{children}</PriceContext.Provider>;
|
|
163
|
+
|
|
164
|
+
const breadcrumb = (): BreadcrumbItemData[] => {
|
|
165
|
+
const items: BreadcrumbItemData[] = [
|
|
166
|
+
{ name: t("billing.admin.products.title"), href: generateUrl({ page: Modules.StripeProduct }) },
|
|
167
|
+
];
|
|
168
|
+
if (price?.product)
|
|
169
|
+
items.push({
|
|
170
|
+
name: price.product.name,
|
|
171
|
+
href: generateUrl({ page: Modules.StripeProduct, id: price.product.id }),
|
|
172
|
+
});
|
|
173
|
+
if (price) items.push({ name: priceLabel(price) });
|
|
174
|
+
return items;
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
const title = () => {
|
|
178
|
+
const response: any = { type: t("billing.admin.prices.title") };
|
|
179
|
+
if (!price) return response;
|
|
180
|
+
|
|
181
|
+
response.element = priceLabel(price);
|
|
182
|
+
|
|
183
|
+
// narr8 note: gate on hasRole ONLY. hasPermissionToModule always returns
|
|
184
|
+
// false in this app, so gating an editor on it hides the editor outright.
|
|
185
|
+
if (hasRole(getRoleId().Administrator)) {
|
|
186
|
+
response.functions = [
|
|
187
|
+
<PriceArchiver key="priceArchiver" price={price} />,
|
|
188
|
+
<PriceEditor key="priceEditor" price={price} propagateChanges={setPrice} />,
|
|
189
|
+
];
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
return response;
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
return (
|
|
196
|
+
<SharedProvider value={{ breadcrumbs: breadcrumb(), title: title() }}>
|
|
197
|
+
<PriceContext.Provider value={value}>{children}</PriceContext.Provider>
|
|
198
|
+
</SharedProvider>
|
|
199
|
+
);
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
export const usePriceContext = (): PriceContextType => useContext(PriceContext) ?? defaultContextValue;
|