@carlonicora/nextjs-jsonapi 1.36.1 → 1.38.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-4MDHRUS2.js → BlockNoteEditor-3S2B36O3.js} +15 -15
- package/dist/{BlockNoteEditor-4MDHRUS2.js.map → BlockNoteEditor-3S2B36O3.js.map} +1 -1
- package/dist/{BlockNoteEditor-SZWO3MDO.mjs → BlockNoteEditor-WQUJTVJL.mjs} +5 -5
- package/dist/BlockNoteEditor-WQUJTVJL.mjs.map +1 -0
- package/dist/billing/index.d.mts +15 -5
- package/dist/billing/index.d.ts +15 -5
- package/dist/billing/index.js +750 -520
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +665 -435
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-53IPQJVH.js → chunk-3EZX4G2E.js} +147 -23
- package/dist/chunk-3EZX4G2E.js.map +1 -0
- package/dist/{chunk-I7DFEJFF.mjs → chunk-4PHADEKA.mjs} +738 -1418
- package/dist/chunk-4PHADEKA.mjs.map +1 -0
- package/dist/{chunk-E6PQQTWF.js → chunk-T2JCZYWK.js} +999 -1679
- package/dist/chunk-T2JCZYWK.js.map +1 -0
- package/dist/{chunk-P7R2DPD6.mjs → chunk-TQ5GRRTM.mjs} +125 -1
- package/dist/chunk-TQ5GRRTM.mjs.map +1 -0
- package/dist/client/index.js +3 -3
- package/dist/client/index.mjs +2 -2
- package/dist/components/index.d.mts +23 -8
- package/dist/components/index.d.ts +23 -8
- package/dist/components/index.js +3 -3
- package/dist/components/index.mjs +2 -2
- package/dist/contexts/index.d.mts +1 -1
- package/dist/contexts/index.d.ts +1 -1
- package/dist/contexts/index.js +3 -3
- package/dist/contexts/index.mjs +2 -2
- package/dist/core/index.d.mts +47 -3
- package/dist/core/index.d.ts +47 -3
- package/dist/core/index.js +8 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +7 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/dist/{stripe-subscription.interface-DK7BJaNd.d.ts → stripe-promotion-code.interface-BcJty0rv.d.ts} +18 -1
- package/dist/{stripe-subscription.interface-C8uhCYIZ.d.mts → stripe-promotion-code.interface-Dnm2DJKQ.d.mts} +18 -1
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/billing/index.ts +1 -0
- package/src/client/context/JsonApiProvider.tsx +1 -5
- package/src/client/hooks/__tests__/useJsonApiGet.test.tsx +9 -9
- package/src/client/hooks/__tests__/useJsonApiMutation.test.tsx +11 -11
- package/src/client/hooks/__tests__/useRehydration.test.ts +13 -34
- package/src/components/editors/BlockNoteEditor.tsx +2 -2
- package/src/components/forms/CommonEditorTrigger.tsx +1 -1
- package/src/components/forms/FormCheckbox.tsx +2 -12
- package/src/components/forms/FormDate.tsx +1 -6
- package/src/components/forms/FormInput.tsx +1 -1
- package/src/components/forms/FormPassword.tsx +1 -7
- package/src/components/forms/FormSelect.tsx +2 -8
- package/src/components/forms/FormSlider.tsx +1 -5
- package/src/components/forms/FormSwitch.tsx +1 -5
- package/src/components/forms/GdprConsentCheckbox.tsx +2 -8
- package/src/components/forms/PasswordInput.tsx +28 -26
- package/src/components/forms/__tests__/FormCheckbox.test.tsx +16 -18
- package/src/components/forms/__tests__/FormDate.test.tsx +14 -30
- package/src/components/forms/__tests__/FormInput.test.tsx +21 -37
- package/src/components/forms/__tests__/FormSelect.test.tsx +15 -21
- package/src/components/tables/ContentListTable.tsx +1 -1
- package/src/components/tables/__tests__/ContentListTable.test.tsx +17 -89
- package/src/components/tables/cells/cell.component.tsx +1 -1
- package/src/contexts/HeaderChildrenContext.tsx +3 -1
- package/src/core/endpoint/__tests__/EndpointCreator.test.ts +2 -7
- package/src/core/factories/__tests__/JsonApiDataFactory.test.ts +3 -3
- package/src/core/factories/__tests__/RehydrationFactory.test.ts +4 -6
- package/src/core/index.ts +1 -0
- package/src/core/registry/ModuleRegistry.ts +1 -0
- package/src/core/registry/__tests__/DataClassRegistry.test.ts +5 -15
- package/src/core/registry/__tests__/ModuleRegistrar.test.ts +5 -15
- package/src/features/auth/components/GdprConsentSection.tsx +1 -6
- package/src/features/auth/components/details/LandingComponent.tsx +6 -1
- package/src/features/auth/components/forms/AcceptInvitation.tsx +1 -1
- package/src/features/auth/components/forms/ResetPassword.tsx +1 -1
- package/src/features/billing/components/cards/PaymentMethodSummaryCard.tsx +13 -18
- package/src/features/billing/components/cards/SubscriptionSummaryCard.tsx +12 -17
- package/src/features/billing/components/modals/BillingDetailModal.tsx +2 -13
- package/src/features/billing/stripe-customer/components/details/PaymentMethodCard.tsx +8 -1
- package/src/features/billing/stripe-customer/components/forms/PaymentMethodEditor.tsx +2 -13
- package/src/features/billing/stripe-customer/components/forms/PaymentMethodForm.tsx +2 -12
- package/src/features/billing/stripe-invoice/components/details/InvoiceDetails.tsx +6 -1
- package/src/features/billing/stripe-invoice/data/stripe-invoice.interface.ts +1 -0
- package/src/features/billing/stripe-price/components/lists/PricesList.tsx +13 -5
- package/src/features/billing/stripe-product/components/lists/ProductsList.tsx +5 -5
- package/src/features/billing/stripe-promotion-code/components/PromoCodeInput.tsx +108 -0
- package/src/features/billing/stripe-promotion-code/components/index.ts +1 -0
- package/src/features/billing/stripe-promotion-code/data/index.ts +3 -0
- package/src/features/billing/stripe-promotion-code/data/stripe-promotion-code.interface.ts +14 -0
- package/src/features/billing/stripe-promotion-code/data/stripe-promotion-code.service.ts +64 -0
- package/src/features/billing/stripe-promotion-code/data/stripe-promotion-code.ts +66 -0
- package/src/features/billing/stripe-promotion-code/index.ts +2 -0
- package/src/features/billing/stripe-promotion-code/stripe-promotion-code.module.ts +9 -0
- package/src/features/billing/stripe-subscription/components/containers/SubscriptionsContainer.tsx +1 -3
- package/src/features/billing/stripe-subscription/components/details/SubscriptionDetails.tsx +4 -1
- package/src/features/billing/stripe-subscription/components/forms/CancelSubscriptionDialog.tsx +1 -1
- package/src/features/billing/stripe-subscription/components/lists/SubscriptionsList.tsx +24 -4
- package/src/features/billing/stripe-subscription/components/widgets/PricingCard.tsx +9 -2
- package/src/features/billing/stripe-subscription/components/widgets/SubscriptionStatusBadge.tsx +3 -1
- package/src/features/billing/stripe-subscription/components/wizards/SubscriptionWizard.tsx +7 -7
- package/src/features/billing/stripe-subscription/components/wizards/WizardProgressIndicator.tsx +2 -10
- package/src/features/billing/stripe-subscription/components/wizards/WizardStepPaymentMethod.tsx +3 -13
- package/src/features/billing/stripe-subscription/components/wizards/WizardStepReview.tsx +134 -23
- package/src/features/billing/stripe-subscription/data/stripe-subscription.interface.ts +2 -0
- package/src/features/billing/stripe-subscription/data/stripe-subscription.ts +8 -0
- package/src/features/billing/stripe-subscription/hooks/useSubscriptionWizard.ts +93 -7
- package/src/features/billing/stripe-usage/components/details/UsageSummaryCard.tsx +1 -1
- package/src/features/billing/stripe-usage/components/lists/UsageHistoryTable.tsx +1 -1
- package/src/features/company/components/details/CompanyDetails.tsx +2 -2
- package/src/features/company/components/forms/CompanyConfigurationSecurityForm.tsx +1 -1
- package/src/features/index.ts +1 -0
- package/src/features/notification/components/containers/NotificationsListContainer.tsx +1 -1
- package/src/features/notification/components/modals/NotificationModal.tsx +6 -2
- package/src/features/notification/contexts/NotificationContext.tsx +1 -3
- package/src/features/oauth/components/OAuthClientCard.tsx +15 -17
- package/src/features/oauth/components/OAuthClientDetail.tsx +7 -19
- package/src/features/oauth/components/OAuthClientForm.tsx +4 -13
- package/src/features/oauth/components/OAuthClientSecretDisplay.tsx +4 -20
- package/src/features/oauth/components/OAuthRedirectUriInput.tsx +5 -12
- package/src/features/oauth/components/OAuthScopeSelector.tsx +17 -23
- package/src/features/oauth/components/consent/OAuthConsentActions.tsx +3 -16
- package/src/features/oauth/components/consent/OAuthConsentHeader.tsx +3 -12
- package/src/features/oauth/components/consent/OAuthConsentScreen.tsx +5 -20
- package/src/features/oauth/components/consent/OAuthScopeList.tsx +3 -18
- package/src/features/onboarding/contexts/OnboardingContext.tsx +3 -3
- package/src/features/role/components/forms/FormRoles.tsx +1 -7
- package/src/features/user/components/containers/UserContainer.tsx +1 -1
- package/src/features/user/components/details/UserDetails.tsx +1 -1
- package/src/features/user/components/forms/UserDeleter.tsx +1 -1
- package/src/features/user/components/forms/UserEditor.tsx +1 -1
- package/src/features/user/components/forms/UserMultiSelect.tsx +7 -7
- package/src/features/user/components/lists/UserListInAdd.tsx +2 -2
- package/src/features/user/components/lists/UsersList.tsx +7 -1
- package/src/features/user/contexts/CurrentUserContext.tsx +36 -33
- package/src/hooks/__tests__/useDataListRetriever.test.ts +15 -21
- package/src/hooks/__tests__/useDebounce.test.ts +2 -7
- package/src/hooks/useCustomD3Graph.tsx +2 -2
- package/src/shadcnui/custom/multi-select.tsx +28 -2
- package/src/shadcnui/ui/accordion.tsx +21 -23
- package/src/shadcnui/ui/alert-dialog.tsx +45 -62
- package/src/shadcnui/ui/alert.tsx +25 -41
- package/src/shadcnui/ui/avatar.tsx +23 -36
- package/src/shadcnui/ui/badge.tsx +13 -11
- package/src/shadcnui/ui/breadcrumb.tsx +21 -55
- package/src/shadcnui/ui/button.tsx +17 -18
- package/src/shadcnui/ui/calendar.tsx +44 -93
- package/src/shadcnui/ui/carousel.tsx +72 -100
- package/src/shadcnui/ui/chart.tsx +102 -161
- package/src/shadcnui/ui/checkbox.tsx +8 -9
- package/src/shadcnui/ui/combobox.tsx +52 -83
- package/src/shadcnui/ui/command.tsx +43 -77
- package/src/shadcnui/ui/context-menu.tsx +47 -86
- package/src/shadcnui/ui/dialog.tsx +34 -60
- package/src/shadcnui/ui/drawer.tsx +32 -53
- package/src/shadcnui/ui/dropdown-menu.tsx +48 -65
- package/src/shadcnui/ui/field.tsx +39 -48
- package/src/shadcnui/ui/hover-card.tsx +9 -14
- package/src/shadcnui/ui/input-group.tsx +44 -55
- package/src/shadcnui/ui/input-otp.tsx +22 -26
- package/src/shadcnui/ui/input.tsx +6 -6
- package/src/shadcnui/ui/label.tsx +6 -6
- package/src/shadcnui/ui/navigation-menu.tsx +36 -60
- package/src/shadcnui/ui/popover.tsx +15 -38
- package/src/shadcnui/ui/progress.tsx +12 -29
- package/src/shadcnui/ui/radio-group.tsx +9 -15
- package/src/shadcnui/ui/resizable.tsx +14 -24
- package/src/shadcnui/ui/scroll-area.tsx +12 -27
- package/src/shadcnui/ui/select.tsx +41 -65
- package/src/shadcnui/ui/separator.tsx +7 -11
- package/src/shadcnui/ui/sheet.tsx +30 -55
- package/src/shadcnui/ui/sidebar.tsx +141 -189
- package/src/shadcnui/ui/skeleton.tsx +3 -9
- package/src/shadcnui/ui/slider.tsx +11 -23
- package/src/shadcnui/ui/switch.tsx +8 -8
- package/src/shadcnui/ui/tabs.tsx +14 -21
- package/src/shadcnui/ui/textarea.tsx +5 -5
- package/src/shadcnui/ui/toggle.tsx +8 -14
- package/src/shadcnui/ui/tooltip.tsx +11 -23
- package/src/testing/providers/MockJsonApiProvider.tsx +1 -5
- package/src/testing/utils/renderWithProviders.tsx +6 -10
- package/dist/BlockNoteEditor-SZWO3MDO.mjs.map +0 -1
- package/dist/chunk-53IPQJVH.js.map +0 -1
- package/dist/chunk-E6PQQTWF.js.map +0 -1
- package/dist/chunk-I7DFEJFF.mjs.map +0 -1
- package/dist/chunk-P7R2DPD6.mjs.map +0 -1
|
@@ -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 _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await 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;
|
|
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 _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await 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;
|
|
2
2
|
|
|
3
3
|
var _chunkLXKSUWAVjs = require('./chunk-LXKSUWAV.js');
|
|
4
4
|
|
|
@@ -3442,6 +3442,8 @@ var StripeSubscription = (_class7 = class extends AbstractApiData {constructor(.
|
|
|
3442
3442
|
return this;
|
|
3443
3443
|
}
|
|
3444
3444
|
createJsonApi(data) {
|
|
3445
|
+
console.log("[StripeSubscription.createJsonApi] Input data:", JSON.stringify(data, null, 2));
|
|
3446
|
+
console.log("[StripeSubscription.createJsonApi] promotionCode in input:", data.promotionCode);
|
|
3445
3447
|
const response = {
|
|
3446
3448
|
data: {
|
|
3447
3449
|
type: Modules.StripeSubscription.name,
|
|
@@ -3477,6 +3479,10 @@ var StripeSubscription = (_class7 = class extends AbstractApiData {constructor(.
|
|
|
3477
3479
|
if (data.metadata) {
|
|
3478
3480
|
response.data.attributes.metadata = data.metadata;
|
|
3479
3481
|
}
|
|
3482
|
+
if (data.promotionCode) {
|
|
3483
|
+
response.data.attributes.promotionCode = data.promotionCode;
|
|
3484
|
+
}
|
|
3485
|
+
console.log("[StripeSubscription.createJsonApi] Final response:", JSON.stringify(response, null, 2));
|
|
3480
3486
|
return response;
|
|
3481
3487
|
}
|
|
3482
3488
|
}, _class7);
|
|
@@ -3823,8 +3829,123 @@ var StripeUsageModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (fa
|
|
|
3823
3829
|
moduleId: "c2e9f4a6-1d7b-4e3a-8f5c-9b2d6a1e7f3c"
|
|
3824
3830
|
}), "StripeUsageModule");
|
|
3825
3831
|
|
|
3832
|
+
// src/features/billing/stripe-promotion-code/data/stripe-promotion-code.service.ts
|
|
3833
|
+
var STRIPE_PROMOTION_CODE_ENDPOINT = "stripe-promotion-codes";
|
|
3834
|
+
var StripePromotionCodeService = class {
|
|
3835
|
+
static {
|
|
3836
|
+
_chunk7QVYU63Ejs.__name.call(void 0, this, "StripePromotionCodeService");
|
|
3837
|
+
}
|
|
3838
|
+
/**
|
|
3839
|
+
* Validate a promotion code against Stripe
|
|
3840
|
+
*
|
|
3841
|
+
* @param params.code - The promotion code to validate (e.g., "SAVE20")
|
|
3842
|
+
* @param params.stripePriceId - Optional price ID to check product restrictions
|
|
3843
|
+
* @param params.language - Language code for the request
|
|
3844
|
+
* @returns Validation result with discount details if valid
|
|
3845
|
+
*/
|
|
3846
|
+
static async validatePromotionCode(params) {
|
|
3847
|
+
const response = await _chunkFM6WRAN5js.JsonApiPost.call(void 0, {
|
|
3848
|
+
classKey: Modules.StripePromotionCode,
|
|
3849
|
+
endpoint: `${STRIPE_PROMOTION_CODE_ENDPOINT}/validate`,
|
|
3850
|
+
body: {
|
|
3851
|
+
data: {
|
|
3852
|
+
type: STRIPE_PROMOTION_CODE_ENDPOINT,
|
|
3853
|
+
attributes: {
|
|
3854
|
+
code: params.code,
|
|
3855
|
+
stripePriceId: params.stripePriceId
|
|
3856
|
+
}
|
|
3857
|
+
}
|
|
3858
|
+
},
|
|
3859
|
+
overridesJsonApiCreation: true,
|
|
3860
|
+
language: _nullishCoalesce(params.language, () => ( "en"))
|
|
3861
|
+
});
|
|
3862
|
+
if (!response.ok) {
|
|
3863
|
+
return {
|
|
3864
|
+
valid: false,
|
|
3865
|
+
code: params.code,
|
|
3866
|
+
errorMessage: response.error || "Failed to validate promotion code"
|
|
3867
|
+
};
|
|
3868
|
+
}
|
|
3869
|
+
const data = response.data;
|
|
3870
|
+
return {
|
|
3871
|
+
valid: data.valid,
|
|
3872
|
+
promotionCodeId: data.promotionCodeId,
|
|
3873
|
+
code: data.code,
|
|
3874
|
+
discountType: data.discountType,
|
|
3875
|
+
discountValue: data.discountValue,
|
|
3876
|
+
currency: data.currency,
|
|
3877
|
+
duration: data.duration,
|
|
3878
|
+
durationInMonths: data.durationInMonths,
|
|
3879
|
+
errorMessage: data.errorMessage
|
|
3880
|
+
};
|
|
3881
|
+
}
|
|
3882
|
+
};
|
|
3883
|
+
|
|
3884
|
+
// src/features/billing/stripe-promotion-code/data/stripe-promotion-code.ts
|
|
3885
|
+
var StripePromotionCode = (_class8 = class extends AbstractApiData {constructor(...args6) { super(...args6); _class8.prototype.__init10.call(this);_class8.prototype.__init11.call(this); }
|
|
3886
|
+
static {
|
|
3887
|
+
_chunk7QVYU63Ejs.__name.call(void 0, this, "StripePromotionCode");
|
|
3888
|
+
}
|
|
3889
|
+
__init10() {this._valid = false}
|
|
3890
|
+
|
|
3891
|
+
__init11() {this._code = ""}
|
|
3892
|
+
|
|
3893
|
+
|
|
3894
|
+
|
|
3895
|
+
|
|
3896
|
+
|
|
3897
|
+
|
|
3898
|
+
get valid() {
|
|
3899
|
+
return this._valid;
|
|
3900
|
+
}
|
|
3901
|
+
get promotionCodeId() {
|
|
3902
|
+
return this._promotionCodeId;
|
|
3903
|
+
}
|
|
3904
|
+
get code() {
|
|
3905
|
+
return this._code;
|
|
3906
|
+
}
|
|
3907
|
+
get discountType() {
|
|
3908
|
+
return this._discountType;
|
|
3909
|
+
}
|
|
3910
|
+
get discountValue() {
|
|
3911
|
+
return this._discountValue;
|
|
3912
|
+
}
|
|
3913
|
+
get currency() {
|
|
3914
|
+
return this._currency;
|
|
3915
|
+
}
|
|
3916
|
+
get duration() {
|
|
3917
|
+
return this._duration;
|
|
3918
|
+
}
|
|
3919
|
+
get durationInMonths() {
|
|
3920
|
+
return this._durationInMonths;
|
|
3921
|
+
}
|
|
3922
|
+
get errorMessage() {
|
|
3923
|
+
return this._errorMessage;
|
|
3924
|
+
}
|
|
3925
|
+
rehydrate(data) {
|
|
3926
|
+
super.rehydrate(data);
|
|
3927
|
+
this._valid = _nullishCoalesce(data.jsonApi.attributes.valid, () => ( false));
|
|
3928
|
+
this._promotionCodeId = data.jsonApi.attributes.promotionCodeId;
|
|
3929
|
+
this._code = _nullishCoalesce(data.jsonApi.attributes.code, () => ( ""));
|
|
3930
|
+
this._discountType = data.jsonApi.attributes.discountType;
|
|
3931
|
+
this._discountValue = data.jsonApi.attributes.discountValue;
|
|
3932
|
+
this._currency = data.jsonApi.attributes.currency;
|
|
3933
|
+
this._duration = data.jsonApi.attributes.duration;
|
|
3934
|
+
this._durationInMonths = data.jsonApi.attributes.durationInMonths;
|
|
3935
|
+
this._errorMessage = data.jsonApi.attributes.errorMessage;
|
|
3936
|
+
return this;
|
|
3937
|
+
}
|
|
3938
|
+
}, _class8);
|
|
3939
|
+
|
|
3940
|
+
// src/features/billing/stripe-promotion-code/stripe-promotion-code.module.ts
|
|
3941
|
+
var StripePromotionCodeModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
|
|
3942
|
+
name: "stripe-promotion-codes",
|
|
3943
|
+
model: StripePromotionCode,
|
|
3944
|
+
moduleId: "b8e4f6a2-9d0c-5b3f-c7e8-4g2d9f0a5c6e"
|
|
3945
|
+
}), "StripePromotionCodeModule");
|
|
3946
|
+
|
|
3826
3947
|
// src/features/company/data/company.ts
|
|
3827
|
-
var Company = (
|
|
3948
|
+
var Company = (_class9 = class extends AbstractApiData {constructor(...args7) { super(...args7); _class9.prototype.__init12.call(this);_class9.prototype.__init13.call(this);_class9.prototype.__init14.call(this);_class9.prototype.__init15.call(this); }
|
|
3828
3949
|
static {
|
|
3829
3950
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "Company");
|
|
3830
3951
|
}
|
|
@@ -3832,10 +3953,10 @@ var Company = (_class8 = class extends AbstractApiData {constructor(...args6) {
|
|
|
3832
3953
|
|
|
3833
3954
|
|
|
3834
3955
|
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3956
|
+
__init12() {this._isActiveSubscription = false}
|
|
3957
|
+
__init13() {this._monthlyTokens = 0}
|
|
3958
|
+
__init14() {this._availableMonthlyTokens = 0}
|
|
3959
|
+
__init15() {this._availableExtraTokens = 0}
|
|
3839
3960
|
|
|
3840
3961
|
|
|
3841
3962
|
get name() {
|
|
@@ -3920,7 +4041,7 @@ var Company = (_class8 = class extends AbstractApiData {constructor(...args6) {
|
|
|
3920
4041
|
}
|
|
3921
4042
|
return response;
|
|
3922
4043
|
}
|
|
3923
|
-
},
|
|
4044
|
+
}, _class9);
|
|
3924
4045
|
|
|
3925
4046
|
// src/features/company/data/company.fields.ts
|
|
3926
4047
|
var CompanyFields = /* @__PURE__ */ ((CompanyFields2) => {
|
|
@@ -4170,13 +4291,13 @@ var ContentModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factor
|
|
|
4170
4291
|
}), "ContentModule");
|
|
4171
4292
|
|
|
4172
4293
|
// src/features/feature/data/feature.ts
|
|
4173
|
-
var Feature = (
|
|
4294
|
+
var Feature = (_class10 = class extends AbstractApiData {constructor(...args8) { super(...args8); _class10.prototype.__init16.call(this); }
|
|
4174
4295
|
static {
|
|
4175
4296
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "Feature");
|
|
4176
4297
|
}
|
|
4177
4298
|
|
|
4178
4299
|
|
|
4179
|
-
|
|
4300
|
+
__init16() {this._modules = []}
|
|
4180
4301
|
get name() {
|
|
4181
4302
|
return _nullishCoalesce(this._name, () => ( ""));
|
|
4182
4303
|
}
|
|
@@ -4193,7 +4314,7 @@ var Feature = (_class9 = class extends AbstractApiData {constructor(...args7) {
|
|
|
4193
4314
|
this._modules = this._readIncluded(data, `modules`, Modules.Module);
|
|
4194
4315
|
return this;
|
|
4195
4316
|
}
|
|
4196
|
-
},
|
|
4317
|
+
}, _class10);
|
|
4197
4318
|
|
|
4198
4319
|
// src/features/feature/data/feature.service.ts
|
|
4199
4320
|
var FeatureService = class extends AbstractService {
|
|
@@ -4644,7 +4765,7 @@ var S3Service = class extends AbstractService {
|
|
|
4644
4765
|
};
|
|
4645
4766
|
|
|
4646
4767
|
// src/features/user/data/user.ts
|
|
4647
|
-
var User = (
|
|
4768
|
+
var User = (_class11 = class extends AbstractApiData {constructor(...args9) { super(...args9); _class11.prototype.__init17.call(this);_class11.prototype.__init18.call(this); }
|
|
4648
4769
|
static {
|
|
4649
4770
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "User");
|
|
4650
4771
|
}
|
|
@@ -4660,9 +4781,9 @@ var User = (_class10 = class extends AbstractApiData {constructor(...args8) { su
|
|
|
4660
4781
|
|
|
4661
4782
|
|
|
4662
4783
|
|
|
4663
|
-
|
|
4784
|
+
__init17() {this._roles = []}
|
|
4664
4785
|
|
|
4665
|
-
|
|
4786
|
+
__init18() {this._modules = []}
|
|
4666
4787
|
get searchResult() {
|
|
4667
4788
|
return _nullishCoalesce(this._name, () => ( ""));
|
|
4668
4789
|
}
|
|
@@ -4770,7 +4891,7 @@ var User = (_class10 = class extends AbstractApiData {constructor(...args8) { su
|
|
|
4770
4891
|
}
|
|
4771
4892
|
return response;
|
|
4772
4893
|
}
|
|
4773
|
-
},
|
|
4894
|
+
}, _class11);
|
|
4774
4895
|
|
|
4775
4896
|
// src/features/user/data/user.fields.ts
|
|
4776
4897
|
var UserFields = /* @__PURE__ */ ((UserFields2) => {
|
|
@@ -4989,18 +5110,18 @@ var UserModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory)
|
|
|
4989
5110
|
}), "UserModule");
|
|
4990
5111
|
|
|
4991
5112
|
// src/features/oauth/data/oauth.ts
|
|
4992
|
-
var OAuthClient = (
|
|
5113
|
+
var OAuthClient = (_class12 = class extends AbstractApiData {constructor(...args10) { super(...args10); _class12.prototype.__init19.call(this);_class12.prototype.__init20.call(this);_class12.prototype.__init21.call(this);_class12.prototype.__init22.call(this);_class12.prototype.__init23.call(this); }
|
|
4993
5114
|
static {
|
|
4994
5115
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "OAuthClient");
|
|
4995
5116
|
}
|
|
4996
5117
|
|
|
4997
5118
|
|
|
4998
5119
|
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5120
|
+
__init19() {this._redirectUris = []}
|
|
5121
|
+
__init20() {this._allowedScopes = []}
|
|
5122
|
+
__init21() {this._allowedGrantTypes = []}
|
|
5123
|
+
__init22() {this._isConfidential = true}
|
|
5124
|
+
__init23() {this._isActive = true}
|
|
5004
5125
|
get clientId() {
|
|
5005
5126
|
return _nullishCoalesce(this._clientId, () => ( this.id));
|
|
5006
5127
|
}
|
|
@@ -5056,7 +5177,7 @@ var OAuthClient = (_class11 = class extends AbstractApiData {constructor(...args
|
|
|
5056
5177
|
if (data.isActive !== void 0) response.data.attributes.isActive = data.isActive;
|
|
5057
5178
|
return response;
|
|
5058
5179
|
}
|
|
5059
|
-
},
|
|
5180
|
+
}, _class12);
|
|
5060
5181
|
|
|
5061
5182
|
// src/features/oauth/oauth.module.ts
|
|
5062
5183
|
var OAuthModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
|
|
@@ -5394,5 +5515,8 @@ var DEFAULT_GRANT_TYPES = ["authorization_code", "refresh_token"];
|
|
|
5394
5515
|
|
|
5395
5516
|
|
|
5396
5517
|
|
|
5397
|
-
|
|
5398
|
-
|
|
5518
|
+
|
|
5519
|
+
|
|
5520
|
+
|
|
5521
|
+
exports.RehydrationFactory = RehydrationFactory; exports.AbstractApiData = AbstractApiData; exports.HttpMethod = HttpMethod; exports.getLastApiTotal = getLastApiTotal; exports.clearLastApiTotal = clearLastApiTotal; exports.setGlobalErrorHandler = setGlobalErrorHandler; exports.getGlobalErrorHandler = getGlobalErrorHandler; exports.AbstractService = AbstractService; exports.configureClientJsonApi = configureClientJsonApi; exports.getClientApiUrl = getClientApiUrl; exports.getClientAppUrl = getClientAppUrl; exports.getClientTrackablePages = getClientTrackablePages; 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.cn = cn; exports.composeRefs = composeRefs; exports.useComposedRefs = useComposedRefs; exports.useIsMobile = useIsMobile; exports.formatDate = formatDate; exports.exists = exists; exports.TableOptions = TableOptions; exports.getTableOptions = getTableOptions; exports.getTableComponents = getTableComponents; exports.userObjectSchema = userObjectSchema; exports.entityObjectSchema = entityObjectSchema; 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.configureAuth = configureAuth; exports.getTokenHandler = getTokenHandler; exports.Auth = Auth; exports.AuthService = AuthService; exports.AuthComponent = AuthComponent; exports.AuthModule = AuthModule; 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.StripePriceService = StripePriceService; exports.StripePriceModule = StripePriceModule; exports.StripeProduct = StripeProduct; 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.Company = Company; exports.CompanyFields = CompanyFields; exports.CompanyService = CompanyService; exports.CompanyModule = CompanyModule; exports.Content = Content; exports.ContentFields = ContentFields; exports.ContentService = ContentService; exports.ContentModule = ContentModule; 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.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;
|
|
5522
|
+
//# sourceMappingURL=chunk-3EZX4G2E.js.map
|