@carlonicora/nextjs-jsonapi 1.28.0 → 1.29.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-CAUNVZUF.js → BlockNoteEditor-YBVEOPV4.js} +13 -13
- package/dist/{BlockNoteEditor-CAUNVZUF.js.map → BlockNoteEditor-YBVEOPV4.js.map} +1 -1
- package/dist/{BlockNoteEditor-EOA4OEVX.mjs → BlockNoteEditor-ZM4YPXHO.mjs} +3 -3
- package/dist/billing/index.d.mts +47 -17
- package/dist/billing/index.d.ts +47 -17
- package/dist/billing/index.js +1241 -1073
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +1375 -1207
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-IXI4GAKB.js → chunk-3X7EEFMN.js} +488 -431
- package/dist/chunk-3X7EEFMN.js.map +1 -0
- package/dist/{chunk-ORFXBO7F.mjs → chunk-DU64WMZD.mjs} +6 -3
- package/dist/chunk-DU64WMZD.mjs.map +1 -0
- package/dist/{chunk-TSEU4KZ2.js → chunk-J22NEVSK.js} +21 -18
- package/dist/chunk-J22NEVSK.js.map +1 -0
- package/dist/{chunk-PYASRX75.mjs → chunk-UCD5CUE4.mjs} +81 -24
- package/dist/chunk-UCD5CUE4.mjs.map +1 -0
- package/dist/client/index.d.mts +14 -5
- package/dist/client/index.d.ts +14 -5
- package/dist/client/index.js +5 -3
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +4 -2
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +3 -3
- package/dist/components/index.mjs +2 -2
- package/dist/{config-B4pZpLT9.d.ts → config-CHwoRDOp.d.ts} +1 -1
- package/dist/{config-DT1K-t6I.d.mts → config-DiWyJzk9.d.mts} +1 -1
- package/dist/{content.interface-B2Ldg0vg.d.mts → content.interface-BSpowEiW.d.mts} +1 -1
- package/dist/{content.interface-D8NHv3DX.d.ts → content.interface-DFQ7mkpL.d.ts} +1 -1
- package/dist/contexts/index.d.mts +2 -2
- package/dist/contexts/index.d.ts +2 -2
- package/dist/contexts/index.js +3 -3
- package/dist/contexts/index.mjs +2 -2
- package/dist/core/index.d.mts +39 -37
- package/dist/core/index.d.ts +39 -37
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{notification.interface-H0L9WBge.d.ts → notification.interface-CmKmObIU.d.ts} +1 -0
- package/dist/{notification.interface-DEn-Yp_b.d.mts → notification.interface-D5MbtfZK.d.mts} +1 -0
- package/dist/{s3.service-BNytYanU.d.mts → s3.service-BMT7W6KS.d.mts} +19 -19
- package/dist/{s3.service-C7f_Ygz5.d.ts → s3.service-DsXo9nop.d.ts} +19 -19
- package/dist/server/index.d.mts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/dist/{useSocket-BcnThTD0.d.mts → useSocket-DUqGoPya.d.mts} +1 -1
- package/dist/{useSocket-QZTOCzRF.d.ts → useSocket-QuHa0ZmO.d.ts} +1 -1
- package/package.json +1 -1
- package/src/client/index.ts +1 -0
- package/src/components/forms/FormSelect.tsx +2 -1
- package/src/features/auth/data/auth.ts +0 -2
- package/src/features/billing/components/containers/BillingDashboardContainer.tsx +60 -3
- package/src/features/billing/stripe-customer/components/forms/PaymentMethodEditor.tsx +12 -152
- package/src/features/billing/stripe-customer/components/forms/PaymentMethodForm.tsx +168 -0
- package/src/features/billing/stripe-customer/components/forms/index.ts +1 -0
- package/src/features/billing/stripe-price/components/forms/PriceEditor.tsx +19 -1
- package/src/features/billing/stripe-product/components/forms/ProductEditor.tsx +2 -2
- package/src/features/billing/stripe-subscription/components/containers/SubscriptionsContainer.tsx +24 -235
- package/src/features/billing/stripe-subscription/components/details/SubscriptionDetails.tsx +7 -18
- package/src/features/billing/stripe-subscription/components/forms/index.ts +0 -1
- package/src/features/billing/stripe-subscription/components/lists/SubscriptionsList.tsx +10 -1
- package/src/features/billing/stripe-subscription/components/widgets/IntervalToggle.tsx +28 -0
- package/src/features/billing/stripe-subscription/components/widgets/ProductPricingList.tsx +128 -0
- package/src/features/billing/stripe-subscription/components/widgets/ProductPricingRow.tsx +54 -0
- package/src/features/billing/stripe-subscription/components/widgets/SubscriptionConfirmation.tsx +68 -0
- package/src/features/billing/stripe-subscription/components/widgets/index.ts +4 -1
- package/src/features/billing/stripe-subscription/components/wizards/SubscriptionWizard.tsx +114 -0
- package/src/features/billing/stripe-subscription/components/wizards/WizardProgressIndicator.tsx +66 -0
- package/src/features/billing/stripe-subscription/components/wizards/WizardStepPaymentMethod.tsx +32 -0
- package/src/features/billing/stripe-subscription/components/wizards/WizardStepPlanSelection.tsx +103 -0
- package/src/features/billing/stripe-subscription/components/wizards/WizardStepReview.tsx +133 -0
- package/src/features/billing/stripe-subscription/components/wizards/index.ts +6 -0
- package/src/features/billing/stripe-subscription/hooks/useSubscriptionWizard.ts +217 -0
- package/src/features/billing/stripe-subscription/index.ts +3 -2
- package/src/features/company/components/details/TokenStatusIndicator.tsx +19 -9
- package/src/features/company/data/company.interface.ts +2 -0
- package/src/features/company/data/company.ts +7 -0
- package/src/features/company/hooks/index.ts +1 -0
- package/src/features/company/hooks/useSubscriptionStatus.ts +71 -0
- package/src/features/user/components/forms/UserEditor.tsx +1 -1
- package/src/features/user/components/lists/AdminUsersList.tsx +1 -1
- package/src/features/user/contexts/CurrentUserContext.tsx +1 -1
- package/src/features/user/data/user.ts +1 -1
- package/dist/chunk-IXI4GAKB.js.map +0 -1
- package/dist/chunk-ORFXBO7F.mjs.map +0 -1
- package/dist/chunk-PYASRX75.mjs.map +0 -1
- package/dist/chunk-TSEU4KZ2.js.map +0 -1
- package/src/features/billing/stripe-subscription/components/forms/SubscriptionEditor.tsx +0 -331
- package/src/features/billing/stripe-subscription/components/widgets/PricingCardsGrid.tsx +0 -110
- /package/dist/{BlockNoteEditor-EOA4OEVX.mjs.map → BlockNoteEditor-ZM4YPXHO.mjs.map} +0 -0
package/dist/core/index.js
CHANGED
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
|
|
109
|
-
var
|
|
109
|
+
var _chunkJ22NEVSKjs = require('../chunk-J22NEVSK.js');
|
|
110
110
|
require('../chunk-LXKSUWAV.js');
|
|
111
111
|
require('../chunk-IBS6NI7D.js');
|
|
112
112
|
|
|
@@ -239,5 +239,5 @@ require('../chunk-7QVYU63E.js');
|
|
|
239
239
|
|
|
240
240
|
|
|
241
241
|
|
|
242
|
-
exports.AVAILABLE_OAUTH_SCOPES =
|
|
242
|
+
exports.AVAILABLE_OAUTH_SCOPES = _chunkJ22NEVSKjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkJ22NEVSKjs.AbstractApiData; exports.AbstractService = _chunkJ22NEVSKjs.AbstractService; exports.Action = _chunkJ22NEVSKjs.Action; exports.Auth = _chunkJ22NEVSKjs.Auth; exports.AuthComponent = _chunkJ22NEVSKjs.AuthComponent; exports.AuthModule = _chunkJ22NEVSKjs.AuthModule; exports.AuthService = _chunkJ22NEVSKjs.AuthService; exports.AuthorModule = _chunkJ22NEVSKjs.AuthorModule; exports.Billing = _chunkJ22NEVSKjs.Billing; exports.BillingModule = _chunkJ22NEVSKjs.BillingModule; exports.BillingService = _chunkJ22NEVSKjs.BillingService; exports.BlockNoteDiffUtil = _chunkJ22NEVSKjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkJ22NEVSKjs.BlockNoteWordDiffRendererUtil; exports.ClientAbstractService = _chunkJ22NEVSKjs.ClientAbstractService; exports.ClientHttpMethod = _chunkJ22NEVSKjs.ClientHttpMethod; exports.Company = _chunkJ22NEVSKjs.Company; exports.CompanyFields = _chunkJ22NEVSKjs.CompanyFields; exports.CompanyModule = _chunkJ22NEVSKjs.CompanyModule; exports.CompanyService = _chunkJ22NEVSKjs.CompanyService; exports.Content = _chunkJ22NEVSKjs.Content; exports.ContentFields = _chunkJ22NEVSKjs.ContentFields; exports.ContentModule = _chunkJ22NEVSKjs.ContentModule; exports.ContentService = _chunkJ22NEVSKjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkJ22NEVSKjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkFM6WRAN5js.DataClassRegistry; exports.DataClassRegistry = _chunkFM6WRAN5js.DataClassRegistry; exports.EndpointCreator = _chunkJ22NEVSKjs.EndpointCreator; exports.Feature = _chunkJ22NEVSKjs.Feature; exports.FeatureModule = _chunkJ22NEVSKjs.FeatureModule; exports.FeatureService = _chunkJ22NEVSKjs.FeatureService; exports.HttpMethod = _chunkJ22NEVSKjs.HttpMethod; exports.InvoiceStatus = _chunkJ22NEVSKjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkFM6WRAN5js.JsonApiDataFactory; exports.Module = _chunkJ22NEVSKjs.Module; exports.ModuleModule = _chunkJ22NEVSKjs.ModuleModule; exports.ModuleRegistrar = _chunkJ22NEVSKjs.ModuleRegistrar; exports.ModuleRegistry = _chunkJ22NEVSKjs.ModuleRegistry; exports.Modules = _chunkJ22NEVSKjs.Modules; exports.Notification = _chunkJ22NEVSKjs.Notification; exports.NotificationFields = _chunkJ22NEVSKjs.NotificationFields; exports.NotificationModule = _chunkJ22NEVSKjs.NotificationModule; exports.NotificationService = _chunkJ22NEVSKjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkJ22NEVSKjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkJ22NEVSKjs.OAuthClient; exports.OAuthModule = _chunkJ22NEVSKjs.OAuthModule; exports.OAuthService = _chunkJ22NEVSKjs.OAuthService; exports.PaymentMethod = _chunkJ22NEVSKjs.PaymentMethod; exports.Push = _chunkJ22NEVSKjs.Push; exports.PushModule = _chunkJ22NEVSKjs.PushModule; exports.PushService = _chunkJ22NEVSKjs.PushService; exports.RehydrationFactory = _chunkJ22NEVSKjs.RehydrationFactory; exports.Role = _chunkJ22NEVSKjs.Role; exports.RoleFields = _chunkJ22NEVSKjs.RoleFields; exports.RoleModule = _chunkJ22NEVSKjs.RoleModule; exports.RoleService = _chunkJ22NEVSKjs.RoleService; exports.S3 = _chunkJ22NEVSKjs.S3; exports.S3Module = _chunkJ22NEVSKjs.S3Module; exports.S3Service = _chunkJ22NEVSKjs.S3Service; exports.StripeCustomer = _chunkJ22NEVSKjs.StripeCustomer; exports.StripeCustomerModule = _chunkJ22NEVSKjs.StripeCustomerModule; exports.StripeCustomerService = _chunkJ22NEVSKjs.StripeCustomerService; exports.StripeInvoice = _chunkJ22NEVSKjs.StripeInvoice; exports.StripeInvoiceModule = _chunkJ22NEVSKjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkJ22NEVSKjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkJ22NEVSKjs.StripePaymentMethodModule; exports.StripePrice = _chunkJ22NEVSKjs.StripePrice; exports.StripePriceModule = _chunkJ22NEVSKjs.StripePriceModule; exports.StripePriceService = _chunkJ22NEVSKjs.StripePriceService; exports.StripeProduct = _chunkJ22NEVSKjs.StripeProduct; exports.StripeProductModule = _chunkJ22NEVSKjs.StripeProductModule; exports.StripeProductService = _chunkJ22NEVSKjs.StripeProductService; exports.StripeSubscription = _chunkJ22NEVSKjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkJ22NEVSKjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkJ22NEVSKjs.StripeSubscriptionService; exports.StripeUsage = _chunkJ22NEVSKjs.StripeUsage; exports.StripeUsageModule = _chunkJ22NEVSKjs.StripeUsageModule; exports.StripeUsageService = _chunkJ22NEVSKjs.StripeUsageService; exports.SubscriptionStatus = _chunkJ22NEVSKjs.SubscriptionStatus; exports.TableOptions = _chunkJ22NEVSKjs.TableOptions; exports.User = _chunkJ22NEVSKjs.User; exports.UserFields = _chunkJ22NEVSKjs.UserFields; exports.UserModule = _chunkJ22NEVSKjs.UserModule; exports.UserService = _chunkJ22NEVSKjs.UserService; exports.checkPermissions = _chunkJ22NEVSKjs.checkPermissions; exports.checkPermissionsFromServer = _chunkJ22NEVSKjs.checkPermissionsFromServer; exports.cn = _chunkJ22NEVSKjs.cn; exports.composeRefs = _chunkJ22NEVSKjs.composeRefs; exports.createJsonApiInclusion = _chunkJ22NEVSKjs.createJsonApiInclusion; exports.entityObjectSchema = _chunkJ22NEVSKjs.entityObjectSchema; exports.exists = _chunkJ22NEVSKjs.exists; exports.formatDate = _chunkJ22NEVSKjs.formatDate; exports.getBootstrapper = _chunkFM6WRAN5js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkJ22NEVSKjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkJ22NEVSKjs.getGlobalErrorHandler; exports.getIcon = _chunkJ22NEVSKjs.getIcon; exports.getIconByModule = _chunkJ22NEVSKjs.getIconByModule; exports.getIconByModuleName = _chunkJ22NEVSKjs.getIconByModuleName; exports.getLucideIcon = _chunkJ22NEVSKjs.getLucideIcon; exports.getLucideIconByModule = _chunkJ22NEVSKjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkJ22NEVSKjs.getLucideIconByModuleName; exports.getTableComponents = _chunkJ22NEVSKjs.getTableComponents; exports.getTableOptions = _chunkJ22NEVSKjs.getTableOptions; exports.getValueFromPath = _chunkJ22NEVSKjs.getValueFromPath; exports.hasBootstrapper = _chunkFM6WRAN5js.hasBootstrapper; exports.rehydrate = _chunkJ22NEVSKjs.rehydrate; exports.rehydrateList = _chunkJ22NEVSKjs.rehydrateList; exports.resetBootstrapStore = _chunkFM6WRAN5js.resetBootstrapStore; exports.setBootstrapper = _chunkFM6WRAN5js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkJ22NEVSKjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkJ22NEVSKjs.setGlobalErrorHandler; exports.translateData = _chunkFM6WRAN5js.translateData; exports.translateResponse = _chunkFM6WRAN5js.translateResponse; exports.tryBootstrap = _chunkFM6WRAN5js.tryBootstrap; exports.useComposedRefs = _chunkJ22NEVSKjs.useComposedRefs; exports.useIsMobile = _chunkJ22NEVSKjs.useIsMobile; exports.userObjectSchema = _chunkJ22NEVSKjs.userObjectSchema;
|
|
243
243
|
//# sourceMappingURL=index.js.map
|
package/dist/core/index.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -3,16 +3,16 @@ export { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiD
|
|
|
3
3
|
export { A as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys, c as createJsonApiInclusion } from './ApiRequestDataTypeInterface-CUKFDBx2.mjs';
|
|
4
4
|
export { A as ApiResponseInterface } from './ApiResponseInterface-zeewugD7.mjs';
|
|
5
5
|
export { AbstractApiData, AppModuleDefinitions, Auth, AuthModule, AuthorModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, PaymentMethod, Push, PushInput, PushInterface, PushModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, User, UserModule, UserObject, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getIcon, getIconByModule, getIconByModuleName, getLucideIcon, getLucideIconByModule, getLucideIconByModuleName, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.mjs';
|
|
6
|
-
export { A as AbstractService, a as AuthInput, c as AuthInterface, b as AuthQuery, d as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, N as NextRef, f as NotificationService, P as PreviousRef, h as PushService, R as RoleService, i as S3Input, j as S3Interface, k as S3Service, S as SelfRef, U as UserService, g as getGlobalErrorHandler, s as setGlobalErrorHandler } from './s3.service-
|
|
6
|
+
export { A as AbstractService, a as AuthInput, c as AuthInterface, b as AuthQuery, d as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, N as NextRef, f as NotificationService, P as PreviousRef, h as PushService, R as RoleService, i as S3Input, j as S3Interface, k as S3Service, S as SelfRef, U as UserService, g as getGlobalErrorHandler, s as setGlobalErrorHandler } from './s3.service-BMT7W6KS.mjs';
|
|
7
7
|
export { B as BreadcrumbItemData } from './breadcrumb.item.data.interface-CgB4_1EE.mjs';
|
|
8
8
|
export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-Ck5lkQ5d.mjs';
|
|
9
9
|
export { ClassValue } from 'clsx';
|
|
10
|
-
export { A as Action, C as CompanyInput, h as CompanyInterface, F as FeatureInterface, c as ModuleDefinition, g as ModuleFactory, i as ModuleInterface, b as ModulePermissionDefinition, M as ModuleWithPermissions, j as NotificationInput, N as NotificationInterface, a as PageUrl, P as PermissionCheck, d as PermissionConfig, e as PermissionModule, f as PermissionUser, R as RoleInput, k as RoleInterface, l as UserInput, U as UserInterface } from './notification.interface-
|
|
10
|
+
export { A as Action, C as CompanyInput, h as CompanyInterface, F as FeatureInterface, c as ModuleDefinition, g as ModuleFactory, i as ModuleInterface, b as ModulePermissionDefinition, M as ModuleWithPermissions, j as NotificationInput, N as NotificationInterface, a as PageUrl, P as PermissionCheck, d as PermissionConfig, e as PermissionModule, f as PermissionUser, R as RoleInput, k as RoleInterface, l as UserInput, U as UserInterface } from './notification.interface-D5MbtfZK.mjs';
|
|
11
11
|
export { A as AuthComponent } from './AuthComponent-hxOPs9o8.mjs';
|
|
12
12
|
export { I as InvoiceStatus, M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, e as PriceRecurring, c as ProrationLineItem, b as ProrationPreviewInterface, R as ReportUsageInput, S as StripeCustomerInterface, a as StripeInvoiceInterface, f as StripePriceInput, d as StripePriceInterface, h as StripeProductInput, g as StripeProductInterface, l as StripeSubscriptionCreateMeta, m as StripeSubscriptionCreateResponse, k as StripeSubscriptionInput, j as StripeSubscriptionInterface, n as StripeUsageInterface, i as SubscriptionStatus, p as UsageRecordInterface, U as UsageSummaryInterface } from './stripe-subscription.interface-Cm_It1fz.mjs';
|
|
13
|
-
export { C as ContentInput, a as ContentInterface } from './content.interface-
|
|
13
|
+
export { C as ContentInput, a as ContentInterface } from './content.interface-BSpowEiW.mjs';
|
|
14
14
|
export { A as AVAILABLE_OAUTH_SCOPES, D as DEFAULT_GRANT_TYPES, g as OAUTH_SCOPE_DISPLAY, b as OAuthClientCreateRequest, c as OAuthClientCreateResponse, a as OAuthClientInput, O as OAuthClientInterface, f as OAuthConsentInfo, d as OAuthConsentRequest, e as OAuthScopeInfo } from './oauth.interface-DsZ5ecSX.mjs';
|
|
15
|
-
export { I as I18nConfig, e as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, d as getStripePublishableKey, b as getTrackablePages } from './config-
|
|
15
|
+
export { I as I18nConfig, e as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, d as getStripePublishableKey, b as getTrackablePages } from './config-DiWyJzk9.mjs';
|
|
16
16
|
import 'react';
|
|
17
17
|
import 'zod';
|
|
18
18
|
import '@blocknote/core';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,16 +3,16 @@ export { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiD
|
|
|
3
3
|
export { A as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys, c as createJsonApiInclusion } from './ApiRequestDataTypeInterface-CUKFDBx2.js';
|
|
4
4
|
export { A as ApiResponseInterface } from './ApiResponseInterface-CAIAeP5d.js';
|
|
5
5
|
export { AbstractApiData, AppModuleDefinitions, Auth, AuthModule, AuthorModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, PaymentMethod, Push, PushInput, PushInterface, PushModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, User, UserModule, UserObject, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getIcon, getIconByModule, getIconByModuleName, getLucideIcon, getLucideIconByModule, getLucideIconByModuleName, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.js';
|
|
6
|
-
export { A as AbstractService, a as AuthInput, c as AuthInterface, b as AuthQuery, d as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, N as NextRef, f as NotificationService, P as PreviousRef, h as PushService, R as RoleService, i as S3Input, j as S3Interface, k as S3Service, S as SelfRef, U as UserService, g as getGlobalErrorHandler, s as setGlobalErrorHandler } from './s3.service-
|
|
6
|
+
export { A as AbstractService, a as AuthInput, c as AuthInterface, b as AuthQuery, d as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, N as NextRef, f as NotificationService, P as PreviousRef, h as PushService, R as RoleService, i as S3Input, j as S3Interface, k as S3Service, S as SelfRef, U as UserService, g as getGlobalErrorHandler, s as setGlobalErrorHandler } from './s3.service-DsXo9nop.js';
|
|
7
7
|
export { B as BreadcrumbItemData } from './breadcrumb.item.data.interface-CgB4_1EE.js';
|
|
8
8
|
export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-Ck5lkQ5d.js';
|
|
9
9
|
export { ClassValue } from 'clsx';
|
|
10
|
-
export { A as Action, C as CompanyInput, h as CompanyInterface, F as FeatureInterface, c as ModuleDefinition, g as ModuleFactory, i as ModuleInterface, b as ModulePermissionDefinition, M as ModuleWithPermissions, j as NotificationInput, N as NotificationInterface, a as PageUrl, P as PermissionCheck, d as PermissionConfig, e as PermissionModule, f as PermissionUser, R as RoleInput, k as RoleInterface, l as UserInput, U as UserInterface } from './notification.interface-
|
|
10
|
+
export { A as Action, C as CompanyInput, h as CompanyInterface, F as FeatureInterface, c as ModuleDefinition, g as ModuleFactory, i as ModuleInterface, b as ModulePermissionDefinition, M as ModuleWithPermissions, j as NotificationInput, N as NotificationInterface, a as PageUrl, P as PermissionCheck, d as PermissionConfig, e as PermissionModule, f as PermissionUser, R as RoleInput, k as RoleInterface, l as UserInput, U as UserInterface } from './notification.interface-CmKmObIU.js';
|
|
11
11
|
export { A as AuthComponent } from './AuthComponent-hxOPs9o8.js';
|
|
12
12
|
export { I as InvoiceStatus, M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, e as PriceRecurring, c as ProrationLineItem, b as ProrationPreviewInterface, R as ReportUsageInput, S as StripeCustomerInterface, a as StripeInvoiceInterface, f as StripePriceInput, d as StripePriceInterface, h as StripeProductInput, g as StripeProductInterface, l as StripeSubscriptionCreateMeta, m as StripeSubscriptionCreateResponse, k as StripeSubscriptionInput, j as StripeSubscriptionInterface, n as StripeUsageInterface, i as SubscriptionStatus, p as UsageRecordInterface, U as UsageSummaryInterface } from './stripe-subscription.interface-BaZUngWe.js';
|
|
13
|
-
export { C as ContentInput, a as ContentInterface } from './content.interface-
|
|
13
|
+
export { C as ContentInput, a as ContentInterface } from './content.interface-DFQ7mkpL.js';
|
|
14
14
|
export { A as AVAILABLE_OAUTH_SCOPES, D as DEFAULT_GRANT_TYPES, g as OAUTH_SCOPE_DISPLAY, b as OAuthClientCreateRequest, c as OAuthClientCreateResponse, a as OAuthClientInput, O as OAuthClientInterface, f as OAuthConsentInfo, d as OAuthConsentRequest, e as OAuthScopeInfo } from './oauth.interface-vL7za9Bz.js';
|
|
15
|
-
export { I as I18nConfig, e as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, d as getStripePublishableKey, b as getTrackablePages } from './config-
|
|
15
|
+
export { I as I18nConfig, e as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, d as getStripePublishableKey, b as getTrackablePages } from './config-CHwoRDOp.js';
|
|
16
16
|
import 'react';
|
|
17
17
|
import 'zod';
|
|
18
18
|
import '@blocknote/core';
|
package/dist/index.js
CHANGED
|
@@ -120,7 +120,7 @@ var _chunkEW6QPMN3js = require('./chunk-EW6QPMN3.js');
|
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
|
|
123
|
-
var
|
|
123
|
+
var _chunkJ22NEVSKjs = require('./chunk-J22NEVSK.js');
|
|
124
124
|
require('./chunk-LXKSUWAV.js');
|
|
125
125
|
require('./chunk-IBS6NI7D.js');
|
|
126
126
|
|
|
@@ -265,5 +265,5 @@ require('./chunk-7QVYU63E.js');
|
|
|
265
265
|
|
|
266
266
|
|
|
267
267
|
|
|
268
|
-
exports.AVAILABLE_OAUTH_SCOPES =
|
|
268
|
+
exports.AVAILABLE_OAUTH_SCOPES = _chunkJ22NEVSKjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkJ22NEVSKjs.AbstractApiData; exports.AbstractService = _chunkJ22NEVSKjs.AbstractService; exports.Action = _chunkJ22NEVSKjs.Action; exports.Auth = _chunkJ22NEVSKjs.Auth; exports.AuthComponent = _chunkJ22NEVSKjs.AuthComponent; exports.AuthModule = _chunkJ22NEVSKjs.AuthModule; exports.AuthService = _chunkJ22NEVSKjs.AuthService; exports.AuthorModule = _chunkJ22NEVSKjs.AuthorModule; exports.Billing = _chunkJ22NEVSKjs.Billing; exports.BillingModule = _chunkJ22NEVSKjs.BillingModule; exports.BillingService = _chunkJ22NEVSKjs.BillingService; exports.BlockNoteDiffUtil = _chunkJ22NEVSKjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkJ22NEVSKjs.BlockNoteWordDiffRendererUtil; exports.ClientAbstractService = _chunkJ22NEVSKjs.ClientAbstractService; exports.ClientHttpMethod = _chunkJ22NEVSKjs.ClientHttpMethod; exports.Company = _chunkJ22NEVSKjs.Company; exports.CompanyFields = _chunkJ22NEVSKjs.CompanyFields; exports.CompanyModule = _chunkJ22NEVSKjs.CompanyModule; exports.CompanyService = _chunkJ22NEVSKjs.CompanyService; exports.Content = _chunkJ22NEVSKjs.Content; exports.ContentFields = _chunkJ22NEVSKjs.ContentFields; exports.ContentModule = _chunkJ22NEVSKjs.ContentModule; exports.ContentService = _chunkJ22NEVSKjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkJ22NEVSKjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkFM6WRAN5js.DataClassRegistry; exports.DataClassRegistry = _chunkFM6WRAN5js.DataClassRegistry; exports.EndpointCreator = _chunkJ22NEVSKjs.EndpointCreator; exports.Feature = _chunkJ22NEVSKjs.Feature; exports.FeatureModule = _chunkJ22NEVSKjs.FeatureModule; exports.FeatureService = _chunkJ22NEVSKjs.FeatureService; exports.HttpMethod = _chunkJ22NEVSKjs.HttpMethod; exports.InvoiceStatus = _chunkJ22NEVSKjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkFM6WRAN5js.JsonApiDataFactory; exports.Module = _chunkJ22NEVSKjs.Module; exports.ModuleModule = _chunkJ22NEVSKjs.ModuleModule; exports.ModuleRegistrar = _chunkJ22NEVSKjs.ModuleRegistrar; exports.ModuleRegistry = _chunkJ22NEVSKjs.ModuleRegistry; exports.Modules = _chunkJ22NEVSKjs.Modules; exports.Notification = _chunkJ22NEVSKjs.Notification; exports.NotificationFields = _chunkJ22NEVSKjs.NotificationFields; exports.NotificationModule = _chunkJ22NEVSKjs.NotificationModule; exports.NotificationService = _chunkJ22NEVSKjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkJ22NEVSKjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkJ22NEVSKjs.OAuthClient; exports.OAuthModule = _chunkJ22NEVSKjs.OAuthModule; exports.OAuthService = _chunkJ22NEVSKjs.OAuthService; exports.PaymentMethod = _chunkJ22NEVSKjs.PaymentMethod; exports.Push = _chunkJ22NEVSKjs.Push; exports.PushModule = _chunkJ22NEVSKjs.PushModule; exports.PushService = _chunkJ22NEVSKjs.PushService; exports.RehydrationFactory = _chunkJ22NEVSKjs.RehydrationFactory; exports.Role = _chunkJ22NEVSKjs.Role; exports.RoleFields = _chunkJ22NEVSKjs.RoleFields; exports.RoleModule = _chunkJ22NEVSKjs.RoleModule; exports.RoleService = _chunkJ22NEVSKjs.RoleService; exports.S3 = _chunkJ22NEVSKjs.S3; exports.S3Module = _chunkJ22NEVSKjs.S3Module; exports.S3Service = _chunkJ22NEVSKjs.S3Service; exports.StripeCustomer = _chunkJ22NEVSKjs.StripeCustomer; exports.StripeCustomerModule = _chunkJ22NEVSKjs.StripeCustomerModule; exports.StripeCustomerService = _chunkJ22NEVSKjs.StripeCustomerService; exports.StripeInvoice = _chunkJ22NEVSKjs.StripeInvoice; exports.StripeInvoiceModule = _chunkJ22NEVSKjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkJ22NEVSKjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkJ22NEVSKjs.StripePaymentMethodModule; exports.StripePrice = _chunkJ22NEVSKjs.StripePrice; exports.StripePriceModule = _chunkJ22NEVSKjs.StripePriceModule; exports.StripePriceService = _chunkJ22NEVSKjs.StripePriceService; exports.StripeProduct = _chunkJ22NEVSKjs.StripeProduct; exports.StripeProductModule = _chunkJ22NEVSKjs.StripeProductModule; exports.StripeProductService = _chunkJ22NEVSKjs.StripeProductService; exports.StripeSubscription = _chunkJ22NEVSKjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkJ22NEVSKjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkJ22NEVSKjs.StripeSubscriptionService; exports.StripeUsage = _chunkJ22NEVSKjs.StripeUsage; exports.StripeUsageModule = _chunkJ22NEVSKjs.StripeUsageModule; exports.StripeUsageService = _chunkJ22NEVSKjs.StripeUsageService; exports.SubscriptionStatus = _chunkJ22NEVSKjs.SubscriptionStatus; exports.TableOptions = _chunkJ22NEVSKjs.TableOptions; exports.User = _chunkJ22NEVSKjs.User; exports.UserFields = _chunkJ22NEVSKjs.UserFields; exports.UserModule = _chunkJ22NEVSKjs.UserModule; exports.UserService = _chunkJ22NEVSKjs.UserService; exports.checkPermissions = _chunkJ22NEVSKjs.checkPermissions; exports.checkPermissionsFromServer = _chunkJ22NEVSKjs.checkPermissionsFromServer; exports.cn = _chunkJ22NEVSKjs.cn; exports.composeRefs = _chunkJ22NEVSKjs.composeRefs; exports.configureAuth = _chunkJ22NEVSKjs.configureAuth; exports.configureI18n = _chunkEW6QPMN3js.configureI18n; exports.configureJsonApi = _chunkEW6QPMN3js.configureJsonApi; exports.configureLogin = _chunkEW6QPMN3js.configureLogin; exports.configureRoles = _chunkEW6QPMN3js.configureRoles; exports.createJsonApiInclusion = _chunkJ22NEVSKjs.createJsonApiInclusion; exports.entityObjectSchema = _chunkJ22NEVSKjs.entityObjectSchema; exports.exists = _chunkJ22NEVSKjs.exists; exports.formatDate = _chunkJ22NEVSKjs.formatDate; exports.getApiUrl = _chunkEW6QPMN3js.getApiUrl; exports.getAppUrl = _chunkEW6QPMN3js.getAppUrl; exports.getBootstrapper = _chunkFM6WRAN5js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkJ22NEVSKjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkJ22NEVSKjs.getGlobalErrorHandler; exports.getIcon = _chunkJ22NEVSKjs.getIcon; exports.getIconByModule = _chunkJ22NEVSKjs.getIconByModule; exports.getIconByModuleName = _chunkJ22NEVSKjs.getIconByModuleName; exports.getLucideIcon = _chunkJ22NEVSKjs.getLucideIcon; exports.getLucideIconByModule = _chunkJ22NEVSKjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkJ22NEVSKjs.getLucideIconByModuleName; exports.getRoleId = _chunkEW6QPMN3js.getRoleId; exports.getStripePublishableKey = _chunkEW6QPMN3js.getStripePublishableKey; exports.getTableComponents = _chunkJ22NEVSKjs.getTableComponents; exports.getTableOptions = _chunkJ22NEVSKjs.getTableOptions; exports.getTokenHandler = _chunkJ22NEVSKjs.getTokenHandler; exports.getTrackablePages = _chunkEW6QPMN3js.getTrackablePages; exports.getValueFromPath = _chunkJ22NEVSKjs.getValueFromPath; exports.hasBootstrapper = _chunkFM6WRAN5js.hasBootstrapper; exports.isRolesConfigured = _chunkEW6QPMN3js.isRolesConfigured; exports.rehydrate = _chunkJ22NEVSKjs.rehydrate; exports.rehydrateList = _chunkJ22NEVSKjs.rehydrateList; exports.resetBootstrapStore = _chunkFM6WRAN5js.resetBootstrapStore; exports.setBootstrapper = _chunkFM6WRAN5js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkJ22NEVSKjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkJ22NEVSKjs.setGlobalErrorHandler; exports.translateData = _chunkFM6WRAN5js.translateData; exports.translateResponse = _chunkFM6WRAN5js.translateResponse; exports.tryBootstrap = _chunkFM6WRAN5js.tryBootstrap; exports.useComposedRefs = _chunkJ22NEVSKjs.useComposedRefs; exports.useIsMobile = _chunkJ22NEVSKjs.useIsMobile; exports.userObjectSchema = _chunkJ22NEVSKjs.userObjectSchema;
|
|
269
269
|
//# sourceMappingURL=index.js.map
|
package/dist/index.mjs
CHANGED
|
@@ -128,6 +128,7 @@ interface CompanyInterface extends ApiDataInterface {
|
|
|
128
128
|
get configurations(): any;
|
|
129
129
|
get logo(): string | undefined;
|
|
130
130
|
get logoUrl(): string | undefined;
|
|
131
|
+
get isActiveSubscription(): boolean;
|
|
131
132
|
get monthlyTokens(): number;
|
|
132
133
|
get availableMonthlyTokens(): number;
|
|
133
134
|
get availableExtraTokens(): number;
|
package/dist/{notification.interface-DEn-Yp_b.d.mts → notification.interface-D5MbtfZK.d.mts}
RENAMED
|
@@ -128,6 +128,7 @@ interface CompanyInterface extends ApiDataInterface {
|
|
|
128
128
|
get configurations(): any;
|
|
129
129
|
get logo(): string | undefined;
|
|
130
130
|
get logoUrl(): string | undefined;
|
|
131
|
+
get isActiveSubscription(): boolean;
|
|
131
132
|
get monthlyTokens(): number;
|
|
132
133
|
get availableMonthlyTokens(): number;
|
|
133
134
|
get availableExtraTokens(): number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as FeatureInterface, k as RoleInterface,
|
|
1
|
+
import { F as FeatureInterface, k as RoleInterface, U as UserInterface, l as UserInput, h as CompanyInterface, C as CompanyInput, N as NotificationInterface } from './notification.interface-D5MbtfZK.mjs';
|
|
2
2
|
import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiDataInterface-DPP8s46n.mjs';
|
|
3
|
-
import { a as ContentInterface } from './content.interface-
|
|
3
|
+
import { a as ContentInterface } from './content.interface-BSpowEiW.mjs';
|
|
4
4
|
import { A as ApiRequestDataTypeInterface } from './ApiRequestDataTypeInterface-CUKFDBx2.mjs';
|
|
5
5
|
|
|
6
6
|
declare enum HttpMethod {
|
|
@@ -154,23 +154,6 @@ declare class RoleService extends AbstractService {
|
|
|
154
154
|
}): Promise<RoleInterface>;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
declare class CompanyService extends AbstractService {
|
|
158
|
-
static findOne(params: {
|
|
159
|
-
companyId: string;
|
|
160
|
-
}): Promise<CompanyInterface>;
|
|
161
|
-
static findMany(params: {
|
|
162
|
-
search?: string;
|
|
163
|
-
next?: NextRef;
|
|
164
|
-
}): Promise<CompanyInterface[]>;
|
|
165
|
-
static delete(params: {
|
|
166
|
-
companyId: string;
|
|
167
|
-
}): Promise<void>;
|
|
168
|
-
static create(params: CompanyInput): Promise<CompanyInterface>;
|
|
169
|
-
static update(params: CompanyInput): Promise<CompanyInterface>;
|
|
170
|
-
static updateConfigurations(params: CompanyInput): Promise<CompanyInterface>;
|
|
171
|
-
static activateLicense(params: CompanyInput): Promise<CompanyInterface>;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
157
|
declare class UserService extends AbstractService {
|
|
175
158
|
static findFullUser(): Promise<UserInterface>;
|
|
176
159
|
static findById(params: {
|
|
@@ -302,6 +285,23 @@ declare class AuthService extends AbstractService {
|
|
|
302
285
|
}): Promise<void>;
|
|
303
286
|
}
|
|
304
287
|
|
|
288
|
+
declare class CompanyService extends AbstractService {
|
|
289
|
+
static findOne(params: {
|
|
290
|
+
companyId: string;
|
|
291
|
+
}): Promise<CompanyInterface>;
|
|
292
|
+
static findMany(params: {
|
|
293
|
+
search?: string;
|
|
294
|
+
next?: NextRef;
|
|
295
|
+
}): Promise<CompanyInterface[]>;
|
|
296
|
+
static delete(params: {
|
|
297
|
+
companyId: string;
|
|
298
|
+
}): Promise<void>;
|
|
299
|
+
static create(params: CompanyInput): Promise<CompanyInterface>;
|
|
300
|
+
static update(params: CompanyInput): Promise<CompanyInterface>;
|
|
301
|
+
static updateConfigurations(params: CompanyInput): Promise<CompanyInterface>;
|
|
302
|
+
static activateLicense(params: CompanyInput): Promise<CompanyInterface>;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
305
|
declare class ContentService extends AbstractService {
|
|
306
306
|
static findMany(params: {
|
|
307
307
|
contentIds?: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as FeatureInterface, k as RoleInterface,
|
|
1
|
+
import { F as FeatureInterface, k as RoleInterface, U as UserInterface, l as UserInput, h as CompanyInterface, C as CompanyInput, N as NotificationInterface } from './notification.interface-CmKmObIU.js';
|
|
2
2
|
import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiDataInterface-DPP8s46n.js';
|
|
3
|
-
import { a as ContentInterface } from './content.interface-
|
|
3
|
+
import { a as ContentInterface } from './content.interface-DFQ7mkpL.js';
|
|
4
4
|
import { A as ApiRequestDataTypeInterface } from './ApiRequestDataTypeInterface-CUKFDBx2.js';
|
|
5
5
|
|
|
6
6
|
declare enum HttpMethod {
|
|
@@ -154,23 +154,6 @@ declare class RoleService extends AbstractService {
|
|
|
154
154
|
}): Promise<RoleInterface>;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
declare class CompanyService extends AbstractService {
|
|
158
|
-
static findOne(params: {
|
|
159
|
-
companyId: string;
|
|
160
|
-
}): Promise<CompanyInterface>;
|
|
161
|
-
static findMany(params: {
|
|
162
|
-
search?: string;
|
|
163
|
-
next?: NextRef;
|
|
164
|
-
}): Promise<CompanyInterface[]>;
|
|
165
|
-
static delete(params: {
|
|
166
|
-
companyId: string;
|
|
167
|
-
}): Promise<void>;
|
|
168
|
-
static create(params: CompanyInput): Promise<CompanyInterface>;
|
|
169
|
-
static update(params: CompanyInput): Promise<CompanyInterface>;
|
|
170
|
-
static updateConfigurations(params: CompanyInput): Promise<CompanyInterface>;
|
|
171
|
-
static activateLicense(params: CompanyInput): Promise<CompanyInterface>;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
157
|
declare class UserService extends AbstractService {
|
|
175
158
|
static findFullUser(): Promise<UserInterface>;
|
|
176
159
|
static findById(params: {
|
|
@@ -302,6 +285,23 @@ declare class AuthService extends AbstractService {
|
|
|
302
285
|
}): Promise<void>;
|
|
303
286
|
}
|
|
304
287
|
|
|
288
|
+
declare class CompanyService extends AbstractService {
|
|
289
|
+
static findOne(params: {
|
|
290
|
+
companyId: string;
|
|
291
|
+
}): Promise<CompanyInterface>;
|
|
292
|
+
static findMany(params: {
|
|
293
|
+
search?: string;
|
|
294
|
+
next?: NextRef;
|
|
295
|
+
}): Promise<CompanyInterface[]>;
|
|
296
|
+
static delete(params: {
|
|
297
|
+
companyId: string;
|
|
298
|
+
}): Promise<void>;
|
|
299
|
+
static create(params: CompanyInput): Promise<CompanyInterface>;
|
|
300
|
+
static update(params: CompanyInput): Promise<CompanyInterface>;
|
|
301
|
+
static updateConfigurations(params: CompanyInput): Promise<CompanyInterface>;
|
|
302
|
+
static activateLicense(params: CompanyInput): Promise<CompanyInterface>;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
305
|
declare class ContentService extends AbstractService {
|
|
306
306
|
static findMany(params: {
|
|
307
307
|
contentIds?: string[];
|
package/dist/server/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { A as ApiData } from '../ApiData-DPKNfY-9.mjs';
|
|
2
|
-
import { M as ModuleWithPermissions, A as Action } from '../notification.interface-
|
|
2
|
+
import { M as ModuleWithPermissions, A as Action } from '../notification.interface-D5MbtfZK.mjs';
|
|
3
3
|
import { A as ApiRequestDataTypeInterface } from '../ApiRequestDataTypeInterface-CUKFDBx2.mjs';
|
|
4
4
|
import { A as ApiResponseInterface } from '../ApiResponseInterface-zeewugD7.mjs';
|
|
5
|
-
export { d as ServerAuthService, C as ServerCompanyService, e as ServerContentService, F as ServerFeatureService, f as ServerNotificationService, h as ServerPushService, R as ServerRoleService, k as ServerS3Service, U as ServerUserService } from '../s3.service-
|
|
5
|
+
export { d as ServerAuthService, C as ServerCompanyService, e as ServerContentService, F as ServerFeatureService, f as ServerNotificationService, h as ServerPushService, R as ServerRoleService, k as ServerS3Service, U as ServerUserService } from '../s3.service-BMT7W6KS.mjs';
|
|
6
6
|
import 'lucide-react';
|
|
7
7
|
import '../ApiDataInterface-DPP8s46n.mjs';
|
|
8
|
-
import '../content.interface-
|
|
8
|
+
import '../content.interface-BSpowEiW.mjs';
|
|
9
9
|
|
|
10
10
|
type CacheProfile = "seconds" | "minutes" | "hours" | "days" | "weeks" | "max" | "default";
|
|
11
11
|
/**
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { A as ApiData } from '../ApiData-DPKNfY-9.js';
|
|
2
|
-
import { M as ModuleWithPermissions, A as Action } from '../notification.interface-
|
|
2
|
+
import { M as ModuleWithPermissions, A as Action } from '../notification.interface-CmKmObIU.js';
|
|
3
3
|
import { A as ApiRequestDataTypeInterface } from '../ApiRequestDataTypeInterface-CUKFDBx2.js';
|
|
4
4
|
import { A as ApiResponseInterface } from '../ApiResponseInterface-CAIAeP5d.js';
|
|
5
|
-
export { d as ServerAuthService, C as ServerCompanyService, e as ServerContentService, F as ServerFeatureService, f as ServerNotificationService, h as ServerPushService, R as ServerRoleService, k as ServerS3Service, U as ServerUserService } from '../s3.service-
|
|
5
|
+
export { d as ServerAuthService, C as ServerCompanyService, e as ServerContentService, F as ServerFeatureService, f as ServerNotificationService, h as ServerPushService, R as ServerRoleService, k as ServerS3Service, U as ServerUserService } from '../s3.service-DsXo9nop.js';
|
|
6
6
|
import 'lucide-react';
|
|
7
7
|
import '../ApiDataInterface-DPP8s46n.js';
|
|
8
|
-
import '../content.interface-
|
|
8
|
+
import '../content.interface-DFQ7mkpL.js';
|
|
9
9
|
|
|
10
10
|
type CacheProfile = "seconds" | "minutes" | "hours" | "days" | "weeks" | "max" | "default";
|
|
11
11
|
/**
|
package/dist/server/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var _chunk3ZPK4QOBjs = require('../chunk-3ZPK4QOB.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkJ22NEVSKjs = require('../chunk-J22NEVSK.js');
|
|
19
19
|
require('../chunk-LXKSUWAV.js');
|
|
20
20
|
require('../chunk-IBS6NI7D.js');
|
|
21
21
|
|
|
@@ -86,7 +86,7 @@ var ServerSession = class {
|
|
|
86
86
|
if (!rawModules) return false;
|
|
87
87
|
const modules = JSON.parse(_pako2.default.ungzip(Buffer.from(rawModules, "base64"), { to: "string" }));
|
|
88
88
|
const selectedModule = modules.find((module) => module.id === params.module.moduleId);
|
|
89
|
-
return
|
|
89
|
+
return _chunkJ22NEVSKjs.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 = _chunkJ22NEVSKjs.AuthService; exports.ServerCompanyService = _chunkJ22NEVSKjs.CompanyService; exports.ServerContentService = _chunkJ22NEVSKjs.ContentService; exports.ServerFeatureService = _chunkJ22NEVSKjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkJ22NEVSKjs.NotificationService; exports.ServerPushService = _chunkJ22NEVSKjs.PushService; exports.ServerRoleService = _chunkJ22NEVSKjs.RoleService; exports.ServerS3Service = _chunkJ22NEVSKjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkJ22NEVSKjs.UserService; exports.configureServerJsonApi = configureServerJsonApi; exports.getServerApiUrl = getServerApiUrl; exports.getServerAppUrl = getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = getServerTrackablePages; exports.invalidateCacheTag = invalidateCacheTag; exports.invalidateCacheTags = invalidateCacheTags; exports.serverRequest = _chunk3ZPK4QOBjs.serverRequest;
|
|
300
300
|
//# sourceMappingURL=index.js.map
|
package/dist/server/index.mjs
CHANGED
package/package.json
CHANGED
package/src/client/index.ts
CHANGED
|
@@ -25,6 +25,7 @@ export * from "../features/content/hooks";
|
|
|
25
25
|
export * from "../features/role/hooks";
|
|
26
26
|
export * from "../features/user/hooks";
|
|
27
27
|
export * from "../features/oauth/hooks";
|
|
28
|
+
export * from "../features/company/hooks/useSubscriptionStatus";
|
|
28
29
|
|
|
29
30
|
registerTableGenerator("roles", useRoleTableStructure);
|
|
30
31
|
registerTableGenerator("users", useUserTableStructure);
|
|
@@ -46,8 +46,6 @@ export class Auth extends AbstractApiData implements AuthInterface {
|
|
|
46
46
|
if (data.name !== undefined) response.data.attributes.name = data.name;
|
|
47
47
|
if (data.companyName !== undefined) response.data.attributes.companyName = data.companyName;
|
|
48
48
|
if (data.password !== undefined) response.data.attributes.password = data.password;
|
|
49
|
-
if (data.partitaIva !== undefined) response.data.attributes.partitaIva = data.partitaIva;
|
|
50
|
-
if (data.codiceFiscale !== undefined) response.data.attributes.codiceFiscale = data.codiceFiscale;
|
|
51
49
|
|
|
52
50
|
return response;
|
|
53
51
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { CreditCard, Loader2, Wallet } from "lucide-react";
|
|
4
|
-
import {
|
|
4
|
+
import { useSearchParams } from "next/navigation";
|
|
5
|
+
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
5
6
|
import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle } from "../../../../shadcnui";
|
|
6
7
|
import { PaymentMethodInterface, StripeCustomerInterface, StripeCustomerService } from "../../stripe-customer";
|
|
7
8
|
import { PaymentMethodsContainer } from "../../stripe-customer/components";
|
|
@@ -9,6 +10,7 @@ import { StripeInvoiceInterface, StripeInvoiceService } from "../../stripe-invoi
|
|
|
9
10
|
import { InvoicesContainer } from "../../stripe-invoice/components";
|
|
10
11
|
import { StripeSubscriptionInterface, StripeSubscriptionService, SubscriptionStatus } from "../../stripe-subscription";
|
|
11
12
|
import { SubscriptionsContainer } from "../../stripe-subscription/components";
|
|
13
|
+
import { SubscriptionWizard } from "../../stripe-subscription/components/wizards";
|
|
12
14
|
import { MeterInterface, MeterSummaryInterface, StripeUsageService } from "../../stripe-usage";
|
|
13
15
|
import { UsageContainer } from "../../stripe-usage/components";
|
|
14
16
|
import {
|
|
@@ -77,12 +79,26 @@ export function BillingDashboardContainer() {
|
|
|
77
79
|
const [activeModal, setActiveModal] = useState<ModalType>(null);
|
|
78
80
|
const [noCustomerExists, setNoCustomerExists] = useState(false);
|
|
79
81
|
const [creatingCustomer, setCreatingCustomer] = useState(false);
|
|
82
|
+
const searchParams = useSearchParams();
|
|
83
|
+
|
|
84
|
+
// Wizard state - lifted from SubscriptionsContainer to avoid nested dialogs
|
|
85
|
+
const [showWizard, setShowWizard] = useState(false);
|
|
86
|
+
const [editingSubscription, setEditingSubscription] = useState<StripeSubscriptionInterface | null>(null);
|
|
80
87
|
|
|
81
88
|
// Check if company has metered subscriptions
|
|
82
89
|
const hasMeteredSubscriptions = useCallback((): boolean => {
|
|
83
90
|
return data.subscriptions.some((sub) => sub.price?.recurring?.usageType === "metered");
|
|
84
91
|
}, [data.subscriptions]);
|
|
85
92
|
|
|
93
|
+
// Check if user has active recurring subscription (for wizard filtering)
|
|
94
|
+
const hasActiveRecurringSubscription = useMemo(() => {
|
|
95
|
+
return data.subscriptions.some(
|
|
96
|
+
(sub) =>
|
|
97
|
+
(sub.status === SubscriptionStatus.ACTIVE || sub.status === SubscriptionStatus.TRIALING) &&
|
|
98
|
+
sub.price?.priceType === "recurring",
|
|
99
|
+
);
|
|
100
|
+
}, [data.subscriptions]);
|
|
101
|
+
|
|
86
102
|
// Fetch all data - first check customer, then fetch rest if customer exists
|
|
87
103
|
const fetchAllData = useCallback(async () => {
|
|
88
104
|
setNoCustomerExists(false);
|
|
@@ -242,11 +258,35 @@ export function BillingDashboardContainer() {
|
|
|
242
258
|
await fetchAllData();
|
|
243
259
|
}, [fetchAllData]);
|
|
244
260
|
|
|
261
|
+
// Handler to open wizard (can be called from SubscriptionsContainer)
|
|
262
|
+
const handleOpenWizard = useCallback((subscription?: StripeSubscriptionInterface) => {
|
|
263
|
+
setEditingSubscription(subscription || null);
|
|
264
|
+
setShowWizard(true);
|
|
265
|
+
}, []);
|
|
266
|
+
|
|
267
|
+
// Handler to close wizard
|
|
268
|
+
const handleWizardClose = useCallback(() => {
|
|
269
|
+
setShowWizard(false);
|
|
270
|
+
setEditingSubscription(null);
|
|
271
|
+
refreshData();
|
|
272
|
+
}, [refreshData]);
|
|
273
|
+
|
|
245
274
|
// Initial data load
|
|
246
275
|
useEffect(() => {
|
|
247
276
|
fetchAllData();
|
|
248
277
|
}, [fetchAllData]);
|
|
249
278
|
|
|
279
|
+
// Handle URL action parameter for deep linking
|
|
280
|
+
useEffect(() => {
|
|
281
|
+
const action = searchParams.get("action");
|
|
282
|
+
if (action === "subscribe") {
|
|
283
|
+
// Open wizard directly (no wrapper modal)
|
|
284
|
+
setShowWizard(true);
|
|
285
|
+
// Clear the URL param to prevent re-triggering on refresh
|
|
286
|
+
window.history.replaceState({}, "", window.location.pathname);
|
|
287
|
+
}
|
|
288
|
+
}, [searchParams]);
|
|
289
|
+
|
|
250
290
|
// Detect critical subscriptions for alert banners
|
|
251
291
|
const criticalSubscriptions = data.subscriptions.filter(
|
|
252
292
|
(sub) =>
|
|
@@ -352,7 +392,15 @@ export function BillingDashboardContainer() {
|
|
|
352
392
|
subscriptions={data.subscriptions}
|
|
353
393
|
loading={loading.subscriptions}
|
|
354
394
|
error={errors.subscriptions || undefined}
|
|
355
|
-
onManageClick={() =>
|
|
395
|
+
onManageClick={() => {
|
|
396
|
+
if (data.subscriptions.length === 0) {
|
|
397
|
+
// No subscriptions - open wizard directly
|
|
398
|
+
setShowWizard(true);
|
|
399
|
+
} else {
|
|
400
|
+
// Has subscriptions - open manage modal
|
|
401
|
+
setActiveModal("subscriptions");
|
|
402
|
+
}
|
|
403
|
+
}}
|
|
356
404
|
/>
|
|
357
405
|
|
|
358
406
|
<PaymentMethodSummaryCard
|
|
@@ -394,7 +442,7 @@ export function BillingDashboardContainer() {
|
|
|
394
442
|
onOpenChange={handleModalClose}
|
|
395
443
|
title={getModalTitle("subscriptions")}
|
|
396
444
|
>
|
|
397
|
-
<SubscriptionsContainer />
|
|
445
|
+
<SubscriptionsContainer onOpenWizard={handleOpenWizard} />
|
|
398
446
|
</BillingDetailModal>
|
|
399
447
|
|
|
400
448
|
<BillingDetailModal
|
|
@@ -420,6 +468,15 @@ export function BillingDashboardContainer() {
|
|
|
420
468
|
>
|
|
421
469
|
<UsageContainer />
|
|
422
470
|
</BillingDetailModal>
|
|
471
|
+
|
|
472
|
+
{/* Subscription Wizard - rendered at dashboard level to avoid nested dialogs */}
|
|
473
|
+
<SubscriptionWizard
|
|
474
|
+
open={showWizard}
|
|
475
|
+
onOpenChange={(open) => !open && handleWizardClose()}
|
|
476
|
+
onSuccess={refreshData}
|
|
477
|
+
hasActiveRecurringSubscription={hasActiveRecurringSubscription}
|
|
478
|
+
subscription={editingSubscription ?? undefined}
|
|
479
|
+
/>
|
|
423
480
|
</>
|
|
424
481
|
)}
|
|
425
482
|
</div>
|