@carlonicora/nextjs-jsonapi 1.72.0 → 1.74.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/dist/{ApiDataInterface-DPP8s46n.d.mts → ApiDataInterface-BcZeXy5X.d.mts} +1 -0
  2. package/dist/{ApiDataInterface-DPP8s46n.d.ts → ApiDataInterface-BcZeXy5X.d.ts} +1 -0
  3. package/dist/{ApiResponseInterface-CAIAeP5d.d.ts → ApiResponseInterface-CWLvSCvS.d.ts} +1 -1
  4. package/dist/{ApiResponseInterface-zeewugD7.d.mts → ApiResponseInterface-rsXRL_Hn.d.mts} +1 -1
  5. package/dist/{AuthComponent-Di8DsZ2I.d.ts → AuthComponent-Blbs06ud.d.ts} +2 -2
  6. package/dist/{AuthComponent-DXe3kPzb.d.mts → AuthComponent-huIaK5rm.d.mts} +2 -2
  7. package/dist/{BlockNoteEditor-LHOIPHHB.js → BlockNoteEditor-A37P3FA7.js} +14 -14
  8. package/dist/{BlockNoteEditor-LHOIPHHB.js.map → BlockNoteEditor-A37P3FA7.js.map} +1 -1
  9. package/dist/{BlockNoteEditor-FGZ2MOTZ.mjs → BlockNoteEditor-KJZ7FGBA.mjs} +4 -4
  10. package/dist/{HowToInterface-NaqSG9sE.d.ts → HowToInterface-BKhnkzBp.d.ts} +1 -1
  11. package/dist/{HowToInterface-DtVWAE1s.d.mts → HowToInterface-Cj8OuQFf.d.mts} +1 -1
  12. package/dist/{ModulePathsInterface-49EWvbWy.d.mts → ModulePathsInterface-BrdqgteS.d.mts} +1 -1
  13. package/dist/{ModulePathsInterface-wVS5Raa4.d.ts → ModulePathsInterface-DJKs7s_s.d.ts} +1 -1
  14. package/dist/{auth.interface-C4uJzBec.d.mts → auth.interface-Bdq7-8iV.d.mts} +2 -2
  15. package/dist/{auth.interface-BTco8PWs.d.ts → auth.interface-CQJ6A2Cj.d.ts} +2 -2
  16. package/dist/billing/index.d.mts +3 -3
  17. package/dist/billing/index.d.ts +3 -3
  18. package/dist/billing/index.js +346 -346
  19. package/dist/billing/index.mjs +3 -3
  20. package/dist/{chunk-56VU7A4I.js → chunk-FKLP4NED.js} +147 -129
  21. package/dist/chunk-FKLP4NED.js.map +1 -0
  22. package/dist/{chunk-WJYWWOTG.mjs → chunk-JOJZRGZL.mjs} +2 -2
  23. package/dist/{chunk-6ROMPIIP.js → chunk-OTZEXASK.js} +11 -11
  24. package/dist/{chunk-6ROMPIIP.js.map → chunk-OTZEXASK.js.map} +1 -1
  25. package/dist/{chunk-GZNHBAZF.mjs → chunk-XI35ALWY.mjs} +19 -1
  26. package/dist/chunk-XI35ALWY.mjs.map +1 -0
  27. package/dist/{chunk-Y7S56ZT3.js → chunk-XUTMY6K5.js} +652 -652
  28. package/dist/chunk-XUTMY6K5.js.map +1 -0
  29. package/dist/{chunk-ATOD6MGB.mjs → chunk-ZNODEBMI.mjs} +7 -7
  30. package/dist/chunk-ZNODEBMI.mjs.map +1 -0
  31. package/dist/client/index.d.mts +10 -10
  32. package/dist/client/index.d.ts +10 -10
  33. package/dist/client/index.js +4 -4
  34. package/dist/client/index.mjs +3 -3
  35. package/dist/components/index.d.mts +10 -10
  36. package/dist/components/index.d.ts +10 -10
  37. package/dist/components/index.js +4 -4
  38. package/dist/components/index.mjs +3 -3
  39. package/dist/{config-n0lfSf27.d.ts → config-B3jKt9P7.d.ts} +1 -1
  40. package/dist/{config-Bmr_0qTn.d.mts → config-DkHF61xA.d.mts} +1 -1
  41. package/dist/contexts/index.d.mts +7 -5
  42. package/dist/contexts/index.d.ts +7 -5
  43. package/dist/contexts/index.js +4 -4
  44. package/dist/contexts/index.mjs +3 -3
  45. package/dist/core/index.d.mts +21 -17
  46. package/dist/core/index.d.ts +21 -17
  47. package/dist/core/index.js +2 -2
  48. package/dist/core/index.mjs +1 -1
  49. package/dist/{feature.interface-CIWxo8NP.d.ts → feature.interface-BO25VLlx.d.ts} +1 -1
  50. package/dist/{feature.interface-BxFFOPNq.d.mts → feature.interface-CXb1-vNq.d.mts} +1 -1
  51. package/dist/index.d.mts +17 -17
  52. package/dist/index.d.ts +17 -17
  53. package/dist/index.js +3 -3
  54. package/dist/index.mjs +2 -2
  55. package/dist/{notification.interface-DrHu_1MM.d.mts → notification.interface-DG6obXUH.d.mts} +3 -2
  56. package/dist/{notification.interface-DYDZENx2.d.ts → notification.interface-DcSuc9CL.d.ts} +3 -2
  57. package/dist/{oauth.interface-vL7za9Bz.d.ts → oauth.interface-B6xmfDzK.d.ts} +1 -1
  58. package/dist/{oauth.interface-DsZ5ecSX.d.mts → oauth.interface-o5FLpiN7.d.mts} +1 -1
  59. package/dist/{s3.service-TsN2unZr.d.mts → s3.service-DGilbikH.d.mts} +4 -4
  60. package/dist/{s3.service-DK2KKXbR.d.ts → s3.service-DjwEQJPe.d.ts} +4 -4
  61. package/dist/server/index.d.mts +6 -6
  62. package/dist/server/index.d.ts +6 -6
  63. package/dist/server/index.js +3 -3
  64. package/dist/server/index.mjs +1 -1
  65. package/dist/{stripe-promotion-code.interface-BcJty0rv.d.ts → stripe-promotion-code.interface-C3qqh3mi.d.ts} +2 -2
  66. package/dist/{stripe-promotion-code.interface-Dnm2DJKQ.d.mts → stripe-promotion-code.interface-ClZ7DxS9.d.mts} +2 -2
  67. package/dist/testing/index.d.mts +2 -2
  68. package/dist/testing/index.d.ts +2 -2
  69. package/dist/testing/index.js +5 -1
  70. package/dist/testing/index.js.map +1 -1
  71. package/dist/testing/index.mjs +5 -1
  72. package/dist/testing/index.mjs.map +1 -1
  73. package/dist/{useRbacState-BYaSdA78.d.ts → useRbacState-C88O-5L8.d.ts} +3 -3
  74. package/dist/{useRbacState-CQEJ_ysV.d.mts → useRbacState-mqYiRp3J.d.mts} +3 -3
  75. package/dist/{useSocket-Cjt_qvkI.d.ts → useSocket-8eUtnL7J.d.ts} +1 -1
  76. package/dist/{useSocket-VAGetcT3.d.mts → useSocket-CmzVtg32.d.mts} +1 -1
  77. package/package.json +1 -1
  78. package/src/client/hooks/__tests__/useRehydration.test.ts +3 -0
  79. package/src/components/containers/RoundPageContainerTitle.tsx +1 -1
  80. package/src/components/navigations/RecentPagesNavigator.tsx +16 -13
  81. package/src/contexts/SharedContext.tsx +2 -0
  82. package/src/core/abstracts/AbstractApiData.ts +10 -0
  83. package/src/core/abstracts/__tests__/identifier.spec.ts +117 -0
  84. package/src/core/factories/__tests__/JsonApiDataFactory.test.ts +3 -0
  85. package/src/core/factories/__tests__/RehydrationFactory.test.ts +3 -0
  86. package/src/core/interfaces/ApiDataInterface.ts +1 -0
  87. package/src/core/registry/ModuleRegistry.ts +17 -0
  88. package/src/core/registry/__tests__/DataClassRegistry.getByJsonApiType.spec.ts +6 -0
  89. package/src/core/registry/__tests__/DataClassRegistry.test.ts +3 -0
  90. package/src/core/registry/__tests__/ModuleRegistrar.test.ts +6 -0
  91. package/src/features/rbac/hooks/useRbacState.test.ts +2 -0
  92. package/src/permissions/types.ts +1 -0
  93. package/src/testing/factories/createMockApiData.ts +7 -0
  94. package/dist/chunk-56VU7A4I.js.map +0 -1
  95. package/dist/chunk-ATOD6MGB.mjs.map +0 -1
  96. package/dist/chunk-GZNHBAZF.mjs.map +0 -1
  97. package/dist/chunk-Y7S56ZT3.js.map +0 -1
  98. /package/dist/{BlockNoteEditor-FGZ2MOTZ.mjs.map → BlockNoteEditor-KJZ7FGBA.mjs.map} +0 -0
  99. /package/dist/{chunk-WJYWWOTG.mjs.map → chunk-JOJZRGZL.mjs.map} +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10; var _class11; var _class12; var _class13; var _class14; var _class15; var _class16; var _class17; var _class18; var _class19; var _class20; var _class21; var _class22; var _class23;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10; var _class11; var _class12; var _class13; var _class14; var _class15; var _class16; var _class17; var _class18; var _class19; var _class20; var _class21; var _class22; var _class23; var _class24;
2
2
 
3
3
  var _chunkLXKSUWAVjs = require('./chunk-LXKSUWAV.js');
4
4
 
@@ -40,10 +40,15 @@ var RehydrationFactory = class {
40
40
  };
41
41
 
42
42
  // src/core/abstracts/AbstractApiData.ts
43
- var AbstractApiData = class {
43
+ var AbstractApiData = (_class = class {
44
44
  static {
45
45
  _chunk7QVYU63Ejs.__name.call(void 0, this, "AbstractApiData");
46
46
  }
47
+ static __initStatic() {this.identifierFields = ["name"]}
48
+ get identifier() {
49
+ const fields = this.constructor.identifierFields;
50
+ return fields.map((field) => _optionalChain([this, 'access', _2 => _2._jsonApi, 'optionalAccess', _3 => _3.attributes, 'optionalAccess', _4 => _4[field]])).filter((v) => v != null && v !== "").join(" ");
51
+ }
47
52
 
48
53
 
49
54
 
@@ -124,7 +129,7 @@ var AbstractApiData = class {
124
129
  * Determines the correct model class based on the JSON:API type in included data.
125
130
  */
126
131
  _readIncludedPolymorphic(data, relationshipKey, candidateModules) {
127
- if (!_optionalChain([data, 'access', _2 => _2.included, 'optionalAccess', _3 => _3.length]) || !_optionalChain([data, 'access', _4 => _4.jsonApi, 'access', _5 => _5.relationships, 'optionalAccess', _6 => _6[relationshipKey], 'optionalAccess', _7 => _7.data])) {
132
+ if (!_optionalChain([data, 'access', _5 => _5.included, 'optionalAccess', _6 => _6.length]) || !_optionalChain([data, 'access', _7 => _7.jsonApi, 'access', _8 => _8.relationships, 'optionalAccess', _9 => _9[relationshipKey], 'optionalAccess', _10 => _10.data])) {
128
133
  return void 0;
129
134
  }
130
135
  const relData = data.jsonApi.relationships[relationshipKey].data;
@@ -233,12 +238,12 @@ var AbstractApiData = class {
233
238
  this._included = data.included;
234
239
  this._type = this._jsonApi.type;
235
240
  this._id = this._jsonApi.id;
236
- this._createdAt = _optionalChain([this, 'access', _8 => _8._jsonApi, 'access', _9 => _9.meta, 'optionalAccess', _10 => _10.createdAt]) !== void 0 ? new Date(this._jsonApi.meta.createdAt) : void 0;
237
- this._updatedAt = _optionalChain([this, 'access', _11 => _11._jsonApi, 'access', _12 => _12.meta, 'optionalAccess', _13 => _13.updatedAt]) !== void 0 ? new Date(this._jsonApi.meta.updatedAt) : void 0;
238
- this._self = _nullishCoalesce(_optionalChain([this, 'access', _14 => _14._jsonApi, 'access', _15 => _15.links, 'optionalAccess', _16 => _16.self]), () => ( void 0));
241
+ this._createdAt = _optionalChain([this, 'access', _11 => _11._jsonApi, 'access', _12 => _12.meta, 'optionalAccess', _13 => _13.createdAt]) !== void 0 ? new Date(this._jsonApi.meta.createdAt) : void 0;
242
+ this._updatedAt = _optionalChain([this, 'access', _14 => _14._jsonApi, 'access', _15 => _15.meta, 'optionalAccess', _16 => _16.updatedAt]) !== void 0 ? new Date(this._jsonApi.meta.updatedAt) : void 0;
243
+ this._self = _nullishCoalesce(_optionalChain([this, 'access', _17 => _17._jsonApi, 'access', _18 => _18.links, 'optionalAccess', _19 => _19.self]), () => ( void 0));
239
244
  return this;
240
245
  }
241
- };
246
+ }, _class.__initStatic(), _class);
242
247
 
243
248
  // src/core/abstracts/AbstractService.ts
244
249
  var HttpMethod = /* @__PURE__ */ ((HttpMethod2) => {
@@ -401,7 +406,7 @@ var AbstractService = class {
401
406
  if (apiResponse.next && params.next) params.next.next = apiResponse.next;
402
407
  if (apiResponse.prev && params.previous) params.previous.previous = apiResponse.prev;
403
408
  if (apiResponse.self && params.self) params.self.self = apiResponse.self;
404
- if (_optionalChain([apiResponse, 'access', _17 => _17.meta, 'optionalAccess', _18 => _18.total]) !== void 0) {
409
+ if (_optionalChain([apiResponse, 'access', _20 => _20.meta, 'optionalAccess', _21 => _21.total]) !== void 0) {
405
410
  lastApiTotal = apiResponse.meta.total;
406
411
  if (params.total) params.total.total = apiResponse.meta.total;
407
412
  }
@@ -536,7 +541,7 @@ function configureClientJsonApi(config) {
536
541
  }
537
542
  _chunk7QVYU63Ejs.__name.call(void 0, configureClientJsonApi, "configureClientJsonApi");
538
543
  function getClientApiUrl() {
539
- if (_optionalChain([_clientConfig, 'optionalAccess', _19 => _19.apiUrl])) {
544
+ if (_optionalChain([_clientConfig, 'optionalAccess', _22 => _22.apiUrl])) {
540
545
  return _clientConfig.apiUrl;
541
546
  }
542
547
  const envUrl = process.env.NEXT_PUBLIC_API_URL;
@@ -549,7 +554,7 @@ function getClientApiUrl() {
549
554
  }
550
555
  _chunk7QVYU63Ejs.__name.call(void 0, getClientApiUrl, "getClientApiUrl");
551
556
  function getClientAppUrl() {
552
- if (_optionalChain([_clientConfig, 'optionalAccess', _20 => _20.appUrl])) {
557
+ if (_optionalChain([_clientConfig, 'optionalAccess', _23 => _23.appUrl])) {
553
558
  return _clientConfig.appUrl;
554
559
  }
555
560
  const envUrl = process.env.NEXT_PUBLIC_ADDRESS;
@@ -562,11 +567,11 @@ function getClientAppUrl() {
562
567
  }
563
568
  _chunk7QVYU63Ejs.__name.call(void 0, getClientAppUrl, "getClientAppUrl");
564
569
  function getClientTrackablePages() {
565
- return _nullishCoalesce(_optionalChain([_clientConfig, 'optionalAccess', _21 => _21.trackablePages]), () => ( []));
570
+ return _nullishCoalesce(_optionalChain([_clientConfig, 'optionalAccess', _24 => _24.trackablePages]), () => ( []));
566
571
  }
567
572
  _chunk7QVYU63Ejs.__name.call(void 0, getClientTrackablePages, "getClientTrackablePages");
568
573
  function runClientBootstrapper() {
569
- if (_optionalChain([_clientConfig, 'optionalAccess', _22 => _22.bootstrapper])) {
574
+ if (_optionalChain([_clientConfig, 'optionalAccess', _25 => _25.bootstrapper])) {
570
575
  _clientConfig.bootstrapper();
571
576
  }
572
577
  }
@@ -585,7 +590,7 @@ async function ClientJsonApiGet(params) {
585
590
  token,
586
591
  companyId: params.companyId,
587
592
  language: params.language,
588
- additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _23 => _23.additionalHeaders])
593
+ additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _26 => _26.additionalHeaders])
589
594
  });
590
595
  return _chunk4MN547K7js.translateResponse.call(void 0, {
591
596
  classKey: params.classKey,
@@ -618,7 +623,7 @@ async function ClientJsonApiPost(params) {
618
623
  files: params.files,
619
624
  companyId: params.companyId,
620
625
  language: params.language,
621
- additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _24 => _24.additionalHeaders])
626
+ additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _27 => _27.additionalHeaders])
622
627
  });
623
628
  return _chunk4MN547K7js.translateResponse.call(void 0, {
624
629
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
@@ -645,7 +650,7 @@ async function ClientJsonApiPut(params) {
645
650
  files: params.files,
646
651
  companyId: params.companyId,
647
652
  language: params.language,
648
- additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _25 => _25.additionalHeaders])
653
+ additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _28 => _28.additionalHeaders])
649
654
  });
650
655
  return _chunk4MN547K7js.translateResponse.call(void 0, {
651
656
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
@@ -672,7 +677,7 @@ async function ClientJsonApiPatch(params) {
672
677
  files: params.files,
673
678
  companyId: params.companyId,
674
679
  language: params.language,
675
- additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _26 => _26.additionalHeaders])
680
+ additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _29 => _29.additionalHeaders])
676
681
  });
677
682
  return _chunk4MN547K7js.translateResponse.call(void 0, {
678
683
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
@@ -691,7 +696,7 @@ async function ClientJsonApiDelete(params) {
691
696
  token,
692
697
  companyId: params.companyId,
693
698
  language: params.language,
694
- additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _27 => _27.additionalHeaders])
699
+ additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _30 => _30.additionalHeaders])
695
700
  });
696
701
  return _chunk4MN547K7js.translateResponse.call(void 0, {
697
702
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
@@ -849,7 +854,7 @@ var ClientAbstractService = class {
849
854
  if (apiResponse.next && params.next) params.next.next = apiResponse.next;
850
855
  if (apiResponse.prev && params.previous) params.previous.previous = apiResponse.prev;
851
856
  if (apiResponse.self && params.self) params.self.self = apiResponse.self;
852
- if (_optionalChain([apiResponse, 'access', _28 => _28.meta, 'optionalAccess', _29 => _29.total]) !== void 0 && params.total) params.total.total = apiResponse.meta.total;
857
+ if (_optionalChain([apiResponse, 'access', _31 => _31.meta, 'optionalAccess', _32 => _32.total]) !== void 0 && params.total) params.total.total = apiResponse.meta.total;
853
858
  return apiResponse.data;
854
859
  }
855
860
  /**
@@ -879,11 +884,11 @@ var ClientAbstractService = class {
879
884
  };
880
885
 
881
886
  // src/core/registry/ModuleRegistrar.ts
882
- var ModuleRegistrar = (_class = class {
887
+ var ModuleRegistrar = (_class2 = class {
883
888
  static {
884
889
  _chunk7QVYU63Ejs.__name.call(void 0, this, "ModuleRegistrar");
885
890
  }
886
- static __initStatic() {this._isBootstrapped = false}
891
+ static __initStatic2() {this._isBootstrapped = false}
887
892
  /**
888
893
  * Bootstrap the registry from a Modules class.
889
894
  * Automatically detects static getters and registers their models.
@@ -910,7 +915,7 @@ var ModuleRegistrar = (_class = class {
910
915
  this._isBootstrapped = false;
911
916
  _chunk4MN547K7js.DataClassRegistry.clear();
912
917
  }
913
- }, _class.__initStatic(), _class);
918
+ }, _class2.__initStatic2(), _class2);
914
919
 
915
920
  // src/core/registry/ModuleRegistry.ts
916
921
  var MODULES_KEY = /* @__PURE__ */ Symbol.for("nextjs-jsonapi:modules");
@@ -982,6 +987,16 @@ var ModuleRegistryClass = class {
982
987
  }
983
988
  return module;
984
989
  }
990
+ findByFeature(feature) {
991
+ const response = [];
992
+ for (const module of this._modules.values()) {
993
+ const m = module;
994
+ if (m.feature === feature) {
995
+ response.push(m);
996
+ }
997
+ }
998
+ return response;
999
+ }
985
1000
  };
986
1001
  var ModuleRegistry = new ModuleRegistryClass();
987
1002
  var Modules = new Proxy({}, {
@@ -992,6 +1007,9 @@ var Modules = new Proxy({}, {
992
1007
  if (prop === "findByModelName") {
993
1008
  return (name) => ModuleRegistry.findByModelName(name);
994
1009
  }
1010
+ if (prop === "findByFeature") {
1011
+ return (feature) => ModuleRegistry.findByFeature(feature);
1012
+ }
995
1013
  return ModuleRegistry.get(prop);
996
1014
  }
997
1015
  });
@@ -1257,8 +1275,8 @@ var entityObjectSchema = _zod.z.object({
1257
1275
  // src/utils/getInitials.ts
1258
1276
  function getInitials(firstOrName, lastName) {
1259
1277
  if (lastName !== void 0) {
1260
- const first = _nullishCoalesce(_optionalChain([firstOrName, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31(), 'optionalAccess', _32 => _32[0]]), () => ( ""));
1261
- const last = _nullishCoalesce(_optionalChain([lastName, 'optionalAccess', _33 => _33.trim, 'call', _34 => _34(), 'optionalAccess', _35 => _35[0]]), () => ( ""));
1278
+ const first = _nullishCoalesce(_optionalChain([firstOrName, 'optionalAccess', _33 => _33.trim, 'call', _34 => _34(), 'optionalAccess', _35 => _35[0]]), () => ( ""));
1279
+ const last = _nullishCoalesce(_optionalChain([lastName, 'optionalAccess', _36 => _36.trim, 'call', _37 => _37(), 'optionalAccess', _38 => _38[0]]), () => ( ""));
1262
1280
  if (first && last) return (first + last).toUpperCase();
1263
1281
  return (firstOrName || lastName || "").slice(0, 2).toUpperCase();
1264
1282
  }
@@ -1272,11 +1290,11 @@ _chunk7QVYU63Ejs.__name.call(void 0, getInitials, "getInitials");
1272
1290
 
1273
1291
  // src/utils/blocknote-diff.util.ts
1274
1292
  var _uuid = require('uuid');
1275
- var BlockNoteDiffUtil = (_class2 = class {
1293
+ var BlockNoteDiffUtil = (_class3 = class {
1276
1294
  static {
1277
1295
  _chunk7QVYU63Ejs.__name.call(void 0, this, "BlockNoteDiffUtil");
1278
1296
  }
1279
- static __initStatic2() {this.DEFAULT_OPTIONS = {
1297
+ static __initStatic3() {this.DEFAULT_OPTIONS = {
1280
1298
  ignoreIds: false,
1281
1299
  compareContent: true,
1282
1300
  similarityThreshold: 0.8
@@ -1845,7 +1863,7 @@ var BlockNoteDiffUtil = (_class2 = class {
1845
1863
  const similarity = 1 - distance / maxLen;
1846
1864
  return similarity > 0.7;
1847
1865
  }
1848
- }, _class2.__initStatic2(), _class2);
1866
+ }, _class3.__initStatic3(), _class3);
1849
1867
 
1850
1868
  // src/utils/blocknote-word-diff-renderer.util.ts
1851
1869
 
@@ -1863,14 +1881,14 @@ var BlockNoteWordDiffRendererUtil = class {
1863
1881
  return diffBlocks.map((block) => {
1864
1882
  const updatedBlock = { ...block };
1865
1883
  if (updatedBlock.diffId) {
1866
- updatedBlock.accepted = _optionalChain([acceptedChanges, 'optionalAccess', _36 => _36.has, 'call', _37 => _37(updatedBlock.diffId)]) || false;
1867
- updatedBlock.rejected = _optionalChain([rejectedChanges, 'optionalAccess', _38 => _38.has, 'call', _39 => _39(updatedBlock.diffId)]) || false;
1884
+ updatedBlock.accepted = _optionalChain([acceptedChanges, 'optionalAccess', _39 => _39.has, 'call', _40 => _40(updatedBlock.diffId)]) || false;
1885
+ updatedBlock.rejected = _optionalChain([rejectedChanges, 'optionalAccess', _41 => _41.has, 'call', _42 => _42(updatedBlock.diffId)]) || false;
1868
1886
  }
1869
1887
  if (updatedBlock.wordDiffs) {
1870
1888
  updatedBlock.wordDiffs = updatedBlock.wordDiffs.map((wordDiff) => ({
1871
1889
  ...wordDiff,
1872
- accepted: _optionalChain([acceptedChanges, 'optionalAccess', _40 => _40.has, 'call', _41 => _41(wordDiff.diffId)]) || false,
1873
- rejected: _optionalChain([rejectedChanges, 'optionalAccess', _42 => _42.has, 'call', _43 => _43(wordDiff.diffId)]) || false
1890
+ accepted: _optionalChain([acceptedChanges, 'optionalAccess', _43 => _43.has, 'call', _44 => _44(wordDiff.diffId)]) || false,
1891
+ rejected: _optionalChain([rejectedChanges, 'optionalAccess', _45 => _45.has, 'call', _46 => _46(wordDiff.diffId)]) || false
1874
1892
  }));
1875
1893
  }
1876
1894
  if (updatedBlock.children) {
@@ -1895,7 +1913,7 @@ var BlockNoteWordDiffRendererUtil = class {
1895
1913
  type: block.type || "paragraph",
1896
1914
  props: this.getBlockProps(block),
1897
1915
  content: Array.isArray(block.content) ? block.content : [],
1898
- children: _optionalChain([block, 'access', _44 => _44.children, 'optionalAccess', _45 => _45.map, 'call', _46 => _46(
1916
+ children: _optionalChain([block, 'access', _47 => _47.children, 'optionalAccess', _48 => _48.map, 'call', _49 => _49(
1899
1917
  (child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange)
1900
1918
  )])
1901
1919
  };
@@ -1908,7 +1926,7 @@ var BlockNoteWordDiffRendererUtil = class {
1908
1926
  type: block.type || "paragraph",
1909
1927
  props: block.props || {},
1910
1928
  content: Array.isArray(block.content) ? block.content : [],
1911
- children: _optionalChain([block, 'access', _47 => _47.children, 'optionalAccess', _48 => _48.map, 'call', _49 => _49(
1929
+ children: _optionalChain([block, 'access', _50 => _50.children, 'optionalAccess', _51 => _51.map, 'call', _52 => _52(
1912
1930
  (child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange)
1913
1931
  )])
1914
1932
  };
@@ -1960,7 +1978,7 @@ var BlockNoteWordDiffRendererUtil = class {
1960
1978
  type: block.type || "paragraph",
1961
1979
  props: this.getBlockProps(block),
1962
1980
  content,
1963
- children: _optionalChain([block, 'access', _50 => _50.children, 'optionalAccess', _51 => _51.map, 'call', _52 => _52(
1981
+ children: _optionalChain([block, 'access', _53 => _53.children, 'optionalAccess', _54 => _54.map, 'call', _55 => _55(
1964
1982
  (child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange)
1965
1983
  )])
1966
1984
  };
@@ -1982,7 +2000,7 @@ var BlockNoteWordDiffRendererUtil = class {
1982
2000
  type: block.type || "paragraph",
1983
2001
  props: block.props || {},
1984
2002
  content: Array.isArray(content) ? content : [],
1985
- children: _optionalChain([block, 'access', _53 => _53.children, 'optionalAccess', _54 => _54.map, 'call', _55 => _55((child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange))]) || []
2003
+ children: _optionalChain([block, 'access', _56 => _56.children, 'optionalAccess', _57 => _57.map, 'call', _58 => _58((child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange))]) || []
1986
2004
  };
1987
2005
  }
1988
2006
  static groupAndRenderWordDiffs(wordDiffs) {
@@ -2308,7 +2326,7 @@ function getValueFromPath(obj, path, userId) {
2308
2326
  _chunk7QVYU63Ejs.__name.call(void 0, getValueFromPath, "getValueFromPath");
2309
2327
 
2310
2328
  // src/features/auth/data/totp-authenticator.ts
2311
- var TotpAuthenticator = (_class3 = class extends AbstractApiData {constructor(...args) { super(...args); _class3.prototype.__init.call(this);_class3.prototype.__init2.call(this); }
2329
+ var TotpAuthenticator = (_class4 = class extends AbstractApiData {constructor(...args) { super(...args); _class4.prototype.__init.call(this);_class4.prototype.__init2.call(this); }
2312
2330
  static {
2313
2331
  _chunk7QVYU63Ejs.__name.call(void 0, this, "TotpAuthenticator");
2314
2332
  }
@@ -2331,7 +2349,7 @@ var TotpAuthenticator = (_class3 = class extends AbstractApiData {constructor(..
2331
2349
  this._lastUsedAt = data.jsonApi.attributes.lastUsedAt ? new Date(data.jsonApi.attributes.lastUsedAt) : void 0;
2332
2350
  return this;
2333
2351
  }
2334
- }, _class3);
2352
+ }, _class4);
2335
2353
 
2336
2354
  // src/features/auth/totp-authenticator.module.ts
2337
2355
  var TotpAuthenticatorModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -2341,7 +2359,7 @@ var TotpAuthenticatorModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
2341
2359
  }), "TotpAuthenticatorModule");
2342
2360
 
2343
2361
  // src/features/auth/data/totp-setup.ts
2344
- var TotpSetup = (_class4 = class extends AbstractApiData {constructor(...args2) { super(...args2); _class4.prototype.__init3.call(this);_class4.prototype.__init4.call(this);_class4.prototype.__init5.call(this); }
2362
+ var TotpSetup = (_class5 = class extends AbstractApiData {constructor(...args2) { super(...args2); _class5.prototype.__init3.call(this);_class5.prototype.__init4.call(this);_class5.prototype.__init5.call(this); }
2345
2363
  static {
2346
2364
  _chunk7QVYU63Ejs.__name.call(void 0, this, "TotpSetup");
2347
2365
  }
@@ -2376,7 +2394,7 @@ var TotpSetup = (_class4 = class extends AbstractApiData {constructor(...args2)
2376
2394
  }
2377
2395
  };
2378
2396
  }
2379
- }, _class4);
2397
+ }, _class5);
2380
2398
 
2381
2399
  // src/features/auth/totp-setup.module.ts
2382
2400
  var TotpSetupModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -2437,7 +2455,7 @@ var TotpVerifyLoginModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
2437
2455
  }), "TotpVerifyLoginModule");
2438
2456
 
2439
2457
  // src/features/auth/data/passkey.ts
2440
- var Passkey = (_class5 = class extends AbstractApiData {constructor(...args3) { super(...args3); _class5.prototype.__init6.call(this);_class5.prototype.__init7.call(this);_class5.prototype.__init8.call(this);_class5.prototype.__init9.call(this); }
2458
+ var Passkey = (_class6 = class extends AbstractApiData {constructor(...args3) { super(...args3); _class6.prototype.__init6.call(this);_class6.prototype.__init7.call(this);_class6.prototype.__init8.call(this);_class6.prototype.__init9.call(this); }
2441
2459
  static {
2442
2460
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Passkey");
2443
2461
  }
@@ -2470,7 +2488,7 @@ var Passkey = (_class5 = class extends AbstractApiData {constructor(...args3) {
2470
2488
  this._lastUsedAt = data.jsonApi.attributes.lastUsedAt ? new Date(data.jsonApi.attributes.lastUsedAt) : void 0;
2471
2489
  return this;
2472
2490
  }
2473
- }, _class5);
2491
+ }, _class6);
2474
2492
 
2475
2493
  // src/features/auth/passkey.module.ts
2476
2494
  var PasskeyModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -2480,7 +2498,7 @@ var PasskeyModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factor
2480
2498
  }), "PasskeyModule");
2481
2499
 
2482
2500
  // src/features/auth/data/passkey-registration-options.ts
2483
- var PasskeyRegistrationOptions = (_class6 = class extends AbstractApiData {constructor(...args4) { super(...args4); _class6.prototype.__init10.call(this);_class6.prototype.__init11.call(this); }
2501
+ var PasskeyRegistrationOptions = (_class7 = class extends AbstractApiData {constructor(...args4) { super(...args4); _class7.prototype.__init10.call(this);_class7.prototype.__init11.call(this); }
2484
2502
  static {
2485
2503
  _chunk7QVYU63Ejs.__name.call(void 0, this, "PasskeyRegistrationOptions");
2486
2504
  }
@@ -2510,7 +2528,7 @@ var PasskeyRegistrationOptions = (_class6 = class extends AbstractApiData {const
2510
2528
  }
2511
2529
  };
2512
2530
  }
2513
- }, _class6);
2531
+ }, _class7);
2514
2532
 
2515
2533
  // src/features/auth/passkey-registration-options.module.ts
2516
2534
  var PasskeyRegistrationOptionsModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -2520,7 +2538,7 @@ var PasskeyRegistrationOptionsModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.c
2520
2538
  }), "PasskeyRegistrationOptionsModule");
2521
2539
 
2522
2540
  // src/features/auth/data/passkey-registration-verify.ts
2523
- var PasskeyRegistrationVerify = (_class7 = class extends AbstractApiData {constructor(...args5) { super(...args5); _class7.prototype.__init12.call(this);_class7.prototype.__init13.call(this);_class7.prototype.__init14.call(this);_class7.prototype.__init15.call(this); }
2541
+ var PasskeyRegistrationVerify = (_class8 = class extends AbstractApiData {constructor(...args5) { super(...args5); _class8.prototype.__init12.call(this);_class8.prototype.__init13.call(this);_class8.prototype.__init14.call(this);_class8.prototype.__init15.call(this); }
2524
2542
  static {
2525
2543
  _chunk7QVYU63Ejs.__name.call(void 0, this, "PasskeyRegistrationVerify");
2526
2544
  }
@@ -2566,7 +2584,7 @@ var PasskeyRegistrationVerify = (_class7 = class extends AbstractApiData {constr
2566
2584
  }
2567
2585
  };
2568
2586
  }
2569
- }, _class7);
2587
+ }, _class8);
2570
2588
 
2571
2589
  // src/features/auth/passkey-registration-verify.module.ts
2572
2590
  var PasskeyRegistrationVerifyModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -2627,7 +2645,7 @@ var PasskeyVerifyLoginModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
2627
2645
  }), "PasskeyVerifyLoginModule");
2628
2646
 
2629
2647
  // src/features/auth/data/passkey-authentication-options.ts
2630
- var PasskeyAuthenticationOptions = (_class8 = class extends AbstractApiData {constructor(...args6) { super(...args6); _class8.prototype.__init16.call(this);_class8.prototype.__init17.call(this); }
2648
+ var PasskeyAuthenticationOptions = (_class9 = class extends AbstractApiData {constructor(...args6) { super(...args6); _class9.prototype.__init16.call(this);_class9.prototype.__init17.call(this); }
2631
2649
  static {
2632
2650
  _chunk7QVYU63Ejs.__name.call(void 0, this, "PasskeyAuthenticationOptions");
2633
2651
  }
@@ -2654,7 +2672,7 @@ var PasskeyAuthenticationOptions = (_class8 = class extends AbstractApiData {con
2654
2672
  }
2655
2673
  };
2656
2674
  }
2657
- }, _class8);
2675
+ }, _class9);
2658
2676
 
2659
2677
  // src/features/auth/passkey-authentication-options.module.ts
2660
2678
  var PasskeyAuthenticationOptionsModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -2689,7 +2707,7 @@ var TwoFactorEnableModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0,
2689
2707
  }), "TwoFactorEnableModule");
2690
2708
 
2691
2709
  // src/features/auth/data/two-factor-challenge.ts
2692
- var TwoFactorChallenge = (_class9 = class extends AbstractApiData {constructor(...args7) { super(...args7); _class9.prototype.__init18.call(this);_class9.prototype.__init19.call(this);_class9.prototype.__init20.call(this); }
2710
+ var TwoFactorChallenge = (_class10 = class extends AbstractApiData {constructor(...args7) { super(...args7); _class10.prototype.__init18.call(this);_class10.prototype.__init19.call(this);_class10.prototype.__init20.call(this); }
2693
2711
  static {
2694
2712
  _chunk7QVYU63Ejs.__name.call(void 0, this, "TwoFactorChallenge");
2695
2713
  }
@@ -2723,7 +2741,7 @@ var TwoFactorChallenge = (_class9 = class extends AbstractApiData {constructor(.
2723
2741
  }
2724
2742
  };
2725
2743
  }
2726
- }, _class9);
2744
+ }, _class10);
2727
2745
 
2728
2746
  // src/features/auth/two-factor-challenge.module.ts
2729
2747
  var TwoFactorChallengeModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -2830,7 +2848,7 @@ var AuthService = class extends AbstractService {
2830
2848
  language
2831
2849
  });
2832
2850
  if (!apiResponse.ok) throw new Error(apiResponse.error);
2833
- if (_optionalChain([apiResponse, 'access', _56 => _56.raw, 'optionalAccess', _57 => _57.data, 'optionalAccess', _58 => _58.type]) === "two-factor-challenge") {
2851
+ if (_optionalChain([apiResponse, 'access', _59 => _59.raw, 'optionalAccess', _60 => _60.data, 'optionalAccess', _61 => _61.type]) === "two-factor-challenge") {
2834
2852
  const challenge = rehydrate(Modules.TwoFactorChallenge, {
2835
2853
  jsonApi: apiResponse.raw.data,
2836
2854
  included: _nullishCoalesce(apiResponse.raw.included, () => ( []))
@@ -2844,9 +2862,9 @@ var AuthService = class extends AbstractService {
2844
2862
  token: auth.token,
2845
2863
  refreshToken: auth.refreshToken,
2846
2864
  userId: auth.user.id,
2847
- companyId: _optionalChain([auth, 'access', _59 => _59.user, 'access', _60 => _60.company, 'optionalAccess', _61 => _61.id]),
2865
+ companyId: _optionalChain([auth, 'access', _62 => _62.user, 'access', _63 => _63.company, 'optionalAccess', _64 => _64.id]),
2848
2866
  roles: auth.user.roles.map((role) => role.id),
2849
- features: _nullishCoalesce(_optionalChain([auth, 'access', _62 => _62.user, 'access', _63 => _63.company, 'optionalAccess', _64 => _64.features, 'optionalAccess', _65 => _65.map, 'call', _66 => _66((feature) => feature.id)]), () => ( [])),
2867
+ features: _nullishCoalesce(_optionalChain([auth, 'access', _65 => _65.user, 'access', _66 => _66.company, 'optionalAccess', _67 => _67.features, 'optionalAccess', _68 => _68.map, 'call', _69 => _69((feature) => feature.id)]), () => ( [])),
2850
2868
  modules: auth.user.modules.map((module) => ({
2851
2869
  id: module.id,
2852
2870
  permissions: module.permissions
@@ -2856,7 +2874,7 @@ var AuthService = class extends AbstractService {
2856
2874
  return auth.user;
2857
2875
  }
2858
2876
  static async logout(params) {
2859
- const language = _optionalChain([params, 'optionalAccess', _67 => _67.language]) || "en-US";
2877
+ const language = _optionalChain([params, 'optionalAccess', _70 => _70.language]) || "en-US";
2860
2878
  await _chunk4MN547K7js.JsonApiDelete.call(void 0, {
2861
2879
  classKey: Modules.Auth,
2862
2880
  endpoint: new EndpointCreator({ endpoint: Modules.Auth }).generate(),
@@ -2930,9 +2948,9 @@ var AuthService = class extends AbstractService {
2930
2948
  token: auth.token,
2931
2949
  refreshToken: auth.refreshToken,
2932
2950
  userId: auth.user.id,
2933
- companyId: _optionalChain([auth, 'access', _68 => _68.user, 'access', _69 => _69.company, 'optionalAccess', _70 => _70.id]),
2951
+ companyId: _optionalChain([auth, 'access', _71 => _71.user, 'access', _72 => _72.company, 'optionalAccess', _73 => _73.id]),
2934
2952
  roles: auth.user.roles.map((role) => role.id),
2935
- features: _nullishCoalesce(_optionalChain([auth, 'access', _71 => _71.user, 'access', _72 => _72.company, 'optionalAccess', _73 => _73.features, 'optionalAccess', _74 => _74.map, 'call', _75 => _75((feature) => feature.id)]), () => ( [])),
2953
+ features: _nullishCoalesce(_optionalChain([auth, 'access', _74 => _74.user, 'access', _75 => _75.company, 'optionalAccess', _76 => _76.features, 'optionalAccess', _77 => _77.map, 'call', _78 => _78((feature) => feature.id)]), () => ( [])),
2936
2954
  modules: auth.user.modules.map((module) => ({
2937
2955
  id: module.id,
2938
2956
  permissions: module.permissions
@@ -2955,7 +2973,7 @@ var AuthService = class extends AbstractService {
2955
2973
  };
2956
2974
 
2957
2975
  // src/features/auth/data/two-factor-status.ts
2958
- var TwoFactorStatus = (_class10 = class extends AbstractApiData {constructor(...args8) { super(...args8); _class10.prototype.__init21.call(this);_class10.prototype.__init22.call(this);_class10.prototype.__init23.call(this);_class10.prototype.__init24.call(this); }
2976
+ var TwoFactorStatus = (_class11 = class extends AbstractApiData {constructor(...args8) { super(...args8); _class11.prototype.__init21.call(this);_class11.prototype.__init22.call(this);_class11.prototype.__init23.call(this);_class11.prototype.__init24.call(this); }
2959
2977
  static {
2960
2978
  _chunk7QVYU63Ejs.__name.call(void 0, this, "TwoFactorStatus");
2961
2979
  }
@@ -2986,7 +3004,7 @@ var TwoFactorStatus = (_class10 = class extends AbstractApiData {constructor(...
2986
3004
  this._backupCodesCount = _nullishCoalesce(data.jsonApi.attributes.backupCodesCount, () => ( 0));
2987
3005
  return this;
2988
3006
  }
2989
- }, _class10);
3007
+ }, _class11);
2990
3008
 
2991
3009
  // src/features/auth/data/two-factor.service.ts
2992
3010
  var TwoFactorService = class extends AbstractService {
@@ -3180,9 +3198,9 @@ var TwoFactorService = class extends AbstractService {
3180
3198
  token: auth.token,
3181
3199
  refreshToken: auth.refreshToken,
3182
3200
  userId: auth.user.id,
3183
- companyId: _optionalChain([auth, 'access', _76 => _76.user, 'access', _77 => _77.company, 'optionalAccess', _78 => _78.id]),
3201
+ companyId: _optionalChain([auth, 'access', _79 => _79.user, 'access', _80 => _80.company, 'optionalAccess', _81 => _81.id]),
3184
3202
  roles: auth.user.roles.map((role) => role.id),
3185
- features: _nullishCoalesce(_optionalChain([auth, 'access', _79 => _79.user, 'access', _80 => _80.company, 'optionalAccess', _81 => _81.features, 'optionalAccess', _82 => _82.map, 'call', _83 => _83((feature) => feature.id)]), () => ( [])),
3203
+ 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)]), () => ( [])),
3186
3204
  modules: auth.user.modules.map((module) => ({
3187
3205
  id: module.id,
3188
3206
  permissions: module.permissions
@@ -3320,8 +3338,8 @@ var BillingService = class extends AbstractService {
3320
3338
  type: Modules.StripeUsage,
3321
3339
  method: "GET" /* GET */,
3322
3340
  endpoint: endpoint.generate(),
3323
- next: _optionalChain([params, 'optionalAccess', _84 => _84.next]),
3324
- previous: _optionalChain([params, 'optionalAccess', _85 => _85.prev])
3341
+ next: _optionalChain([params, 'optionalAccess', _87 => _87.next]),
3342
+ previous: _optionalChain([params, 'optionalAccess', _88 => _88.prev])
3325
3343
  });
3326
3344
  }
3327
3345
  /**
@@ -3422,7 +3440,7 @@ var PaymentMethod = class extends AbstractApiData {
3422
3440
  };
3423
3441
 
3424
3442
  // src/features/billing/stripe-customer/data/stripe-customer.ts
3425
- var StripeCustomer = (_class11 = class extends AbstractApiData {constructor(...args9) { super(...args9); _class11.prototype.__init25.call(this); }
3443
+ var StripeCustomer = (_class12 = class extends AbstractApiData {constructor(...args9) { super(...args9); _class12.prototype.__init25.call(this); }
3426
3444
  static {
3427
3445
  _chunk7QVYU63Ejs.__name.call(void 0, this, "StripeCustomer");
3428
3446
  }
@@ -3474,7 +3492,7 @@ var StripeCustomer = (_class11 = class extends AbstractApiData {constructor(...a
3474
3492
  createJsonApi(_data) {
3475
3493
  throw new Error("BillingCustomer is managed by Stripe and cannot be created directly");
3476
3494
  }
3477
- }, _class11);
3495
+ }, _class12);
3478
3496
 
3479
3497
  // src/features/billing/stripe-customer/data/stripe-customer.service.ts
3480
3498
  var StripeCustomerService = class extends AbstractService {
@@ -3553,8 +3571,8 @@ var StripeCustomerService = class extends AbstractService {
3553
3571
  type: Modules.StripePaymentMethod,
3554
3572
  method: "GET" /* GET */,
3555
3573
  endpoint: endpoint.generate(),
3556
- next: _optionalChain([params, 'optionalAccess', _86 => _86.next]),
3557
- previous: _optionalChain([params, 'optionalAccess', _87 => _87.prev])
3574
+ next: _optionalChain([params, 'optionalAccess', _89 => _89.next]),
3575
+ previous: _optionalChain([params, 'optionalAccess', _90 => _90.prev])
3558
3576
  });
3559
3577
  }
3560
3578
  /**
@@ -3604,7 +3622,7 @@ var StripePaymentMethodModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
3604
3622
  }), "StripePaymentMethodModule");
3605
3623
 
3606
3624
  // src/features/billing/stripe-invoice/data/stripe-invoice.ts
3607
- var StripeInvoice = (_class12 = class extends AbstractApiData {constructor(...args10) { super(...args10); _class12.prototype.__init26.call(this);_class12.prototype.__init27.call(this);_class12.prototype.__init28.call(this); }
3625
+ var StripeInvoice = (_class13 = class extends AbstractApiData {constructor(...args10) { super(...args10); _class13.prototype.__init26.call(this);_class13.prototype.__init27.call(this);_class13.prototype.__init28.call(this); }
3608
3626
  static {
3609
3627
  _chunk7QVYU63Ejs.__name.call(void 0, this, "StripeInvoice");
3610
3628
  }
@@ -3744,7 +3762,7 @@ var StripeInvoice = (_class12 = class extends AbstractApiData {constructor(...ar
3744
3762
  createJsonApi(_data) {
3745
3763
  throw new Error("Invoice is managed by Stripe and cannot be created directly");
3746
3764
  }
3747
- }, _class12);
3765
+ }, _class13);
3748
3766
 
3749
3767
  // src/features/billing/stripe-invoice/data/stripe-invoice.interface.ts
3750
3768
  var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
@@ -3768,15 +3786,15 @@ var StripeInvoiceService = class extends AbstractService {
3768
3786
  const endpoint = new EndpointCreator({
3769
3787
  endpoint: Modules.StripeInvoice
3770
3788
  });
3771
- if (_optionalChain([params, 'optionalAccess', _88 => _88.status])) {
3789
+ if (_optionalChain([params, 'optionalAccess', _91 => _91.status])) {
3772
3790
  endpoint.addAdditionalParam("status", params.status);
3773
3791
  }
3774
3792
  return this.callApi({
3775
3793
  type: Modules.StripeInvoice,
3776
3794
  method: "GET" /* GET */,
3777
3795
  endpoint: endpoint.generate(),
3778
- next: _optionalChain([params, 'optionalAccess', _89 => _89.next]),
3779
- previous: _optionalChain([params, 'optionalAccess', _90 => _90.prev])
3796
+ next: _optionalChain([params, 'optionalAccess', _92 => _92.next]),
3797
+ previous: _optionalChain([params, 'optionalAccess', _93 => _93.prev])
3780
3798
  });
3781
3799
  }
3782
3800
  /**
@@ -3818,7 +3836,7 @@ var StripeInvoiceModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
3818
3836
  }), "StripeInvoiceModule");
3819
3837
 
3820
3838
  // src/features/billing/stripe-price/data/stripe-price.ts
3821
- var StripePrice = (_class13 = class extends AbstractApiData {constructor(...args11) { super(...args11); _class13.prototype.__init29.call(this);_class13.prototype.__init30.call(this); }
3839
+ var StripePrice = (_class14 = class extends AbstractApiData {constructor(...args11) { super(...args11); _class14.prototype.__init29.call(this);_class14.prototype.__init30.call(this); }
3822
3840
  static {
3823
3841
  _chunk7QVYU63Ejs.__name.call(void 0, this, "StripePrice");
3824
3842
  }
@@ -3967,7 +3985,7 @@ var StripePrice = (_class13 = class extends AbstractApiData {constructor(...args
3967
3985
  }
3968
3986
  return response;
3969
3987
  }
3970
- }, _class13);
3988
+ }, _class14);
3971
3989
 
3972
3990
  // src/features/billing/stripe-price/data/stripe-price.service.ts
3973
3991
  var StripePriceService = class extends AbstractService {
@@ -3981,18 +3999,18 @@ var StripePriceService = class extends AbstractService {
3981
3999
  const endpoint = new EndpointCreator({
3982
4000
  endpoint: Modules.StripePrice
3983
4001
  });
3984
- if (_optionalChain([params, 'optionalAccess', _91 => _91.productId])) {
4002
+ if (_optionalChain([params, 'optionalAccess', _94 => _94.productId])) {
3985
4003
  endpoint.addAdditionalParam("productId", params.productId);
3986
4004
  }
3987
- if (_optionalChain([params, 'optionalAccess', _92 => _92.active]) !== void 0) {
4005
+ if (_optionalChain([params, 'optionalAccess', _95 => _95.active]) !== void 0) {
3988
4006
  endpoint.addAdditionalParam("active", params.active.toString());
3989
4007
  }
3990
4008
  return this.callApi({
3991
4009
  type: Modules.StripePrice,
3992
4010
  method: "GET" /* GET */,
3993
4011
  endpoint: endpoint.generate(),
3994
- next: _optionalChain([params, 'optionalAccess', _93 => _93.next]),
3995
- previous: _optionalChain([params, 'optionalAccess', _94 => _94.prev])
4012
+ next: _optionalChain([params, 'optionalAccess', _96 => _96.next]),
4013
+ previous: _optionalChain([params, 'optionalAccess', _97 => _97.prev])
3996
4014
  });
3997
4015
  }
3998
4016
  /**
@@ -4083,7 +4101,7 @@ var StripePriceModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (fa
4083
4101
  }), "StripePriceModule");
4084
4102
 
4085
4103
  // src/features/billing/stripe-product/data/stripe-product.ts
4086
- var StripeProduct = (_class14 = class extends AbstractApiData {constructor(...args12) { super(...args12); _class14.prototype.__init31.call(this);_class14.prototype.__init32.call(this); }
4104
+ var StripeProduct = (_class15 = class extends AbstractApiData {constructor(...args12) { super(...args12); _class15.prototype.__init31.call(this);_class15.prototype.__init32.call(this); }
4087
4105
  static {
4088
4106
  _chunk7QVYU63Ejs.__name.call(void 0, this, "StripeProduct");
4089
4107
  }
@@ -4137,7 +4155,7 @@ var StripeProduct = (_class14 = class extends AbstractApiData {constructor(...ar
4137
4155
  if (data.metadata) response.data.attributes.metadata = data.metadata;
4138
4156
  return response;
4139
4157
  }
4140
- }, _class14);
4158
+ }, _class15);
4141
4159
 
4142
4160
  // src/features/billing/stripe-product/data/stripe-product.service.ts
4143
4161
  var StripeProductService = class extends AbstractService {
@@ -4151,15 +4169,15 @@ var StripeProductService = class extends AbstractService {
4151
4169
  const endpoint = new EndpointCreator({
4152
4170
  endpoint: Modules.StripeProduct
4153
4171
  });
4154
- if (_optionalChain([params, 'optionalAccess', _95 => _95.active]) !== void 0) {
4172
+ if (_optionalChain([params, 'optionalAccess', _98 => _98.active]) !== void 0) {
4155
4173
  endpoint.addAdditionalParam("active", params.active.toString());
4156
4174
  }
4157
4175
  return this.callApi({
4158
4176
  type: Modules.StripeProduct,
4159
4177
  method: "GET" /* GET */,
4160
4178
  endpoint: endpoint.generate(),
4161
- next: _optionalChain([params, 'optionalAccess', _96 => _96.next]),
4162
- previous: _optionalChain([params, 'optionalAccess', _97 => _97.prev])
4179
+ next: _optionalChain([params, 'optionalAccess', _99 => _99.next]),
4180
+ previous: _optionalChain([params, 'optionalAccess', _100 => _100.prev])
4163
4181
  });
4164
4182
  }
4165
4183
  /**
@@ -4246,7 +4264,7 @@ var StripeProductModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
4246
4264
  }), "StripeProductModule");
4247
4265
 
4248
4266
  // src/features/billing/stripe-subscription/data/stripe-subscription.ts
4249
- var StripeSubscription = (_class15 = class extends AbstractApiData {constructor(...args13) { super(...args13); _class15.prototype.__init33.call(this); }
4267
+ var StripeSubscription = (_class16 = class extends AbstractApiData {constructor(...args13) { super(...args13); _class16.prototype.__init33.call(this); }
4250
4268
  static {
4251
4269
  _chunk7QVYU63Ejs.__name.call(void 0, this, "StripeSubscription");
4252
4270
  }
@@ -4344,7 +4362,7 @@ var StripeSubscription = (_class15 = class extends AbstractApiData {constructor(
4344
4362
  }
4345
4363
  return response;
4346
4364
  }
4347
- }, _class15);
4365
+ }, _class16);
4348
4366
 
4349
4367
  // src/features/billing/stripe-subscription/data/stripe-subscription.interface.ts
4350
4368
  var SubscriptionStatus = /* @__PURE__ */ ((SubscriptionStatus2) => {
@@ -4378,8 +4396,8 @@ var StripeSubscriptionService = class extends AbstractService {
4378
4396
  type: Modules.StripeSubscription,
4379
4397
  method: "GET" /* GET */,
4380
4398
  endpoint: endpoint.generate(),
4381
- next: _optionalChain([params, 'optionalAccess', _98 => _98.next]),
4382
- previous: _optionalChain([params, 'optionalAccess', _99 => _99.prev])
4399
+ next: _optionalChain([params, 'optionalAccess', _101 => _101.next]),
4400
+ previous: _optionalChain([params, 'optionalAccess', _102 => _102.prev])
4383
4401
  });
4384
4402
  }
4385
4403
  /**
@@ -4606,8 +4624,8 @@ var StripeUsageService = class extends AbstractService {
4606
4624
  type: Modules.StripeUsage,
4607
4625
  method: "GET" /* GET */,
4608
4626
  endpoint: endpoint.generate(),
4609
- next: _optionalChain([params, 'optionalAccess', _100 => _100.next]),
4610
- previous: _optionalChain([params, 'optionalAccess', _101 => _101.prev])
4627
+ next: _optionalChain([params, 'optionalAccess', _103 => _103.next]),
4628
+ previous: _optionalChain([params, 'optionalAccess', _104 => _104.prev])
4611
4629
  });
4612
4630
  }
4613
4631
  /**
@@ -4655,8 +4673,8 @@ var StripeUsageService = class extends AbstractService {
4655
4673
  type: Modules.StripeUsage,
4656
4674
  method: "GET" /* GET */,
4657
4675
  endpoint: endpoint.generate(),
4658
- next: _optionalChain([params, 'optionalAccess', _102 => _102.next]),
4659
- previous: _optionalChain([params, 'optionalAccess', _103 => _103.prev])
4676
+ next: _optionalChain([params, 'optionalAccess', _105 => _105.next]),
4677
+ previous: _optionalChain([params, 'optionalAccess', _106 => _106.prev])
4660
4678
  });
4661
4679
  }
4662
4680
  /**
@@ -4743,7 +4761,7 @@ var StripePromotionCodeService = class {
4743
4761
  };
4744
4762
 
4745
4763
  // src/features/billing/stripe-promotion-code/data/stripe-promotion-code.ts
4746
- var StripePromotionCode = (_class16 = class extends AbstractApiData {constructor(...args14) { super(...args14); _class16.prototype.__init34.call(this);_class16.prototype.__init35.call(this); }
4764
+ var StripePromotionCode = (_class17 = class extends AbstractApiData {constructor(...args14) { super(...args14); _class17.prototype.__init34.call(this);_class17.prototype.__init35.call(this); }
4747
4765
  static {
4748
4766
  _chunk7QVYU63Ejs.__name.call(void 0, this, "StripePromotionCode");
4749
4767
  }
@@ -4796,7 +4814,7 @@ var StripePromotionCode = (_class16 = class extends AbstractApiData {constructor
4796
4814
  this._errorMessage = data.jsonApi.attributes.errorMessage;
4797
4815
  return this;
4798
4816
  }
4799
- }, _class16);
4817
+ }, _class17);
4800
4818
 
4801
4819
  // src/features/billing/stripe-promotion-code/stripe-promotion-code.module.ts
4802
4820
  var StripePromotionCodeModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -4810,7 +4828,7 @@ var StripePromotionCodeModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(voi
4810
4828
  var _lucidereact = require('lucide-react');
4811
4829
 
4812
4830
  // src/features/company/data/company.ts
4813
- var Company = (_class17 = class extends AbstractApiData {constructor(...args15) { super(...args15); _class17.prototype.__init36.call(this);_class17.prototype.__init37.call(this);_class17.prototype.__init38.call(this);_class17.prototype.__init39.call(this); }
4831
+ var Company = (_class18 = class extends AbstractApiData {constructor(...args15) { super(...args15); _class18.prototype.__init36.call(this);_class18.prototype.__init37.call(this);_class18.prototype.__init38.call(this);_class18.prototype.__init39.call(this); }
4814
4832
  static {
4815
4833
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Company");
4816
4834
  }
@@ -4966,7 +4984,7 @@ var Company = (_class17 = class extends AbstractApiData {constructor(...args15)
4966
4984
  }
4967
4985
  return response;
4968
4986
  }
4969
- }, _class17);
4987
+ }, _class18);
4970
4988
 
4971
4989
  // src/features/company/data/company.fields.ts
4972
4990
  var CompanyFields = /* @__PURE__ */ ((CompanyFields2) => {
@@ -5156,8 +5174,8 @@ var ContentService = class extends AbstractService {
5156
5174
  if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
5157
5175
  if (params.search) endpoint.addAdditionalParam("search", params.search);
5158
5176
  }
5159
- if (_optionalChain([Modules, 'access', _104 => _104.Content, 'access', _105 => _105.inclusions, 'optionalAccess', _106 => _106.lists, 'optionalAccess', _107 => _107.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
5160
- if (_optionalChain([Modules, 'access', _108 => _108.Content, 'access', _109 => _109.inclusions, 'optionalAccess', _110 => _110.lists, 'optionalAccess', _111 => _111.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
5177
+ if (_optionalChain([Modules, 'access', _107 => _107.Content, 'access', _108 => _108.inclusions, 'optionalAccess', _109 => _109.lists, 'optionalAccess', _110 => _110.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
5178
+ if (_optionalChain([Modules, 'access', _111 => _111.Content, 'access', _112 => _112.inclusions, 'optionalAccess', _113 => _113.lists, 'optionalAccess', _114 => _114.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
5161
5179
  return this.callApi({
5162
5180
  type: Modules.Content,
5163
5181
  method: "GET" /* GET */,
@@ -5171,8 +5189,8 @@ var ContentService = class extends AbstractService {
5171
5189
  id: params.id,
5172
5190
  childEndpoint: "relevance"
5173
5191
  });
5174
- if (_optionalChain([Modules, 'access', _112 => _112.Content, 'access', _113 => _113.inclusions, 'optionalAccess', _114 => _114.lists, 'optionalAccess', _115 => _115.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
5175
- if (_optionalChain([Modules, 'access', _116 => _116.Content, 'access', _117 => _117.inclusions, 'optionalAccess', _118 => _118.lists, 'optionalAccess', _119 => _119.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
5192
+ if (_optionalChain([Modules, 'access', _115 => _115.Content, 'access', _116 => _116.inclusions, 'optionalAccess', _117 => _117.lists, 'optionalAccess', _118 => _118.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
5193
+ if (_optionalChain([Modules, 'access', _119 => _119.Content, 'access', _120 => _120.inclusions, 'optionalAccess', _121 => _121.lists, 'optionalAccess', _122 => _122.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
5176
5194
  return this.callApi({
5177
5195
  type: Modules.Content,
5178
5196
  method: "GET" /* GET */,
@@ -5188,8 +5206,8 @@ var ContentService = class extends AbstractService {
5188
5206
  });
5189
5207
  if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
5190
5208
  if (params.search) endpoint.addAdditionalParam("search", params.search);
5191
- if (_optionalChain([Modules, 'access', _120 => _120.Content, 'access', _121 => _121.inclusions, 'optionalAccess', _122 => _122.lists, 'optionalAccess', _123 => _123.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
5192
- if (_optionalChain([Modules, 'access', _124 => _124.Content, 'access', _125 => _125.inclusions, 'optionalAccess', _126 => _126.lists, 'optionalAccess', _127 => _127.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
5209
+ if (_optionalChain([Modules, 'access', _123 => _123.Content, 'access', _124 => _124.inclusions, 'optionalAccess', _125 => _125.lists, 'optionalAccess', _126 => _126.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
5210
+ if (_optionalChain([Modules, 'access', _127 => _127.Content, 'access', _128 => _128.inclusions, 'optionalAccess', _129 => _129.lists, 'optionalAccess', _130 => _130.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
5193
5211
  return this.callApi({
5194
5212
  type: Modules.Content,
5195
5213
  method: "GET" /* GET */,
@@ -5316,8 +5334,8 @@ var HowToService = class extends AbstractService {
5316
5334
  const endpoint = new EndpointCreator({ endpoint: Modules.HowTo });
5317
5335
  if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
5318
5336
  if (params.search) endpoint.addAdditionalParam("search", params.search);
5319
- if (_optionalChain([Modules, 'access', _128 => _128.HowTo, 'access', _129 => _129.inclusions, 'optionalAccess', _130 => _130.lists, 'optionalAccess', _131 => _131.fields])) endpoint.limitToFields(Modules.HowTo.inclusions.lists.fields);
5320
- if (_optionalChain([Modules, 'access', _132 => _132.HowTo, 'access', _133 => _133.inclusions, 'optionalAccess', _134 => _134.lists, 'optionalAccess', _135 => _135.types])) endpoint.limitToType(Modules.HowTo.inclusions.lists.types);
5337
+ if (_optionalChain([Modules, 'access', _131 => _131.HowTo, 'access', _132 => _132.inclusions, 'optionalAccess', _133 => _133.lists, 'optionalAccess', _134 => _134.fields])) endpoint.limitToFields(Modules.HowTo.inclusions.lists.fields);
5338
+ if (_optionalChain([Modules, 'access', _135 => _135.HowTo, 'access', _136 => _136.inclusions, 'optionalAccess', _137 => _137.lists, 'optionalAccess', _138 => _138.types])) endpoint.limitToType(Modules.HowTo.inclusions.lists.types);
5321
5339
  return this.callApi({
5322
5340
  type: Modules.HowTo,
5323
5341
  method: "GET" /* GET */,
@@ -5351,7 +5369,7 @@ var HowToService = class extends AbstractService {
5351
5369
  };
5352
5370
 
5353
5371
  // src/features/feature/data/feature.ts
5354
- var Feature = (_class18 = class extends AbstractApiData {constructor(...args16) { super(...args16); _class18.prototype.__init40.call(this); }
5372
+ var Feature = (_class19 = class extends AbstractApiData {constructor(...args16) { super(...args16); _class19.prototype.__init40.call(this); }
5355
5373
  static {
5356
5374
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Feature");
5357
5375
  }
@@ -5374,7 +5392,7 @@ var Feature = (_class18 = class extends AbstractApiData {constructor(...args16)
5374
5392
  this._modules = this._readIncluded(data, `modules`, Modules.Module);
5375
5393
  return this;
5376
5394
  }
5377
- }, _class18);
5395
+ }, _class19);
5378
5396
 
5379
5397
  // src/features/feature/data/feature.service.ts
5380
5398
  var FeatureService = class extends AbstractService {
@@ -5825,7 +5843,7 @@ var S3Service = class extends AbstractService {
5825
5843
  };
5826
5844
 
5827
5845
  // src/features/user/data/user.ts
5828
- var User = (_class19 = class extends AbstractApiData {constructor(...args17) { super(...args17); _class19.prototype.__init41.call(this);_class19.prototype.__init42.call(this);_class19.prototype.__init43.call(this); }
5846
+ var User = (_class20 = class extends AbstractApiData {constructor(...args17) { super(...args17); _class20.prototype.__init41.call(this);_class20.prototype.__init42.call(this);_class20.prototype.__init43.call(this); }
5829
5847
  static {
5830
5848
  _chunk7QVYU63Ejs.__name.call(void 0, this, "User");
5831
5849
  }
@@ -5955,7 +5973,7 @@ var User = (_class19 = class extends AbstractApiData {constructor(...args17) { s
5955
5973
  }
5956
5974
  return response;
5957
5975
  }
5958
- }, _class19);
5976
+ }, _class20);
5959
5977
 
5960
5978
  // src/features/user/data/user.fields.ts
5961
5979
  var UserFields = /* @__PURE__ */ ((UserFields2) => {
@@ -6024,8 +6042,8 @@ var UserService = class extends AbstractService {
6024
6042
  id: params.id,
6025
6043
  childEndpoint: "user-relevance"
6026
6044
  });
6027
- if (_optionalChain([Modules, 'access', _136 => _136.User, 'access', _137 => _137.inclusions, 'optionalAccess', _138 => _138.lists, 'optionalAccess', _139 => _139.fields])) endpoint.limitToFields(Modules.User.inclusions.lists.fields);
6028
- if (_optionalChain([Modules, 'access', _140 => _140.User, 'access', _141 => _141.inclusions, 'optionalAccess', _142 => _142.lists, 'optionalAccess', _143 => _143.types])) endpoint.limitToType(Modules.User.inclusions.lists.types);
6045
+ if (_optionalChain([Modules, 'access', _139 => _139.User, 'access', _140 => _140.inclusions, 'optionalAccess', _141 => _141.lists, 'optionalAccess', _142 => _142.fields])) endpoint.limitToFields(Modules.User.inclusions.lists.fields);
6046
+ if (_optionalChain([Modules, 'access', _143 => _143.User, 'access', _144 => _144.inclusions, 'optionalAccess', _145 => _145.lists, 'optionalAccess', _146 => _146.types])) endpoint.limitToType(Modules.User.inclusions.lists.types);
6029
6047
  return this.callApi({
6030
6048
  type: Modules.User,
6031
6049
  method: "GET" /* GET */,
@@ -6192,7 +6210,7 @@ var UserModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory)
6192
6210
  }), "UserModule");
6193
6211
 
6194
6212
  // src/features/oauth/data/oauth.ts
6195
- var OAuthClient = (_class20 = class extends AbstractApiData {constructor(...args18) { super(...args18); _class20.prototype.__init44.call(this);_class20.prototype.__init45.call(this);_class20.prototype.__init46.call(this);_class20.prototype.__init47.call(this);_class20.prototype.__init48.call(this); }
6213
+ var OAuthClient = (_class21 = class extends AbstractApiData {constructor(...args18) { super(...args18); _class21.prototype.__init44.call(this);_class21.prototype.__init45.call(this);_class21.prototype.__init46.call(this);_class21.prototype.__init47.call(this);_class21.prototype.__init48.call(this); }
6196
6214
  static {
6197
6215
  _chunk7QVYU63Ejs.__name.call(void 0, this, "OAuthClient");
6198
6216
  }
@@ -6259,7 +6277,7 @@ var OAuthClient = (_class20 = class extends AbstractApiData {constructor(...args
6259
6277
  if (data.isActive !== void 0) response.data.attributes.isActive = data.isActive;
6260
6278
  return response;
6261
6279
  }
6262
- }, _class20);
6280
+ }, _class21);
6263
6281
 
6264
6282
  // src/features/oauth/oauth.module.ts
6265
6283
  var OAuthModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -6284,7 +6302,7 @@ var OAuthService = class extends AbstractService {
6284
6302
  type: Modules.OAuth,
6285
6303
  method: "GET" /* GET */,
6286
6304
  endpoint: new EndpointCreator({ endpoint: "oauth/clients" }).generate(),
6287
- next: _optionalChain([params, 'optionalAccess', _144 => _144.next])
6305
+ next: _optionalChain([params, 'optionalAccess', _147 => _147.next])
6288
6306
  });
6289
6307
  }
6290
6308
  /**
@@ -6310,7 +6328,7 @@ var OAuthService = class extends AbstractService {
6310
6328
  });
6311
6329
  return {
6312
6330
  client: result.data,
6313
- clientSecret: _optionalChain([result, 'access', _145 => _145.meta, 'optionalAccess', _146 => _146.clientSecret])
6331
+ clientSecret: _optionalChain([result, 'access', _148 => _148.meta, 'optionalAccess', _149 => _149.clientSecret])
6314
6332
  };
6315
6333
  }
6316
6334
  /**
@@ -6349,7 +6367,7 @@ var OAuthService = class extends AbstractService {
6349
6367
  }).generate()
6350
6368
  });
6351
6369
  return {
6352
- clientSecret: _optionalChain([result, 'access', _147 => _147.meta, 'optionalAccess', _148 => _148.clientSecret])
6370
+ clientSecret: _optionalChain([result, 'access', _150 => _150.meta, 'optionalAccess', _151 => _151.clientSecret])
6353
6371
  };
6354
6372
  }
6355
6373
  // ==========================================
@@ -6393,7 +6411,7 @@ var OAuthService = class extends AbstractService {
6393
6411
  overridesJsonApiCreation: true
6394
6412
  });
6395
6413
  return {
6396
- redirectUrl: _optionalChain([result, 'access', _149 => _149.meta, 'optionalAccess', _150 => _150.redirectUrl])
6414
+ redirectUrl: _optionalChain([result, 'access', _152 => _152.meta, 'optionalAccess', _153 => _153.redirectUrl])
6397
6415
  };
6398
6416
  }
6399
6417
  /**
@@ -6413,7 +6431,7 @@ var OAuthService = class extends AbstractService {
6413
6431
  overridesJsonApiCreation: true
6414
6432
  });
6415
6433
  return {
6416
- redirectUrl: _optionalChain([result, 'access', _151 => _151.meta, 'optionalAccess', _152 => _152.redirectUrl])
6434
+ redirectUrl: _optionalChain([result, 'access', _154 => _154.meta, 'optionalAccess', _155 => _155.redirectUrl])
6417
6435
  };
6418
6436
  }
6419
6437
  };
@@ -6473,7 +6491,7 @@ var AVAILABLE_OAUTH_SCOPES = Object.values(OAUTH_SCOPE_DISPLAY);
6473
6491
  var DEFAULT_GRANT_TYPES = ["authorization_code", "refresh_token"];
6474
6492
 
6475
6493
  // src/features/waitlist/data/Waitlist.ts
6476
- var Waitlist = (_class21 = class extends AbstractApiData {constructor(...args19) { super(...args19); _class21.prototype.__init49.call(this);_class21.prototype.__init50.call(this); }
6494
+ var Waitlist = (_class22 = class extends AbstractApiData {constructor(...args19) { super(...args19); _class22.prototype.__init49.call(this);_class22.prototype.__init50.call(this); }
6477
6495
  static {
6478
6496
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Waitlist");
6479
6497
  }
@@ -6557,7 +6575,7 @@ var Waitlist = (_class21 = class extends AbstractApiData {constructor(...args19)
6557
6575
  }
6558
6576
  return response;
6559
6577
  }
6560
- }, _class21);
6578
+ }, _class22);
6561
6579
 
6562
6580
  // src/features/waitlist/data/WaitlistService.ts
6563
6581
  var WaitlistService = class extends AbstractService {
@@ -6597,15 +6615,15 @@ var WaitlistService = class extends AbstractService {
6597
6615
  */
6598
6616
  static async findMany(params) {
6599
6617
  const endpoint = new EndpointCreator({ endpoint: Modules.Waitlist });
6600
- if (_optionalChain([params, 'optionalAccess', _153 => _153.status])) endpoint.addAdditionalParam("status", params.status);
6601
- if (_optionalChain([params, 'optionalAccess', _154 => _154.search])) endpoint.addAdditionalParam("search", params.search);
6602
- if (_optionalChain([params, 'optionalAccess', _155 => _155.fetchAll])) endpoint.addAdditionalParam("fetchAll", "true");
6618
+ if (_optionalChain([params, 'optionalAccess', _156 => _156.status])) endpoint.addAdditionalParam("status", params.status);
6619
+ if (_optionalChain([params, 'optionalAccess', _157 => _157.search])) endpoint.addAdditionalParam("search", params.search);
6620
+ if (_optionalChain([params, 'optionalAccess', _158 => _158.fetchAll])) endpoint.addAdditionalParam("fetchAll", "true");
6603
6621
  return this.callApi({
6604
6622
  type: Modules.Waitlist,
6605
6623
  method: "GET" /* GET */,
6606
6624
  endpoint: endpoint.generate(),
6607
- next: _optionalChain([params, 'optionalAccess', _156 => _156.next]),
6608
- previous: _optionalChain([params, 'optionalAccess', _157 => _157.prev])
6625
+ next: _optionalChain([params, 'optionalAccess', _159 => _159.next]),
6626
+ previous: _optionalChain([params, 'optionalAccess', _160 => _160.prev])
6609
6627
  });
6610
6628
  }
6611
6629
  /**
@@ -6673,10 +6691,10 @@ var WaitlistService = class extends AbstractService {
6673
6691
  method: "GET" /* GET */,
6674
6692
  endpoint: endpoint.generate()
6675
6693
  });
6676
- const attributes = _optionalChain([response, 'access', _158 => _158.data, 'optionalAccess', _159 => _159._jsonApi, 'optionalAccess', _160 => _160.attributes]);
6694
+ const attributes = _optionalChain([response, 'access', _161 => _161.data, 'optionalAccess', _162 => _162._jsonApi, 'optionalAccess', _163 => _163.attributes]);
6677
6695
  return {
6678
- email: _optionalChain([attributes, 'optionalAccess', _161 => _161.email]),
6679
- valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess', _162 => _162.valid]), () => ( false))
6696
+ email: _optionalChain([attributes, 'optionalAccess', _164 => _164.email]),
6697
+ valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess', _165 => _165.valid]), () => ( false))
6680
6698
  };
6681
6699
  } catch (_error) {
6682
6700
  return null;
@@ -6685,7 +6703,7 @@ var WaitlistService = class extends AbstractService {
6685
6703
  };
6686
6704
 
6687
6705
  // src/features/waitlist/data/waitlist-stats.ts
6688
- var WaitlistStats = (_class22 = class extends AbstractApiData {constructor(...args20) { super(...args20); _class22.prototype.__init51.call(this);_class22.prototype.__init52.call(this);_class22.prototype.__init53.call(this);_class22.prototype.__init54.call(this);_class22.prototype.__init55.call(this); }
6706
+ var WaitlistStats = (_class23 = class extends AbstractApiData {constructor(...args20) { super(...args20); _class23.prototype.__init51.call(this);_class23.prototype.__init52.call(this);_class23.prototype.__init53.call(this);_class23.prototype.__init54.call(this);_class23.prototype.__init55.call(this); }
6689
6707
  static {
6690
6708
  _chunk7QVYU63Ejs.__name.call(void 0, this, "WaitlistStats");
6691
6709
  }
@@ -6722,7 +6740,7 @@ var WaitlistStats = (_class22 = class extends AbstractApiData {constructor(...ar
6722
6740
  createJsonApi(_data) {
6723
6741
  throw new Error("WaitlistStats is read-only and cannot be created");
6724
6742
  }
6725
- }, _class22);
6743
+ }, _class23);
6726
6744
 
6727
6745
  // src/features/waitlist/waitlist.module.ts
6728
6746
  var WaitlistModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory) => factory({
@@ -6762,7 +6780,7 @@ var PermissionMapping = class extends AbstractApiData {
6762
6780
  super.rehydrate(data);
6763
6781
  this._roleId = data.jsonApi.attributes.roleId;
6764
6782
  this._moduleId = data.jsonApi.attributes.moduleId;
6765
- this._permissions = _optionalChain([data, 'access', _163 => _163.jsonApi, 'access', _164 => _164.meta, 'optionalAccess', _165 => _165.permissions]);
6783
+ this._permissions = _optionalChain([data, 'access', _166 => _166.jsonApi, 'access', _167 => _167.meta, 'optionalAccess', _168 => _168.permissions]);
6766
6784
  return this;
6767
6785
  }
6768
6786
  };
@@ -6881,7 +6899,7 @@ var ReferralStatsModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
6881
6899
  }), "ReferralStatsModule");
6882
6900
 
6883
6901
  // src/features/audit-log/data/audit-log.ts
6884
- var AuditLog = (_class23 = class extends AbstractApiData {constructor(...args21) { super(...args21); _class23.prototype.__init56.call(this); }
6902
+ var AuditLog = (_class24 = class extends AbstractApiData {constructor(...args21) { super(...args21); _class24.prototype.__init56.call(this); }
6885
6903
  static {
6886
6904
  _chunk7QVYU63Ejs.__name.call(void 0, this, "AuditLog");
6887
6905
  }
@@ -6932,7 +6950,7 @@ var AuditLog = (_class23 = class extends AbstractApiData {constructor(...args21)
6932
6950
  createJsonApi() {
6933
6951
  throw new Error("AuditLog is read-only");
6934
6952
  }
6935
- }, _class23);
6953
+ }, _class24);
6936
6954
 
6937
6955
  // src/features/audit-log/data/audit-log.service.ts
6938
6956
  var AuditLogService = class extends AbstractService {
@@ -7142,4 +7160,4 @@ var AuditLogModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (facto
7142
7160
 
7143
7161
 
7144
7162
  exports.RehydrationFactory = RehydrationFactory; exports.AbstractApiData = AbstractApiData; exports.HttpMethod = HttpMethod; exports.getLastApiTotal = getLastApiTotal; exports.clearLastApiTotal = clearLastApiTotal; exports.setGlobalErrorHandler = setGlobalErrorHandler; exports.getGlobalErrorHandler = getGlobalErrorHandler; exports.AbstractService = AbstractService; exports.configureClientJsonApi = configureClientJsonApi; exports.getClientApiUrl = getClientApiUrl; exports.getClientAppUrl = getClientAppUrl; exports.getClientTrackablePages = getClientTrackablePages; exports.ClientJsonApiGet = ClientJsonApiGet; exports.ClientJsonApiPost = ClientJsonApiPost; exports.ClientJsonApiPut = ClientJsonApiPut; exports.ClientJsonApiPatch = ClientJsonApiPatch; exports.ClientJsonApiDelete = ClientJsonApiDelete; exports.ClientHttpMethod = ClientHttpMethod; exports.setClientGlobalErrorHandler = setClientGlobalErrorHandler; exports.getClientGlobalErrorHandler = getClientGlobalErrorHandler; exports.ClientAbstractService = ClientAbstractService; exports.ModuleRegistrar = ModuleRegistrar; exports.ModuleRegistry = ModuleRegistry; exports.Modules = Modules; exports.EndpointCreator = EndpointCreator; exports.createJsonApiInclusion = createJsonApiInclusion; exports.rehydrate = rehydrate; exports.rehydrateList = rehydrateList; exports.cn = cn; exports.composeRefs = composeRefs; exports.useComposedRefs = useComposedRefs; exports.useIsMobile = useIsMobile; exports.formatDate = formatDate; exports.exists = exists; exports.TableOptions = TableOptions; exports.getTableOptions = getTableOptions; exports.getTableComponents = getTableComponents; exports.userObjectSchema = userObjectSchema; exports.entityObjectSchema = entityObjectSchema; exports.getInitials = getInitials; exports.BlockNoteDiffUtil = BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = BlockNoteWordDiffRendererUtil; exports.getIconByModule = getIconByModule; exports.getIcon = getIcon; exports.getIconByModuleName = getIconByModuleName; exports.getLucideIcon = getLucideIcon; exports.getLucideIconByModule = getLucideIconByModule; exports.getLucideIconByModuleName = getLucideIconByModuleName; exports.showToast = showToast; exports.showError = showError; exports.dismissToast = dismissToast; exports.showCustomToast = showCustomToast; exports.Action = Action; exports.checkPermissions = checkPermissions; exports.checkPermissionsFromServer = checkPermissionsFromServer; exports.getValueFromPath = getValueFromPath; exports.TotpAuthenticator = TotpAuthenticator; exports.TotpAuthenticatorModule = TotpAuthenticatorModule; exports.TotpSetup = TotpSetup; exports.TotpSetupModule = TotpSetupModule; exports.TotpVerify = TotpVerify; exports.TotpVerifyModule = TotpVerifyModule; exports.TotpVerifyLogin = TotpVerifyLogin; exports.TotpVerifyLoginModule = TotpVerifyLoginModule; exports.Passkey = Passkey; exports.PasskeyModule = PasskeyModule; exports.PasskeyRegistrationOptions = PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = PasskeyRegistrationVerifyModule; exports.PasskeyRename = PasskeyRename; exports.PasskeyRenameModule = PasskeyRenameModule; exports.PasskeyVerifyLogin = PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = PasskeyVerifyLoginModule; exports.PasskeyAuthenticationOptions = PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = PasskeyAuthenticationOptionsModule; exports.TwoFactorEnable = TwoFactorEnable; exports.TwoFactorEnableModule = TwoFactorEnableModule; exports.TwoFactorChallenge = TwoFactorChallenge; exports.TwoFactorChallengeModule = TwoFactorChallengeModule; exports.BackupCodeVerify = BackupCodeVerify; exports.BackupCodeVerifyModule = BackupCodeVerifyModule; exports.configureAuth = configureAuth; exports.getTokenHandler = getTokenHandler; exports.Auth = Auth; exports.AuthService = AuthService; exports.TwoFactorStatus = TwoFactorStatus; exports.TwoFactorService = TwoFactorService; exports.AuthComponent = AuthComponent; exports.AuthModule = AuthModule; exports.TwoFactorStatusModule = TwoFactorStatusModule; exports.BillingService = BillingService; exports.Billing = Billing; exports.BillingModule = BillingModule; exports.PaymentMethod = PaymentMethod; exports.StripeCustomer = StripeCustomer; exports.StripeCustomerService = StripeCustomerService; exports.StripeCustomerModule = StripeCustomerModule; exports.StripePaymentMethodModule = StripePaymentMethodModule; exports.StripeInvoice = StripeInvoice; exports.InvoiceStatus = InvoiceStatus; exports.StripeInvoiceService = StripeInvoiceService; exports.StripeInvoiceModule = StripeInvoiceModule; exports.StripePrice = StripePrice; exports.StripePriceService = StripePriceService; exports.StripePriceModule = StripePriceModule; exports.StripeProduct = StripeProduct; exports.StripeProductService = StripeProductService; exports.StripeProductModule = StripeProductModule; exports.StripeSubscription = StripeSubscription; exports.SubscriptionStatus = SubscriptionStatus; exports.StripeSubscriptionService = StripeSubscriptionService; exports.StripeSubscriptionModule = StripeSubscriptionModule; exports.StripeUsage = StripeUsage; exports.StripeUsageService = StripeUsageService; exports.StripeUsageModule = StripeUsageModule; exports.StripePromotionCodeService = StripePromotionCodeService; exports.StripePromotionCode = StripePromotionCode; exports.StripePromotionCodeModule = StripePromotionCodeModule; exports.Company = Company; exports.CompanyFields = CompanyFields; exports.CompanyService = CompanyService; exports.CompanyModule = CompanyModule; exports.Content = Content; exports.ContentFields = ContentFields; exports.ContentService = ContentService; exports.ContentModule = ContentModule; exports.HowTo = HowTo; exports.HowToModule = HowToModule; exports.HowToFields = HowToFields; exports.HowToService = HowToService; exports.Feature = Feature; exports.FeatureService = FeatureService; exports.FeatureModule = FeatureModule; exports.Module = Module; exports.ModuleModule = ModuleModule; exports.Notification = Notification; exports.NotificationFields = NotificationFields; exports.NotificationService = NotificationService; exports.NotificationModule = NotificationModule; exports.Push = Push; exports.PushService = PushService; exports.PushModule = PushModule; exports.Role = Role; exports.RoleFields = RoleFields; exports.RoleService = RoleService; exports.RoleModule = RoleModule; exports.S3 = S3; exports.S3Module = S3Module; exports.S3Service = S3Service; exports.User = User; exports.UserFields = UserFields; exports.UserService = UserService; exports.AuthorModule = AuthorModule; exports.UserModule = UserModule; exports.OAuthClient = OAuthClient; exports.OAuthModule = OAuthModule; exports.OAuthService = OAuthService; exports.OAUTH_SCOPE_DISPLAY = OAUTH_SCOPE_DISPLAY; exports.AVAILABLE_OAUTH_SCOPES = AVAILABLE_OAUTH_SCOPES; exports.DEFAULT_GRANT_TYPES = DEFAULT_GRANT_TYPES; exports.Waitlist = Waitlist; exports.WaitlistService = WaitlistService; exports.WaitlistStats = WaitlistStats; exports.WaitlistModule = WaitlistModule; exports.WaitlistStatsModule = WaitlistStatsModule; exports.PermissionMapping = PermissionMapping; exports.ModulePaths = ModulePaths; exports.PermissionMappingModule = PermissionMappingModule; exports.ModulePathsModule = ModulePathsModule; exports.ReferralStats = ReferralStats; exports.ReferralService = ReferralService; exports.ReferralModule = ReferralModule; exports.ReferralStatsModule = ReferralStatsModule; exports.AuditLog = AuditLog; exports.AuditLogService = AuditLogService; exports.AuditLogModule = AuditLogModule;
7145
- //# sourceMappingURL=chunk-56VU7A4I.js.map
7163
+ //# sourceMappingURL=chunk-FKLP4NED.js.map