@revisium/core 1.3.1 → 1.4.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 (111) hide show
  1. package/dist/package.json +5 -5
  2. package/dist/prisma/migrations/20250602142630_add_published_at_to_row/migration.sql +5 -0
  3. package/dist/prisma/schema.prisma +2 -0
  4. package/dist/src/__tests__/utils/prepareProject.d.ts +19 -1
  5. package/dist/src/__tests__/utils/prepareProject.js +6 -3
  6. package/dist/src/__tests__/utils/prepareProject.js.map +1 -1
  7. package/dist/src/api/graphql-api/draft/draft.resolver.d.ts +2 -0
  8. package/dist/src/api/graphql-api/draft/draft.resolver.js +18 -0
  9. package/dist/src/api/graphql-api/draft/draft.resolver.js.map +1 -1
  10. package/dist/src/api/graphql-api/draft/input/patch-row.input.d.ts +13 -0
  11. package/dist/src/api/graphql-api/draft/input/patch-row.input.js +48 -0
  12. package/dist/src/api/graphql-api/draft/input/patch-row.input.js.map +1 -0
  13. package/dist/src/api/graphql-api/draft/model/patch-row-result.model.d.ts +8 -0
  14. package/dist/src/api/graphql-api/draft/model/patch-row-result.model.js +38 -0
  15. package/dist/src/api/graphql-api/draft/model/patch-row-result.model.js.map +1 -0
  16. package/dist/src/api/graphql-api/registerGraphqlEnums.js +7 -0
  17. package/dist/src/api/graphql-api/registerGraphqlEnums.js.map +1 -1
  18. package/dist/src/api/graphql-api/row/inputs/get-rows.input.d.ts +65 -0
  19. package/dist/src/api/graphql-api/row/inputs/get-rows.input.js +233 -1
  20. package/dist/src/api/graphql-api/row/inputs/get-rows.input.js.map +1 -1
  21. package/dist/src/api/graphql-api/row/model/row.model.d.ts +1 -0
  22. package/dist/src/api/graphql-api/row/model/row.model.js +4 -0
  23. package/dist/src/api/graphql-api/row/model/row.model.js.map +1 -1
  24. package/dist/src/api/graphql-api/row/row.resolver.d.ts +1 -1
  25. package/dist/src/api/graphql-api/row/row.resolver.js +7 -2
  26. package/dist/src/api/graphql-api/row/row.resolver.js.map +1 -1
  27. package/dist/src/api/graphql-api/share/mapToPrismaOrderBy.d.ts +3 -0
  28. package/dist/src/api/graphql-api/share/mapToPrismaOrderBy.js +12 -0
  29. package/dist/src/api/graphql-api/share/mapToPrismaOrderBy.js.map +1 -0
  30. package/dist/src/api/rest-api/row/model/row.model.d.ts +1 -0
  31. package/dist/src/api/rest-api/row/model/row.model.js +4 -0
  32. package/dist/src/api/rest-api/row/model/row.model.js.map +1 -1
  33. package/dist/src/api/rest-api/share/model/order-by.model.d.ts +1 -0
  34. package/dist/src/api/rest-api/share/model/order-by.model.js +1 -0
  35. package/dist/src/api/rest-api/share/model/order-by.model.js.map +1 -1
  36. package/dist/src/api/rest-api/share/utils/transformFromPrismaToRowModel.js +1 -0
  37. package/dist/src/api/rest-api/share/utils/transformFromPrismaToRowModel.js.map +1 -1
  38. package/dist/src/api/rest-api/table/dto/row/row-where-input.dto.d.ts +1 -0
  39. package/dist/src/api/rest-api/table/dto/row/row-where-input.dto.js +10 -0
  40. package/dist/src/api/rest-api/table/dto/row/row-where-input.dto.js.map +1 -1
  41. package/dist/src/features/draft/commands/handlers/__tests__/utils.d.ts +2 -0
  42. package/dist/src/features/draft/commands/handlers/__tests__/utils.js +3 -0
  43. package/dist/src/features/draft/commands/handlers/__tests__/utils.js.map +1 -1
  44. package/dist/src/features/draft/commands/handlers/api-patch-row.handler.d.ts +13 -0
  45. package/dist/src/features/draft/commands/handlers/api-patch-row.handler.js +57 -0
  46. package/dist/src/features/draft/commands/handlers/api-patch-row.handler.js.map +1 -0
  47. package/dist/src/features/draft/commands/handlers/index.d.ts +3 -1
  48. package/dist/src/features/draft/commands/handlers/index.js +4 -0
  49. package/dist/src/features/draft/commands/handlers/index.js.map +1 -1
  50. package/dist/src/features/draft/commands/handlers/patch-row.handler.d.ts +20 -0
  51. package/dist/src/features/draft/commands/handlers/patch-row.handler.js +93 -0
  52. package/dist/src/features/draft/commands/handlers/patch-row.handler.js.map +1 -0
  53. package/dist/src/features/draft/commands/handlers/transactional/get-or-create-draft-row.handler.js +1 -0
  54. package/dist/src/features/draft/commands/handlers/transactional/get-or-create-draft-row.handler.js.map +1 -1
  55. package/dist/src/features/draft/commands/handlers/transactional/get-or-create-draft-rows.handler.js +2 -0
  56. package/dist/src/features/draft/commands/handlers/transactional/get-or-create-draft-rows.handler.js.map +1 -1
  57. package/dist/src/features/draft/commands/handlers/transactional/internal-update-row.handler.js +1 -0
  58. package/dist/src/features/draft/commands/handlers/transactional/internal-update-row.handler.js.map +1 -1
  59. package/dist/src/features/draft/commands/handlers/update-row.handler.d.ts +6 -1
  60. package/dist/src/features/draft/commands/handlers/update-row.handler.js +18 -2
  61. package/dist/src/features/draft/commands/handlers/update-row.handler.js.map +1 -1
  62. package/dist/src/features/draft/commands/impl/api-patch-row.command.d.ts +26 -0
  63. package/dist/src/features/draft/commands/impl/api-patch-row.command.js +10 -0
  64. package/dist/src/features/draft/commands/impl/api-patch-row.command.js.map +1 -0
  65. package/dist/src/features/draft/commands/impl/patch-row.command.d.ts +22 -0
  66. package/dist/src/features/draft/commands/impl/patch-row.command.js +10 -0
  67. package/dist/src/features/draft/commands/impl/patch-row.command.js.map +1 -0
  68. package/dist/src/features/draft/commands/impl/transactional/internal-update-row.command.d.ts +2 -0
  69. package/dist/src/features/draft/commands/impl/transactional/internal-update-row.command.js.map +1 -1
  70. package/dist/src/features/plugin/index.d.ts +2 -1
  71. package/dist/src/features/plugin/index.js +2 -0
  72. package/dist/src/features/plugin/index.js.map +1 -1
  73. package/dist/src/features/plugin/plugin.list.service.d.ts +2 -1
  74. package/dist/src/features/plugin/plugin.list.service.js +4 -1
  75. package/dist/src/features/plugin/plugin.list.service.js.map +1 -1
  76. package/dist/src/features/plugin/row-published-at/row-published-at.plugin.d.ts +13 -0
  77. package/dist/src/features/plugin/row-published-at/row-published-at.plugin.js +70 -0
  78. package/dist/src/features/plugin/row-published-at/row-published-at.plugin.js.map +1 -0
  79. package/dist/src/features/row/queries/handlers/get-row-by-id.handler.d.ts +1 -0
  80. package/dist/src/features/row/queries/handlers/get-rows.handler.js +4 -3
  81. package/dist/src/features/row/queries/handlers/get-rows.handler.js.map +1 -1
  82. package/dist/src/features/row/queries/handlers/resolve-row-foreign-keys-by.handler.d.ts +1 -0
  83. package/dist/src/features/row/queries/handlers/resolve-row-foreign-keys-to.handler.d.ts +1 -0
  84. package/dist/src/features/row/queries/impl/get-rows.query.d.ts +5 -0
  85. package/dist/src/features/row/queries/impl/get-rows.query.js.map +1 -1
  86. package/dist/src/features/share/foreign-keys.service.d.ts +2 -0
  87. package/dist/src/features/share/json-schema-store.service.js +1 -0
  88. package/dist/src/features/share/json-schema-store.service.js.map +1 -1
  89. package/dist/src/features/share/json-schema-validator.service.js +1 -0
  90. package/dist/src/features/share/json-schema-validator.service.js.map +1 -1
  91. package/dist/src/features/share/schema/plugins/index.d.ts +1 -0
  92. package/dist/src/features/share/schema/plugins/index.js +1 -0
  93. package/dist/src/features/share/schema/plugins/index.js.map +1 -1
  94. package/dist/src/features/share/schema/plugins/row-published-at.schema.d.ts +4 -0
  95. package/dist/src/features/share/schema/plugins/row-published-at.schema.js +14 -0
  96. package/dist/src/features/share/schema/plugins/row-published-at.schema.js.map +1 -0
  97. package/dist/src/features/share/schema-ids.consts.d.ts +1 -0
  98. package/dist/src/features/share/schema-ids.consts.js +1 -0
  99. package/dist/src/features/share/schema-ids.consts.js.map +1 -1
  100. package/dist/src/features/share/utils/schema/lib/createJsonValueStore.d.ts +2 -0
  101. package/dist/src/features/share/utils/schema/lib/createJsonValueStore.js +13 -5
  102. package/dist/src/features/share/utils/schema/lib/createJsonValueStore.js.map +1 -1
  103. package/dist/src/features/share/utils/schema/lib/getJsonValueByPath.d.ts +2 -0
  104. package/dist/src/features/share/utils/schema/lib/getJsonValueByPath.js +46 -0
  105. package/dist/src/features/share/utils/schema/lib/getJsonValueByPath.js.map +1 -0
  106. package/dist/src/features/share/utils/schema/types/json-value-patch.types.d.ts +21 -0
  107. package/dist/src/features/share/utils/schema/types/json-value-patch.types.js +3 -0
  108. package/dist/src/features/share/utils/schema/types/json-value-patch.types.js.map +1 -0
  109. package/dist/src/features/table/queries/handlers/get-rows-by-table.handler.d.ts +1 -0
  110. package/dist/tsconfig.build.tsbuildinfo +1 -1
  111. package/package.json +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revisium/core",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "Revisium is a tool (UI/API) inspired by JSON (JSON Schema) and Git, designed to provide a flexible and low-level headless CMS solution.",
5
5
  "private": false,
6
6
  "homepage": "https://revisium.io",
@@ -51,16 +51,16 @@
51
51
  "@casl/ability": "^6.7.3",
52
52
  "@nestjs/apollo": "^13.1.0",
53
53
  "@nestjs/cache-manager": "^3.0.1",
54
- "@nestjs/common": "^11.1.1",
54
+ "@nestjs/common": "^11.1.3",
55
55
  "@nestjs/config": "^4.0.2",
56
- "@nestjs/core": "^11.1.1",
56
+ "@nestjs/core": "^11.1.3",
57
57
  "@nestjs/cqrs": "^11.0.3",
58
58
  "@nestjs/event-emitter": "^3.0.1",
59
59
  "@nestjs/graphql": "^13.1.0",
60
60
  "@nestjs/jwt": "^11.0.0",
61
- "@nestjs/microservices": "^11.1.1",
61
+ "@nestjs/microservices": "^11.1.3",
62
62
  "@nestjs/passport": "^11.0.5",
63
- "@nestjs/platform-express": "^11.1.2",
63
+ "@nestjs/platform-express": "^11.1.3",
64
64
  "@nestjs/schedule": "^6.0.0",
65
65
  "@nestjs/serve-static": "^5.0.3",
66
66
  "@nestjs/swagger": "^11.2.0",