@comet/cms-api 9.0.0-beta.2 → 9.0.0-beta.4

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 (689) hide show
  1. package/lib/access-log/access-log.interceptor.d.ts.map +1 -1
  2. package/lib/access-log/access-log.interceptor.js +6 -6
  3. package/lib/access-log/access-log.interceptor.js.map +1 -1
  4. package/lib/auth/guards/comet.guard.d.ts.map +1 -1
  5. package/lib/auth/guards/comet.guard.js +48 -58
  6. package/lib/auth/guards/comet.guard.js.map +1 -1
  7. package/lib/auth/resolver/auth.resolver.js +16 -31
  8. package/lib/auth/resolver/auth.resolver.js.map +1 -1
  9. package/lib/auth/services/basic.auth-service.d.ts.map +1 -1
  10. package/lib/auth/services/basic.auth-service.js +11 -7
  11. package/lib/auth/services/basic.auth-service.js.map +1 -1
  12. package/lib/auth/services/jwt.auth-service.d.ts.map +1 -1
  13. package/lib/auth/services/jwt.auth-service.js +51 -73
  14. package/lib/auth/services/jwt.auth-service.js.map +1 -1
  15. package/lib/auth/services/site-preview.auth-service.d.ts.map +1 -1
  16. package/lib/auth/services/site-preview.auth-service.js +23 -33
  17. package/lib/auth/services/site-preview.auth-service.js.map +1 -1
  18. package/lib/auth/util/auth-guard.providers.d.ts +2 -2
  19. package/lib/auth/util/auth-guard.providers.d.ts.map +1 -1
  20. package/lib/auth/util/auth-service.interface.d.ts +2 -2
  21. package/lib/auth/util/auth-service.interface.d.ts.map +1 -1
  22. package/lib/blob-storage/backends/azure/blob-storage-azure.storage.d.ts +3 -2
  23. package/lib/blob-storage/backends/azure/blob-storage-azure.storage.d.ts.map +1 -1
  24. package/lib/blob-storage/backends/azure/blob-storage-azure.storage.js +73 -94
  25. package/lib/blob-storage/backends/azure/blob-storage-azure.storage.js.map +1 -1
  26. package/lib/blob-storage/backends/blob-storage-backend.interface.d.ts +2 -1
  27. package/lib/blob-storage/backends/blob-storage-backend.interface.d.ts.map +1 -1
  28. package/lib/blob-storage/backends/blob-storage-backend.service.d.ts +5 -2
  29. package/lib/blob-storage/backends/blob-storage-backend.service.d.ts.map +1 -1
  30. package/lib/blob-storage/backends/blob-storage-backend.service.js +79 -79
  31. package/lib/blob-storage/backends/blob-storage-backend.service.js.map +1 -1
  32. package/lib/blob-storage/backends/file/blob-storage-file.storage.d.ts +3 -2
  33. package/lib/blob-storage/backends/file/blob-storage-file.storage.d.ts.map +1 -1
  34. package/lib/blob-storage/backends/file/blob-storage-file.storage.js +77 -95
  35. package/lib/blob-storage/backends/file/blob-storage-file.storage.js.map +1 -1
  36. package/lib/blob-storage/backends/s3/blob-storage-s3.config.d.ts +1 -1
  37. package/lib/blob-storage/backends/s3/blob-storage-s3.config.d.ts.map +1 -1
  38. package/lib/blob-storage/backends/s3/blob-storage-s3.storage.d.ts +3 -2
  39. package/lib/blob-storage/backends/s3/blob-storage-s3.storage.d.ts.map +1 -1
  40. package/lib/blob-storage/backends/s3/blob-storage-s3.storage.js +112 -116
  41. package/lib/blob-storage/backends/s3/blob-storage-s3.storage.js.map +1 -1
  42. package/lib/blob-storage/blob-storage.config.d.ts +3 -3
  43. package/lib/blob-storage/blob-storage.config.d.ts.map +1 -1
  44. package/lib/blob-storage/cache/dto/file-cache.interface.d.ts +1 -1
  45. package/lib/blob-storage/cache/dto/file-cache.interface.d.ts.map +1 -1
  46. package/lib/blob-storage/cache/scaled-images-cache.service.js +38 -53
  47. package/lib/blob-storage/cache/scaled-images-cache.service.js.map +1 -1
  48. package/lib/blocks/SpaceBlock/migrations/MigrationTo1.d.ts +1 -1
  49. package/lib/blocks/SpaceBlock/migrations/MigrationTo1.d.ts.map +1 -1
  50. package/lib/blocks/SpaceBlock/migrations/MigrationTo1.js +4 -1
  51. package/lib/blocks/SpaceBlock/migrations/MigrationTo1.js.map +1 -1
  52. package/lib/blocks/SpaceBlock/migrations/MigrationTo2.d.ts +1 -1
  53. package/lib/blocks/SpaceBlock/migrations/MigrationTo2.d.ts.map +1 -1
  54. package/lib/blocks/SpaceBlock/migrations/MigrationTo2.js +1 -12
  55. package/lib/blocks/SpaceBlock/migrations/MigrationTo2.js.map +1 -1
  56. package/lib/blocks/YouTubeVideoBlock/migrations/1-remove-aspect-ratio.migration.d.ts +1 -1
  57. package/lib/blocks/YouTubeVideoBlock/migrations/1-remove-aspect-ratio.migration.d.ts.map +1 -1
  58. package/lib/blocks/YouTubeVideoBlock/migrations/1-remove-aspect-ratio.migration.js +2 -14
  59. package/lib/blocks/YouTubeVideoBlock/migrations/1-remove-aspect-ratio.migration.js.map +1 -1
  60. package/lib/blocks/YouTubeVideoBlock/migrations/2-add-preview-image.migration.d.ts +1 -1
  61. package/lib/blocks/YouTubeVideoBlock/migrations/2-add-preview-image.migration.d.ts.map +1 -1
  62. package/lib/blocks/YouTubeVideoBlock/migrations/2-add-preview-image.migration.js +1 -1
  63. package/lib/blocks/YouTubeVideoBlock/migrations/2-add-preview-image.migration.js.map +1 -1
  64. package/lib/blocks/block-migrate.service.d.ts.map +1 -1
  65. package/lib/blocks/block-migrate.service.js +64 -73
  66. package/lib/blocks/block-migrate.service.js.map +1 -1
  67. package/lib/blocks/block.d.ts +4 -4
  68. package/lib/blocks/block.d.ts.map +1 -1
  69. package/lib/blocks/block.js +5 -18
  70. package/lib/blocks/block.js.map +1 -1
  71. package/lib/blocks/blocks-meta.service.js +14 -25
  72. package/lib/blocks/blocks-meta.service.js.map +1 -1
  73. package/lib/blocks/blocks-transformer-middleware.factory.d.ts +1 -1
  74. package/lib/blocks/blocks-transformer-middleware.factory.d.ts.map +1 -1
  75. package/lib/blocks/blocks-transformer-middleware.factory.js +3 -12
  76. package/lib/blocks/blocks-transformer-middleware.factory.js.map +1 -1
  77. package/lib/blocks/blocks-transformer.d.ts +1 -1
  78. package/lib/blocks/blocks-transformer.d.ts.map +1 -1
  79. package/lib/blocks/blocks-transformer.js +30 -43
  80. package/lib/blocks/blocks-transformer.js.map +1 -1
  81. package/lib/blocks/blocks-transformer.service.js +3 -14
  82. package/lib/blocks/blocks-transformer.service.js.map +1 -1
  83. package/lib/blocks/create-block-index-views.command.js +2 -13
  84. package/lib/blocks/create-block-index-views.command.js.map +1 -1
  85. package/lib/blocks/decorators/child-block-input.js +2 -2
  86. package/lib/blocks/decorators/child-block-input.js.map +1 -1
  87. package/lib/blocks/decorators/child-block.js +1 -1
  88. package/lib/blocks/decorators/child-block.js.map +1 -1
  89. package/lib/blocks/decorators/field.js +1 -2
  90. package/lib/blocks/decorators/field.js.map +1 -1
  91. package/lib/blocks/decorators/root-block-entity.d.ts +1 -1
  92. package/lib/blocks/decorators/root-block-entity.d.ts.map +1 -1
  93. package/lib/blocks/decorators/root-block.d.ts +1 -1
  94. package/lib/blocks/decorators/root-block.d.ts.map +1 -1
  95. package/lib/blocks/factories/columns-block.factory.js +13 -18
  96. package/lib/blocks/factories/columns-block.factory.js.map +1 -1
  97. package/lib/blocks/factories/createBlocksBlock.js +14 -35
  98. package/lib/blocks/factories/createBlocksBlock.js.map +1 -1
  99. package/lib/blocks/factories/createListBlock.js +16 -33
  100. package/lib/blocks/factories/createListBlock.js.map +1 -1
  101. package/lib/blocks/factories/createOneOfBlock.js +20 -35
  102. package/lib/blocks/factories/createOneOfBlock.js.map +1 -1
  103. package/lib/blocks/factories/createOptionalBlock.js +5 -16
  104. package/lib/blocks/factories/createOptionalBlock.js.map +1 -1
  105. package/lib/blocks/factories/createRichTextBlock.js +33 -31
  106. package/lib/blocks/factories/createRichTextBlock.js.map +1 -1
  107. package/lib/blocks/factories/createSeoBlock.js +14 -25
  108. package/lib/blocks/factories/createSeoBlock.js.map +1 -1
  109. package/lib/blocks/factories/createTableBlock.js +5 -1
  110. package/lib/blocks/factories/createTableBlock.js.map +1 -1
  111. package/lib/blocks/factories/types.d.ts +1 -1
  112. package/lib/blocks/factories/types.d.ts.map +1 -1
  113. package/lib/blocks/flat-blocks/flat-blocks.d.ts +1 -1
  114. package/lib/blocks/flat-blocks/flat-blocks.d.ts.map +1 -1
  115. package/lib/blocks/flat-blocks/visit-blocks-breadth-first.d.ts +1 -1
  116. package/lib/blocks/flat-blocks/visit-blocks-breadth-first.d.ts.map +1 -1
  117. package/lib/blocks/flat-blocks/visit-blocks-breadth-first.js +3 -3
  118. package/lib/blocks/flat-blocks/visit-blocks-breadth-first.js.map +1 -1
  119. package/lib/blocks/flat-blocks/visit-blocks-depth-first.d.ts +2 -2
  120. package/lib/blocks/flat-blocks/visit-blocks-depth-first.d.ts.map +1 -1
  121. package/lib/blocks/flat-blocks/visit-blocks-depth-first.js +3 -3
  122. package/lib/blocks/flat-blocks/visit-blocks-depth-first.js.map +1 -1
  123. package/lib/blocks/get-preview-image-url-templates.d.ts +1 -1
  124. package/lib/blocks/get-preview-image-url-templates.d.ts.map +1 -1
  125. package/lib/blocks/get-preview-image-url-templates.js +13 -26
  126. package/lib/blocks/get-preview-image-url-templates.js.map +1 -1
  127. package/lib/blocks/helpers/composeBlocks.js +10 -17
  128. package/lib/blocks/helpers/composeBlocks.js.map +1 -1
  129. package/lib/blocks/migrate-blocks.command.d.ts +5 -1
  130. package/lib/blocks/migrate-blocks.command.d.ts.map +1 -1
  131. package/lib/blocks/migrate-blocks.command.js +17 -13
  132. package/lib/blocks/migrate-blocks.command.js.map +1 -1
  133. package/lib/blocks/migrations/BlockMigration.d.ts +1 -1
  134. package/lib/blocks/migrations/BlockMigration.d.ts.map +1 -1
  135. package/lib/blocks/migrations/BlockMigration.js +5 -13
  136. package/lib/blocks/migrations/BlockMigration.js.map +1 -1
  137. package/lib/blocks/migrations/applyMigrations.d.ts +1 -1
  138. package/lib/blocks/migrations/applyMigrations.d.ts.map +1 -1
  139. package/lib/blocks/migrations/createAppliedMigrationsBlockDataFactoryDecorator.d.ts +2 -2
  140. package/lib/blocks/migrations/createAppliedMigrationsBlockDataFactoryDecorator.d.ts.map +1 -1
  141. package/lib/blocks/migrations/decorators/BlockDataMigrationVersion.d.ts +1 -1
  142. package/lib/blocks/migrations/decorators/BlockDataMigrationVersion.d.ts.map +1 -1
  143. package/lib/blocks/migrations/decorators/BlockDataMigrationVersion.js +11 -19
  144. package/lib/blocks/migrations/decorators/BlockDataMigrationVersion.js.map +1 -1
  145. package/lib/blocks/migrations/typeSafeBlockMigrationPipe.d.ts +1 -1
  146. package/lib/blocks/migrations/typeSafeBlockMigrationPipe.d.ts.map +1 -1
  147. package/lib/blocks/refresh-block-index-views.command.js +2 -13
  148. package/lib/blocks/refresh-block-index-views.command.js.map +1 -1
  149. package/lib/blocks/rootBlocks/root-block-data.scalar.d.ts +1 -1
  150. package/lib/blocks/rootBlocks/root-block-data.scalar.d.ts.map +1 -1
  151. package/lib/blocks/rootBlocks/root-block-data.scalar.js +5 -1
  152. package/lib/blocks/rootBlocks/root-block-data.scalar.js.map +1 -1
  153. package/lib/blocks/rootBlocks/root-block-input.scalar.d.ts +1 -1
  154. package/lib/blocks/rootBlocks/root-block-input.scalar.d.ts.map +1 -1
  155. package/lib/blocks/rootBlocks/root-block-input.scalar.js +5 -1
  156. package/lib/blocks/rootBlocks/root-block-input.scalar.js.map +1 -1
  157. package/lib/blocks/search/get-search-text.d.ts +3 -1
  158. package/lib/blocks/search/get-search-text.d.ts.map +1 -1
  159. package/lib/blocks/search/get-search-text.js +26 -0
  160. package/lib/blocks/search/get-search-text.js.map +1 -1
  161. package/lib/blocks/tipTap/createTipTapRichTextBlock.d.ts +44 -0
  162. package/lib/blocks/tipTap/createTipTapRichTextBlock.d.ts.map +1 -0
  163. package/lib/blocks/tipTap/createTipTapRichTextBlock.js +346 -0
  164. package/lib/blocks/tipTap/createTipTapRichTextBlock.js.map +1 -0
  165. package/lib/blocks/tipTap/extensions/BlockStyleHeading.d.ts +2 -0
  166. package/lib/blocks/tipTap/extensions/BlockStyleHeading.d.ts.map +1 -0
  167. package/lib/blocks/tipTap/extensions/BlockStyleHeading.js +18 -0
  168. package/lib/blocks/tipTap/extensions/BlockStyleHeading.js.map +1 -0
  169. package/lib/blocks/tipTap/extensions/BlockStyleParagraph.d.ts +2 -0
  170. package/lib/blocks/tipTap/extensions/BlockStyleParagraph.d.ts.map +1 -0
  171. package/lib/blocks/tipTap/extensions/BlockStyleParagraph.js +18 -0
  172. package/lib/blocks/tipTap/extensions/BlockStyleParagraph.js.map +1 -0
  173. package/lib/blocks/tipTap/extensions/CmsLink.d.ts +3 -0
  174. package/lib/blocks/tipTap/extensions/CmsLink.d.ts.map +1 -0
  175. package/lib/blocks/tipTap/extensions/CmsLink.js +22 -0
  176. package/lib/blocks/tipTap/extensions/CmsLink.js.map +1 -0
  177. package/lib/blocks/tipTap/extensions/InlineStyleMark.d.ts +3 -0
  178. package/lib/blocks/tipTap/extensions/InlineStyleMark.d.ts.map +1 -0
  179. package/lib/blocks/tipTap/extensions/InlineStyleMark.js +24 -0
  180. package/lib/blocks/tipTap/extensions/InlineStyleMark.js.map +1 -0
  181. package/lib/blocks/tipTap/extensions/NonBreakingSpace.d.ts +3 -0
  182. package/lib/blocks/tipTap/extensions/NonBreakingSpace.d.ts.map +1 -0
  183. package/lib/blocks/tipTap/extensions/NonBreakingSpace.js +18 -0
  184. package/lib/blocks/tipTap/extensions/NonBreakingSpace.js.map +1 -0
  185. package/lib/blocks/tipTap/extensions/SoftHyphen.d.ts +3 -0
  186. package/lib/blocks/tipTap/extensions/SoftHyphen.d.ts.map +1 -0
  187. package/lib/blocks/tipTap/extensions/SoftHyphen.js +18 -0
  188. package/lib/blocks/tipTap/extensions/SoftHyphen.js.map +1 -0
  189. package/lib/blocks/transformToBlockSaveIndex/transformToBlockSaveIndex.d.ts +1 -1
  190. package/lib/blocks/transformToBlockSaveIndex/transformToBlockSaveIndex.d.ts.map +1 -1
  191. package/lib/blocks/transformToBlockSaveIndex/transformToBlockSaveIndex.js +1 -1
  192. package/lib/blocks/transformToBlockSaveIndex/transformToBlockSaveIndex.js.map +1 -1
  193. package/lib/builds/build-templates.resolver.js +7 -21
  194. package/lib/builds/build-templates.resolver.js.map +1 -1
  195. package/lib/builds/build-templates.service.js +6 -20
  196. package/lib/builds/build-templates.service.js.map +1 -1
  197. package/lib/builds/builds.resolver.js +16 -32
  198. package/lib/builds/builds.resolver.js.map +1 -1
  199. package/lib/builds/builds.service.js +106 -142
  200. package/lib/builds/builds.service.js.map +1 -1
  201. package/lib/builds/changes-checker.command.js +17 -28
  202. package/lib/builds/changes-checker.command.js.map +1 -1
  203. package/lib/builds/changes-checker.interceptor.js +34 -45
  204. package/lib/builds/changes-checker.interceptor.js.map +1 -1
  205. package/lib/common/decorators/crud-generator.decorator.d.ts +4 -4
  206. package/lib/common/decorators/crud-generator.decorator.d.ts.map +1 -1
  207. package/lib/common/decorators/request-context.decorator.d.ts +1 -1
  208. package/lib/common/decorators/request-context.decorator.d.ts.map +1 -1
  209. package/lib/common/decorators/utils.d.ts +1 -1
  210. package/lib/common/decorators/utils.d.ts.map +1 -1
  211. package/lib/common/enum/core-permission.enum.d.ts +2 -1
  212. package/lib/common/enum/core-permission.enum.d.ts.map +1 -1
  213. package/lib/common/enum/core-permission.enum.js +1 -0
  214. package/lib/common/enum/core-permission.enum.js.map +1 -1
  215. package/lib/common/errors/validation.exception-factory.d.ts +1 -1
  216. package/lib/common/errors/validation.exception-factory.d.ts.map +1 -1
  217. package/lib/common/errors/validation.exception.d.ts +1 -1
  218. package/lib/common/errors/validation.exception.d.ts.map +1 -1
  219. package/lib/common/filter/mikro-orm.d.ts +1 -1
  220. package/lib/common/filter/mikro-orm.d.ts.map +1 -1
  221. package/lib/common/filter/mikro-orm.js +5 -7
  222. package/lib/common/filter/mikro-orm.js.map +1 -1
  223. package/lib/common/graphql/extract-graphql-fields.d.ts +1 -1
  224. package/lib/common/graphql/extract-graphql-fields.d.ts.map +1 -1
  225. package/lib/common/graphql/extract-graphql-fields.js +2 -1
  226. package/lib/common/graphql/extract-graphql-fields.js.map +1 -1
  227. package/lib/common/helper/crud-generator.helper.d.ts +1 -1
  228. package/lib/common/helper/crud-generator.helper.d.ts.map +1 -1
  229. package/lib/common/helper/crud-generator.helper.js +2 -3
  230. package/lib/common/helper/crud-generator.helper.js.map +1 -1
  231. package/lib/common/helper/is-injectable-service.helper.d.ts +1 -1
  232. package/lib/common/helper/is-injectable-service.helper.d.ts.map +1 -1
  233. package/lib/common/helper/partial-type.helper.d.ts +2 -2
  234. package/lib/common/helper/partial-type.helper.d.ts.map +1 -1
  235. package/lib/common/helper/partial-type.helper.js +8 -8
  236. package/lib/common/helper/partial-type.helper.js.map +1 -1
  237. package/lib/common/test/get-error.js +3 -12
  238. package/lib/common/test/get-error.js.map +1 -1
  239. package/lib/common/validators/is-slug.js +3 -14
  240. package/lib/common/validators/is-slug.js.map +1 -1
  241. package/lib/content-generation/azure-open-ai/azure-open-ai-content-generation.service.js +94 -113
  242. package/lib/content-generation/azure-open-ai/azure-open-ai-content-generation.service.js.map +1 -1
  243. package/lib/content-generation/generate-alt-text.resolver.d.ts.map +1 -1
  244. package/lib/content-generation/generate-alt-text.resolver.js +6 -17
  245. package/lib/content-generation/generate-alt-text.resolver.js.map +1 -1
  246. package/lib/content-generation/generate-image-title.resolver.d.ts.map +1 -1
  247. package/lib/content-generation/generate-image-title.resolver.js +6 -17
  248. package/lib/content-generation/generate-image-title.resolver.js.map +1 -1
  249. package/lib/content-generation/generate-seo-tags.resolver.d.ts.map +1 -1
  250. package/lib/content-generation/generate-seo-tags.resolver.js +6 -17
  251. package/lib/content-generation/generate-seo-tags.resolver.js.map +1 -1
  252. package/lib/cron-jobs/cron-jobs.resolver.js +37 -54
  253. package/lib/cron-jobs/cron-jobs.resolver.js.map +1 -1
  254. package/lib/cron-jobs/cron-jobs.service.js +6 -7
  255. package/lib/cron-jobs/cron-jobs.service.js.map +1 -1
  256. package/lib/cron-jobs/jobs.resolver.js +22 -37
  257. package/lib/cron-jobs/jobs.resolver.js.map +1 -1
  258. package/lib/cron-jobs/jobs.service.js +5 -6
  259. package/lib/cron-jobs/jobs.service.js.map +1 -1
  260. package/lib/dam/blocks/dam-file-download-link-block-transformer.service.js +28 -33
  261. package/lib/dam/blocks/dam-file-download-link-block-transformer.service.js.map +1 -1
  262. package/lib/dam/blocks/dam-file-download-link.block.js +2 -13
  263. package/lib/dam/blocks/dam-file-download-link.block.js.map +1 -1
  264. package/lib/dam/blocks/pixel-image-block-transformer.service.js +35 -46
  265. package/lib/dam/blocks/pixel-image-block-transformer.service.js.map +1 -1
  266. package/lib/dam/blocks/pixel-image.block.js +11 -24
  267. package/lib/dam/blocks/pixel-image.block.js.map +1 -1
  268. package/lib/dam/blocks/svg-image-block-transformer.service.js +23 -34
  269. package/lib/dam/blocks/svg-image-block-transformer.service.js.map +1 -1
  270. package/lib/dam/blocks/svg-image.block.js +2 -13
  271. package/lib/dam/blocks/svg-image.block.js.map +1 -1
  272. package/lib/dam/blocks/video/dam-video-block-transformer.service.js +34 -45
  273. package/lib/dam/blocks/video/dam-video-block-transformer.service.js.map +1 -1
  274. package/lib/dam/blocks/video/dam-video.block.js +2 -13
  275. package/lib/dam/blocks/video/dam-video.block.js.map +1 -1
  276. package/lib/dam/blocks/video/migrations/1-add-preview-image.migration.d.ts +1 -1
  277. package/lib/dam/blocks/video/migrations/1-add-preview-image.migration.d.ts.map +1 -1
  278. package/lib/dam/blocks/video/migrations/1-add-preview-image.migration.js +1 -1
  279. package/lib/dam/blocks/video/migrations/1-add-preview-image.migration.js.map +1 -1
  280. package/lib/dam/common/decorators/has-valid-filename.decorator.js +23 -35
  281. package/lib/dam/common/decorators/has-valid-filename.decorator.js.map +1 -1
  282. package/lib/dam/dam.module.js +8 -18
  283. package/lib/dam/dam.module.js.map +1 -1
  284. package/lib/dam/files/dam-items.resolver.js +7 -20
  285. package/lib/dam/files/dam-items.resolver.js.map +1 -1
  286. package/lib/dam/files/dam-items.service.js +50 -76
  287. package/lib/dam/files/dam-items.service.js.map +1 -1
  288. package/lib/dam/files/dam-media-alternatives/dam-media-alternative.resolver.js +74 -102
  289. package/lib/dam/files/dam-media-alternatives/dam-media-alternative.resolver.js.map +1 -1
  290. package/lib/dam/files/dam-media-alternatives/entities/dam-media-alternative.entity.js +3 -13
  291. package/lib/dam/files/dam-media-alternatives/entities/dam-media-alternative.entity.js.map +1 -1
  292. package/lib/dam/files/dam-upload-file.interceptor.js +10 -21
  293. package/lib/dam/files/dam-upload-file.interceptor.js.map +1 -1
  294. package/lib/dam/files/dto/file.args.d.ts +1 -0
  295. package/lib/dam/files/dto/file.args.d.ts.map +1 -1
  296. package/lib/dam/files/dto/file.args.js +6 -0
  297. package/lib/dam/files/dto/file.args.js.map +1 -1
  298. package/lib/dam/files/file-image.resolver.js +8 -19
  299. package/lib/dam/files/file-image.resolver.js.map +1 -1
  300. package/lib/dam/files/file-warning.service.d.ts.map +1 -1
  301. package/lib/dam/files/file-warning.service.js +64 -90
  302. package/lib/dam/files/file-warning.service.js.map +1 -1
  303. package/lib/dam/files/files.controller.d.ts.map +1 -1
  304. package/lib/dam/files/files.controller.js +182 -210
  305. package/lib/dam/files/files.controller.js.map +1 -1
  306. package/lib/dam/files/files.resolver.d.ts.map +1 -1
  307. package/lib/dam/files/files.resolver.js +101 -167
  308. package/lib/dam/files/files.resolver.js.map +1 -1
  309. package/lib/dam/files/files.service.d.ts +1 -0
  310. package/lib/dam/files/files.service.d.ts.map +1 -1
  311. package/lib/dam/files/files.service.js +435 -437
  312. package/lib/dam/files/files.service.js.map +1 -1
  313. package/lib/dam/files/folders.controller.js +13 -24
  314. package/lib/dam/files/folders.controller.js.map +1 -1
  315. package/lib/dam/files/folders.resolver.js +25 -52
  316. package/lib/dam/files/folders.resolver.js.map +1 -1
  317. package/lib/dam/files/folders.service.d.ts.map +1 -1
  318. package/lib/dam/files/folders.service.js +201 -240
  319. package/lib/dam/files/folders.service.js.map +1 -1
  320. package/lib/dam/images/calculateDominantImageColor.command.js +14 -45
  321. package/lib/dam/images/calculateDominantImageColor.command.js.map +1 -1
  322. package/lib/dam/images/dto/image.interface.d.ts +2 -2
  323. package/lib/dam/images/dto/image.interface.d.ts.map +1 -1
  324. package/lib/dam/images/images.controller.js +134 -165
  325. package/lib/dam/images/images.controller.js.map +1 -1
  326. package/lib/dam/images/images.util.d.ts +2 -3
  327. package/lib/dam/images/images.util.d.ts.map +1 -1
  328. package/lib/dam/images/images.util.js +0 -4
  329. package/lib/dam/images/images.util.js.map +1 -1
  330. package/lib/dam/images/validators/is-valid-aspect-ratio.validator.js +16 -28
  331. package/lib/dam/images/validators/is-valid-aspect-ratio.validator.js.map +1 -1
  332. package/lib/dependencies/dependencies.resolver.factory.js +2 -13
  333. package/lib/dependencies/dependencies.resolver.factory.js.map +1 -1
  334. package/lib/dependencies/dependencies.service.d.ts +5 -1
  335. package/lib/dependencies/dependencies.service.d.ts.map +1 -1
  336. package/lib/dependencies/dependencies.service.js +195 -211
  337. package/lib/dependencies/dependencies.service.js.map +1 -1
  338. package/lib/dependencies/dependents.resolver.factory.js +2 -13
  339. package/lib/dependencies/dependents.resolver.factory.js.map +1 -1
  340. package/lib/dependencies/discover.service.d.ts +1 -1
  341. package/lib/dependencies/discover.service.d.ts.map +1 -1
  342. package/lib/dependencies/discover.service.js +2 -4
  343. package/lib/dependencies/discover.service.js.map +1 -1
  344. package/lib/document/dto/save-document.d.ts +1 -1
  345. package/lib/document/dto/save-document.d.ts.map +1 -1
  346. package/lib/document/validateNotModified.d.ts +1 -1
  347. package/lib/document/validateNotModified.d.ts.map +1 -1
  348. package/lib/document/validateNotModified.js +1 -1
  349. package/lib/document/validateNotModified.js.map +1 -1
  350. package/lib/entity-info/entity-info.decorator.d.ts +2 -1
  351. package/lib/entity-info/entity-info.decorator.d.ts.map +1 -1
  352. package/lib/entity-info/entity-info.decorator.js.map +1 -1
  353. package/lib/entity-info/entity-info.object.d.ts.map +1 -1
  354. package/lib/entity-info/entity-info.object.js +2 -0
  355. package/lib/entity-info/entity-info.object.js.map +1 -1
  356. package/lib/entity-info/entity-info.service.d.ts +0 -5
  357. package/lib/entity-info/entity-info.service.d.ts.map +1 -1
  358. package/lib/entity-info/entity-info.service.js +49 -112
  359. package/lib/entity-info/entity-info.service.js.map +1 -1
  360. package/lib/entity-info/resolve-field-to-sql.d.ts +7 -0
  361. package/lib/entity-info/resolve-field-to-sql.d.ts.map +1 -0
  362. package/lib/entity-info/resolve-field-to-sql.js +47 -0
  363. package/lib/entity-info/resolve-field-to-sql.js.map +1 -0
  364. package/lib/file-uploads/file-upload-expiration.subscriber.js +5 -16
  365. package/lib/file-uploads/file-upload-expiration.subscriber.js.map +1 -1
  366. package/lib/file-uploads/file-uploads-download.controller.js +122 -150
  367. package/lib/file-uploads/file-uploads-download.controller.js.map +1 -1
  368. package/lib/file-uploads/file-uploads-file.interceptor.js +10 -21
  369. package/lib/file-uploads/file-uploads-file.interceptor.js.map +1 -1
  370. package/lib/file-uploads/file-uploads-upload.controller.js +17 -25
  371. package/lib/file-uploads/file-uploads-upload.controller.js.map +1 -1
  372. package/lib/file-uploads/file-uploads.module.js +3 -4
  373. package/lib/file-uploads/file-uploads.module.js.map +1 -1
  374. package/lib/file-uploads/file-uploads.resolver.js +1 -2
  375. package/lib/file-uploads/file-uploads.resolver.js.map +1 -1
  376. package/lib/file-uploads/file-uploads.service.js +53 -90
  377. package/lib/file-uploads/file-uploads.service.js.map +1 -1
  378. package/lib/file-utils/file-validation.service.d.ts +1 -1
  379. package/lib/file-utils/file-validation.service.d.ts.map +1 -1
  380. package/lib/file-utils/file-validation.service.js +14 -28
  381. package/lib/file-utils/file-validation.service.js.map +1 -1
  382. package/lib/file-utils/files.utils.d.ts +1 -1
  383. package/lib/file-utils/files.utils.d.ts.map +1 -1
  384. package/lib/file-utils/files.utils.js +33 -45
  385. package/lib/file-utils/files.utils.js.map +1 -1
  386. package/lib/file-utils/images.util.d.ts.map +1 -1
  387. package/lib/file-utils/images.util.js +10 -6
  388. package/lib/file-utils/images.util.js.map +1 -1
  389. package/lib/full-text-search/dto/paginated-entity-info.d.ts +5 -0
  390. package/lib/full-text-search/dto/paginated-entity-info.d.ts.map +1 -0
  391. package/lib/full-text-search/dto/paginated-entity-info.js +19 -0
  392. package/lib/full-text-search/dto/paginated-entity-info.js.map +1 -0
  393. package/lib/full-text-search/entities/entity-info-full-text.object.d.ts +6 -0
  394. package/lib/full-text-search/entities/entity-info-full-text.object.d.ts.map +1 -0
  395. package/lib/full-text-search/entities/entity-info-full-text.object.js +35 -0
  396. package/lib/full-text-search/entities/entity-info-full-text.object.js.map +1 -0
  397. package/lib/full-text-search/full-text-search.module.d.ts +4 -0
  398. package/lib/full-text-search/full-text-search.module.d.ts.map +1 -0
  399. package/lib/full-text-search/full-text-search.module.js +27 -0
  400. package/lib/full-text-search/full-text-search.module.js.map +1 -0
  401. package/lib/full-text-search/full-text-search.resolver.d.ts +8 -0
  402. package/lib/full-text-search/full-text-search.resolver.d.ts.map +1 -0
  403. package/lib/full-text-search/full-text-search.resolver.js +61 -0
  404. package/lib/full-text-search/full-text-search.resolver.js.map +1 -0
  405. package/lib/full-text-search/full-text-search.service.d.ts +12 -0
  406. package/lib/full-text-search/full-text-search.service.d.ts.map +1 -0
  407. package/lib/full-text-search/full-text-search.service.js +79 -0
  408. package/lib/full-text-search/full-text-search.service.js.map +1 -0
  409. package/lib/imgproxy/imgproxy.builder.d.ts.map +1 -1
  410. package/lib/imgproxy/imgproxy.builder.js +2 -1
  411. package/lib/imgproxy/imgproxy.builder.js.map +1 -1
  412. package/lib/importer/data-streams/file-data-stream.d.ts +3 -3
  413. package/lib/importer/data-streams/file-data-stream.d.ts.map +1 -1
  414. package/lib/importer/data-streams/local-file-data-stream.js +28 -76
  415. package/lib/importer/data-streams/local-file-data-stream.js.map +1 -1
  416. package/lib/importer/decorators/csv-column.decorator.d.ts +1 -1
  417. package/lib/importer/decorators/csv-column.decorator.d.ts.map +1 -1
  418. package/lib/importer/pipes/end.pipe.d.ts +1 -1
  419. package/lib/importer/pipes/end.pipe.d.ts.map +1 -1
  420. package/lib/importer/pipes/importer-pipe.type.d.ts +3 -3
  421. package/lib/importer/pipes/importer-pipe.type.d.ts.map +1 -1
  422. package/lib/importer/pipes/parsers/csv-parser-and-transform.composite-pipe.d.ts +5 -5
  423. package/lib/importer/pipes/parsers/csv-parser-and-transform.composite-pipe.d.ts.map +1 -1
  424. package/lib/importer/pipes/parsers/csv-parser.pipe.d.ts +3 -3
  425. package/lib/importer/pipes/parsers/csv-parser.pipe.d.ts.map +1 -1
  426. package/lib/importer/pipes/parsers/csv-parser.pipe.js +10 -5
  427. package/lib/importer/pipes/parsers/csv-parser.pipe.js.map +1 -1
  428. package/lib/importer/pipes/parsers/data-transformer.pipe.d.ts +3 -3
  429. package/lib/importer/pipes/parsers/data-transformer.pipe.d.ts.map +1 -1
  430. package/lib/importer/pipes/parsers/data-transformer.pipe.js +13 -24
  431. package/lib/importer/pipes/parsers/data-transformer.pipe.js.map +1 -1
  432. package/lib/importer/pipes/parsers/data-validator.pipe.d.ts +2 -2
  433. package/lib/importer/pipes/parsers/data-validator.pipe.d.ts.map +1 -1
  434. package/lib/importer/pipes/parsers/data-validator.pipe.js +26 -37
  435. package/lib/importer/pipes/parsers/data-validator.pipe.js.map +1 -1
  436. package/lib/index.d.ts +6 -6
  437. package/lib/index.d.ts.map +1 -1
  438. package/lib/index.js +15 -10
  439. package/lib/index.js.map +1 -1
  440. package/lib/kubernetes/kubernetes.service.js +70 -109
  441. package/lib/kubernetes/kubernetes.service.js.map +1 -1
  442. package/lib/mail-templates/mail-template.command.js +5 -16
  443. package/lib/mail-templates/mail-template.command.js.map +1 -1
  444. package/lib/mail-templates/mail-template.decorator.d.ts +1 -1
  445. package/lib/mail-templates/mail-template.decorator.d.ts.map +1 -1
  446. package/lib/mail-templates/mail-template.service.d.ts.map +1 -1
  447. package/lib/mail-templates/mail-template.service.js +20 -30
  448. package/lib/mail-templates/mail-template.service.js.map +1 -1
  449. package/lib/mailer/mailer.module.d.ts +8 -0
  450. package/lib/mailer/mailer.module.d.ts.map +1 -1
  451. package/lib/mailer/mailer.module.js +1 -13
  452. package/lib/mailer/mailer.module.js.map +1 -1
  453. package/lib/mailer/mailer.service.d.ts.map +1 -1
  454. package/lib/mailer/mailer.service.js +48 -62
  455. package/lib/mailer/mailer.service.js.map +1 -1
  456. package/lib/mailer/send-test-mail.command.js +15 -26
  457. package/lib/mailer/send-test-mail.command.js.map +1 -1
  458. package/lib/mikro-orm/helper/entity-to-mikro-orm-full-text.d.ts +4 -0
  459. package/lib/mikro-orm/helper/entity-to-mikro-orm-full-text.d.ts.map +1 -0
  460. package/lib/mikro-orm/helper/entity-to-mikro-orm-full-text.js +21 -0
  461. package/lib/mikro-orm/helper/entity-to-mikro-orm-full-text.js.map +1 -0
  462. package/lib/mikro-orm/migrations/Migration20220127085859.js +3 -14
  463. package/lib/mikro-orm/migrations/Migration20220127085859.js.map +1 -1
  464. package/lib/mikro-orm/migrations/Migration20220127085946.js +3 -14
  465. package/lib/mikro-orm/migrations/Migration20220127085946.js.map +1 -1
  466. package/lib/mikro-orm/migrations/Migration20220127091538.js +3 -14
  467. package/lib/mikro-orm/migrations/Migration20220127091538.js.map +1 -1
  468. package/lib/mikro-orm/migrations/Migration20220127091751.js +6 -17
  469. package/lib/mikro-orm/migrations/Migration20220127091751.js.map +1 -1
  470. package/lib/mikro-orm/migrations/Migration20220127111301.js +15 -26
  471. package/lib/mikro-orm/migrations/Migration20220127111301.js.map +1 -1
  472. package/lib/mikro-orm/migrations/Migration20220127142112.js +4 -15
  473. package/lib/mikro-orm/migrations/Migration20220127142112.js.map +1 -1
  474. package/lib/mikro-orm/migrations/Migration20220620124134.js +19 -32
  475. package/lib/mikro-orm/migrations/Migration20220620124134.js.map +1 -1
  476. package/lib/mikro-orm/migrations/Migration20220905145606.js +8 -21
  477. package/lib/mikro-orm/migrations/Migration20220905145606.js.map +1 -1
  478. package/lib/mikro-orm/migrations/Migration20230209111818.js +3 -14
  479. package/lib/mikro-orm/migrations/Migration20230209111818.js.map +1 -1
  480. package/lib/mikro-orm/migrations/Migration20230302145445.js +6 -19
  481. package/lib/mikro-orm/migrations/Migration20230302145445.js.map +1 -1
  482. package/lib/mikro-orm/migrations/Migration20230613150332.js +3 -14
  483. package/lib/mikro-orm/migrations/Migration20230613150332.js.map +1 -1
  484. package/lib/mikro-orm/migrations/Migration20230802124224.js +5 -18
  485. package/lib/mikro-orm/migrations/Migration20230802124224.js.map +1 -1
  486. package/lib/mikro-orm/migrations/Migration20230808085034.js +2 -13
  487. package/lib/mikro-orm/migrations/Migration20230808085034.js.map +1 -1
  488. package/lib/mikro-orm/migrations/Migration20230821090303.js +8 -21
  489. package/lib/mikro-orm/migrations/Migration20230821090303.js.map +1 -1
  490. package/lib/mikro-orm/migrations/Migration20231204140305.js +8 -21
  491. package/lib/mikro-orm/migrations/Migration20231204140305.js.map +1 -1
  492. package/lib/mikro-orm/migrations/Migration20231206123505.js +7 -20
  493. package/lib/mikro-orm/migrations/Migration20231206123505.js.map +1 -1
  494. package/lib/mikro-orm/migrations/Migration20231215103630.js +6 -19
  495. package/lib/mikro-orm/migrations/Migration20231215103630.js.map +1 -1
  496. package/lib/mikro-orm/migrations/Migration20231218092313.js +7 -20
  497. package/lib/mikro-orm/migrations/Migration20231218092313.js.map +1 -1
  498. package/lib/mikro-orm/migrations/Migration20231222090009.js +7 -20
  499. package/lib/mikro-orm/migrations/Migration20231222090009.js.map +1 -1
  500. package/lib/mikro-orm/migrations/Migration20240702123233.js +28 -40
  501. package/lib/mikro-orm/migrations/Migration20240702123233.js.map +1 -1
  502. package/lib/mikro-orm/migrations/Migration20240725071750.js +2 -13
  503. package/lib/mikro-orm/migrations/Migration20240725071750.js.map +1 -1
  504. package/lib/mikro-orm/migrations/Migration20240814090503.js +7 -18
  505. package/lib/mikro-orm/migrations/Migration20240814090503.js.map +1 -1
  506. package/lib/mikro-orm/migrations/Migration20240814090541.js +3 -14
  507. package/lib/mikro-orm/migrations/Migration20240814090541.js.map +1 -1
  508. package/lib/mikro-orm/migrations/Migration20240814090653.js +3 -14
  509. package/lib/mikro-orm/migrations/Migration20240814090653.js.map +1 -1
  510. package/lib/mikro-orm/migrations/Migration20250403134629.js +2 -13
  511. package/lib/mikro-orm/migrations/Migration20250403134629.js.map +1 -1
  512. package/lib/mikro-orm/migrations/Migration20250531565156.js +2 -13
  513. package/lib/mikro-orm/migrations/Migration20250531565156.js.map +1 -1
  514. package/lib/mikro-orm/migrations/Migration20250531565157.js +2 -13
  515. package/lib/mikro-orm/migrations/Migration20250531565157.js.map +1 -1
  516. package/lib/mikro-orm/migrations/Migration20250612134629.js +3 -14
  517. package/lib/mikro-orm/migrations/Migration20250612134629.js.map +1 -1
  518. package/lib/mikro-orm/migrations/Migration20250623085054.js +2 -13
  519. package/lib/mikro-orm/migrations/Migration20250623085054.js.map +1 -1
  520. package/lib/mikro-orm/migrations/Migration20250623113026.js +4 -15
  521. package/lib/mikro-orm/migrations/Migration20250623113026.js.map +1 -1
  522. package/lib/mikro-orm/migrations/Migration20251013081751.js +2 -13
  523. package/lib/mikro-orm/migrations/Migration20251013081751.js.map +1 -1
  524. package/lib/mikro-orm/migrations/Migration20251118143418.js +3 -14
  525. package/lib/mikro-orm/migrations/Migration20251118143418.js.map +1 -1
  526. package/lib/mikro-orm/migrations/Migration20251126093305.js +4 -17
  527. package/lib/mikro-orm/migrations/Migration20251126093305.js.map +1 -1
  528. package/lib/mikro-orm/migrations/Migration20260413072931.d.ts +6 -0
  529. package/lib/mikro-orm/migrations/Migration20260413072931.d.ts.map +1 -0
  530. package/lib/mikro-orm/migrations/Migration20260413072931.js +16 -0
  531. package/lib/mikro-orm/migrations/Migration20260413072931.js.map +1 -0
  532. package/lib/mikro-orm/mikro-orm.module.d.ts.map +1 -1
  533. package/lib/mikro-orm/mikro-orm.module.js +18 -19
  534. package/lib/mikro-orm/mikro-orm.module.js.map +1 -1
  535. package/lib/page-tree/attached-document-loader.service.d.ts.map +1 -1
  536. package/lib/page-tree/attached-document-loader.service.js +9 -17
  537. package/lib/page-tree/attached-document-loader.service.js.map +1 -1
  538. package/lib/page-tree/blocks/internal-link-block-transformer.service.js +18 -29
  539. package/lib/page-tree/blocks/internal-link-block-transformer.service.js.map +1 -1
  540. package/lib/page-tree/blocks/internal-link-block-warnings.service.js +14 -25
  541. package/lib/page-tree/blocks/internal-link-block-warnings.service.js.map +1 -1
  542. package/lib/page-tree/blocks/internal-link.block.js +2 -13
  543. package/lib/page-tree/blocks/internal-link.block.js.map +1 -1
  544. package/lib/page-tree/createPageTreeResolver.d.ts +2 -1
  545. package/lib/page-tree/createPageTreeResolver.d.ts.map +1 -1
  546. package/lib/page-tree/createPageTreeResolver.js +195 -247
  547. package/lib/page-tree/createPageTreeResolver.js.map +1 -1
  548. package/lib/page-tree/document-subscriber.js +19 -30
  549. package/lib/page-tree/document-subscriber.js.map +1 -1
  550. package/lib/page-tree/dto/paginated-page-tree-nodes.factory.d.ts +8 -0
  551. package/lib/page-tree/dto/paginated-page-tree-nodes.factory.d.ts.map +1 -0
  552. package/lib/page-tree/dto/paginated-page-tree-nodes.factory.js +23 -0
  553. package/lib/page-tree/dto/paginated-page-tree-nodes.factory.js.map +1 -0
  554. package/lib/page-tree/entities/page-tree-node-base.entity.d.ts +1 -0
  555. package/lib/page-tree/entities/page-tree-node-base.entity.d.ts.map +1 -1
  556. package/lib/page-tree/entities/page-tree-node-base.entity.js +15 -1
  557. package/lib/page-tree/entities/page-tree-node-base.entity.js.map +1 -1
  558. package/lib/page-tree/fullText/createFullTextResolver.d.ts +8 -0
  559. package/lib/page-tree/fullText/createFullTextResolver.d.ts.map +1 -0
  560. package/lib/page-tree/fullText/createFullTextResolver.js +74 -0
  561. package/lib/page-tree/fullText/createFullTextResolver.js.map +1 -0
  562. package/lib/page-tree/fullText/entities/page-tree-node-full-text.object.d.ts +7 -0
  563. package/lib/page-tree/fullText/entities/page-tree-node-full-text.object.d.ts.map +1 -0
  564. package/lib/page-tree/fullText/entities/page-tree-node-full-text.object.js +36 -0
  565. package/lib/page-tree/fullText/entities/page-tree-node-full-text.object.js.map +1 -0
  566. package/lib/page-tree/fullText/page-tree-full-text.service.d.ts +17 -0
  567. package/lib/page-tree/fullText/page-tree-full-text.service.d.ts.map +1 -0
  568. package/lib/page-tree/fullText/page-tree-full-text.service.js +135 -0
  569. package/lib/page-tree/fullText/page-tree-full-text.service.js.map +1 -0
  570. package/lib/page-tree/page-tree-node-document-entity-scope.service.js +7 -19
  571. package/lib/page-tree/page-tree-node-document-entity-scope.service.js.map +1 -1
  572. package/lib/page-tree/page-tree-read-api.d.ts +2 -1
  573. package/lib/page-tree/page-tree-read-api.d.ts.map +1 -1
  574. package/lib/page-tree/page-tree-read-api.js +194 -198
  575. package/lib/page-tree/page-tree-read-api.js.map +1 -1
  576. package/lib/page-tree/page-tree-read-api.service.d.ts +1 -0
  577. package/lib/page-tree/page-tree-read-api.service.d.ts.map +1 -1
  578. package/lib/page-tree/page-tree-read-api.service.js +31 -65
  579. package/lib/page-tree/page-tree-read-api.service.js.map +1 -1
  580. package/lib/page-tree/page-tree.constants.d.ts +1 -0
  581. package/lib/page-tree/page-tree.constants.d.ts.map +1 -1
  582. package/lib/page-tree/page-tree.constants.js +2 -1
  583. package/lib/page-tree/page-tree.constants.js.map +1 -1
  584. package/lib/page-tree/page-tree.module.d.ts +1 -0
  585. package/lib/page-tree/page-tree.module.d.ts.map +1 -1
  586. package/lib/page-tree/page-tree.module.js +23 -13
  587. package/lib/page-tree/page-tree.module.js.map +1 -1
  588. package/lib/page-tree/page-tree.service.d.ts.map +1 -1
  589. package/lib/page-tree/page-tree.service.js +273 -312
  590. package/lib/page-tree/page-tree.service.js.map +1 -1
  591. package/lib/page-tree/site-preview.resolver.js +25 -38
  592. package/lib/page-tree/site-preview.resolver.js.map +1 -1
  593. package/lib/page-tree/types.d.ts +2 -2
  594. package/lib/page-tree/types.d.ts.map +1 -1
  595. package/lib/page-tree/validators/page-exists.validator.js +3 -14
  596. package/lib/page-tree/validators/page-exists.validator.js.map +1 -1
  597. package/lib/redirects/dto/redirect-input.factory.d.ts +2 -2
  598. package/lib/redirects/dto/redirect-input.factory.d.ts.map +1 -1
  599. package/lib/redirects/dto/redirect-input.factory.js +2 -2
  600. package/lib/redirects/dto/redirect-input.factory.js.map +1 -1
  601. package/lib/redirects/dto/redirects.filter.d.ts.map +1 -1
  602. package/lib/redirects/dto/redirects.filter.js +1 -1
  603. package/lib/redirects/dto/redirects.filter.js.map +1 -1
  604. package/lib/redirects/entities/redirect-entity.factory.d.ts +2 -2
  605. package/lib/redirects/entities/redirect-entity.factory.d.ts.map +1 -1
  606. package/lib/redirects/entities/redirect-entity.factory.js +2 -2
  607. package/lib/redirects/entities/redirect-entity.factory.js.map +1 -1
  608. package/lib/redirects/import-redirects.command.js +109 -121
  609. package/lib/redirects/import-redirects.command.js.map +1 -1
  610. package/lib/redirects/redirect-target-url.service.js +17 -28
  611. package/lib/redirects/redirect-target-url.service.js.map +1 -1
  612. package/lib/redirects/redirects.enum.d.ts +1 -1
  613. package/lib/redirects/redirects.enum.d.ts.map +1 -1
  614. package/lib/redirects/redirects.enum.js +7 -7
  615. package/lib/redirects/redirects.enum.js.map +1 -1
  616. package/lib/redirects/redirects.module.js +2 -2
  617. package/lib/redirects/redirects.module.js.map +1 -1
  618. package/lib/redirects/redirects.resolver.js +114 -137
  619. package/lib/redirects/redirects.resolver.js.map +1 -1
  620. package/lib/redirects/redirects.service.d.ts.map +1 -1
  621. package/lib/redirects/redirects.service.js +40 -47
  622. package/lib/redirects/redirects.service.js.map +1 -1
  623. package/lib/redirects/redirects.util.d.ts +2 -2
  624. package/lib/redirects/redirects.util.d.ts.map +1 -1
  625. package/lib/redirects/redirects.util.js +2 -3
  626. package/lib/redirects/redirects.util.js.map +1 -1
  627. package/lib/redirects/validators/isValidRedirectSource.js +8 -19
  628. package/lib/redirects/validators/isValidRedirectSource.js.map +1 -1
  629. package/lib/sentry/sentry.interceptor.js +30 -42
  630. package/lib/sentry/sentry.interceptor.js.map +1 -1
  631. package/lib/sentry/sentry.module.js +15 -36
  632. package/lib/sentry/sentry.module.js.map +1 -1
  633. package/lib/translation/azure-ai-translator.resolver.d.ts +2 -0
  634. package/lib/translation/azure-ai-translator.resolver.d.ts.map +1 -1
  635. package/lib/translation/azure-ai-translator.resolver.js +43 -17
  636. package/lib/translation/azure-ai-translator.resolver.js.map +1 -1
  637. package/lib/translation/dto/azure-ai-translation-batch.input.d.ts +5 -0
  638. package/lib/translation/dto/azure-ai-translation-batch.input.d.ts.map +1 -0
  639. package/lib/translation/dto/azure-ai-translation-batch.input.js +33 -0
  640. package/lib/translation/dto/azure-ai-translation-batch.input.js.map +1 -0
  641. package/lib/tsconfig.build.tsbuildinfo +1 -1
  642. package/lib/user-permissions/access-control.service.d.ts.map +1 -1
  643. package/lib/user-permissions/access-control.service.js +6 -3
  644. package/lib/user-permissions/access-control.service.js.map +1 -1
  645. package/lib/user-permissions/auth/user-permissions.guard.d.ts.map +1 -1
  646. package/lib/user-permissions/auth/user-permissions.guard.js +56 -61
  647. package/lib/user-permissions/auth/user-permissions.guard.js.map +1 -1
  648. package/lib/user-permissions/content-scope.service.d.ts.map +1 -1
  649. package/lib/user-permissions/content-scope.service.js +86 -97
  650. package/lib/user-permissions/content-scope.service.js.map +1 -1
  651. package/lib/user-permissions/decorators/affected-entity.decorator.d.ts +1 -1
  652. package/lib/user-permissions/decorators/affected-entity.decorator.d.ts.map +1 -1
  653. package/lib/user-permissions/decorators/affected-scope.decorator.d.ts +1 -1
  654. package/lib/user-permissions/decorators/affected-scope.decorator.d.ts.map +1 -1
  655. package/lib/user-permissions/decorators/required-permission.decorator.d.ts +1 -1
  656. package/lib/user-permissions/decorators/required-permission.decorator.d.ts.map +1 -1
  657. package/lib/user-permissions/decorators/scoped-entity.decorator.d.ts +2 -2
  658. package/lib/user-permissions/decorators/scoped-entity.decorator.d.ts.map +1 -1
  659. package/lib/user-permissions/user-content-scopes.resolver.js +18 -33
  660. package/lib/user-permissions/user-content-scopes.resolver.js.map +1 -1
  661. package/lib/user-permissions/user-permission.resolver.d.ts.map +1 -1
  662. package/lib/user-permissions/user-permission.resolver.js +42 -66
  663. package/lib/user-permissions/user-permission.resolver.js.map +1 -1
  664. package/lib/user-permissions/user-permissions.module.js +6 -27
  665. package/lib/user-permissions/user-permissions.module.js.map +1 -1
  666. package/lib/user-permissions/user-permissions.public.service.js +6 -21
  667. package/lib/user-permissions/user-permissions.public.service.js.map +1 -1
  668. package/lib/user-permissions/user-permissions.service.d.ts.map +1 -1
  669. package/lib/user-permissions/user-permissions.service.js +168 -191
  670. package/lib/user-permissions/user-permissions.service.js.map +1 -1
  671. package/lib/user-permissions/user-permissions.types.d.ts +6 -6
  672. package/lib/user-permissions/user-permissions.types.d.ts.map +1 -1
  673. package/lib/user-permissions/user-permissions.types.js +3 -1
  674. package/lib/user-permissions/user-permissions.types.js.map +1 -1
  675. package/lib/user-permissions/user.resolver.js +71 -95
  676. package/lib/user-permissions/user.resolver.js.map +1 -1
  677. package/lib/warnings/decorators/create-warnings.decorator.d.ts +3 -3
  678. package/lib/warnings/decorators/create-warnings.decorator.d.ts.map +1 -1
  679. package/lib/warnings/dto/warning-data.d.ts +1 -1
  680. package/lib/warnings/dto/warning-data.d.ts.map +1 -1
  681. package/lib/warnings/warning-checker.command.js +123 -156
  682. package/lib/warnings/warning-checker.command.js.map +1 -1
  683. package/lib/warnings/warning-event-subscriber.js +92 -107
  684. package/lib/warnings/warning-event-subscriber.js.map +1 -1
  685. package/lib/warnings/warning.resolver.js +56 -72
  686. package/lib/warnings/warning.resolver.js.map +1 -1
  687. package/lib/warnings/warning.service.js +19 -32
  688. package/lib/warnings/warning.service.js.map +1 -1
  689. package/package.json +46 -40
@@ -1 +1 @@
1
- {"version":3,"file":"mailer.service.js","sourceRoot":"","sources":["../../src/mailer/mailer.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAAgD;AAChD,8CAAqD;AACrD,sDAAyD;AACzD,2CAA4D;AAC5D,uCAAmC;AACnC,+CAA0C;AAI1C,oEAAyD;AACzD,8EAAoE;AACpE,yDAAoF;AAY7E,IAAM,aAAa,qBAAnB,MAAM,aAAa;IAGtB,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AO,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7D,CAAC;CACJ,CAAA;AA9FY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;IAKJ,WAAA,IAAA,eAAM,EAAC,wCAAqB,CAAC,CAAA;IAC7B,WAAA,IAAA,eAAM,EAAC,0CAAuB,CAAC,CAAA;IAE/B,WAAA,IAAA,yBAAgB,EAAC,6BAAS,CAAC,CAAA;qDADI,oBAAa;QACsB,6BAAgB;GAP9E,aAAa,CA8FzB"}
@@ -11,15 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  var __param = (this && this.__param) || function (paramIndex, decorator) {
12
12
  return function (target, key) { decorator(target, key, paramIndex); }
13
13
  };
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
14
  var SendTestMailCommand_1;
24
15
  Object.defineProperty(exports, "__esModule", { value: true });
25
16
  exports.SendTestMailCommand = void 0;
@@ -39,24 +30,22 @@ let SendTestMailCommand = SendTestMailCommand_1 = class SendTestMailCommand exte
39
30
  parseReceiver(value) {
40
31
  return value;
41
32
  }
42
- run(_arguments_1, _a) {
43
- return __awaiter(this, arguments, void 0, function* (_arguments, { receiver }) {
44
- const defaultReceiver = [
45
- ...(this.mailerConfig.sendAllMailsTo ? this.mailerConfig.sendAllMailsTo : []),
46
- ...(this.mailerConfig.sendAllMailsBcc ? this.mailerConfig.sendAllMailsBcc : []),
47
- ];
48
- if (!receiver && defaultReceiver.length === 0) {
49
- throw new Error(`No default receiver configured in config.mailer.receiver or config.mailer.bccReceiver. Please use --receiver.`);
50
- }
51
- const result = yield this.mailerService.sendMail({
52
- mailTypeForLogging: "mail-server-communication-test",
53
- to: receiver || defaultReceiver,
54
- subject: "Mail-Server communication works",
55
- text: "Lorem ipsum dolor sit amet",
56
- html: `<div>Lorem ipsum dolor sit amet</div>`,
57
- });
58
- this.logger.log(`Test mail sent. Result: ${JSON.stringify(result)}`);
33
+ async run(_arguments, { receiver }) {
34
+ const defaultReceiver = [
35
+ ...(this.mailerConfig.sendAllMailsTo ? this.mailerConfig.sendAllMailsTo : []),
36
+ ...(this.mailerConfig.sendAllMailsBcc ? this.mailerConfig.sendAllMailsBcc : []),
37
+ ];
38
+ if (!receiver && defaultReceiver.length === 0) {
39
+ throw new Error(`No default receiver configured in config.mailer.receiver or config.mailer.bccReceiver. Please use --receiver.`);
40
+ }
41
+ const result = await this.mailerService.sendMail({
42
+ mailTypeForLogging: "mail-server-communication-test",
43
+ to: receiver || defaultReceiver,
44
+ subject: "Mail-Server communication works",
45
+ text: "Lorem ipsum dolor sit amet",
46
+ html: `<div>Lorem ipsum dolor sit amet</div>`,
59
47
  });
48
+ this.logger.log(`Test mail sent. Result: ${JSON.stringify(result)}`);
60
49
  }
61
50
  };
62
51
  exports.SendTestMailCommand = SendTestMailCommand;
@@ -1 +1 @@
1
- {"version":3,"file":"send-test-mail.command.js","sourceRoot":"","sources":["../../src/mailer/send-test-mail.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAAiE;AACjE,2CAAgD;AAChD,mDAAgE;AAEhE,yDAA2D;AAE3D,qDAAiD;AAM1C,IAAM,mBAAmB,2BAAzB,MAAM,mBAAoB,SAAQ,8BAAa;IAGlD,YACqB,GAAa,EACC,YAAiD,EAC/D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C5C,MAAM,IAAI,KAAK,CAAC,+GAA+G,CAAC,CAAC;QACrI,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;YAC7C,kBAAkB,EAAE,gCAAgC;YACpD,EAAE,EAAE,QAAQ,IAAI,eAAe;YAC/B,OAAO,EAAE,iCAAiC;YAC1C,IAAI,EAAE,4BAA4B;YAClC,IAAI,EAAE,uCAAuC;SAChD,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,2BAA2B,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACzE,CAAC;CACJ,CAAA;AArCY,kDAAmB;AAc5B;IAHC,IAAA,uBAAM,EAAC;QACJ,KAAK,EAAE,2BAA2B;KACrC,CAAC;;;;wDAGD;AAGK;IADL,IAAA,2BAAoB,GAAE;;;;8CAkBtB;8BApCQ,mBAAmB;IAJ/B,IAAA,wBAAO,EAAC;QACL,IAAI,EAAE,uBAAuB;QAC7B,WAAW,EAAE,uBAAuB;KACvC,CAAC;IAMO,WAAA,IAAA,eAAM,EAAC,wCAAqB,CAAC,CAAA;qCADR,eAAQ,UAEE,8BAAa;GANxC,mBAAmB,CAqC/B"}
@@ -0,0 +1,4 @@
1
+ import type { WeightedFullTextValue } from "@mikro-orm/postgresql";
2
+ import type { BlockDataInterface } from "../../blocks/block";
3
+ export declare function entityToMikroOrmFullText(fields: WeightedFullTextValue, ...blocks: BlockDataInterface[]): string | WeightedFullTextValue;
4
+ //# sourceMappingURL=entity-to-mikro-orm-full-text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-to-mikro-orm-full-text.d.ts","sourceRoot":"","sources":["../../../src/mikro-orm/helper/entity-to-mikro-orm-full-text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAG7D,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,qBAAqB,EAAE,GAAG,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,GAAG,qBAAqB,CAevI"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.entityToMikroOrmFullText = entityToMikroOrmFullText;
4
+ const get_search_text_1 = require("../../blocks/search/get-search-text");
5
+ function entityToMikroOrmFullText(fields, ...blocks) {
6
+ const result = { ...fields };
7
+ for (const block of blocks) {
8
+ const blockFullText = (0, get_search_text_1.blockToMikroOrmFullText)(block);
9
+ if (typeof blockFullText !== "string") {
10
+ for (const [key, value] of Object.entries(blockFullText)) {
11
+ const weight = key;
12
+ result[weight] = [result[weight], value].filter(Boolean).join(" ");
13
+ }
14
+ }
15
+ }
16
+ if (Object.keys(result).length === 0) {
17
+ return " ";
18
+ }
19
+ return result;
20
+ }
21
+ //# sourceMappingURL=entity-to-mikro-orm-full-text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-to-mikro-orm-full-text.js","sourceRoot":"","sources":["../../../src/mikro-orm/helper/entity-to-mikro-orm-full-text.ts"],"names":[],"mappings":";;AAKA,4DAeC;AAjBD,yEAA8E;AAE9E,SAAgB,wBAAwB,CAAC,MAA6B,EAAE,GAAG,MAA4B;IACnG,MAAM,MAAM,GAA0B,EAAE,GAAG,MAAM,EAAE,CAAC;IACpD,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QACzB,MAAM,aAAa,GAAG,IAAA,yCAAuB,EAAC,KAAK,CAAC,CAAC;QACrD,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;YACpC,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC;gBACvD,MAAM,MAAM,GAAG,GAAkC,CAAC;gBAClD,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACvE,CAAC;QACL,CAAC;IACL,CAAC;IACD,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACnC,OAAO,GAAG,CAAC;IACf,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC"}
@@ -1,22 +1,11 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.Migration20220127085859 = void 0;
13
4
  const migrations_1 = require("@mikro-orm/migrations");
14
5
  class Migration20220127085859 extends migrations_1.Migration {
15
- up() {
16
- return __awaiter(this, void 0, void 0, function* () {
17
- this.addSql('create table "Redirect" ("id" uuid not null, "sourceType" text check ("sourceType" in (\'path\')) not null, "source" text not null, "targetType" text check ("targetType" in (\'intern\', \'extern\')) not null, "targetUrl" text null, "targetPageId" uuid null, "comment" text null, "active" bool not null default true, "generationType" text check ("generationType" in (\'manual\', \'automatic\')) not null, "createdAt" timestamp with time zone not null, "updatedAt" timestamp with time zone not null);');
18
- this.addSql('alter table "Redirect" add constraint "Redirect_pkey" primary key ("id");');
19
- });
6
+ async up() {
7
+ this.addSql('create table "Redirect" ("id" uuid not null, "sourceType" text check ("sourceType" in (\'path\')) not null, "source" text not null, "targetType" text check ("targetType" in (\'intern\', \'extern\')) not null, "targetUrl" text null, "targetPageId" uuid null, "comment" text null, "active" bool not null default true, "generationType" text check ("generationType" in (\'manual\', \'automatic\')) not null, "createdAt" timestamp with time zone not null, "updatedAt" timestamp with time zone not null);');
8
+ this.addSql('alter table "Redirect" add constraint "Redirect_pkey" primary key ("id");');
20
9
  }
21
10
  }
22
11
  exports.Migration20220127085859 = Migration20220127085859;
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20220127085859.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20220127085859.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAC5C,EAAE;;YACJ,IAAI,CAAC,MAAM,CACP,ofAAof,CACvf,CAAC;YACF,IAAI,CAAC,MAAM,CAAC,2EAA2E,CAAC,CAAC;QAC7F,CAAC;KAAA;CACJ;AAPD,0DAOC"}
1
+ {"version":3,"file":"Migration20220127085859.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20220127085859.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CACP,ofAAof,CACvf,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,2EAA2E,CAAC,CAAC;IAC7F,CAAC;CACJ;AAPD,0DAOC"}
@@ -1,22 +1,11 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.Migration20220127085946 = void 0;
13
4
  const migrations_1 = require("@mikro-orm/migrations");
14
5
  class Migration20220127085946 extends migrations_1.Migration {
15
- up() {
16
- return __awaiter(this, void 0, void 0, function* () {
17
- this.addSql('create table "ChangesSinceLastBuild" ("id" uuid not null, "createdAt" timestamp with time zone not null);');
18
- this.addSql('alter table "ChangesSinceLastBuild" add constraint "ChangesSinceLastBuild_pkey" primary key ("id");');
19
- });
6
+ async up() {
7
+ this.addSql('create table "ChangesSinceLastBuild" ("id" uuid not null, "createdAt" timestamp with time zone not null);');
8
+ this.addSql('alter table "ChangesSinceLastBuild" add constraint "ChangesSinceLastBuild_pkey" primary key ("id");');
20
9
  }
21
10
  }
22
11
  exports.Migration20220127085946 = Migration20220127085946;
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20220127085946.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20220127085946.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAC5C,EAAE;;YACJ,IAAI,CAAC,MAAM,CAAC,2GAA2G,CAAC,CAAC;YACzH,IAAI,CAAC,MAAM,CAAC,qGAAqG,CAAC,CAAC;QACvH,CAAC;KAAA;CACJ;AALD,0DAKC"}
1
+ {"version":3,"file":"Migration20220127085946.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20220127085946.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CAAC,2GAA2G,CAAC,CAAC;QACzH,IAAI,CAAC,MAAM,CAAC,qGAAqG,CAAC,CAAC;IACvH,CAAC;CACJ;AALD,0DAKC"}
@@ -1,22 +1,11 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.Migration20220127091538 = void 0;
13
4
  const migrations_1 = require("@mikro-orm/migrations");
14
5
  class Migration20220127091538 extends migrations_1.Migration {
15
- up() {
16
- return __awaiter(this, void 0, void 0, function* () {
17
- this.addSql('create table "PageTreeNode" ("id" uuid not null, "parentId" uuid null, "pos" int4 not null, "name" text not null, "slug" text not null, "visibility" text check ("visibility" in (\'Published\', \'Unpublished\', \'Archived\')) not null default \'Unpublished\', "documentType" text not null, "hideInMenu" bool not null default false);');
18
- this.addSql('alter table "PageTreeNode" add constraint "PageTreeNode_pkey" primary key ("id");');
19
- });
6
+ async up() {
7
+ this.addSql('create table "PageTreeNode" ("id" uuid not null, "parentId" uuid null, "pos" int4 not null, "name" text not null, "slug" text not null, "visibility" text check ("visibility" in (\'Published\', \'Unpublished\', \'Archived\')) not null default \'Unpublished\', "documentType" text not null, "hideInMenu" bool not null default false);');
8
+ this.addSql('alter table "PageTreeNode" add constraint "PageTreeNode_pkey" primary key ("id");');
20
9
  }
21
10
  }
22
11
  exports.Migration20220127091538 = Migration20220127091538;
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20220127091538.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20220127091538.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAC5C,EAAE;;YACJ,IAAI,CAAC,MAAM,CACP,6UAA6U,CAChV,CAAC;YACF,IAAI,CAAC,MAAM,CAAC,mFAAmF,CAAC,CAAC;QACrG,CAAC;KAAA;CACJ;AAPD,0DAOC"}
1
+ {"version":3,"file":"Migration20220127091538.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20220127091538.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CACP,6UAA6U,CAChV,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,mFAAmF,CAAC,CAAC;IACrG,CAAC;CACJ;AAPD,0DAOC"}
@@ -1,25 +1,14 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.Migration20220127091751 = void 0;
13
4
  const migrations_1 = require("@mikro-orm/migrations");
14
5
  class Migration20220127091751 extends migrations_1.Migration {
15
- up() {
16
- return __awaiter(this, void 0, void 0, function* () {
17
- this.addSql('create table "PageTreeNodeDocument" ("id" uuid not null, "pageTreeNodeId" uuid not null, "type" text not null, "documentId" uuid not null);');
18
- this.addSql('alter table "PageTreeNodeDocument" add constraint "PageTreeNodeDocument_pkey" primary key ("id");');
19
- this.addSql('create index "PageTreeNodeDocument_pageTreeNodeId_index" on "PageTreeNodeDocument" ("pageTreeNodeId");');
20
- this.addSql('create index "PageTreeNodeDocument_documentId_index" on "PageTreeNodeDocument" ("documentId");');
21
- this.addSql('alter table "PageTreeNodeDocument" add constraint "PageTreeNodeDocument_pageTreeNodeId_documentId_unique" unique ("pageTreeNodeId", "documentId");');
22
- });
6
+ async up() {
7
+ this.addSql('create table "PageTreeNodeDocument" ("id" uuid not null, "pageTreeNodeId" uuid not null, "type" text not null, "documentId" uuid not null);');
8
+ this.addSql('alter table "PageTreeNodeDocument" add constraint "PageTreeNodeDocument_pkey" primary key ("id");');
9
+ this.addSql('create index "PageTreeNodeDocument_pageTreeNodeId_index" on "PageTreeNodeDocument" ("pageTreeNodeId");');
10
+ this.addSql('create index "PageTreeNodeDocument_documentId_index" on "PageTreeNodeDocument" ("documentId");');
11
+ this.addSql('alter table "PageTreeNodeDocument" add constraint "PageTreeNodeDocument_pageTreeNodeId_documentId_unique" unique ("pageTreeNodeId", "documentId");');
23
12
  }
24
13
  }
25
14
  exports.Migration20220127091751 = Migration20220127091751;
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20220127091751.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20220127091751.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAC5C,EAAE;;YACJ,IAAI,CAAC,MAAM,CACP,6IAA6I,CAChJ,CAAC;YACF,IAAI,CAAC,MAAM,CAAC,mGAAmG,CAAC,CAAC;YACjH,IAAI,CAAC,MAAM,CAAC,wGAAwG,CAAC,CAAC;YACtH,IAAI,CAAC,MAAM,CAAC,gGAAgG,CAAC,CAAC;YAC9G,IAAI,CAAC,MAAM,CACP,oJAAoJ,CACvJ,CAAC;QACN,CAAC;KAAA;CACJ;AAZD,0DAYC"}
1
+ {"version":3,"file":"Migration20220127091751.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20220127091751.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CACP,6IAA6I,CAChJ,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,mGAAmG,CAAC,CAAC;QACjH,IAAI,CAAC,MAAM,CAAC,wGAAwG,CAAC,CAAC;QACtH,IAAI,CAAC,MAAM,CAAC,gGAAgG,CAAC,CAAC;QAC9G,IAAI,CAAC,MAAM,CACP,oJAAoJ,CACvJ,CAAC;IACN,CAAC;CACJ;AAZD,0DAYC"}
@@ -1,34 +1,23 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.Migration20220127111301 = void 0;
13
4
  const migrations_1 = require("@mikro-orm/migrations");
14
5
  class Migration20220127111301 extends migrations_1.Migration {
15
- up() {
16
- return __awaiter(this, void 0, void 0, function* () {
17
- this.addSql('create table "DamFileImage" ("id" uuid not null, "width" integer not null, "height" integer not null, "exif" json null, "dominantColor" text null, "cropArea_focalPoint" text check ("cropArea_focalPoint" in (\'SMART\', \'CENTER\', \'NORTHWEST\', \'NORTHEAST\', \'SOUTHWEST\', \'SOUTHEAST\')) not null, "cropArea_width" double precision null, "cropArea_height" double precision null, "cropArea_x" double precision null, "cropArea_y" double precision null);');
18
- this.addSql('alter table "DamFileImage" add constraint "DamFileImage_pkey" primary key ("id");');
19
- this.addSql('create table "DamFolder" ("id" uuid not null, "name" text not null, "parentId" uuid null, "mpath" uuid array not null, "archived" boolean not null default false, "createdAt" timestamp with time zone not null, "updatedAt" timestamp with time zone not null);');
20
- this.addSql('alter table "DamFolder" add constraint "DamFolder_pkey" primary key ("id");');
21
- this.addSql('create index "DamFolder_mpath_index" on "DamFolder" ("mpath");');
22
- this.addSql('create table "DamFile" ("id" uuid not null, "folderId" uuid null, "name" text not null, "size" bigint not null, "mimetype" text not null, "contentHash" character(32) not null, "title" text null, "altText" text null, "archived" boolean not null default false, "imageId" uuid null, "createdAt" timestamp with time zone not null, "updatedAt" timestamp with time zone not null);');
23
- this.addSql('alter table "DamFile" add constraint "DamFile_pkey" primary key ("id");');
24
- this.addSql('create index "DamFile_contentHash_index" on "DamFile" ("contentHash");');
25
- this.addSql('alter table "DamFile" add constraint "DamFile_imageId_unique" unique ("imageId");');
26
- this.addSql('alter table "DamFolder" add constraint "DamFolder_parentId_foreign" foreign key ("parentId") references "DamFolder" ("id") on update cascade on delete CASCADE;');
27
- this.addSql('alter table "DamFile" add constraint "DamFile_folderId_foreign" foreign key ("folderId") references "DamFolder" ("id") on update cascade on delete set null;');
28
- this.addSql('alter table "DamFile" add constraint "DamFile_imageId_foreign" foreign key ("imageId") references "DamFileImage" ("id") on update cascade on delete cascade;');
29
- this.addSql('create unique index "unique_name_in_root_folder_index" on "DamFile" ("name") where "folderId" IS NULL');
30
- this.addSql('create unique index "unique_name_in_folder_index" on "DamFile" ("folderId", "name") where "folderId" IS NOT NULL');
31
- });
6
+ async up() {
7
+ this.addSql('create table "DamFileImage" ("id" uuid not null, "width" integer not null, "height" integer not null, "exif" json null, "dominantColor" text null, "cropArea_focalPoint" text check ("cropArea_focalPoint" in (\'SMART\', \'CENTER\', \'NORTHWEST\', \'NORTHEAST\', \'SOUTHWEST\', \'SOUTHEAST\')) not null, "cropArea_width" double precision null, "cropArea_height" double precision null, "cropArea_x" double precision null, "cropArea_y" double precision null);');
8
+ this.addSql('alter table "DamFileImage" add constraint "DamFileImage_pkey" primary key ("id");');
9
+ this.addSql('create table "DamFolder" ("id" uuid not null, "name" text not null, "parentId" uuid null, "mpath" uuid array not null, "archived" boolean not null default false, "createdAt" timestamp with time zone not null, "updatedAt" timestamp with time zone not null);');
10
+ this.addSql('alter table "DamFolder" add constraint "DamFolder_pkey" primary key ("id");');
11
+ this.addSql('create index "DamFolder_mpath_index" on "DamFolder" ("mpath");');
12
+ this.addSql('create table "DamFile" ("id" uuid not null, "folderId" uuid null, "name" text not null, "size" bigint not null, "mimetype" text not null, "contentHash" character(32) not null, "title" text null, "altText" text null, "archived" boolean not null default false, "imageId" uuid null, "createdAt" timestamp with time zone not null, "updatedAt" timestamp with time zone not null);');
13
+ this.addSql('alter table "DamFile" add constraint "DamFile_pkey" primary key ("id");');
14
+ this.addSql('create index "DamFile_contentHash_index" on "DamFile" ("contentHash");');
15
+ this.addSql('alter table "DamFile" add constraint "DamFile_imageId_unique" unique ("imageId");');
16
+ this.addSql('alter table "DamFolder" add constraint "DamFolder_parentId_foreign" foreign key ("parentId") references "DamFolder" ("id") on update cascade on delete CASCADE;');
17
+ this.addSql('alter table "DamFile" add constraint "DamFile_folderId_foreign" foreign key ("folderId") references "DamFolder" ("id") on update cascade on delete set null;');
18
+ this.addSql('alter table "DamFile" add constraint "DamFile_imageId_foreign" foreign key ("imageId") references "DamFileImage" ("id") on update cascade on delete cascade;');
19
+ this.addSql('create unique index "unique_name_in_root_folder_index" on "DamFile" ("name") where "folderId" IS NULL');
20
+ this.addSql('create unique index "unique_name_in_folder_index" on "DamFile" ("folderId", "name") where "folderId" IS NOT NULL');
32
21
  }
33
22
  }
34
23
  exports.Migration20220127111301 = Migration20220127111301;
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20220127111301.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20220127111301.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAC5C,EAAE;;YACJ,IAAI,CAAC,MAAM,CACP,wcAAwc,CAC3c,CAAC;YACF,IAAI,CAAC,MAAM,CAAC,mFAAmF,CAAC,CAAC;YAEjG,IAAI,CAAC,MAAM,CACP,kQAAkQ,CACrQ,CAAC;YACF,IAAI,CAAC,MAAM,CAAC,6EAA6E,CAAC,CAAC;YAC3F,IAAI,CAAC,MAAM,CAAC,gEAAgE,CAAC,CAAC;YAE9E,IAAI,CAAC,MAAM,CACP,wXAAwX,CAC3X,CAAC;YACF,IAAI,CAAC,MAAM,CAAC,yEAAyE,CAAC,CAAC;YACvF,IAAI,CAAC,MAAM,CAAC,wEAAwE,CAAC,CAAC;YACtF,IAAI,CAAC,MAAM,CAAC,mFAAmF,CAAC,CAAC;YAEjG,IAAI,CAAC,MAAM,CACP,iKAAiK,CACpK,CAAC;YAEF,IAAI,CAAC,MAAM,CACP,8JAA8J,CACjK,CAAC;YACF,IAAI,CAAC,MAAM,CACP,8JAA8J,CACjK,CAAC;YAEF,IAAI,CAAC,MAAM,CAAC,uGAAuG,CAAC,CAAC;YACrH,IAAI,CAAC,MAAM,CAAC,kHAAkH,CAAC,CAAC;QACpI,CAAC;KAAA;CACJ;AAlCD,0DAkCC"}
1
+ {"version":3,"file":"Migration20220127111301.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20220127111301.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CACP,wcAAwc,CAC3c,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,mFAAmF,CAAC,CAAC;QAEjG,IAAI,CAAC,MAAM,CACP,kQAAkQ,CACrQ,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,6EAA6E,CAAC,CAAC;QAC3F,IAAI,CAAC,MAAM,CAAC,gEAAgE,CAAC,CAAC;QAE9E,IAAI,CAAC,MAAM,CACP,wXAAwX,CAC3X,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,yEAAyE,CAAC,CAAC;QACvF,IAAI,CAAC,MAAM,CAAC,wEAAwE,CAAC,CAAC;QACtF,IAAI,CAAC,MAAM,CAAC,mFAAmF,CAAC,CAAC;QAEjG,IAAI,CAAC,MAAM,CACP,iKAAiK,CACpK,CAAC;QAEF,IAAI,CAAC,MAAM,CACP,8JAA8J,CACjK,CAAC;QACF,IAAI,CAAC,MAAM,CACP,8JAA8J,CACjK,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,uGAAuG,CAAC,CAAC;QACrH,IAAI,CAAC,MAAM,CAAC,kHAAkH,CAAC,CAAC;IACpI,CAAC;CACJ;AAlCD,0DAkCC"}
@@ -1,23 +1,12 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.Migration20220127142112 = void 0;
13
4
  const migrations_1 = require("@mikro-orm/migrations");
14
5
  class Migration20220127142112 extends migrations_1.Migration {
15
- up() {
16
- return __awaiter(this, void 0, void 0, function* () {
17
- this.addSql('create table "PublicUpload" ("id" uuid not null, "name" text not null, "size" bigint not null, "mimetype" text not null, "contentHash" character(32) not null, "createdAt" timestamp with time zone not null, "updatedAt" timestamp with time zone not null);');
18
- this.addSql('alter table "PublicUpload" add constraint "PublicUpload_pkey" primary key ("id");');
19
- this.addSql('create index "PublicUpload_contentHash_index" on "PublicUpload" ("contentHash");');
20
- });
6
+ async up() {
7
+ this.addSql('create table "PublicUpload" ("id" uuid not null, "name" text not null, "size" bigint not null, "mimetype" text not null, "contentHash" character(32) not null, "createdAt" timestamp with time zone not null, "updatedAt" timestamp with time zone not null);');
8
+ this.addSql('alter table "PublicUpload" add constraint "PublicUpload_pkey" primary key ("id");');
9
+ this.addSql('create index "PublicUpload_contentHash_index" on "PublicUpload" ("contentHash");');
21
10
  }
22
11
  }
23
12
  exports.Migration20220127142112 = Migration20220127142112;
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20220127142112.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20220127142112.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAC5C,EAAE;;YACJ,IAAI,CAAC,MAAM,CACP,+PAA+P,CAClQ,CAAC;YACF,IAAI,CAAC,MAAM,CAAC,mFAAmF,CAAC,CAAC;YACjG,IAAI,CAAC,MAAM,CAAC,kFAAkF,CAAC,CAAC;QACpG,CAAC;KAAA;CACJ;AARD,0DAQC"}
1
+ {"version":3,"file":"Migration20220127142112.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20220127142112.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CACP,+PAA+P,CAClQ,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,mFAAmF,CAAC,CAAC;QACjG,IAAI,CAAC,MAAM,CAAC,kFAAkF,CAAC,CAAC;IACpG,CAAC;CACJ;AARD,0DAQC"}
@@ -1,42 +1,29 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.Migration20220620124134 = void 0;
13
4
  const migrations_1 = require("@mikro-orm/migrations");
14
5
  class Migration20220620124134 extends migrations_1.Migration {
15
- up() {
16
- return __awaiter(this, void 0, void 0, function* () {
17
- this.addSql('alter table "Redirect" add column "target" json;');
18
- const rows = (yield this.execute('select * from "Redirect"'));
19
- for (const row of rows) {
20
- if (row.targetType === "intern") {
21
- this.addSql(`update "Redirect" set "target" = '{ "data": { "attachedBlocks": [ { "type": "internal", "props": { ${row.targetPageId ? `"targetPageId": "${row.targetPageId}"` : ""} } } ], "activeType": "internal" }, "index": [ { "blockname": "Link", "jsonPath": "root", "visible": true }, { "blockname": "InternalLink", "jsonPath": "root.attachedBlocks.0.props", "visible": true } ] }' where "id" = '${row.id}';`);
22
- }
23
- else {
24
- this.addSql(`update "Redirect" set "target" = '{ "data": { "attachedBlocks": [ { "type": "external", "props": { ${row.targetUrl ? `"targetUrl": "${row.targetUrl}", ` : ""}"openInNewWindow": false } } ], "activeType": "external" }, "index": [ { "blockname": "Link", "jsonPath": "root", "visible": true }, { "blockname": "ExternalLink", "jsonPath": "root.attachedBlocks.0.props", "visible": true } ] }' where "id" = '${row.id}';`);
25
- }
6
+ async up() {
7
+ this.addSql('alter table "Redirect" add column "target" json;');
8
+ const rows = (await this.execute('select * from "Redirect"'));
9
+ for (const row of rows) {
10
+ if (row.targetType === "intern") {
11
+ this.addSql(`update "Redirect" set "target" = '{ "data": { "attachedBlocks": [ { "type": "internal", "props": { ${row.targetPageId ? `"targetPageId": "${row.targetPageId}"` : ""} } } ], "activeType": "internal" }, "index": [ { "blockname": "Link", "jsonPath": "root", "visible": true }, { "blockname": "InternalLink", "jsonPath": "root.attachedBlocks.0.props", "visible": true } ] }' where "id" = '${row.id}';`);
26
12
  }
27
- this.addSql('alter table "Redirect" alter column "target" set not null;');
28
- this.addSql('alter table "Redirect" drop constraint "Redirect_targetType_check";');
29
- this.addSql('alter table "Redirect" drop column "targetType";');
30
- this.addSql('alter table "Redirect" drop column "targetUrl";');
31
- this.addSql('alter table "Redirect" drop column "targetPageId";');
32
- });
13
+ else {
14
+ this.addSql(`update "Redirect" set "target" = '{ "data": { "attachedBlocks": [ { "type": "external", "props": { ${row.targetUrl ? `"targetUrl": "${row.targetUrl}", ` : ""}"openInNewWindow": false } } ], "activeType": "external" }, "index": [ { "blockname": "Link", "jsonPath": "root", "visible": true }, { "blockname": "ExternalLink", "jsonPath": "root.attachedBlocks.0.props", "visible": true } ] }' where "id" = '${row.id}';`);
15
+ }
16
+ }
17
+ this.addSql('alter table "Redirect" alter column "target" set not null;');
18
+ this.addSql('alter table "Redirect" drop constraint "Redirect_targetType_check";');
19
+ this.addSql('alter table "Redirect" drop column "targetType";');
20
+ this.addSql('alter table "Redirect" drop column "targetUrl";');
21
+ this.addSql('alter table "Redirect" drop column "targetPageId";');
33
22
  }
34
- down() {
35
- return __awaiter(this, void 0, void 0, function* () {
36
- this.addSql('alter table "Redirect" add column "targetType" text not null default null, add column "targetUrl" text null default null, add column "targetPageId" uuid null default null;');
37
- this.addSql('alter table "Redirect" drop column "target";');
38
- this.addSql('alter table "Redirect" add constraint "Redirect_targetType_check" check("targetType" = ANY (ARRAY[\'intern\'::text, \'extern\'::text]));');
39
- });
23
+ async down() {
24
+ this.addSql('alter table "Redirect" add column "targetType" text not null default null, add column "targetUrl" text null default null, add column "targetPageId" uuid null default null;');
25
+ this.addSql('alter table "Redirect" drop column "target";');
26
+ this.addSql('alter table "Redirect" add constraint "Redirect_targetType_check" check("targetType" = ANY (ARRAY[\'intern\'::text, \'extern\'::text]));');
40
27
  }
41
28
  }
42
29
  exports.Migration20220620124134 = Migration20220620124134;
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20220620124134.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20220620124134.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAC5C,EAAE;;YACJ,IAAI,CAAC,MAAM,CAAC,kDAAkD,CAAC,CAAC;YAEhE,MAAM,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAE3D,CAAC;YAEF,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;gBACrB,IAAI,GAAG,CAAC,UAAU,KAAK,QAAQ,EAAE,CAAC;oBAC9B,IAAI,CAAC,MAAM,CACP,sGACI,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,oBAAoB,GAAG,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC,EACjE,+NACI,GAAG,CAAC,EACR,IAAI,CACP,CAAC;gBACN,CAAC;qBAAM,CAAC;oBACJ,IAAI,CAAC,MAAM,CACP,sGACI,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,iBAAiB,GAAG,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC,EAC1D,uPACI,GAAG,CAAC,EACR,IAAI,CACP,CAAC;gBACN,CAAC;YACL,CAAC;YAED,IAAI,CAAC,MAAM,CAAC,4DAA4D,CAAC,CAAC;YAE1E,IAAI,CAAC,MAAM,CAAC,qEAAqE,CAAC,CAAC;YACnF,IAAI,CAAC,MAAM,CAAC,kDAAkD,CAAC,CAAC;YAChE,IAAI,CAAC,MAAM,CAAC,iDAAiD,CAAC,CAAC;YAC/D,IAAI,CAAC,MAAM,CAAC,oDAAoD,CAAC,CAAC;QACtE,CAAC;KAAA;IAEK,IAAI;;YACN,IAAI,CAAC,MAAM,CACP,6KAA6K,CAChL,CAAC;YACF,IAAI,CAAC,MAAM,CAAC,8CAA8C,CAAC,CAAC;YAC5D,IAAI,CAAC,MAAM,CACP,0IAA0I,CAC7I,CAAC;QACN,CAAC;KAAA;CACJ;AA7CD,0DA6CC"}
1
+ {"version":3,"file":"Migration20220620124134.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20220620124134.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CAAC,kDAAkD,CAAC,CAAC;QAEhE,MAAM,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAE3D,CAAC;QAEF,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACrB,IAAI,GAAG,CAAC,UAAU,KAAK,QAAQ,EAAE,CAAC;gBAC9B,IAAI,CAAC,MAAM,CACP,sGACI,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,oBAAoB,GAAG,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC,EACjE,+NACI,GAAG,CAAC,EACR,IAAI,CACP,CAAC;YACN,CAAC;iBAAM,CAAC;gBACJ,IAAI,CAAC,MAAM,CACP,sGACI,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,iBAAiB,GAAG,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC,EAC1D,uPACI,GAAG,CAAC,EACR,IAAI,CACP,CAAC;YACN,CAAC;QACL,CAAC;QAED,IAAI,CAAC,MAAM,CAAC,4DAA4D,CAAC,CAAC;QAE1E,IAAI,CAAC,MAAM,CAAC,qEAAqE,CAAC,CAAC;QACnF,IAAI,CAAC,MAAM,CAAC,kDAAkD,CAAC,CAAC;QAChE,IAAI,CAAC,MAAM,CAAC,iDAAiD,CAAC,CAAC;QAC/D,IAAI,CAAC,MAAM,CAAC,oDAAoD,CAAC,CAAC;IACtE,CAAC;IAED,KAAK,CAAC,IAAI;QACN,IAAI,CAAC,MAAM,CACP,6KAA6K,CAChL,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,8CAA8C,CAAC,CAAC;QAC5D,IAAI,CAAC,MAAM,CACP,0IAA0I,CAC7I,CAAC;IACN,CAAC;CACJ;AA7CD,0DA6CC"}
@@ -1,30 +1,17 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.Migration20220905145606 = void 0;
13
4
  const migrations_1 = require("@mikro-orm/migrations");
14
5
  class Migration20220905145606 extends migrations_1.Migration {
15
- up() {
16
- return __awaiter(this, void 0, void 0, function* () {
17
- this.addSql('alter table "DamFile" add column "license_type" text check ("license_type" in (\'ROYALTY_FREE\', \'RIGHTS_MANAGED\', \'SUBSCRIPTION\', \'MICRO\')) null, add column "license_details" text null, add column "license_author" text null, add column "license_durationFrom" timestamp with time zone null, add column "license_durationTo" timestamp with time zone null;');
18
- });
6
+ async up() {
7
+ this.addSql('alter table "DamFile" add column "license_type" text check ("license_type" in (\'ROYALTY_FREE\', \'RIGHTS_MANAGED\', \'SUBSCRIPTION\', \'MICRO\')) null, add column "license_details" text null, add column "license_author" text null, add column "license_durationFrom" timestamp with time zone null, add column "license_durationTo" timestamp with time zone null;');
19
8
  }
20
- down() {
21
- return __awaiter(this, void 0, void 0, function* () {
22
- this.addSql('alter table "DamFile" drop column "license_type";');
23
- this.addSql('alter table "DamFile" drop column "license_details";');
24
- this.addSql('alter table "DamFile" drop column "license_author";');
25
- this.addSql('alter table "DamFile" drop column "license_durationFrom";');
26
- this.addSql('alter table "DamFile" drop column "license_durationTo";');
27
- });
9
+ async down() {
10
+ this.addSql('alter table "DamFile" drop column "license_type";');
11
+ this.addSql('alter table "DamFile" drop column "license_details";');
12
+ this.addSql('alter table "DamFile" drop column "license_author";');
13
+ this.addSql('alter table "DamFile" drop column "license_durationFrom";');
14
+ this.addSql('alter table "DamFile" drop column "license_durationTo";');
28
15
  }
29
16
  }
30
17
  exports.Migration20220905145606 = Migration20220905145606;
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20220905145606.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20220905145606.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAC5C,EAAE;;YACJ,IAAI,CAAC,MAAM,CACP,yWAAyW,CAC5W,CAAC;QACN,CAAC;KAAA;IAEK,IAAI;;YACN,IAAI,CAAC,MAAM,CAAC,mDAAmD,CAAC,CAAC;YACjE,IAAI,CAAC,MAAM,CAAC,sDAAsD,CAAC,CAAC;YACpE,IAAI,CAAC,MAAM,CAAC,qDAAqD,CAAC,CAAC;YACnE,IAAI,CAAC,MAAM,CAAC,2DAA2D,CAAC,CAAC;YACzE,IAAI,CAAC,MAAM,CAAC,yDAAyD,CAAC,CAAC;QAC3E,CAAC;KAAA;CACJ;AAdD,0DAcC"}
1
+ {"version":3,"file":"Migration20220905145606.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20220905145606.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CACP,yWAAyW,CAC5W,CAAC;IACN,CAAC;IAED,KAAK,CAAC,IAAI;QACN,IAAI,CAAC,MAAM,CAAC,mDAAmD,CAAC,CAAC;QACjE,IAAI,CAAC,MAAM,CAAC,sDAAsD,CAAC,CAAC;QACpE,IAAI,CAAC,MAAM,CAAC,qDAAqD,CAAC,CAAC;QACnE,IAAI,CAAC,MAAM,CAAC,2DAA2D,CAAC,CAAC;QACzE,IAAI,CAAC,MAAM,CAAC,yDAAyD,CAAC,CAAC;IAC3E,CAAC;CACJ;AAdD,0DAcC"}
@@ -1,22 +1,11 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.Migration20230209111818 = void 0;
13
4
  const migrations_1 = require("@mikro-orm/migrations");
14
5
  class Migration20230209111818 extends migrations_1.Migration {
15
- up() {
16
- return __awaiter(this, void 0, void 0, function* () {
17
- this.addSql('drop index if exists "unique_name_in_root_folder_index";');
18
- this.addSql('drop index if exists "unique_name_in_folder_index";');
19
- });
6
+ async up() {
7
+ this.addSql('drop index if exists "unique_name_in_root_folder_index";');
8
+ this.addSql('drop index if exists "unique_name_in_folder_index";');
20
9
  }
21
10
  }
22
11
  exports.Migration20230209111818 = Migration20230209111818;
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20230209111818.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20230209111818.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAC5C,EAAE;;YACJ,IAAI,CAAC,MAAM,CAAC,0DAA0D,CAAC,CAAC;YACxE,IAAI,CAAC,MAAM,CAAC,qDAAqD,CAAC,CAAC;QACvE,CAAC;KAAA;CACJ;AALD,0DAKC"}
1
+ {"version":3,"file":"Migration20230209111818.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20230209111818.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CAAC,0DAA0D,CAAC,CAAC;QACxE,IAAI,CAAC,MAAM,CAAC,qDAAqD,CAAC,CAAC;IACvE,CAAC;CACJ;AALD,0DAKC"}
@@ -1,28 +1,15 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.Migration20230302145445 = void 0;
13
4
  const migrations_1 = require("@mikro-orm/migrations");
14
5
  class Migration20230302145445 extends migrations_1.Migration {
15
- up() {
16
- return __awaiter(this, void 0, void 0, function* () {
17
- this.addSql('alter table "PageTreeNode" add column "updatedAt" timestamp with time zone;');
18
- this.addSql('update "PageTreeNode" SET "updatedAt"=CURRENT_DATE');
19
- this.addSql('alter table "PageTreeNode" alter column "updatedAt" set not null');
20
- });
6
+ async up() {
7
+ this.addSql('alter table "PageTreeNode" add column "updatedAt" timestamp with time zone;');
8
+ this.addSql('update "PageTreeNode" SET "updatedAt"=CURRENT_DATE');
9
+ this.addSql('alter table "PageTreeNode" alter column "updatedAt" set not null');
21
10
  }
22
- down() {
23
- return __awaiter(this, void 0, void 0, function* () {
24
- this.addSql('alter table "PageTreeNode" drop column "updatedAt";');
25
- });
11
+ async down() {
12
+ this.addSql('alter table "PageTreeNode" drop column "updatedAt";');
26
13
  }
27
14
  }
28
15
  exports.Migration20230302145445 = Migration20230302145445;
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20230302145445.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20230302145445.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAC5C,EAAE;;YACJ,IAAI,CAAC,MAAM,CAAC,6EAA6E,CAAC,CAAC;YAC3F,IAAI,CAAC,MAAM,CAAC,oDAAoD,CAAC,CAAC;YAClE,IAAI,CAAC,MAAM,CAAC,kEAAkE,CAAC,CAAC;QACpF,CAAC;KAAA;IAEK,IAAI;;YACN,IAAI,CAAC,MAAM,CAAC,qDAAqD,CAAC,CAAC;QACvE,CAAC;KAAA;CACJ;AAVD,0DAUC"}
1
+ {"version":3,"file":"Migration20230302145445.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20230302145445.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CAAC,6EAA6E,CAAC,CAAC;QAC3F,IAAI,CAAC,MAAM,CAAC,oDAAoD,CAAC,CAAC;QAClE,IAAI,CAAC,MAAM,CAAC,kEAAkE,CAAC,CAAC;IACpF,CAAC;IAED,KAAK,CAAC,IAAI;QACN,IAAI,CAAC,MAAM,CAAC,qDAAqD,CAAC,CAAC;IACvE,CAAC;CACJ;AAVD,0DAUC"}