@carlonicora/nextjs-jsonapi 1.141.3 → 1.143.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/AbstractService-B0T7h8fX.d.mts +124 -0
- package/dist/AbstractService-Cew0PD0L.d.ts +124 -0
- package/dist/{AssistantMessageInterface-DH1QwtC_.d.mts → AssistantMessageInterface-Ce8FcllX.d.mts} +1 -1
- package/dist/{AssistantMessageInterface-giWvsOrX.d.ts → AssistantMessageInterface-Dh0BpbP2.d.ts} +1 -1
- package/dist/{AuthComponent-DdxCFgUZ.d.mts → AuthComponent-Cik96ElA.d.mts} +1 -1
- package/dist/{AuthComponent-Cd7lcYif.d.ts → AuthComponent-DTTKu3VK.d.ts} +1 -1
- package/dist/{BlockNoteEditor-JTKEBS2W.mjs → BlockNoteEditor-34QM4UR5.mjs} +4 -4
- package/dist/{BlockNoteEditor-4OXY6BKF.js → BlockNoteEditor-LMKWUOJG.js} +19 -19
- package/dist/{BlockNoteEditor-4OXY6BKF.js.map → BlockNoteEditor-LMKWUOJG.js.map} +1 -1
- package/dist/{auth.interface-yivTb46w.d.ts → auth.interface-COmBjh89.d.ts} +1 -1
- package/dist/{auth.interface-r3XKYOrQ.d.mts → auth.interface-CkmZqat3.d.mts} +1 -1
- package/dist/billing/index.js +357 -357
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-5GVY2M5X.mjs → chunk-BIL2WQEV.mjs} +264 -18
- package/dist/chunk-BIL2WQEV.mjs.map +1 -0
- package/dist/{chunk-AGKZCRG2.js → chunk-DS4IBFWA.js} +269 -23
- package/dist/chunk-DS4IBFWA.js.map +1 -0
- package/dist/{chunk-4TGGHNWL.js → chunk-F6PZZ4KI.js} +752 -752
- package/dist/chunk-F6PZZ4KI.js.map +1 -0
- package/dist/{chunk-KXTTYXJ6.mjs → chunk-HN5ED7OF.mjs} +2 -2
- package/dist/{chunk-K76QSQTC.mjs → chunk-UGSOBBZH.mjs} +28 -28
- package/dist/chunk-UGSOBBZH.mjs.map +1 -0
- package/dist/{chunk-SE2YSAER.js → chunk-UXJAS6C5.js} +7 -7
- package/dist/{chunk-SE2YSAER.js.map → chunk-UXJAS6C5.js.map} +1 -1
- package/dist/client/index.d.mts +5 -5
- package/dist/client/index.d.ts +5 -5
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +6 -6
- package/dist/components/index.d.ts +6 -6
- package/dist/components/index.js +4 -4
- package/dist/components/index.mjs +3 -3
- package/dist/{config-BrkU_Ynz.d.ts → config-Cd5xTEfZ.d.ts} +1 -1
- package/dist/{config-snd2ToEB.d.mts → config-YyhFHxkU.d.mts} +1 -1
- package/dist/contexts/index.d.mts +4 -4
- package/dist/contexts/index.d.ts +4 -4
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +24 -60
- package/dist/core/index.d.ts +24 -60
- package/dist/core/index.js +8 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +7 -1
- package/dist/features/help/index.d.mts +2 -2
- package/dist/features/help/index.d.ts +2 -2
- package/dist/features/help/index.js +37 -37
- package/dist/features/help/index.mjs +3 -3
- package/dist/features/tokenusage/index.css +29 -0
- package/dist/features/tokenusage/index.css.map +1 -0
- package/dist/features/tokenusage/index.d.mts +388 -0
- package/dist/features/tokenusage/index.d.ts +388 -0
- package/dist/features/tokenusage/index.js +1012 -0
- package/dist/features/tokenusage/index.js.map +1 -0
- package/dist/features/tokenusage/index.mjs +1012 -0
- package/dist/features/tokenusage/index.mjs.map +1 -0
- package/dist/index.d.mts +11 -9
- package/dist/index.d.ts +11 -9
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/{notification.interface-LKFmZndR.d.ts → notification.interface--27exGde.d.ts} +6 -6
- package/dist/{notification.interface-B3kNUTZs.d.mts → notification.interface-CG1vqoxg.d.mts} +6 -6
- package/dist/{s3.service-BrmeMjtk.d.ts → s3.service-CpwA3sl_.d.ts} +4 -125
- package/dist/{s3.service-CXKV_OT-.d.mts → s3.service-Dt6MfuHr.d.mts} +4 -125
- package/dist/server/index.d.mts +5 -4
- package/dist/server/index.d.ts +5 -4
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/dist/tokenusage-admin.module-5wJ_tZTj.d.ts +61 -0
- package/dist/tokenusage-admin.module-DQVT4O4j.d.mts +61 -0
- package/dist/{types-CQSjy7et.d.mts → types-Bq_UA8Lg.d.mts} +1 -1
- package/dist/{types-DHOxe8rc.d.ts → types-bsm8Fp55.d.ts} +1 -1
- package/dist/{usePageUrlGenerator-tjq2mlDV.d.ts → usePageUrlGenerator-J_ECv-oQ.d.ts} +1 -1
- package/dist/{usePageUrlGenerator-uOnyJ6j2.d.mts → usePageUrlGenerator-uKBjAKqC.d.mts} +1 -1
- package/dist/{useSocket-BsbaGPqE.d.ts → useSocket-DgGAQW6h.d.ts} +1 -1
- package/dist/{useSocket-BSjn1Rlb.d.mts → useSocket-M3YY0aTS.d.mts} +1 -1
- package/package.json +6 -1
- package/src/core/index.ts +5 -0
- package/src/core/registry/ModuleRegistry.ts +4 -0
- package/src/features/company/components/details/TokenStatusIndicator.tsx +9 -9
- package/src/features/company/data/company.interface.ts +6 -6
- package/src/features/company/data/company.ts +17 -17
- package/src/features/tokenusage/components/TokenUsageAdminContainer.tsx +189 -0
- package/src/features/tokenusage/components/TokenUsageAdminFilterBar.tsx +138 -0
- package/src/features/tokenusage/components/TokenUsageAdminTiles.tsx +177 -0
- package/src/features/tokenusage/components/TokenUsageBreakdownTable.tsx +160 -0
- package/src/features/tokenusage/components/TokenUsageRankedBar.tsx +99 -0
- package/src/features/tokenusage/components/TokenUsageTimelineChart.tsx +225 -0
- package/src/features/tokenusage/components/__tests__/TokenUsageAdminTiles.spec.tsx +42 -0
- package/src/features/tokenusage/components/__tests__/TokenUsageRankedBar.spec.tsx +41 -0
- package/src/features/tokenusage/components/__tests__/TokenUsageTimelineChart.spec.tsx +47 -0
- package/src/features/tokenusage/contexts/TokenUsageAdminContext.tsx +252 -0
- package/src/features/tokenusage/contexts/__tests__/TokenUsageAdminContext.spec.tsx +80 -0
- package/src/features/tokenusage/data/TokenUsageAdminService.ts +54 -0
- package/src/features/tokenusage/data/__tests__/tokenusage-admin-models.spec.ts +147 -0
- package/src/features/tokenusage/data/index.ts +8 -0
- package/src/features/tokenusage/data/tokenusage-admin-breakdown.interface.ts +18 -0
- package/src/features/tokenusage/data/tokenusage-admin-breakdown.ts +115 -0
- package/src/features/tokenusage/data/tokenusage-admin-summary.interface.ts +14 -0
- package/src/features/tokenusage/data/tokenusage-admin-summary.ts +90 -0
- package/src/features/tokenusage/data/tokenusage-admin-timeline.interface.ts +13 -0
- package/src/features/tokenusage/data/tokenusage-admin-timeline.ts +94 -0
- package/src/features/tokenusage/data/tokenusage-admin.types.ts +56 -0
- package/src/features/tokenusage/i18n-keys.ts +65 -0
- package/src/features/tokenusage/index.ts +30 -0
- package/src/features/tokenusage/lib/metrics.ts +69 -0
- package/src/features/tokenusage/lib/operation-label.ts +41 -0
- package/src/features/tokenusage/lib/palette.ts +197 -0
- package/src/features/tokenusage/tokenusage-admin.module.ts +22 -0
- package/src/features/user/contexts/CurrentUserContext.tsx +18 -18
- package/src/features/user/contexts/__tests__/CurrentUserContext.spec.tsx +21 -21
- package/dist/chunk-4TGGHNWL.js.map +0 -1
- package/dist/chunk-5GVY2M5X.mjs.map +0 -1
- package/dist/chunk-AGKZCRG2.js.map +0 -1
- package/dist/chunk-K76QSQTC.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-JTKEBS2W.mjs.map → BlockNoteEditor-34QM4UR5.mjs.map} +0 -0
- /package/dist/{chunk-KXTTYXJ6.mjs.map → chunk-HN5ED7OF.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(); } } 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; 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;
|
|
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(); } } 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; 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;
|
|
2
2
|
|
|
3
3
|
var _chunkLXKSUWAVjs = require('./chunk-LXKSUWAV.js');
|
|
4
4
|
|
|
@@ -4973,9 +4973,9 @@ var Company = (_class18 = class extends AbstractApiData {constructor(...args15)
|
|
|
4973
4973
|
|
|
4974
4974
|
|
|
4975
4975
|
__init36() {this._isActiveSubscription = false}
|
|
4976
|
-
__init37() {this.
|
|
4977
|
-
__init38() {this.
|
|
4978
|
-
__init39() {this.
|
|
4976
|
+
__init37() {this._monthlyCredits = 0}
|
|
4977
|
+
__init38() {this._availableMonthlyCredits = 0}
|
|
4978
|
+
__init39() {this._availableExtraCredits = 0}
|
|
4979
4979
|
|
|
4980
4980
|
|
|
4981
4981
|
|
|
@@ -5001,14 +5001,14 @@ var Company = (_class18 = class extends AbstractApiData {constructor(...args15)
|
|
|
5001
5001
|
get isActiveSubscription() {
|
|
5002
5002
|
return _nullishCoalesce(this._isActiveSubscription, () => ( false));
|
|
5003
5003
|
}
|
|
5004
|
-
get
|
|
5005
|
-
return _nullishCoalesce(this.
|
|
5004
|
+
get monthlyCredits() {
|
|
5005
|
+
return _nullishCoalesce(this._monthlyCredits, () => ( 0));
|
|
5006
5006
|
}
|
|
5007
|
-
get
|
|
5008
|
-
return _nullishCoalesce(this.
|
|
5007
|
+
get availableMonthlyCredits() {
|
|
5008
|
+
return _nullishCoalesce(this._availableMonthlyCredits, () => ( 0));
|
|
5009
5009
|
}
|
|
5010
|
-
get
|
|
5011
|
-
return _nullishCoalesce(this.
|
|
5010
|
+
get availableExtraCredits() {
|
|
5011
|
+
return _nullishCoalesce(this._availableExtraCredits, () => ( 0));
|
|
5012
5012
|
}
|
|
5013
5013
|
get features() {
|
|
5014
5014
|
return _nullishCoalesce(this._features, () => ( []));
|
|
@@ -5056,9 +5056,9 @@ var Company = (_class18 = class extends AbstractApiData {constructor(...args15)
|
|
|
5056
5056
|
this._logo = data.jsonApi.attributes.logo;
|
|
5057
5057
|
this._logoUrl = data.jsonApi.attributes.logoUrl;
|
|
5058
5058
|
this._isActiveSubscription = _nullishCoalesce(data.jsonApi.attributes.isActiveSubscription, () => ( false));
|
|
5059
|
-
this.
|
|
5060
|
-
this.
|
|
5061
|
-
this.
|
|
5059
|
+
this._monthlyCredits = _nullishCoalesce(data.jsonApi.attributes.monthlyCredits, () => ( 0));
|
|
5060
|
+
this._availableMonthlyCredits = _nullishCoalesce(data.jsonApi.attributes.availableMonthlyCredits, () => ( 0));
|
|
5061
|
+
this._availableExtraCredits = _nullishCoalesce(data.jsonApi.attributes.availableExtraCredits, () => ( 0));
|
|
5062
5062
|
this._legal_address = data.jsonApi.attributes.legal_address;
|
|
5063
5063
|
this._street_number = data.jsonApi.attributes.street_number;
|
|
5064
5064
|
this._street = data.jsonApi.attributes.street;
|
|
@@ -5087,11 +5087,11 @@ var Company = (_class18 = class extends AbstractApiData {constructor(...args15)
|
|
|
5087
5087
|
if (data.name) response.data.attributes.name = data.name;
|
|
5088
5088
|
if (data.configurations) response.data.attributes.configurations = JSON.stringify(data.configurations);
|
|
5089
5089
|
if (data.logo) response.data.attributes.logo = data.logo;
|
|
5090
|
-
if (data.
|
|
5091
|
-
if (data.
|
|
5092
|
-
response.data.attributes.
|
|
5093
|
-
if (data.
|
|
5094
|
-
response.data.attributes.
|
|
5090
|
+
if (data.monthlyCredits !== void 0) response.data.attributes.monthlyCredits = data.monthlyCredits;
|
|
5091
|
+
if (data.availableMonthlyCredits !== void 0)
|
|
5092
|
+
response.data.attributes.availableMonthlyCredits = data.availableMonthlyCredits;
|
|
5093
|
+
if (data.availableExtraCredits !== void 0)
|
|
5094
|
+
response.data.attributes.availableExtraCredits = data.availableExtraCredits;
|
|
5095
5095
|
if (data.legal_address !== void 0) response.data.attributes.legal_address = data.legal_address;
|
|
5096
5096
|
if (data.street_number !== void 0) response.data.attributes.street_number = data.street_number;
|
|
5097
5097
|
if (data.street !== void 0) response.data.attributes.street = data.street;
|
|
@@ -7682,12 +7682,252 @@ var ReferralStatsModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
7682
7682
|
model: ReferralStats
|
|
7683
7683
|
}), "ReferralStatsModule");
|
|
7684
7684
|
|
|
7685
|
+
// src/features/tokenusage/data/tokenusage-admin-breakdown.ts
|
|
7686
|
+
var TokenUsageAdminBreakdown = (_class25 = class extends AbstractApiData {constructor(...args22) { super(...args22); _class25.prototype.__init57.call(this);_class25.prototype.__init58.call(this);_class25.prototype.__init59.call(this);_class25.prototype.__init60.call(this);_class25.prototype.__init61.call(this);_class25.prototype.__init62.call(this);_class25.prototype.__init63.call(this); }
|
|
7687
|
+
static {
|
|
7688
|
+
_chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageAdminBreakdown");
|
|
7689
|
+
}
|
|
7690
|
+
__init57() {this._label = ""}
|
|
7691
|
+
|
|
7692
|
+
__init58() {this._cost = 0}
|
|
7693
|
+
__init59() {this._credits = 0}
|
|
7694
|
+
__init60() {this._tokensIn = 0}
|
|
7695
|
+
__init61() {this._tokensOut = 0}
|
|
7696
|
+
__init62() {this._cached = 0}
|
|
7697
|
+
__init63() {this._calls = 0}
|
|
7698
|
+
|
|
7699
|
+
|
|
7700
|
+
|
|
7701
|
+
get label() {
|
|
7702
|
+
return this._label;
|
|
7703
|
+
}
|
|
7704
|
+
get sublabel() {
|
|
7705
|
+
return this._sublabel;
|
|
7706
|
+
}
|
|
7707
|
+
get cost() {
|
|
7708
|
+
return this._cost;
|
|
7709
|
+
}
|
|
7710
|
+
get credits() {
|
|
7711
|
+
return this._credits;
|
|
7712
|
+
}
|
|
7713
|
+
get tokensIn() {
|
|
7714
|
+
return this._tokensIn;
|
|
7715
|
+
}
|
|
7716
|
+
get tokensOut() {
|
|
7717
|
+
return this._tokensOut;
|
|
7718
|
+
}
|
|
7719
|
+
get cached() {
|
|
7720
|
+
return this._cached;
|
|
7721
|
+
}
|
|
7722
|
+
get calls() {
|
|
7723
|
+
return this._calls;
|
|
7724
|
+
}
|
|
7725
|
+
get activeUsers() {
|
|
7726
|
+
return this._activeUsers;
|
|
7727
|
+
}
|
|
7728
|
+
get monthlyCredits() {
|
|
7729
|
+
return this._monthlyCredits;
|
|
7730
|
+
}
|
|
7731
|
+
get availableMonthlyCredits() {
|
|
7732
|
+
return this._availableMonthlyCredits;
|
|
7733
|
+
}
|
|
7734
|
+
rehydrate(data) {
|
|
7735
|
+
super.rehydrate(data);
|
|
7736
|
+
const attrs = data.jsonApi.attributes;
|
|
7737
|
+
this._label = _nullishCoalesce(attrs.label, () => ( ""));
|
|
7738
|
+
this._sublabel = _nullishCoalesce(attrs.sublabel, () => ( void 0));
|
|
7739
|
+
this._cost = _nullishCoalesce(attrs.cost, () => ( 0));
|
|
7740
|
+
this._credits = _nullishCoalesce(attrs.credits, () => ( 0));
|
|
7741
|
+
this._tokensIn = _nullishCoalesce(attrs.tokensIn, () => ( 0));
|
|
7742
|
+
this._tokensOut = _nullishCoalesce(attrs.tokensOut, () => ( 0));
|
|
7743
|
+
this._cached = _nullishCoalesce(attrs.cached, () => ( 0));
|
|
7744
|
+
this._calls = _nullishCoalesce(attrs.calls, () => ( 0));
|
|
7745
|
+
this._activeUsers = _nullishCoalesce(attrs.activeUsers, () => ( void 0));
|
|
7746
|
+
this._monthlyCredits = _nullishCoalesce(attrs.monthlyCredits, () => ( void 0));
|
|
7747
|
+
this._availableMonthlyCredits = _nullishCoalesce(attrs.availableMonthlyCredits, () => ( void 0));
|
|
7748
|
+
return this;
|
|
7749
|
+
}
|
|
7750
|
+
createJsonApi(data) {
|
|
7751
|
+
const response = {
|
|
7752
|
+
data: {
|
|
7753
|
+
type: Modules.TokenUsageAdminBreakdown.name,
|
|
7754
|
+
id: data.id,
|
|
7755
|
+
attributes: {},
|
|
7756
|
+
relationships: {}
|
|
7757
|
+
},
|
|
7758
|
+
included: []
|
|
7759
|
+
};
|
|
7760
|
+
if (data.label !== void 0) response.data.attributes.label = data.label;
|
|
7761
|
+
if (data.sublabel !== void 0) response.data.attributes.sublabel = data.sublabel;
|
|
7762
|
+
if (data.cost !== void 0) response.data.attributes.cost = data.cost;
|
|
7763
|
+
if (data.credits !== void 0) response.data.attributes.credits = data.credits;
|
|
7764
|
+
if (data.tokensIn !== void 0) response.data.attributes.tokensIn = data.tokensIn;
|
|
7765
|
+
if (data.tokensOut !== void 0) response.data.attributes.tokensOut = data.tokensOut;
|
|
7766
|
+
if (data.cached !== void 0) response.data.attributes.cached = data.cached;
|
|
7767
|
+
if (data.calls !== void 0) response.data.attributes.calls = data.calls;
|
|
7768
|
+
if (data.activeUsers !== void 0) response.data.attributes.activeUsers = data.activeUsers;
|
|
7769
|
+
if (data.monthlyCredits !== void 0) response.data.attributes.monthlyCredits = data.monthlyCredits;
|
|
7770
|
+
if (data.availableMonthlyCredits !== void 0)
|
|
7771
|
+
response.data.attributes.availableMonthlyCredits = data.availableMonthlyCredits;
|
|
7772
|
+
return response;
|
|
7773
|
+
}
|
|
7774
|
+
}, _class25);
|
|
7775
|
+
|
|
7776
|
+
// src/features/tokenusage/data/tokenusage-admin-summary.ts
|
|
7777
|
+
var TokenUsageAdminSummary = (_class26 = class extends AbstractApiData {constructor(...args23) { super(...args23); _class26.prototype.__init64.call(this);_class26.prototype.__init65.call(this);_class26.prototype.__init66.call(this);_class26.prototype.__init67.call(this);_class26.prototype.__init68.call(this);_class26.prototype.__init69.call(this);_class26.prototype.__init70.call(this);_class26.prototype.__init71.call(this); }
|
|
7778
|
+
static {
|
|
7779
|
+
_chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageAdminSummary");
|
|
7780
|
+
}
|
|
7781
|
+
__init64() {this._scope = ""}
|
|
7782
|
+
__init65() {this._window = ""}
|
|
7783
|
+
__init66() {this._cost = 0}
|
|
7784
|
+
__init67() {this._credits = 0}
|
|
7785
|
+
__init68() {this._tokensIn = 0}
|
|
7786
|
+
__init69() {this._tokensOut = 0}
|
|
7787
|
+
__init70() {this._cached = 0}
|
|
7788
|
+
__init71() {this._calls = 0}
|
|
7789
|
+
get scope() {
|
|
7790
|
+
return this._scope;
|
|
7791
|
+
}
|
|
7792
|
+
get window() {
|
|
7793
|
+
return this._window;
|
|
7794
|
+
}
|
|
7795
|
+
get cost() {
|
|
7796
|
+
return this._cost;
|
|
7797
|
+
}
|
|
7798
|
+
get credits() {
|
|
7799
|
+
return this._credits;
|
|
7800
|
+
}
|
|
7801
|
+
get tokensIn() {
|
|
7802
|
+
return this._tokensIn;
|
|
7803
|
+
}
|
|
7804
|
+
get tokensOut() {
|
|
7805
|
+
return this._tokensOut;
|
|
7806
|
+
}
|
|
7807
|
+
get cached() {
|
|
7808
|
+
return this._cached;
|
|
7809
|
+
}
|
|
7810
|
+
get calls() {
|
|
7811
|
+
return this._calls;
|
|
7812
|
+
}
|
|
7813
|
+
rehydrate(data) {
|
|
7814
|
+
super.rehydrate(data);
|
|
7815
|
+
const attrs = data.jsonApi.attributes;
|
|
7816
|
+
this._scope = _nullishCoalesce(attrs.scope, () => ( ""));
|
|
7817
|
+
this._window = _nullishCoalesce(attrs.window, () => ( ""));
|
|
7818
|
+
this._cost = _nullishCoalesce(attrs.cost, () => ( 0));
|
|
7819
|
+
this._credits = _nullishCoalesce(attrs.credits, () => ( 0));
|
|
7820
|
+
this._tokensIn = _nullishCoalesce(attrs.tokensIn, () => ( 0));
|
|
7821
|
+
this._tokensOut = _nullishCoalesce(attrs.tokensOut, () => ( 0));
|
|
7822
|
+
this._cached = _nullishCoalesce(attrs.cached, () => ( 0));
|
|
7823
|
+
this._calls = _nullishCoalesce(attrs.calls, () => ( 0));
|
|
7824
|
+
return this;
|
|
7825
|
+
}
|
|
7826
|
+
createJsonApi(data) {
|
|
7827
|
+
const response = {
|
|
7828
|
+
data: {
|
|
7829
|
+
type: Modules.TokenUsageAdminSummary.name,
|
|
7830
|
+
id: data.id,
|
|
7831
|
+
attributes: {},
|
|
7832
|
+
relationships: {}
|
|
7833
|
+
},
|
|
7834
|
+
included: []
|
|
7835
|
+
};
|
|
7836
|
+
if (data.scope !== void 0) response.data.attributes.scope = data.scope;
|
|
7837
|
+
if (data.window !== void 0) response.data.attributes.window = data.window;
|
|
7838
|
+
if (data.cost !== void 0) response.data.attributes.cost = data.cost;
|
|
7839
|
+
if (data.credits !== void 0) response.data.attributes.credits = data.credits;
|
|
7840
|
+
if (data.tokensIn !== void 0) response.data.attributes.tokensIn = data.tokensIn;
|
|
7841
|
+
if (data.tokensOut !== void 0) response.data.attributes.tokensOut = data.tokensOut;
|
|
7842
|
+
if (data.cached !== void 0) response.data.attributes.cached = data.cached;
|
|
7843
|
+
if (data.calls !== void 0) response.data.attributes.calls = data.calls;
|
|
7844
|
+
return response;
|
|
7845
|
+
}
|
|
7846
|
+
}, _class26);
|
|
7847
|
+
|
|
7848
|
+
// src/features/tokenusage/data/tokenusage-admin-timeline.ts
|
|
7849
|
+
var TokenUsageAdminTimeline = (_class27 = class extends AbstractApiData {constructor(...args24) { super(...args24); _class27.prototype.__init72.call(this);_class27.prototype.__init73.call(this);_class27.prototype.__init74.call(this);_class27.prototype.__init75.call(this);_class27.prototype.__init76.call(this);_class27.prototype.__init77.call(this);_class27.prototype.__init78.call(this);_class27.prototype.__init79.call(this); }
|
|
7850
|
+
static {
|
|
7851
|
+
_chunk7QVYU63Ejs.__name.call(void 0, this, "TokenUsageAdminTimeline");
|
|
7852
|
+
}
|
|
7853
|
+
__init72() {this._bucket = /* @__PURE__ */ new Date(0)}
|
|
7854
|
+
__init73() {this._series = ""}
|
|
7855
|
+
__init74() {this._cost = 0}
|
|
7856
|
+
__init75() {this._credits = 0}
|
|
7857
|
+
__init76() {this._tokensIn = 0}
|
|
7858
|
+
__init77() {this._tokensOut = 0}
|
|
7859
|
+
__init78() {this._cached = 0}
|
|
7860
|
+
__init79() {this._calls = 0}
|
|
7861
|
+
get bucket() {
|
|
7862
|
+
return this._bucket;
|
|
7863
|
+
}
|
|
7864
|
+
get series() {
|
|
7865
|
+
return this._series;
|
|
7866
|
+
}
|
|
7867
|
+
get cost() {
|
|
7868
|
+
return this._cost;
|
|
7869
|
+
}
|
|
7870
|
+
get credits() {
|
|
7871
|
+
return this._credits;
|
|
7872
|
+
}
|
|
7873
|
+
get tokensIn() {
|
|
7874
|
+
return this._tokensIn;
|
|
7875
|
+
}
|
|
7876
|
+
get tokensOut() {
|
|
7877
|
+
return this._tokensOut;
|
|
7878
|
+
}
|
|
7879
|
+
get cached() {
|
|
7880
|
+
return this._cached;
|
|
7881
|
+
}
|
|
7882
|
+
get calls() {
|
|
7883
|
+
return this._calls;
|
|
7884
|
+
}
|
|
7885
|
+
rehydrate(data) {
|
|
7886
|
+
super.rehydrate(data);
|
|
7887
|
+
const attrs = data.jsonApi.attributes;
|
|
7888
|
+
this._bucket = attrs.bucket ? new Date(attrs.bucket) : /* @__PURE__ */ new Date(0);
|
|
7889
|
+
this._series = _nullishCoalesce(attrs.series, () => ( ""));
|
|
7890
|
+
this._cost = _nullishCoalesce(attrs.cost, () => ( 0));
|
|
7891
|
+
this._credits = _nullishCoalesce(attrs.credits, () => ( 0));
|
|
7892
|
+
this._tokensIn = _nullishCoalesce(attrs.tokensIn, () => ( 0));
|
|
7893
|
+
this._tokensOut = _nullishCoalesce(attrs.tokensOut, () => ( 0));
|
|
7894
|
+
this._cached = _nullishCoalesce(attrs.cached, () => ( 0));
|
|
7895
|
+
this._calls = _nullishCoalesce(attrs.calls, () => ( 0));
|
|
7896
|
+
return this;
|
|
7897
|
+
}
|
|
7898
|
+
createJsonApi(data) {
|
|
7899
|
+
const response = {
|
|
7900
|
+
data: {
|
|
7901
|
+
type: Modules.TokenUsageAdminTimeline.name,
|
|
7902
|
+
id: data.id,
|
|
7903
|
+
attributes: {},
|
|
7904
|
+
relationships: {}
|
|
7905
|
+
},
|
|
7906
|
+
included: []
|
|
7907
|
+
};
|
|
7908
|
+
if (data.bucket !== void 0) response.data.attributes.bucket = formatLocalDate(data.bucket);
|
|
7909
|
+
if (data.series !== void 0) response.data.attributes.series = data.series;
|
|
7910
|
+
if (data.cost !== void 0) response.data.attributes.cost = data.cost;
|
|
7911
|
+
if (data.credits !== void 0) response.data.attributes.credits = data.credits;
|
|
7912
|
+
if (data.tokensIn !== void 0) response.data.attributes.tokensIn = data.tokensIn;
|
|
7913
|
+
if (data.tokensOut !== void 0) response.data.attributes.tokensOut = data.tokensOut;
|
|
7914
|
+
if (data.cached !== void 0) response.data.attributes.cached = data.cached;
|
|
7915
|
+
if (data.calls !== void 0) response.data.attributes.calls = data.calls;
|
|
7916
|
+
return response;
|
|
7917
|
+
}
|
|
7918
|
+
}, _class27);
|
|
7919
|
+
|
|
7920
|
+
// src/features/tokenusage/tokenusage-admin.module.ts
|
|
7921
|
+
var TokenUsageAdminSummaryModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({ name: "tokenusages/administration/summary", model: TokenUsageAdminSummary }), "TokenUsageAdminSummaryModule");
|
|
7922
|
+
var TokenUsageAdminTimelineModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({ name: "tokenusages/administration/timeline", model: TokenUsageAdminTimeline }), "TokenUsageAdminTimelineModule");
|
|
7923
|
+
var TokenUsageAdminBreakdownModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({ name: "tokenusages/administration/breakdown", model: TokenUsageAdminBreakdown }), "TokenUsageAdminBreakdownModule");
|
|
7924
|
+
|
|
7685
7925
|
// src/features/audit-log/data/audit-log.ts
|
|
7686
|
-
var AuditLog = (
|
|
7926
|
+
var AuditLog = (_class28 = class extends AbstractApiData {constructor(...args25) { super(...args25); _class28.prototype.__init80.call(this); }
|
|
7687
7927
|
static {
|
|
7688
7928
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "AuditLog");
|
|
7689
7929
|
}
|
|
7690
|
-
|
|
7930
|
+
__init80() {this._kind = "audit"}
|
|
7691
7931
|
|
|
7692
7932
|
|
|
7693
7933
|
|
|
@@ -7734,7 +7974,7 @@ var AuditLog = (_class25 = class extends AbstractApiData {constructor(...args22)
|
|
|
7734
7974
|
createJsonApi() {
|
|
7735
7975
|
throw new Error("AuditLog is read-only");
|
|
7736
7976
|
}
|
|
7737
|
-
},
|
|
7977
|
+
}, _class28);
|
|
7738
7978
|
|
|
7739
7979
|
// src/features/audit-log/data/audit-log.service.ts
|
|
7740
7980
|
var AuditLogService = class extends AbstractService {
|
|
@@ -7968,5 +8208,11 @@ var AuditLogModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (facto
|
|
|
7968
8208
|
|
|
7969
8209
|
|
|
7970
8210
|
|
|
7971
|
-
|
|
7972
|
-
|
|
8211
|
+
|
|
8212
|
+
|
|
8213
|
+
|
|
8214
|
+
|
|
8215
|
+
|
|
8216
|
+
|
|
8217
|
+
exports.RehydrationFactory = RehydrationFactory; exports.AbstractApiData = AbstractApiData; exports.HttpMethod = HttpMethod; exports.getLastApiTotal = getLastApiTotal; exports.clearLastApiTotal = clearLastApiTotal; exports.getLastApiMeta = getLastApiMeta; exports.clearLastApiMeta = clearLastApiMeta; 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.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.formatDate = formatDate; exports.exists = exists; exports.TableOptions = TableOptions; exports.getTableOptions = getTableOptions; exports.getTableComponents = getTableComponents; exports.userObjectSchema = userObjectSchema; exports.entityObjectSchema = entityObjectSchema; exports.getInitials = getInitials; 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.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.HowTo = HowTo; exports.HowToModule = HowToModule; exports.HowToFields = HowToFields; exports.HowToService = HowToService; exports.Assistant = Assistant; exports.AssistantModule = AssistantModule; exports.AssistantMessage = AssistantMessage; exports.AssistantService = AssistantService; exports.AssistantMessageModule = AssistantMessageModule; exports.AssistantMessageService = AssistantMessageService; 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.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.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.AuditLog = AuditLog; exports.AuditLogService = AuditLogService; exports.AuditLogModule = AuditLogModule;
|
|
8218
|
+
//# sourceMappingURL=chunk-DS4IBFWA.js.map
|