@carlonicora/nextjs-jsonapi 3.24.1 → 3.24.2
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-7I7PL3KS.js → BlockNoteEditor-35D4R7HJ.js} +21 -21
- package/dist/{BlockNoteEditor-7I7PL3KS.js.map → BlockNoteEditor-35D4R7HJ.js.map} +1 -1
- package/dist/{BlockNoteEditor-BNS3U3CP.mjs → BlockNoteEditor-65HR6ULV.mjs} +6 -6
- package/dist/{BlockNoteViewer-THOJS3OG.mjs → BlockNoteViewer-KDKGUIG5.mjs} +4 -4
- package/dist/{BlockNoteViewer-UCWWHBTZ.js → BlockNoteViewer-QDXDVYEM.js} +5 -5
- package/dist/{BlockNoteViewer-UCWWHBTZ.js.map → BlockNoteViewer-QDXDVYEM.js.map} +1 -1
- package/dist/JsonApiRequest-G625QAH5.js +26 -0
- package/dist/{JsonApiRequest-E4PZPH3N.js.map → JsonApiRequest-G625QAH5.js.map} +1 -1
- package/dist/{JsonApiRequest-7AEQWMLJ.mjs → JsonApiRequest-RRMNV7YE.mjs} +2 -2
- package/dist/billing/index.js +403 -403
- package/dist/billing/index.mjs +5 -5
- package/dist/{chunk-7XD2BJN6.js → chunk-2XCUAHQT.js} +834 -834
- package/dist/{chunk-7XD2BJN6.js.map → chunk-2XCUAHQT.js.map} +1 -1
- package/dist/{chunk-7EFTSFZO.js → chunk-3AR4KA5D.js} +13 -13
- package/dist/{chunk-7EFTSFZO.js.map → chunk-3AR4KA5D.js.map} +1 -1
- package/dist/{chunk-6R45U3GH.mjs → chunk-4O7R2Z2O.mjs} +8 -8
- package/dist/{chunk-IOLU4ASD.js → chunk-5TRFNKJS.js} +3 -2
- package/dist/chunk-5TRFNKJS.js.map +1 -0
- package/dist/{chunk-ZE5ZUY6Y.mjs → chunk-IBVKPLHT.mjs} +6 -6
- package/dist/{chunk-IBS6NI7D.js → chunk-JTPRJNT2.js} +3 -2
- package/dist/chunk-JTPRJNT2.js.map +1 -0
- package/dist/{chunk-C7C7VY4F.mjs → chunk-PI56A4DG.mjs} +3 -2
- package/dist/{chunk-C7C7VY4F.mjs.map → chunk-PI56A4DG.mjs.map} +1 -1
- package/dist/{chunk-IEJYBQ6J.mjs → chunk-SJLXPHK5.mjs} +3 -2
- package/dist/{chunk-IEJYBQ6J.mjs.map → chunk-SJLXPHK5.mjs.map} +1 -1
- package/dist/{chunk-BMVA2IM5.mjs → chunk-T76WLDE5.mjs} +3 -3
- package/dist/{chunk-WRMTBKSN.js → chunk-U7QVISQS.js} +38 -38
- package/dist/{chunk-WRMTBKSN.js.map → chunk-U7QVISQS.js.map} +1 -1
- package/dist/{chunk-LU7DJ4QF.js → chunk-YXRVPEEJ.js} +3 -3
- package/dist/{chunk-LU7DJ4QF.js.map → chunk-YXRVPEEJ.js.map} +1 -1
- package/dist/{chunk-Z7KPVKWV.mjs → chunk-ZJI5ZZW5.mjs} +3 -3
- package/dist/client/index.js +6 -6
- package/dist/client/index.mjs +5 -5
- package/dist/components/index.js +6 -6
- package/dist/components/index.mjs +5 -5
- package/dist/contexts/index.js +6 -6
- package/dist/contexts/index.mjs +5 -5
- package/dist/core/index.js +4 -4
- package/dist/core/index.mjs +3 -3
- package/dist/features/help/index.js +39 -39
- package/dist/features/help/index.mjs +5 -5
- package/dist/features/tokenusage/index.js +103 -103
- package/dist/features/tokenusage/index.mjs +5 -5
- package/dist/index.js +5 -5
- package/dist/index.mjs +4 -4
- package/dist/{request-FYMQK5CX.mjs → request-5RLK2AM3.mjs} +2 -2
- package/dist/request-EUGTI3BE.js +9 -0
- package/dist/{request-ZYY6RI5X.js.map → request-EUGTI3BE.js.map} +1 -1
- package/dist/{request-6VYDNP5T.mjs → request-FXF63NSQ.mjs} +2 -2
- package/dist/request-ZTX6I63X.js +8 -0
- package/dist/request-ZTX6I63X.js.map +1 -0
- package/dist/server/index.js +21 -21
- package/dist/server/index.mjs +4 -4
- package/package.json +1 -1
- package/src/client/__tests__/request.test.ts +29 -0
- package/src/client/request.ts +5 -1
- package/src/server/__tests__/request.test.ts +17 -0
- package/src/server/request.ts +5 -1
- package/dist/JsonApiRequest-E4PZPH3N.js +0 -26
- package/dist/chunk-IBS6NI7D.js.map +0 -1
- package/dist/chunk-IOLU4ASD.js.map +0 -1
- package/dist/request-UR7VPG3G.js +0 -8
- package/dist/request-UR7VPG3G.js.map +0 -1
- package/dist/request-ZYY6RI5X.js +0 -9
- /package/dist/{BlockNoteEditor-BNS3U3CP.mjs.map → BlockNoteEditor-65HR6ULV.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-THOJS3OG.mjs.map → BlockNoteViewer-KDKGUIG5.mjs.map} +0 -0
- /package/dist/{JsonApiRequest-7AEQWMLJ.mjs.map → JsonApiRequest-RRMNV7YE.mjs.map} +0 -0
- /package/dist/{chunk-6R45U3GH.mjs.map → chunk-4O7R2Z2O.mjs.map} +0 -0
- /package/dist/{chunk-ZE5ZUY6Y.mjs.map → chunk-IBVKPLHT.mjs.map} +0 -0
- /package/dist/{chunk-BMVA2IM5.mjs.map → chunk-T76WLDE5.mjs.map} +0 -0
- /package/dist/{chunk-Z7KPVKWV.mjs.map → chunk-ZJI5ZZW5.mjs.map} +0 -0
- /package/dist/{request-6VYDNP5T.mjs.map → request-5RLK2AM3.mjs.map} +0 -0
- /package/dist/{request-FYMQK5CX.mjs.map → request-FXF63NSQ.mjs.map} +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkLXKSUWAVjs = require('./chunk-LXKSUWAV.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkJTPRJNT2js = require('./chunk-JTPRJNT2.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -15,7 +15,7 @@ var _chunkIBS6NI7Djs = require('./chunk-IBS6NI7D.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkYXRVPEEJjs = require('./chunk-YXRVPEEJ.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 = _chunkYXRVPEEJjs.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 = _chunkYXRVPEEJjs.DataClassRegistry.get(classKey);
|
|
35
35
|
const response = data.map((item) => {
|
|
36
36
|
const instance = new factoryClass();
|
|
37
37
|
return instance.rehydrate(item);
|
|
@@ -343,7 +343,7 @@ var AbstractService = class {
|
|
|
343
343
|
* Make an API call with automatic environment detection and error handling.
|
|
344
344
|
*/
|
|
345
345
|
static async callApi(params) {
|
|
346
|
-
const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-
|
|
346
|
+
const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-G625QAH5.js")));
|
|
347
347
|
let apiResponse;
|
|
348
348
|
let language = "en";
|
|
349
349
|
if (typeof window === "undefined") {
|
|
@@ -441,7 +441,7 @@ var AbstractService = class {
|
|
|
441
441
|
* Make an API call and return both data and meta from the response.
|
|
442
442
|
*/
|
|
443
443
|
static async callApiWithMeta(params) {
|
|
444
|
-
const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-
|
|
444
|
+
const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-G625QAH5.js")));
|
|
445
445
|
let apiResponse;
|
|
446
446
|
let language = "en";
|
|
447
447
|
if (typeof window === "undefined") {
|
|
@@ -527,7 +527,7 @@ var AbstractService = class {
|
|
|
527
527
|
* Get raw JSON:API response data without deserialization.
|
|
528
528
|
*/
|
|
529
529
|
static async getRawData(params) {
|
|
530
|
-
const { JsonApiGet: JsonApiGet2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-
|
|
530
|
+
const { JsonApiGet: JsonApiGet2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-G625QAH5.js")));
|
|
531
531
|
let language = "en";
|
|
532
532
|
if (typeof window === "undefined") {
|
|
533
533
|
const { getLocale } = await Promise.resolve().then(() => _interopRequireWildcard(require("next-intl/server")));
|
|
@@ -563,7 +563,7 @@ var _clientConfig = null;
|
|
|
563
563
|
function configureClientJsonApi(config) {
|
|
564
564
|
_clientConfig = config;
|
|
565
565
|
if (config.bootstrapper) {
|
|
566
|
-
|
|
566
|
+
_chunkYXRVPEEJjs.setBootstrapper.call(void 0, config.bootstrapper);
|
|
567
567
|
config.bootstrapper();
|
|
568
568
|
}
|
|
569
569
|
}
|
|
@@ -572,7 +572,7 @@ function getClientApiUrl() {
|
|
|
572
572
|
if (_optionalChain([_clientConfig, 'optionalAccess', _23 => _23.apiUrl])) {
|
|
573
573
|
return _clientConfig.apiUrl;
|
|
574
574
|
}
|
|
575
|
-
const envUrl =
|
|
575
|
+
const envUrl = _chunkYXRVPEEJjs.ENV.API_URL;
|
|
576
576
|
if (!envUrl) {
|
|
577
577
|
throw new Error(
|
|
578
578
|
"API URL not configured. Use configureClientJsonApi() or set NEXT_PUBLIC_API_URL environment variable."
|
|
@@ -585,7 +585,7 @@ function getClientAppUrl() {
|
|
|
585
585
|
if (_optionalChain([_clientConfig, 'optionalAccess', _24 => _24.appUrl])) {
|
|
586
586
|
return _clientConfig.appUrl;
|
|
587
587
|
}
|
|
588
|
-
const envUrl =
|
|
588
|
+
const envUrl = _chunkYXRVPEEJjs.ENV.APP_URL;
|
|
589
589
|
if (!envUrl) {
|
|
590
590
|
throw new Error(
|
|
591
591
|
"App URL not configured. Use configureClientJsonApi({ appUrl }) or set NEXT_PUBLIC_ADDRESS environment variable."
|
|
@@ -613,7 +613,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, buildClientUrl, "buildClientUrl");
|
|
|
613
613
|
async function ClientJsonApiGet(params) {
|
|
614
614
|
runClientBootstrapper();
|
|
615
615
|
const token = await _chunkLXKSUWAVjs.getClientToken.call(void 0, );
|
|
616
|
-
const apiResponse = await
|
|
616
|
+
const apiResponse = await _chunkJTPRJNT2js.directFetch.call(void 0, {
|
|
617
617
|
method: "GET",
|
|
618
618
|
url: buildClientUrl(params.endpoint, params.baseUrl),
|
|
619
619
|
token,
|
|
@@ -621,7 +621,7 @@ async function ClientJsonApiGet(params) {
|
|
|
621
621
|
language: params.language,
|
|
622
622
|
additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _27 => _27.additionalHeaders])
|
|
623
623
|
});
|
|
624
|
-
return
|
|
624
|
+
return _chunkYXRVPEEJjs.translateResponse.call(void 0, {
|
|
625
625
|
classKey: params.classKey,
|
|
626
626
|
apiResponse,
|
|
627
627
|
companyId: params.companyId,
|
|
@@ -643,9 +643,9 @@ async function ClientJsonApiPost(params) {
|
|
|
643
643
|
if (!body) {
|
|
644
644
|
body = {};
|
|
645
645
|
} else if (params.overridesJsonApiCreation !== true) {
|
|
646
|
-
body =
|
|
646
|
+
body = _chunkYXRVPEEJjs.JsonApiDataFactory.create(params.classKey, body);
|
|
647
647
|
}
|
|
648
|
-
const apiResponse = await
|
|
648
|
+
const apiResponse = await _chunkJTPRJNT2js.directFetch.call(void 0, {
|
|
649
649
|
method: "POST",
|
|
650
650
|
url: buildClientUrl(params.endpoint, params.baseUrl),
|
|
651
651
|
token,
|
|
@@ -655,7 +655,7 @@ async function ClientJsonApiPost(params) {
|
|
|
655
655
|
language: params.language,
|
|
656
656
|
additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _28 => _28.additionalHeaders])
|
|
657
657
|
});
|
|
658
|
-
return
|
|
658
|
+
return _chunkYXRVPEEJjs.translateResponse.call(void 0, {
|
|
659
659
|
classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
|
|
660
660
|
apiResponse,
|
|
661
661
|
companyId: params.companyId,
|
|
@@ -670,9 +670,9 @@ async function ClientJsonApiPut(params) {
|
|
|
670
670
|
if (!body) {
|
|
671
671
|
body = {};
|
|
672
672
|
} else {
|
|
673
|
-
body =
|
|
673
|
+
body = _chunkYXRVPEEJjs.JsonApiDataFactory.create(params.classKey, body);
|
|
674
674
|
}
|
|
675
|
-
const apiResponse = await
|
|
675
|
+
const apiResponse = await _chunkJTPRJNT2js.directFetch.call(void 0, {
|
|
676
676
|
method: "PUT",
|
|
677
677
|
url: buildClientUrl(params.endpoint, params.baseUrl),
|
|
678
678
|
token,
|
|
@@ -682,7 +682,7 @@ async function ClientJsonApiPut(params) {
|
|
|
682
682
|
language: params.language,
|
|
683
683
|
additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _29 => _29.additionalHeaders])
|
|
684
684
|
});
|
|
685
|
-
return
|
|
685
|
+
return _chunkYXRVPEEJjs.translateResponse.call(void 0, {
|
|
686
686
|
classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
|
|
687
687
|
apiResponse,
|
|
688
688
|
companyId: params.companyId,
|
|
@@ -697,9 +697,9 @@ async function ClientJsonApiPatch(params) {
|
|
|
697
697
|
if (!body) {
|
|
698
698
|
body = {};
|
|
699
699
|
} else if (params.overridesJsonApiCreation !== true) {
|
|
700
|
-
body =
|
|
700
|
+
body = _chunkYXRVPEEJjs.JsonApiDataFactory.create(params.classKey, body);
|
|
701
701
|
}
|
|
702
|
-
const apiResponse = await
|
|
702
|
+
const apiResponse = await _chunkJTPRJNT2js.directFetch.call(void 0, {
|
|
703
703
|
method: "PATCH",
|
|
704
704
|
url: buildClientUrl(params.endpoint, params.baseUrl),
|
|
705
705
|
token,
|
|
@@ -709,7 +709,7 @@ async function ClientJsonApiPatch(params) {
|
|
|
709
709
|
language: params.language,
|
|
710
710
|
additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _30 => _30.additionalHeaders])
|
|
711
711
|
});
|
|
712
|
-
return
|
|
712
|
+
return _chunkYXRVPEEJjs.translateResponse.call(void 0, {
|
|
713
713
|
classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
|
|
714
714
|
apiResponse,
|
|
715
715
|
companyId: params.companyId,
|
|
@@ -720,7 +720,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ClientJsonApiPatch, "ClientJsonApiPatch");
|
|
|
720
720
|
async function ClientJsonApiDelete(params) {
|
|
721
721
|
runClientBootstrapper();
|
|
722
722
|
const token = await _chunkLXKSUWAVjs.getClientToken.call(void 0, );
|
|
723
|
-
const apiResponse = await
|
|
723
|
+
const apiResponse = await _chunkJTPRJNT2js.directFetch.call(void 0, {
|
|
724
724
|
method: "DELETE",
|
|
725
725
|
url: buildClientUrl(params.endpoint, params.baseUrl),
|
|
726
726
|
token,
|
|
@@ -728,7 +728,7 @@ async function ClientJsonApiDelete(params) {
|
|
|
728
728
|
language: params.language,
|
|
729
729
|
additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _31 => _31.additionalHeaders])
|
|
730
730
|
});
|
|
731
|
-
return
|
|
731
|
+
return _chunkYXRVPEEJjs.translateResponse.call(void 0, {
|
|
732
732
|
classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
|
|
733
733
|
apiResponse,
|
|
734
734
|
companyId: params.companyId,
|
|
@@ -941,7 +941,7 @@ var ModuleRegistrar = (_class2 = class {
|
|
|
941
941
|
}).map((key) => modulesClass[key]);
|
|
942
942
|
data.forEach((item) => {
|
|
943
943
|
if (item && item.model) {
|
|
944
|
-
|
|
944
|
+
_chunkYXRVPEEJjs.DataClassRegistry.registerObjectClass(item, item.model);
|
|
945
945
|
}
|
|
946
946
|
});
|
|
947
947
|
this._isBootstrapped = true;
|
|
@@ -951,7 +951,7 @@ var ModuleRegistrar = (_class2 = class {
|
|
|
951
951
|
*/
|
|
952
952
|
static reset() {
|
|
953
953
|
this._isBootstrapped = false;
|
|
954
|
-
|
|
954
|
+
_chunkYXRVPEEJjs.DataClassRegistry.clear();
|
|
955
955
|
}
|
|
956
956
|
}, _class2.__initStatic2(), _class2);
|
|
957
957
|
|
|
@@ -974,20 +974,20 @@ var ModuleRegistryClass = class {
|
|
|
974
974
|
get(name) {
|
|
975
975
|
let module = this._modules.get(name);
|
|
976
976
|
if (!module) {
|
|
977
|
-
const didBootstrap =
|
|
977
|
+
const didBootstrap = _chunkYXRVPEEJjs.tryBootstrap.call(void 0, );
|
|
978
978
|
if (didBootstrap) {
|
|
979
979
|
module = this._modules.get(name);
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
if (!module) {
|
|
983
|
-
const hint =
|
|
983
|
+
const hint = _chunkYXRVPEEJjs.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
984
|
throw new Error(`Module "${String(name)}" not registered. ${hint}`);
|
|
985
985
|
}
|
|
986
986
|
return module;
|
|
987
987
|
}
|
|
988
988
|
findByName(moduleName) {
|
|
989
989
|
if (this._modules.size === 0) {
|
|
990
|
-
|
|
990
|
+
_chunkYXRVPEEJjs.tryBootstrap.call(void 0, );
|
|
991
991
|
}
|
|
992
992
|
for (const module of this._modules.values()) {
|
|
993
993
|
if (module.name === moduleName) {
|
|
@@ -998,7 +998,7 @@ var ModuleRegistryClass = class {
|
|
|
998
998
|
}
|
|
999
999
|
getAllPageUrls() {
|
|
1000
1000
|
if (this._modules.size === 0) {
|
|
1001
|
-
|
|
1001
|
+
_chunkYXRVPEEJjs.tryBootstrap.call(void 0, );
|
|
1002
1002
|
}
|
|
1003
1003
|
const seen = /* @__PURE__ */ new Set();
|
|
1004
1004
|
const result = [];
|
|
@@ -1015,7 +1015,7 @@ var ModuleRegistryClass = class {
|
|
|
1015
1015
|
findByModelName(modelName) {
|
|
1016
1016
|
let module = this._modules.get(modelName);
|
|
1017
1017
|
if (!module) {
|
|
1018
|
-
const didBootstrap =
|
|
1018
|
+
const didBootstrap = _chunkYXRVPEEJjs.tryBootstrap.call(void 0, );
|
|
1019
1019
|
if (didBootstrap) {
|
|
1020
1020
|
module = this._modules.get(modelName);
|
|
1021
1021
|
}
|
|
@@ -1037,7 +1037,7 @@ var ModuleRegistryClass = class {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
getAll() {
|
|
1039
1039
|
if (this._modules.size === 0) {
|
|
1040
|
-
|
|
1040
|
+
_chunkYXRVPEEJjs.tryBootstrap.call(void 0, );
|
|
1041
1041
|
}
|
|
1042
1042
|
return Array.from(this._modules.values());
|
|
1043
1043
|
}
|
|
@@ -2990,7 +2990,7 @@ var AuthService = class extends AbstractService {
|
|
|
2990
2990
|
}
|
|
2991
2991
|
static async login(params) {
|
|
2992
2992
|
const language = params.language || "en-US";
|
|
2993
|
-
const apiResponse = await
|
|
2993
|
+
const apiResponse = await _chunkYXRVPEEJjs.JsonApiPost.call(void 0, {
|
|
2994
2994
|
classKey: Modules.Auth,
|
|
2995
2995
|
endpoint: new EndpointCreator({ endpoint: Modules.Auth, id: "login" }).generate(),
|
|
2996
2996
|
body: { email: params.email, password: params.password },
|
|
@@ -3024,7 +3024,7 @@ var AuthService = class extends AbstractService {
|
|
|
3024
3024
|
}
|
|
3025
3025
|
static async logout(params) {
|
|
3026
3026
|
const language = _optionalChain([params, 'optionalAccess', _72 => _72.language]) || "en-US";
|
|
3027
|
-
await
|
|
3027
|
+
await _chunkYXRVPEEJjs.JsonApiDelete.call(void 0, {
|
|
3028
3028
|
classKey: Modules.Auth,
|
|
3029
3029
|
endpoint: new EndpointCreator({ endpoint: Modules.Auth }).generate(),
|
|
3030
3030
|
language
|
|
@@ -3036,7 +3036,7 @@ var AuthService = class extends AbstractService {
|
|
|
3036
3036
|
}
|
|
3037
3037
|
static async initialiseForgotPassword(params) {
|
|
3038
3038
|
const language = params.language || "en-US";
|
|
3039
|
-
const response = await
|
|
3039
|
+
const response = await _chunkYXRVPEEJjs.JsonApiPost.call(void 0, {
|
|
3040
3040
|
classKey: Modules.Auth,
|
|
3041
3041
|
endpoint: new EndpointCreator({ endpoint: Modules.Auth, id: "forgot" }).generate(),
|
|
3042
3042
|
body: { email: params.email },
|
|
@@ -3065,7 +3065,7 @@ var AuthService = class extends AbstractService {
|
|
|
3065
3065
|
}
|
|
3066
3066
|
static async validateCode(params) {
|
|
3067
3067
|
const language = params.language || "en-US";
|
|
3068
|
-
const apiResponse = await
|
|
3068
|
+
const apiResponse = await _chunkYXRVPEEJjs.JsonApiGet.call(void 0, {
|
|
3069
3069
|
classKey: Modules.Auth,
|
|
3070
3070
|
endpoint: new EndpointCreator({ endpoint: Modules.Auth, id: "validate", childEndpoint: params.code }).generate(),
|
|
3071
3071
|
language
|
|
@@ -3109,7 +3109,7 @@ var AuthService = class extends AbstractService {
|
|
|
3109
3109
|
}
|
|
3110
3110
|
static async completeOAuthRegistration(params) {
|
|
3111
3111
|
const endpoint = new EndpointCreator({ endpoint: Modules.Auth, id: "oauth", childEndpoint: "complete" });
|
|
3112
|
-
const response = await
|
|
3112
|
+
const response = await _chunkYXRVPEEJjs.JsonApiPost.call(void 0, {
|
|
3113
3113
|
classKey: Modules.Auth,
|
|
3114
3114
|
endpoint: endpoint.generate(),
|
|
3115
3115
|
body: params,
|
|
@@ -4906,7 +4906,7 @@ var StripePromotionCodeService = class {
|
|
|
4906
4906
|
* @returns Validation result with discount details if valid
|
|
4907
4907
|
*/
|
|
4908
4908
|
static async validatePromotionCode(params) {
|
|
4909
|
-
const response = await
|
|
4909
|
+
const response = await _chunkYXRVPEEJjs.JsonApiPost.call(void 0, {
|
|
4910
4910
|
classKey: Modules.StripePromotionCode,
|
|
4911
4911
|
endpoint: `${STRIPE_PROMOTION_CODE_ENDPOINT}/validate`,
|
|
4912
4912
|
body: {
|
|
@@ -9769,4 +9769,4 @@ var AuditLogModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (facto
|
|
|
9769
9769
|
|
|
9770
9770
|
|
|
9771
9771
|
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.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.configureTokenUsage = configureTokenUsage; exports.getTokenUsageCurrency = getTokenUsageCurrency; exports.AuditLog = AuditLog; exports.AuditLogService = AuditLogService; exports.AuditLogModule = AuditLogModule;
|
|
9772
|
-
//# sourceMappingURL=chunk-
|
|
9772
|
+
//# sourceMappingURL=chunk-U7QVISQS.js.map
|