@carlonicora/nextjs-jsonapi 1.32.2 → 1.34.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 (97) hide show
  1. package/dist/{BlockNoteEditor-EWOPRRJN.mjs → BlockNoteEditor-DFHJWZZB.mjs} +3 -3
  2. package/dist/{BlockNoteEditor-76UO4RKT.js → BlockNoteEditor-TS5AN6W2.js} +13 -13
  3. package/dist/{BlockNoteEditor-76UO4RKT.js.map → BlockNoteEditor-TS5AN6W2.js.map} +1 -1
  4. package/dist/billing/index.d.mts +6 -3
  5. package/dist/billing/index.d.ts +6 -3
  6. package/dist/billing/index.js +461 -380
  7. package/dist/billing/index.js.map +1 -1
  8. package/dist/billing/index.mjs +113 -32
  9. package/dist/billing/index.mjs.map +1 -1
  10. package/dist/{chunk-CCCAOXA2.mjs → chunk-GFRODCD7.mjs} +65 -63
  11. package/dist/chunk-GFRODCD7.mjs.map +1 -0
  12. package/dist/{chunk-YCP2OMFD.mjs → chunk-HWQBSVBT.mjs} +40 -7
  13. package/dist/chunk-HWQBSVBT.mjs.map +1 -0
  14. package/dist/{chunk-KYG2PIRB.js → chunk-TZRAOUAR.js} +118 -85
  15. package/dist/chunk-TZRAOUAR.js.map +1 -0
  16. package/dist/{chunk-SS6ZCTYH.js → chunk-UPA67DQF.js} +644 -642
  17. package/dist/chunk-UPA67DQF.js.map +1 -0
  18. package/dist/client/index.d.mts +7 -6
  19. package/dist/client/index.d.ts +7 -6
  20. package/dist/client/index.js +3 -3
  21. package/dist/client/index.mjs +2 -2
  22. package/dist/components/index.d.mts +4 -3
  23. package/dist/components/index.d.ts +4 -3
  24. package/dist/components/index.js +3 -3
  25. package/dist/components/index.mjs +2 -2
  26. package/dist/{config-CHwoRDOp.d.ts → config-BbaBV_yk.d.ts} +1 -1
  27. package/dist/{config-DiWyJzk9.d.mts → config-BxwhHdCD.d.mts} +1 -1
  28. package/dist/{content.interface-BSpowEiW.d.mts → content.interface-CWV0q4lZ.d.mts} +1 -1
  29. package/dist/{content.interface-DFQ7mkpL.d.ts → content.interface-CgUu4771.d.ts} +1 -1
  30. package/dist/contexts/index.d.mts +3 -2
  31. package/dist/contexts/index.d.ts +3 -2
  32. package/dist/contexts/index.js +3 -3
  33. package/dist/contexts/index.mjs +2 -2
  34. package/dist/core/index.d.mts +17 -8
  35. package/dist/core/index.d.ts +17 -8
  36. package/dist/core/index.js +6 -2
  37. package/dist/core/index.js.map +1 -1
  38. package/dist/core/index.mjs +5 -1
  39. package/dist/feature.interface-BxFFOPNq.d.mts +19 -0
  40. package/dist/feature.interface-CIWxo8NP.d.ts +19 -0
  41. package/dist/index.d.mts +7 -6
  42. package/dist/index.d.ts +7 -6
  43. package/dist/index.js +6 -2
  44. package/dist/index.js.map +1 -1
  45. package/dist/index.mjs +5 -1
  46. package/dist/{notification.interface-D5MbtfZK.d.mts → notification.interface-DIln2r7X.d.mts} +2 -17
  47. package/dist/{notification.interface-CmKmObIU.d.ts → notification.interface-XARGKJAq.d.ts} +2 -17
  48. package/dist/{s3.service-CoC0k0iu.d.ts → s3.service-DcqkGrKD.d.ts} +12 -3
  49. package/dist/{s3.service-Duh9HW2n.d.mts → s3.service-ag6M_7GO.d.mts} +12 -3
  50. package/dist/scripts/generate-web-module/templates/pages/detail-page.template.js +1 -1
  51. package/dist/scripts/generate-web-module/templates/pages/detail-page.template.js.map +1 -1
  52. package/dist/scripts/generate-web-module/templates/pages/list-page.template.js +1 -1
  53. package/dist/scripts/generate-web-module/templates/pages/list-page.template.js.map +1 -1
  54. package/dist/server/index.d.mts +4 -3
  55. package/dist/server/index.d.ts +4 -3
  56. package/dist/server/index.js +3 -3
  57. package/dist/server/index.mjs +1 -1
  58. package/dist/{stripe-subscription.interface-BaZUngWe.d.ts → stripe-subscription.interface-Dm__xmvE.d.ts} +3 -0
  59. package/dist/{stripe-subscription.interface-Cm_It1fz.d.mts → stripe-subscription.interface-_VWPY2AA.d.mts} +3 -0
  60. package/dist/{useDataListRetriever-futhx3OP.d.mts → useDataListRetriever-BqJSFBck.d.mts} +1 -0
  61. package/dist/{useDataListRetriever-futhx3OP.d.ts → useDataListRetriever-BqJSFBck.d.ts} +1 -0
  62. package/dist/{useSocket-DUqGoPya.d.mts → useSocket-BILAdmZ0.d.mts} +1 -1
  63. package/dist/{useSocket-QuHa0ZmO.d.ts → useSocket-awibcC9B.d.ts} +1 -1
  64. package/package.json +1 -1
  65. package/scripts/generate-web-module/templates/pages/detail-page.template.ts +1 -1
  66. package/scripts/generate-web-module/templates/pages/list-page.template.ts +1 -1
  67. package/src/components/forms/DatePickerPopover.tsx +17 -15
  68. package/src/components/tables/ContentListTable.tsx +2 -2
  69. package/src/core/abstracts/AbstractService.ts +25 -0
  70. package/src/core/abstracts/ClientAbstractService.ts +10 -0
  71. package/src/features/billing/components/containers/BillingDashboardContainer.tsx +4 -1
  72. package/src/features/billing/stripe-invoice/components/details/InvoiceDetails.tsx +1 -1
  73. package/src/features/billing/stripe-invoice/components/lists/InvoicesList.tsx +1 -1
  74. package/src/features/billing/stripe-price/components/forms/PriceEditor.tsx +85 -1
  75. package/src/features/billing/stripe-price/data/stripe-price.interface.ts +3 -0
  76. package/src/features/billing/stripe-price/data/stripe-price.ts +18 -0
  77. package/src/features/billing/stripe-subscription/components/containers/SubscriptionsContainer.tsx +5 -2
  78. package/src/features/billing/stripe-subscription/components/forms/CancelSubscriptionDialog.tsx +5 -18
  79. package/src/features/billing/stripe-subscription/components/lists/SubscriptionsList.tsx +1 -1
  80. package/src/features/billing/stripe-subscription/components/widgets/ProductPricingList.tsx +16 -12
  81. package/src/features/billing/stripe-subscription/components/wizards/SubscriptionWizard.tsx +14 -3
  82. package/src/features/billing/stripe-subscription/components/wizards/WizardStepPlanSelection.tsx +14 -9
  83. package/src/features/billing/stripe-subscription/components/wizards/WizardStepReview.tsx +1 -1
  84. package/src/features/billing/stripe-subscription/data/stripe-subscription.service.ts +2 -2
  85. package/src/features/billing/stripe-usage/components/lists/UsageHistoryTable.tsx +1 -1
  86. package/src/features/company/components/details/TokenStatusIndicator.tsx +4 -6
  87. package/src/features/company/hooks/useSubscriptionStatus.ts +18 -0
  88. package/src/features/content/hooks/useContentTableStructure.tsx +1 -1
  89. package/src/features/user/contexts/CurrentUserContext.tsx +15 -1
  90. package/src/features/user/hooks/useUserTableStructure.tsx +1 -1
  91. package/src/hooks/useDataListRetriever.ts +13 -0
  92. package/src/shadcnui/ui/table.tsx +20 -49
  93. package/dist/chunk-CCCAOXA2.mjs.map +0 -1
  94. package/dist/chunk-KYG2PIRB.js.map +0 -1
  95. package/dist/chunk-SS6ZCTYH.js.map +0 -1
  96. package/dist/chunk-YCP2OMFD.mjs.map +0 -1
  97. /package/dist/{BlockNoteEditor-EWOPRRJN.mjs.map → BlockNoteEditor-DFHJWZZB.mjs.map} +0 -0
@@ -211,6 +211,15 @@ var HttpMethod = /* @__PURE__ */ ((HttpMethod2) => {
211
211
  HttpMethod2["DELETE"] = "DELETE";
212
212
  return HttpMethod2;
213
213
  })(HttpMethod || {});
214
+ var lastApiTotal = void 0;
215
+ function getLastApiTotal() {
216
+ return lastApiTotal;
217
+ }
218
+ _chunk7QVYU63Ejs.__name.call(void 0, getLastApiTotal, "getLastApiTotal");
219
+ function clearLastApiTotal() {
220
+ lastApiTotal = void 0;
221
+ }
222
+ _chunk7QVYU63Ejs.__name.call(void 0, clearLastApiTotal, "clearLastApiTotal");
214
223
  var globalErrorHandler = null;
215
224
  function setGlobalErrorHandler(handler) {
216
225
  globalErrorHandler = handler;
@@ -252,7 +261,8 @@ var AbstractService = class {
252
261
  endpoint: params.endpoint,
253
262
  next: params.next,
254
263
  previous: params.previous,
255
- self: params.self
264
+ self: params.self,
265
+ total: params.total
256
266
  });
257
267
  }
258
268
  /**
@@ -265,7 +275,8 @@ var AbstractService = class {
265
275
  endpoint: params.endpoint,
266
276
  next: params.next,
267
277
  previous: params.previous,
268
- self: params.self
278
+ self: params.self,
279
+ total: params.total
269
280
  });
270
281
  }
271
282
  /**
@@ -351,6 +362,10 @@ var AbstractService = class {
351
362
  if (apiResponse.next && params.next) params.next.next = apiResponse.next;
352
363
  if (apiResponse.prev && params.previous) params.previous.previous = apiResponse.prev;
353
364
  if (apiResponse.self && params.self) params.self.self = apiResponse.self;
365
+ if (_optionalChain([apiResponse, 'access', _11 => _11.meta, 'optionalAccess', _12 => _12.total]) !== void 0) {
366
+ lastApiTotal = apiResponse.meta.total;
367
+ if (params.total) params.total.total = apiResponse.meta.total;
368
+ }
354
369
  return apiResponse.data;
355
370
  }
356
371
  /**
@@ -482,7 +497,7 @@ function configureClientJsonApi(config) {
482
497
  }
483
498
  _chunk7QVYU63Ejs.__name.call(void 0, configureClientJsonApi, "configureClientJsonApi");
484
499
  function getClientApiUrl() {
485
- if (_optionalChain([_clientConfig, 'optionalAccess', _11 => _11.apiUrl])) {
500
+ if (_optionalChain([_clientConfig, 'optionalAccess', _13 => _13.apiUrl])) {
486
501
  return _clientConfig.apiUrl;
487
502
  }
488
503
  const envUrl = process.env.NEXT_PUBLIC_API_URL;
@@ -495,7 +510,7 @@ function getClientApiUrl() {
495
510
  }
496
511
  _chunk7QVYU63Ejs.__name.call(void 0, getClientApiUrl, "getClientApiUrl");
497
512
  function getClientAppUrl() {
498
- if (_optionalChain([_clientConfig, 'optionalAccess', _12 => _12.appUrl])) {
513
+ if (_optionalChain([_clientConfig, 'optionalAccess', _14 => _14.appUrl])) {
499
514
  return _clientConfig.appUrl;
500
515
  }
501
516
  const envUrl = process.env.NEXT_PUBLIC_ADDRESS;
@@ -508,11 +523,11 @@ function getClientAppUrl() {
508
523
  }
509
524
  _chunk7QVYU63Ejs.__name.call(void 0, getClientAppUrl, "getClientAppUrl");
510
525
  function getClientTrackablePages() {
511
- return _nullishCoalesce(_optionalChain([_clientConfig, 'optionalAccess', _13 => _13.trackablePages]), () => ( []));
526
+ return _nullishCoalesce(_optionalChain([_clientConfig, 'optionalAccess', _15 => _15.trackablePages]), () => ( []));
512
527
  }
513
528
  _chunk7QVYU63Ejs.__name.call(void 0, getClientTrackablePages, "getClientTrackablePages");
514
529
  function runClientBootstrapper() {
515
- if (_optionalChain([_clientConfig, 'optionalAccess', _14 => _14.bootstrapper])) {
530
+ if (_optionalChain([_clientConfig, 'optionalAccess', _16 => _16.bootstrapper])) {
516
531
  _clientConfig.bootstrapper();
517
532
  }
518
533
  }
@@ -531,7 +546,7 @@ async function ClientJsonApiGet(params) {
531
546
  token,
532
547
  companyId: params.companyId,
533
548
  language: params.language,
534
- additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _15 => _15.additionalHeaders])
549
+ additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _17 => _17.additionalHeaders])
535
550
  });
536
551
  return _chunkFM6WRAN5js.translateResponse.call(void 0, {
537
552
  classKey: params.classKey,
@@ -564,7 +579,7 @@ async function ClientJsonApiPost(params) {
564
579
  files: params.files,
565
580
  companyId: params.companyId,
566
581
  language: params.language,
567
- additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _16 => _16.additionalHeaders])
582
+ additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _18 => _18.additionalHeaders])
568
583
  });
569
584
  return _chunkFM6WRAN5js.translateResponse.call(void 0, {
570
585
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
@@ -591,7 +606,7 @@ async function ClientJsonApiPut(params) {
591
606
  files: params.files,
592
607
  companyId: params.companyId,
593
608
  language: params.language,
594
- additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _17 => _17.additionalHeaders])
609
+ additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _19 => _19.additionalHeaders])
595
610
  });
596
611
  return _chunkFM6WRAN5js.translateResponse.call(void 0, {
597
612
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
@@ -618,7 +633,7 @@ async function ClientJsonApiPatch(params) {
618
633
  files: params.files,
619
634
  companyId: params.companyId,
620
635
  language: params.language,
621
- additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _18 => _18.additionalHeaders])
636
+ additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _20 => _20.additionalHeaders])
622
637
  });
623
638
  return _chunkFM6WRAN5js.translateResponse.call(void 0, {
624
639
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
@@ -637,7 +652,7 @@ async function ClientJsonApiDelete(params) {
637
652
  token,
638
653
  companyId: params.companyId,
639
654
  language: params.language,
640
- additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _19 => _19.additionalHeaders])
655
+ additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _21 => _21.additionalHeaders])
641
656
  });
642
657
  return _chunkFM6WRAN5js.translateResponse.call(void 0, {
643
658
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
@@ -701,7 +716,8 @@ var ClientAbstractService = class {
701
716
  endpoint: params.endpoint,
702
717
  next: params.next,
703
718
  previous: params.previous,
704
- self: params.self
719
+ self: params.self,
720
+ total: params.total
705
721
  });
706
722
  }
707
723
  /**
@@ -714,7 +730,8 @@ var ClientAbstractService = class {
714
730
  endpoint: params.endpoint,
715
731
  next: params.next,
716
732
  previous: params.previous,
717
- self: params.self
733
+ self: params.self,
734
+ total: params.total
718
735
  });
719
736
  }
720
737
  /**
@@ -793,6 +810,7 @@ var ClientAbstractService = class {
793
810
  if (apiResponse.next && params.next) params.next.next = apiResponse.next;
794
811
  if (apiResponse.prev && params.previous) params.previous.previous = apiResponse.prev;
795
812
  if (apiResponse.self && params.self) params.self.self = apiResponse.self;
813
+ if (_optionalChain([apiResponse, 'access', _22 => _22.meta, 'optionalAccess', _23 => _23.total]) !== void 0 && params.total) params.total.total = apiResponse.meta.total;
796
814
  return apiResponse.data;
797
815
  }
798
816
  /**
@@ -1774,14 +1792,14 @@ var BlockNoteWordDiffRendererUtil = class {
1774
1792
  return diffBlocks.map((block) => {
1775
1793
  const updatedBlock = { ...block };
1776
1794
  if (updatedBlock.diffId) {
1777
- updatedBlock.accepted = _optionalChain([acceptedChanges, 'optionalAccess', _20 => _20.has, 'call', _21 => _21(updatedBlock.diffId)]) || false;
1778
- updatedBlock.rejected = _optionalChain([rejectedChanges, 'optionalAccess', _22 => _22.has, 'call', _23 => _23(updatedBlock.diffId)]) || false;
1795
+ updatedBlock.accepted = _optionalChain([acceptedChanges, 'optionalAccess', _24 => _24.has, 'call', _25 => _25(updatedBlock.diffId)]) || false;
1796
+ updatedBlock.rejected = _optionalChain([rejectedChanges, 'optionalAccess', _26 => _26.has, 'call', _27 => _27(updatedBlock.diffId)]) || false;
1779
1797
  }
1780
1798
  if (updatedBlock.wordDiffs) {
1781
1799
  updatedBlock.wordDiffs = updatedBlock.wordDiffs.map((wordDiff) => ({
1782
1800
  ...wordDiff,
1783
- accepted: _optionalChain([acceptedChanges, 'optionalAccess', _24 => _24.has, 'call', _25 => _25(wordDiff.diffId)]) || false,
1784
- rejected: _optionalChain([rejectedChanges, 'optionalAccess', _26 => _26.has, 'call', _27 => _27(wordDiff.diffId)]) || false
1801
+ accepted: _optionalChain([acceptedChanges, 'optionalAccess', _28 => _28.has, 'call', _29 => _29(wordDiff.diffId)]) || false,
1802
+ rejected: _optionalChain([rejectedChanges, 'optionalAccess', _30 => _30.has, 'call', _31 => _31(wordDiff.diffId)]) || false
1785
1803
  }));
1786
1804
  }
1787
1805
  if (updatedBlock.children) {
@@ -1806,7 +1824,7 @@ var BlockNoteWordDiffRendererUtil = class {
1806
1824
  type: block.type || "paragraph",
1807
1825
  props: this.getBlockProps(block),
1808
1826
  content: Array.isArray(block.content) ? block.content : [],
1809
- children: _optionalChain([block, 'access', _28 => _28.children, 'optionalAccess', _29 => _29.map, 'call', _30 => _30(
1827
+ children: _optionalChain([block, 'access', _32 => _32.children, 'optionalAccess', _33 => _33.map, 'call', _34 => _34(
1810
1828
  (child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange)
1811
1829
  )])
1812
1830
  };
@@ -1819,7 +1837,7 @@ var BlockNoteWordDiffRendererUtil = class {
1819
1837
  type: block.type || "paragraph",
1820
1838
  props: block.props || {},
1821
1839
  content: Array.isArray(block.content) ? block.content : [],
1822
- children: _optionalChain([block, 'access', _31 => _31.children, 'optionalAccess', _32 => _32.map, 'call', _33 => _33(
1840
+ children: _optionalChain([block, 'access', _35 => _35.children, 'optionalAccess', _36 => _36.map, 'call', _37 => _37(
1823
1841
  (child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange)
1824
1842
  )])
1825
1843
  };
@@ -1871,7 +1889,7 @@ var BlockNoteWordDiffRendererUtil = class {
1871
1889
  type: block.type || "paragraph",
1872
1890
  props: this.getBlockProps(block),
1873
1891
  content,
1874
- children: _optionalChain([block, 'access', _34 => _34.children, 'optionalAccess', _35 => _35.map, 'call', _36 => _36(
1892
+ children: _optionalChain([block, 'access', _38 => _38.children, 'optionalAccess', _39 => _39.map, 'call', _40 => _40(
1875
1893
  (child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange)
1876
1894
  )])
1877
1895
  };
@@ -1893,7 +1911,7 @@ var BlockNoteWordDiffRendererUtil = class {
1893
1911
  type: block.type || "paragraph",
1894
1912
  props: block.props || {},
1895
1913
  content: Array.isArray(content) ? content : [],
1896
- children: _optionalChain([block, 'access', _37 => _37.children, 'optionalAccess', _38 => _38.map, 'call', _39 => _39((child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange))]) || []
1914
+ children: _optionalChain([block, 'access', _41 => _41.children, 'optionalAccess', _42 => _42.map, 'call', _43 => _43((child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange))]) || []
1897
1915
  };
1898
1916
  }
1899
1917
  static groupAndRenderWordDiffs(wordDiffs) {
@@ -2296,9 +2314,9 @@ var AuthService = class extends AbstractService {
2296
2314
  token: auth.token,
2297
2315
  refreshToken: auth.refreshToken,
2298
2316
  userId: auth.user.id,
2299
- companyId: _optionalChain([auth, 'access', _40 => _40.user, 'access', _41 => _41.company, 'optionalAccess', _42 => _42.id]),
2317
+ companyId: _optionalChain([auth, 'access', _44 => _44.user, 'access', _45 => _45.company, 'optionalAccess', _46 => _46.id]),
2300
2318
  roles: auth.user.roles.map((role) => role.id),
2301
- features: _nullishCoalesce(_optionalChain([auth, 'access', _43 => _43.user, 'access', _44 => _44.company, 'optionalAccess', _45 => _45.features, 'optionalAccess', _46 => _46.map, 'call', _47 => _47((feature) => feature.id)]), () => ( [])),
2319
+ features: _nullishCoalesce(_optionalChain([auth, 'access', _47 => _47.user, 'access', _48 => _48.company, 'optionalAccess', _49 => _49.features, 'optionalAccess', _50 => _50.map, 'call', _51 => _51((feature) => feature.id)]), () => ( [])),
2302
2320
  modules: auth.user.modules.map((module) => ({
2303
2321
  id: module.id,
2304
2322
  permissions: module.permissions
@@ -2308,7 +2326,7 @@ var AuthService = class extends AbstractService {
2308
2326
  return auth.user;
2309
2327
  }
2310
2328
  static async logout(params) {
2311
- const language = _optionalChain([params, 'optionalAccess', _48 => _48.language]) || "en-US";
2329
+ const language = _optionalChain([params, 'optionalAccess', _52 => _52.language]) || "en-US";
2312
2330
  await _chunkFM6WRAN5js.JsonApiDelete.call(void 0, {
2313
2331
  classKey: Modules.Auth,
2314
2332
  endpoint: new EndpointCreator({ endpoint: Modules.Auth }).generate(),
@@ -2382,9 +2400,9 @@ var AuthService = class extends AbstractService {
2382
2400
  token: auth.token,
2383
2401
  refreshToken: auth.refreshToken,
2384
2402
  userId: auth.user.id,
2385
- companyId: _optionalChain([auth, 'access', _49 => _49.user, 'access', _50 => _50.company, 'optionalAccess', _51 => _51.id]),
2403
+ companyId: _optionalChain([auth, 'access', _53 => _53.user, 'access', _54 => _54.company, 'optionalAccess', _55 => _55.id]),
2386
2404
  roles: auth.user.roles.map((role) => role.id),
2387
- features: _nullishCoalesce(_optionalChain([auth, 'access', _52 => _52.user, 'access', _53 => _53.company, 'optionalAccess', _54 => _54.features, 'optionalAccess', _55 => _55.map, 'call', _56 => _56((feature) => feature.id)]), () => ( [])),
2405
+ features: _nullishCoalesce(_optionalChain([auth, 'access', _56 => _56.user, 'access', _57 => _57.company, 'optionalAccess', _58 => _58.features, 'optionalAccess', _59 => _59.map, 'call', _60 => _60((feature) => feature.id)]), () => ( [])),
2388
2406
  modules: auth.user.modules.map((module) => ({
2389
2407
  id: module.id,
2390
2408
  permissions: module.permissions
@@ -2446,8 +2464,8 @@ var BillingService = class extends AbstractService {
2446
2464
  type: Modules.StripeUsage,
2447
2465
  method: "GET" /* GET */,
2448
2466
  endpoint: endpoint.generate(),
2449
- next: _optionalChain([params, 'optionalAccess', _57 => _57.next]),
2450
- previous: _optionalChain([params, 'optionalAccess', _58 => _58.prev])
2467
+ next: _optionalChain([params, 'optionalAccess', _61 => _61.next]),
2468
+ previous: _optionalChain([params, 'optionalAccess', _62 => _62.prev])
2451
2469
  });
2452
2470
  }
2453
2471
  /**
@@ -2678,8 +2696,8 @@ var StripeCustomerService = class extends AbstractService {
2678
2696
  type: Modules.StripePaymentMethod,
2679
2697
  method: "GET" /* GET */,
2680
2698
  endpoint: endpoint.generate(),
2681
- next: _optionalChain([params, 'optionalAccess', _59 => _59.next]),
2682
- previous: _optionalChain([params, 'optionalAccess', _60 => _60.prev])
2699
+ next: _optionalChain([params, 'optionalAccess', _63 => _63.next]),
2700
+ previous: _optionalChain([params, 'optionalAccess', _64 => _64.prev])
2683
2701
  });
2684
2702
  }
2685
2703
  /**
@@ -2891,15 +2909,15 @@ var StripeInvoiceService = class extends AbstractService {
2891
2909
  const endpoint = new EndpointCreator({
2892
2910
  endpoint: Modules.StripeInvoice
2893
2911
  });
2894
- if (_optionalChain([params, 'optionalAccess', _61 => _61.status])) {
2912
+ if (_optionalChain([params, 'optionalAccess', _65 => _65.status])) {
2895
2913
  endpoint.addAdditionalParam("status", params.status);
2896
2914
  }
2897
2915
  return this.callApi({
2898
2916
  type: Modules.StripeInvoice,
2899
2917
  method: "GET" /* GET */,
2900
2918
  endpoint: endpoint.generate(),
2901
- next: _optionalChain([params, 'optionalAccess', _62 => _62.next]),
2902
- previous: _optionalChain([params, 'optionalAccess', _63 => _63.prev])
2919
+ next: _optionalChain([params, 'optionalAccess', _66 => _66.next]),
2920
+ previous: _optionalChain([params, 'optionalAccess', _67 => _67.prev])
2903
2921
  });
2904
2922
  }
2905
2923
  /**
@@ -2940,7 +2958,7 @@ var StripeInvoiceModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
2940
2958
  }), "StripeInvoiceModule");
2941
2959
 
2942
2960
  // src/features/billing/stripe-price/data/stripe-price.ts
2943
- var StripePrice = (_class5 = class extends AbstractApiData {constructor(...args3) { super(...args3); _class5.prototype.__init5.call(this); }
2961
+ var StripePrice = (_class5 = class extends AbstractApiData {constructor(...args3) { super(...args3); _class5.prototype.__init5.call(this);_class5.prototype.__init6.call(this); }
2944
2962
  static {
2945
2963
  _chunk7QVYU63Ejs.__name.call(void 0, this, "StripePrice");
2946
2964
  }
@@ -2958,6 +2976,8 @@ var StripePrice = (_class5 = class extends AbstractApiData {constructor(...args3
2958
2976
 
2959
2977
 
2960
2978
 
2979
+ __init6() {this._priceFeatures = []}
2980
+ // Platform Feature entities
2961
2981
  get stripePriceId() {
2962
2982
  if (!this._stripePriceId) throw new Error("stripePriceId is not defined");
2963
2983
  return this._stripePriceId;
@@ -3004,6 +3024,9 @@ var StripePrice = (_class5 = class extends AbstractApiData {constructor(...args3
3004
3024
  get token() {
3005
3025
  return this._token;
3006
3026
  }
3027
+ get priceFeatures() {
3028
+ return this._priceFeatures;
3029
+ }
3007
3030
  rehydrate(data) {
3008
3031
  super.rehydrate(data);
3009
3032
  this._stripePriceId = data.jsonApi.attributes.stripePriceId;
@@ -3026,6 +3049,7 @@ var StripePrice = (_class5 = class extends AbstractApiData {constructor(...args3
3026
3049
  this._features = data.jsonApi.attributes.features ? typeof data.jsonApi.attributes.features === "string" ? JSON.parse(data.jsonApi.attributes.features) : data.jsonApi.attributes.features : void 0;
3027
3050
  this._token = data.jsonApi.attributes.token;
3028
3051
  this._product = this._readIncluded(data, "product", Modules.StripeProduct);
3052
+ this._priceFeatures = this._readIncluded(data, "features", Modules.Feature);
3029
3053
  return this;
3030
3054
  }
3031
3055
  createJsonApi(data) {
@@ -3066,6 +3090,13 @@ var StripePrice = (_class5 = class extends AbstractApiData {constructor(...args3
3066
3090
  if ("token" in data && data.token !== void 0) {
3067
3091
  response.data.attributes.token = data.token;
3068
3092
  }
3093
+ if (data.featureIds && data.featureIds.length > 0) {
3094
+ response.data.relationships = response.data.relationships || {};
3095
+ response.data.relationships.features = data.featureIds.map((id) => ({
3096
+ type: Modules.Feature.name,
3097
+ id
3098
+ }));
3099
+ }
3069
3100
  return response;
3070
3101
  }
3071
3102
  }, _class5);
@@ -3082,18 +3113,18 @@ var StripePriceService = class extends AbstractService {
3082
3113
  const endpoint = new EndpointCreator({
3083
3114
  endpoint: Modules.StripePrice
3084
3115
  });
3085
- if (_optionalChain([params, 'optionalAccess', _64 => _64.productId])) {
3116
+ if (_optionalChain([params, 'optionalAccess', _68 => _68.productId])) {
3086
3117
  endpoint.addAdditionalParam("productId", params.productId);
3087
3118
  }
3088
- if (_optionalChain([params, 'optionalAccess', _65 => _65.active]) !== void 0) {
3119
+ if (_optionalChain([params, 'optionalAccess', _69 => _69.active]) !== void 0) {
3089
3120
  endpoint.addAdditionalParam("active", params.active.toString());
3090
3121
  }
3091
3122
  return this.callApi({
3092
3123
  type: Modules.StripePrice,
3093
3124
  method: "GET" /* GET */,
3094
3125
  endpoint: endpoint.generate(),
3095
- next: _optionalChain([params, 'optionalAccess', _66 => _66.next]),
3096
- previous: _optionalChain([params, 'optionalAccess', _67 => _67.prev])
3126
+ next: _optionalChain([params, 'optionalAccess', _70 => _70.next]),
3127
+ previous: _optionalChain([params, 'optionalAccess', _71 => _71.prev])
3097
3128
  });
3098
3129
  }
3099
3130
  /**
@@ -3183,16 +3214,16 @@ var StripePriceModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (fa
3183
3214
  }), "StripePriceModule");
3184
3215
 
3185
3216
  // src/features/billing/stripe-product/data/stripe-product.ts
3186
- var StripeProduct = (_class6 = class extends AbstractApiData {constructor(...args4) { super(...args4); _class6.prototype.__init6.call(this);_class6.prototype.__init7.call(this); }
3217
+ var StripeProduct = (_class6 = class extends AbstractApiData {constructor(...args4) { super(...args4); _class6.prototype.__init7.call(this);_class6.prototype.__init8.call(this); }
3187
3218
  static {
3188
3219
  _chunk7QVYU63Ejs.__name.call(void 0, this, "StripeProduct");
3189
3220
  }
3190
3221
 
3191
3222
 
3192
3223
 
3193
- __init6() {this._active = true}
3224
+ __init7() {this._active = true}
3194
3225
 
3195
- __init7() {this._stripePrices = []}
3226
+ __init8() {this._stripePrices = []}
3196
3227
  get stripeProductId() {
3197
3228
  if (!this._stripeProductId) throw new Error("stripeProductId is not defined");
3198
3229
  return this._stripeProductId;
@@ -3251,15 +3282,15 @@ var StripeProductService = class extends AbstractService {
3251
3282
  const endpoint = new EndpointCreator({
3252
3283
  endpoint: Modules.StripeProduct
3253
3284
  });
3254
- if (_optionalChain([params, 'optionalAccess', _68 => _68.active]) !== void 0) {
3285
+ if (_optionalChain([params, 'optionalAccess', _72 => _72.active]) !== void 0) {
3255
3286
  endpoint.addAdditionalParam("active", params.active.toString());
3256
3287
  }
3257
3288
  return this.callApi({
3258
3289
  type: Modules.StripeProduct,
3259
3290
  method: "GET" /* GET */,
3260
3291
  endpoint: endpoint.generate(),
3261
- next: _optionalChain([params, 'optionalAccess', _69 => _69.next]),
3262
- previous: _optionalChain([params, 'optionalAccess', _70 => _70.prev])
3292
+ next: _optionalChain([params, 'optionalAccess', _73 => _73.next]),
3293
+ previous: _optionalChain([params, 'optionalAccess', _74 => _74.prev])
3263
3294
  });
3264
3295
  }
3265
3296
  /**
@@ -3345,7 +3376,7 @@ var StripeProductModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
3345
3376
  }), "StripeProductModule");
3346
3377
 
3347
3378
  // src/features/billing/stripe-subscription/data/stripe-subscription.ts
3348
- var StripeSubscription = (_class7 = class extends AbstractApiData {constructor(...args5) { super(...args5); _class7.prototype.__init8.call(this); }
3379
+ var StripeSubscription = (_class7 = class extends AbstractApiData {constructor(...args5) { super(...args5); _class7.prototype.__init9.call(this); }
3349
3380
  static {
3350
3381
  _chunk7QVYU63Ejs.__name.call(void 0, this, "StripeSubscription");
3351
3382
  }
@@ -3353,7 +3384,7 @@ var StripeSubscription = (_class7 = class extends AbstractApiData {constructor(.
3353
3384
 
3354
3385
 
3355
3386
 
3356
- __init8() {this._cancelAtPeriodEnd = false}
3387
+ __init9() {this._cancelAtPeriodEnd = false}
3357
3388
 
3358
3389
 
3359
3390
 
@@ -3474,8 +3505,8 @@ var StripeSubscriptionService = class extends AbstractService {
3474
3505
  type: Modules.StripeSubscription,
3475
3506
  method: "GET" /* GET */,
3476
3507
  endpoint: endpoint.generate(),
3477
- next: _optionalChain([params, 'optionalAccess', _71 => _71.next]),
3478
- previous: _optionalChain([params, 'optionalAccess', _72 => _72.prev])
3508
+ next: _optionalChain([params, 'optionalAccess', _75 => _75.next]),
3509
+ previous: _optionalChain([params, 'optionalAccess', _76 => _76.prev])
3479
3510
  });
3480
3511
  }
3481
3512
  /**
@@ -3526,7 +3557,7 @@ var StripeSubscriptionService = class extends AbstractService {
3526
3557
  });
3527
3558
  return this.callApi({
3528
3559
  type: Modules.StripeSubscription,
3529
- method: "PUT" /* PUT */,
3560
+ method: "POST" /* POST */,
3530
3561
  endpoint: endpoint.generate(),
3531
3562
  input: params
3532
3563
  });
@@ -3540,7 +3571,7 @@ var StripeSubscriptionService = class extends AbstractService {
3540
3571
  id: params.subscriptionId,
3541
3572
  childEndpoint: "proration-preview"
3542
3573
  });
3543
- endpoint.addAdditionalParam("newPriceId", params.newPriceId);
3574
+ endpoint.addAdditionalParam("priceId", params.newPriceId);
3544
3575
  if (params.quantity) {
3545
3576
  endpoint.addAdditionalParam("quantity", params.quantity.toString());
3546
3577
  }
@@ -3701,8 +3732,8 @@ var StripeUsageService = class extends AbstractService {
3701
3732
  type: Modules.StripeUsage,
3702
3733
  method: "GET" /* GET */,
3703
3734
  endpoint: endpoint.generate(),
3704
- next: _optionalChain([params, 'optionalAccess', _73 => _73.next]),
3705
- previous: _optionalChain([params, 'optionalAccess', _74 => _74.prev])
3735
+ next: _optionalChain([params, 'optionalAccess', _77 => _77.next]),
3736
+ previous: _optionalChain([params, 'optionalAccess', _78 => _78.prev])
3706
3737
  });
3707
3738
  }
3708
3739
  /**
@@ -3750,8 +3781,8 @@ var StripeUsageService = class extends AbstractService {
3750
3781
  type: Modules.StripeUsage,
3751
3782
  method: "GET" /* GET */,
3752
3783
  endpoint: endpoint.generate(),
3753
- next: _optionalChain([params, 'optionalAccess', _75 => _75.next]),
3754
- previous: _optionalChain([params, 'optionalAccess', _76 => _76.prev])
3784
+ next: _optionalChain([params, 'optionalAccess', _79 => _79.next]),
3785
+ previous: _optionalChain([params, 'optionalAccess', _80 => _80.prev])
3755
3786
  });
3756
3787
  }
3757
3788
  /**
@@ -3785,7 +3816,7 @@ var StripeUsageModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (fa
3785
3816
  }), "StripeUsageModule");
3786
3817
 
3787
3818
  // src/features/company/data/company.ts
3788
- var Company = (_class8 = class extends AbstractApiData {constructor(...args6) { super(...args6); _class8.prototype.__init9.call(this);_class8.prototype.__init10.call(this);_class8.prototype.__init11.call(this);_class8.prototype.__init12.call(this); }
3819
+ var Company = (_class8 = class extends AbstractApiData {constructor(...args6) { super(...args6); _class8.prototype.__init10.call(this);_class8.prototype.__init11.call(this);_class8.prototype.__init12.call(this);_class8.prototype.__init13.call(this); }
3789
3820
  static {
3790
3821
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Company");
3791
3822
  }
@@ -3793,10 +3824,10 @@ var Company = (_class8 = class extends AbstractApiData {constructor(...args6) {
3793
3824
 
3794
3825
 
3795
3826
 
3796
- __init9() {this._isActiveSubscription = false}
3797
- __init10() {this._monthlyTokens = 0}
3798
- __init11() {this._availableMonthlyTokens = 0}
3799
- __init12() {this._availableExtraTokens = 0}
3827
+ __init10() {this._isActiveSubscription = false}
3828
+ __init11() {this._monthlyTokens = 0}
3829
+ __init12() {this._availableMonthlyTokens = 0}
3830
+ __init13() {this._availableExtraTokens = 0}
3800
3831
 
3801
3832
 
3802
3833
  get name() {
@@ -4059,8 +4090,8 @@ var ContentService = class extends AbstractService {
4059
4090
  if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
4060
4091
  if (params.search) endpoint.addAdditionalParam("search", params.search);
4061
4092
  }
4062
- if (_optionalChain([Modules, 'access', _77 => _77.Content, 'access', _78 => _78.inclusions, 'optionalAccess', _79 => _79.lists, 'optionalAccess', _80 => _80.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
4063
- if (_optionalChain([Modules, 'access', _81 => _81.Content, 'access', _82 => _82.inclusions, 'optionalAccess', _83 => _83.lists, 'optionalAccess', _84 => _84.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
4093
+ if (_optionalChain([Modules, 'access', _81 => _81.Content, 'access', _82 => _82.inclusions, 'optionalAccess', _83 => _83.lists, 'optionalAccess', _84 => _84.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
4094
+ if (_optionalChain([Modules, 'access', _85 => _85.Content, 'access', _86 => _86.inclusions, 'optionalAccess', _87 => _87.lists, 'optionalAccess', _88 => _88.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
4064
4095
  return this.callApi({
4065
4096
  type: Modules.Content,
4066
4097
  method: "GET" /* GET */,
@@ -4074,8 +4105,8 @@ var ContentService = class extends AbstractService {
4074
4105
  id: params.id,
4075
4106
  childEndpoint: "relevance"
4076
4107
  });
4077
- if (_optionalChain([Modules, 'access', _85 => _85.Content, 'access', _86 => _86.inclusions, 'optionalAccess', _87 => _87.lists, 'optionalAccess', _88 => _88.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
4078
- if (_optionalChain([Modules, 'access', _89 => _89.Content, 'access', _90 => _90.inclusions, 'optionalAccess', _91 => _91.lists, 'optionalAccess', _92 => _92.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
4108
+ if (_optionalChain([Modules, 'access', _89 => _89.Content, 'access', _90 => _90.inclusions, 'optionalAccess', _91 => _91.lists, 'optionalAccess', _92 => _92.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
4109
+ if (_optionalChain([Modules, 'access', _93 => _93.Content, 'access', _94 => _94.inclusions, 'optionalAccess', _95 => _95.lists, 'optionalAccess', _96 => _96.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
4079
4110
  return this.callApi({
4080
4111
  type: Modules.Content,
4081
4112
  method: "GET" /* GET */,
@@ -4091,8 +4122,8 @@ var ContentService = class extends AbstractService {
4091
4122
  });
4092
4123
  if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
4093
4124
  if (params.search) endpoint.addAdditionalParam("search", params.search);
4094
- if (_optionalChain([Modules, 'access', _93 => _93.Content, 'access', _94 => _94.inclusions, 'optionalAccess', _95 => _95.lists, 'optionalAccess', _96 => _96.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
4095
- if (_optionalChain([Modules, 'access', _97 => _97.Content, 'access', _98 => _98.inclusions, 'optionalAccess', _99 => _99.lists, 'optionalAccess', _100 => _100.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
4125
+ if (_optionalChain([Modules, 'access', _97 => _97.Content, 'access', _98 => _98.inclusions, 'optionalAccess', _99 => _99.lists, 'optionalAccess', _100 => _100.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
4126
+ if (_optionalChain([Modules, 'access', _101 => _101.Content, 'access', _102 => _102.inclusions, 'optionalAccess', _103 => _103.lists, 'optionalAccess', _104 => _104.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
4096
4127
  return this.callApi({
4097
4128
  type: Modules.Content,
4098
4129
  method: "GET" /* GET */,
@@ -4120,13 +4151,13 @@ var ContentModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factor
4120
4151
  }), "ContentModule");
4121
4152
 
4122
4153
  // src/features/feature/data/feature.ts
4123
- var Feature = (_class9 = class extends AbstractApiData {constructor(...args7) { super(...args7); _class9.prototype.__init13.call(this); }
4154
+ var Feature = (_class9 = class extends AbstractApiData {constructor(...args7) { super(...args7); _class9.prototype.__init14.call(this); }
4124
4155
  static {
4125
4156
  _chunk7QVYU63Ejs.__name.call(void 0, this, "Feature");
4126
4157
  }
4127
4158
 
4128
4159
 
4129
- __init13() {this._modules = []}
4160
+ __init14() {this._modules = []}
4130
4161
  get name() {
4131
4162
  return _nullishCoalesce(this._name, () => ( ""));
4132
4163
  }
@@ -4594,7 +4625,7 @@ var S3Service = class extends AbstractService {
4594
4625
  };
4595
4626
 
4596
4627
  // src/features/user/data/user.ts
4597
- var User = (_class10 = class extends AbstractApiData {constructor(...args8) { super(...args8); _class10.prototype.__init14.call(this);_class10.prototype.__init15.call(this); }
4628
+ var User = (_class10 = class extends AbstractApiData {constructor(...args8) { super(...args8); _class10.prototype.__init15.call(this);_class10.prototype.__init16.call(this); }
4598
4629
  static {
4599
4630
  _chunk7QVYU63Ejs.__name.call(void 0, this, "User");
4600
4631
  }
@@ -4610,9 +4641,9 @@ var User = (_class10 = class extends AbstractApiData {constructor(...args8) { su
4610
4641
 
4611
4642
 
4612
4643
 
4613
- __init14() {this._roles = []}
4644
+ __init15() {this._roles = []}
4614
4645
 
4615
- __init15() {this._modules = []}
4646
+ __init16() {this._modules = []}
4616
4647
  get searchResult() {
4617
4648
  return _nullishCoalesce(this._name, () => ( ""));
4618
4649
  }
@@ -4789,8 +4820,8 @@ var UserService = class extends AbstractService {
4789
4820
  id: params.id,
4790
4821
  childEndpoint: "user-relevance"
4791
4822
  });
4792
- if (_optionalChain([Modules, 'access', _101 => _101.User, 'access', _102 => _102.inclusions, 'optionalAccess', _103 => _103.lists, 'optionalAccess', _104 => _104.fields])) endpoint.limitToFields(Modules.User.inclusions.lists.fields);
4793
- if (_optionalChain([Modules, 'access', _105 => _105.User, 'access', _106 => _106.inclusions, 'optionalAccess', _107 => _107.lists, 'optionalAccess', _108 => _108.types])) endpoint.limitToType(Modules.User.inclusions.lists.types);
4823
+ if (_optionalChain([Modules, 'access', _105 => _105.User, 'access', _106 => _106.inclusions, 'optionalAccess', _107 => _107.lists, 'optionalAccess', _108 => _108.fields])) endpoint.limitToFields(Modules.User.inclusions.lists.fields);
4824
+ if (_optionalChain([Modules, 'access', _109 => _109.User, 'access', _110 => _110.inclusions, 'optionalAccess', _111 => _111.lists, 'optionalAccess', _112 => _112.types])) endpoint.limitToType(Modules.User.inclusions.lists.types);
4794
4825
  return this.callApi({
4795
4826
  type: Modules.User,
4796
4827
  method: "GET" /* GET */,
@@ -4939,18 +4970,18 @@ var UserModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory)
4939
4970
  }), "UserModule");
4940
4971
 
4941
4972
  // src/features/oauth/data/oauth.ts
4942
- var OAuthClient = (_class11 = class extends AbstractApiData {constructor(...args9) { super(...args9); _class11.prototype.__init16.call(this);_class11.prototype.__init17.call(this);_class11.prototype.__init18.call(this);_class11.prototype.__init19.call(this);_class11.prototype.__init20.call(this); }
4973
+ var OAuthClient = (_class11 = class extends AbstractApiData {constructor(...args9) { super(...args9); _class11.prototype.__init17.call(this);_class11.prototype.__init18.call(this);_class11.prototype.__init19.call(this);_class11.prototype.__init20.call(this);_class11.prototype.__init21.call(this); }
4943
4974
  static {
4944
4975
  _chunk7QVYU63Ejs.__name.call(void 0, this, "OAuthClient");
4945
4976
  }
4946
4977
 
4947
4978
 
4948
4979
 
4949
- __init16() {this._redirectUris = []}
4950
- __init17() {this._allowedScopes = []}
4951
- __init18() {this._allowedGrantTypes = []}
4952
- __init19() {this._isConfidential = true}
4953
- __init20() {this._isActive = true}
4980
+ __init17() {this._redirectUris = []}
4981
+ __init18() {this._allowedScopes = []}
4982
+ __init19() {this._allowedGrantTypes = []}
4983
+ __init20() {this._isConfidential = true}
4984
+ __init21() {this._isActive = true}
4954
4985
  get clientId() {
4955
4986
  return _nullishCoalesce(this._clientId, () => ( this.id));
4956
4987
  }
@@ -5031,7 +5062,7 @@ var OAuthService = class extends AbstractService {
5031
5062
  type: Modules.OAuth,
5032
5063
  method: "GET" /* GET */,
5033
5064
  endpoint: new EndpointCreator({ endpoint: "oauth/clients" }).generate(),
5034
- next: _optionalChain([params, 'optionalAccess', _109 => _109.next])
5065
+ next: _optionalChain([params, 'optionalAccess', _113 => _113.next])
5035
5066
  });
5036
5067
  }
5037
5068
  /**
@@ -5057,7 +5088,7 @@ var OAuthService = class extends AbstractService {
5057
5088
  });
5058
5089
  return {
5059
5090
  client: result.data,
5060
- clientSecret: _optionalChain([result, 'access', _110 => _110.meta, 'optionalAccess', _111 => _111.clientSecret])
5091
+ clientSecret: _optionalChain([result, 'access', _114 => _114.meta, 'optionalAccess', _115 => _115.clientSecret])
5061
5092
  };
5062
5093
  }
5063
5094
  /**
@@ -5096,7 +5127,7 @@ var OAuthService = class extends AbstractService {
5096
5127
  }).generate()
5097
5128
  });
5098
5129
  return {
5099
- clientSecret: _optionalChain([result, 'access', _112 => _112.meta, 'optionalAccess', _113 => _113.clientSecret])
5130
+ clientSecret: _optionalChain([result, 'access', _116 => _116.meta, 'optionalAccess', _117 => _117.clientSecret])
5100
5131
  };
5101
5132
  }
5102
5133
  // ==========================================
@@ -5140,7 +5171,7 @@ var OAuthService = class extends AbstractService {
5140
5171
  overridesJsonApiCreation: true
5141
5172
  });
5142
5173
  return {
5143
- redirectUrl: _optionalChain([result, 'access', _114 => _114.meta, 'optionalAccess', _115 => _115.redirectUrl])
5174
+ redirectUrl: _optionalChain([result, 'access', _118 => _118.meta, 'optionalAccess', _119 => _119.redirectUrl])
5144
5175
  };
5145
5176
  }
5146
5177
  /**
@@ -5160,7 +5191,7 @@ var OAuthService = class extends AbstractService {
5160
5191
  overridesJsonApiCreation: true
5161
5192
  });
5162
5193
  return {
5163
- redirectUrl: _optionalChain([result, 'access', _116 => _116.meta, 'optionalAccess', _117 => _117.redirectUrl])
5194
+ redirectUrl: _optionalChain([result, 'access', _120 => _120.meta, 'optionalAccess', _121 => _121.redirectUrl])
5164
5195
  };
5165
5196
  }
5166
5197
  };
@@ -5342,5 +5373,7 @@ var DEFAULT_GRANT_TYPES = ["authorization_code", "refresh_token"];
5342
5373
 
5343
5374
 
5344
5375
 
5345
- exports.RehydrationFactory = RehydrationFactory; exports.AbstractApiData = AbstractApiData; 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.ClientJsonApiGet = ClientJsonApiGet; exports.ClientJsonApiPost = ClientJsonApiPost; exports.ClientJsonApiPut = ClientJsonApiPut; exports.ClientJsonApiPatch = ClientJsonApiPatch; exports.ClientJsonApiDelete = ClientJsonApiDelete; exports.ClientHttpMethod = ClientHttpMethod; exports.setClientGlobalErrorHandler = setClientGlobalErrorHandler; exports.getClientGlobalErrorHandler = getClientGlobalErrorHandler; exports.ClientAbstractService = ClientAbstractService; exports.ModuleRegistrar = ModuleRegistrar; exports.ModuleRegistry = ModuleRegistry; exports.Modules = Modules; exports.EndpointCreator = EndpointCreator; exports.createJsonApiInclusion = createJsonApiInclusion; exports.rehydrate = rehydrate; exports.rehydrateList = rehydrateList; exports.cn = cn; exports.composeRefs = composeRefs; exports.useComposedRefs = useComposedRefs; exports.useIsMobile = useIsMobile; exports.formatDate = formatDate; exports.exists = exists; exports.TableOptions = TableOptions; exports.getTableOptions = getTableOptions; exports.getTableComponents = getTableComponents; exports.userObjectSchema = userObjectSchema; exports.entityObjectSchema = entityObjectSchema; exports.BlockNoteDiffUtil = BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = BlockNoteWordDiffRendererUtil; exports.getIconByModule = getIconByModule; exports.getIcon = getIcon; exports.getIconByModuleName = getIconByModuleName; exports.getLucideIcon = getLucideIcon; exports.getLucideIconByModule = getLucideIconByModule; exports.getLucideIconByModuleName = getLucideIconByModuleName; exports.showToast = showToast; exports.showError = showError; exports.dismissToast = dismissToast; exports.showCustomToast = showCustomToast; exports.Action = Action; exports.checkPermissions = checkPermissions; exports.checkPermissionsFromServer = checkPermissionsFromServer; exports.getValueFromPath = getValueFromPath; exports.configureAuth = configureAuth; exports.getTokenHandler = getTokenHandler; exports.Auth = Auth; exports.AuthService = AuthService; exports.AuthComponent = AuthComponent; exports.AuthModule = AuthModule; exports.BillingService = BillingService; exports.Billing = Billing; exports.BillingModule = BillingModule; exports.PaymentMethod = PaymentMethod; exports.StripeCustomer = StripeCustomer; exports.StripeCustomerService = StripeCustomerService; exports.StripeCustomerModule = StripeCustomerModule; exports.StripePaymentMethodModule = StripePaymentMethodModule; exports.StripeInvoice = StripeInvoice; exports.InvoiceStatus = InvoiceStatus; exports.StripeInvoiceService = StripeInvoiceService; exports.StripeInvoiceModule = StripeInvoiceModule; exports.StripePrice = StripePrice; exports.StripePriceService = StripePriceService; exports.StripePriceModule = StripePriceModule; exports.StripeProduct = StripeProduct; exports.StripeProductService = StripeProductService; exports.StripeProductModule = StripeProductModule; exports.StripeSubscription = StripeSubscription; exports.SubscriptionStatus = SubscriptionStatus; exports.StripeSubscriptionService = StripeSubscriptionService; exports.StripeSubscriptionModule = StripeSubscriptionModule; exports.StripeUsage = StripeUsage; exports.StripeUsageService = StripeUsageService; exports.StripeUsageModule = StripeUsageModule; exports.Company = Company; exports.CompanyFields = CompanyFields; exports.CompanyService = CompanyService; exports.CompanyModule = CompanyModule; exports.Content = Content; exports.ContentFields = ContentFields; exports.ContentService = ContentService; exports.ContentModule = ContentModule; exports.Feature = Feature; exports.FeatureService = FeatureService; exports.FeatureModule = FeatureModule; exports.Module = Module; exports.ModuleModule = ModuleModule; exports.Notification = Notification; exports.NotificationFields = NotificationFields; exports.NotificationService = NotificationService; exports.NotificationModule = NotificationModule; exports.Push = Push; exports.PushService = PushService; exports.PushModule = PushModule; exports.Role = Role; exports.RoleFields = RoleFields; exports.RoleService = RoleService; exports.RoleModule = RoleModule; exports.S3 = S3; exports.S3Module = S3Module; exports.S3Service = S3Service; exports.User = User; exports.UserFields = UserFields; exports.UserService = UserService; exports.AuthorModule = AuthorModule; exports.UserModule = UserModule; exports.OAuthClient = OAuthClient; exports.OAuthModule = OAuthModule; exports.OAuthService = OAuthService; exports.OAUTH_SCOPE_DISPLAY = OAUTH_SCOPE_DISPLAY; exports.AVAILABLE_OAUTH_SCOPES = AVAILABLE_OAUTH_SCOPES; exports.DEFAULT_GRANT_TYPES = DEFAULT_GRANT_TYPES;
5346
- //# sourceMappingURL=chunk-KYG2PIRB.js.map
5376
+
5377
+
5378
+ exports.RehydrationFactory = RehydrationFactory; exports.AbstractApiData = AbstractApiData; exports.HttpMethod = HttpMethod; exports.getLastApiTotal = getLastApiTotal; exports.clearLastApiTotal = clearLastApiTotal; exports.setGlobalErrorHandler = setGlobalErrorHandler; exports.getGlobalErrorHandler = getGlobalErrorHandler; exports.AbstractService = AbstractService; exports.configureClientJsonApi = configureClientJsonApi; exports.getClientApiUrl = getClientApiUrl; exports.getClientAppUrl = getClientAppUrl; exports.getClientTrackablePages = getClientTrackablePages; exports.ClientJsonApiGet = ClientJsonApiGet; exports.ClientJsonApiPost = ClientJsonApiPost; exports.ClientJsonApiPut = ClientJsonApiPut; exports.ClientJsonApiPatch = ClientJsonApiPatch; exports.ClientJsonApiDelete = ClientJsonApiDelete; exports.ClientHttpMethod = ClientHttpMethod; exports.setClientGlobalErrorHandler = setClientGlobalErrorHandler; exports.getClientGlobalErrorHandler = getClientGlobalErrorHandler; exports.ClientAbstractService = ClientAbstractService; exports.ModuleRegistrar = ModuleRegistrar; exports.ModuleRegistry = ModuleRegistry; exports.Modules = Modules; exports.EndpointCreator = EndpointCreator; exports.createJsonApiInclusion = createJsonApiInclusion; exports.rehydrate = rehydrate; exports.rehydrateList = rehydrateList; exports.cn = cn; exports.composeRefs = composeRefs; exports.useComposedRefs = useComposedRefs; exports.useIsMobile = useIsMobile; exports.formatDate = formatDate; exports.exists = exists; exports.TableOptions = TableOptions; exports.getTableOptions = getTableOptions; exports.getTableComponents = getTableComponents; exports.userObjectSchema = userObjectSchema; exports.entityObjectSchema = entityObjectSchema; exports.BlockNoteDiffUtil = BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = BlockNoteWordDiffRendererUtil; exports.getIconByModule = getIconByModule; exports.getIcon = getIcon; exports.getIconByModuleName = getIconByModuleName; exports.getLucideIcon = getLucideIcon; exports.getLucideIconByModule = getLucideIconByModule; exports.getLucideIconByModuleName = getLucideIconByModuleName; exports.showToast = showToast; exports.showError = showError; exports.dismissToast = dismissToast; exports.showCustomToast = showCustomToast; exports.Action = Action; exports.checkPermissions = checkPermissions; exports.checkPermissionsFromServer = checkPermissionsFromServer; exports.getValueFromPath = getValueFromPath; exports.configureAuth = configureAuth; exports.getTokenHandler = getTokenHandler; exports.Auth = Auth; exports.AuthService = AuthService; exports.AuthComponent = AuthComponent; exports.AuthModule = AuthModule; exports.BillingService = BillingService; exports.Billing = Billing; exports.BillingModule = BillingModule; exports.PaymentMethod = PaymentMethod; exports.StripeCustomer = StripeCustomer; exports.StripeCustomerService = StripeCustomerService; exports.StripeCustomerModule = StripeCustomerModule; exports.StripePaymentMethodModule = StripePaymentMethodModule; exports.StripeInvoice = StripeInvoice; exports.InvoiceStatus = InvoiceStatus; exports.StripeInvoiceService = StripeInvoiceService; exports.StripeInvoiceModule = StripeInvoiceModule; exports.StripePrice = StripePrice; exports.StripePriceService = StripePriceService; exports.StripePriceModule = StripePriceModule; exports.StripeProduct = StripeProduct; exports.StripeProductService = StripeProductService; exports.StripeProductModule = StripeProductModule; exports.StripeSubscription = StripeSubscription; exports.SubscriptionStatus = SubscriptionStatus; exports.StripeSubscriptionService = StripeSubscriptionService; exports.StripeSubscriptionModule = StripeSubscriptionModule; exports.StripeUsage = StripeUsage; exports.StripeUsageService = StripeUsageService; exports.StripeUsageModule = StripeUsageModule; exports.Company = Company; exports.CompanyFields = CompanyFields; exports.CompanyService = CompanyService; exports.CompanyModule = CompanyModule; exports.Content = Content; exports.ContentFields = ContentFields; exports.ContentService = ContentService; exports.ContentModule = ContentModule; exports.Feature = Feature; exports.FeatureService = FeatureService; exports.FeatureModule = FeatureModule; exports.Module = Module; exports.ModuleModule = ModuleModule; exports.Notification = Notification; exports.NotificationFields = NotificationFields; exports.NotificationService = NotificationService; exports.NotificationModule = NotificationModule; exports.Push = Push; exports.PushService = PushService; exports.PushModule = PushModule; exports.Role = Role; exports.RoleFields = RoleFields; exports.RoleService = RoleService; exports.RoleModule = RoleModule; exports.S3 = S3; exports.S3Module = S3Module; exports.S3Service = S3Service; exports.User = User; exports.UserFields = UserFields; exports.UserService = UserService; exports.AuthorModule = AuthorModule; exports.UserModule = UserModule; exports.OAuthClient = OAuthClient; exports.OAuthModule = OAuthModule; exports.OAuthService = OAuthService; exports.OAUTH_SCOPE_DISPLAY = OAUTH_SCOPE_DISPLAY; exports.AVAILABLE_OAUTH_SCOPES = AVAILABLE_OAUTH_SCOPES; exports.DEFAULT_GRANT_TYPES = DEFAULT_GRANT_TYPES;
5379
+ //# sourceMappingURL=chunk-TZRAOUAR.js.map