@carlonicora/nextjs-jsonapi 1.63.0 → 1.65.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 (62) hide show
  1. package/dist/{BlockNoteEditor-TS62AHRY.mjs → BlockNoteEditor-SCQGD6F2.mjs} +4 -4
  2. package/dist/{BlockNoteEditor-QQ4XFT4G.js → BlockNoteEditor-Y5XAD6NR.js} +14 -14
  3. package/dist/{BlockNoteEditor-QQ4XFT4G.js.map → BlockNoteEditor-Y5XAD6NR.js.map} +1 -1
  4. package/dist/billing/index.js +346 -346
  5. package/dist/billing/index.mjs +3 -3
  6. package/dist/{chunk-HRG4EAOG.mjs → chunk-5KMKI23S.mjs} +2 -2
  7. package/dist/{chunk-ZRKQQLYI.js → chunk-5ODPC3YX.js} +769 -821
  8. package/dist/chunk-5ODPC3YX.js.map +1 -0
  9. package/dist/{chunk-YHNDD34Z.mjs → chunk-G7PGWMFO.mjs} +95 -3
  10. package/dist/chunk-G7PGWMFO.mjs.map +1 -0
  11. package/dist/{chunk-NAST4OSM.js → chunk-LRXJT656.js} +96 -4
  12. package/dist/chunk-LRXJT656.js.map +1 -0
  13. package/dist/{chunk-K3DKXOEU.mjs → chunk-OLNMWVOV.mjs} +1172 -1224
  14. package/dist/chunk-OLNMWVOV.mjs.map +1 -0
  15. package/dist/{chunk-BQSMP4NU.js → chunk-RA4RYKYB.js} +11 -11
  16. package/dist/{chunk-BQSMP4NU.js.map → chunk-RA4RYKYB.js.map} +1 -1
  17. package/dist/client/index.js +4 -4
  18. package/dist/client/index.mjs +3 -3
  19. package/dist/components/index.d.mts +11 -8
  20. package/dist/components/index.d.ts +11 -8
  21. package/dist/components/index.js +4 -6
  22. package/dist/components/index.js.map +1 -1
  23. package/dist/components/index.mjs +3 -5
  24. package/dist/contexts/index.d.mts +2 -1
  25. package/dist/contexts/index.d.ts +2 -1
  26. package/dist/contexts/index.js +4 -4
  27. package/dist/contexts/index.mjs +3 -3
  28. package/dist/core/index.d.mts +44 -1
  29. package/dist/core/index.d.ts +44 -1
  30. package/dist/core/index.js +8 -2
  31. package/dist/core/index.js.map +1 -1
  32. package/dist/core/index.mjs +7 -1
  33. package/dist/index.d.mts +1 -1
  34. package/dist/index.d.ts +1 -1
  35. package/dist/index.js +9 -3
  36. package/dist/index.js.map +1 -1
  37. package/dist/index.mjs +8 -2
  38. package/dist/server/index.js +3 -3
  39. package/dist/server/index.mjs +1 -1
  40. package/package.json +1 -1
  41. package/src/core/index.ts +1 -0
  42. package/src/core/registry/ModuleRegistry.ts +2 -0
  43. package/src/features/audit-log/audit-log.module.ts +10 -0
  44. package/src/features/audit-log/data/audit-log.interface.ts +12 -0
  45. package/src/features/audit-log/data/audit-log.service.ts +24 -0
  46. package/src/features/audit-log/data/audit-log.ts +65 -0
  47. package/src/features/audit-log/data/index.ts +3 -0
  48. package/src/features/audit-log/index.ts +2 -0
  49. package/src/features/company/company.module.ts +3 -1
  50. package/src/features/company/components/containers/CompanyContainer.tsx +7 -2
  51. package/src/features/company/components/details/CompanyDetails.tsx +16 -1
  52. package/src/features/company/components/forms/CompanyConfigurationEditor.tsx +19 -51
  53. package/src/features/company/components/forms/index.ts +0 -1
  54. package/src/features/company/contexts/CompanyContext.tsx +5 -3
  55. package/src/features/user/user.module.ts +3 -1
  56. package/dist/chunk-K3DKXOEU.mjs.map +0 -1
  57. package/dist/chunk-NAST4OSM.js.map +0 -1
  58. package/dist/chunk-YHNDD34Z.mjs.map +0 -1
  59. package/dist/chunk-ZRKQQLYI.js.map +0 -1
  60. package/src/features/company/components/forms/CompanyConfigurationSecurityForm.tsx +0 -83
  61. /package/dist/{BlockNoteEditor-TS62AHRY.mjs.map → BlockNoteEditor-SCQGD6F2.mjs.map} +0 -0
  62. /package/dist/{chunk-HRG4EAOG.mjs.map → chunk-5KMKI23S.mjs.map} +0 -0
@@ -4790,6 +4790,9 @@ var StripePromotionCodeModule = /* @__PURE__ */ __name((factory) => factory({
4790
4790
  moduleId: "b8e4f6a2-9d0c-5b3f-c7e8-4g2d9f0a5c6e"
4791
4791
  }), "StripePromotionCodeModule");
4792
4792
 
4793
+ // src/features/company/company.module.ts
4794
+ import { Building2Icon } from "lucide-react";
4795
+
4793
4796
  // src/features/company/data/company.ts
4794
4797
  var Company = class extends AbstractApiData {
4795
4798
  static {
@@ -4981,7 +4984,8 @@ var CompanyModule = /* @__PURE__ */ __name((factory) => factory({
4981
4984
  pageUrl: "/companies",
4982
4985
  name: "companies",
4983
4986
  model: Company,
4984
- moduleId: "f9e77c8f-bfd1-4fd4-80b0-e1d891ab7113"
4987
+ moduleId: "f9e77c8f-bfd1-4fd4-80b0-e1d891ab7113",
4988
+ icon: Building2Icon
4985
4989
  }), "CompanyModule");
4986
4990
 
4987
4991
  // src/features/content/data/content.ts
@@ -5943,11 +5947,13 @@ var AuthorModule = /* @__PURE__ */ __name((factory) => factory({
5943
5947
  }), "AuthorModule");
5944
5948
 
5945
5949
  // src/features/user/user.module.ts
5950
+ import { UsersIcon } from "lucide-react";
5946
5951
  var UserModule = /* @__PURE__ */ __name((factory) => factory({
5947
5952
  pageUrl: "/users",
5948
5953
  name: "users",
5949
5954
  model: User,
5950
5955
  moduleId: "04cfc677-0fd2-4f5e-adf4-2483a00c0277",
5956
+ icon: UsersIcon,
5951
5957
  inclusions: {
5952
5958
  lists: {
5953
5959
  fields: [
@@ -6649,6 +6655,89 @@ var ReferralStatsModule = /* @__PURE__ */ __name((factory) => factory({
6649
6655
  model: ReferralStats
6650
6656
  }), "ReferralStatsModule");
6651
6657
 
6658
+ // src/features/audit-log/data/audit-log.ts
6659
+ var AuditLog = class extends AbstractApiData {
6660
+ static {
6661
+ __name(this, "AuditLog");
6662
+ }
6663
+ _kind = "audit";
6664
+ _action;
6665
+ _fieldName;
6666
+ _oldValue;
6667
+ _newValue;
6668
+ _content;
6669
+ _annotationId;
6670
+ _user;
6671
+ get kind() {
6672
+ return this._kind;
6673
+ }
6674
+ get action() {
6675
+ return this._action;
6676
+ }
6677
+ get fieldName() {
6678
+ return this._fieldName;
6679
+ }
6680
+ get oldValue() {
6681
+ return this._oldValue;
6682
+ }
6683
+ get newValue() {
6684
+ return this._newValue;
6685
+ }
6686
+ get content() {
6687
+ return this._content;
6688
+ }
6689
+ get annotationId() {
6690
+ return this._annotationId;
6691
+ }
6692
+ get user() {
6693
+ return this._user;
6694
+ }
6695
+ rehydrate(data) {
6696
+ super.rehydrate(data);
6697
+ this._kind = data.jsonApi.attributes.kind ?? "audit";
6698
+ this._action = data.jsonApi.attributes.action ?? void 0;
6699
+ this._fieldName = data.jsonApi.attributes.fieldName ?? void 0;
6700
+ this._oldValue = data.jsonApi.attributes.oldValue ?? void 0;
6701
+ this._newValue = data.jsonApi.attributes.newValue ?? void 0;
6702
+ this._content = data.jsonApi.attributes.content ?? void 0;
6703
+ this._annotationId = data.jsonApi.attributes.annotationId ?? void 0;
6704
+ this._user = this._readIncluded(data, "user", Modules.User);
6705
+ return this;
6706
+ }
6707
+ createJsonApi() {
6708
+ throw new Error("AuditLog is read-only");
6709
+ }
6710
+ };
6711
+
6712
+ // src/features/audit-log/data/audit-log.service.ts
6713
+ var AuditLogService = class extends AbstractService {
6714
+ static {
6715
+ __name(this, "AuditLogService");
6716
+ }
6717
+ static async findActivityByEntity(params) {
6718
+ const endpoint = new EndpointCreator({
6719
+ endpoint: Modules.AuditLog,
6720
+ id: "activity",
6721
+ childEndpoint: params.entityType,
6722
+ childId: params.entityId
6723
+ });
6724
+ return this.callApi({
6725
+ type: Modules.AuditLog,
6726
+ method: "GET" /* GET */,
6727
+ endpoint: endpoint.generate(),
6728
+ next: params.next
6729
+ });
6730
+ }
6731
+ };
6732
+
6733
+ // src/features/audit-log/audit-log.module.ts
6734
+ var AuditLogModule = /* @__PURE__ */ __name((factory) => factory({
6735
+ name: "audit-logs",
6736
+ pageUrl: "/audit-logs",
6737
+ model: AuditLog,
6738
+ moduleId: "b7e2f4a1-9c3d-4e8b-a6d5-2f1c8e7b3a90"
6739
+ }), "AuditLogModule");
6740
+
6652
6741
  export {
6653
6742
  RehydrationFactory,
6654
6743
  AbstractApiData,
@@ -6819,6 +6908,9 @@ export {
6819
6908
  ReferralStats,
6820
6909
  ReferralService,
6821
6910
  ReferralModule,
6822
- ReferralStatsModule
6911
+ ReferralStatsModule,
6912
+ AuditLog,
6913
+ AuditLogService,
6914
+ AuditLogModule
6823
6915
  };
6824
- //# sourceMappingURL=chunk-YHNDD34Z.mjs.map
6916
+ //# sourceMappingURL=chunk-G7PGWMFO.mjs.map