@carlonicora/nextjs-jsonapi 5.5.0 → 5.6.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-THBJH2UR.js → BlockNoteEditor-AE3ZTEEH.js} +19 -19
- package/dist/{BlockNoteEditor-THBJH2UR.js.map → BlockNoteEditor-AE3ZTEEH.js.map} +1 -1
- package/dist/{BlockNoteEditor-GVQCKRMU.mjs → BlockNoteEditor-NEYG5L6W.mjs} +4 -4
- package/dist/{BlockNoteViewer-U6E3DS4F.mjs → BlockNoteViewer-3OUT5UFY.mjs} +2 -2
- package/dist/{BlockNoteViewer-VZOVKTFO.js → BlockNoteViewer-4CFKQM7U.js} +3 -3
- package/dist/{BlockNoteViewer-VZOVKTFO.js.map → BlockNoteViewer-4CFKQM7U.js.map} +1 -1
- package/dist/billing/index.d.mts +186 -25
- package/dist/billing/index.d.ts +186 -25
- package/dist/billing/index.js +1148 -587
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +785 -224
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-WPYT4UKJ.js → chunk-3I5AAJXV.js} +3 -3
- package/dist/{chunk-WPYT4UKJ.js.map → chunk-3I5AAJXV.js.map} +1 -1
- package/dist/{chunk-YDYVJM4I.js → chunk-53BAULDP.js} +4 -4
- package/dist/{chunk-YDYVJM4I.js.map → chunk-53BAULDP.js.map} +1 -1
- package/dist/{chunk-3CGROPF3.mjs → chunk-BTPUYUQ3.mjs} +2 -2
- package/dist/{chunk-VC5A3AUZ.mjs → chunk-EYA2F6AN.mjs} +696 -4
- package/dist/chunk-EYA2F6AN.mjs.map +1 -0
- package/dist/{chunk-G6UE6MEP.js → chunk-HKZAESS6.js} +896 -204
- package/dist/chunk-HKZAESS6.js.map +1 -0
- package/dist/{chunk-W7F5BDSV.mjs → chunk-KQHBONL4.mjs} +2 -2
- package/dist/{chunk-TY5FYP3G.js → chunk-LQ4DK4JF.js} +1919 -1056
- package/dist/chunk-LQ4DK4JF.js.map +1 -0
- package/dist/{chunk-S4YJ5WCW.js → chunk-RL3PL3KV.js} +8 -8
- package/dist/{chunk-S4YJ5WCW.js.map → chunk-RL3PL3KV.js.map} +1 -1
- package/dist/{chunk-X5WIUUNG.mjs → chunk-SFYPXCK4.mjs} +3237 -2374
- package/dist/chunk-SFYPXCK4.mjs.map +1 -0
- package/dist/{chunk-6SQYXUVP.mjs → chunk-Y7RR57EW.mjs} +2 -2
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.js +4 -4
- package/dist/components/index.mjs +3 -3
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +242 -3
- package/dist/core/index.d.ts +242 -3
- package/dist/core/index.js +34 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +33 -1
- package/dist/email-automations/index.js +92 -92
- package/dist/email-automations/index.mjs +3 -3
- 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.js +150 -150
- package/dist/features/blog/index.mjs +3 -3
- 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 +124 -124
- package/dist/features/tokenusage/index.mjs +4 -4
- package/dist/{stripe-promotion-code.interface-C3qqh3mi.d.ts → format-options-BtX3o0Yu.d.ts} +104 -1
- package/dist/{stripe-promotion-code.interface-ClZ7DxS9.d.mts → format-options-D6c7FNDi.d.mts} +104 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +35 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +34 -2
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +2 -2
- package/messages/en.json +125 -3
- package/messages/it.json +125 -3
- package/package.json +1 -1
- package/scripts/validate-messages.mjs +1 -0
- package/src/billing/index.ts +1 -0
- package/src/client/index.ts +4 -0
- package/src/core/index.ts +1 -0
- package/src/core/registry/ModuleRegistry.ts +3 -0
- package/src/features/billing/components/cards/InvoicesSummaryCard.tsx +3 -2
- package/src/features/billing/components/cards/SubscriptionSummaryCard.tsx +4 -3
- package/src/features/billing/components/containers/BillingDashboardContainer.tsx +22 -5
- package/src/features/billing/components/utils/__tests__/discount.spec.ts +59 -0
- package/src/features/billing/components/utils/__tests__/url.spec.ts +32 -0
- package/src/features/billing/components/utils/discount.ts +38 -0
- package/src/features/billing/components/utils/index.ts +2 -0
- package/src/features/billing/components/utils/url.ts +12 -0
- package/src/features/billing/contexts/CouponContext.tsx +211 -0
- package/src/features/billing/contexts/index.ts +1 -0
- package/src/features/billing/i18n-keys.ts +79 -0
- package/src/features/billing/stripe-coupon/components/containers/CouponContainer.tsx +38 -0
- package/src/features/billing/stripe-coupon/components/containers/index.ts +1 -0
- package/src/features/billing/stripe-coupon/components/details/CouponDetails.tsx +69 -0
- package/src/features/billing/stripe-coupon/components/details/index.ts +1 -0
- package/src/features/billing/stripe-coupon/components/forms/CouponCodeEditor.tsx +79 -0
- package/src/features/billing/stripe-coupon/components/forms/CouponCodeFields.tsx +192 -0
- package/src/features/billing/stripe-coupon/components/forms/CouponEditor.tsx +333 -0
- package/src/features/billing/stripe-coupon/components/forms/CouponRefresher.tsx +45 -0
- package/src/features/billing/stripe-coupon/components/forms/index.ts +6 -0
- package/src/features/billing/stripe-coupon/components/index.ts +5 -0
- package/src/features/billing/stripe-coupon/components/lists/CouponCodesList.tsx +61 -0
- package/src/features/billing/stripe-coupon/components/lists/CouponsList.tsx +67 -0
- package/src/features/billing/stripe-coupon/components/lists/index.ts +2 -0
- package/src/features/billing/stripe-coupon/components/widgets/CouponCodeActions.tsx +80 -0
- package/src/features/billing/stripe-coupon/components/widgets/index.ts +1 -0
- package/src/features/billing/stripe-coupon/data/__tests__/stripe-coupon-models.spec.ts +114 -0
- package/src/features/billing/stripe-coupon/data/index.ts +10 -0
- package/src/features/billing/stripe-coupon/data/stripe-coupon-code.fields.ts +8 -0
- package/src/features/billing/stripe-coupon/data/stripe-coupon-code.interface.ts +44 -0
- package/src/features/billing/stripe-coupon/data/stripe-coupon-code.service.ts +92 -0
- package/src/features/billing/stripe-coupon/data/stripe-coupon-code.ts +132 -0
- package/src/features/billing/stripe-coupon/data/stripe-coupon-offer.interface.ts +17 -0
- package/src/features/billing/stripe-coupon/data/stripe-coupon-offer.ts +70 -0
- package/src/features/billing/stripe-coupon/data/stripe-coupon.fields.ts +7 -0
- package/src/features/billing/stripe-coupon/data/stripe-coupon.interface.ts +51 -0
- package/src/features/billing/stripe-coupon/data/stripe-coupon.service.ts +93 -0
- package/src/features/billing/stripe-coupon/data/stripe-coupon.ts +165 -0
- package/src/features/billing/stripe-coupon/hooks/useStripeCouponCodeTableStructure.tsx +154 -0
- package/src/features/billing/stripe-coupon/hooks/useStripeCouponTableStructure.tsx +113 -0
- package/src/features/billing/stripe-coupon/index.ts +5 -0
- package/src/features/billing/stripe-coupon/stripe-coupon-code.module.ts +14 -0
- package/src/features/billing/stripe-coupon/stripe-coupon-offer.module.ts +10 -0
- package/src/features/billing/stripe-coupon/stripe-coupon.module.ts +18 -0
- package/src/features/billing/stripe-coupon/utils/__tests__/coupon-places.spec.ts +19 -0
- package/src/features/billing/stripe-coupon/utils/__tests__/to-promotion-code-result.spec.ts +41 -0
- package/src/features/billing/stripe-coupon/utils/coupon-places.ts +23 -0
- package/src/features/billing/stripe-coupon/utils/format-coupon-discount.ts +36 -0
- package/src/features/billing/stripe-coupon/utils/index.ts +3 -0
- package/src/features/billing/stripe-coupon/utils/to-promotion-code-result.ts +23 -0
- package/src/features/billing/stripe-customer/components/forms/PaymentMethodForm.tsx +24 -8
- package/src/features/billing/stripe-product/components/containers/ProductsListContainer.tsx +21 -6
- package/src/features/billing/stripe-promotion-code/components/PromoCodeInput.tsx +60 -19
- package/src/features/billing/stripe-promotion-code/data/stripe-promotion-code.interface.ts +2 -0
- package/src/features/billing/stripe-subscription/components/containers/SubscriptionsContainer.tsx +24 -5
- package/src/features/billing/stripe-subscription/components/lists/SubscriptionsList.tsx +21 -2
- package/src/features/billing/stripe-subscription/components/wizards/SubscriptionWizard.tsx +1 -1
- package/src/features/billing/stripe-subscription/components/wizards/WizardStepPaymentMethod.tsx +1 -1
- package/src/features/billing/stripe-subscription/components/wizards/WizardStepReview.tsx +60 -49
- package/src/features/billing/stripe-subscription/components/wizards/__tests__/review-card.spec.ts +34 -0
- package/src/features/billing/stripe-subscription/components/wizards/review-card.ts +24 -0
- package/src/features/billing/stripe-subscription/data/__tests__/stripe-subscription.discount.spec.ts +67 -0
- package/src/features/billing/stripe-subscription/data/stripe-subscription.interface.ts +14 -0
- package/src/features/billing/stripe-subscription/data/stripe-subscription.service.ts +39 -0
- package/src/features/billing/stripe-subscription/data/stripe-subscription.ts +21 -0
- package/src/features/billing/stripe-subscription/hooks/__tests__/wizard-payment.spec.ts +48 -0
- package/src/features/billing/stripe-subscription/hooks/__tests__/wizard-promotion.spec.ts +132 -0
- package/src/features/billing/stripe-subscription/hooks/useSubscriptionWizard.ts +138 -12
- package/src/features/billing/stripe-subscription/hooks/wizard-payment.ts +30 -0
- package/src/features/billing/stripe-subscription/hooks/wizard-promotion.ts +54 -0
- package/src/features/user/contexts/CurrentUserContext.tsx +25 -0
- package/src/features/user/contexts/__tests__/CurrentUserContext.spec.tsx +121 -2
- package/dist/chunk-G6UE6MEP.js.map +0 -1
- package/dist/chunk-TY5FYP3G.js.map +0 -1
- package/dist/chunk-VC5A3AUZ.mjs.map +0 -1
- package/dist/chunk-X5WIUUNG.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-GVQCKRMU.mjs.map → BlockNoteEditor-NEYG5L6W.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-U6E3DS4F.mjs.map → BlockNoteViewer-3OUT5UFY.mjs.map} +0 -0
- /package/dist/{chunk-3CGROPF3.mjs.map → chunk-BTPUYUQ3.mjs.map} +0 -0
- /package/dist/{chunk-W7F5BDSV.mjs.map → chunk-KQHBONL4.mjs.map} +0 -0
- /package/dist/{chunk-6SQYXUVP.mjs.map → chunk-Y7RR57EW.mjs.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10; var _class11; var _class12; var _class13; var _class14; var _class15; var _class16; var _class17; var _class18; var _class19; var _class20; var _class21; var _class22; var _class23; var _class24; var _class25; var _class26; var _class27; var _class28; var _class29; var _class30; var _class31; var _class32; var _class33; var _class34; var _class35; var _class36; var _class37; var _class38; var _class39; var _class40;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10; var _class11; var _class12; var _class13; var _class14; var _class15; var _class16; var _class17; var _class18; var _class19; var _class20; var _class21; var _class22; var _class23; var _class24; var _class25; var _class26; var _class27; var _class28; var _class29; var _class30; var _class31; var _class32; var _class33; var _class34; var _class35; var _class36; var _class37; var _class38; var _class39; var _class40; var _class41; var _class42; var _class43;
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
@@ -4571,6 +4571,7 @@ var StripeSubscription = (_class16 = class extends AbstractApiData {constructor(
|
|
|
4571
4571
|
|
|
4572
4572
|
|
|
4573
4573
|
|
|
4574
|
+
|
|
4574
4575
|
get stripeSubscriptionId() {
|
|
4575
4576
|
if (!this._stripeSubscriptionId) throw new Error("stripeSubscriptionId is not defined");
|
|
4576
4577
|
return this._stripeSubscriptionId;
|
|
@@ -4602,6 +4603,9 @@ var StripeSubscription = (_class16 = class extends AbstractApiData {constructor(
|
|
|
4602
4603
|
get price() {
|
|
4603
4604
|
return this._price;
|
|
4604
4605
|
}
|
|
4606
|
+
get discount() {
|
|
4607
|
+
return this._discount;
|
|
4608
|
+
}
|
|
4605
4609
|
rehydrate(data) {
|
|
4606
4610
|
super.rehydrate(data);
|
|
4607
4611
|
this._stripeSubscriptionId = data.jsonApi.attributes.stripeSubscriptionId;
|
|
@@ -4612,6 +4616,17 @@ var StripeSubscription = (_class16 = class extends AbstractApiData {constructor(
|
|
|
4612
4616
|
this._canceledAt = data.jsonApi.attributes.canceledAt ? new Date(data.jsonApi.attributes.canceledAt) : void 0;
|
|
4613
4617
|
this._trialStart = data.jsonApi.attributes.trialStart ? new Date(data.jsonApi.attributes.trialStart) : void 0;
|
|
4614
4618
|
this._trialEnd = data.jsonApi.attributes.trialEnd ? new Date(data.jsonApi.attributes.trialEnd) : void 0;
|
|
4619
|
+
const attributes = data.jsonApi.attributes;
|
|
4620
|
+
const percentOff = _nullishCoalesce(attributes.discountPercentOff, () => ( void 0));
|
|
4621
|
+
const amountOff = _nullishCoalesce(attributes.discountAmountOff, () => ( void 0));
|
|
4622
|
+
this._discount = attributes.discountDuration && (percentOff !== void 0 || amountOff !== void 0) ? {
|
|
4623
|
+
percentOff,
|
|
4624
|
+
amountOff,
|
|
4625
|
+
currency: _nullishCoalesce(attributes.discountCurrency, () => ( void 0)),
|
|
4626
|
+
duration: attributes.discountDuration,
|
|
4627
|
+
durationInMonths: _nullishCoalesce(attributes.discountDurationInMonths, () => ( void 0)),
|
|
4628
|
+
end: attributes.discountEnd ? new Date(attributes.discountEnd) : void 0
|
|
4629
|
+
} : void 0;
|
|
4615
4630
|
this._price = this._readIncluded(data, "price", Modules.StripePrice);
|
|
4616
4631
|
return this;
|
|
4617
4632
|
}
|
|
@@ -4720,7 +4735,9 @@ var StripeSubscriptionService = class extends AbstractService {
|
|
|
4720
4735
|
type: Modules.StripeSubscription,
|
|
4721
4736
|
method: "POST" /* POST */,
|
|
4722
4737
|
endpoint: endpoint.generate(),
|
|
4723
|
-
input: params
|
|
4738
|
+
input: params,
|
|
4739
|
+
// The wizard reads 410 / 409 / 402 / 422 itself; a global handler must not swallow them
|
|
4740
|
+
suppressGlobalError: true
|
|
4724
4741
|
});
|
|
4725
4742
|
return {
|
|
4726
4743
|
subscription: result.data,
|
|
@@ -4744,8 +4761,40 @@ var StripeSubscriptionService = class extends AbstractService {
|
|
|
4744
4761
|
type: Modules.StripeSubscription,
|
|
4745
4762
|
method: "POST" /* POST */,
|
|
4746
4763
|
endpoint: endpoint.generate(),
|
|
4747
|
-
input: params
|
|
4764
|
+
input: params,
|
|
4765
|
+
// The wizard reads 410 / 409 / 402 / 422 itself; a global handler must not swallow them
|
|
4766
|
+
suppressGlobalError: true
|
|
4767
|
+
});
|
|
4768
|
+
}
|
|
4769
|
+
/**
|
|
4770
|
+
* Change the plan of an existing subscription, with the payment meta.
|
|
4771
|
+
*
|
|
4772
|
+
* A trial upgrade charges at once; when the card asks for 3D Secure the API
|
|
4773
|
+
* answers with `meta.requiresAction` and the `clientSecret` to confirm in the
|
|
4774
|
+
* browser. Without that meta the change needs nothing more.
|
|
4775
|
+
*/
|
|
4776
|
+
static async changePlanWithMeta(params) {
|
|
4777
|
+
const endpoint = new EndpointCreator({
|
|
4778
|
+
endpoint: Modules.StripeSubscription,
|
|
4779
|
+
id: params.id,
|
|
4780
|
+
childEndpoint: "change-plan"
|
|
4781
|
+
});
|
|
4782
|
+
const result = await this.callApiWithMeta({
|
|
4783
|
+
type: Modules.StripeSubscription,
|
|
4784
|
+
method: "POST" /* POST */,
|
|
4785
|
+
endpoint: endpoint.generate(),
|
|
4786
|
+
input: params,
|
|
4787
|
+
// The wizard reads 410 / 409 / 402 / 422 itself; a global handler must not swallow them
|
|
4788
|
+
suppressGlobalError: true
|
|
4748
4789
|
});
|
|
4790
|
+
return {
|
|
4791
|
+
subscription: result.data,
|
|
4792
|
+
meta: _nullishCoalesce(result.meta, () => ( {
|
|
4793
|
+
clientSecret: null,
|
|
4794
|
+
paymentIntentId: null,
|
|
4795
|
+
requiresAction: false
|
|
4796
|
+
}))
|
|
4797
|
+
};
|
|
4749
4798
|
}
|
|
4750
4799
|
/**
|
|
4751
4800
|
* Get a proration preview for a plan change
|
|
@@ -4825,7 +4874,9 @@ var StripeSubscriptionService = class extends AbstractService {
|
|
|
4825
4874
|
return this.callApi({
|
|
4826
4875
|
type: Modules.StripeSubscription,
|
|
4827
4876
|
method: "POST" /* POST */,
|
|
4828
|
-
endpoint: endpoint.generate()
|
|
4877
|
+
endpoint: endpoint.generate(),
|
|
4878
|
+
// The wizard logs a failed sync and carries on (the webhook catches up): no global error after a paid subscription
|
|
4879
|
+
suppressGlobalError: true
|
|
4829
4880
|
});
|
|
4830
4881
|
}
|
|
4831
4882
|
};
|
|
@@ -5120,6 +5171,627 @@ var StripePromotionCodeModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
|
|
|
5120
5171
|
moduleId: "b8e4f6a2-9d0c-5b3f-c7e8-4g2d9f0a5c6e"
|
|
5121
5172
|
}), "StripePromotionCodeModule");
|
|
5122
5173
|
|
|
5174
|
+
// src/features/billing/stripe-coupon/data/stripe-coupon.ts
|
|
5175
|
+
var StripeCoupon = (_class18 = class _StripeCoupon extends AbstractApiData {constructor(...args15) { super(...args15); _class18.prototype.__init36.call(this);_class18.prototype.__init37.call(this);_class18.prototype.__init38.call(this);_class18.prototype.__init39.call(this); }
|
|
5176
|
+
static {
|
|
5177
|
+
_chunk7QVYU63Ejs.__name.call(void 0, this, "StripeCoupon");
|
|
5178
|
+
}
|
|
5179
|
+
|
|
5180
|
+
|
|
5181
|
+
|
|
5182
|
+
|
|
5183
|
+
|
|
5184
|
+
|
|
5185
|
+
|
|
5186
|
+
|
|
5187
|
+
__init36() {this._stripeProductIds = []}
|
|
5188
|
+
|
|
5189
|
+
|
|
5190
|
+
__init37() {this._timesRedeemed = 0}
|
|
5191
|
+
__init38() {this._valid = true}
|
|
5192
|
+
__init39() {this._codes = []}
|
|
5193
|
+
get stripeCouponId() {
|
|
5194
|
+
if (!this._stripeCouponId) throw new Error("stripeCouponId is not defined");
|
|
5195
|
+
return this._stripeCouponId;
|
|
5196
|
+
}
|
|
5197
|
+
get name() {
|
|
5198
|
+
return _nullishCoalesce(this._name, () => ( ""));
|
|
5199
|
+
}
|
|
5200
|
+
get discountType() {
|
|
5201
|
+
if (!this._discountType) throw new Error("discountType is not defined");
|
|
5202
|
+
return this._discountType;
|
|
5203
|
+
}
|
|
5204
|
+
get percentOff() {
|
|
5205
|
+
return this._percentOff;
|
|
5206
|
+
}
|
|
5207
|
+
get amountOff() {
|
|
5208
|
+
return this._amountOff;
|
|
5209
|
+
}
|
|
5210
|
+
get currency() {
|
|
5211
|
+
return this._currency;
|
|
5212
|
+
}
|
|
5213
|
+
get duration() {
|
|
5214
|
+
if (!this._duration) throw new Error("duration is not defined");
|
|
5215
|
+
return this._duration;
|
|
5216
|
+
}
|
|
5217
|
+
get durationInMonths() {
|
|
5218
|
+
return this._durationInMonths;
|
|
5219
|
+
}
|
|
5220
|
+
get stripeProductIds() {
|
|
5221
|
+
return this._stripeProductIds;
|
|
5222
|
+
}
|
|
5223
|
+
get redeemBy() {
|
|
5224
|
+
return this._redeemBy;
|
|
5225
|
+
}
|
|
5226
|
+
get maxRedemptions() {
|
|
5227
|
+
return this._maxRedemptions;
|
|
5228
|
+
}
|
|
5229
|
+
get timesRedeemed() {
|
|
5230
|
+
return this._timesRedeemed;
|
|
5231
|
+
}
|
|
5232
|
+
get valid() {
|
|
5233
|
+
return this._valid;
|
|
5234
|
+
}
|
|
5235
|
+
get codes() {
|
|
5236
|
+
return this._codes;
|
|
5237
|
+
}
|
|
5238
|
+
rehydrate(data) {
|
|
5239
|
+
super.rehydrate(data);
|
|
5240
|
+
const attributes = data.jsonApi.attributes;
|
|
5241
|
+
this._stripeCouponId = attributes.stripeCouponId;
|
|
5242
|
+
this._name = attributes.name;
|
|
5243
|
+
this._discountType = attributes.discountType;
|
|
5244
|
+
this._percentOff = _nullishCoalesce(attributes.percentOff, () => ( void 0));
|
|
5245
|
+
this._amountOff = _nullishCoalesce(attributes.amountOff, () => ( void 0));
|
|
5246
|
+
this._currency = _nullishCoalesce(attributes.currency, () => ( void 0));
|
|
5247
|
+
this._duration = attributes.duration;
|
|
5248
|
+
this._durationInMonths = _nullishCoalesce(attributes.durationInMonths, () => ( void 0));
|
|
5249
|
+
this._stripeProductIds = _nullishCoalesce(attributes.stripeProductIds, () => ( []));
|
|
5250
|
+
this._redeemBy = attributes.redeemBy ? new Date(attributes.redeemBy) : void 0;
|
|
5251
|
+
this._maxRedemptions = _nullishCoalesce(attributes.maxRedemptions, () => ( void 0));
|
|
5252
|
+
this._timesRedeemed = _nullishCoalesce(attributes.timesRedeemed, () => ( 0));
|
|
5253
|
+
this._valid = _nullishCoalesce(attributes.valid, () => ( true));
|
|
5254
|
+
this._codes = _nullishCoalesce(this._readIncluded(data, "codes", Modules.StripeCouponCode), () => ( []));
|
|
5255
|
+
return this;
|
|
5256
|
+
}
|
|
5257
|
+
createJsonApi(data) {
|
|
5258
|
+
const response = {
|
|
5259
|
+
data: {
|
|
5260
|
+
type: Modules.StripeCoupon.name,
|
|
5261
|
+
id: data.id,
|
|
5262
|
+
attributes: {
|
|
5263
|
+
name: data.name,
|
|
5264
|
+
discountType: data.discountType,
|
|
5265
|
+
duration: data.duration,
|
|
5266
|
+
firstCode: _StripeCoupon.codeAttributes(data.firstCode)
|
|
5267
|
+
}
|
|
5268
|
+
}
|
|
5269
|
+
};
|
|
5270
|
+
const attributes = response.data.attributes;
|
|
5271
|
+
if (data.stripeCouponId) attributes.stripeCouponId = data.stripeCouponId;
|
|
5272
|
+
if (data.percentOff !== void 0) attributes.percentOff = data.percentOff;
|
|
5273
|
+
if (data.amountOff !== void 0) attributes.amountOff = data.amountOff;
|
|
5274
|
+
if (data.currency) attributes.currency = data.currency;
|
|
5275
|
+
if (data.durationInMonths !== void 0) attributes.durationInMonths = data.durationInMonths;
|
|
5276
|
+
if (data.productIds && data.productIds.length > 0) attributes.productIds = data.productIds;
|
|
5277
|
+
if (data.redeemBy !== void 0) attributes.redeemBy = data.redeemBy.toISOString();
|
|
5278
|
+
if (data.maxRedemptions !== void 0) attributes.maxRedemptions = data.maxRedemptions;
|
|
5279
|
+
return response;
|
|
5280
|
+
}
|
|
5281
|
+
/**
|
|
5282
|
+
* Rename is the only change Stripe allows on a coupon after creation.
|
|
5283
|
+
* Dedicated method so the service never needs a generic override.
|
|
5284
|
+
*/
|
|
5285
|
+
createRenameJsonApi(data) {
|
|
5286
|
+
return {
|
|
5287
|
+
data: {
|
|
5288
|
+
type: Modules.StripeCoupon.name,
|
|
5289
|
+
id: data.id,
|
|
5290
|
+
attributes: { name: data.name }
|
|
5291
|
+
}
|
|
5292
|
+
};
|
|
5293
|
+
}
|
|
5294
|
+
/** Attributes of a code, shared by the coupon's first code and StripeCouponCode.createJsonApi. */
|
|
5295
|
+
static codeAttributes(code) {
|
|
5296
|
+
const attributes = {};
|
|
5297
|
+
if (code.code) attributes.code = code.code;
|
|
5298
|
+
if (code.firstTimeTransaction !== void 0) attributes.firstTimeTransaction = code.firstTimeTransaction;
|
|
5299
|
+
if (code.minimumAmount !== void 0) attributes.minimumAmount = code.minimumAmount;
|
|
5300
|
+
if (code.minimumAmountCurrency) attributes.minimumAmountCurrency = code.minimumAmountCurrency;
|
|
5301
|
+
if (code.stripeCustomerId) attributes.stripeCustomerId = code.stripeCustomerId;
|
|
5302
|
+
if (code.expiresAt !== void 0) attributes.expiresAt = code.expiresAt.toISOString();
|
|
5303
|
+
if (code.maxRedemptions !== void 0) attributes.maxRedemptions = code.maxRedemptions;
|
|
5304
|
+
if (code.automatic !== void 0) attributes.automatic = code.automatic;
|
|
5305
|
+
return attributes;
|
|
5306
|
+
}
|
|
5307
|
+
}, _class18);
|
|
5308
|
+
|
|
5309
|
+
// src/features/billing/stripe-coupon/data/stripe-coupon.fields.ts
|
|
5310
|
+
var StripeCouponFields = /* @__PURE__ */ ((StripeCouponFields2) => {
|
|
5311
|
+
StripeCouponFields2["name"] = "name";
|
|
5312
|
+
StripeCouponFields2["discount"] = "discount";
|
|
5313
|
+
StripeCouponFields2["places"] = "places";
|
|
5314
|
+
StripeCouponFields2["codes"] = "codes";
|
|
5315
|
+
StripeCouponFields2["status"] = "status";
|
|
5316
|
+
return StripeCouponFields2;
|
|
5317
|
+
})(StripeCouponFields || {});
|
|
5318
|
+
|
|
5319
|
+
// src/features/billing/stripe-coupon/stripe-coupon.module.ts
|
|
5320
|
+
|
|
5321
|
+
var STRIPE_COUPON_REFRESH_SEGMENT = "refresh";
|
|
5322
|
+
var StripeCouponModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
|
|
5323
|
+
name: "stripe-coupons",
|
|
5324
|
+
// The administration route this entity is served at. `name` above stays the
|
|
5325
|
+
// API endpoint; this drives generateUrl / rewriteUrl / EditorSheet
|
|
5326
|
+
// navigation, so it must match the real Next.js route.
|
|
5327
|
+
pageUrl: "/administration/coupons",
|
|
5328
|
+
model: StripeCoupon,
|
|
5329
|
+
moduleId: "50bdb0d2-539c-4358-b609-d6beab248bdb",
|
|
5330
|
+
icon: _lucidereact.TicketPercentIcon
|
|
5331
|
+
}), "StripeCouponModule");
|
|
5332
|
+
|
|
5333
|
+
// src/features/billing/stripe-coupon/data/stripe-coupon.service.ts
|
|
5334
|
+
var StripeCouponService = class extends AbstractService {
|
|
5335
|
+
static {
|
|
5336
|
+
_chunk7QVYU63Ejs.__name.call(void 0, this, "StripeCouponService");
|
|
5337
|
+
}
|
|
5338
|
+
/**
|
|
5339
|
+
* List all coupons with their codes (admin)
|
|
5340
|
+
*/
|
|
5341
|
+
static async listCoupons(params) {
|
|
5342
|
+
const endpoint = new EndpointCreator({
|
|
5343
|
+
endpoint: Modules.StripeCoupon
|
|
5344
|
+
});
|
|
5345
|
+
return this.callApi({
|
|
5346
|
+
type: Modules.StripeCoupon,
|
|
5347
|
+
method: "GET" /* GET */,
|
|
5348
|
+
endpoint: endpoint.generate(),
|
|
5349
|
+
next: _optionalChain([params, 'optionalAccess', _116 => _116.next]),
|
|
5350
|
+
previous: _optionalChain([params, 'optionalAccess', _117 => _117.prev])
|
|
5351
|
+
});
|
|
5352
|
+
}
|
|
5353
|
+
/**
|
|
5354
|
+
* Get a specific coupon by ID (admin)
|
|
5355
|
+
*/
|
|
5356
|
+
static async getCoupon(params) {
|
|
5357
|
+
const endpoint = new EndpointCreator({
|
|
5358
|
+
endpoint: Modules.StripeCoupon,
|
|
5359
|
+
id: params.id
|
|
5360
|
+
});
|
|
5361
|
+
return this.callApi({
|
|
5362
|
+
type: Modules.StripeCoupon,
|
|
5363
|
+
method: "GET" /* GET */,
|
|
5364
|
+
endpoint: endpoint.generate()
|
|
5365
|
+
});
|
|
5366
|
+
}
|
|
5367
|
+
/**
|
|
5368
|
+
* Create a coupon and its first code (admin)
|
|
5369
|
+
*/
|
|
5370
|
+
static async createCoupon(params) {
|
|
5371
|
+
const endpoint = new EndpointCreator({
|
|
5372
|
+
endpoint: Modules.StripeCoupon
|
|
5373
|
+
});
|
|
5374
|
+
return this.callApi({
|
|
5375
|
+
type: Modules.StripeCoupon,
|
|
5376
|
+
method: "POST" /* POST */,
|
|
5377
|
+
endpoint: endpoint.generate(),
|
|
5378
|
+
input: params
|
|
5379
|
+
});
|
|
5380
|
+
}
|
|
5381
|
+
/**
|
|
5382
|
+
* Rename a coupon (admin). The only coupon field Stripe allows to change.
|
|
5383
|
+
*/
|
|
5384
|
+
static async renameCoupon(params) {
|
|
5385
|
+
const endpoint = new EndpointCreator({
|
|
5386
|
+
endpoint: Modules.StripeCoupon,
|
|
5387
|
+
id: params.id
|
|
5388
|
+
});
|
|
5389
|
+
return this.callApi({
|
|
5390
|
+
type: Modules.StripeCoupon,
|
|
5391
|
+
method: "PATCH" /* PATCH */,
|
|
5392
|
+
endpoint: endpoint.generate(),
|
|
5393
|
+
input: new StripeCoupon().createRenameJsonApi(params),
|
|
5394
|
+
overridesJsonApiCreation: true
|
|
5395
|
+
});
|
|
5396
|
+
}
|
|
5397
|
+
/**
|
|
5398
|
+
* Re-read the coupon and its codes from Stripe and store the counts (admin)
|
|
5399
|
+
*/
|
|
5400
|
+
static async refreshCounts(params) {
|
|
5401
|
+
const endpoint = new EndpointCreator({
|
|
5402
|
+
endpoint: Modules.StripeCoupon,
|
|
5403
|
+
id: params.id,
|
|
5404
|
+
childEndpoint: STRIPE_COUPON_REFRESH_SEGMENT
|
|
5405
|
+
});
|
|
5406
|
+
return this.callApi({
|
|
5407
|
+
type: Modules.StripeCoupon,
|
|
5408
|
+
method: "POST" /* POST */,
|
|
5409
|
+
endpoint: endpoint.generate()
|
|
5410
|
+
});
|
|
5411
|
+
}
|
|
5412
|
+
};
|
|
5413
|
+
|
|
5414
|
+
// src/features/billing/stripe-coupon/data/stripe-coupon-code.ts
|
|
5415
|
+
var StripeCouponCode = (_class19 = class extends AbstractApiData {constructor(...args16) { super(...args16); _class19.prototype.__init40.call(this);_class19.prototype.__init41.call(this);_class19.prototype.__init42.call(this);_class19.prototype.__init43.call(this);_class19.prototype.__init44.call(this); }
|
|
5416
|
+
static {
|
|
5417
|
+
_chunk7QVYU63Ejs.__name.call(void 0, this, "StripeCouponCode");
|
|
5418
|
+
}
|
|
5419
|
+
|
|
5420
|
+
__init40() {this._code = ""}
|
|
5421
|
+
__init41() {this._active = true}
|
|
5422
|
+
__init42() {this._automatic = false}
|
|
5423
|
+
__init43() {this._firstTimeTransaction = false}
|
|
5424
|
+
|
|
5425
|
+
|
|
5426
|
+
|
|
5427
|
+
|
|
5428
|
+
|
|
5429
|
+
__init44() {this._timesRedeemed = 0}
|
|
5430
|
+
|
|
5431
|
+
get stripePromotionCodeId() {
|
|
5432
|
+
if (!this._stripePromotionCodeId) throw new Error("stripePromotionCodeId is not defined");
|
|
5433
|
+
return this._stripePromotionCodeId;
|
|
5434
|
+
}
|
|
5435
|
+
get code() {
|
|
5436
|
+
return this._code;
|
|
5437
|
+
}
|
|
5438
|
+
get active() {
|
|
5439
|
+
return this._active;
|
|
5440
|
+
}
|
|
5441
|
+
get automatic() {
|
|
5442
|
+
return this._automatic;
|
|
5443
|
+
}
|
|
5444
|
+
get firstTimeTransaction() {
|
|
5445
|
+
return this._firstTimeTransaction;
|
|
5446
|
+
}
|
|
5447
|
+
get minimumAmount() {
|
|
5448
|
+
return this._minimumAmount;
|
|
5449
|
+
}
|
|
5450
|
+
get minimumAmountCurrency() {
|
|
5451
|
+
return this._minimumAmountCurrency;
|
|
5452
|
+
}
|
|
5453
|
+
get stripeCustomerId() {
|
|
5454
|
+
return this._stripeCustomerId;
|
|
5455
|
+
}
|
|
5456
|
+
get expiresAt() {
|
|
5457
|
+
return this._expiresAt;
|
|
5458
|
+
}
|
|
5459
|
+
get maxRedemptions() {
|
|
5460
|
+
return this._maxRedemptions;
|
|
5461
|
+
}
|
|
5462
|
+
get timesRedeemed() {
|
|
5463
|
+
return this._timesRedeemed;
|
|
5464
|
+
}
|
|
5465
|
+
get coupon() {
|
|
5466
|
+
return this._coupon;
|
|
5467
|
+
}
|
|
5468
|
+
rehydrate(data) {
|
|
5469
|
+
super.rehydrate(data);
|
|
5470
|
+
const attributes = data.jsonApi.attributes;
|
|
5471
|
+
this._stripePromotionCodeId = attributes.stripePromotionCodeId;
|
|
5472
|
+
this._code = _nullishCoalesce(attributes.code, () => ( ""));
|
|
5473
|
+
this._active = _nullishCoalesce(attributes.active, () => ( true));
|
|
5474
|
+
this._automatic = _nullishCoalesce(attributes.automatic, () => ( false));
|
|
5475
|
+
this._firstTimeTransaction = _nullishCoalesce(attributes.firstTimeTransaction, () => ( false));
|
|
5476
|
+
this._minimumAmount = _nullishCoalesce(attributes.minimumAmount, () => ( void 0));
|
|
5477
|
+
this._minimumAmountCurrency = _nullishCoalesce(attributes.minimumAmountCurrency, () => ( void 0));
|
|
5478
|
+
this._stripeCustomerId = _nullishCoalesce(attributes.stripeCustomerId, () => ( void 0));
|
|
5479
|
+
this._expiresAt = attributes.expiresAt ? new Date(attributes.expiresAt) : void 0;
|
|
5480
|
+
this._maxRedemptions = _nullishCoalesce(attributes.maxRedemptions, () => ( void 0));
|
|
5481
|
+
this._timesRedeemed = _nullishCoalesce(attributes.timesRedeemed, () => ( 0));
|
|
5482
|
+
this._coupon = this._readIncluded(data, "coupon", Modules.StripeCoupon);
|
|
5483
|
+
return this;
|
|
5484
|
+
}
|
|
5485
|
+
createJsonApi(data) {
|
|
5486
|
+
const { id, couponId, ...code } = data;
|
|
5487
|
+
return {
|
|
5488
|
+
data: {
|
|
5489
|
+
type: Modules.StripeCouponCode.name,
|
|
5490
|
+
id,
|
|
5491
|
+
attributes: StripeCoupon.codeAttributes(code),
|
|
5492
|
+
relationships: {
|
|
5493
|
+
coupon: {
|
|
5494
|
+
data: {
|
|
5495
|
+
type: Modules.StripeCoupon.name,
|
|
5496
|
+
id: couponId
|
|
5497
|
+
}
|
|
5498
|
+
}
|
|
5499
|
+
}
|
|
5500
|
+
}
|
|
5501
|
+
};
|
|
5502
|
+
}
|
|
5503
|
+
/**
|
|
5504
|
+
* PATCH body for the flags a code can still change after creation.
|
|
5505
|
+
* Only the flags that are set are sent, so switching one never touches the other.
|
|
5506
|
+
*/
|
|
5507
|
+
createFlagsJsonApi(data) {
|
|
5508
|
+
const attributes = {};
|
|
5509
|
+
if (data.active !== void 0) attributes.active = data.active;
|
|
5510
|
+
if (data.automatic !== void 0) attributes.automatic = data.automatic;
|
|
5511
|
+
return {
|
|
5512
|
+
data: {
|
|
5513
|
+
type: Modules.StripeCouponCode.name,
|
|
5514
|
+
id: data.id,
|
|
5515
|
+
attributes
|
|
5516
|
+
}
|
|
5517
|
+
};
|
|
5518
|
+
}
|
|
5519
|
+
}, _class19);
|
|
5520
|
+
|
|
5521
|
+
// src/features/billing/stripe-coupon/data/stripe-coupon-code.fields.ts
|
|
5522
|
+
var StripeCouponCodeFields = /* @__PURE__ */ ((StripeCouponCodeFields2) => {
|
|
5523
|
+
StripeCouponCodeFields2["code"] = "code";
|
|
5524
|
+
StripeCouponCodeFields2["places"] = "places";
|
|
5525
|
+
StripeCouponCodeFields2["expiresAt"] = "expiresAt";
|
|
5526
|
+
StripeCouponCodeFields2["automatic"] = "automatic";
|
|
5527
|
+
StripeCouponCodeFields2["status"] = "status";
|
|
5528
|
+
StripeCouponCodeFields2["actions"] = "actions";
|
|
5529
|
+
return StripeCouponCodeFields2;
|
|
5530
|
+
})(StripeCouponCodeFields || {});
|
|
5531
|
+
|
|
5532
|
+
// src/features/billing/stripe-coupon/stripe-coupon-code.module.ts
|
|
5533
|
+
var STRIPE_COUPON_CODE_AUTOMATIC_SEGMENT = "automatic";
|
|
5534
|
+
var StripeCouponCodeModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
|
|
5535
|
+
name: "stripe-coupon-codes",
|
|
5536
|
+
// Codes are managed on their coupon's page.
|
|
5537
|
+
pageUrl: "/administration/coupons",
|
|
5538
|
+
model: StripeCouponCode,
|
|
5539
|
+
moduleId: "85feb4c7-ff22-416a-b856-8dafcf28ff26"
|
|
5540
|
+
}), "StripeCouponCodeModule");
|
|
5541
|
+
|
|
5542
|
+
// src/features/billing/stripe-coupon/data/stripe-coupon-code.service.ts
|
|
5543
|
+
var StripeCouponCodeService = class extends AbstractService {
|
|
5544
|
+
static {
|
|
5545
|
+
_chunk7QVYU63Ejs.__name.call(void 0, this, "StripeCouponCodeService");
|
|
5546
|
+
}
|
|
5547
|
+
/**
|
|
5548
|
+
* List the codes of a coupon (admin)
|
|
5549
|
+
*/
|
|
5550
|
+
static async listByCoupon(params) {
|
|
5551
|
+
const endpoint = new EndpointCreator({
|
|
5552
|
+
endpoint: Modules.StripeCoupon,
|
|
5553
|
+
id: params.couponId,
|
|
5554
|
+
childEndpoint: Modules.StripeCouponCode
|
|
5555
|
+
});
|
|
5556
|
+
return this.callApi({
|
|
5557
|
+
type: Modules.StripeCouponCode,
|
|
5558
|
+
method: "GET" /* GET */,
|
|
5559
|
+
endpoint: endpoint.generate(),
|
|
5560
|
+
next: params.next,
|
|
5561
|
+
previous: params.prev
|
|
5562
|
+
});
|
|
5563
|
+
}
|
|
5564
|
+
/**
|
|
5565
|
+
* Create a code on an existing coupon (admin)
|
|
5566
|
+
*/
|
|
5567
|
+
static async createCode(params) {
|
|
5568
|
+
const endpoint = new EndpointCreator({
|
|
5569
|
+
endpoint: Modules.StripeCouponCode
|
|
5570
|
+
});
|
|
5571
|
+
return this.callApi({
|
|
5572
|
+
type: Modules.StripeCouponCode,
|
|
5573
|
+
method: "POST" /* POST */,
|
|
5574
|
+
endpoint: endpoint.generate(),
|
|
5575
|
+
input: params
|
|
5576
|
+
});
|
|
5577
|
+
}
|
|
5578
|
+
/**
|
|
5579
|
+
* Switch "Apply automatically" and / or deactivate / reactivate a code (admin)
|
|
5580
|
+
*/
|
|
5581
|
+
static async updateFlags(params) {
|
|
5582
|
+
const endpoint = new EndpointCreator({
|
|
5583
|
+
endpoint: Modules.StripeCouponCode,
|
|
5584
|
+
id: params.id
|
|
5585
|
+
});
|
|
5586
|
+
return this.callApi({
|
|
5587
|
+
type: Modules.StripeCouponCode,
|
|
5588
|
+
method: "PATCH" /* PATCH */,
|
|
5589
|
+
endpoint: endpoint.generate(),
|
|
5590
|
+
input: new StripeCouponCode().createFlagsJsonApi(params),
|
|
5591
|
+
overridesJsonApiCreation: true
|
|
5592
|
+
});
|
|
5593
|
+
}
|
|
5594
|
+
/**
|
|
5595
|
+
* The code the server would apply automatically for this price at a first
|
|
5596
|
+
* payment, or null when none applies (logged-in company administrator)
|
|
5597
|
+
*/
|
|
5598
|
+
static async findAutomatic(params) {
|
|
5599
|
+
const endpoint = new EndpointCreator({
|
|
5600
|
+
endpoint: Modules.StripeCouponCode,
|
|
5601
|
+
id: STRIPE_COUPON_CODE_AUTOMATIC_SEGMENT
|
|
5602
|
+
});
|
|
5603
|
+
endpoint.addAdditionalParam("priceId", params.priceId);
|
|
5604
|
+
const codes = await this.callApi({
|
|
5605
|
+
type: Modules.StripeCouponCode,
|
|
5606
|
+
method: "GET" /* GET */,
|
|
5607
|
+
endpoint: endpoint.generate(),
|
|
5608
|
+
// A failed lookup must reach the wizard, which then refuses to show full price as the truth
|
|
5609
|
+
suppressGlobalError: true
|
|
5610
|
+
});
|
|
5611
|
+
return _nullishCoalesce(_optionalChain([codes, 'optionalAccess', _118 => _118[0]]), () => ( null));
|
|
5612
|
+
}
|
|
5613
|
+
};
|
|
5614
|
+
|
|
5615
|
+
// src/features/billing/stripe-coupon/data/stripe-coupon-offer.ts
|
|
5616
|
+
var StripeCouponOffer = (_class20 = class extends AbstractApiData {constructor(...args17) { super(...args17); _class20.prototype.__init45.call(this);_class20.prototype.__init46.call(this); }
|
|
5617
|
+
static {
|
|
5618
|
+
_chunk7QVYU63Ejs.__name.call(void 0, this, "StripeCouponOffer");
|
|
5619
|
+
}
|
|
5620
|
+
|
|
5621
|
+
|
|
5622
|
+
|
|
5623
|
+
|
|
5624
|
+
|
|
5625
|
+
|
|
5626
|
+
__init45() {this._placesLeft = 0}
|
|
5627
|
+
__init46() {this._placesTotal = 0}
|
|
5628
|
+
get discountType() {
|
|
5629
|
+
if (!this._discountType) throw new Error("discountType is not defined");
|
|
5630
|
+
return this._discountType;
|
|
5631
|
+
}
|
|
5632
|
+
get percentOff() {
|
|
5633
|
+
return this._percentOff;
|
|
5634
|
+
}
|
|
5635
|
+
get amountOff() {
|
|
5636
|
+
return this._amountOff;
|
|
5637
|
+
}
|
|
5638
|
+
get currency() {
|
|
5639
|
+
return this._currency;
|
|
5640
|
+
}
|
|
5641
|
+
get duration() {
|
|
5642
|
+
if (!this._duration) throw new Error("duration is not defined");
|
|
5643
|
+
return this._duration;
|
|
5644
|
+
}
|
|
5645
|
+
get durationInMonths() {
|
|
5646
|
+
return this._durationInMonths;
|
|
5647
|
+
}
|
|
5648
|
+
get placesLeft() {
|
|
5649
|
+
return this._placesLeft;
|
|
5650
|
+
}
|
|
5651
|
+
get placesTotal() {
|
|
5652
|
+
return this._placesTotal;
|
|
5653
|
+
}
|
|
5654
|
+
rehydrate(data) {
|
|
5655
|
+
super.rehydrate(data);
|
|
5656
|
+
const attributes = data.jsonApi.attributes;
|
|
5657
|
+
this._discountType = attributes.discountType;
|
|
5658
|
+
this._percentOff = _nullishCoalesce(attributes.percentOff, () => ( void 0));
|
|
5659
|
+
this._amountOff = _nullishCoalesce(attributes.amountOff, () => ( void 0));
|
|
5660
|
+
this._currency = _nullishCoalesce(attributes.currency, () => ( void 0));
|
|
5661
|
+
this._duration = attributes.duration;
|
|
5662
|
+
this._durationInMonths = _nullishCoalesce(attributes.durationInMonths, () => ( void 0));
|
|
5663
|
+
this._placesLeft = _nullishCoalesce(attributes.placesLeft, () => ( 0));
|
|
5664
|
+
this._placesTotal = _nullishCoalesce(attributes.placesTotal, () => ( 0));
|
|
5665
|
+
return this;
|
|
5666
|
+
}
|
|
5667
|
+
createJsonApi(_data) {
|
|
5668
|
+
throw new Error("StripeCouponOffer is declared by the API and is read-only");
|
|
5669
|
+
}
|
|
5670
|
+
}, _class20);
|
|
5671
|
+
|
|
5672
|
+
// src/features/billing/stripe-coupon/utils/coupon-places.ts
|
|
5673
|
+
function couponPlacesLeft(code, coupon) {
|
|
5674
|
+
const remaining = [code, coupon].filter((item) => typeof item.maxRedemptions === "number").map((item) => Math.max(0, item.maxRedemptions - (_nullishCoalesce(item.timesRedeemed, () => ( 0)))));
|
|
5675
|
+
return remaining.length === 0 ? null : Math.min(...remaining);
|
|
5676
|
+
}
|
|
5677
|
+
_chunk7QVYU63Ejs.__name.call(void 0, couponPlacesLeft, "couponPlacesLeft");
|
|
5678
|
+
function couponPlacesTotal(code, coupon) {
|
|
5679
|
+
const limits = [code.maxRedemptions, coupon.maxRedemptions].filter(
|
|
5680
|
+
(limit) => typeof limit === "number"
|
|
5681
|
+
);
|
|
5682
|
+
return limits.length === 0 ? null : Math.min(...limits);
|
|
5683
|
+
}
|
|
5684
|
+
_chunk7QVYU63Ejs.__name.call(void 0, couponPlacesTotal, "couponPlacesTotal");
|
|
5685
|
+
|
|
5686
|
+
// src/features/billing/components/utils/format-options.ts
|
|
5687
|
+
var DEFAULT_BILLING_LOCALE = "en-US";
|
|
5688
|
+
|
|
5689
|
+
// src/features/billing/components/utils/currency.ts
|
|
5690
|
+
function formatIntervalEnglish(price) {
|
|
5691
|
+
if (price.priceType === "one_time" || !price.recurring) {
|
|
5692
|
+
return "one-time";
|
|
5693
|
+
}
|
|
5694
|
+
const { interval, intervalCount } = price.recurring;
|
|
5695
|
+
if (intervalCount === 1) {
|
|
5696
|
+
return `/${interval}`;
|
|
5697
|
+
}
|
|
5698
|
+
const pluralInterval = interval === "day" ? "days" : interval === "week" ? "weeks" : interval === "month" ? "months" : "years";
|
|
5699
|
+
return `/${intervalCount} ${pluralInterval}`;
|
|
5700
|
+
}
|
|
5701
|
+
_chunk7QVYU63Ejs.__name.call(void 0, formatIntervalEnglish, "formatIntervalEnglish");
|
|
5702
|
+
function formatInterval(price, options = {}) {
|
|
5703
|
+
const { t } = options;
|
|
5704
|
+
if (!t) return formatIntervalEnglish(price);
|
|
5705
|
+
if (price.priceType === "one_time" || !price.recurring) {
|
|
5706
|
+
return t("billing.ui.interval.one_time");
|
|
5707
|
+
}
|
|
5708
|
+
const { interval, intervalCount } = price.recurring;
|
|
5709
|
+
if (intervalCount === 1) {
|
|
5710
|
+
switch (interval) {
|
|
5711
|
+
case "day":
|
|
5712
|
+
return t("billing.ui.interval.per_day");
|
|
5713
|
+
case "week":
|
|
5714
|
+
return t("billing.ui.interval.per_week");
|
|
5715
|
+
case "month":
|
|
5716
|
+
return t("billing.ui.interval.per_month");
|
|
5717
|
+
default:
|
|
5718
|
+
return t("billing.ui.interval.per_year");
|
|
5719
|
+
}
|
|
5720
|
+
}
|
|
5721
|
+
switch (interval) {
|
|
5722
|
+
case "day":
|
|
5723
|
+
return t("billing.ui.interval.per_days", { count: intervalCount });
|
|
5724
|
+
case "week":
|
|
5725
|
+
return t("billing.ui.interval.per_weeks", { count: intervalCount });
|
|
5726
|
+
case "month":
|
|
5727
|
+
return t("billing.ui.interval.per_months", { count: intervalCount });
|
|
5728
|
+
default:
|
|
5729
|
+
return t("billing.ui.interval.per_years", { count: intervalCount });
|
|
5730
|
+
}
|
|
5731
|
+
}
|
|
5732
|
+
_chunk7QVYU63Ejs.__name.call(void 0, formatInterval, "formatInterval");
|
|
5733
|
+
function formatCurrency(amount, currency2, options = {}) {
|
|
5734
|
+
const { locale } = options;
|
|
5735
|
+
if (amount === void 0 && !locale) return "$0.00";
|
|
5736
|
+
const dollars = (_nullishCoalesce(amount, () => ( 0))) / 100;
|
|
5737
|
+
try {
|
|
5738
|
+
return new Intl.NumberFormat(_nullishCoalesce(locale, () => ( DEFAULT_BILLING_LOCALE)), {
|
|
5739
|
+
style: "currency",
|
|
5740
|
+
currency: currency2.toUpperCase(),
|
|
5741
|
+
minimumFractionDigits: 2,
|
|
5742
|
+
maximumFractionDigits: 2
|
|
5743
|
+
}).format(dollars);
|
|
5744
|
+
} catch (error) {
|
|
5745
|
+
console.error("Error formatting currency:", error);
|
|
5746
|
+
return `$${dollars.toFixed(2)}`;
|
|
5747
|
+
}
|
|
5748
|
+
}
|
|
5749
|
+
_chunk7QVYU63Ejs.__name.call(void 0, formatCurrency, "formatCurrency");
|
|
5750
|
+
function formatFixed(value, locale, digits) {
|
|
5751
|
+
return new Intl.NumberFormat(_nullishCoalesce(locale, () => ( DEFAULT_BILLING_LOCALE)), {
|
|
5752
|
+
minimumFractionDigits: digits,
|
|
5753
|
+
maximumFractionDigits: digits,
|
|
5754
|
+
useGrouping: false
|
|
5755
|
+
}).format(value);
|
|
5756
|
+
}
|
|
5757
|
+
_chunk7QVYU63Ejs.__name.call(void 0, formatFixed, "formatFixed");
|
|
5758
|
+
|
|
5759
|
+
// src/features/billing/stripe-coupon/utils/format-coupon-discount.ts
|
|
5760
|
+
function formatCouponDiscount(coupon, t, fmt = {}) {
|
|
5761
|
+
const amount = coupon.discountType === "percent_off" ? t("billing.admin.coupons.discount.percent", { value: String(_nullishCoalesce(coupon.percentOff, () => ( 0))) }) : t("billing.admin.coupons.discount.amount", {
|
|
5762
|
+
amount: formatCurrency(coupon.amountOff, _nullishCoalesce(coupon.currency, () => ( "eur")), fmt)
|
|
5763
|
+
});
|
|
5764
|
+
const duration = coupon.duration === "repeating" ? t("billing.admin.coupons.discount.repeating", { months: String(_nullishCoalesce(coupon.durationInMonths, () => ( 0))) }) : coupon.duration === "once" ? t("billing.admin.coupons.discount.once") : t("billing.admin.coupons.discount.forever");
|
|
5765
|
+
return `${amount} ${duration}`;
|
|
5766
|
+
}
|
|
5767
|
+
_chunk7QVYU63Ejs.__name.call(void 0, formatCouponDiscount, "formatCouponDiscount");
|
|
5768
|
+
|
|
5769
|
+
// src/features/billing/stripe-coupon/utils/to-promotion-code-result.ts
|
|
5770
|
+
function toPromotionCodeResult(code) {
|
|
5771
|
+
const coupon = code.coupon;
|
|
5772
|
+
const discountType = _optionalChain([coupon, 'optionalAccess', _119 => _119.discountType]);
|
|
5773
|
+
return {
|
|
5774
|
+
valid: true,
|
|
5775
|
+
automatic: true,
|
|
5776
|
+
promotionCodeId: code.stripePromotionCodeId,
|
|
5777
|
+
code: code.code,
|
|
5778
|
+
discountType,
|
|
5779
|
+
discountValue: discountType === "amount_off" ? _optionalChain([coupon, 'optionalAccess', _120 => _120.amountOff]) : _optionalChain([coupon, 'optionalAccess', _121 => _121.percentOff]),
|
|
5780
|
+
currency: discountType === "amount_off" ? _optionalChain([coupon, 'optionalAccess', _122 => _122.currency]) : void 0,
|
|
5781
|
+
duration: _optionalChain([coupon, 'optionalAccess', _123 => _123.duration]),
|
|
5782
|
+
durationInMonths: _optionalChain([coupon, 'optionalAccess', _124 => _124.durationInMonths])
|
|
5783
|
+
};
|
|
5784
|
+
}
|
|
5785
|
+
_chunk7QVYU63Ejs.__name.call(void 0, toPromotionCodeResult, "toPromotionCodeResult");
|
|
5786
|
+
|
|
5787
|
+
// src/features/billing/stripe-coupon/stripe-coupon-offer.module.ts
|
|
5788
|
+
var StripeCouponOfferModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
|
|
5789
|
+
name: "stripe-coupon-offers",
|
|
5790
|
+
pageUrl: "/pricing",
|
|
5791
|
+
model: StripeCouponOffer,
|
|
5792
|
+
moduleId: "6859d6cc-b94c-4cf7-8a02-b71ad59d75d2"
|
|
5793
|
+
}), "StripeCouponOfferModule");
|
|
5794
|
+
|
|
5123
5795
|
// src/features/ai-connection/data/ai-connection.ts
|
|
5124
5796
|
var AiConnection = class extends AbstractApiData {
|
|
5125
5797
|
static {
|
|
@@ -5406,8 +6078,8 @@ var AiConnectionService = class extends AbstractService {
|
|
|
5406
6078
|
});
|
|
5407
6079
|
return {
|
|
5408
6080
|
connections: _nullishCoalesce(data, () => ( [])),
|
|
5409
|
-
providerRegistry: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
5410
|
-
envDefaults: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
6081
|
+
providerRegistry: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _125 => _125.providerRegistry]), () => ( {})),
|
|
6082
|
+
envDefaults: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _126 => _126.envDefaults]), () => ( {}))
|
|
5411
6083
|
};
|
|
5412
6084
|
}
|
|
5413
6085
|
/**
|
|
@@ -5481,7 +6153,7 @@ var AiConnectionModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (f
|
|
|
5481
6153
|
|
|
5482
6154
|
|
|
5483
6155
|
// src/features/company/data/company.ts
|
|
5484
|
-
var Company = (
|
|
6156
|
+
var Company = (_class21 = class extends AbstractApiData {constructor(...args18) { super(...args18); _class21.prototype.__init47.call(this);_class21.prototype.__init48.call(this);_class21.prototype.__init49.call(this);_class21.prototype.__init50.call(this); }
|
|
5485
6157
|
static {
|
|
5486
6158
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "Company");
|
|
5487
6159
|
}
|
|
@@ -5489,10 +6161,10 @@ var Company = (_class18 = class extends AbstractApiData {constructor(...args15)
|
|
|
5489
6161
|
|
|
5490
6162
|
|
|
5491
6163
|
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
6164
|
+
__init47() {this._isActiveSubscription = false}
|
|
6165
|
+
__init48() {this._monthlyCredits = 0}
|
|
6166
|
+
__init49() {this._availableMonthlyCredits = 0}
|
|
6167
|
+
__init50() {this._availableExtraCredits = 0}
|
|
5496
6168
|
|
|
5497
6169
|
|
|
5498
6170
|
|
|
@@ -5643,7 +6315,7 @@ var Company = (_class18 = class extends AbstractApiData {constructor(...args15)
|
|
|
5643
6315
|
}
|
|
5644
6316
|
return response;
|
|
5645
6317
|
}
|
|
5646
|
-
},
|
|
6318
|
+
}, _class21);
|
|
5647
6319
|
|
|
5648
6320
|
// src/features/company/data/company.fields.ts
|
|
5649
6321
|
var CompanyFields = /* @__PURE__ */ ((CompanyFields2) => {
|
|
@@ -5843,8 +6515,8 @@ var ContentService = class extends AbstractService {
|
|
|
5843
6515
|
if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
|
|
5844
6516
|
if (params.search) endpoint.addAdditionalParam("search", params.search);
|
|
5845
6517
|
}
|
|
5846
|
-
if (_optionalChain([Modules, 'access',
|
|
5847
|
-
if (_optionalChain([Modules, 'access',
|
|
6518
|
+
if (_optionalChain([Modules, 'access', _127 => _127.Content, 'access', _128 => _128.inclusions, 'optionalAccess', _129 => _129.lists, 'optionalAccess', _130 => _130.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
|
|
6519
|
+
if (_optionalChain([Modules, 'access', _131 => _131.Content, 'access', _132 => _132.inclusions, 'optionalAccess', _133 => _133.lists, 'optionalAccess', _134 => _134.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
|
|
5848
6520
|
return this.callApi({
|
|
5849
6521
|
type: Modules.Content,
|
|
5850
6522
|
method: "GET" /* GET */,
|
|
@@ -5858,8 +6530,8 @@ var ContentService = class extends AbstractService {
|
|
|
5858
6530
|
id: params.id,
|
|
5859
6531
|
childEndpoint: "relevance"
|
|
5860
6532
|
});
|
|
5861
|
-
if (_optionalChain([Modules, 'access',
|
|
5862
|
-
if (_optionalChain([Modules, 'access',
|
|
6533
|
+
if (_optionalChain([Modules, 'access', _135 => _135.Content, 'access', _136 => _136.inclusions, 'optionalAccess', _137 => _137.lists, 'optionalAccess', _138 => _138.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
|
|
6534
|
+
if (_optionalChain([Modules, 'access', _139 => _139.Content, 'access', _140 => _140.inclusions, 'optionalAccess', _141 => _141.lists, 'optionalAccess', _142 => _142.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
|
|
5863
6535
|
return this.callApi({
|
|
5864
6536
|
type: Modules.Content,
|
|
5865
6537
|
method: "GET" /* GET */,
|
|
@@ -5875,8 +6547,8 @@ var ContentService = class extends AbstractService {
|
|
|
5875
6547
|
});
|
|
5876
6548
|
if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
|
|
5877
6549
|
if (params.search) endpoint.addAdditionalParam("search", params.search);
|
|
5878
|
-
if (_optionalChain([Modules, 'access',
|
|
5879
|
-
if (_optionalChain([Modules, 'access',
|
|
6550
|
+
if (_optionalChain([Modules, 'access', _143 => _143.Content, 'access', _144 => _144.inclusions, 'optionalAccess', _145 => _145.lists, 'optionalAccess', _146 => _146.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
|
|
6551
|
+
if (_optionalChain([Modules, 'access', _147 => _147.Content, 'access', _148 => _148.inclusions, 'optionalAccess', _149 => _149.lists, 'optionalAccess', _150 => _150.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
|
|
5880
6552
|
return this.callApi({
|
|
5881
6553
|
type: Modules.Content,
|
|
5882
6554
|
method: "GET" /* GET */,
|
|
@@ -6069,8 +6741,8 @@ var HowToService = class extends AbstractService {
|
|
|
6069
6741
|
const endpoint = new EndpointCreator({ endpoint: Modules.HowTo });
|
|
6070
6742
|
if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
|
|
6071
6743
|
if (params.search) endpoint.addAdditionalParam("search", params.search);
|
|
6072
|
-
if (_optionalChain([Modules, 'access',
|
|
6073
|
-
if (_optionalChain([Modules, 'access',
|
|
6744
|
+
if (_optionalChain([Modules, 'access', _151 => _151.HowTo, 'access', _152 => _152.inclusions, 'optionalAccess', _153 => _153.lists, 'optionalAccess', _154 => _154.fields])) endpoint.limitToFields(Modules.HowTo.inclusions.lists.fields);
|
|
6745
|
+
if (_optionalChain([Modules, 'access', _155 => _155.HowTo, 'access', _156 => _156.inclusions, 'optionalAccess', _157 => _157.lists, 'optionalAccess', _158 => _158.types])) endpoint.limitToType(Modules.HowTo.inclusions.lists.types);
|
|
6074
6746
|
return this.callApi({
|
|
6075
6747
|
type: Modules.HowTo,
|
|
6076
6748
|
method: "GET" /* GET */,
|
|
@@ -6175,7 +6847,7 @@ var HowToService = class extends AbstractService {
|
|
|
6175
6847
|
|
|
6176
6848
|
|
|
6177
6849
|
// src/features/email-automation/data/EmailAutomation.ts
|
|
6178
|
-
var EmailAutomation = (
|
|
6850
|
+
var EmailAutomation = (_class22 = class extends AbstractApiData {constructor(...args19) { super(...args19); _class22.prototype.__init51.call(this); }
|
|
6179
6851
|
static {
|
|
6180
6852
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "EmailAutomation");
|
|
6181
6853
|
}
|
|
@@ -6183,7 +6855,7 @@ var EmailAutomation = (_class19 = class extends AbstractApiData {constructor(...
|
|
|
6183
6855
|
|
|
6184
6856
|
|
|
6185
6857
|
|
|
6186
|
-
|
|
6858
|
+
__init51() {this._isActive = false}
|
|
6187
6859
|
|
|
6188
6860
|
|
|
6189
6861
|
|
|
@@ -6246,7 +6918,7 @@ var EmailAutomation = (_class19 = class extends AbstractApiData {constructor(...
|
|
|
6246
6918
|
if (data.isActive !== void 0) response.data.attributes.isActive = data.isActive;
|
|
6247
6919
|
return response;
|
|
6248
6920
|
}
|
|
6249
|
-
},
|
|
6921
|
+
}, _class22);
|
|
6250
6922
|
|
|
6251
6923
|
// src/features/email-automation/EmailAutomationModule.ts
|
|
6252
6924
|
var EmailAutomationModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
|
|
@@ -6378,13 +7050,13 @@ var EmailAutomationStepModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
|
|
|
6378
7050
|
|
|
6379
7051
|
// src/features/email-automation/data/EmailAutomationEnrollment.ts
|
|
6380
7052
|
var EMAIL_AUTOMATION_UNSUBSCRIBE_TYPE = "email-automation-unsubscribes";
|
|
6381
|
-
var EmailAutomationEnrollment = (
|
|
7053
|
+
var EmailAutomationEnrollment = (_class23 = class extends AbstractApiData {constructor(...args20) { super(...args20); _class23.prototype.__init52.call(this); }
|
|
6382
7054
|
static {
|
|
6383
7055
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "EmailAutomationEnrollment");
|
|
6384
7056
|
}
|
|
6385
7057
|
|
|
6386
7058
|
|
|
6387
|
-
|
|
7059
|
+
__init52() {this._status = "active"}
|
|
6388
7060
|
|
|
6389
7061
|
|
|
6390
7062
|
|
|
@@ -6458,7 +7130,7 @@ var EmailAutomationEnrollment = (_class20 = class extends AbstractApiData {const
|
|
|
6458
7130
|
}
|
|
6459
7131
|
};
|
|
6460
7132
|
}
|
|
6461
|
-
},
|
|
7133
|
+
}, _class23);
|
|
6462
7134
|
|
|
6463
7135
|
// src/features/email-automation/EmailAutomationEnrollmentModule.ts
|
|
6464
7136
|
var EmailAutomationEnrollmentModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
|
|
@@ -6510,9 +7182,9 @@ var EmailAutomationService = class extends AbstractService {
|
|
|
6510
7182
|
}
|
|
6511
7183
|
static async findMany(params = {}) {
|
|
6512
7184
|
const endpoint = new EndpointCreator({ endpoint: Modules.EmailAutomation });
|
|
6513
|
-
if (_optionalChain([Modules, 'access',
|
|
7185
|
+
if (_optionalChain([Modules, 'access', _159 => _159.EmailAutomation, 'access', _160 => _160.inclusions, 'optionalAccess', _161 => _161.lists, 'optionalAccess', _162 => _162.fields]))
|
|
6514
7186
|
endpoint.limitToFields(Modules.EmailAutomation.inclusions.lists.fields);
|
|
6515
|
-
if (_optionalChain([Modules, 'access',
|
|
7187
|
+
if (_optionalChain([Modules, 'access', _163 => _163.EmailAutomation, 'access', _164 => _164.inclusions, 'optionalAccess', _165 => _165.lists, 'optionalAccess', _166 => _166.types]))
|
|
6516
7188
|
endpoint.limitToType(Modules.EmailAutomation.inclusions.lists.types);
|
|
6517
7189
|
return this.callApi({
|
|
6518
7190
|
type: Modules.EmailAutomation,
|
|
@@ -7112,7 +7784,7 @@ var BlogSettings = class extends AbstractApiData {
|
|
|
7112
7784
|
}
|
|
7113
7785
|
rehydrate(data) {
|
|
7114
7786
|
super.rehydrate(data);
|
|
7115
|
-
const listLayout = _optionalChain([data, 'access',
|
|
7787
|
+
const listLayout = _optionalChain([data, 'access', _167 => _167.jsonApi, 'access', _168 => _168.attributes, 'optionalAccess', _169 => _169.listLayout]);
|
|
7116
7788
|
this._listLayout = BLOG_LIST_LAYOUTS.includes(listLayout) ? listLayout : void 0;
|
|
7117
7789
|
return this;
|
|
7118
7790
|
}
|
|
@@ -7609,7 +8281,7 @@ var HandbookSectionModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
|
|
|
7609
8281
|
|
|
7610
8282
|
// src/features/handbook/data/HandbookThreadMessage.ts
|
|
7611
8283
|
|
|
7612
|
-
var HandbookThreadMessage = (
|
|
8284
|
+
var HandbookThreadMessage = (_class24 = class _HandbookThreadMessage extends AbstractApiData {constructor(...args21) { super(...args21); _class24.prototype.__init53.call(this); }
|
|
7613
8285
|
static {
|
|
7614
8286
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "HandbookThreadMessage");
|
|
7615
8287
|
}
|
|
@@ -7617,7 +8289,7 @@ var HandbookThreadMessage = (_class21 = class _HandbookThreadMessage extends Abs
|
|
|
7617
8289
|
|
|
7618
8290
|
|
|
7619
8291
|
|
|
7620
|
-
|
|
8292
|
+
__init53() {this._isOptimistic = false}
|
|
7621
8293
|
get role() {
|
|
7622
8294
|
return _nullishCoalesce(this._role, () => ( "assistant"));
|
|
7623
8295
|
}
|
|
@@ -7715,7 +8387,7 @@ var HandbookThreadMessage = (_class21 = class _HandbookThreadMessage extends Abs
|
|
|
7715
8387
|
message._isOptimistic = _nullishCoalesce(params.isOptimistic, () => ( false));
|
|
7716
8388
|
return message;
|
|
7717
8389
|
}
|
|
7718
|
-
},
|
|
8390
|
+
}, _class24);
|
|
7719
8391
|
|
|
7720
8392
|
// src/features/handbook/HandbookThreadMessageModule.ts
|
|
7721
8393
|
var HandbookThreadMessageModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
|
|
@@ -7769,7 +8441,7 @@ var HandbookThread = class extends AbstractApiData {
|
|
|
7769
8441
|
super.rehydrate(data);
|
|
7770
8442
|
const attributes = _nullishCoalesce(data.jsonApi.attributes, () => ( {}));
|
|
7771
8443
|
this._title = attributes.title;
|
|
7772
|
-
const fromMeta = _optionalChain([data, 'access',
|
|
8444
|
+
const fromMeta = _optionalChain([data, 'access', _170 => _170.jsonApi, 'access', _171 => _171.meta, 'optionalAccess', _172 => _172.messageCount]);
|
|
7773
8445
|
this._messageCount = typeof fromMeta === "number" ? fromMeta : typeof attributes.messageCount === "number" ? attributes.messageCount : 0;
|
|
7774
8446
|
const messages = this._readIncluded(
|
|
7775
8447
|
data,
|
|
@@ -7892,9 +8564,9 @@ var HandbookPageService = class extends AbstractService {
|
|
|
7892
8564
|
const endpoint = new EndpointCreator({ endpoint: Modules.HandbookPage });
|
|
7893
8565
|
if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
|
|
7894
8566
|
if (params.search) endpoint.addAdditionalParam("search", params.search);
|
|
7895
|
-
if (_optionalChain([Modules, 'access',
|
|
8567
|
+
if (_optionalChain([Modules, 'access', _173 => _173.HandbookPage, 'access', _174 => _174.inclusions, 'optionalAccess', _175 => _175.lists, 'optionalAccess', _176 => _176.fields]))
|
|
7896
8568
|
endpoint.limitToFields(Modules.HandbookPage.inclusions.lists.fields);
|
|
7897
|
-
if (_optionalChain([Modules, 'access',
|
|
8569
|
+
if (_optionalChain([Modules, 'access', _177 => _177.HandbookPage, 'access', _178 => _178.inclusions, 'optionalAccess', _179 => _179.lists, 'optionalAccess', _180 => _180.types]))
|
|
7898
8570
|
endpoint.limitToType(Modules.HandbookPage.inclusions.lists.types);
|
|
7899
8571
|
return this.callApi({
|
|
7900
8572
|
type: Modules.HandbookPage,
|
|
@@ -7943,7 +8615,7 @@ var HandbookSectionService = class extends AbstractService {
|
|
|
7943
8615
|
static async findMany() {
|
|
7944
8616
|
const endpoint = new EndpointCreator({ endpoint: Modules.HandbookSection });
|
|
7945
8617
|
endpoint.addAdditionalParam("fetchAll", "true");
|
|
7946
|
-
if (_optionalChain([Modules, 'access',
|
|
8618
|
+
if (_optionalChain([Modules, 'access', _181 => _181.HandbookSection, 'access', _182 => _182.inclusions, 'optionalAccess', _183 => _183.lists, 'optionalAccess', _184 => _184.fields]))
|
|
7947
8619
|
endpoint.limitToFields(Modules.HandbookSection.inclusions.lists.fields);
|
|
7948
8620
|
return this.callApi({
|
|
7949
8621
|
type: Modules.HandbookSection,
|
|
@@ -8000,9 +8672,9 @@ var HandbookThreadService = class extends AbstractService {
|
|
|
8000
8672
|
const endpoint = new EndpointCreator({ endpoint: Modules.HandbookThread });
|
|
8001
8673
|
if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
|
|
8002
8674
|
if (params.search) endpoint.addAdditionalParam("search", params.search);
|
|
8003
|
-
if (_optionalChain([Modules, 'access',
|
|
8675
|
+
if (_optionalChain([Modules, 'access', _185 => _185.HandbookThread, 'access', _186 => _186.inclusions, 'optionalAccess', _187 => _187.lists, 'optionalAccess', _188 => _188.fields]))
|
|
8004
8676
|
endpoint.limitToFields(Modules.HandbookThread.inclusions.lists.fields);
|
|
8005
|
-
if (_optionalChain([Modules, 'access',
|
|
8677
|
+
if (_optionalChain([Modules, 'access', _189 => _189.HandbookThread, 'access', _190 => _190.inclusions, 'optionalAccess', _191 => _191.lists, 'optionalAccess', _192 => _192.types]))
|
|
8006
8678
|
endpoint.limitToType(Modules.HandbookThread.inclusions.lists.types);
|
|
8007
8679
|
return this.callApi({
|
|
8008
8680
|
type: Modules.HandbookThread,
|
|
@@ -8089,15 +8761,15 @@ var Assistant = class extends AbstractApiData {
|
|
|
8089
8761
|
}
|
|
8090
8762
|
rehydrate(data) {
|
|
8091
8763
|
super.rehydrate(data);
|
|
8092
|
-
this._title = _optionalChain([data, 'access',
|
|
8093
|
-
this._engine = _optionalChain([data, 'access',
|
|
8094
|
-
const fromMeta = _optionalChain([data, 'access',
|
|
8095
|
-
const fromAttrs = _optionalChain([data, 'access',
|
|
8764
|
+
this._title = _optionalChain([data, 'access', _193 => _193.jsonApi, 'access', _194 => _194.attributes, 'optionalAccess', _195 => _195.title]);
|
|
8765
|
+
this._engine = _optionalChain([data, 'access', _196 => _196.jsonApi, 'access', _197 => _197.attributes, 'optionalAccess', _198 => _198.engine]);
|
|
8766
|
+
const fromMeta = _optionalChain([data, 'access', _199 => _199.jsonApi, 'access', _200 => _200.meta, 'optionalAccess', _201 => _201.messageCount]);
|
|
8767
|
+
const fromAttrs = _optionalChain([data, 'access', _202 => _202.jsonApi, 'access', _203 => _203.attributes, 'optionalAccess', _204 => _204.messageCount]);
|
|
8096
8768
|
this._messageCount = typeof fromMeta === "number" ? fromMeta : typeof fromAttrs === "number" ? fromAttrs : 0;
|
|
8097
|
-
const contentLinkage = _optionalChain([data, 'access',
|
|
8769
|
+
const contentLinkage = _optionalChain([data, 'access', _205 => _205.jsonApi, 'access', _206 => _206.relationships, 'optionalAccess', _207 => _207.content, 'optionalAccess', _208 => _208.data]);
|
|
8098
8770
|
const boundContent = Array.isArray(contentLinkage) ? contentLinkage[0] : contentLinkage;
|
|
8099
|
-
this._boundContentType = _optionalChain([boundContent, 'optionalAccess',
|
|
8100
|
-
this._boundContentId = _optionalChain([boundContent, 'optionalAccess',
|
|
8771
|
+
this._boundContentType = _optionalChain([boundContent, 'optionalAccess', _209 => _209.type]);
|
|
8772
|
+
this._boundContentId = _optionalChain([boundContent, 'optionalAccess', _210 => _210.id]);
|
|
8101
8773
|
return this;
|
|
8102
8774
|
}
|
|
8103
8775
|
createJsonApi(data) {
|
|
@@ -8155,7 +8827,7 @@ function resolveReferenceableModules() {
|
|
|
8155
8827
|
_chunk7QVYU63Ejs.__name.call(void 0, resolveReferenceableModules, "resolveReferenceableModules");
|
|
8156
8828
|
|
|
8157
8829
|
// src/features/assistant-message/data/AssistantMessage.ts
|
|
8158
|
-
var AssistantMessage = (
|
|
8830
|
+
var AssistantMessage = (_class25 = class _AssistantMessage extends AbstractApiData {constructor(...args22) { super(...args22); _class25.prototype.__init54.call(this); }
|
|
8159
8831
|
static {
|
|
8160
8832
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "AssistantMessage");
|
|
8161
8833
|
}
|
|
@@ -8167,7 +8839,7 @@ var AssistantMessage = (_class22 = class _AssistantMessage extends AbstractApiDa
|
|
|
8167
8839
|
|
|
8168
8840
|
|
|
8169
8841
|
|
|
8170
|
-
|
|
8842
|
+
__init54() {this._isOptimistic = false}
|
|
8171
8843
|
|
|
8172
8844
|
|
|
8173
8845
|
get role() {
|
|
@@ -8213,11 +8885,11 @@ var AssistantMessage = (_class22 = class _AssistantMessage extends AbstractApiDa
|
|
|
8213
8885
|
this._inputTokens = attrs.inputTokens;
|
|
8214
8886
|
this._outputTokens = attrs.outputTokens;
|
|
8215
8887
|
this._messageType = attrs.messageType;
|
|
8216
|
-
const actionRelationship = _optionalChain([data, 'access',
|
|
8217
|
-
this._actionId = Array.isArray(actionRelationship) ? _optionalChain([actionRelationship, 'access',
|
|
8888
|
+
const actionRelationship = _optionalChain([data, 'access', _211 => _211.jsonApi, 'access', _212 => _212.relationships, 'optionalAccess', _213 => _213.action, 'optionalAccess', _214 => _214.data]);
|
|
8889
|
+
this._actionId = Array.isArray(actionRelationship) ? _optionalChain([actionRelationship, 'access', _215 => _215[0], 'optionalAccess', _216 => _216.id]) : _optionalChain([actionRelationship, 'optionalAccess', _217 => _217.id]);
|
|
8218
8890
|
const refs = this._readIncludedPolymorphic(data, "references", resolveReferenceableModules());
|
|
8219
8891
|
this._references = Array.isArray(refs) ? refs : refs ? [refs] : [];
|
|
8220
|
-
if (_optionalChain([data, 'access',
|
|
8892
|
+
if (_optionalChain([data, 'access', _218 => _218.jsonApi, 'access', _219 => _219.relationships, 'optionalAccess', _220 => _220.citations, 'optionalAccess', _221 => _221.data])) {
|
|
8221
8893
|
const citations = this._readIncludedWithMeta(
|
|
8222
8894
|
data,
|
|
8223
8895
|
"citations",
|
|
@@ -8304,7 +8976,7 @@ var AssistantMessage = (_class22 = class _AssistantMessage extends AbstractApiDa
|
|
|
8304
8976
|
msg._isOptimistic = _nullishCoalesce(params.isOptimistic, () => ( false));
|
|
8305
8977
|
return msg;
|
|
8306
8978
|
}
|
|
8307
|
-
},
|
|
8979
|
+
}, _class25);
|
|
8308
8980
|
|
|
8309
8981
|
// src/features/assistant/data/AssistantService.ts
|
|
8310
8982
|
var AssistantService = class extends AbstractService {
|
|
@@ -8473,9 +9145,9 @@ var AssistantMessageService = class extends AbstractService {
|
|
|
8473
9145
|
id: params.assistantId,
|
|
8474
9146
|
childEndpoint: Modules.AssistantMessage
|
|
8475
9147
|
});
|
|
8476
|
-
if (_optionalChain([Modules, 'access',
|
|
9148
|
+
if (_optionalChain([Modules, 'access', _222 => _222.AssistantMessage, 'access', _223 => _223.inclusions, 'optionalAccess', _224 => _224.lists, 'optionalAccess', _225 => _225.fields]))
|
|
8477
9149
|
endpoint.limitToFields(Modules.AssistantMessage.inclusions.lists.fields);
|
|
8478
|
-
if (_optionalChain([Modules, 'access',
|
|
9150
|
+
if (_optionalChain([Modules, 'access', _226 => _226.AssistantMessage, 'access', _227 => _227.inclusions, 'optionalAccess', _228 => _228.lists, 'optionalAccess', _229 => _229.types]))
|
|
8479
9151
|
endpoint.limitToType(Modules.AssistantMessage.inclusions.lists.types);
|
|
8480
9152
|
return this.callApi({
|
|
8481
9153
|
type: Modules.AssistantMessage,
|
|
@@ -8489,9 +9161,9 @@ var AssistantMessageService = class extends AbstractService {
|
|
|
8489
9161
|
endpoint: Modules.AssistantMessage,
|
|
8490
9162
|
id: params.id
|
|
8491
9163
|
});
|
|
8492
|
-
if (_optionalChain([Modules, 'access',
|
|
9164
|
+
if (_optionalChain([Modules, 'access', _230 => _230.AssistantMessage, 'access', _231 => _231.inclusions, 'optionalAccess', _232 => _232.lists, 'optionalAccess', _233 => _233.fields]))
|
|
8493
9165
|
endpoint.limitToFields(Modules.AssistantMessage.inclusions.lists.fields);
|
|
8494
|
-
if (_optionalChain([Modules, 'access',
|
|
9166
|
+
if (_optionalChain([Modules, 'access', _234 => _234.AssistantMessage, 'access', _235 => _235.inclusions, 'optionalAccess', _236 => _236.lists, 'optionalAccess', _237 => _237.types]))
|
|
8495
9167
|
endpoint.limitToType(Modules.AssistantMessage.inclusions.lists.types);
|
|
8496
9168
|
return this.callApi({
|
|
8497
9169
|
type: Modules.AssistantMessage,
|
|
@@ -8697,13 +9369,13 @@ var ChunkModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory)
|
|
|
8697
9369
|
}), "ChunkModule");
|
|
8698
9370
|
|
|
8699
9371
|
// src/features/feature/data/feature.ts
|
|
8700
|
-
var Feature = (
|
|
9372
|
+
var Feature = (_class26 = class extends AbstractApiData {constructor(...args23) { super(...args23); _class26.prototype.__init55.call(this); }
|
|
8701
9373
|
static {
|
|
8702
9374
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "Feature");
|
|
8703
9375
|
}
|
|
8704
9376
|
|
|
8705
9377
|
|
|
8706
|
-
|
|
9378
|
+
__init55() {this._modules = []}
|
|
8707
9379
|
get name() {
|
|
8708
9380
|
return _nullishCoalesce(this._name, () => ( ""));
|
|
8709
9381
|
}
|
|
@@ -8720,7 +9392,7 @@ var Feature = (_class23 = class extends AbstractApiData {constructor(...args20)
|
|
|
8720
9392
|
this._modules = this._readIncluded(data, `modules`, Modules.Module);
|
|
8721
9393
|
return this;
|
|
8722
9394
|
}
|
|
8723
|
-
},
|
|
9395
|
+
}, _class26);
|
|
8724
9396
|
|
|
8725
9397
|
// src/features/feature/data/feature.service.ts
|
|
8726
9398
|
var FeatureService = class extends AbstractService {
|
|
@@ -8816,10 +9488,10 @@ var Notification = class extends AbstractApiData {
|
|
|
8816
9488
|
this._message = data.jsonApi.attributes.message;
|
|
8817
9489
|
this._actionUrl = data.jsonApi.attributes.actionUrl;
|
|
8818
9490
|
const rels = _nullishCoalesce(data.jsonApi.relationships, () => ( {}));
|
|
8819
|
-
const actorType = _optionalChain([rels, 'access',
|
|
9491
|
+
const actorType = _optionalChain([rels, 'access', _238 => _238.actor, 'optionalAccess', _239 => _239.data, 'optionalAccess', _240 => _240.type]);
|
|
8820
9492
|
this._actor = actorType ? this._readIncluded(data, "actor", Modules.findByName(actorType)) : void 0;
|
|
8821
|
-
const subjectName = Object.keys(rels).find((name) => name !== "actor" && _optionalChain([rels, 'access',
|
|
8822
|
-
const subjectType = subjectName ? _optionalChain([rels, 'access',
|
|
9493
|
+
const subjectName = Object.keys(rels).find((name) => name !== "actor" && _optionalChain([rels, 'access', _241 => _241[name], 'optionalAccess', _242 => _242.data, 'optionalAccess', _243 => _243.type]));
|
|
9494
|
+
const subjectType = subjectName ? _optionalChain([rels, 'access', _244 => _244[subjectName], 'optionalAccess', _245 => _245.data, 'optionalAccess', _246 => _246.type]) : void 0;
|
|
8823
9495
|
this._subject = subjectName && subjectType ? this._readIncluded(data, subjectName, Modules.findByName(subjectType)) : void 0;
|
|
8824
9496
|
return this;
|
|
8825
9497
|
}
|
|
@@ -9200,7 +9872,7 @@ var S3Service = class extends AbstractService {
|
|
|
9200
9872
|
};
|
|
9201
9873
|
|
|
9202
9874
|
// src/features/user/data/user.ts
|
|
9203
|
-
var User = (
|
|
9875
|
+
var User = (_class27 = class extends AbstractApiData {constructor(...args24) { super(...args24); _class27.prototype.__init56.call(this);_class27.prototype.__init57.call(this);_class27.prototype.__init58.call(this); }
|
|
9204
9876
|
static {
|
|
9205
9877
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "User");
|
|
9206
9878
|
}
|
|
@@ -9215,12 +9887,12 @@ var User = (_class24 = class extends AbstractApiData {constructor(...args21) { s
|
|
|
9215
9887
|
|
|
9216
9888
|
|
|
9217
9889
|
|
|
9218
|
-
|
|
9890
|
+
__init56() {this._twoFactorEnabled = false}
|
|
9219
9891
|
|
|
9220
9892
|
|
|
9221
|
-
|
|
9893
|
+
__init57() {this._roles = []}
|
|
9222
9894
|
|
|
9223
|
-
|
|
9895
|
+
__init58() {this._modules = []}
|
|
9224
9896
|
get searchResult() {
|
|
9225
9897
|
return _nullishCoalesce(this._name, () => ( ""));
|
|
9226
9898
|
}
|
|
@@ -9336,7 +10008,7 @@ var User = (_class24 = class extends AbstractApiData {constructor(...args21) { s
|
|
|
9336
10008
|
}
|
|
9337
10009
|
return response;
|
|
9338
10010
|
}
|
|
9339
|
-
},
|
|
10011
|
+
}, _class27);
|
|
9340
10012
|
|
|
9341
10013
|
// src/features/user/data/user.fields.ts
|
|
9342
10014
|
var UserFields = /* @__PURE__ */ ((UserFields2) => {
|
|
@@ -9406,8 +10078,8 @@ var UserService = class extends AbstractService {
|
|
|
9406
10078
|
id: params.id,
|
|
9407
10079
|
childEndpoint: "user-relevance"
|
|
9408
10080
|
});
|
|
9409
|
-
if (_optionalChain([Modules, 'access',
|
|
9410
|
-
if (_optionalChain([Modules, 'access',
|
|
10081
|
+
if (_optionalChain([Modules, 'access', _247 => _247.User, 'access', _248 => _248.inclusions, 'optionalAccess', _249 => _249.lists, 'optionalAccess', _250 => _250.fields])) endpoint.limitToFields(Modules.User.inclusions.lists.fields);
|
|
10082
|
+
if (_optionalChain([Modules, 'access', _251 => _251.User, 'access', _252 => _252.inclusions, 'optionalAccess', _253 => _253.lists, 'optionalAccess', _254 => _254.types])) endpoint.limitToType(Modules.User.inclusions.lists.types);
|
|
9411
10083
|
return this.callApi({
|
|
9412
10084
|
type: Modules.User,
|
|
9413
10085
|
method: "GET" /* GET */,
|
|
@@ -9585,18 +10257,18 @@ var UserModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory)
|
|
|
9585
10257
|
}), "UserModule");
|
|
9586
10258
|
|
|
9587
10259
|
// src/features/oauth/data/oauth.ts
|
|
9588
|
-
var OAuthClient = (
|
|
10260
|
+
var OAuthClient = (_class28 = class extends AbstractApiData {constructor(...args25) { super(...args25); _class28.prototype.__init59.call(this);_class28.prototype.__init60.call(this);_class28.prototype.__init61.call(this);_class28.prototype.__init62.call(this);_class28.prototype.__init63.call(this); }
|
|
9589
10261
|
static {
|
|
9590
10262
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "OAuthClient");
|
|
9591
10263
|
}
|
|
9592
10264
|
|
|
9593
10265
|
|
|
9594
10266
|
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
|
|
10267
|
+
__init59() {this._redirectUris = []}
|
|
10268
|
+
__init60() {this._allowedScopes = []}
|
|
10269
|
+
__init61() {this._allowedGrantTypes = []}
|
|
10270
|
+
__init62() {this._isConfidential = true}
|
|
10271
|
+
__init63() {this._isActive = true}
|
|
9600
10272
|
get clientId() {
|
|
9601
10273
|
return _nullishCoalesce(this._clientId, () => ( this.id));
|
|
9602
10274
|
}
|
|
@@ -9679,7 +10351,7 @@ var OAuthClient = (_class25 = class extends AbstractApiData {constructor(...args
|
|
|
9679
10351
|
state: params.state
|
|
9680
10352
|
};
|
|
9681
10353
|
}
|
|
9682
|
-
},
|
|
10354
|
+
}, _class28);
|
|
9683
10355
|
|
|
9684
10356
|
// src/features/oauth/oauth.module.ts
|
|
9685
10357
|
var OAuthModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
|
|
@@ -9704,7 +10376,7 @@ var OAuthService = class extends AbstractService {
|
|
|
9704
10376
|
type: Modules.OAuth,
|
|
9705
10377
|
method: "GET" /* GET */,
|
|
9706
10378
|
endpoint: new EndpointCreator({ endpoint: "oauth/clients" }).generate(),
|
|
9707
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
10379
|
+
next: _optionalChain([params, 'optionalAccess', _255 => _255.next])
|
|
9708
10380
|
});
|
|
9709
10381
|
}
|
|
9710
10382
|
/**
|
|
@@ -9730,7 +10402,7 @@ var OAuthService = class extends AbstractService {
|
|
|
9730
10402
|
});
|
|
9731
10403
|
return {
|
|
9732
10404
|
client: result.data,
|
|
9733
|
-
clientSecret: _optionalChain([result, 'access',
|
|
10405
|
+
clientSecret: _optionalChain([result, 'access', _256 => _256.meta, 'optionalAccess', _257 => _257.clientSecret])
|
|
9734
10406
|
};
|
|
9735
10407
|
}
|
|
9736
10408
|
/**
|
|
@@ -9769,7 +10441,7 @@ var OAuthService = class extends AbstractService {
|
|
|
9769
10441
|
}).generate()
|
|
9770
10442
|
});
|
|
9771
10443
|
return {
|
|
9772
|
-
clientSecret: _optionalChain([result, 'access',
|
|
10444
|
+
clientSecret: _optionalChain([result, 'access', _258 => _258.meta, 'optionalAccess', _259 => _259.clientSecret])
|
|
9773
10445
|
};
|
|
9774
10446
|
}
|
|
9775
10447
|
// ==========================================
|
|
@@ -9806,7 +10478,7 @@ var OAuthService = class extends AbstractService {
|
|
|
9806
10478
|
overridesJsonApiCreation: true
|
|
9807
10479
|
});
|
|
9808
10480
|
return {
|
|
9809
|
-
redirectUrl: _optionalChain([result, 'access',
|
|
10481
|
+
redirectUrl: _optionalChain([result, 'access', _260 => _260.meta, 'optionalAccess', _261 => _261.redirectUrl])
|
|
9810
10482
|
};
|
|
9811
10483
|
}
|
|
9812
10484
|
/**
|
|
@@ -9822,7 +10494,7 @@ var OAuthService = class extends AbstractService {
|
|
|
9822
10494
|
overridesJsonApiCreation: true
|
|
9823
10495
|
});
|
|
9824
10496
|
return {
|
|
9825
|
-
redirectUrl: _optionalChain([result, 'access',
|
|
10497
|
+
redirectUrl: _optionalChain([result, 'access', _262 => _262.meta, 'optionalAccess', _263 => _263.redirectUrl])
|
|
9826
10498
|
};
|
|
9827
10499
|
}
|
|
9828
10500
|
};
|
|
@@ -9864,17 +10536,17 @@ var AVAILABLE_OAUTH_SCOPES = Object.values(OAUTH_SCOPE_DISPLAY);
|
|
|
9864
10536
|
var DEFAULT_GRANT_TYPES = ["authorization_code", "refresh_token"];
|
|
9865
10537
|
|
|
9866
10538
|
// src/features/waitlist/data/Waitlist.ts
|
|
9867
|
-
var Waitlist = (
|
|
10539
|
+
var Waitlist = (_class29 = class extends AbstractApiData {constructor(...args26) { super(...args26); _class29.prototype.__init64.call(this);_class29.prototype.__init65.call(this); }
|
|
9868
10540
|
static {
|
|
9869
10541
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "Waitlist");
|
|
9870
10542
|
}
|
|
9871
10543
|
|
|
9872
|
-
|
|
10544
|
+
__init64() {this._gdprConsent = false}
|
|
9873
10545
|
|
|
9874
10546
|
|
|
9875
10547
|
|
|
9876
10548
|
|
|
9877
|
-
|
|
10549
|
+
__init65() {this._status = "pending"}
|
|
9878
10550
|
|
|
9879
10551
|
|
|
9880
10552
|
|
|
@@ -9988,7 +10660,7 @@ var Waitlist = (_class26 = class extends AbstractApiData {constructor(...args23)
|
|
|
9988
10660
|
}
|
|
9989
10661
|
return response;
|
|
9990
10662
|
}
|
|
9991
|
-
},
|
|
10663
|
+
}, _class29);
|
|
9992
10664
|
|
|
9993
10665
|
// src/features/waitlist/data/WaitlistService.ts
|
|
9994
10666
|
var WaitlistService = class extends AbstractService {
|
|
@@ -10028,15 +10700,15 @@ var WaitlistService = class extends AbstractService {
|
|
|
10028
10700
|
*/
|
|
10029
10701
|
static async findMany(params) {
|
|
10030
10702
|
const endpoint = new EndpointCreator({ endpoint: Modules.Waitlist });
|
|
10031
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
10032
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
10033
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
10703
|
+
if (_optionalChain([params, 'optionalAccess', _264 => _264.status])) endpoint.addAdditionalParam("status", params.status);
|
|
10704
|
+
if (_optionalChain([params, 'optionalAccess', _265 => _265.search])) endpoint.addAdditionalParam("search", params.search);
|
|
10705
|
+
if (_optionalChain([params, 'optionalAccess', _266 => _266.fetchAll])) endpoint.addAdditionalParam("fetchAll", "true");
|
|
10034
10706
|
return this.callApi({
|
|
10035
10707
|
type: Modules.Waitlist,
|
|
10036
10708
|
method: "GET" /* GET */,
|
|
10037
10709
|
endpoint: endpoint.generate(),
|
|
10038
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
10039
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
10710
|
+
next: _optionalChain([params, 'optionalAccess', _267 => _267.next]),
|
|
10711
|
+
previous: _optionalChain([params, 'optionalAccess', _268 => _268.previous])
|
|
10040
10712
|
});
|
|
10041
10713
|
}
|
|
10042
10714
|
/**
|
|
@@ -10105,10 +10777,10 @@ var WaitlistService = class extends AbstractService {
|
|
|
10105
10777
|
method: "GET" /* GET */,
|
|
10106
10778
|
endpoint: endpoint.generate()
|
|
10107
10779
|
});
|
|
10108
|
-
const attributes = _optionalChain([response, 'access',
|
|
10780
|
+
const attributes = _optionalChain([response, 'access', _269 => _269.data, 'optionalAccess', _270 => _270._jsonApi, 'optionalAccess', _271 => _271.attributes]);
|
|
10109
10781
|
return {
|
|
10110
|
-
email: _optionalChain([attributes, 'optionalAccess',
|
|
10111
|
-
valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess',
|
|
10782
|
+
email: _optionalChain([attributes, 'optionalAccess', _272 => _272.email]),
|
|
10783
|
+
valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess', _273 => _273.valid]), () => ( false))
|
|
10112
10784
|
};
|
|
10113
10785
|
} catch (_error) {
|
|
10114
10786
|
return null;
|
|
@@ -10117,15 +10789,15 @@ var WaitlistService = class extends AbstractService {
|
|
|
10117
10789
|
};
|
|
10118
10790
|
|
|
10119
10791
|
// src/features/waitlist/data/waitlist-stats.ts
|
|
10120
|
-
var WaitlistStats = (
|
|
10792
|
+
var WaitlistStats = (_class30 = class extends AbstractApiData {constructor(...args27) { super(...args27); _class30.prototype.__init66.call(this);_class30.prototype.__init67.call(this);_class30.prototype.__init68.call(this);_class30.prototype.__init69.call(this);_class30.prototype.__init70.call(this); }
|
|
10121
10793
|
static {
|
|
10122
10794
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "WaitlistStats");
|
|
10123
10795
|
}
|
|
10124
|
-
|
|
10125
|
-
|
|
10126
|
-
|
|
10127
|
-
|
|
10128
|
-
|
|
10796
|
+
__init66() {this._pending = 0}
|
|
10797
|
+
__init67() {this._confirmed = 0}
|
|
10798
|
+
__init68() {this._invited = 0}
|
|
10799
|
+
__init69() {this._registered = 0}
|
|
10800
|
+
__init70() {this._total = 0}
|
|
10129
10801
|
get pending() {
|
|
10130
10802
|
return this._pending;
|
|
10131
10803
|
}
|
|
@@ -10154,7 +10826,7 @@ var WaitlistStats = (_class27 = class extends AbstractApiData {constructor(...ar
|
|
|
10154
10826
|
createJsonApi(_data) {
|
|
10155
10827
|
throw new Error("WaitlistStats is read-only and cannot be created");
|
|
10156
10828
|
}
|
|
10157
|
-
},
|
|
10829
|
+
}, _class30);
|
|
10158
10830
|
|
|
10159
10831
|
// src/features/waitlist/data/waitlist.fields.ts
|
|
10160
10832
|
var WaitlistFields = /* @__PURE__ */ ((WaitlistFields2) => {
|
|
@@ -10206,7 +10878,7 @@ var PermissionMapping = class extends AbstractApiData {
|
|
|
10206
10878
|
super.rehydrate(data);
|
|
10207
10879
|
this._roleId = data.jsonApi.attributes.roleId;
|
|
10208
10880
|
this._moduleId = data.jsonApi.attributes.moduleId;
|
|
10209
|
-
this._permissions = _optionalChain([data, 'access',
|
|
10881
|
+
this._permissions = _optionalChain([data, 'access', _274 => _274.jsonApi, 'access', _275 => _275.meta, 'optionalAccess', _276 => _276.permissions]);
|
|
10210
10882
|
return this;
|
|
10211
10883
|
}
|
|
10212
10884
|
};
|
|
@@ -10385,18 +11057,18 @@ var ReferralStatsModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
10385
11057
|
|
|
10386
11058
|
|
|
10387
11059
|
// src/features/tokenusage/data/tokenusage-admin-breakdown.ts
|
|
10388
|
-
var TokenUsageAdminBreakdown = (
|
|
11060
|
+
var TokenUsageAdminBreakdown = (_class31 = class extends AbstractApiData {constructor(...args28) { super(...args28); _class31.prototype.__init71.call(this);_class31.prototype.__init72.call(this);_class31.prototype.__init73.call(this);_class31.prototype.__init74.call(this);_class31.prototype.__init75.call(this);_class31.prototype.__init76.call(this);_class31.prototype.__init77.call(this); }
|
|
10389
11061
|
static {
|
|
10390
11062
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageAdminBreakdown");
|
|
10391
11063
|
}
|
|
10392
|
-
|
|
11064
|
+
__init71() {this._label = ""}
|
|
10393
11065
|
|
|
10394
|
-
|
|
10395
|
-
|
|
10396
|
-
|
|
10397
|
-
|
|
10398
|
-
|
|
10399
|
-
|
|
11066
|
+
__init72() {this._cost = 0}
|
|
11067
|
+
__init73() {this._credits = 0}
|
|
11068
|
+
__init74() {this._tokensIn = 0}
|
|
11069
|
+
__init75() {this._tokensOut = 0}
|
|
11070
|
+
__init76() {this._cached = 0}
|
|
11071
|
+
__init77() {this._calls = 0}
|
|
10400
11072
|
|
|
10401
11073
|
|
|
10402
11074
|
|
|
@@ -10473,21 +11145,21 @@ var TokenUsageAdminBreakdown = (_class28 = class extends AbstractApiData {constr
|
|
|
10473
11145
|
response.data.attributes.availableMonthlyCredits = data.availableMonthlyCredits;
|
|
10474
11146
|
return response;
|
|
10475
11147
|
}
|
|
10476
|
-
},
|
|
11148
|
+
}, _class31);
|
|
10477
11149
|
|
|
10478
11150
|
// src/features/tokenusage/data/tokenusage-admin-summary.ts
|
|
10479
|
-
var TokenUsageAdminSummary = (
|
|
11151
|
+
var TokenUsageAdminSummary = (_class32 = class extends AbstractApiData {constructor(...args29) { super(...args29); _class32.prototype.__init78.call(this);_class32.prototype.__init79.call(this);_class32.prototype.__init80.call(this);_class32.prototype.__init81.call(this);_class32.prototype.__init82.call(this);_class32.prototype.__init83.call(this);_class32.prototype.__init84.call(this);_class32.prototype.__init85.call(this); }
|
|
10480
11152
|
static {
|
|
10481
11153
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageAdminSummary");
|
|
10482
11154
|
}
|
|
10483
|
-
|
|
10484
|
-
|
|
10485
|
-
|
|
10486
|
-
|
|
10487
|
-
|
|
10488
|
-
|
|
10489
|
-
|
|
10490
|
-
|
|
11155
|
+
__init78() {this._scope = ""}
|
|
11156
|
+
__init79() {this._window = ""}
|
|
11157
|
+
__init80() {this._cost = 0}
|
|
11158
|
+
__init81() {this._credits = 0}
|
|
11159
|
+
__init82() {this._tokensIn = 0}
|
|
11160
|
+
__init83() {this._tokensOut = 0}
|
|
11161
|
+
__init84() {this._cached = 0}
|
|
11162
|
+
__init85() {this._calls = 0}
|
|
10491
11163
|
get scope() {
|
|
10492
11164
|
return this._scope;
|
|
10493
11165
|
}
|
|
@@ -10545,21 +11217,21 @@ var TokenUsageAdminSummary = (_class29 = class extends AbstractApiData {construc
|
|
|
10545
11217
|
if (data.calls !== void 0) response.data.attributes.calls = data.calls;
|
|
10546
11218
|
return response;
|
|
10547
11219
|
}
|
|
10548
|
-
},
|
|
11220
|
+
}, _class32);
|
|
10549
11221
|
|
|
10550
11222
|
// src/features/tokenusage/data/tokenusage-admin-timeline.ts
|
|
10551
|
-
var TokenUsageAdminTimeline = (
|
|
11223
|
+
var TokenUsageAdminTimeline = (_class33 = class extends AbstractApiData {constructor(...args30) { super(...args30); _class33.prototype.__init86.call(this);_class33.prototype.__init87.call(this);_class33.prototype.__init88.call(this);_class33.prototype.__init89.call(this);_class33.prototype.__init90.call(this);_class33.prototype.__init91.call(this);_class33.prototype.__init92.call(this);_class33.prototype.__init93.call(this); }
|
|
10552
11224
|
static {
|
|
10553
11225
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageAdminTimeline");
|
|
10554
11226
|
}
|
|
10555
|
-
|
|
10556
|
-
|
|
10557
|
-
|
|
10558
|
-
|
|
10559
|
-
|
|
10560
|
-
|
|
10561
|
-
|
|
10562
|
-
|
|
11227
|
+
__init86() {this._bucket = /* @__PURE__ */ new Date(0)}
|
|
11228
|
+
__init87() {this._series = ""}
|
|
11229
|
+
__init88() {this._cost = 0}
|
|
11230
|
+
__init89() {this._credits = 0}
|
|
11231
|
+
__init90() {this._tokensIn = 0}
|
|
11232
|
+
__init91() {this._tokensOut = 0}
|
|
11233
|
+
__init92() {this._cached = 0}
|
|
11234
|
+
__init93() {this._calls = 0}
|
|
10563
11235
|
get bucket() {
|
|
10564
11236
|
return this._bucket;
|
|
10565
11237
|
}
|
|
@@ -10617,7 +11289,7 @@ var TokenUsageAdminTimeline = (_class30 = class extends AbstractApiData {constru
|
|
|
10617
11289
|
if (data.calls !== void 0) response.data.attributes.calls = data.calls;
|
|
10618
11290
|
return response;
|
|
10619
11291
|
}
|
|
10620
|
-
},
|
|
11292
|
+
}, _class33);
|
|
10621
11293
|
|
|
10622
11294
|
// src/features/tokenusage/tokenusage-admin.module.ts
|
|
10623
11295
|
var TokenUsageAdminSummaryModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({ name: "tokenusages/administration/summary", model: TokenUsageAdminSummary, icon: _lucidereact.CoinsIcon }), "TokenUsageAdminSummaryModule");
|
|
@@ -10628,18 +11300,18 @@ var TokenUsageAdminBreakdownModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.cal
|
|
|
10628
11300
|
|
|
10629
11301
|
|
|
10630
11302
|
// src/features/tokenusage/data/tokenusage-report-breakdown.ts
|
|
10631
|
-
var TokenUsageReportBreakdown = (
|
|
11303
|
+
var TokenUsageReportBreakdown = (_class34 = class extends AbstractApiData {constructor(...args31) { super(...args31); _class34.prototype.__init94.call(this);_class34.prototype.__init95.call(this);_class34.prototype.__init96.call(this);_class34.prototype.__init97.call(this);_class34.prototype.__init98.call(this);_class34.prototype.__init99.call(this);_class34.prototype.__init100.call(this); }
|
|
10632
11304
|
static {
|
|
10633
11305
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageReportBreakdown");
|
|
10634
11306
|
}
|
|
10635
|
-
|
|
11307
|
+
__init94() {this._label = ""}
|
|
10636
11308
|
|
|
10637
|
-
|
|
10638
|
-
|
|
10639
|
-
|
|
10640
|
-
|
|
10641
|
-
|
|
10642
|
-
|
|
11309
|
+
__init95() {this._cost = 0}
|
|
11310
|
+
__init96() {this._credits = 0}
|
|
11311
|
+
__init97() {this._tokensIn = 0}
|
|
11312
|
+
__init98() {this._tokensOut = 0}
|
|
11313
|
+
__init99() {this._cached = 0}
|
|
11314
|
+
__init100() {this._calls = 0}
|
|
10643
11315
|
get label() {
|
|
10644
11316
|
return this._label;
|
|
10645
11317
|
}
|
|
@@ -10697,20 +11369,20 @@ var TokenUsageReportBreakdown = (_class31 = class extends AbstractApiData {const
|
|
|
10697
11369
|
if (data.calls !== void 0) response.data.attributes.calls = data.calls;
|
|
10698
11370
|
return response;
|
|
10699
11371
|
}
|
|
10700
|
-
},
|
|
11372
|
+
}, _class34);
|
|
10701
11373
|
|
|
10702
11374
|
// src/features/tokenusage/data/tokenusage-report-summary.ts
|
|
10703
|
-
var TokenUsageReportSummary = (
|
|
11375
|
+
var TokenUsageReportSummary = (_class35 = class extends AbstractApiData {constructor(...args32) { super(...args32); _class35.prototype.__init101.call(this);_class35.prototype.__init102.call(this);_class35.prototype.__init103.call(this);_class35.prototype.__init104.call(this);_class35.prototype.__init105.call(this);_class35.prototype.__init106.call(this);_class35.prototype.__init107.call(this); }
|
|
10704
11376
|
static {
|
|
10705
11377
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageReportSummary");
|
|
10706
11378
|
}
|
|
10707
|
-
|
|
10708
|
-
|
|
10709
|
-
|
|
10710
|
-
|
|
10711
|
-
|
|
10712
|
-
|
|
10713
|
-
|
|
11379
|
+
__init101() {this._window = ""}
|
|
11380
|
+
__init102() {this._cost = 0}
|
|
11381
|
+
__init103() {this._credits = 0}
|
|
11382
|
+
__init104() {this._tokensIn = 0}
|
|
11383
|
+
__init105() {this._tokensOut = 0}
|
|
11384
|
+
__init106() {this._cached = 0}
|
|
11385
|
+
__init107() {this._calls = 0}
|
|
10714
11386
|
get window() {
|
|
10715
11387
|
return this._window;
|
|
10716
11388
|
}
|
|
@@ -10763,21 +11435,21 @@ var TokenUsageReportSummary = (_class32 = class extends AbstractApiData {constru
|
|
|
10763
11435
|
if (data.calls !== void 0) response.data.attributes.calls = data.calls;
|
|
10764
11436
|
return response;
|
|
10765
11437
|
}
|
|
10766
|
-
},
|
|
11438
|
+
}, _class35);
|
|
10767
11439
|
|
|
10768
11440
|
// src/features/tokenusage/data/tokenusage-report-timeline.ts
|
|
10769
|
-
var TokenUsageReportTimeline = (
|
|
11441
|
+
var TokenUsageReportTimeline = (_class36 = class extends AbstractApiData {constructor(...args33) { super(...args33); _class36.prototype.__init108.call(this);_class36.prototype.__init109.call(this);_class36.prototype.__init110.call(this);_class36.prototype.__init111.call(this);_class36.prototype.__init112.call(this);_class36.prototype.__init113.call(this);_class36.prototype.__init114.call(this);_class36.prototype.__init115.call(this); }
|
|
10770
11442
|
static {
|
|
10771
11443
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageReportTimeline");
|
|
10772
11444
|
}
|
|
10773
|
-
|
|
10774
|
-
|
|
10775
|
-
|
|
10776
|
-
|
|
10777
|
-
|
|
10778
|
-
|
|
10779
|
-
|
|
10780
|
-
|
|
11445
|
+
__init108() {this._bucket = /* @__PURE__ */ new Date(0)}
|
|
11446
|
+
__init109() {this._series = ""}
|
|
11447
|
+
__init110() {this._cost = 0}
|
|
11448
|
+
__init111() {this._credits = 0}
|
|
11449
|
+
__init112() {this._tokensIn = 0}
|
|
11450
|
+
__init113() {this._tokensOut = 0}
|
|
11451
|
+
__init114() {this._cached = 0}
|
|
11452
|
+
__init115() {this._calls = 0}
|
|
10781
11453
|
get bucket() {
|
|
10782
11454
|
return this._bucket;
|
|
10783
11455
|
}
|
|
@@ -10835,7 +11507,7 @@ var TokenUsageReportTimeline = (_class33 = class extends AbstractApiData {constr
|
|
|
10835
11507
|
if (data.calls !== void 0) response.data.attributes.calls = data.calls;
|
|
10836
11508
|
return response;
|
|
10837
11509
|
}
|
|
10838
|
-
},
|
|
11510
|
+
}, _class36);
|
|
10839
11511
|
|
|
10840
11512
|
// src/features/tokenusage/tokenusage.modules.ts
|
|
10841
11513
|
var tokenUsageModules = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => ({
|
|
@@ -10863,15 +11535,15 @@ var tokenUsageModules = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (fa
|
|
|
10863
11535
|
|
|
10864
11536
|
|
|
10865
11537
|
// src/features/analytics/data/analytics-breakdown.ts
|
|
10866
|
-
var AnalyticsBreakdown = (
|
|
11538
|
+
var AnalyticsBreakdown = (_class37 = class extends AbstractApiData {constructor(...args34) { super(...args34); _class37.prototype.__init116.call(this);_class37.prototype.__init117.call(this);_class37.prototype.__init118.call(this);_class37.prototype.__init119.call(this);_class37.prototype.__init120.call(this); }
|
|
10867
11539
|
static {
|
|
10868
11540
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "AnalyticsBreakdown");
|
|
10869
11541
|
}
|
|
10870
|
-
|
|
10871
|
-
|
|
10872
|
-
|
|
10873
|
-
|
|
10874
|
-
|
|
11542
|
+
__init116() {this._dimension = ""}
|
|
11543
|
+
__init117() {this._key = ""}
|
|
11544
|
+
__init118() {this._visitors = 0}
|
|
11545
|
+
__init119() {this._sessions = 0}
|
|
11546
|
+
__init120() {this._pageViews = 0}
|
|
10875
11547
|
get dimension() {
|
|
10876
11548
|
return this._dimension;
|
|
10877
11549
|
}
|
|
@@ -10914,16 +11586,16 @@ var AnalyticsBreakdown = (_class34 = class extends AbstractApiData {constructor(
|
|
|
10914
11586
|
if (data.pageViews !== void 0) response.data.attributes.pageViews = data.pageViews;
|
|
10915
11587
|
return response;
|
|
10916
11588
|
}
|
|
10917
|
-
},
|
|
11589
|
+
}, _class37);
|
|
10918
11590
|
|
|
10919
11591
|
// src/features/analytics/data/analytics-event.ts
|
|
10920
11592
|
var ANALYTICS_EVENT_TYPE = "analytics-events";
|
|
10921
|
-
var AnalyticsEvent = (
|
|
11593
|
+
var AnalyticsEvent = (_class38 = class extends AbstractApiData {constructor(...args35) { super(...args35); _class38.prototype.__init121.call(this);_class38.prototype.__init122.call(this); }
|
|
10922
11594
|
static {
|
|
10923
11595
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "AnalyticsEvent");
|
|
10924
11596
|
}
|
|
10925
|
-
|
|
10926
|
-
|
|
11597
|
+
__init121() {this._path = ""}
|
|
11598
|
+
__init122() {this._section = ""}
|
|
10927
11599
|
get path() {
|
|
10928
11600
|
return this._path;
|
|
10929
11601
|
}
|
|
@@ -10959,16 +11631,16 @@ var AnalyticsEvent = (_class35 = class extends AbstractApiData {constructor(...a
|
|
|
10959
11631
|
if (data.screenWidth !== void 0) response.data.attributes.screenWidth = data.screenWidth;
|
|
10960
11632
|
return response;
|
|
10961
11633
|
}
|
|
10962
|
-
},
|
|
11634
|
+
}, _class38);
|
|
10963
11635
|
|
|
10964
11636
|
// src/features/analytics/data/analytics-page-view.ts
|
|
10965
|
-
var AnalyticsPageView = (
|
|
11637
|
+
var AnalyticsPageView = (_class39 = class extends AbstractApiData {constructor(...args36) { super(...args36); _class39.prototype.__init123.call(this);_class39.prototype.__init124.call(this);_class39.prototype.__init125.call(this); }
|
|
10966
11638
|
static {
|
|
10967
11639
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "AnalyticsPageView");
|
|
10968
11640
|
}
|
|
10969
|
-
|
|
10970
|
-
|
|
10971
|
-
|
|
11641
|
+
__init123() {this._path = ""}
|
|
11642
|
+
__init124() {this._route = ""}
|
|
11643
|
+
__init125() {this._section = ""}
|
|
10972
11644
|
get path() {
|
|
10973
11645
|
return this._path;
|
|
10974
11646
|
}
|
|
@@ -11003,27 +11675,27 @@ var AnalyticsPageView = (_class36 = class extends AbstractApiData {constructor(.
|
|
|
11003
11675
|
if (data.section !== void 0) response.data.attributes.section = data.section;
|
|
11004
11676
|
return response;
|
|
11005
11677
|
}
|
|
11006
|
-
},
|
|
11678
|
+
}, _class39);
|
|
11007
11679
|
|
|
11008
11680
|
// src/features/analytics/data/analytics-session.ts
|
|
11009
|
-
var AnalyticsSession = (
|
|
11681
|
+
var AnalyticsSession = (_class40 = class extends AbstractApiData {constructor(...args37) { super(...args37); _class40.prototype.__init126.call(this);_class40.prototype.__init127.call(this);_class40.prototype.__init128.call(this);_class40.prototype.__init129.call(this);_class40.prototype.__init130.call(this);_class40.prototype.__init131.call(this);_class40.prototype.__init132.call(this);_class40.prototype.__init133.call(this); }
|
|
11010
11682
|
static {
|
|
11011
11683
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "AnalyticsSession");
|
|
11012
11684
|
}
|
|
11013
|
-
|
|
11014
|
-
|
|
11015
|
-
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11685
|
+
__init126() {this._visitorId = ""}
|
|
11686
|
+
__init127() {this._consented = false}
|
|
11687
|
+
__init128() {this._startedAt = /* @__PURE__ */ new Date(0)}
|
|
11688
|
+
__init129() {this._lastSeenAt = /* @__PURE__ */ new Date(0)}
|
|
11689
|
+
__init130() {this._pageViews = 0}
|
|
11690
|
+
__init131() {this._section = ""}
|
|
11691
|
+
__init132() {this._landingRoute = ""}
|
|
11020
11692
|
|
|
11021
11693
|
|
|
11022
11694
|
|
|
11023
11695
|
|
|
11024
11696
|
|
|
11025
11697
|
|
|
11026
|
-
|
|
11698
|
+
__init133() {this._deviceType = ""}
|
|
11027
11699
|
|
|
11028
11700
|
get visitorId() {
|
|
11029
11701
|
return this._visitorId;
|
|
@@ -11121,20 +11793,20 @@ var AnalyticsSession = (_class37 = class extends AbstractApiData {constructor(..
|
|
|
11121
11793
|
}
|
|
11122
11794
|
return response;
|
|
11123
11795
|
}
|
|
11124
|
-
},
|
|
11796
|
+
}, _class40);
|
|
11125
11797
|
|
|
11126
11798
|
// src/features/analytics/data/analytics-summary.ts
|
|
11127
|
-
var AnalyticsSummary = (
|
|
11799
|
+
var AnalyticsSummary = (_class41 = class extends AbstractApiData {constructor(...args38) { super(...args38); _class41.prototype.__init134.call(this);_class41.prototype.__init135.call(this);_class41.prototype.__init136.call(this);_class41.prototype.__init137.call(this);_class41.prototype.__init138.call(this);_class41.prototype.__init139.call(this);_class41.prototype.__init140.call(this); }
|
|
11128
11800
|
static {
|
|
11129
11801
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "AnalyticsSummary");
|
|
11130
11802
|
}
|
|
11131
|
-
|
|
11132
|
-
|
|
11133
|
-
|
|
11134
|
-
|
|
11135
|
-
|
|
11136
|
-
|
|
11137
|
-
|
|
11803
|
+
__init134() {this._section = ""}
|
|
11804
|
+
__init135() {this._window = ""}
|
|
11805
|
+
__init136() {this._visitors = 0}
|
|
11806
|
+
__init137() {this._sessions = 0}
|
|
11807
|
+
__init138() {this._pageViews = 0}
|
|
11808
|
+
__init139() {this._pagesPerSession = 0}
|
|
11809
|
+
__init140() {this._consentShare = 0}
|
|
11138
11810
|
get section() {
|
|
11139
11811
|
return this._section;
|
|
11140
11812
|
}
|
|
@@ -11187,18 +11859,18 @@ var AnalyticsSummary = (_class38 = class extends AbstractApiData {constructor(..
|
|
|
11187
11859
|
if (data.consentShare !== void 0) response.data.attributes.consentShare = data.consentShare;
|
|
11188
11860
|
return response;
|
|
11189
11861
|
}
|
|
11190
|
-
},
|
|
11862
|
+
}, _class41);
|
|
11191
11863
|
|
|
11192
11864
|
// src/features/analytics/data/analytics-timeline.ts
|
|
11193
|
-
var AnalyticsTimeline = (
|
|
11865
|
+
var AnalyticsTimeline = (_class42 = class extends AbstractApiData {constructor(...args39) { super(...args39); _class42.prototype.__init141.call(this);_class42.prototype.__init142.call(this);_class42.prototype.__init143.call(this);_class42.prototype.__init144.call(this);_class42.prototype.__init145.call(this); }
|
|
11194
11866
|
static {
|
|
11195
11867
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "AnalyticsTimeline");
|
|
11196
11868
|
}
|
|
11197
|
-
|
|
11198
|
-
|
|
11199
|
-
|
|
11200
|
-
|
|
11201
|
-
|
|
11869
|
+
__init141() {this._bucket = /* @__PURE__ */ new Date(0)}
|
|
11870
|
+
__init142() {this._section = ""}
|
|
11871
|
+
__init143() {this._visitors = 0}
|
|
11872
|
+
__init144() {this._sessions = 0}
|
|
11873
|
+
__init145() {this._pageViews = 0}
|
|
11202
11874
|
get bucket() {
|
|
11203
11875
|
return this._bucket;
|
|
11204
11876
|
}
|
|
@@ -11241,7 +11913,7 @@ var AnalyticsTimeline = (_class39 = class extends AbstractApiData {constructor(.
|
|
|
11241
11913
|
if (data.pageViews !== void 0) response.data.attributes.pageViews = data.pageViews;
|
|
11242
11914
|
return response;
|
|
11243
11915
|
}
|
|
11244
|
-
},
|
|
11916
|
+
}, _class42);
|
|
11245
11917
|
|
|
11246
11918
|
// src/features/analytics/analytics.modules.ts
|
|
11247
11919
|
var analyticsModules = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => ({
|
|
@@ -11281,11 +11953,11 @@ function getTokenUsageCurrency() {
|
|
|
11281
11953
|
_chunk7QVYU63Ejs.__name.call(void 0, getTokenUsageCurrency, "getTokenUsageCurrency");
|
|
11282
11954
|
|
|
11283
11955
|
// src/features/audit-log/data/audit-log.ts
|
|
11284
|
-
var AuditLog = (
|
|
11956
|
+
var AuditLog = (_class43 = class extends AbstractApiData {constructor(...args40) { super(...args40); _class43.prototype.__init146.call(this); }
|
|
11285
11957
|
static {
|
|
11286
11958
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "AuditLog");
|
|
11287
11959
|
}
|
|
11288
|
-
|
|
11960
|
+
__init146() {this._kind = "audit"}
|
|
11289
11961
|
|
|
11290
11962
|
|
|
11291
11963
|
|
|
@@ -11332,7 +12004,7 @@ var AuditLog = (_class40 = class extends AbstractApiData {constructor(...args37)
|
|
|
11332
12004
|
createJsonApi() {
|
|
11333
12005
|
throw new Error("AuditLog is read-only");
|
|
11334
12006
|
}
|
|
11335
|
-
},
|
|
12007
|
+
}, _class43);
|
|
11336
12008
|
|
|
11337
12009
|
// src/features/audit-log/data/audit-log.service.ts
|
|
11338
12010
|
var AuditLogService = class extends AbstractService {
|
|
@@ -11666,5 +12338,25 @@ var AuditLogModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (facto
|
|
|
11666
12338
|
|
|
11667
12339
|
|
|
11668
12340
|
|
|
11669
|
-
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.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;
|
|
11670
|
-
|
|
12341
|
+
|
|
12342
|
+
|
|
12343
|
+
|
|
12344
|
+
|
|
12345
|
+
|
|
12346
|
+
|
|
12347
|
+
|
|
12348
|
+
|
|
12349
|
+
|
|
12350
|
+
|
|
12351
|
+
|
|
12352
|
+
|
|
12353
|
+
|
|
12354
|
+
|
|
12355
|
+
|
|
12356
|
+
|
|
12357
|
+
|
|
12358
|
+
|
|
12359
|
+
|
|
12360
|
+
|
|
12361
|
+
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.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.DEFAULT_BILLING_LOCALE = DEFAULT_BILLING_LOCALE; 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;
|
|
12362
|
+
//# sourceMappingURL=chunk-HKZAESS6.js.map
|