@carlonicora/nextjs-jsonapi 1.64.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 (47) hide show
  1. package/dist/{BlockNoteEditor-ZO3ZAPXU.mjs → BlockNoteEditor-SCQGD6F2.mjs} +4 -4
  2. package/dist/{BlockNoteEditor-JF757BHH.js → BlockNoteEditor-Y5XAD6NR.js} +14 -14
  3. package/dist/{BlockNoteEditor-JF757BHH.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-PBD6ZH46.mjs → chunk-5KMKI23S.mjs} +2 -2
  7. package/dist/{chunk-5LZGQXBD.js → chunk-5ODPC3YX.js} +616 -616
  8. package/dist/{chunk-5LZGQXBD.js.map → chunk-5ODPC3YX.js.map} +1 -1
  9. package/dist/{chunk-REWN5GZP.mjs → chunk-G7PGWMFO.mjs} +88 -2
  10. package/dist/chunk-G7PGWMFO.mjs.map +1 -0
  11. package/dist/{chunk-6YKYRKVU.js → chunk-LRXJT656.js} +89 -3
  12. package/dist/chunk-LRXJT656.js.map +1 -0
  13. package/dist/{chunk-55FJ5WKS.mjs → chunk-OLNMWVOV.mjs} +4 -4
  14. package/dist/{chunk-2DFE325P.js → chunk-RA4RYKYB.js} +11 -11
  15. package/dist/{chunk-2DFE325P.js.map → chunk-RA4RYKYB.js.map} +1 -1
  16. package/dist/client/index.js +4 -4
  17. package/dist/client/index.mjs +3 -3
  18. package/dist/components/index.js +4 -4
  19. package/dist/components/index.mjs +3 -3
  20. package/dist/contexts/index.js +4 -4
  21. package/dist/contexts/index.mjs +3 -3
  22. package/dist/core/index.d.mts +44 -1
  23. package/dist/core/index.d.ts +44 -1
  24. package/dist/core/index.js +8 -2
  25. package/dist/core/index.js.map +1 -1
  26. package/dist/core/index.mjs +7 -1
  27. package/dist/index.d.mts +1 -1
  28. package/dist/index.d.ts +1 -1
  29. package/dist/index.js +9 -3
  30. package/dist/index.js.map +1 -1
  31. package/dist/index.mjs +8 -2
  32. package/dist/server/index.js +3 -3
  33. package/dist/server/index.mjs +1 -1
  34. package/package.json +1 -1
  35. package/src/core/index.ts +1 -0
  36. package/src/core/registry/ModuleRegistry.ts +2 -0
  37. package/src/features/audit-log/audit-log.module.ts +10 -0
  38. package/src/features/audit-log/data/audit-log.interface.ts +12 -0
  39. package/src/features/audit-log/data/audit-log.service.ts +24 -0
  40. package/src/features/audit-log/data/audit-log.ts +65 -0
  41. package/src/features/audit-log/data/index.ts +3 -0
  42. package/src/features/audit-log/index.ts +2 -0
  43. package/dist/chunk-6YKYRKVU.js.map +0 -1
  44. package/dist/chunk-REWN5GZP.mjs.map +0 -1
  45. /package/dist/{BlockNoteEditor-ZO3ZAPXU.mjs.map → BlockNoteEditor-SCQGD6F2.mjs.map} +0 -0
  46. /package/dist/{chunk-PBD6ZH46.mjs.map → chunk-5KMKI23S.mjs.map} +0 -0
  47. /package/dist/{chunk-55FJ5WKS.mjs.map → chunk-OLNMWVOV.mjs.map} +0 -0
@@ -6655,6 +6655,89 @@ var ReferralStatsModule = /* @__PURE__ */ __name((factory) => factory({
6655
6655
  model: ReferralStats
6656
6656
  }), "ReferralStatsModule");
6657
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
+
6658
6741
  export {
6659
6742
  RehydrationFactory,
6660
6743
  AbstractApiData,
@@ -6825,6 +6908,9 @@ export {
6825
6908
  ReferralStats,
6826
6909
  ReferralService,
6827
6910
  ReferralModule,
6828
- ReferralStatsModule
6911
+ ReferralStatsModule,
6912
+ AuditLog,
6913
+ AuditLogService,
6914
+ AuditLogModule
6829
6915
  };
6830
- //# sourceMappingURL=chunk-REWN5GZP.mjs.map
6916
+ //# sourceMappingURL=chunk-G7PGWMFO.mjs.map