@carlonicora/nextjs-jsonapi 3.28.2 → 4.0.1
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-36VL2TNM.js → BlockNoteEditor-BXMTGKDV.js} +21 -20
- package/dist/BlockNoteEditor-BXMTGKDV.js.map +1 -0
- package/dist/{BlockNoteEditor-4IDXT6ZU.mjs → BlockNoteEditor-FGVQP35E.mjs} +9 -8
- package/dist/{BlockNoteEditor-4IDXT6ZU.mjs.map → BlockNoteEditor-FGVQP35E.mjs.map} +1 -1
- package/dist/{BlockNoteViewer-KRTAFTUX.mjs → BlockNoteViewer-DQYT6IJW.mjs} +3 -3
- package/dist/{BlockNoteViewer-7BFNTN4E.js → BlockNoteViewer-YH7G66PS.js} +4 -4
- package/dist/{BlockNoteViewer-7BFNTN4E.js.map → BlockNoteViewer-YH7G66PS.js.map} +1 -1
- package/dist/{HandbookSectionInterface-DgYH--Ik.d.mts → HandbookSectionInterface-BYsmnPEz.d.mts} +1 -1
- package/dist/{HandbookSectionInterface-Ck1wZJ81.d.ts → HandbookSectionInterface-OePKPbqN.d.ts} +1 -1
- package/dist/{JsonApiRequest-UHOWNI3O.mjs → JsonApiRequest-MEP6AXDT.mjs} +2 -2
- package/dist/JsonApiRequest-OB6WL4LA.js +26 -0
- package/dist/{JsonApiRequest-TE5WD3WS.js.map → JsonApiRequest-OB6WL4LA.js.map} +1 -1
- package/dist/ServerSession-DFNNNkg7.d.ts +29 -0
- package/dist/ServerSession-DK1z0_Ql.d.mts +29 -0
- package/dist/{analytics.modules-CfczU12P.d.ts → analytics.modules-Bsacu6ik.d.ts} +1 -1
- package/dist/{analytics.modules-pzGwMASI.d.mts → analytics.modules-txdCLNG-.d.mts} +1 -1
- package/dist/billing/index.js +404 -402
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +10 -8
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-7B4E42R5.mjs → chunk-3CZ2GK5R.mjs} +33 -9
- package/dist/chunk-3CZ2GK5R.mjs.map +1 -0
- package/dist/{chunk-4Z45NYPR.js → chunk-5W5MN7JP.js} +14 -83
- package/dist/chunk-5W5MN7JP.js.map +1 -0
- package/dist/{chunk-CAKOFJZD.js → chunk-6OFANJTE.js} +195 -142
- package/dist/chunk-6OFANJTE.js.map +1 -0
- package/dist/{chunk-5TRFNKJS.js → chunk-6TUB7Y6T.js} +23 -25
- package/dist/chunk-6TUB7Y6T.js.map +1 -0
- package/dist/{chunk-37DMFVLN.mjs → chunk-7SCREMTX.mjs} +4 -3
- package/dist/{chunk-37DMFVLN.mjs.map → chunk-7SCREMTX.mjs.map} +1 -1
- package/dist/{chunk-Q6J2ICKO.mjs → chunk-ADZSH3MG.mjs} +3 -72
- package/dist/chunk-ADZSH3MG.mjs.map +1 -0
- package/dist/{chunk-E3I4MT53.mjs → chunk-AQZ3T4BR.mjs} +71 -18
- package/dist/chunk-AQZ3T4BR.mjs.map +1 -0
- package/dist/{chunk-SJLXPHK5.mjs → chunk-E2LENTUH.mjs} +22 -24
- package/dist/chunk-E2LENTUH.mjs.map +1 -0
- package/dist/chunk-EBEXWN3I.mjs +17 -0
- package/dist/chunk-EBEXWN3I.mjs.map +1 -0
- package/dist/chunk-G4JR3SFV.js +28 -0
- package/dist/chunk-G4JR3SFV.js.map +1 -0
- package/dist/chunk-IK65TDQH.js +15 -0
- package/dist/chunk-IK65TDQH.js.map +1 -0
- package/dist/{chunk-GHFMKH3M.js → chunk-JEQ34Z5E.js} +62 -38
- package/dist/chunk-JEQ34Z5E.js.map +1 -0
- package/dist/{chunk-KOTKKBJT.js → chunk-NFCXUAE6.js} +1328 -1183
- package/dist/chunk-NFCXUAE6.js.map +1 -0
- package/dist/chunk-OEOK6A3P.js +17 -0
- package/dist/chunk-OEOK6A3P.js.map +1 -0
- package/dist/chunk-PW42LRSL.mjs +28 -0
- package/dist/chunk-PW42LRSL.mjs.map +1 -0
- package/dist/{chunk-U65JPKO3.mjs → chunk-R6ZYB4VN.mjs} +2 -2
- package/dist/chunk-T7SAW3UW.mjs +15 -0
- package/dist/chunk-T7SAW3UW.mjs.map +1 -0
- package/dist/{chunk-GKDHYB2R.js → chunk-TWBZ2GSX.js} +3 -3
- package/dist/{chunk-GKDHYB2R.js.map → chunk-TWBZ2GSX.js.map} +1 -1
- package/dist/{chunk-26MQIJNB.js → chunk-WGVNJXZO.js} +4 -3
- package/dist/chunk-WGVNJXZO.js.map +1 -0
- package/dist/{chunk-HPUV6FBW.mjs → chunk-WJC4SYRL.mjs} +2131 -1986
- package/dist/chunk-WJC4SYRL.mjs.map +1 -0
- package/dist/client/index.d.mts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/index.js +6 -5
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +13 -12
- package/dist/components/index.d.mts +16 -6
- package/dist/components/index.d.ts +16 -6
- package/dist/components/index.js +8 -5
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +9 -6
- package/dist/{config-3N1LSrcC.d.ts → config-B6UB7j69.d.ts} +1 -1
- package/dist/{config-BmufyEj6.d.mts → config-CEAq4Ozy.d.mts} +10 -1
- package/dist/{config-AVtuvfM1.d.ts → config-DydDHCfb.d.ts} +10 -1
- package/dist/{config-BSKTYDoh.d.mts → config-n-ZpPmOL.d.mts} +1 -1
- package/dist/contexts/index.d.mts +28 -4
- package/dist/contexts/index.d.ts +28 -4
- package/dist/contexts/index.js +10 -5
- package/dist/contexts/index.js.map +1 -1
- package/dist/contexts/index.mjs +9 -4
- package/dist/core/index.d.mts +6 -6
- package/dist/core/index.d.ts +6 -6
- package/dist/core/index.js +5 -5
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +4 -4
- package/dist/features/analytics/index.d.mts +2 -2
- package/dist/features/analytics/index.d.ts +2 -2
- package/dist/features/analytics/index.js +124 -123
- package/dist/features/analytics/index.js.map +1 -1
- package/dist/features/analytics/index.mjs +6 -5
- package/dist/features/analytics/index.mjs.map +1 -1
- package/dist/features/analytics/server.d.mts +10 -2
- package/dist/features/analytics/server.d.ts +10 -2
- package/dist/features/analytics/server.js +8 -6
- package/dist/features/analytics/server.js.map +1 -1
- package/dist/features/analytics/server.mjs +6 -4
- package/dist/features/analytics/server.mjs.map +1 -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 +39 -38
- package/dist/features/help/index.js.map +1 -1
- package/dist/features/help/index.mjs +5 -4
- package/dist/features/help/index.mjs.map +1 -1
- package/dist/features/tokenusage/index.d.mts +2 -2
- package/dist/features/tokenusage/index.d.ts +2 -2
- package/dist/features/tokenusage/index.js +127 -126
- package/dist/features/tokenusage/index.js.map +1 -1
- package/dist/features/tokenusage/index.mjs +6 -5
- package/dist/features/tokenusage/index.mjs.map +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -9
- package/dist/next-config/index.d.mts +43 -0
- package/dist/next-config/index.d.ts +43 -0
- package/dist/next-config/index.js +230 -0
- package/dist/next-config/index.js.map +1 -0
- package/dist/next-config/index.mjs +230 -0
- package/dist/next-config/index.mjs.map +1 -0
- package/dist/{request-FXF63NSQ.mjs → request-3IUMNVOS.mjs} +2 -2
- package/dist/request-LZBAOT3Y.js +8 -0
- package/dist/request-LZBAOT3Y.js.map +1 -0
- package/dist/server/cachedGet.d.mts +28 -0
- package/dist/server/cachedGet.d.ts +28 -0
- package/dist/server/cachedGet.js +60 -0
- package/dist/server/cachedGet.js.map +1 -0
- package/dist/server/cachedGet.mjs +60 -0
- package/dist/server/cachedGet.mjs.map +1 -0
- package/dist/server/cachedGet.stub.d.mts +7 -0
- package/dist/server/cachedGet.stub.d.ts +7 -0
- package/dist/server/cachedGet.stub.js +17 -0
- package/dist/server/cachedGet.stub.js.map +1 -0
- package/dist/server/cachedGet.stub.mjs +17 -0
- package/dist/server/cachedGet.stub.mjs.map +1 -0
- package/dist/server/index.d.mts +27 -25
- package/dist/server/index.d.ts +27 -25
- package/dist/server/index.js +13 -6
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +15 -8
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/index.mjs.map +1 -1
- package/dist/{types-D0uLYV2P.d.mts → types-Bq_UA8Lg.d.mts} +1 -1
- package/dist/{types-Cn153-mH.d.ts → types-bsm8Fp55.d.ts} +1 -1
- package/dist/{usePageUrlGenerator-B-3FRKBD.d.ts → usePageUrlGenerator-J_ECv-oQ.d.ts} +1 -1
- package/dist/{usePageUrlGenerator-CCJ_cdQy.d.mts → usePageUrlGenerator-uKBjAKqC.d.mts} +1 -1
- package/package.json +12 -1
- package/src/components/forms/__tests__/EditorSheet.test.tsx +25 -1
- package/src/components/forms/__tests__/useEditorDialog.test.ts +164 -1
- package/src/components/forms/useEditorDialog.ts +69 -2
- package/src/contexts/SessionContext.tsx +20 -0
- package/src/contexts/SocketContext.tsx +30 -3
- package/src/contexts/ViewportContext.tsx +17 -2
- package/src/contexts/__tests__/SessionContext.test.tsx +58 -0
- package/src/contexts/__tests__/SocketContext.session.test.tsx +77 -0
- package/src/contexts/index.ts +1 -0
- package/src/core/abstracts/AbstractService.ts +4 -6
- package/src/core/abstracts/__tests__/AbstractService.locale.test.ts +64 -0
- package/src/features/analytics/components/server/AnalyticsAdminPage.tsx +5 -1
- package/src/features/analytics/components/server/AnalyticsJourneyPage.tsx +5 -1
- package/src/features/notification/contexts/NotificationContext.tsx +5 -2
- package/src/features/notification/contexts/__tests__/NotificationContext.spec.tsx +22 -0
- package/src/features/user/contexts/CurrentUserContext.tsx +7 -5
- package/src/features/user/contexts/__tests__/CurrentUserContext.spec.tsx +63 -3
- package/src/hooks/__tests__/useSocket.render.test.ts +22 -0
- package/src/hooks/useSocket.ts +0 -1
- package/src/i18n/__tests__/config.test.ts +27 -0
- package/src/i18n/config.ts +17 -0
- package/src/i18n/index.ts +2 -0
- package/src/next-config/__tests__/createNextConfig.test.ts +268 -0
- package/src/next-config/csp.ts +128 -0
- package/src/next-config/headers.ts +61 -0
- package/src/next-config/index.ts +114 -0
- package/src/server/JsonApiServer.ts +3 -1
- package/src/server/ServerSession.ts +29 -1
- package/src/server/__tests__/JsonApiServer.test.ts +41 -0
- package/src/server/__tests__/ServerSession.read.test.ts +67 -0
- package/src/server/__tests__/cache.test.ts +48 -0
- package/src/server/__tests__/cachedGet.test.ts +125 -0
- package/src/server/__tests__/request.test.ts +96 -1
- package/src/server/cache.ts +21 -4
- package/src/server/cacheDigest.ts +10 -0
- package/src/server/cacheProfiles.ts +15 -0
- package/src/server/cachedGet.stub.ts +15 -0
- package/src/server/cachedGet.ts +80 -0
- package/src/server/request.ts +33 -32
- package/src/shadcnui/ui/__tests__/sidebar.menu-skeleton.test.tsx +50 -0
- package/src/shadcnui/ui/__tests__/sidebar.session.test.tsx +133 -0
- package/src/shadcnui/ui/sidebar.tsx +121 -18
- package/src/testing/matchers/jsonApiMatchers.ts +1 -0
- package/src/unified/JsonApiRequest.ts +4 -1
- package/src/unified/__tests__/JsonApiGet.cache.test.ts +51 -0
- package/src/utils/__tests__/map-thenable.test.ts +29 -0
- package/src/utils/__tests__/use-mobile.test.tsx +102 -1
- package/src/utils/map-thenable.ts +15 -0
- package/src/utils/use-mobile.tsx +13 -4
- package/dist/BlockNoteEditor-36VL2TNM.js.map +0 -1
- package/dist/JsonApiRequest-TE5WD3WS.js +0 -26
- package/dist/chunk-26MQIJNB.js.map +0 -1
- package/dist/chunk-4Z45NYPR.js.map +0 -1
- package/dist/chunk-5TRFNKJS.js.map +0 -1
- package/dist/chunk-7B4E42R5.mjs.map +0 -1
- package/dist/chunk-CAKOFJZD.js.map +0 -1
- package/dist/chunk-E3I4MT53.mjs.map +0 -1
- package/dist/chunk-GHFMKH3M.js.map +0 -1
- package/dist/chunk-HPUV6FBW.mjs.map +0 -1
- package/dist/chunk-KOTKKBJT.js.map +0 -1
- package/dist/chunk-Q6J2ICKO.mjs.map +0 -1
- package/dist/chunk-SJLXPHK5.mjs.map +0 -1
- package/dist/request-ZTX6I63X.js +0 -8
- package/dist/request-ZTX6I63X.js.map +0 -1
- /package/dist/{BlockNoteViewer-KRTAFTUX.mjs.map → BlockNoteViewer-DQYT6IJW.mjs.map} +0 -0
- /package/dist/{JsonApiRequest-UHOWNI3O.mjs.map → JsonApiRequest-MEP6AXDT.mjs.map} +0 -0
- /package/dist/{chunk-U65JPKO3.mjs.map → chunk-R6ZYB4VN.mjs.map} +0 -0
- /package/dist/{request-FXF63NSQ.mjs.map → request-3IUMNVOS.mjs.map} +0 -0
|
@@ -1,7 +1,9 @@
|
|
|
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(); } }
|
|
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;
|
|
2
2
|
|
|
3
|
+
var _chunkLXKSUWAVjs = require('./chunk-LXKSUWAV.js');
|
|
3
4
|
|
|
4
5
|
|
|
6
|
+
var _chunkJTPRJNT2js = require('./chunk-JTPRJNT2.js');
|
|
5
7
|
|
|
6
8
|
|
|
7
9
|
|
|
@@ -9,13 +11,11 @@
|
|
|
9
11
|
|
|
10
12
|
|
|
11
13
|
|
|
12
|
-
var _chunk26MQIJNBjs = require('./chunk-26MQIJNB.js');
|
|
13
14
|
|
|
14
15
|
|
|
15
|
-
var _chunkLXKSUWAVjs = require('./chunk-LXKSUWAV.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkWGVNJXZOjs = require('./chunk-WGVNJXZO.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunk7QVYU63Ejs = require('./chunk-7QVYU63E.js');
|
|
@@ -26,12 +26,12 @@ var RehydrationFactory = class {
|
|
|
26
26
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "RehydrationFactory");
|
|
27
27
|
}
|
|
28
28
|
static rehydrate(classKey, data) {
|
|
29
|
-
const factoryClass =
|
|
29
|
+
const factoryClass = _chunkWGVNJXZOjs.DataClassRegistry.get(classKey);
|
|
30
30
|
const instance = new factoryClass();
|
|
31
31
|
return instance.rehydrate(data);
|
|
32
32
|
}
|
|
33
33
|
static rehydrateList(classKey, data) {
|
|
34
|
-
const factoryClass =
|
|
34
|
+
const factoryClass = _chunkWGVNJXZOjs.DataClassRegistry.get(classKey);
|
|
35
35
|
const response = data.map((item) => {
|
|
36
36
|
const instance = new factoryClass();
|
|
37
37
|
return instance.rehydrate(item);
|
|
@@ -271,6 +271,55 @@ function clearLastApiMeta() {
|
|
|
271
271
|
}
|
|
272
272
|
_chunk7QVYU63Ejs.__name.call(void 0, clearLastApiMeta, "clearLastApiMeta");
|
|
273
273
|
|
|
274
|
+
// src/i18n/config.ts
|
|
275
|
+
var _config = null;
|
|
276
|
+
function configureI18n(config) {
|
|
277
|
+
_config = config;
|
|
278
|
+
}
|
|
279
|
+
_chunk7QVYU63Ejs.__name.call(void 0, configureI18n, "configureI18n");
|
|
280
|
+
function useI18nRouter() {
|
|
281
|
+
if (!_optionalChain([_config, 'optionalAccess', _21 => _21.useRouter])) {
|
|
282
|
+
throw new Error("i18n not configured. Call configureI18n() at app startup.");
|
|
283
|
+
}
|
|
284
|
+
return _config.useRouter();
|
|
285
|
+
}
|
|
286
|
+
_chunk7QVYU63Ejs.__name.call(void 0, useI18nRouter, "useI18nRouter");
|
|
287
|
+
function useI18nTranslations(namespace) {
|
|
288
|
+
if (!_optionalChain([_config, 'optionalAccess', _22 => _22.useTranslations])) {
|
|
289
|
+
return (key) => key;
|
|
290
|
+
}
|
|
291
|
+
return _config.useTranslations(namespace);
|
|
292
|
+
}
|
|
293
|
+
_chunk7QVYU63Ejs.__name.call(void 0, useI18nTranslations, "useI18nTranslations");
|
|
294
|
+
function getI18nLink() {
|
|
295
|
+
if (!_optionalChain([_config, 'optionalAccess', _23 => _23.Link])) {
|
|
296
|
+
throw new Error("i18n not configured. Call configureI18n() at app startup.");
|
|
297
|
+
}
|
|
298
|
+
return _config.Link;
|
|
299
|
+
}
|
|
300
|
+
_chunk7QVYU63Ejs.__name.call(void 0, getI18nLink, "getI18nLink");
|
|
301
|
+
function useI18nLocale() {
|
|
302
|
+
if (_optionalChain([_config, 'optionalAccess', _24 => _24.useLocale])) {
|
|
303
|
+
return _config.useLocale();
|
|
304
|
+
}
|
|
305
|
+
return "en";
|
|
306
|
+
}
|
|
307
|
+
_chunk7QVYU63Ejs.__name.call(void 0, useI18nLocale, "useI18nLocale");
|
|
308
|
+
async function getI18nServerLocale() {
|
|
309
|
+
if (!_optionalChain([_config, 'optionalAccess', _25 => _25.getLocale])) {
|
|
310
|
+
throw new Error("i18n not configured. Call configureI18n() with getLocale at app startup.");
|
|
311
|
+
}
|
|
312
|
+
return _config.getLocale();
|
|
313
|
+
}
|
|
314
|
+
_chunk7QVYU63Ejs.__name.call(void 0, getI18nServerLocale, "getI18nServerLocale");
|
|
315
|
+
function useI18nDateFnsLocale() {
|
|
316
|
+
if (_optionalChain([_config, 'optionalAccess', _26 => _26.useDateFnsLocale])) {
|
|
317
|
+
return _config.useDateFnsLocale();
|
|
318
|
+
}
|
|
319
|
+
return void 0;
|
|
320
|
+
}
|
|
321
|
+
_chunk7QVYU63Ejs.__name.call(void 0, useI18nDateFnsLocale, "useI18nDateFnsLocale");
|
|
322
|
+
|
|
274
323
|
// src/core/abstracts/AbstractService.ts
|
|
275
324
|
var HttpMethod = /* @__PURE__ */ ((HttpMethod2) => {
|
|
276
325
|
HttpMethod2["GET"] = "GET";
|
|
@@ -343,12 +392,11 @@ var AbstractService = class {
|
|
|
343
392
|
* Make an API call with automatic environment detection and error handling.
|
|
344
393
|
*/
|
|
345
394
|
static async callApi(params) {
|
|
346
|
-
const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-
|
|
395
|
+
const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-OB6WL4LA.js")));
|
|
347
396
|
let apiResponse;
|
|
348
397
|
let language = "en";
|
|
349
398
|
if (typeof window === "undefined") {
|
|
350
|
-
|
|
351
|
-
language = await _asyncNullishCoalesce(await getLocale(), async () => ( "en"));
|
|
399
|
+
language = await getI18nServerLocale();
|
|
352
400
|
} else {
|
|
353
401
|
language = this.getClientLocale();
|
|
354
402
|
}
|
|
@@ -433,7 +481,7 @@ var AbstractService = class {
|
|
|
433
481
|
if (apiResponse.next && params.next) params.next.next = apiResponse.next;
|
|
434
482
|
if (apiResponse.prev && params.previous) params.previous.previous = apiResponse.prev;
|
|
435
483
|
if (apiResponse.self && params.self) params.self.self = apiResponse.self;
|
|
436
|
-
if (_optionalChain([apiResponse, 'access',
|
|
484
|
+
if (_optionalChain([apiResponse, 'access', _27 => _27.meta, 'optionalAccess', _28 => _28.total]) !== void 0 && params.total) params.total.total = apiResponse.meta.total;
|
|
437
485
|
setLastApiResponse(apiResponse.meta);
|
|
438
486
|
return apiResponse.data;
|
|
439
487
|
}
|
|
@@ -441,12 +489,11 @@ var AbstractService = class {
|
|
|
441
489
|
* Make an API call and return both data and meta from the response.
|
|
442
490
|
*/
|
|
443
491
|
static async callApiWithMeta(params) {
|
|
444
|
-
const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-
|
|
492
|
+
const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-OB6WL4LA.js")));
|
|
445
493
|
let apiResponse;
|
|
446
494
|
let language = "en";
|
|
447
495
|
if (typeof window === "undefined") {
|
|
448
|
-
|
|
449
|
-
language = await _asyncNullishCoalesce(await getLocale(), async () => ( "en"));
|
|
496
|
+
language = await getI18nServerLocale();
|
|
450
497
|
} else {
|
|
451
498
|
language = this.getClientLocale();
|
|
452
499
|
}
|
|
@@ -527,11 +574,10 @@ var AbstractService = class {
|
|
|
527
574
|
* Get raw JSON:API response data without deserialization.
|
|
528
575
|
*/
|
|
529
576
|
static async getRawData(params) {
|
|
530
|
-
const { JsonApiGet: JsonApiGet2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-
|
|
577
|
+
const { JsonApiGet: JsonApiGet2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-OB6WL4LA.js")));
|
|
531
578
|
let language = "en";
|
|
532
579
|
if (typeof window === "undefined") {
|
|
533
|
-
|
|
534
|
-
language = await _asyncNullishCoalesce(await getLocale(), async () => ( "en"));
|
|
580
|
+
language = await getI18nServerLocale();
|
|
535
581
|
} else {
|
|
536
582
|
language = this.getClientLocale();
|
|
537
583
|
}
|
|
@@ -563,16 +609,16 @@ var _clientConfig = null;
|
|
|
563
609
|
function configureClientJsonApi(config) {
|
|
564
610
|
_clientConfig = config;
|
|
565
611
|
if (config.bootstrapper) {
|
|
566
|
-
|
|
612
|
+
_chunkWGVNJXZOjs.setBootstrapper.call(void 0, config.bootstrapper);
|
|
567
613
|
config.bootstrapper();
|
|
568
614
|
}
|
|
569
615
|
}
|
|
570
616
|
_chunk7QVYU63Ejs.__name.call(void 0, configureClientJsonApi, "configureClientJsonApi");
|
|
571
617
|
function getClientApiUrl() {
|
|
572
|
-
if (_optionalChain([_clientConfig, 'optionalAccess',
|
|
618
|
+
if (_optionalChain([_clientConfig, 'optionalAccess', _29 => _29.apiUrl])) {
|
|
573
619
|
return _clientConfig.apiUrl;
|
|
574
620
|
}
|
|
575
|
-
const envUrl =
|
|
621
|
+
const envUrl = _chunkWGVNJXZOjs.ENV.API_URL;
|
|
576
622
|
if (!envUrl) {
|
|
577
623
|
throw new Error(
|
|
578
624
|
"API URL not configured. Use configureClientJsonApi() or set NEXT_PUBLIC_API_URL environment variable."
|
|
@@ -582,10 +628,10 @@ function getClientApiUrl() {
|
|
|
582
628
|
}
|
|
583
629
|
_chunk7QVYU63Ejs.__name.call(void 0, getClientApiUrl, "getClientApiUrl");
|
|
584
630
|
function getClientAppUrl() {
|
|
585
|
-
if (_optionalChain([_clientConfig, 'optionalAccess',
|
|
631
|
+
if (_optionalChain([_clientConfig, 'optionalAccess', _30 => _30.appUrl])) {
|
|
586
632
|
return _clientConfig.appUrl;
|
|
587
633
|
}
|
|
588
|
-
const envUrl =
|
|
634
|
+
const envUrl = _chunkWGVNJXZOjs.ENV.APP_URL;
|
|
589
635
|
if (!envUrl) {
|
|
590
636
|
throw new Error(
|
|
591
637
|
"App URL not configured. Use configureClientJsonApi({ appUrl }) or set NEXT_PUBLIC_ADDRESS environment variable."
|
|
@@ -595,11 +641,11 @@ function getClientAppUrl() {
|
|
|
595
641
|
}
|
|
596
642
|
_chunk7QVYU63Ejs.__name.call(void 0, getClientAppUrl, "getClientAppUrl");
|
|
597
643
|
function getClientTrackablePages() {
|
|
598
|
-
return _nullishCoalesce(_optionalChain([_clientConfig, 'optionalAccess',
|
|
644
|
+
return _nullishCoalesce(_optionalChain([_clientConfig, 'optionalAccess', _31 => _31.trackablePages]), () => ( []));
|
|
599
645
|
}
|
|
600
646
|
_chunk7QVYU63Ejs.__name.call(void 0, getClientTrackablePages, "getClientTrackablePages");
|
|
601
647
|
function runClientBootstrapper() {
|
|
602
|
-
if (_optionalChain([_clientConfig, 'optionalAccess',
|
|
648
|
+
if (_optionalChain([_clientConfig, 'optionalAccess', _32 => _32.bootstrapper])) {
|
|
603
649
|
_clientConfig.bootstrapper();
|
|
604
650
|
}
|
|
605
651
|
}
|
|
@@ -619,9 +665,9 @@ async function ClientJsonApiGet(params) {
|
|
|
619
665
|
token,
|
|
620
666
|
companyId: params.companyId,
|
|
621
667
|
language: params.language,
|
|
622
|
-
additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess',
|
|
668
|
+
additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _33 => _33.additionalHeaders])
|
|
623
669
|
});
|
|
624
|
-
return
|
|
670
|
+
return _chunkWGVNJXZOjs.translateResponse.call(void 0, {
|
|
625
671
|
classKey: params.classKey,
|
|
626
672
|
apiResponse,
|
|
627
673
|
companyId: params.companyId,
|
|
@@ -643,7 +689,7 @@ async function ClientJsonApiPost(params) {
|
|
|
643
689
|
if (!body) {
|
|
644
690
|
body = {};
|
|
645
691
|
} else if (params.overridesJsonApiCreation !== true) {
|
|
646
|
-
body =
|
|
692
|
+
body = _chunkWGVNJXZOjs.JsonApiDataFactory.create(params.classKey, body);
|
|
647
693
|
}
|
|
648
694
|
const apiResponse = await _chunkJTPRJNT2js.directFetch.call(void 0, {
|
|
649
695
|
method: "POST",
|
|
@@ -653,9 +699,9 @@ async function ClientJsonApiPost(params) {
|
|
|
653
699
|
files: params.files,
|
|
654
700
|
companyId: params.companyId,
|
|
655
701
|
language: params.language,
|
|
656
|
-
additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess',
|
|
702
|
+
additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _34 => _34.additionalHeaders])
|
|
657
703
|
});
|
|
658
|
-
return
|
|
704
|
+
return _chunkWGVNJXZOjs.translateResponse.call(void 0, {
|
|
659
705
|
classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
|
|
660
706
|
apiResponse,
|
|
661
707
|
companyId: params.companyId,
|
|
@@ -670,7 +716,7 @@ async function ClientJsonApiPut(params) {
|
|
|
670
716
|
if (!body) {
|
|
671
717
|
body = {};
|
|
672
718
|
} else {
|
|
673
|
-
body =
|
|
719
|
+
body = _chunkWGVNJXZOjs.JsonApiDataFactory.create(params.classKey, body);
|
|
674
720
|
}
|
|
675
721
|
const apiResponse = await _chunkJTPRJNT2js.directFetch.call(void 0, {
|
|
676
722
|
method: "PUT",
|
|
@@ -680,9 +726,9 @@ async function ClientJsonApiPut(params) {
|
|
|
680
726
|
files: params.files,
|
|
681
727
|
companyId: params.companyId,
|
|
682
728
|
language: params.language,
|
|
683
|
-
additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess',
|
|
729
|
+
additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _35 => _35.additionalHeaders])
|
|
684
730
|
});
|
|
685
|
-
return
|
|
731
|
+
return _chunkWGVNJXZOjs.translateResponse.call(void 0, {
|
|
686
732
|
classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
|
|
687
733
|
apiResponse,
|
|
688
734
|
companyId: params.companyId,
|
|
@@ -697,7 +743,7 @@ async function ClientJsonApiPatch(params) {
|
|
|
697
743
|
if (!body) {
|
|
698
744
|
body = {};
|
|
699
745
|
} else if (params.overridesJsonApiCreation !== true) {
|
|
700
|
-
body =
|
|
746
|
+
body = _chunkWGVNJXZOjs.JsonApiDataFactory.create(params.classKey, body);
|
|
701
747
|
}
|
|
702
748
|
const apiResponse = await _chunkJTPRJNT2js.directFetch.call(void 0, {
|
|
703
749
|
method: "PATCH",
|
|
@@ -707,9 +753,9 @@ async function ClientJsonApiPatch(params) {
|
|
|
707
753
|
files: params.files,
|
|
708
754
|
companyId: params.companyId,
|
|
709
755
|
language: params.language,
|
|
710
|
-
additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess',
|
|
756
|
+
additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _36 => _36.additionalHeaders])
|
|
711
757
|
});
|
|
712
|
-
return
|
|
758
|
+
return _chunkWGVNJXZOjs.translateResponse.call(void 0, {
|
|
713
759
|
classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
|
|
714
760
|
apiResponse,
|
|
715
761
|
companyId: params.companyId,
|
|
@@ -726,9 +772,9 @@ async function ClientJsonApiDelete(params) {
|
|
|
726
772
|
token,
|
|
727
773
|
companyId: params.companyId,
|
|
728
774
|
language: params.language,
|
|
729
|
-
additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess',
|
|
775
|
+
additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _37 => _37.additionalHeaders])
|
|
730
776
|
});
|
|
731
|
-
return
|
|
777
|
+
return _chunkWGVNJXZOjs.translateResponse.call(void 0, {
|
|
732
778
|
classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
|
|
733
779
|
apiResponse,
|
|
734
780
|
companyId: params.companyId,
|
|
@@ -890,7 +936,7 @@ var ClientAbstractService = class {
|
|
|
890
936
|
if (apiResponse.next && params.next) params.next.next = apiResponse.next;
|
|
891
937
|
if (apiResponse.prev && params.previous) params.previous.previous = apiResponse.prev;
|
|
892
938
|
if (apiResponse.self && params.self) params.self.self = apiResponse.self;
|
|
893
|
-
if (_optionalChain([apiResponse, 'access',
|
|
939
|
+
if (_optionalChain([apiResponse, 'access', _38 => _38.meta, 'optionalAccess', _39 => _39.total]) !== void 0 && params.total) params.total.total = apiResponse.meta.total;
|
|
894
940
|
setLastApiResponse(apiResponse.meta);
|
|
895
941
|
return apiResponse.data;
|
|
896
942
|
}
|
|
@@ -941,7 +987,7 @@ var ModuleRegistrar = (_class2 = class {
|
|
|
941
987
|
}).map((key) => modulesClass[key]);
|
|
942
988
|
data.forEach((item) => {
|
|
943
989
|
if (item && item.model) {
|
|
944
|
-
|
|
990
|
+
_chunkWGVNJXZOjs.DataClassRegistry.registerObjectClass(item, item.model);
|
|
945
991
|
}
|
|
946
992
|
});
|
|
947
993
|
this._isBootstrapped = true;
|
|
@@ -951,7 +997,7 @@ var ModuleRegistrar = (_class2 = class {
|
|
|
951
997
|
*/
|
|
952
998
|
static reset() {
|
|
953
999
|
this._isBootstrapped = false;
|
|
954
|
-
|
|
1000
|
+
_chunkWGVNJXZOjs.DataClassRegistry.clear();
|
|
955
1001
|
}
|
|
956
1002
|
}, _class2.__initStatic2(), _class2);
|
|
957
1003
|
|
|
@@ -974,20 +1020,20 @@ var ModuleRegistryClass = class {
|
|
|
974
1020
|
get(name) {
|
|
975
1021
|
let module = this._modules.get(name);
|
|
976
1022
|
if (!module) {
|
|
977
|
-
const didBootstrap =
|
|
1023
|
+
const didBootstrap = _chunkWGVNJXZOjs.tryBootstrap.call(void 0, );
|
|
978
1024
|
if (didBootstrap) {
|
|
979
1025
|
module = this._modules.get(name);
|
|
980
1026
|
}
|
|
981
1027
|
}
|
|
982
1028
|
if (!module) {
|
|
983
|
-
const hint =
|
|
1029
|
+
const hint = _chunkWGVNJXZOjs.hasBootstrapper.call(void 0, ) ? "Bootstrap was called but module still not found. Check module registration." : "No bootstrapper registered. Ensure configureJsonApi({ bootstrapper }) is called before accessing modules.";
|
|
984
1030
|
throw new Error(`Module "${String(name)}" not registered. ${hint}`);
|
|
985
1031
|
}
|
|
986
1032
|
return module;
|
|
987
1033
|
}
|
|
988
1034
|
findByName(moduleName) {
|
|
989
1035
|
if (this._modules.size === 0) {
|
|
990
|
-
|
|
1036
|
+
_chunkWGVNJXZOjs.tryBootstrap.call(void 0, );
|
|
991
1037
|
}
|
|
992
1038
|
for (const module of this._modules.values()) {
|
|
993
1039
|
if (module.name === moduleName) {
|
|
@@ -998,7 +1044,7 @@ var ModuleRegistryClass = class {
|
|
|
998
1044
|
}
|
|
999
1045
|
getAllPageUrls() {
|
|
1000
1046
|
if (this._modules.size === 0) {
|
|
1001
|
-
|
|
1047
|
+
_chunkWGVNJXZOjs.tryBootstrap.call(void 0, );
|
|
1002
1048
|
}
|
|
1003
1049
|
const seen = /* @__PURE__ */ new Set();
|
|
1004
1050
|
const result = [];
|
|
@@ -1015,7 +1061,7 @@ var ModuleRegistryClass = class {
|
|
|
1015
1061
|
findByModelName(modelName) {
|
|
1016
1062
|
let module = this._modules.get(modelName);
|
|
1017
1063
|
if (!module) {
|
|
1018
|
-
const didBootstrap =
|
|
1064
|
+
const didBootstrap = _chunkWGVNJXZOjs.tryBootstrap.call(void 0, );
|
|
1019
1065
|
if (didBootstrap) {
|
|
1020
1066
|
module = this._modules.get(modelName);
|
|
1021
1067
|
}
|
|
@@ -1037,7 +1083,7 @@ var ModuleRegistryClass = class {
|
|
|
1037
1083
|
}
|
|
1038
1084
|
getAll() {
|
|
1039
1085
|
if (this._modules.size === 0) {
|
|
1040
|
-
|
|
1086
|
+
_chunkWGVNJXZOjs.tryBootstrap.call(void 0, );
|
|
1041
1087
|
}
|
|
1042
1088
|
return Array.from(this._modules.values());
|
|
1043
1089
|
}
|
|
@@ -1223,7 +1269,8 @@ function subscribeViewport(onChange) {
|
|
|
1223
1269
|
}
|
|
1224
1270
|
_chunk7QVYU63Ejs.__name.call(void 0, subscribeViewport, "subscribeViewport");
|
|
1225
1271
|
function useIsMobile() {
|
|
1226
|
-
const
|
|
1272
|
+
const provided = React2.useContext(getViewportContext());
|
|
1273
|
+
const seeded = provided instanceof Promise ? React2.use(provided) : provided;
|
|
1227
1274
|
const [legacy, setLegacy] = React2.useState(false);
|
|
1228
1275
|
React2.useEffect(() => {
|
|
1229
1276
|
if (seeded !== void 0) return;
|
|
@@ -1346,8 +1393,8 @@ var entityObjectSchema = _zod.z.object({
|
|
|
1346
1393
|
// src/utils/getInitials.ts
|
|
1347
1394
|
function getInitials(firstOrName, lastName) {
|
|
1348
1395
|
if (lastName !== void 0) {
|
|
1349
|
-
const first = _nullishCoalesce(_optionalChain([firstOrName, 'optionalAccess',
|
|
1350
|
-
const last = _nullishCoalesce(_optionalChain([lastName, 'optionalAccess',
|
|
1396
|
+
const first = _nullishCoalesce(_optionalChain([firstOrName, 'optionalAccess', _40 => _40.trim, 'call', _41 => _41(), 'optionalAccess', _42 => _42[0]]), () => ( ""));
|
|
1397
|
+
const last = _nullishCoalesce(_optionalChain([lastName, 'optionalAccess', _43 => _43.trim, 'call', _44 => _44(), 'optionalAccess', _45 => _45[0]]), () => ( ""));
|
|
1351
1398
|
if (first && last) return (first + last).toUpperCase();
|
|
1352
1399
|
return (firstOrName || lastName || "").slice(0, 2).toUpperCase();
|
|
1353
1400
|
}
|
|
@@ -1401,7 +1448,7 @@ function validateCodiceFiscale(codiceFiscale, options) {
|
|
|
1401
1448
|
}
|
|
1402
1449
|
} catch (e) {
|
|
1403
1450
|
}
|
|
1404
|
-
return _optionalChain([options, 'optionalAccess',
|
|
1451
|
+
return _optionalChain([options, 'optionalAccess', _46 => _46.allowPartitaIva]) === true && validatePartitaIva(cleaned);
|
|
1405
1452
|
}
|
|
1406
1453
|
_chunk7QVYU63Ejs.__name.call(void 0, validateCodiceFiscale, "validateCodiceFiscale");
|
|
1407
1454
|
function validateItalianTaxCode(value, type, options) {
|
|
@@ -2030,14 +2077,14 @@ var BlockNoteWordDiffRendererUtil = class {
|
|
|
2030
2077
|
return diffBlocks.map((block) => {
|
|
2031
2078
|
const updatedBlock = { ...block };
|
|
2032
2079
|
if (updatedBlock.diffId) {
|
|
2033
|
-
updatedBlock.accepted = _optionalChain([acceptedChanges, 'optionalAccess',
|
|
2034
|
-
updatedBlock.rejected = _optionalChain([rejectedChanges, 'optionalAccess',
|
|
2080
|
+
updatedBlock.accepted = _optionalChain([acceptedChanges, 'optionalAccess', _47 => _47.has, 'call', _48 => _48(updatedBlock.diffId)]) || false;
|
|
2081
|
+
updatedBlock.rejected = _optionalChain([rejectedChanges, 'optionalAccess', _49 => _49.has, 'call', _50 => _50(updatedBlock.diffId)]) || false;
|
|
2035
2082
|
}
|
|
2036
2083
|
if (updatedBlock.wordDiffs) {
|
|
2037
2084
|
updatedBlock.wordDiffs = updatedBlock.wordDiffs.map((wordDiff) => ({
|
|
2038
2085
|
...wordDiff,
|
|
2039
|
-
accepted: _optionalChain([acceptedChanges, 'optionalAccess',
|
|
2040
|
-
rejected: _optionalChain([rejectedChanges, 'optionalAccess',
|
|
2086
|
+
accepted: _optionalChain([acceptedChanges, 'optionalAccess', _51 => _51.has, 'call', _52 => _52(wordDiff.diffId)]) || false,
|
|
2087
|
+
rejected: _optionalChain([rejectedChanges, 'optionalAccess', _53 => _53.has, 'call', _54 => _54(wordDiff.diffId)]) || false
|
|
2041
2088
|
}));
|
|
2042
2089
|
}
|
|
2043
2090
|
if (updatedBlock.children) {
|
|
@@ -2062,7 +2109,7 @@ var BlockNoteWordDiffRendererUtil = class {
|
|
|
2062
2109
|
type: block.type || "paragraph",
|
|
2063
2110
|
props: this.getBlockProps(block),
|
|
2064
2111
|
content: Array.isArray(block.content) ? block.content : [],
|
|
2065
|
-
children: _optionalChain([block, 'access',
|
|
2112
|
+
children: _optionalChain([block, 'access', _55 => _55.children, 'optionalAccess', _56 => _56.map, 'call', _57 => _57(
|
|
2066
2113
|
(child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange)
|
|
2067
2114
|
)])
|
|
2068
2115
|
};
|
|
@@ -2075,7 +2122,7 @@ var BlockNoteWordDiffRendererUtil = class {
|
|
|
2075
2122
|
type: block.type || "paragraph",
|
|
2076
2123
|
props: block.props || {},
|
|
2077
2124
|
content: Array.isArray(block.content) ? block.content : [],
|
|
2078
|
-
children: _optionalChain([block, 'access',
|
|
2125
|
+
children: _optionalChain([block, 'access', _58 => _58.children, 'optionalAccess', _59 => _59.map, 'call', _60 => _60(
|
|
2079
2126
|
(child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange)
|
|
2080
2127
|
)])
|
|
2081
2128
|
};
|
|
@@ -2127,7 +2174,7 @@ var BlockNoteWordDiffRendererUtil = class {
|
|
|
2127
2174
|
type: block.type || "paragraph",
|
|
2128
2175
|
props: this.getBlockProps(block),
|
|
2129
2176
|
content,
|
|
2130
|
-
children: _optionalChain([block, 'access',
|
|
2177
|
+
children: _optionalChain([block, 'access', _61 => _61.children, 'optionalAccess', _62 => _62.map, 'call', _63 => _63(
|
|
2131
2178
|
(child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange)
|
|
2132
2179
|
)])
|
|
2133
2180
|
};
|
|
@@ -2149,7 +2196,7 @@ var BlockNoteWordDiffRendererUtil = class {
|
|
|
2149
2196
|
type: block.type || "paragraph",
|
|
2150
2197
|
props: block.props || {},
|
|
2151
2198
|
content: Array.isArray(content) ? content : [],
|
|
2152
|
-
children: _optionalChain([block, 'access',
|
|
2199
|
+
children: _optionalChain([block, 'access', _64 => _64.children, 'optionalAccess', _65 => _65.map, 'call', _66 => _66((child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange))]) || []
|
|
2153
2200
|
};
|
|
2154
2201
|
}
|
|
2155
2202
|
static groupAndRenderWordDiffs(wordDiffs) {
|
|
@@ -2990,14 +3037,14 @@ var AuthService = class extends AbstractService {
|
|
|
2990
3037
|
}
|
|
2991
3038
|
static async login(params) {
|
|
2992
3039
|
const language = params.language || "en-US";
|
|
2993
|
-
const apiResponse = await
|
|
3040
|
+
const apiResponse = await _chunkWGVNJXZOjs.JsonApiPost.call(void 0, {
|
|
2994
3041
|
classKey: Modules.Auth,
|
|
2995
3042
|
endpoint: new EndpointCreator({ endpoint: Modules.Auth, id: "login" }).generate(),
|
|
2996
3043
|
body: { email: params.email, password: params.password },
|
|
2997
3044
|
language
|
|
2998
3045
|
});
|
|
2999
3046
|
if (!apiResponse.ok) throw new Error(apiResponse.error);
|
|
3000
|
-
if (_optionalChain([apiResponse, 'access',
|
|
3047
|
+
if (_optionalChain([apiResponse, 'access', _67 => _67.raw, 'optionalAccess', _68 => _68.data, 'optionalAccess', _69 => _69.type]) === "two-factor-challenge") {
|
|
3001
3048
|
const challenge = rehydrate(Modules.TwoFactorChallenge, {
|
|
3002
3049
|
jsonApi: apiResponse.raw.data,
|
|
3003
3050
|
included: _nullishCoalesce(apiResponse.raw.included, () => ( []))
|
|
@@ -3011,9 +3058,9 @@ var AuthService = class extends AbstractService {
|
|
|
3011
3058
|
token: auth.token,
|
|
3012
3059
|
refreshToken: auth.refreshToken,
|
|
3013
3060
|
userId: auth.user.id,
|
|
3014
|
-
companyId: _optionalChain([auth, 'access',
|
|
3061
|
+
companyId: _optionalChain([auth, 'access', _70 => _70.user, 'access', _71 => _71.company, 'optionalAccess', _72 => _72.id]),
|
|
3015
3062
|
roles: auth.user.roles.map((role) => role.id),
|
|
3016
|
-
features: _nullishCoalesce(_optionalChain([auth, 'access',
|
|
3063
|
+
features: _nullishCoalesce(_optionalChain([auth, 'access', _73 => _73.user, 'access', _74 => _74.company, 'optionalAccess', _75 => _75.features, 'optionalAccess', _76 => _76.map, 'call', _77 => _77((feature) => feature.id)]), () => ( [])),
|
|
3017
3064
|
modules: auth.user.modules.map((module) => ({
|
|
3018
3065
|
id: module.id,
|
|
3019
3066
|
permissions: module.permissions
|
|
@@ -3023,8 +3070,8 @@ var AuthService = class extends AbstractService {
|
|
|
3023
3070
|
return auth.user;
|
|
3024
3071
|
}
|
|
3025
3072
|
static async logout(params) {
|
|
3026
|
-
const language = _optionalChain([params, 'optionalAccess',
|
|
3027
|
-
await
|
|
3073
|
+
const language = _optionalChain([params, 'optionalAccess', _78 => _78.language]) || "en-US";
|
|
3074
|
+
await _chunkWGVNJXZOjs.JsonApiDelete.call(void 0, {
|
|
3028
3075
|
classKey: Modules.Auth,
|
|
3029
3076
|
endpoint: new EndpointCreator({ endpoint: Modules.Auth }).generate(),
|
|
3030
3077
|
language
|
|
@@ -3036,7 +3083,7 @@ var AuthService = class extends AbstractService {
|
|
|
3036
3083
|
}
|
|
3037
3084
|
static async initialiseForgotPassword(params) {
|
|
3038
3085
|
const language = params.language || "en-US";
|
|
3039
|
-
const response = await
|
|
3086
|
+
const response = await _chunkWGVNJXZOjs.JsonApiPost.call(void 0, {
|
|
3040
3087
|
classKey: Modules.Auth,
|
|
3041
3088
|
endpoint: new EndpointCreator({ endpoint: Modules.Auth, id: "forgot" }).generate(),
|
|
3042
3089
|
body: { email: params.email },
|
|
@@ -3065,7 +3112,7 @@ var AuthService = class extends AbstractService {
|
|
|
3065
3112
|
}
|
|
3066
3113
|
static async validateCode(params) {
|
|
3067
3114
|
const language = params.language || "en-US";
|
|
3068
|
-
const apiResponse = await
|
|
3115
|
+
const apiResponse = await _chunkWGVNJXZOjs.JsonApiGet.call(void 0, {
|
|
3069
3116
|
classKey: Modules.Auth,
|
|
3070
3117
|
endpoint: new EndpointCreator({ endpoint: Modules.Auth, id: "validate", childEndpoint: params.code }).generate(),
|
|
3071
3118
|
language
|
|
@@ -3097,9 +3144,9 @@ var AuthService = class extends AbstractService {
|
|
|
3097
3144
|
token: auth.token,
|
|
3098
3145
|
refreshToken: auth.refreshToken,
|
|
3099
3146
|
userId: auth.user.id,
|
|
3100
|
-
companyId: _optionalChain([auth, 'access',
|
|
3147
|
+
companyId: _optionalChain([auth, 'access', _79 => _79.user, 'access', _80 => _80.company, 'optionalAccess', _81 => _81.id]),
|
|
3101
3148
|
roles: auth.user.roles.map((role) => role.id),
|
|
3102
|
-
features: _nullishCoalesce(_optionalChain([auth, 'access',
|
|
3149
|
+
features: _nullishCoalesce(_optionalChain([auth, 'access', _82 => _82.user, 'access', _83 => _83.company, 'optionalAccess', _84 => _84.features, 'optionalAccess', _85 => _85.map, 'call', _86 => _86((feature) => feature.id)]), () => ( [])),
|
|
3103
3150
|
modules: auth.user.modules.map((module) => ({
|
|
3104
3151
|
id: module.id,
|
|
3105
3152
|
permissions: module.permissions
|
|
@@ -3109,7 +3156,7 @@ var AuthService = class extends AbstractService {
|
|
|
3109
3156
|
}
|
|
3110
3157
|
static async completeOAuthRegistration(params) {
|
|
3111
3158
|
const endpoint = new EndpointCreator({ endpoint: Modules.Auth, id: "oauth", childEndpoint: "complete" });
|
|
3112
|
-
const response = await
|
|
3159
|
+
const response = await _chunkWGVNJXZOjs.JsonApiPost.call(void 0, {
|
|
3113
3160
|
classKey: Modules.Auth,
|
|
3114
3161
|
endpoint: endpoint.generate(),
|
|
3115
3162
|
body: params,
|
|
@@ -3347,9 +3394,9 @@ var TwoFactorService = class extends AbstractService {
|
|
|
3347
3394
|
token: auth.token,
|
|
3348
3395
|
refreshToken: auth.refreshToken,
|
|
3349
3396
|
userId: auth.user.id,
|
|
3350
|
-
companyId: _optionalChain([auth, 'access',
|
|
3397
|
+
companyId: _optionalChain([auth, 'access', _87 => _87.user, 'access', _88 => _88.company, 'optionalAccess', _89 => _89.id]),
|
|
3351
3398
|
roles: auth.user.roles.map((role) => role.id),
|
|
3352
|
-
features: _nullishCoalesce(_optionalChain([auth, 'access',
|
|
3399
|
+
features: _nullishCoalesce(_optionalChain([auth, 'access', _90 => _90.user, 'access', _91 => _91.company, 'optionalAccess', _92 => _92.features, 'optionalAccess', _93 => _93.map, 'call', _94 => _94((feature) => feature.id)]), () => ( [])),
|
|
3353
3400
|
modules: auth.user.modules.map((module) => ({
|
|
3354
3401
|
id: module.id,
|
|
3355
3402
|
permissions: module.permissions
|
|
@@ -3487,8 +3534,8 @@ var BillingService = class extends AbstractService {
|
|
|
3487
3534
|
type: Modules.StripeUsage,
|
|
3488
3535
|
method: "GET" /* GET */,
|
|
3489
3536
|
endpoint: endpoint.generate(),
|
|
3490
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
3491
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
3537
|
+
next: _optionalChain([params, 'optionalAccess', _95 => _95.next]),
|
|
3538
|
+
previous: _optionalChain([params, 'optionalAccess', _96 => _96.prev])
|
|
3492
3539
|
});
|
|
3493
3540
|
}
|
|
3494
3541
|
/**
|
|
@@ -3725,8 +3772,8 @@ var StripeCustomerService = class extends AbstractService {
|
|
|
3725
3772
|
type: Modules.StripePaymentMethod,
|
|
3726
3773
|
method: "GET" /* GET */,
|
|
3727
3774
|
endpoint: endpoint.generate(),
|
|
3728
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
3729
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
3775
|
+
next: _optionalChain([params, 'optionalAccess', _97 => _97.next]),
|
|
3776
|
+
previous: _optionalChain([params, 'optionalAccess', _98 => _98.prev])
|
|
3730
3777
|
});
|
|
3731
3778
|
}
|
|
3732
3779
|
/**
|
|
@@ -3940,15 +3987,15 @@ var StripeInvoiceService = class extends AbstractService {
|
|
|
3940
3987
|
const endpoint = new EndpointCreator({
|
|
3941
3988
|
endpoint: Modules.StripeInvoice
|
|
3942
3989
|
});
|
|
3943
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
3990
|
+
if (_optionalChain([params, 'optionalAccess', _99 => _99.status])) {
|
|
3944
3991
|
endpoint.addAdditionalParam("status", params.status);
|
|
3945
3992
|
}
|
|
3946
3993
|
return this.callApi({
|
|
3947
3994
|
type: Modules.StripeInvoice,
|
|
3948
3995
|
method: "GET" /* GET */,
|
|
3949
3996
|
endpoint: endpoint.generate(),
|
|
3950
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
3951
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
3997
|
+
next: _optionalChain([params, 'optionalAccess', _100 => _100.next]),
|
|
3998
|
+
previous: _optionalChain([params, 'optionalAccess', _101 => _101.prev])
|
|
3952
3999
|
});
|
|
3953
4000
|
}
|
|
3954
4001
|
/**
|
|
@@ -4165,18 +4212,18 @@ var StripePriceService = class extends AbstractService {
|
|
|
4165
4212
|
const endpoint = new EndpointCreator({
|
|
4166
4213
|
endpoint: Modules.StripePrice
|
|
4167
4214
|
});
|
|
4168
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
4215
|
+
if (_optionalChain([params, 'optionalAccess', _102 => _102.productId])) {
|
|
4169
4216
|
endpoint.addAdditionalParam("productId", params.productId);
|
|
4170
4217
|
}
|
|
4171
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
4218
|
+
if (_optionalChain([params, 'optionalAccess', _103 => _103.active]) !== void 0) {
|
|
4172
4219
|
endpoint.addAdditionalParam("active", params.active.toString());
|
|
4173
4220
|
}
|
|
4174
4221
|
return this.callApi({
|
|
4175
4222
|
type: Modules.StripePrice,
|
|
4176
4223
|
method: "GET" /* GET */,
|
|
4177
4224
|
endpoint: endpoint.generate(),
|
|
4178
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
4179
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
4225
|
+
next: _optionalChain([params, 'optionalAccess', _104 => _104.next]),
|
|
4226
|
+
previous: _optionalChain([params, 'optionalAccess', _105 => _105.prev])
|
|
4180
4227
|
});
|
|
4181
4228
|
}
|
|
4182
4229
|
/**
|
|
@@ -4348,15 +4395,15 @@ var StripeProductService = class extends AbstractService {
|
|
|
4348
4395
|
const endpoint = new EndpointCreator({
|
|
4349
4396
|
endpoint: Modules.StripeProduct
|
|
4350
4397
|
});
|
|
4351
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
4398
|
+
if (_optionalChain([params, 'optionalAccess', _106 => _106.active]) !== void 0) {
|
|
4352
4399
|
endpoint.addAdditionalParam("active", params.active.toString());
|
|
4353
4400
|
}
|
|
4354
4401
|
return this.callApi({
|
|
4355
4402
|
type: Modules.StripeProduct,
|
|
4356
4403
|
method: "GET" /* GET */,
|
|
4357
4404
|
endpoint: endpoint.generate(),
|
|
4358
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
4359
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
4405
|
+
next: _optionalChain([params, 'optionalAccess', _107 => _107.next]),
|
|
4406
|
+
previous: _optionalChain([params, 'optionalAccess', _108 => _108.prev])
|
|
4360
4407
|
});
|
|
4361
4408
|
}
|
|
4362
4409
|
/**
|
|
@@ -4579,8 +4626,8 @@ var StripeSubscriptionService = class extends AbstractService {
|
|
|
4579
4626
|
type: Modules.StripeSubscription,
|
|
4580
4627
|
method: "GET" /* GET */,
|
|
4581
4628
|
endpoint: endpoint.generate(),
|
|
4582
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
4583
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
4629
|
+
next: _optionalChain([params, 'optionalAccess', _109 => _109.next]),
|
|
4630
|
+
previous: _optionalChain([params, 'optionalAccess', _110 => _110.prev])
|
|
4584
4631
|
});
|
|
4585
4632
|
}
|
|
4586
4633
|
/**
|
|
@@ -4807,8 +4854,8 @@ var StripeUsageService = class extends AbstractService {
|
|
|
4807
4854
|
type: Modules.StripeUsage,
|
|
4808
4855
|
method: "GET" /* GET */,
|
|
4809
4856
|
endpoint: endpoint.generate(),
|
|
4810
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
4811
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
4857
|
+
next: _optionalChain([params, 'optionalAccess', _111 => _111.next]),
|
|
4858
|
+
previous: _optionalChain([params, 'optionalAccess', _112 => _112.prev])
|
|
4812
4859
|
});
|
|
4813
4860
|
}
|
|
4814
4861
|
/**
|
|
@@ -4856,8 +4903,8 @@ var StripeUsageService = class extends AbstractService {
|
|
|
4856
4903
|
type: Modules.StripeUsage,
|
|
4857
4904
|
method: "GET" /* GET */,
|
|
4858
4905
|
endpoint: endpoint.generate(),
|
|
4859
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
4860
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
4906
|
+
next: _optionalChain([params, 'optionalAccess', _113 => _113.next]),
|
|
4907
|
+
previous: _optionalChain([params, 'optionalAccess', _114 => _114.prev])
|
|
4861
4908
|
});
|
|
4862
4909
|
}
|
|
4863
4910
|
/**
|
|
@@ -4906,7 +4953,7 @@ var StripePromotionCodeService = class {
|
|
|
4906
4953
|
* @returns Validation result with discount details if valid
|
|
4907
4954
|
*/
|
|
4908
4955
|
static async validatePromotionCode(params) {
|
|
4909
|
-
const response = await
|
|
4956
|
+
const response = await _chunkWGVNJXZOjs.JsonApiPost.call(void 0, {
|
|
4910
4957
|
classKey: Modules.StripePromotionCode,
|
|
4911
4958
|
endpoint: `${STRIPE_PROMOTION_CODE_ENDPOINT}/validate`,
|
|
4912
4959
|
body: {
|
|
@@ -5293,8 +5340,8 @@ var AiConnectionService = class extends AbstractService {
|
|
|
5293
5340
|
});
|
|
5294
5341
|
return {
|
|
5295
5342
|
connections: _nullishCoalesce(data, () => ( [])),
|
|
5296
|
-
providerRegistry: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
5297
|
-
envDefaults: _nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
5343
|
+
providerRegistry: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _115 => _115.providerRegistry]), () => ( {})),
|
|
5344
|
+
envDefaults: _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _116 => _116.envDefaults]), () => ( {}))
|
|
5298
5345
|
};
|
|
5299
5346
|
}
|
|
5300
5347
|
/**
|
|
@@ -5728,8 +5775,8 @@ var ContentService = class extends AbstractService {
|
|
|
5728
5775
|
if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
|
|
5729
5776
|
if (params.search) endpoint.addAdditionalParam("search", params.search);
|
|
5730
5777
|
}
|
|
5731
|
-
if (_optionalChain([Modules, 'access',
|
|
5732
|
-
if (_optionalChain([Modules, 'access',
|
|
5778
|
+
if (_optionalChain([Modules, 'access', _117 => _117.Content, 'access', _118 => _118.inclusions, 'optionalAccess', _119 => _119.lists, 'optionalAccess', _120 => _120.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
|
|
5779
|
+
if (_optionalChain([Modules, 'access', _121 => _121.Content, 'access', _122 => _122.inclusions, 'optionalAccess', _123 => _123.lists, 'optionalAccess', _124 => _124.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
|
|
5733
5780
|
return this.callApi({
|
|
5734
5781
|
type: Modules.Content,
|
|
5735
5782
|
method: "GET" /* GET */,
|
|
@@ -5743,8 +5790,8 @@ var ContentService = class extends AbstractService {
|
|
|
5743
5790
|
id: params.id,
|
|
5744
5791
|
childEndpoint: "relevance"
|
|
5745
5792
|
});
|
|
5746
|
-
if (_optionalChain([Modules, 'access',
|
|
5747
|
-
if (_optionalChain([Modules, 'access',
|
|
5793
|
+
if (_optionalChain([Modules, 'access', _125 => _125.Content, 'access', _126 => _126.inclusions, 'optionalAccess', _127 => _127.lists, 'optionalAccess', _128 => _128.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
|
|
5794
|
+
if (_optionalChain([Modules, 'access', _129 => _129.Content, 'access', _130 => _130.inclusions, 'optionalAccess', _131 => _131.lists, 'optionalAccess', _132 => _132.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
|
|
5748
5795
|
return this.callApi({
|
|
5749
5796
|
type: Modules.Content,
|
|
5750
5797
|
method: "GET" /* GET */,
|
|
@@ -5760,8 +5807,8 @@ var ContentService = class extends AbstractService {
|
|
|
5760
5807
|
});
|
|
5761
5808
|
if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
|
|
5762
5809
|
if (params.search) endpoint.addAdditionalParam("search", params.search);
|
|
5763
|
-
if (_optionalChain([Modules, 'access',
|
|
5764
|
-
if (_optionalChain([Modules, 'access',
|
|
5810
|
+
if (_optionalChain([Modules, 'access', _133 => _133.Content, 'access', _134 => _134.inclusions, 'optionalAccess', _135 => _135.lists, 'optionalAccess', _136 => _136.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
|
|
5811
|
+
if (_optionalChain([Modules, 'access', _137 => _137.Content, 'access', _138 => _138.inclusions, 'optionalAccess', _139 => _139.lists, 'optionalAccess', _140 => _140.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
|
|
5765
5812
|
return this.callApi({
|
|
5766
5813
|
type: Modules.Content,
|
|
5767
5814
|
method: "GET" /* GET */,
|
|
@@ -5954,8 +6001,8 @@ var HowToService = class extends AbstractService {
|
|
|
5954
6001
|
const endpoint = new EndpointCreator({ endpoint: Modules.HowTo });
|
|
5955
6002
|
if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
|
|
5956
6003
|
if (params.search) endpoint.addAdditionalParam("search", params.search);
|
|
5957
|
-
if (_optionalChain([Modules, 'access',
|
|
5958
|
-
if (_optionalChain([Modules, 'access',
|
|
6004
|
+
if (_optionalChain([Modules, 'access', _141 => _141.HowTo, 'access', _142 => _142.inclusions, 'optionalAccess', _143 => _143.lists, 'optionalAccess', _144 => _144.fields])) endpoint.limitToFields(Modules.HowTo.inclusions.lists.fields);
|
|
6005
|
+
if (_optionalChain([Modules, 'access', _145 => _145.HowTo, 'access', _146 => _146.inclusions, 'optionalAccess', _147 => _147.lists, 'optionalAccess', _148 => _148.types])) endpoint.limitToType(Modules.HowTo.inclusions.lists.types);
|
|
5959
6006
|
return this.callApi({
|
|
5960
6007
|
type: Modules.HowTo,
|
|
5961
6008
|
method: "GET" /* GET */,
|
|
@@ -6435,7 +6482,7 @@ var HandbookThread = class extends AbstractApiData {
|
|
|
6435
6482
|
super.rehydrate(data);
|
|
6436
6483
|
const attributes = _nullishCoalesce(data.jsonApi.attributes, () => ( {}));
|
|
6437
6484
|
this._title = attributes.title;
|
|
6438
|
-
const fromMeta = _optionalChain([data, 'access',
|
|
6485
|
+
const fromMeta = _optionalChain([data, 'access', _149 => _149.jsonApi, 'access', _150 => _150.meta, 'optionalAccess', _151 => _151.messageCount]);
|
|
6439
6486
|
this._messageCount = typeof fromMeta === "number" ? fromMeta : typeof attributes.messageCount === "number" ? attributes.messageCount : 0;
|
|
6440
6487
|
const messages = this._readIncluded(
|
|
6441
6488
|
data,
|
|
@@ -6558,9 +6605,9 @@ var HandbookPageService = class extends AbstractService {
|
|
|
6558
6605
|
const endpoint = new EndpointCreator({ endpoint: Modules.HandbookPage });
|
|
6559
6606
|
if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
|
|
6560
6607
|
if (params.search) endpoint.addAdditionalParam("search", params.search);
|
|
6561
|
-
if (_optionalChain([Modules, 'access',
|
|
6608
|
+
if (_optionalChain([Modules, 'access', _152 => _152.HandbookPage, 'access', _153 => _153.inclusions, 'optionalAccess', _154 => _154.lists, 'optionalAccess', _155 => _155.fields]))
|
|
6562
6609
|
endpoint.limitToFields(Modules.HandbookPage.inclusions.lists.fields);
|
|
6563
|
-
if (_optionalChain([Modules, 'access',
|
|
6610
|
+
if (_optionalChain([Modules, 'access', _156 => _156.HandbookPage, 'access', _157 => _157.inclusions, 'optionalAccess', _158 => _158.lists, 'optionalAccess', _159 => _159.types]))
|
|
6564
6611
|
endpoint.limitToType(Modules.HandbookPage.inclusions.lists.types);
|
|
6565
6612
|
return this.callApi({
|
|
6566
6613
|
type: Modules.HandbookPage,
|
|
@@ -6609,7 +6656,7 @@ var HandbookSectionService = class extends AbstractService {
|
|
|
6609
6656
|
static async findMany() {
|
|
6610
6657
|
const endpoint = new EndpointCreator({ endpoint: Modules.HandbookSection });
|
|
6611
6658
|
endpoint.addAdditionalParam("fetchAll", "true");
|
|
6612
|
-
if (_optionalChain([Modules, 'access',
|
|
6659
|
+
if (_optionalChain([Modules, 'access', _160 => _160.HandbookSection, 'access', _161 => _161.inclusions, 'optionalAccess', _162 => _162.lists, 'optionalAccess', _163 => _163.fields]))
|
|
6613
6660
|
endpoint.limitToFields(Modules.HandbookSection.inclusions.lists.fields);
|
|
6614
6661
|
return this.callApi({
|
|
6615
6662
|
type: Modules.HandbookSection,
|
|
@@ -6666,9 +6713,9 @@ var HandbookThreadService = class extends AbstractService {
|
|
|
6666
6713
|
const endpoint = new EndpointCreator({ endpoint: Modules.HandbookThread });
|
|
6667
6714
|
if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
|
|
6668
6715
|
if (params.search) endpoint.addAdditionalParam("search", params.search);
|
|
6669
|
-
if (_optionalChain([Modules, 'access',
|
|
6716
|
+
if (_optionalChain([Modules, 'access', _164 => _164.HandbookThread, 'access', _165 => _165.inclusions, 'optionalAccess', _166 => _166.lists, 'optionalAccess', _167 => _167.fields]))
|
|
6670
6717
|
endpoint.limitToFields(Modules.HandbookThread.inclusions.lists.fields);
|
|
6671
|
-
if (_optionalChain([Modules, 'access',
|
|
6718
|
+
if (_optionalChain([Modules, 'access', _168 => _168.HandbookThread, 'access', _169 => _169.inclusions, 'optionalAccess', _170 => _170.lists, 'optionalAccess', _171 => _171.types]))
|
|
6672
6719
|
endpoint.limitToType(Modules.HandbookThread.inclusions.lists.types);
|
|
6673
6720
|
return this.callApi({
|
|
6674
6721
|
type: Modules.HandbookThread,
|
|
@@ -6755,15 +6802,15 @@ var Assistant = class extends AbstractApiData {
|
|
|
6755
6802
|
}
|
|
6756
6803
|
rehydrate(data) {
|
|
6757
6804
|
super.rehydrate(data);
|
|
6758
|
-
this._title = _optionalChain([data, 'access',
|
|
6759
|
-
this._engine = _optionalChain([data, 'access',
|
|
6760
|
-
const fromMeta = _optionalChain([data, 'access',
|
|
6761
|
-
const fromAttrs = _optionalChain([data, 'access',
|
|
6805
|
+
this._title = _optionalChain([data, 'access', _172 => _172.jsonApi, 'access', _173 => _173.attributes, 'optionalAccess', _174 => _174.title]);
|
|
6806
|
+
this._engine = _optionalChain([data, 'access', _175 => _175.jsonApi, 'access', _176 => _176.attributes, 'optionalAccess', _177 => _177.engine]);
|
|
6807
|
+
const fromMeta = _optionalChain([data, 'access', _178 => _178.jsonApi, 'access', _179 => _179.meta, 'optionalAccess', _180 => _180.messageCount]);
|
|
6808
|
+
const fromAttrs = _optionalChain([data, 'access', _181 => _181.jsonApi, 'access', _182 => _182.attributes, 'optionalAccess', _183 => _183.messageCount]);
|
|
6762
6809
|
this._messageCount = typeof fromMeta === "number" ? fromMeta : typeof fromAttrs === "number" ? fromAttrs : 0;
|
|
6763
|
-
const contentLinkage = _optionalChain([data, 'access',
|
|
6810
|
+
const contentLinkage = _optionalChain([data, 'access', _184 => _184.jsonApi, 'access', _185 => _185.relationships, 'optionalAccess', _186 => _186.content, 'optionalAccess', _187 => _187.data]);
|
|
6764
6811
|
const boundContent = Array.isArray(contentLinkage) ? contentLinkage[0] : contentLinkage;
|
|
6765
|
-
this._boundContentType = _optionalChain([boundContent, 'optionalAccess',
|
|
6766
|
-
this._boundContentId = _optionalChain([boundContent, 'optionalAccess',
|
|
6812
|
+
this._boundContentType = _optionalChain([boundContent, 'optionalAccess', _188 => _188.type]);
|
|
6813
|
+
this._boundContentId = _optionalChain([boundContent, 'optionalAccess', _189 => _189.id]);
|
|
6767
6814
|
return this;
|
|
6768
6815
|
}
|
|
6769
6816
|
createJsonApi(data) {
|
|
@@ -6879,11 +6926,11 @@ var AssistantMessage = (_class20 = class _AssistantMessage extends AbstractApiDa
|
|
|
6879
6926
|
this._inputTokens = attrs.inputTokens;
|
|
6880
6927
|
this._outputTokens = attrs.outputTokens;
|
|
6881
6928
|
this._messageType = attrs.messageType;
|
|
6882
|
-
const actionRelationship = _optionalChain([data, 'access',
|
|
6883
|
-
this._actionId = Array.isArray(actionRelationship) ? _optionalChain([actionRelationship, 'access',
|
|
6929
|
+
const actionRelationship = _optionalChain([data, 'access', _190 => _190.jsonApi, 'access', _191 => _191.relationships, 'optionalAccess', _192 => _192.action, 'optionalAccess', _193 => _193.data]);
|
|
6930
|
+
this._actionId = Array.isArray(actionRelationship) ? _optionalChain([actionRelationship, 'access', _194 => _194[0], 'optionalAccess', _195 => _195.id]) : _optionalChain([actionRelationship, 'optionalAccess', _196 => _196.id]);
|
|
6884
6931
|
const refs = this._readIncludedPolymorphic(data, "references", resolveReferenceableModules());
|
|
6885
6932
|
this._references = Array.isArray(refs) ? refs : refs ? [refs] : [];
|
|
6886
|
-
if (_optionalChain([data, 'access',
|
|
6933
|
+
if (_optionalChain([data, 'access', _197 => _197.jsonApi, 'access', _198 => _198.relationships, 'optionalAccess', _199 => _199.citations, 'optionalAccess', _200 => _200.data])) {
|
|
6887
6934
|
const citations = this._readIncludedWithMeta(
|
|
6888
6935
|
data,
|
|
6889
6936
|
"citations",
|
|
@@ -7139,9 +7186,9 @@ var AssistantMessageService = class extends AbstractService {
|
|
|
7139
7186
|
id: params.assistantId,
|
|
7140
7187
|
childEndpoint: Modules.AssistantMessage
|
|
7141
7188
|
});
|
|
7142
|
-
if (_optionalChain([Modules, 'access',
|
|
7189
|
+
if (_optionalChain([Modules, 'access', _201 => _201.AssistantMessage, 'access', _202 => _202.inclusions, 'optionalAccess', _203 => _203.lists, 'optionalAccess', _204 => _204.fields]))
|
|
7143
7190
|
endpoint.limitToFields(Modules.AssistantMessage.inclusions.lists.fields);
|
|
7144
|
-
if (_optionalChain([Modules, 'access',
|
|
7191
|
+
if (_optionalChain([Modules, 'access', _205 => _205.AssistantMessage, 'access', _206 => _206.inclusions, 'optionalAccess', _207 => _207.lists, 'optionalAccess', _208 => _208.types]))
|
|
7145
7192
|
endpoint.limitToType(Modules.AssistantMessage.inclusions.lists.types);
|
|
7146
7193
|
return this.callApi({
|
|
7147
7194
|
type: Modules.AssistantMessage,
|
|
@@ -7155,9 +7202,9 @@ var AssistantMessageService = class extends AbstractService {
|
|
|
7155
7202
|
endpoint: Modules.AssistantMessage,
|
|
7156
7203
|
id: params.id
|
|
7157
7204
|
});
|
|
7158
|
-
if (_optionalChain([Modules, 'access',
|
|
7205
|
+
if (_optionalChain([Modules, 'access', _209 => _209.AssistantMessage, 'access', _210 => _210.inclusions, 'optionalAccess', _211 => _211.lists, 'optionalAccess', _212 => _212.fields]))
|
|
7159
7206
|
endpoint.limitToFields(Modules.AssistantMessage.inclusions.lists.fields);
|
|
7160
|
-
if (_optionalChain([Modules, 'access',
|
|
7207
|
+
if (_optionalChain([Modules, 'access', _213 => _213.AssistantMessage, 'access', _214 => _214.inclusions, 'optionalAccess', _215 => _215.lists, 'optionalAccess', _216 => _216.types]))
|
|
7161
7208
|
endpoint.limitToType(Modules.AssistantMessage.inclusions.lists.types);
|
|
7162
7209
|
return this.callApi({
|
|
7163
7210
|
type: Modules.AssistantMessage,
|
|
@@ -7482,10 +7529,10 @@ var Notification = class extends AbstractApiData {
|
|
|
7482
7529
|
this._message = data.jsonApi.attributes.message;
|
|
7483
7530
|
this._actionUrl = data.jsonApi.attributes.actionUrl;
|
|
7484
7531
|
const rels = _nullishCoalesce(data.jsonApi.relationships, () => ( {}));
|
|
7485
|
-
const actorType = _optionalChain([rels, 'access',
|
|
7532
|
+
const actorType = _optionalChain([rels, 'access', _217 => _217.actor, 'optionalAccess', _218 => _218.data, 'optionalAccess', _219 => _219.type]);
|
|
7486
7533
|
this._actor = actorType ? this._readIncluded(data, "actor", Modules.findByName(actorType)) : void 0;
|
|
7487
|
-
const subjectName = Object.keys(rels).find((name) => name !== "actor" && _optionalChain([rels, 'access',
|
|
7488
|
-
const subjectType = subjectName ? _optionalChain([rels, 'access',
|
|
7534
|
+
const subjectName = Object.keys(rels).find((name) => name !== "actor" && _optionalChain([rels, 'access', _220 => _220[name], 'optionalAccess', _221 => _221.data, 'optionalAccess', _222 => _222.type]));
|
|
7535
|
+
const subjectType = subjectName ? _optionalChain([rels, 'access', _223 => _223[subjectName], 'optionalAccess', _224 => _224.data, 'optionalAccess', _225 => _225.type]) : void 0;
|
|
7489
7536
|
this._subject = subjectName && subjectType ? this._readIncluded(data, subjectName, Modules.findByName(subjectType)) : void 0;
|
|
7490
7537
|
return this;
|
|
7491
7538
|
}
|
|
@@ -8052,8 +8099,8 @@ var UserService = class extends AbstractService {
|
|
|
8052
8099
|
id: params.id,
|
|
8053
8100
|
childEndpoint: "user-relevance"
|
|
8054
8101
|
});
|
|
8055
|
-
if (_optionalChain([Modules, 'access',
|
|
8056
|
-
if (_optionalChain([Modules, 'access',
|
|
8102
|
+
if (_optionalChain([Modules, 'access', _226 => _226.User, 'access', _227 => _227.inclusions, 'optionalAccess', _228 => _228.lists, 'optionalAccess', _229 => _229.fields])) endpoint.limitToFields(Modules.User.inclusions.lists.fields);
|
|
8103
|
+
if (_optionalChain([Modules, 'access', _230 => _230.User, 'access', _231 => _231.inclusions, 'optionalAccess', _232 => _232.lists, 'optionalAccess', _233 => _233.types])) endpoint.limitToType(Modules.User.inclusions.lists.types);
|
|
8057
8104
|
return this.callApi({
|
|
8058
8105
|
type: Modules.User,
|
|
8059
8106
|
method: "GET" /* GET */,
|
|
@@ -8342,7 +8389,7 @@ var OAuthService = class extends AbstractService {
|
|
|
8342
8389
|
type: Modules.OAuth,
|
|
8343
8390
|
method: "GET" /* GET */,
|
|
8344
8391
|
endpoint: new EndpointCreator({ endpoint: "oauth/clients" }).generate(),
|
|
8345
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
8392
|
+
next: _optionalChain([params, 'optionalAccess', _234 => _234.next])
|
|
8346
8393
|
});
|
|
8347
8394
|
}
|
|
8348
8395
|
/**
|
|
@@ -8368,7 +8415,7 @@ var OAuthService = class extends AbstractService {
|
|
|
8368
8415
|
});
|
|
8369
8416
|
return {
|
|
8370
8417
|
client: result.data,
|
|
8371
|
-
clientSecret: _optionalChain([result, 'access',
|
|
8418
|
+
clientSecret: _optionalChain([result, 'access', _235 => _235.meta, 'optionalAccess', _236 => _236.clientSecret])
|
|
8372
8419
|
};
|
|
8373
8420
|
}
|
|
8374
8421
|
/**
|
|
@@ -8407,7 +8454,7 @@ var OAuthService = class extends AbstractService {
|
|
|
8407
8454
|
}).generate()
|
|
8408
8455
|
});
|
|
8409
8456
|
return {
|
|
8410
|
-
clientSecret: _optionalChain([result, 'access',
|
|
8457
|
+
clientSecret: _optionalChain([result, 'access', _237 => _237.meta, 'optionalAccess', _238 => _238.clientSecret])
|
|
8411
8458
|
};
|
|
8412
8459
|
}
|
|
8413
8460
|
// ==========================================
|
|
@@ -8444,7 +8491,7 @@ var OAuthService = class extends AbstractService {
|
|
|
8444
8491
|
overridesJsonApiCreation: true
|
|
8445
8492
|
});
|
|
8446
8493
|
return {
|
|
8447
|
-
redirectUrl: _optionalChain([result, 'access',
|
|
8494
|
+
redirectUrl: _optionalChain([result, 'access', _239 => _239.meta, 'optionalAccess', _240 => _240.redirectUrl])
|
|
8448
8495
|
};
|
|
8449
8496
|
}
|
|
8450
8497
|
/**
|
|
@@ -8460,7 +8507,7 @@ var OAuthService = class extends AbstractService {
|
|
|
8460
8507
|
overridesJsonApiCreation: true
|
|
8461
8508
|
});
|
|
8462
8509
|
return {
|
|
8463
|
-
redirectUrl: _optionalChain([result, 'access',
|
|
8510
|
+
redirectUrl: _optionalChain([result, 'access', _241 => _241.meta, 'optionalAccess', _242 => _242.redirectUrl])
|
|
8464
8511
|
};
|
|
8465
8512
|
}
|
|
8466
8513
|
};
|
|
@@ -8626,15 +8673,15 @@ var WaitlistService = class extends AbstractService {
|
|
|
8626
8673
|
*/
|
|
8627
8674
|
static async findMany(params) {
|
|
8628
8675
|
const endpoint = new EndpointCreator({ endpoint: Modules.Waitlist });
|
|
8629
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
8630
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
8631
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
8676
|
+
if (_optionalChain([params, 'optionalAccess', _243 => _243.status])) endpoint.addAdditionalParam("status", params.status);
|
|
8677
|
+
if (_optionalChain([params, 'optionalAccess', _244 => _244.search])) endpoint.addAdditionalParam("search", params.search);
|
|
8678
|
+
if (_optionalChain([params, 'optionalAccess', _245 => _245.fetchAll])) endpoint.addAdditionalParam("fetchAll", "true");
|
|
8632
8679
|
return this.callApi({
|
|
8633
8680
|
type: Modules.Waitlist,
|
|
8634
8681
|
method: "GET" /* GET */,
|
|
8635
8682
|
endpoint: endpoint.generate(),
|
|
8636
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
8637
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
8683
|
+
next: _optionalChain([params, 'optionalAccess', _246 => _246.next]),
|
|
8684
|
+
previous: _optionalChain([params, 'optionalAccess', _247 => _247.previous])
|
|
8638
8685
|
});
|
|
8639
8686
|
}
|
|
8640
8687
|
/**
|
|
@@ -8702,10 +8749,10 @@ var WaitlistService = class extends AbstractService {
|
|
|
8702
8749
|
method: "GET" /* GET */,
|
|
8703
8750
|
endpoint: endpoint.generate()
|
|
8704
8751
|
});
|
|
8705
|
-
const attributes = _optionalChain([response, 'access',
|
|
8752
|
+
const attributes = _optionalChain([response, 'access', _248 => _248.data, 'optionalAccess', _249 => _249._jsonApi, 'optionalAccess', _250 => _250.attributes]);
|
|
8706
8753
|
return {
|
|
8707
|
-
email: _optionalChain([attributes, 'optionalAccess',
|
|
8708
|
-
valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess',
|
|
8754
|
+
email: _optionalChain([attributes, 'optionalAccess', _251 => _251.email]),
|
|
8755
|
+
valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess', _252 => _252.valid]), () => ( false))
|
|
8709
8756
|
};
|
|
8710
8757
|
} catch (_error) {
|
|
8711
8758
|
return null;
|
|
@@ -8802,7 +8849,7 @@ var PermissionMapping = class extends AbstractApiData {
|
|
|
8802
8849
|
super.rehydrate(data);
|
|
8803
8850
|
this._roleId = data.jsonApi.attributes.roleId;
|
|
8804
8851
|
this._moduleId = data.jsonApi.attributes.moduleId;
|
|
8805
|
-
this._permissions = _optionalChain([data, 'access',
|
|
8852
|
+
this._permissions = _optionalChain([data, 'access', _253 => _253.jsonApi, 'access', _254 => _254.meta, 'optionalAccess', _255 => _255.permissions]);
|
|
8806
8853
|
return this;
|
|
8807
8854
|
}
|
|
8808
8855
|
};
|
|
@@ -10178,5 +10225,11 @@ var AuditLogModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (facto
|
|
|
10178
10225
|
|
|
10179
10226
|
|
|
10180
10227
|
|
|
10181
|
-
exports.RehydrationFactory = RehydrationFactory; exports.AbstractApiData = AbstractApiData; exports.getLastApiTotal = getLastApiTotal; exports.clearLastApiTotal = clearLastApiTotal; exports.getLastApiMeta = getLastApiMeta; exports.clearLastApiMeta = clearLastApiMeta; 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.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.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.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;
|
|
10182
|
-
|
|
10228
|
+
|
|
10229
|
+
|
|
10230
|
+
|
|
10231
|
+
|
|
10232
|
+
|
|
10233
|
+
|
|
10234
|
+
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.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.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.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.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;
|
|
10235
|
+
//# sourceMappingURL=chunk-6OFANJTE.js.map
|