@carlonicora/nextjs-jsonapi 6.2.0 → 6.3.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/{AssistantMessageInterface-S7oyERTT.d.mts → AssistantMessageInterface-0ZQ1EJKO.d.mts} +1 -1
- package/dist/{AssistantMessageInterface-DHJJO_Z_.d.ts → AssistantMessageInterface-CA-hZ5Wj.d.ts} +1 -1
- package/dist/{BlockNoteEditor-Q757ZLCO.js → BlockNoteEditor-CT4XUXPC.js} +19 -19
- package/dist/{BlockNoteEditor-Q757ZLCO.js.map → BlockNoteEditor-CT4XUXPC.js.map} +1 -1
- package/dist/{BlockNoteEditor-D6VMXRZH.mjs → BlockNoteEditor-M6UQRVRK.mjs} +4 -4
- package/dist/{BlockNoteViewer-KG4CIJC5.js → BlockNoteViewer-MFLWF3Y2.js} +3 -3
- package/dist/{BlockNoteViewer-KG4CIJC5.js.map → BlockNoteViewer-MFLWF3Y2.js.map} +1 -1
- package/dist/{BlockNoteViewer-GI5LVQHZ.mjs → BlockNoteViewer-XZJ5Y7WN.mjs} +2 -2
- package/dist/{BlogPostInterface-BB_4wcDR.d.mts → BlogPostInterface-BN2mXc46.d.mts} +1 -1
- package/dist/{BlogPostInterface-bWAT1rfR.d.ts → BlogPostInterface-CTGfsR1I.d.ts} +1 -1
- package/dist/{auth.interface-CSzJ1oP1.d.ts → auth.interface-D5606g19.d.ts} +1 -1
- package/dist/{auth.interface-DD4uQv2K.d.mts → auth.interface-tsOuc0Fi.d.mts} +1 -1
- package/dist/billing/index.d.mts +3 -3
- package/dist/billing/index.d.ts +3 -3
- package/dist/billing/index.js +501 -493
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +13 -5
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-QKDPCZ3G.mjs → chunk-3FD6Y734.mjs} +73 -15
- package/dist/chunk-3FD6Y734.mjs.map +1 -0
- package/dist/{chunk-3P3IYUWQ.js → chunk-DSGP6GC3.js} +8 -8
- package/dist/{chunk-3P3IYUWQ.js.map → chunk-DSGP6GC3.js.map} +1 -1
- package/dist/{chunk-HLW3SUMD.mjs → chunk-O2TEUH5S.mjs} +2 -2
- package/dist/{chunk-UEWDYVLW.js → chunk-QJIDORHM.js} +4 -4
- package/dist/{chunk-UEWDYVLW.js.map → chunk-QJIDORHM.js.map} +1 -1
- package/dist/{chunk-CUNSPLOD.mjs → chunk-RUJCWOJE.mjs} +2 -2
- package/dist/{chunk-6PW3562E.mjs → chunk-TIT4CJYQ.mjs} +1233 -1181
- package/dist/chunk-TIT4CJYQ.mjs.map +1 -0
- package/dist/{chunk-S332ZCIE.js → chunk-V4I3XKOM.js} +3 -3
- package/dist/{chunk-S332ZCIE.js.map → chunk-V4I3XKOM.js.map} +1 -1
- package/dist/{chunk-GSHMGL6N.js → chunk-XZCCIKX3.js} +151 -93
- package/dist/chunk-XZCCIKX3.js.map +1 -0
- package/dist/{chunk-XQEYBESH.js → chunk-Y7JIQNM6.js} +922 -870
- package/dist/chunk-Y7JIQNM6.js.map +1 -0
- package/dist/{chunk-MHBE4KQR.mjs → chunk-ZDUT5JPT.mjs} +2 -2
- package/dist/client/index.d.mts +4 -4
- package/dist/client/index.d.ts +4 -4
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +22 -6
- package/dist/components/index.d.ts +22 -6
- package/dist/components/index.js +10 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +10 -4
- package/dist/contexts/index.d.mts +5 -5
- package/dist/contexts/index.d.ts +5 -5
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +23 -13
- package/dist/core/index.d.ts +23 -13
- package/dist/core/index.js +8 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +7 -1
- package/dist/{currency-DrEVd_Xs.d.mts → currency-BhuEoBOn.d.mts} +2 -115
- package/dist/{currency-8ErEC39n.d.ts → currency-CBgZkS0u.d.ts} +2 -115
- package/dist/email-automations/index.js +92 -92
- package/dist/email-automations/index.mjs +3 -3
- package/dist/features/analytics/index.d.mts +2 -2
- package/dist/features/analytics/index.d.ts +2 -2
- package/dist/features/analytics/index.js +121 -121
- package/dist/features/analytics/index.mjs +4 -4
- package/dist/features/analytics/server.js +4 -4
- package/dist/features/analytics/server.mjs +2 -2
- package/dist/features/blog/index.d.mts +4 -4
- package/dist/features/blog/index.d.ts +4 -4
- package/dist/features/blog/index.js +150 -150
- package/dist/features/blog/index.mjs +3 -3
- package/dist/features/blog/server.d.mts +4 -4
- package/dist/features/blog/server.d.ts +4 -4
- package/dist/features/blog/server.js +16 -16
- package/dist/features/blog/server.mjs +1 -1
- package/dist/features/help/index.js +37 -37
- package/dist/features/help/index.mjs +3 -3
- package/dist/features/tokenusage/index.js +127 -127
- package/dist/features/tokenusage/index.mjs +4 -4
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/{notification.interface-BB6GPpZY.d.mts → notification.interface-CF5h90U2.d.mts} +1 -1
- package/dist/{notification.interface-CmAGrijJ.d.ts → notification.interface-DQReXAD7.d.ts} +1 -1
- package/dist/{s3.service-Bz_K-tjz.d.ts → s3.service-BTCpmp5g.d.ts} +11 -4
- package/dist/{s3.service-D5zNCEW3.d.mts → s3.service-CzFBDEuQ.d.mts} +11 -4
- package/dist/server/index.d.mts +5 -5
- package/dist/server/index.d.ts +5 -5
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +2 -2
- package/dist/stripe-price.interface-D6mKjAdr.d.mts +132 -0
- package/dist/stripe-price.interface-DGqcklFJ.d.ts +132 -0
- package/dist/{useSocket-B0H9pmmH.d.ts → useSocket-BM3q9A0C.d.ts} +1 -1
- package/dist/{useSocket-B5RQb6v2.d.mts → useSocket-CwSoq6VS.d.mts} +1 -1
- package/dist/{user.interface-CIWGlbqM.d.mts → user.interface-BYnGJ7ss.d.mts} +37 -2
- package/dist/{user.interface-C0ZdsBZj.d.ts → user.interface-BqPjVyJI.d.ts} +37 -2
- package/messages/en.json +8 -0
- package/messages/it.json +8 -0
- package/package.json +1 -1
- package/src/components/containers/RoundPageContainer.tsx +7 -2
- package/src/components/index.ts +5 -0
- package/src/features/billing/components/containers/BillingDashboardContainer.tsx +20 -3
- package/src/features/billing/components/widgets/CreditWarningBanner.tsx +93 -0
- package/src/features/billing/data/credit-warning.spec.ts +96 -0
- package/src/features/billing/data/credit-warning.ts +57 -0
- package/src/features/billing/data/index.ts +3 -0
- package/src/features/billing/i18n-keys.ts +6 -0
- package/src/features/company/data/company.interface.ts +11 -0
- package/src/features/company/data/company.service.ts +17 -0
- package/src/features/company/data/company.spec.ts +29 -0
- package/src/features/company/data/company.ts +31 -0
- package/dist/chunk-6PW3562E.mjs.map +0 -1
- package/dist/chunk-GSHMGL6N.js.map +0 -1
- package/dist/chunk-QKDPCZ3G.mjs.map +0 -1
- package/dist/chunk-XQEYBESH.js.map +0 -1
- package/dist/feature.interface-BO25VLlx.d.ts +0 -19
- package/dist/feature.interface-CXb1-vNq.d.mts +0 -19
- /package/dist/{BlockNoteEditor-D6VMXRZH.mjs.map → BlockNoteEditor-M6UQRVRK.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-GI5LVQHZ.mjs.map → BlockNoteViewer-XZJ5Y7WN.mjs.map} +0 -0
- /package/dist/{chunk-HLW3SUMD.mjs.map → chunk-O2TEUH5S.mjs.map} +0 -0
- /package/dist/{chunk-CUNSPLOD.mjs.map → chunk-RUJCWOJE.mjs.map} +0 -0
- /package/dist/{chunk-MHBE4KQR.mjs.map → chunk-ZDUT5JPT.mjs.map} +0 -0
|
@@ -3631,6 +3631,39 @@ var Billing = class extends AbstractApiData {
|
|
|
3631
3631
|
}
|
|
3632
3632
|
};
|
|
3633
3633
|
|
|
3634
|
+
// src/features/billing/stripe-subscription/data/stripe-subscription.interface.ts
|
|
3635
|
+
var SubscriptionStatus = /* @__PURE__ */ ((SubscriptionStatus2) => {
|
|
3636
|
+
SubscriptionStatus2["ACTIVE"] = "active";
|
|
3637
|
+
SubscriptionStatus2["PAST_DUE"] = "past_due";
|
|
3638
|
+
SubscriptionStatus2["UNPAID"] = "unpaid";
|
|
3639
|
+
SubscriptionStatus2["CANCELED"] = "canceled";
|
|
3640
|
+
SubscriptionStatus2["INCOMPLETE"] = "incomplete";
|
|
3641
|
+
SubscriptionStatus2["INCOMPLETE_EXPIRED"] = "incomplete_expired";
|
|
3642
|
+
SubscriptionStatus2["TRIALING"] = "trialing";
|
|
3643
|
+
SubscriptionStatus2["PAUSED"] = "paused";
|
|
3644
|
+
return SubscriptionStatus2;
|
|
3645
|
+
})(SubscriptionStatus || {});
|
|
3646
|
+
|
|
3647
|
+
// src/features/billing/data/credit-warning.ts
|
|
3648
|
+
var CREDIT_WARNING_DISMISS_SEGMENT = "credit-warning/dismiss";
|
|
3649
|
+
function isCreditWarningActive(company, thresholdPercent) {
|
|
3650
|
+
if (!company.aiEnabled || !company.isActiveSubscription) return false;
|
|
3651
|
+
if (!company.creditWarningSentAt || company.creditWarningDismissedAt) return false;
|
|
3652
|
+
const granted = company.creditsGrantedThisPeriod;
|
|
3653
|
+
if (granted === void 0 || granted <= 0) return false;
|
|
3654
|
+
const monthly = company.availableMonthlyCredits;
|
|
3655
|
+
const extra = company.availableExtraCredits;
|
|
3656
|
+
if (!(monthly > 0 || extra > 0)) return false;
|
|
3657
|
+
return monthly + extra <= granted * (100 - thresholdPercent) / 100;
|
|
3658
|
+
}
|
|
3659
|
+
_chunk7QVYU63Ejs.__name.call(void 0, isCreditWarningActive, "isCreditWarningActive");
|
|
3660
|
+
function resolveChangePlanTarget(subscriptions) {
|
|
3661
|
+
return subscriptions.find(
|
|
3662
|
+
(sub) => (sub.status === "active" /* ACTIVE */ || sub.status === "trialing" /* TRIALING */) && _optionalChain([sub, 'access', _98 => _98.price, 'optionalAccess', _99 => _99.priceType]) === "recurring"
|
|
3663
|
+
);
|
|
3664
|
+
}
|
|
3665
|
+
_chunk7QVYU63Ejs.__name.call(void 0, resolveChangePlanTarget, "resolveChangePlanTarget");
|
|
3666
|
+
|
|
3634
3667
|
// src/features/billing/modules/billing.module.ts
|
|
3635
3668
|
var BillingModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
|
|
3636
3669
|
name: "billing",
|
|
@@ -3832,8 +3865,8 @@ var StripeCustomerService = class extends AbstractService {
|
|
|
3832
3865
|
type: Modules.StripePaymentMethod,
|
|
3833
3866
|
method: "GET" /* GET */,
|
|
3834
3867
|
endpoint: endpoint.generate(),
|
|
3835
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
3836
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
3868
|
+
next: _optionalChain([params, 'optionalAccess', _100 => _100.next]),
|
|
3869
|
+
previous: _optionalChain([params, 'optionalAccess', _101 => _101.prev])
|
|
3837
3870
|
});
|
|
3838
3871
|
}
|
|
3839
3872
|
/**
|
|
@@ -4047,15 +4080,15 @@ var StripeInvoiceService = class extends AbstractService {
|
|
|
4047
4080
|
const endpoint = new EndpointCreator({
|
|
4048
4081
|
endpoint: Modules.StripeInvoice
|
|
4049
4082
|
});
|
|
4050
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
4083
|
+
if (_optionalChain([params, 'optionalAccess', _102 => _102.status])) {
|
|
4051
4084
|
endpoint.addAdditionalParam("status", params.status);
|
|
4052
4085
|
}
|
|
4053
4086
|
return this.callApi({
|
|
4054
4087
|
type: Modules.StripeInvoice,
|
|
4055
4088
|
method: "GET" /* GET */,
|
|
4056
4089
|
endpoint: endpoint.generate(),
|
|
4057
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
4058
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
4090
|
+
next: _optionalChain([params, 'optionalAccess', _103 => _103.next]),
|
|
4091
|
+
previous: _optionalChain([params, 'optionalAccess', _104 => _104.prev])
|
|
4059
4092
|
});
|
|
4060
4093
|
}
|
|
4061
4094
|
/**
|
|
@@ -4272,18 +4305,18 @@ var StripePriceService = class extends AbstractService {
|
|
|
4272
4305
|
const endpoint = new EndpointCreator({
|
|
4273
4306
|
endpoint: Modules.StripePrice
|
|
4274
4307
|
});
|
|
4275
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
4308
|
+
if (_optionalChain([params, 'optionalAccess', _105 => _105.productId])) {
|
|
4276
4309
|
endpoint.addAdditionalParam("productId", params.productId);
|
|
4277
4310
|
}
|
|
4278
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
4311
|
+
if (_optionalChain([params, 'optionalAccess', _106 => _106.active]) !== void 0) {
|
|
4279
4312
|
endpoint.addAdditionalParam("active", params.active.toString());
|
|
4280
4313
|
}
|
|
4281
4314
|
return this.callApi({
|
|
4282
4315
|
type: Modules.StripePrice,
|
|
4283
4316
|
method: "GET" /* GET */,
|
|
4284
4317
|
endpoint: endpoint.generate(),
|
|
4285
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
4286
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
4318
|
+
next: _optionalChain([params, 'optionalAccess', _107 => _107.next]),
|
|
4319
|
+
previous: _optionalChain([params, 'optionalAccess', _108 => _108.prev])
|
|
4287
4320
|
});
|
|
4288
4321
|
}
|
|
4289
4322
|
/**
|
|
@@ -4457,15 +4490,15 @@ var StripeProductService = class extends AbstractService {
|
|
|
4457
4490
|
const endpoint = new EndpointCreator({
|
|
4458
4491
|
endpoint: Modules.StripeProduct
|
|
4459
4492
|
});
|
|
4460
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
4493
|
+
if (_optionalChain([params, 'optionalAccess', _109 => _109.active]) !== void 0) {
|
|
4461
4494
|
endpoint.addAdditionalParam("active", params.active.toString());
|
|
4462
4495
|
}
|
|
4463
4496
|
return this.callApi({
|
|
4464
4497
|
type: Modules.StripeProduct,
|
|
4465
4498
|
method: "GET" /* GET */,
|
|
4466
4499
|
endpoint: endpoint.generate(),
|
|
4467
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
4468
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
4500
|
+
next: _optionalChain([params, 'optionalAccess', _110 => _110.next]),
|
|
4501
|
+
previous: _optionalChain([params, 'optionalAccess', _111 => _111.prev])
|
|
4469
4502
|
});
|
|
4470
4503
|
}
|
|
4471
4504
|
/**
|
|
@@ -4673,19 +4706,6 @@ var StripeSubscription = (_class16 = class extends AbstractApiData {constructor(
|
|
|
4673
4706
|
}
|
|
4674
4707
|
}, _class16);
|
|
4675
4708
|
|
|
4676
|
-
// src/features/billing/stripe-subscription/data/stripe-subscription.interface.ts
|
|
4677
|
-
var SubscriptionStatus = /* @__PURE__ */ ((SubscriptionStatus2) => {
|
|
4678
|
-
SubscriptionStatus2["ACTIVE"] = "active";
|
|
4679
|
-
SubscriptionStatus2["PAST_DUE"] = "past_due";
|
|
4680
|
-
SubscriptionStatus2["UNPAID"] = "unpaid";
|
|
4681
|
-
SubscriptionStatus2["CANCELED"] = "canceled";
|
|
4682
|
-
SubscriptionStatus2["INCOMPLETE"] = "incomplete";
|
|
4683
|
-
SubscriptionStatus2["INCOMPLETE_EXPIRED"] = "incomplete_expired";
|
|
4684
|
-
SubscriptionStatus2["TRIALING"] = "trialing";
|
|
4685
|
-
SubscriptionStatus2["PAUSED"] = "paused";
|
|
4686
|
-
return SubscriptionStatus2;
|
|
4687
|
-
})(SubscriptionStatus || {});
|
|
4688
|
-
|
|
4689
4709
|
// src/features/billing/stripe-subscription/data/stripe-subscription.service.ts
|
|
4690
4710
|
var StripeSubscriptionService = class extends AbstractService {
|
|
4691
4711
|
static {
|
|
@@ -4705,8 +4725,8 @@ var StripeSubscriptionService = class extends AbstractService {
|
|
|
4705
4725
|
type: Modules.StripeSubscription,
|
|
4706
4726
|
method: "GET" /* GET */,
|
|
4707
4727
|
endpoint: endpoint.generate(),
|
|
4708
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
4709
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
4728
|
+
next: _optionalChain([params, 'optionalAccess', _112 => _112.next]),
|
|
4729
|
+
previous: _optionalChain([params, 'optionalAccess', _113 => _113.prev])
|
|
4710
4730
|
});
|
|
4711
4731
|
}
|
|
4712
4732
|
/**
|
|
@@ -4939,8 +4959,8 @@ var StripeUsageService = class extends AbstractService {
|
|
|
4939
4959
|
type: Modules.StripeUsage,
|
|
4940
4960
|
method: "GET" /* GET */,
|
|
4941
4961
|
endpoint: endpoint.generate(),
|
|
4942
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
4943
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
4962
|
+
next: _optionalChain([params, 'optionalAccess', _114 => _114.next]),
|
|
4963
|
+
previous: _optionalChain([params, 'optionalAccess', _115 => _115.prev])
|
|
4944
4964
|
});
|
|
4945
4965
|
}
|
|
4946
4966
|
/**
|
|
@@ -4988,8 +5008,8 @@ var StripeUsageService = class extends AbstractService {
|
|
|
4988
5008
|
type: Modules.StripeUsage,
|
|
4989
5009
|
method: "GET" /* GET */,
|
|
4990
5010
|
endpoint: endpoint.generate(),
|
|
4991
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
4992
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
5011
|
+
next: _optionalChain([params, 'optionalAccess', _116 => _116.next]),
|
|
5012
|
+
previous: _optionalChain([params, 'optionalAccess', _117 => _117.prev])
|
|
4993
5013
|
});
|
|
4994
5014
|
}
|
|
4995
5015
|
/**
|
|
@@ -5319,8 +5339,8 @@ var StripeCouponService = class extends AbstractService {
|
|
|
5319
5339
|
type: Modules.StripeCoupon,
|
|
5320
5340
|
method: "GET" /* GET */,
|
|
5321
5341
|
endpoint: endpoint.generate(),
|
|
5322
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
5323
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
5342
|
+
next: _optionalChain([params, 'optionalAccess', _118 => _118.next]),
|
|
5343
|
+
previous: _optionalChain([params, 'optionalAccess', _119 => _119.prev])
|
|
5324
5344
|
});
|
|
5325
5345
|
}
|
|
5326
5346
|
/**
|
|
@@ -5582,7 +5602,7 @@ var StripeCouponCodeService = class extends AbstractService {
|
|
|
5582
5602
|
// A failed lookup must reach the wizard, which then refuses to show full price as the truth
|
|
5583
5603
|
suppressGlobalError: true
|
|
5584
5604
|
});
|
|
5585
|
-
return _nullishCoalesce(_optionalChain([codes, 'optionalAccess',
|
|
5605
|
+
return _nullishCoalesce(_optionalChain([codes, 'optionalAccess', _120 => _120[0]]), () => ( null));
|
|
5586
5606
|
}
|
|
5587
5607
|
};
|
|
5588
5608
|
|
|
@@ -5743,17 +5763,17 @@ _chunk7QVYU63Ejs.__name.call(void 0, formatCouponDiscount, "formatCouponDiscount
|
|
|
5743
5763
|
// src/features/billing/stripe-coupon/utils/to-promotion-code-result.ts
|
|
5744
5764
|
function toPromotionCodeResult(code) {
|
|
5745
5765
|
const coupon = code.coupon;
|
|
5746
|
-
const discountType = _optionalChain([coupon, 'optionalAccess',
|
|
5766
|
+
const discountType = _optionalChain([coupon, 'optionalAccess', _121 => _121.discountType]);
|
|
5747
5767
|
return {
|
|
5748
5768
|
valid: true,
|
|
5749
5769
|
automatic: true,
|
|
5750
5770
|
promotionCodeId: code.stripePromotionCodeId,
|
|
5751
5771
|
code: code.code,
|
|
5752
5772
|
discountType,
|
|
5753
|
-
discountValue: discountType === "amount_off" ? _optionalChain([coupon, 'optionalAccess',
|
|
5754
|
-
currency: discountType === "amount_off" ? _optionalChain([coupon, 'optionalAccess',
|
|
5755
|
-
duration: _optionalChain([coupon, 'optionalAccess',
|
|
5756
|
-
durationInMonths: _optionalChain([coupon, 'optionalAccess',
|
|
5773
|
+
discountValue: discountType === "amount_off" ? _optionalChain([coupon, 'optionalAccess', _122 => _122.amountOff]) : _optionalChain([coupon, 'optionalAccess', _123 => _123.percentOff]),
|
|
5774
|
+
currency: discountType === "amount_off" ? _optionalChain([coupon, 'optionalAccess', _124 => _124.currency]) : void 0,
|
|
5775
|
+
duration: _optionalChain([coupon, 'optionalAccess', _125 => _125.duration]),
|
|
5776
|
+
durationInMonths: _optionalChain([coupon, 'optionalAccess', _126 => _126.durationInMonths])
|
|
5757
5777
|
};
|
|
5758
5778
|
}
|
|
5759
5779
|
_chunk7QVYU63Ejs.__name.call(void 0, toPromotionCodeResult, "toPromotionCodeResult");
|
|
@@ -6052,8 +6072,8 @@ var AiConnectionService = class extends AbstractService {
|
|
|
6052
6072
|
});
|
|
6053
6073
|
return {
|
|
6054
6074
|
connections: _nullishCoalesce(data, () => ( [])),
|
|
6055
|
-
providerRegistry: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
6056
|
-
envDefaults: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
6075
|
+
providerRegistry: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _127 => _127.providerRegistry]), () => ( {})),
|
|
6076
|
+
envDefaults: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _128 => _128.envDefaults]), () => ( {}))
|
|
6057
6077
|
};
|
|
6058
6078
|
}
|
|
6059
6079
|
/**
|
|
@@ -6152,6 +6172,10 @@ var Company = (_class21 = class extends AbstractApiData {constructor(...args18)
|
|
|
6152
6172
|
|
|
6153
6173
|
|
|
6154
6174
|
|
|
6175
|
+
|
|
6176
|
+
|
|
6177
|
+
|
|
6178
|
+
|
|
6155
6179
|
get name() {
|
|
6156
6180
|
if (this._name === void 0) throw new Error("Name is not defined");
|
|
6157
6181
|
return this._name;
|
|
@@ -6177,6 +6201,18 @@ var Company = (_class21 = class extends AbstractApiData {constructor(...args18)
|
|
|
6177
6201
|
get aiEnabled() {
|
|
6178
6202
|
return _nullishCoalesce(this._aiEnabled, () => ( true));
|
|
6179
6203
|
}
|
|
6204
|
+
get creditsGrantedThisPeriod() {
|
|
6205
|
+
return this._creditsGrantedThisPeriod;
|
|
6206
|
+
}
|
|
6207
|
+
get creditWarningSentAt() {
|
|
6208
|
+
return this._creditWarningSentAt;
|
|
6209
|
+
}
|
|
6210
|
+
get creditWarningDismissedAt() {
|
|
6211
|
+
return this._creditWarningDismissedAt;
|
|
6212
|
+
}
|
|
6213
|
+
get creditWarningOffer() {
|
|
6214
|
+
return this._creditWarningOffer;
|
|
6215
|
+
}
|
|
6180
6216
|
get features() {
|
|
6181
6217
|
return _nullishCoalesce(this._features, () => ( []));
|
|
6182
6218
|
}
|
|
@@ -6227,6 +6263,10 @@ var Company = (_class21 = class extends AbstractApiData {constructor(...args18)
|
|
|
6227
6263
|
this._availableMonthlyCredits = _nullishCoalesce(data.jsonApi.attributes.availableMonthlyCredits, () => ( 0));
|
|
6228
6264
|
this._availableExtraCredits = _nullishCoalesce(data.jsonApi.attributes.availableExtraCredits, () => ( 0));
|
|
6229
6265
|
this._aiEnabled = _nullishCoalesce(data.jsonApi.attributes.aiEnabled, () => ( true));
|
|
6266
|
+
this._creditsGrantedThisPeriod = _nullishCoalesce(data.jsonApi.attributes.creditsGrantedThisPeriod, () => ( void 0));
|
|
6267
|
+
this._creditWarningSentAt = data.jsonApi.attributes.creditWarningSentAt ? new Date(data.jsonApi.attributes.creditWarningSentAt) : void 0;
|
|
6268
|
+
this._creditWarningDismissedAt = data.jsonApi.attributes.creditWarningDismissedAt ? new Date(data.jsonApi.attributes.creditWarningDismissedAt) : void 0;
|
|
6269
|
+
this._creditWarningOffer = _nullishCoalesce(data.jsonApi.attributes.creditWarningOffer, () => ( void 0));
|
|
6230
6270
|
this._legal_address = data.jsonApi.attributes.legal_address;
|
|
6231
6271
|
this._street_number = data.jsonApi.attributes.street_number;
|
|
6232
6272
|
this._street = data.jsonApi.attributes.street;
|
|
@@ -6376,6 +6416,21 @@ var CompanyService = class extends AbstractService {
|
|
|
6376
6416
|
input: params
|
|
6377
6417
|
});
|
|
6378
6418
|
}
|
|
6419
|
+
/**
|
|
6420
|
+
* Dismisses this period's credit warning for the company. The request has no
|
|
6421
|
+
* body: the server stamps the dismissal itself and answers 204.
|
|
6422
|
+
*/
|
|
6423
|
+
static async dismissCreditWarning(params) {
|
|
6424
|
+
await this.callApi({
|
|
6425
|
+
type: Modules.Company,
|
|
6426
|
+
method: "POST" /* POST */,
|
|
6427
|
+
endpoint: new EndpointCreator({
|
|
6428
|
+
endpoint: Modules.Company,
|
|
6429
|
+
id: params.companyId,
|
|
6430
|
+
childEndpoint: CREDIT_WARNING_DISMISS_SEGMENT
|
|
6431
|
+
}).generate()
|
|
6432
|
+
});
|
|
6433
|
+
}
|
|
6379
6434
|
};
|
|
6380
6435
|
|
|
6381
6436
|
// src/features/company/data/entity-ai-status.ts
|
|
@@ -6489,8 +6544,8 @@ var ContentService = class extends AbstractService {
|
|
|
6489
6544
|
if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
|
|
6490
6545
|
if (params.search) endpoint.addAdditionalParam("search", params.search);
|
|
6491
6546
|
}
|
|
6492
|
-
if (_optionalChain([Modules, 'access',
|
|
6493
|
-
if (_optionalChain([Modules, 'access',
|
|
6547
|
+
if (_optionalChain([Modules, 'access', _129 => _129.Content, 'access', _130 => _130.inclusions, 'optionalAccess', _131 => _131.lists, 'optionalAccess', _132 => _132.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
|
|
6548
|
+
if (_optionalChain([Modules, 'access', _133 => _133.Content, 'access', _134 => _134.inclusions, 'optionalAccess', _135 => _135.lists, 'optionalAccess', _136 => _136.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
|
|
6494
6549
|
return this.callApi({
|
|
6495
6550
|
type: Modules.Content,
|
|
6496
6551
|
method: "GET" /* GET */,
|
|
@@ -6504,8 +6559,8 @@ var ContentService = class extends AbstractService {
|
|
|
6504
6559
|
id: params.id,
|
|
6505
6560
|
childEndpoint: "relevance"
|
|
6506
6561
|
});
|
|
6507
|
-
if (_optionalChain([Modules, 'access',
|
|
6508
|
-
if (_optionalChain([Modules, 'access',
|
|
6562
|
+
if (_optionalChain([Modules, 'access', _137 => _137.Content, 'access', _138 => _138.inclusions, 'optionalAccess', _139 => _139.lists, 'optionalAccess', _140 => _140.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
|
|
6563
|
+
if (_optionalChain([Modules, 'access', _141 => _141.Content, 'access', _142 => _142.inclusions, 'optionalAccess', _143 => _143.lists, 'optionalAccess', _144 => _144.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
|
|
6509
6564
|
return this.callApi({
|
|
6510
6565
|
type: Modules.Content,
|
|
6511
6566
|
method: "GET" /* GET */,
|
|
@@ -6521,8 +6576,8 @@ var ContentService = class extends AbstractService {
|
|
|
6521
6576
|
});
|
|
6522
6577
|
if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
|
|
6523
6578
|
if (params.search) endpoint.addAdditionalParam("search", params.search);
|
|
6524
|
-
if (_optionalChain([Modules, 'access',
|
|
6525
|
-
if (_optionalChain([Modules, 'access',
|
|
6579
|
+
if (_optionalChain([Modules, 'access', _145 => _145.Content, 'access', _146 => _146.inclusions, 'optionalAccess', _147 => _147.lists, 'optionalAccess', _148 => _148.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
|
|
6580
|
+
if (_optionalChain([Modules, 'access', _149 => _149.Content, 'access', _150 => _150.inclusions, 'optionalAccess', _151 => _151.lists, 'optionalAccess', _152 => _152.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
|
|
6526
6581
|
return this.callApi({
|
|
6527
6582
|
type: Modules.Content,
|
|
6528
6583
|
method: "GET" /* GET */,
|
|
@@ -6715,8 +6770,8 @@ var HowToService = class extends AbstractService {
|
|
|
6715
6770
|
const endpoint = new EndpointCreator({ endpoint: Modules.HowTo });
|
|
6716
6771
|
if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
|
|
6717
6772
|
if (params.search) endpoint.addAdditionalParam("search", params.search);
|
|
6718
|
-
if (_optionalChain([Modules, 'access',
|
|
6719
|
-
if (_optionalChain([Modules, 'access',
|
|
6773
|
+
if (_optionalChain([Modules, 'access', _153 => _153.HowTo, 'access', _154 => _154.inclusions, 'optionalAccess', _155 => _155.lists, 'optionalAccess', _156 => _156.fields])) endpoint.limitToFields(Modules.HowTo.inclusions.lists.fields);
|
|
6774
|
+
if (_optionalChain([Modules, 'access', _157 => _157.HowTo, 'access', _158 => _158.inclusions, 'optionalAccess', _159 => _159.lists, 'optionalAccess', _160 => _160.types])) endpoint.limitToType(Modules.HowTo.inclusions.lists.types);
|
|
6720
6775
|
return this.callApi({
|
|
6721
6776
|
type: Modules.HowTo,
|
|
6722
6777
|
method: "GET" /* GET */,
|
|
@@ -7156,9 +7211,9 @@ var EmailAutomationService = class extends AbstractService {
|
|
|
7156
7211
|
}
|
|
7157
7212
|
static async findMany(params = {}) {
|
|
7158
7213
|
const endpoint = new EndpointCreator({ endpoint: Modules.EmailAutomation });
|
|
7159
|
-
if (_optionalChain([Modules, 'access',
|
|
7214
|
+
if (_optionalChain([Modules, 'access', _161 => _161.EmailAutomation, 'access', _162 => _162.inclusions, 'optionalAccess', _163 => _163.lists, 'optionalAccess', _164 => _164.fields]))
|
|
7160
7215
|
endpoint.limitToFields(Modules.EmailAutomation.inclusions.lists.fields);
|
|
7161
|
-
if (_optionalChain([Modules, 'access',
|
|
7216
|
+
if (_optionalChain([Modules, 'access', _165 => _165.EmailAutomation, 'access', _166 => _166.inclusions, 'optionalAccess', _167 => _167.lists, 'optionalAccess', _168 => _168.types]))
|
|
7162
7217
|
endpoint.limitToType(Modules.EmailAutomation.inclusions.lists.types);
|
|
7163
7218
|
return this.callApi({
|
|
7164
7219
|
type: Modules.EmailAutomation,
|
|
@@ -7758,7 +7813,7 @@ var BlogSettings = class extends AbstractApiData {
|
|
|
7758
7813
|
}
|
|
7759
7814
|
rehydrate(data) {
|
|
7760
7815
|
super.rehydrate(data);
|
|
7761
|
-
const listLayout = _optionalChain([data, 'access',
|
|
7816
|
+
const listLayout = _optionalChain([data, 'access', _169 => _169.jsonApi, 'access', _170 => _170.attributes, 'optionalAccess', _171 => _171.listLayout]);
|
|
7762
7817
|
this._listLayout = BLOG_LIST_LAYOUTS.includes(listLayout) ? listLayout : void 0;
|
|
7763
7818
|
return this;
|
|
7764
7819
|
}
|
|
@@ -8415,7 +8470,7 @@ var HandbookThread = class extends AbstractApiData {
|
|
|
8415
8470
|
super.rehydrate(data);
|
|
8416
8471
|
const attributes = _nullishCoalesce(data.jsonApi.attributes, () => ( {}));
|
|
8417
8472
|
this._title = attributes.title;
|
|
8418
|
-
const fromMeta = _optionalChain([data, 'access',
|
|
8473
|
+
const fromMeta = _optionalChain([data, 'access', _172 => _172.jsonApi, 'access', _173 => _173.meta, 'optionalAccess', _174 => _174.messageCount]);
|
|
8419
8474
|
this._messageCount = typeof fromMeta === "number" ? fromMeta : typeof attributes.messageCount === "number" ? attributes.messageCount : 0;
|
|
8420
8475
|
const messages = this._readIncluded(
|
|
8421
8476
|
data,
|
|
@@ -8538,9 +8593,9 @@ var HandbookPageService = class extends AbstractService {
|
|
|
8538
8593
|
const endpoint = new EndpointCreator({ endpoint: Modules.HandbookPage });
|
|
8539
8594
|
if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
|
|
8540
8595
|
if (params.search) endpoint.addAdditionalParam("search", params.search);
|
|
8541
|
-
if (_optionalChain([Modules, 'access',
|
|
8596
|
+
if (_optionalChain([Modules, 'access', _175 => _175.HandbookPage, 'access', _176 => _176.inclusions, 'optionalAccess', _177 => _177.lists, 'optionalAccess', _178 => _178.fields]))
|
|
8542
8597
|
endpoint.limitToFields(Modules.HandbookPage.inclusions.lists.fields);
|
|
8543
|
-
if (_optionalChain([Modules, 'access',
|
|
8598
|
+
if (_optionalChain([Modules, 'access', _179 => _179.HandbookPage, 'access', _180 => _180.inclusions, 'optionalAccess', _181 => _181.lists, 'optionalAccess', _182 => _182.types]))
|
|
8544
8599
|
endpoint.limitToType(Modules.HandbookPage.inclusions.lists.types);
|
|
8545
8600
|
return this.callApi({
|
|
8546
8601
|
type: Modules.HandbookPage,
|
|
@@ -8589,7 +8644,7 @@ var HandbookSectionService = class extends AbstractService {
|
|
|
8589
8644
|
static async findMany() {
|
|
8590
8645
|
const endpoint = new EndpointCreator({ endpoint: Modules.HandbookSection });
|
|
8591
8646
|
endpoint.addAdditionalParam("fetchAll", "true");
|
|
8592
|
-
if (_optionalChain([Modules, 'access',
|
|
8647
|
+
if (_optionalChain([Modules, 'access', _183 => _183.HandbookSection, 'access', _184 => _184.inclusions, 'optionalAccess', _185 => _185.lists, 'optionalAccess', _186 => _186.fields]))
|
|
8593
8648
|
endpoint.limitToFields(Modules.HandbookSection.inclusions.lists.fields);
|
|
8594
8649
|
return this.callApi({
|
|
8595
8650
|
type: Modules.HandbookSection,
|
|
@@ -8646,9 +8701,9 @@ var HandbookThreadService = class extends AbstractService {
|
|
|
8646
8701
|
const endpoint = new EndpointCreator({ endpoint: Modules.HandbookThread });
|
|
8647
8702
|
if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
|
|
8648
8703
|
if (params.search) endpoint.addAdditionalParam("search", params.search);
|
|
8649
|
-
if (_optionalChain([Modules, 'access',
|
|
8704
|
+
if (_optionalChain([Modules, 'access', _187 => _187.HandbookThread, 'access', _188 => _188.inclusions, 'optionalAccess', _189 => _189.lists, 'optionalAccess', _190 => _190.fields]))
|
|
8650
8705
|
endpoint.limitToFields(Modules.HandbookThread.inclusions.lists.fields);
|
|
8651
|
-
if (_optionalChain([Modules, 'access',
|
|
8706
|
+
if (_optionalChain([Modules, 'access', _191 => _191.HandbookThread, 'access', _192 => _192.inclusions, 'optionalAccess', _193 => _193.lists, 'optionalAccess', _194 => _194.types]))
|
|
8652
8707
|
endpoint.limitToType(Modules.HandbookThread.inclusions.lists.types);
|
|
8653
8708
|
return this.callApi({
|
|
8654
8709
|
type: Modules.HandbookThread,
|
|
@@ -8735,15 +8790,15 @@ var Assistant = class extends AbstractApiData {
|
|
|
8735
8790
|
}
|
|
8736
8791
|
rehydrate(data) {
|
|
8737
8792
|
super.rehydrate(data);
|
|
8738
|
-
this._title = _optionalChain([data, 'access',
|
|
8739
|
-
this._engine = _optionalChain([data, 'access',
|
|
8740
|
-
const fromMeta = _optionalChain([data, 'access',
|
|
8741
|
-
const fromAttrs = _optionalChain([data, 'access',
|
|
8793
|
+
this._title = _optionalChain([data, 'access', _195 => _195.jsonApi, 'access', _196 => _196.attributes, 'optionalAccess', _197 => _197.title]);
|
|
8794
|
+
this._engine = _optionalChain([data, 'access', _198 => _198.jsonApi, 'access', _199 => _199.attributes, 'optionalAccess', _200 => _200.engine]);
|
|
8795
|
+
const fromMeta = _optionalChain([data, 'access', _201 => _201.jsonApi, 'access', _202 => _202.meta, 'optionalAccess', _203 => _203.messageCount]);
|
|
8796
|
+
const fromAttrs = _optionalChain([data, 'access', _204 => _204.jsonApi, 'access', _205 => _205.attributes, 'optionalAccess', _206 => _206.messageCount]);
|
|
8742
8797
|
this._messageCount = typeof fromMeta === "number" ? fromMeta : typeof fromAttrs === "number" ? fromAttrs : 0;
|
|
8743
|
-
const contentLinkage = _optionalChain([data, 'access',
|
|
8798
|
+
const contentLinkage = _optionalChain([data, 'access', _207 => _207.jsonApi, 'access', _208 => _208.relationships, 'optionalAccess', _209 => _209.content, 'optionalAccess', _210 => _210.data]);
|
|
8744
8799
|
const boundContent = Array.isArray(contentLinkage) ? contentLinkage[0] : contentLinkage;
|
|
8745
|
-
this._boundContentType = _optionalChain([boundContent, 'optionalAccess',
|
|
8746
|
-
this._boundContentId = _optionalChain([boundContent, 'optionalAccess',
|
|
8800
|
+
this._boundContentType = _optionalChain([boundContent, 'optionalAccess', _211 => _211.type]);
|
|
8801
|
+
this._boundContentId = _optionalChain([boundContent, 'optionalAccess', _212 => _212.id]);
|
|
8747
8802
|
return this;
|
|
8748
8803
|
}
|
|
8749
8804
|
createJsonApi(data) {
|
|
@@ -8859,11 +8914,11 @@ var AssistantMessage = (_class25 = class _AssistantMessage extends AbstractApiDa
|
|
|
8859
8914
|
this._inputTokens = attrs.inputTokens;
|
|
8860
8915
|
this._outputTokens = attrs.outputTokens;
|
|
8861
8916
|
this._messageType = attrs.messageType;
|
|
8862
|
-
const actionRelationship = _optionalChain([data, 'access',
|
|
8863
|
-
this._actionId = Array.isArray(actionRelationship) ? _optionalChain([actionRelationship, 'access',
|
|
8917
|
+
const actionRelationship = _optionalChain([data, 'access', _213 => _213.jsonApi, 'access', _214 => _214.relationships, 'optionalAccess', _215 => _215.action, 'optionalAccess', _216 => _216.data]);
|
|
8918
|
+
this._actionId = Array.isArray(actionRelationship) ? _optionalChain([actionRelationship, 'access', _217 => _217[0], 'optionalAccess', _218 => _218.id]) : _optionalChain([actionRelationship, 'optionalAccess', _219 => _219.id]);
|
|
8864
8919
|
const refs = this._readIncludedPolymorphic(data, "references", resolveReferenceableModules());
|
|
8865
8920
|
this._references = Array.isArray(refs) ? refs : refs ? [refs] : [];
|
|
8866
|
-
if (_optionalChain([data, 'access',
|
|
8921
|
+
if (_optionalChain([data, 'access', _220 => _220.jsonApi, 'access', _221 => _221.relationships, 'optionalAccess', _222 => _222.citations, 'optionalAccess', _223 => _223.data])) {
|
|
8867
8922
|
const citations = this._readIncludedWithMeta(
|
|
8868
8923
|
data,
|
|
8869
8924
|
"citations",
|
|
@@ -9119,9 +9174,9 @@ var AssistantMessageService = class extends AbstractService {
|
|
|
9119
9174
|
id: params.assistantId,
|
|
9120
9175
|
childEndpoint: Modules.AssistantMessage
|
|
9121
9176
|
});
|
|
9122
|
-
if (_optionalChain([Modules, 'access',
|
|
9177
|
+
if (_optionalChain([Modules, 'access', _224 => _224.AssistantMessage, 'access', _225 => _225.inclusions, 'optionalAccess', _226 => _226.lists, 'optionalAccess', _227 => _227.fields]))
|
|
9123
9178
|
endpoint.limitToFields(Modules.AssistantMessage.inclusions.lists.fields);
|
|
9124
|
-
if (_optionalChain([Modules, 'access',
|
|
9179
|
+
if (_optionalChain([Modules, 'access', _228 => _228.AssistantMessage, 'access', _229 => _229.inclusions, 'optionalAccess', _230 => _230.lists, 'optionalAccess', _231 => _231.types]))
|
|
9125
9180
|
endpoint.limitToType(Modules.AssistantMessage.inclusions.lists.types);
|
|
9126
9181
|
return this.callApi({
|
|
9127
9182
|
type: Modules.AssistantMessage,
|
|
@@ -9135,9 +9190,9 @@ var AssistantMessageService = class extends AbstractService {
|
|
|
9135
9190
|
endpoint: Modules.AssistantMessage,
|
|
9136
9191
|
id: params.id
|
|
9137
9192
|
});
|
|
9138
|
-
if (_optionalChain([Modules, 'access',
|
|
9193
|
+
if (_optionalChain([Modules, 'access', _232 => _232.AssistantMessage, 'access', _233 => _233.inclusions, 'optionalAccess', _234 => _234.lists, 'optionalAccess', _235 => _235.fields]))
|
|
9139
9194
|
endpoint.limitToFields(Modules.AssistantMessage.inclusions.lists.fields);
|
|
9140
|
-
if (_optionalChain([Modules, 'access',
|
|
9195
|
+
if (_optionalChain([Modules, 'access', _236 => _236.AssistantMessage, 'access', _237 => _237.inclusions, 'optionalAccess', _238 => _238.lists, 'optionalAccess', _239 => _239.types]))
|
|
9141
9196
|
endpoint.limitToType(Modules.AssistantMessage.inclusions.lists.types);
|
|
9142
9197
|
return this.callApi({
|
|
9143
9198
|
type: Modules.AssistantMessage,
|
|
@@ -9462,10 +9517,10 @@ var Notification = class extends AbstractApiData {
|
|
|
9462
9517
|
this._message = data.jsonApi.attributes.message;
|
|
9463
9518
|
this._actionUrl = data.jsonApi.attributes.actionUrl;
|
|
9464
9519
|
const rels = _nullishCoalesce(data.jsonApi.relationships, () => ( {}));
|
|
9465
|
-
const actorType = _optionalChain([rels, 'access',
|
|
9520
|
+
const actorType = _optionalChain([rels, 'access', _240 => _240.actor, 'optionalAccess', _241 => _241.data, 'optionalAccess', _242 => _242.type]);
|
|
9466
9521
|
this._actor = actorType ? this._readIncluded(data, "actor", Modules.findByName(actorType)) : void 0;
|
|
9467
|
-
const subjectName = Object.keys(rels).find((name) => name !== "actor" && _optionalChain([rels, 'access',
|
|
9468
|
-
const subjectType = subjectName ? _optionalChain([rels, 'access',
|
|
9522
|
+
const subjectName = Object.keys(rels).find((name) => name !== "actor" && _optionalChain([rels, 'access', _243 => _243[name], 'optionalAccess', _244 => _244.data, 'optionalAccess', _245 => _245.type]));
|
|
9523
|
+
const subjectType = subjectName ? _optionalChain([rels, 'access', _246 => _246[subjectName], 'optionalAccess', _247 => _247.data, 'optionalAccess', _248 => _248.type]) : void 0;
|
|
9469
9524
|
this._subject = subjectName && subjectType ? this._readIncluded(data, subjectName, Modules.findByName(subjectType)) : void 0;
|
|
9470
9525
|
return this;
|
|
9471
9526
|
}
|
|
@@ -10052,8 +10107,8 @@ var UserService = class extends AbstractService {
|
|
|
10052
10107
|
id: params.id,
|
|
10053
10108
|
childEndpoint: "user-relevance"
|
|
10054
10109
|
});
|
|
10055
|
-
if (_optionalChain([Modules, 'access',
|
|
10056
|
-
if (_optionalChain([Modules, 'access',
|
|
10110
|
+
if (_optionalChain([Modules, 'access', _249 => _249.User, 'access', _250 => _250.inclusions, 'optionalAccess', _251 => _251.lists, 'optionalAccess', _252 => _252.fields])) endpoint.limitToFields(Modules.User.inclusions.lists.fields);
|
|
10111
|
+
if (_optionalChain([Modules, 'access', _253 => _253.User, 'access', _254 => _254.inclusions, 'optionalAccess', _255 => _255.lists, 'optionalAccess', _256 => _256.types])) endpoint.limitToType(Modules.User.inclusions.lists.types);
|
|
10057
10112
|
return this.callApi({
|
|
10058
10113
|
type: Modules.User,
|
|
10059
10114
|
method: "GET" /* GET */,
|
|
@@ -10350,7 +10405,7 @@ var OAuthService = class extends AbstractService {
|
|
|
10350
10405
|
type: Modules.OAuth,
|
|
10351
10406
|
method: "GET" /* GET */,
|
|
10352
10407
|
endpoint: new EndpointCreator({ endpoint: "oauth/clients" }).generate(),
|
|
10353
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
10408
|
+
next: _optionalChain([params, 'optionalAccess', _257 => _257.next])
|
|
10354
10409
|
});
|
|
10355
10410
|
}
|
|
10356
10411
|
/**
|
|
@@ -10376,7 +10431,7 @@ var OAuthService = class extends AbstractService {
|
|
|
10376
10431
|
});
|
|
10377
10432
|
return {
|
|
10378
10433
|
client: result.data,
|
|
10379
|
-
clientSecret: _optionalChain([result, 'access',
|
|
10434
|
+
clientSecret: _optionalChain([result, 'access', _258 => _258.meta, 'optionalAccess', _259 => _259.clientSecret])
|
|
10380
10435
|
};
|
|
10381
10436
|
}
|
|
10382
10437
|
/**
|
|
@@ -10415,7 +10470,7 @@ var OAuthService = class extends AbstractService {
|
|
|
10415
10470
|
}).generate()
|
|
10416
10471
|
});
|
|
10417
10472
|
return {
|
|
10418
|
-
clientSecret: _optionalChain([result, 'access',
|
|
10473
|
+
clientSecret: _optionalChain([result, 'access', _260 => _260.meta, 'optionalAccess', _261 => _261.clientSecret])
|
|
10419
10474
|
};
|
|
10420
10475
|
}
|
|
10421
10476
|
// ==========================================
|
|
@@ -10452,7 +10507,7 @@ var OAuthService = class extends AbstractService {
|
|
|
10452
10507
|
overridesJsonApiCreation: true
|
|
10453
10508
|
});
|
|
10454
10509
|
return {
|
|
10455
|
-
redirectUrl: _optionalChain([result, 'access',
|
|
10510
|
+
redirectUrl: _optionalChain([result, 'access', _262 => _262.meta, 'optionalAccess', _263 => _263.redirectUrl])
|
|
10456
10511
|
};
|
|
10457
10512
|
}
|
|
10458
10513
|
/**
|
|
@@ -10468,7 +10523,7 @@ var OAuthService = class extends AbstractService {
|
|
|
10468
10523
|
overridesJsonApiCreation: true
|
|
10469
10524
|
});
|
|
10470
10525
|
return {
|
|
10471
|
-
redirectUrl: _optionalChain([result, 'access',
|
|
10526
|
+
redirectUrl: _optionalChain([result, 'access', _264 => _264.meta, 'optionalAccess', _265 => _265.redirectUrl])
|
|
10472
10527
|
};
|
|
10473
10528
|
}
|
|
10474
10529
|
};
|
|
@@ -10674,15 +10729,15 @@ var WaitlistService = class extends AbstractService {
|
|
|
10674
10729
|
*/
|
|
10675
10730
|
static async findMany(params) {
|
|
10676
10731
|
const endpoint = new EndpointCreator({ endpoint: Modules.Waitlist });
|
|
10677
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
10678
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
10679
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
10732
|
+
if (_optionalChain([params, 'optionalAccess', _266 => _266.status])) endpoint.addAdditionalParam("status", params.status);
|
|
10733
|
+
if (_optionalChain([params, 'optionalAccess', _267 => _267.search])) endpoint.addAdditionalParam("search", params.search);
|
|
10734
|
+
if (_optionalChain([params, 'optionalAccess', _268 => _268.fetchAll])) endpoint.addAdditionalParam("fetchAll", "true");
|
|
10680
10735
|
return this.callApi({
|
|
10681
10736
|
type: Modules.Waitlist,
|
|
10682
10737
|
method: "GET" /* GET */,
|
|
10683
10738
|
endpoint: endpoint.generate(),
|
|
10684
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
10685
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
10739
|
+
next: _optionalChain([params, 'optionalAccess', _269 => _269.next]),
|
|
10740
|
+
previous: _optionalChain([params, 'optionalAccess', _270 => _270.previous])
|
|
10686
10741
|
});
|
|
10687
10742
|
}
|
|
10688
10743
|
/**
|
|
@@ -10751,10 +10806,10 @@ var WaitlistService = class extends AbstractService {
|
|
|
10751
10806
|
method: "GET" /* GET */,
|
|
10752
10807
|
endpoint: endpoint.generate()
|
|
10753
10808
|
});
|
|
10754
|
-
const attributes = _optionalChain([response, 'access',
|
|
10809
|
+
const attributes = _optionalChain([response, 'access', _271 => _271.data, 'optionalAccess', _272 => _272._jsonApi, 'optionalAccess', _273 => _273.attributes]);
|
|
10755
10810
|
return {
|
|
10756
|
-
email: _optionalChain([attributes, 'optionalAccess',
|
|
10757
|
-
valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess',
|
|
10811
|
+
email: _optionalChain([attributes, 'optionalAccess', _274 => _274.email]),
|
|
10812
|
+
valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess', _275 => _275.valid]), () => ( false))
|
|
10758
10813
|
};
|
|
10759
10814
|
} catch (_error) {
|
|
10760
10815
|
return null;
|
|
@@ -10852,7 +10907,7 @@ var PermissionMapping = class extends AbstractApiData {
|
|
|
10852
10907
|
super.rehydrate(data);
|
|
10853
10908
|
this._roleId = data.jsonApi.attributes.roleId;
|
|
10854
10909
|
this._moduleId = data.jsonApi.attributes.moduleId;
|
|
10855
|
-
this._permissions = _optionalChain([data, 'access',
|
|
10910
|
+
this._permissions = _optionalChain([data, 'access', _276 => _276.jsonApi, 'access', _277 => _277.meta, 'optionalAccess', _278 => _278.permissions]);
|
|
10856
10911
|
return this;
|
|
10857
10912
|
}
|
|
10858
10913
|
};
|
|
@@ -12333,5 +12388,8 @@ var AuditLogModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (facto
|
|
|
12333
12388
|
|
|
12334
12389
|
|
|
12335
12390
|
|
|
12336
|
-
exports.RehydrationFactory = RehydrationFactory; exports.AbstractApiData = AbstractApiData; exports.getLastApiTotal = getLastApiTotal; exports.clearLastApiTotal = clearLastApiTotal; exports.getLastApiMeta = getLastApiMeta; exports.clearLastApiMeta = clearLastApiMeta; exports.configureI18n = configureI18n; exports.useI18nRouter = useI18nRouter; exports.useI18nTranslations = useI18nTranslations; exports.getI18nLink = getI18nLink; exports.useI18nLocale = useI18nLocale; exports.useI18nDateFnsLocale = useI18nDateFnsLocale; exports.getI18nSupportedLocales = getI18nSupportedLocales; exports.HttpMethod = HttpMethod; exports.setGlobalErrorHandler = setGlobalErrorHandler; exports.getGlobalErrorHandler = getGlobalErrorHandler; exports.AbstractService = AbstractService; exports.configureClientJsonApi = configureClientJsonApi; exports.getClientApiUrl = getClientApiUrl; exports.getClientAppUrl = getClientAppUrl; exports.getClientTrackablePages = getClientTrackablePages; exports.buildClientUrl = buildClientUrl; exports.ClientJsonApiGet = ClientJsonApiGet; exports.ClientJsonApiPost = ClientJsonApiPost; exports.ClientJsonApiPut = ClientJsonApiPut; exports.ClientJsonApiPatch = ClientJsonApiPatch; exports.ClientJsonApiDelete = ClientJsonApiDelete; exports.ClientHttpMethod = ClientHttpMethod; exports.setClientGlobalErrorHandler = setClientGlobalErrorHandler; exports.getClientGlobalErrorHandler = getClientGlobalErrorHandler; exports.ClientAbstractService = ClientAbstractService; exports.ModuleRegistrar = ModuleRegistrar; exports.ModuleRegistry = ModuleRegistry; exports.Modules = Modules; exports.EndpointCreator = EndpointCreator; exports.createJsonApiInclusion = createJsonApiInclusion; exports.rehydrate = rehydrate; exports.rehydrateList = rehydrateList; exports.mergeMessages = mergeMessages; exports.cn = cn; exports.composeRefs = composeRefs; exports.useComposedRefs = useComposedRefs; exports.MOBILE_BREAKPOINT = MOBILE_BREAKPOINT; exports.VIEWPORT_COOKIE_NAME = VIEWPORT_COOKIE_NAME; exports.getViewportContext = getViewportContext; exports.measureViewport = measureViewport; exports.persistViewport = persistViewport; exports.subscribeViewport = subscribeViewport; exports.useIsMobile = useIsMobile; exports.formatLocalDate = formatLocalDate; exports.dateFormatLocale = dateFormatLocale; exports.formatDate = formatDate; exports.exists = exists; exports.TableOptions = TableOptions; exports.getTableOptions = getTableOptions; exports.getTableComponents = getTableComponents; exports.userObjectSchema = userObjectSchema; exports.entityObjectSchema = entityObjectSchema; exports.getInitials = getInitials; exports.isRemoteImageSrc = isRemoteImageSrc; exports.validatePartitaIva = validatePartitaIva; exports.validateCodiceFiscale = validateCodiceFiscale; exports.validateItalianTaxCode = validateItalianTaxCode; exports.formatPartitaIva = formatPartitaIva; exports.formatCodiceFiscale = formatCodiceFiscale; exports.BlockNoteDiffUtil = BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = BlockNoteWordDiffRendererUtil; exports.getIconByModule = getIconByModule; exports.getIcon = getIcon; exports.getIconByModuleName = getIconByModuleName; exports.getLucideIcon = getLucideIcon; exports.getLucideIconByModule = getLucideIconByModule; exports.getLucideIconByModuleName = getLucideIconByModuleName; exports.showToast = showToast; exports.showError = showError; exports.dismissToast = dismissToast; exports.showCustomToast = showCustomToast; exports.Action = Action; exports.checkPermissions = checkPermissions; exports.checkPermissionsFromServer = checkPermissionsFromServer; exports.getValueFromPath = getValueFromPath; exports.TotpAuthenticator = TotpAuthenticator; exports.TotpAuthenticatorModule = TotpAuthenticatorModule; exports.TotpSetup = TotpSetup; exports.TotpSetupModule = TotpSetupModule; exports.TotpVerify = TotpVerify; exports.TotpVerifyModule = TotpVerifyModule; exports.TotpVerifyLogin = TotpVerifyLogin; exports.TotpVerifyLoginModule = TotpVerifyLoginModule; exports.Passkey = Passkey; exports.PasskeyModule = PasskeyModule; exports.PasskeyRegistrationOptions = PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = PasskeyRegistrationVerifyModule; exports.PasskeyRename = PasskeyRename; exports.PasskeyRenameModule = PasskeyRenameModule; exports.PasskeyVerifyLogin = PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = PasskeyVerifyLoginModule; exports.PasskeyAuthenticationOptions = PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = PasskeyAuthenticationOptionsModule; exports.TwoFactorEnable = TwoFactorEnable; exports.TwoFactorEnableModule = TwoFactorEnableModule; exports.TwoFactorChallenge = TwoFactorChallenge; exports.TwoFactorChallengeModule = TwoFactorChallengeModule; exports.BackupCodeVerify = BackupCodeVerify; exports.BackupCodeVerifyModule = BackupCodeVerifyModule; exports.configureAuth = configureAuth; exports.getTokenHandler = getTokenHandler; exports.Auth = Auth; exports.AuthService = AuthService; exports.TwoFactorStatus = TwoFactorStatus; exports.TwoFactorService = TwoFactorService; exports.AuthComponent = AuthComponent; exports.AuthModule = AuthModule; exports.TwoFactorStatusModule = TwoFactorStatusModule; exports.BillingService = BillingService; exports.Billing = Billing; exports.BillingModule = BillingModule; exports.PaymentMethod = PaymentMethod; exports.StripeCustomer = StripeCustomer; exports.StripeCustomerService = StripeCustomerService; exports.StripeCustomerModule = StripeCustomerModule; exports.StripePaymentMethodModule = StripePaymentMethodModule; exports.StripeInvoice = StripeInvoice; exports.InvoiceStatus = InvoiceStatus; exports.StripeInvoiceService = StripeInvoiceService; exports.StripeInvoiceModule = StripeInvoiceModule; exports.StripePrice = StripePrice; exports.StripePriceFields = StripePriceFields; exports.StripePriceService = StripePriceService; exports.StripePriceModule = StripePriceModule; exports.StripeProduct = StripeProduct; exports.StripeProductFields = StripeProductFields; exports.StripeProductService = StripeProductService; exports.StripeProductModule = StripeProductModule; exports.StripeSubscription = StripeSubscription; exports.SubscriptionStatus = SubscriptionStatus; exports.StripeSubscriptionService = StripeSubscriptionService; exports.StripeSubscriptionModule = StripeSubscriptionModule; exports.StripeUsage = StripeUsage; exports.StripeUsageService = StripeUsageService; exports.StripeUsageModule = StripeUsageModule; exports.StripePromotionCodeService = StripePromotionCodeService; exports.StripePromotionCode = StripePromotionCode; exports.StripePromotionCodeModule = StripePromotionCodeModule; exports.StripeCoupon = StripeCoupon; exports.StripeCouponFields = StripeCouponFields; exports.STRIPE_COUPON_REFRESH_SEGMENT = STRIPE_COUPON_REFRESH_SEGMENT; exports.STRIPE_COUPON_DETAIL_PAGE_URL = STRIPE_COUPON_DETAIL_PAGE_URL; exports.StripeCouponModule = StripeCouponModule; exports.StripeCouponService = StripeCouponService; exports.StripeCouponCode = StripeCouponCode; exports.StripeCouponCodeFields = StripeCouponCodeFields; exports.STRIPE_COUPON_CODE_AUTOMATIC_SEGMENT = STRIPE_COUPON_CODE_AUTOMATIC_SEGMENT; exports.StripeCouponCodeModule = StripeCouponCodeModule; exports.StripeCouponCodeService = StripeCouponCodeService; exports.StripeCouponOffer = StripeCouponOffer; exports.couponPlacesLeft = couponPlacesLeft; exports.couponPlacesTotal = couponPlacesTotal; exports.formatInterval = formatInterval; exports.formatCurrency = formatCurrency; exports.formatFixed = formatFixed; exports.formatCouponDiscount = formatCouponDiscount; exports.toPromotionCodeResult = toPromotionCodeResult; exports.StripeCouponOfferModule = StripeCouponOfferModule; exports.AiConnection = AiConnection; exports.AiConnectionFields = AiConnectionFields; exports.AiConnectionService = AiConnectionService; exports.AiConnectionModule = AiConnectionModule; exports.Company = Company; exports.CompanyFields = CompanyFields; exports.CompanyService = CompanyService; exports.EntityAiStatus = EntityAiStatus; exports.CompanyModule = CompanyModule; exports.Content = Content; exports.ContentFields = ContentFields; exports.ContentService = ContentService; exports.ContentModule = ContentModule; exports.HowTo = HowTo; exports.HowToModule = HowToModule; exports.HowToFields = HowToFields; exports.HowToService = HowToService; exports.EmailAutomation = EmailAutomation; exports.EmailAutomationModule = EmailAutomationModule; exports.EmailAutomationStep = EmailAutomationStep; exports.EmailAutomationStepModule = EmailAutomationStepModule; exports.EMAIL_AUTOMATION_UNSUBSCRIBE_TYPE = EMAIL_AUTOMATION_UNSUBSCRIBE_TYPE; exports.EmailAutomationEnrollment = EmailAutomationEnrollment; exports.EmailAutomationEnrollmentModule = EmailAutomationEnrollmentModule; exports.EmailAutomationTrigger = EmailAutomationTrigger; exports.EmailAutomationTriggerModule = EmailAutomationTriggerModule; exports.EmailAutomationService = EmailAutomationService; exports.EmailAutomationStepService = EmailAutomationStepService; exports.EmailAutomationEnrollmentService = EmailAutomationEnrollmentService; exports.EmailAutomationFields = EmailAutomationFields; exports.EmailAutomationEnrollmentFields = EmailAutomationEnrollmentFields; exports.BlogCategory = BlogCategory; exports.BlogCategoryTranslation = BlogCategoryTranslation; exports.BlogPost = BlogPost; exports.BlogPostTranslation = BlogPostTranslation; exports.BLOG_LIST_LAYOUTS = BLOG_LIST_LAYOUTS; exports.BLOG_POST_STATUSES = BLOG_POST_STATUSES; exports.BLOG_TRANSLATION_SOURCES = BLOG_TRANSLATION_SOURCES; exports.BLOG_SETTINGS_ID = BLOG_SETTINGS_ID; exports.BLOG_MODULE_ID = BLOG_MODULE_ID; exports.BLOG_UPLOAD_ROOT = BLOG_UPLOAD_ROOT; exports.BLOG_POST_UPLOAD_PREFIX = BLOG_POST_UPLOAD_PREFIX; exports.BLOG_CATEGORY_UPLOAD_PREFIX = BLOG_CATEGORY_UPLOAD_PREFIX; exports.BLOG_PUBLIC_PREFIX = BLOG_PUBLIC_PREFIX; exports.BLOG_ACTION = BLOG_ACTION; exports.BlogSettings = BlogSettings; exports.BlogPostModule = BlogPostModule; exports.BlogPostTranslationModule = BlogPostTranslationModule; exports.BlogCategoryModule = BlogCategoryModule; exports.BlogCategoryTranslationModule = BlogCategoryTranslationModule; exports.BlogSettingsModule = BlogSettingsModule; exports.BlogPostService = BlogPostService; exports.BlogPostTranslationService = BlogPostTranslationService; exports.BlogCategoryService = BlogCategoryService; exports.BlogCategoryTranslationService = BlogCategoryTranslationService; exports.BlogSettingsService = BlogSettingsService; exports.BlogPostFields = BlogPostFields; exports.BlogCategoryFields = BlogCategoryFields; exports.HandbookPage = HandbookPage; exports.HandbookPageModule = HandbookPageModule; exports.HandbookSection = HandbookSection; exports.HandbookSectionModule = HandbookSectionModule; exports.HandbookThreadMessage = HandbookThreadMessage; exports.HandbookThreadMessageModule = HandbookThreadMessageModule; exports.HandbookThread = HandbookThread; exports.HandbookThreadModule = HandbookThreadModule; exports.handbookPageTitle = handbookPageTitle; exports.handbookPageSummary = handbookPageSummary; exports.handbookPageContent = handbookPageContent; exports.handbookSectionTitle = handbookSectionTitle; exports.handbookSectionSummary = handbookSectionSummary; exports.HandbookPageFields = HandbookPageFields; exports.HandbookPageService = HandbookPageService; exports.HandbookSectionService = HandbookSectionService; exports.HandbookThreadMessageService = HandbookThreadMessageService; exports.HandbookThreadService = HandbookThreadService; exports.Assistant = Assistant; exports.AssistantModule = AssistantModule; exports.AssistantMessage = AssistantMessage; exports.AssistantService = AssistantService; exports.AssistantMessageModule = AssistantMessageModule; exports.AssistantMessageService = AssistantMessageService; exports.AssistantAction = AssistantAction; exports.AssistantActionModule = AssistantActionModule; exports.AssistantActionService = AssistantActionService; exports.Chunk = Chunk; exports.ChunkModule = ChunkModule; exports.Feature = Feature; exports.FeatureService = FeatureService; exports.FeatureModule = FeatureModule; exports.Module = Module; exports.ModuleModule = ModuleModule; exports.Notification = Notification; exports.NotificationFields = NotificationFields; exports.NotificationService = NotificationService; exports.NotificationModule = NotificationModule; exports.Push = Push; exports.PushService = PushService; exports.PushModule = PushModule; exports.Role = Role; exports.RoleFields = RoleFields; exports.RoleService = RoleService; exports.RoleModule = RoleModule; exports.S3 = S3; exports.S3Module = S3Module; exports.S3Service = S3Service; exports.User = User; exports.UserFields = UserFields; exports.UserService = UserService; exports.CURRENT_USER_STORAGE_KEY = CURRENT_USER_STORAGE_KEY; exports.AuthorModule = AuthorModule; exports.UserModule = UserModule; exports.OAuthClient = OAuthClient; exports.OAuthModule = OAuthModule; exports.OAuthService = OAuthService; exports.OAUTH_SCOPE_DISPLAY = OAUTH_SCOPE_DISPLAY; exports.AVAILABLE_OAUTH_SCOPES = AVAILABLE_OAUTH_SCOPES; exports.DEFAULT_GRANT_TYPES = DEFAULT_GRANT_TYPES; exports.Waitlist = Waitlist; exports.WaitlistService = WaitlistService; exports.WaitlistStats = WaitlistStats; exports.WaitlistFields = WaitlistFields; exports.WaitlistModule = WaitlistModule; exports.WaitlistStatsModule = WaitlistStatsModule; exports.PermissionMapping = PermissionMapping; exports.ModulePaths = ModulePaths; exports.RbacMatrixModel = RbacMatrixModel; exports.PermissionMappingModule = PermissionMappingModule; exports.ModulePathsModule = ModulePathsModule; exports.RbacMatrixModule = RbacMatrixModule; exports.ReferralStats = ReferralStats; exports.ReferralService = ReferralService; exports.ReferralModule = ReferralModule; exports.ReferralStatsModule = ReferralStatsModule; exports.TokenUsageAdminBreakdown = TokenUsageAdminBreakdown; exports.TokenUsageAdminSummary = TokenUsageAdminSummary; exports.TokenUsageAdminTimeline = TokenUsageAdminTimeline; exports.TokenUsageAdminSummaryModule = TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = TokenUsageAdminTimelineModule; exports.TokenUsageAdminBreakdownModule = TokenUsageAdminBreakdownModule; exports.TokenUsageReportBreakdown = TokenUsageReportBreakdown; exports.TokenUsageReportSummary = TokenUsageReportSummary; exports.TokenUsageReportTimeline = TokenUsageReportTimeline; exports.tokenUsageModules = tokenUsageModules; exports.AnalyticsBreakdown = AnalyticsBreakdown; exports.AnalyticsEvent = AnalyticsEvent; exports.AnalyticsPageView = AnalyticsPageView; exports.AnalyticsSession = AnalyticsSession; exports.AnalyticsSummary = AnalyticsSummary; exports.AnalyticsTimeline = AnalyticsTimeline; exports.analyticsModules = analyticsModules; exports.configureTokenUsage = configureTokenUsage; exports.getTokenUsageCurrency = getTokenUsageCurrency; exports.AuditLog = AuditLog; exports.AuditLogService = AuditLogService; exports.AuditLogModule = AuditLogModule;
|
|
12337
|
-
|
|
12391
|
+
|
|
12392
|
+
|
|
12393
|
+
|
|
12394
|
+
exports.RehydrationFactory = RehydrationFactory; exports.AbstractApiData = AbstractApiData; exports.getLastApiTotal = getLastApiTotal; exports.clearLastApiTotal = clearLastApiTotal; exports.getLastApiMeta = getLastApiMeta; exports.clearLastApiMeta = clearLastApiMeta; exports.configureI18n = configureI18n; exports.useI18nRouter = useI18nRouter; exports.useI18nTranslations = useI18nTranslations; exports.getI18nLink = getI18nLink; exports.useI18nLocale = useI18nLocale; exports.useI18nDateFnsLocale = useI18nDateFnsLocale; exports.getI18nSupportedLocales = getI18nSupportedLocales; exports.HttpMethod = HttpMethod; exports.setGlobalErrorHandler = setGlobalErrorHandler; exports.getGlobalErrorHandler = getGlobalErrorHandler; exports.AbstractService = AbstractService; exports.configureClientJsonApi = configureClientJsonApi; exports.getClientApiUrl = getClientApiUrl; exports.getClientAppUrl = getClientAppUrl; exports.getClientTrackablePages = getClientTrackablePages; exports.buildClientUrl = buildClientUrl; exports.ClientJsonApiGet = ClientJsonApiGet; exports.ClientJsonApiPost = ClientJsonApiPost; exports.ClientJsonApiPut = ClientJsonApiPut; exports.ClientJsonApiPatch = ClientJsonApiPatch; exports.ClientJsonApiDelete = ClientJsonApiDelete; exports.ClientHttpMethod = ClientHttpMethod; exports.setClientGlobalErrorHandler = setClientGlobalErrorHandler; exports.getClientGlobalErrorHandler = getClientGlobalErrorHandler; exports.ClientAbstractService = ClientAbstractService; exports.ModuleRegistrar = ModuleRegistrar; exports.ModuleRegistry = ModuleRegistry; exports.Modules = Modules; exports.EndpointCreator = EndpointCreator; exports.createJsonApiInclusion = createJsonApiInclusion; exports.rehydrate = rehydrate; exports.rehydrateList = rehydrateList; exports.mergeMessages = mergeMessages; exports.cn = cn; exports.composeRefs = composeRefs; exports.useComposedRefs = useComposedRefs; exports.MOBILE_BREAKPOINT = MOBILE_BREAKPOINT; exports.VIEWPORT_COOKIE_NAME = VIEWPORT_COOKIE_NAME; exports.getViewportContext = getViewportContext; exports.measureViewport = measureViewport; exports.persistViewport = persistViewport; exports.subscribeViewport = subscribeViewport; exports.useIsMobile = useIsMobile; exports.formatLocalDate = formatLocalDate; exports.dateFormatLocale = dateFormatLocale; exports.formatDate = formatDate; exports.exists = exists; exports.TableOptions = TableOptions; exports.getTableOptions = getTableOptions; exports.getTableComponents = getTableComponents; exports.userObjectSchema = userObjectSchema; exports.entityObjectSchema = entityObjectSchema; exports.getInitials = getInitials; exports.isRemoteImageSrc = isRemoteImageSrc; exports.validatePartitaIva = validatePartitaIva; exports.validateCodiceFiscale = validateCodiceFiscale; exports.validateItalianTaxCode = validateItalianTaxCode; exports.formatPartitaIva = formatPartitaIva; exports.formatCodiceFiscale = formatCodiceFiscale; exports.BlockNoteDiffUtil = BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = BlockNoteWordDiffRendererUtil; exports.getIconByModule = getIconByModule; exports.getIcon = getIcon; exports.getIconByModuleName = getIconByModuleName; exports.getLucideIcon = getLucideIcon; exports.getLucideIconByModule = getLucideIconByModule; exports.getLucideIconByModuleName = getLucideIconByModuleName; exports.showToast = showToast; exports.showError = showError; exports.dismissToast = dismissToast; exports.showCustomToast = showCustomToast; exports.Action = Action; exports.checkPermissions = checkPermissions; exports.checkPermissionsFromServer = checkPermissionsFromServer; exports.getValueFromPath = getValueFromPath; exports.TotpAuthenticator = TotpAuthenticator; exports.TotpAuthenticatorModule = TotpAuthenticatorModule; exports.TotpSetup = TotpSetup; exports.TotpSetupModule = TotpSetupModule; exports.TotpVerify = TotpVerify; exports.TotpVerifyModule = TotpVerifyModule; exports.TotpVerifyLogin = TotpVerifyLogin; exports.TotpVerifyLoginModule = TotpVerifyLoginModule; exports.Passkey = Passkey; exports.PasskeyModule = PasskeyModule; exports.PasskeyRegistrationOptions = PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = PasskeyRegistrationVerifyModule; exports.PasskeyRename = PasskeyRename; exports.PasskeyRenameModule = PasskeyRenameModule; exports.PasskeyVerifyLogin = PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = PasskeyVerifyLoginModule; exports.PasskeyAuthenticationOptions = PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = PasskeyAuthenticationOptionsModule; exports.TwoFactorEnable = TwoFactorEnable; exports.TwoFactorEnableModule = TwoFactorEnableModule; exports.TwoFactorChallenge = TwoFactorChallenge; exports.TwoFactorChallengeModule = TwoFactorChallengeModule; exports.BackupCodeVerify = BackupCodeVerify; exports.BackupCodeVerifyModule = BackupCodeVerifyModule; exports.configureAuth = configureAuth; exports.getTokenHandler = getTokenHandler; exports.Auth = Auth; exports.AuthService = AuthService; exports.TwoFactorStatus = TwoFactorStatus; exports.TwoFactorService = TwoFactorService; exports.AuthComponent = AuthComponent; exports.AuthModule = AuthModule; exports.TwoFactorStatusModule = TwoFactorStatusModule; exports.BillingService = BillingService; exports.Billing = Billing; exports.SubscriptionStatus = SubscriptionStatus; exports.CREDIT_WARNING_DISMISS_SEGMENT = CREDIT_WARNING_DISMISS_SEGMENT; exports.isCreditWarningActive = isCreditWarningActive; exports.resolveChangePlanTarget = resolveChangePlanTarget; exports.BillingModule = BillingModule; exports.PaymentMethod = PaymentMethod; exports.StripeCustomer = StripeCustomer; exports.StripeCustomerService = StripeCustomerService; exports.StripeCustomerModule = StripeCustomerModule; exports.StripePaymentMethodModule = StripePaymentMethodModule; exports.StripeInvoice = StripeInvoice; exports.InvoiceStatus = InvoiceStatus; exports.StripeInvoiceService = StripeInvoiceService; exports.StripeInvoiceModule = StripeInvoiceModule; exports.StripePrice = StripePrice; exports.StripePriceFields = StripePriceFields; exports.StripePriceService = StripePriceService; exports.StripePriceModule = StripePriceModule; exports.StripeProduct = StripeProduct; exports.StripeProductFields = StripeProductFields; exports.StripeProductService = StripeProductService; exports.StripeProductModule = StripeProductModule; exports.StripeSubscription = StripeSubscription; exports.StripeSubscriptionService = StripeSubscriptionService; exports.StripeSubscriptionModule = StripeSubscriptionModule; exports.StripeUsage = StripeUsage; exports.StripeUsageService = StripeUsageService; exports.StripeUsageModule = StripeUsageModule; exports.StripePromotionCodeService = StripePromotionCodeService; exports.StripePromotionCode = StripePromotionCode; exports.StripePromotionCodeModule = StripePromotionCodeModule; exports.StripeCoupon = StripeCoupon; exports.StripeCouponFields = StripeCouponFields; exports.STRIPE_COUPON_REFRESH_SEGMENT = STRIPE_COUPON_REFRESH_SEGMENT; exports.STRIPE_COUPON_DETAIL_PAGE_URL = STRIPE_COUPON_DETAIL_PAGE_URL; exports.StripeCouponModule = StripeCouponModule; exports.StripeCouponService = StripeCouponService; exports.StripeCouponCode = StripeCouponCode; exports.StripeCouponCodeFields = StripeCouponCodeFields; exports.STRIPE_COUPON_CODE_AUTOMATIC_SEGMENT = STRIPE_COUPON_CODE_AUTOMATIC_SEGMENT; exports.StripeCouponCodeModule = StripeCouponCodeModule; exports.StripeCouponCodeService = StripeCouponCodeService; exports.StripeCouponOffer = StripeCouponOffer; exports.couponPlacesLeft = couponPlacesLeft; exports.couponPlacesTotal = couponPlacesTotal; exports.formatInterval = formatInterval; exports.formatCurrency = formatCurrency; exports.formatFixed = formatFixed; exports.formatCouponDiscount = formatCouponDiscount; exports.toPromotionCodeResult = toPromotionCodeResult; exports.StripeCouponOfferModule = StripeCouponOfferModule; exports.AiConnection = AiConnection; exports.AiConnectionFields = AiConnectionFields; exports.AiConnectionService = AiConnectionService; exports.AiConnectionModule = AiConnectionModule; exports.Company = Company; exports.CompanyFields = CompanyFields; exports.CompanyService = CompanyService; exports.EntityAiStatus = EntityAiStatus; exports.CompanyModule = CompanyModule; exports.Content = Content; exports.ContentFields = ContentFields; exports.ContentService = ContentService; exports.ContentModule = ContentModule; exports.HowTo = HowTo; exports.HowToModule = HowToModule; exports.HowToFields = HowToFields; exports.HowToService = HowToService; exports.EmailAutomation = EmailAutomation; exports.EmailAutomationModule = EmailAutomationModule; exports.EmailAutomationStep = EmailAutomationStep; exports.EmailAutomationStepModule = EmailAutomationStepModule; exports.EMAIL_AUTOMATION_UNSUBSCRIBE_TYPE = EMAIL_AUTOMATION_UNSUBSCRIBE_TYPE; exports.EmailAutomationEnrollment = EmailAutomationEnrollment; exports.EmailAutomationEnrollmentModule = EmailAutomationEnrollmentModule; exports.EmailAutomationTrigger = EmailAutomationTrigger; exports.EmailAutomationTriggerModule = EmailAutomationTriggerModule; exports.EmailAutomationService = EmailAutomationService; exports.EmailAutomationStepService = EmailAutomationStepService; exports.EmailAutomationEnrollmentService = EmailAutomationEnrollmentService; exports.EmailAutomationFields = EmailAutomationFields; exports.EmailAutomationEnrollmentFields = EmailAutomationEnrollmentFields; exports.BlogCategory = BlogCategory; exports.BlogCategoryTranslation = BlogCategoryTranslation; exports.BlogPost = BlogPost; exports.BlogPostTranslation = BlogPostTranslation; exports.BLOG_LIST_LAYOUTS = BLOG_LIST_LAYOUTS; exports.BLOG_POST_STATUSES = BLOG_POST_STATUSES; exports.BLOG_TRANSLATION_SOURCES = BLOG_TRANSLATION_SOURCES; exports.BLOG_SETTINGS_ID = BLOG_SETTINGS_ID; exports.BLOG_MODULE_ID = BLOG_MODULE_ID; exports.BLOG_UPLOAD_ROOT = BLOG_UPLOAD_ROOT; exports.BLOG_POST_UPLOAD_PREFIX = BLOG_POST_UPLOAD_PREFIX; exports.BLOG_CATEGORY_UPLOAD_PREFIX = BLOG_CATEGORY_UPLOAD_PREFIX; exports.BLOG_PUBLIC_PREFIX = BLOG_PUBLIC_PREFIX; exports.BLOG_ACTION = BLOG_ACTION; exports.BlogSettings = BlogSettings; exports.BlogPostModule = BlogPostModule; exports.BlogPostTranslationModule = BlogPostTranslationModule; exports.BlogCategoryModule = BlogCategoryModule; exports.BlogCategoryTranslationModule = BlogCategoryTranslationModule; exports.BlogSettingsModule = BlogSettingsModule; exports.BlogPostService = BlogPostService; exports.BlogPostTranslationService = BlogPostTranslationService; exports.BlogCategoryService = BlogCategoryService; exports.BlogCategoryTranslationService = BlogCategoryTranslationService; exports.BlogSettingsService = BlogSettingsService; exports.BlogPostFields = BlogPostFields; exports.BlogCategoryFields = BlogCategoryFields; exports.HandbookPage = HandbookPage; exports.HandbookPageModule = HandbookPageModule; exports.HandbookSection = HandbookSection; exports.HandbookSectionModule = HandbookSectionModule; exports.HandbookThreadMessage = HandbookThreadMessage; exports.HandbookThreadMessageModule = HandbookThreadMessageModule; exports.HandbookThread = HandbookThread; exports.HandbookThreadModule = HandbookThreadModule; exports.handbookPageTitle = handbookPageTitle; exports.handbookPageSummary = handbookPageSummary; exports.handbookPageContent = handbookPageContent; exports.handbookSectionTitle = handbookSectionTitle; exports.handbookSectionSummary = handbookSectionSummary; exports.HandbookPageFields = HandbookPageFields; exports.HandbookPageService = HandbookPageService; exports.HandbookSectionService = HandbookSectionService; exports.HandbookThreadMessageService = HandbookThreadMessageService; exports.HandbookThreadService = HandbookThreadService; exports.Assistant = Assistant; exports.AssistantModule = AssistantModule; exports.AssistantMessage = AssistantMessage; exports.AssistantService = AssistantService; exports.AssistantMessageModule = AssistantMessageModule; exports.AssistantMessageService = AssistantMessageService; exports.AssistantAction = AssistantAction; exports.AssistantActionModule = AssistantActionModule; exports.AssistantActionService = AssistantActionService; exports.Chunk = Chunk; exports.ChunkModule = ChunkModule; exports.Feature = Feature; exports.FeatureService = FeatureService; exports.FeatureModule = FeatureModule; exports.Module = Module; exports.ModuleModule = ModuleModule; exports.Notification = Notification; exports.NotificationFields = NotificationFields; exports.NotificationService = NotificationService; exports.NotificationModule = NotificationModule; exports.Push = Push; exports.PushService = PushService; exports.PushModule = PushModule; exports.Role = Role; exports.RoleFields = RoleFields; exports.RoleService = RoleService; exports.RoleModule = RoleModule; exports.S3 = S3; exports.S3Module = S3Module; exports.S3Service = S3Service; exports.User = User; exports.UserFields = UserFields; exports.UserService = UserService; exports.CURRENT_USER_STORAGE_KEY = CURRENT_USER_STORAGE_KEY; exports.AuthorModule = AuthorModule; exports.UserModule = UserModule; exports.OAuthClient = OAuthClient; exports.OAuthModule = OAuthModule; exports.OAuthService = OAuthService; exports.OAUTH_SCOPE_DISPLAY = OAUTH_SCOPE_DISPLAY; exports.AVAILABLE_OAUTH_SCOPES = AVAILABLE_OAUTH_SCOPES; exports.DEFAULT_GRANT_TYPES = DEFAULT_GRANT_TYPES; exports.Waitlist = Waitlist; exports.WaitlistService = WaitlistService; exports.WaitlistStats = WaitlistStats; exports.WaitlistFields = WaitlistFields; exports.WaitlistModule = WaitlistModule; exports.WaitlistStatsModule = WaitlistStatsModule; exports.PermissionMapping = PermissionMapping; exports.ModulePaths = ModulePaths; exports.RbacMatrixModel = RbacMatrixModel; exports.PermissionMappingModule = PermissionMappingModule; exports.ModulePathsModule = ModulePathsModule; exports.RbacMatrixModule = RbacMatrixModule; exports.ReferralStats = ReferralStats; exports.ReferralService = ReferralService; exports.ReferralModule = ReferralModule; exports.ReferralStatsModule = ReferralStatsModule; exports.TokenUsageAdminBreakdown = TokenUsageAdminBreakdown; exports.TokenUsageAdminSummary = TokenUsageAdminSummary; exports.TokenUsageAdminTimeline = TokenUsageAdminTimeline; exports.TokenUsageAdminSummaryModule = TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = TokenUsageAdminTimelineModule; exports.TokenUsageAdminBreakdownModule = TokenUsageAdminBreakdownModule; exports.TokenUsageReportBreakdown = TokenUsageReportBreakdown; exports.TokenUsageReportSummary = TokenUsageReportSummary; exports.TokenUsageReportTimeline = TokenUsageReportTimeline; exports.tokenUsageModules = tokenUsageModules; exports.AnalyticsBreakdown = AnalyticsBreakdown; exports.AnalyticsEvent = AnalyticsEvent; exports.AnalyticsPageView = AnalyticsPageView; exports.AnalyticsSession = AnalyticsSession; exports.AnalyticsSummary = AnalyticsSummary; exports.AnalyticsTimeline = AnalyticsTimeline; exports.analyticsModules = analyticsModules; exports.configureTokenUsage = configureTokenUsage; exports.getTokenUsageCurrency = getTokenUsageCurrency; exports.AuditLog = AuditLog; exports.AuditLogService = AuditLogService; exports.AuditLogModule = AuditLogModule;
|
|
12395
|
+
//# sourceMappingURL=chunk-XZCCIKX3.js.map
|