sitero-server 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/dist/export/index.js +10 -0
  2. package/dist/src/application/resources/file/operations/queries/find-detail/cache.js +4 -1
  3. package/dist/src/application/resources/file/operations/queries/find-list-cards/cache.js +1 -0
  4. package/dist/src/application/resources/file/operations/queries/find-relations/cache.js +4 -1
  5. package/dist/src/application/resources/page/collect-page-file-ids.js +14 -0
  6. package/dist/src/application/resources/page/errors/codes.js +7 -0
  7. package/dist/src/application/resources/page/errors/operation-errors.js +23 -0
  8. package/dist/src/application/resources/page/operations/commands/update/cache.js +23 -0
  9. package/dist/src/application/resources/page/operations/commands/update/page-update-command.js +36 -0
  10. package/dist/src/application/resources/page/operations/commands/update/validation/schema.js +104 -0
  11. package/dist/src/application/resources/page/operations/commands/update/validation/validate-input.js +25 -0
  12. package/dist/src/application/resources/page/operations/queries/find-detail/cache.js +28 -0
  13. package/dist/src/application/resources/page/operations/queries/find-detail/page-find-detail-query.js +35 -0
  14. package/dist/src/application/resources/page/operations/queries/find-detail/validation/schema.js +9 -0
  15. package/dist/src/application/resources/page/operations/queries/find-many/cache.js +17 -0
  16. package/dist/src/application/resources/page/operations/queries/find-many/page-find-many-query.js +35 -0
  17. package/dist/src/application/resources/page/operations/queries/find-many/validation/schema.js +8 -0
  18. package/dist/src/application/resources/page/operations/queries/find-many/validation/validate-input.js +12 -0
  19. package/dist/src/application/resources/post/assert-post-write-relations-exist.js +0 -1
  20. package/dist/src/application/resources/post/collect-post-reference-ids.js +1 -3
  21. package/dist/src/application/resources/post/create-post-list-card-cache-tags.js +0 -4
  22. package/dist/src/application/resources/post/errors/codes.js +6 -0
  23. package/dist/src/application/resources/post/operations/commands/create/cache.js +0 -1
  24. package/dist/src/application/resources/post/operations/commands/create/post-create-command.js +2 -0
  25. package/dist/src/application/resources/post/operations/commands/create/validation/schema.js +1 -1
  26. package/dist/src/application/resources/post/operations/commands/create/validation/validate-input.js +8 -0
  27. package/dist/src/application/resources/post/operations/commands/delete/cache.js +0 -1
  28. package/dist/src/application/resources/post/operations/commands/lifecycle.js +32 -0
  29. package/dist/src/application/resources/post/operations/commands/update/cache.js +0 -2
  30. package/dist/src/application/resources/post/operations/commands/update/post-update-command.js +2 -0
  31. package/dist/src/application/resources/post/operations/commands/update/validation/schema.js +1 -1
  32. package/dist/src/application/resources/post/operations/commands/update/validation/validate-input.js +8 -0
  33. package/dist/src/application/resources/post/operations/queries/find-detail/cache.js +2 -2
  34. package/dist/src/application/resources/post/operations/queries/find-detail/validation/schema.js +9 -0
  35. package/dist/src/application/resources/post/operations/queries/find-detail/validation/validate-input.js +2 -0
  36. package/dist/src/application/resources/post/operations/queries/find-list-cards/cache.js +3 -1
  37. package/dist/src/application/resources/post/operations/queries/find-list-cards/validation/schema.js +3 -1
  38. package/dist/src/application/resources/post/operations/queries/find-many/cache.js +3 -1
  39. package/dist/src/application/resources/post/operations/queries/find-many/validation/schema.js +3 -1
  40. package/dist/src/application/resources/post/operations/queries/find-relations/cache.js +1 -0
  41. package/dist/src/application/resources/post/validate-topic.js +35 -0
  42. package/dist/src/application/resources/seo-metadata/errors/codes.js +2 -0
  43. package/dist/src/application/resources/seo-metadata/errors/operation-errors.js +13 -1
  44. package/dist/src/application/resources/seo-metadata/operations/commands/upsert/cache.js +8 -2
  45. package/dist/src/application/resources/seo-metadata/operations/commands/upsert/seo-metadata-upsert-command.js +7 -2
  46. package/dist/src/application/resources/seo-metadata/operations/commands/upsert/validation/schema.js +9 -2
  47. package/dist/src/application/resources/seo-metadata/operations/commands/upsert/validation/validate-input.js +13 -7
  48. package/dist/src/composition/create-sitero-server.js +38 -1
  49. package/dist/types/src/application/conventions/cache/constants.d.ts +2 -1
  50. package/dist/types/src/application/conventions/cache/constants.d.ts.map +1 -1
  51. package/dist/types/src/application/resources/file/operations/queries/find-detail/cache.d.ts.map +1 -1
  52. package/dist/types/src/application/resources/file/operations/queries/find-list-cards/cache.d.ts.map +1 -1
  53. package/dist/types/src/application/resources/file/operations/queries/find-relations/cache.d.ts.map +1 -1
  54. package/dist/types/src/application/resources/file/projections/detail.d.ts +2 -1
  55. package/dist/types/src/application/resources/file/projections/detail.d.ts.map +1 -1
  56. package/dist/types/src/application/resources/file/projections/relations.d.ts +1 -0
  57. package/dist/types/src/application/resources/file/projections/relations.d.ts.map +1 -1
  58. package/dist/types/src/application/resources/page/collect-page-file-ids.d.ts +6 -0
  59. package/dist/types/src/application/resources/page/collect-page-file-ids.d.ts.map +1 -0
  60. package/dist/types/src/application/resources/page/errors/codes.d.ts +7 -0
  61. package/dist/types/src/application/resources/page/errors/codes.d.ts.map +1 -0
  62. package/dist/types/src/application/resources/page/errors/index.d.ts +3 -0
  63. package/dist/types/src/application/resources/page/errors/index.d.ts.map +1 -0
  64. package/dist/types/src/application/resources/page/errors/operation-errors.d.ts +11 -0
  65. package/dist/types/src/application/resources/page/errors/operation-errors.d.ts.map +1 -0
  66. package/dist/types/src/application/resources/page/index.d.ts +5 -0
  67. package/dist/types/src/application/resources/page/index.d.ts.map +1 -0
  68. package/dist/types/src/application/resources/page/operations/commands/index.d.ts +2 -0
  69. package/dist/types/src/application/resources/page/operations/commands/index.d.ts.map +1 -0
  70. package/dist/types/src/application/resources/page/operations/commands/update/cache.d.ts +4 -0
  71. package/dist/types/src/application/resources/page/operations/commands/update/cache.d.ts.map +1 -0
  72. package/dist/types/src/application/resources/page/operations/commands/update/index.d.ts +3 -0
  73. package/dist/types/src/application/resources/page/operations/commands/update/index.d.ts.map +1 -0
  74. package/dist/types/src/application/resources/page/operations/commands/update/page-update-command.d.ts +11 -0
  75. package/dist/types/src/application/resources/page/operations/commands/update/page-update-command.d.ts.map +1 -0
  76. package/dist/types/src/application/resources/page/operations/commands/update/types.d.ts +15 -0
  77. package/dist/types/src/application/resources/page/operations/commands/update/types.d.ts.map +1 -0
  78. package/dist/types/src/application/resources/page/operations/commands/update/validation/schema.d.ts +98 -0
  79. package/dist/types/src/application/resources/page/operations/commands/update/validation/schema.d.ts.map +1 -0
  80. package/dist/types/src/application/resources/page/operations/commands/update/validation/validate-input.d.ts +9 -0
  81. package/dist/types/src/application/resources/page/operations/commands/update/validation/validate-input.d.ts.map +1 -0
  82. package/dist/types/src/application/resources/page/operations/index.d.ts +3 -0
  83. package/dist/types/src/application/resources/page/operations/index.d.ts.map +1 -0
  84. package/dist/types/src/application/resources/page/operations/queries/find-detail/cache.d.ts +5 -0
  85. package/dist/types/src/application/resources/page/operations/queries/find-detail/cache.d.ts.map +1 -0
  86. package/dist/types/src/application/resources/page/operations/queries/find-detail/index.d.ts +3 -0
  87. package/dist/types/src/application/resources/page/operations/queries/find-detail/index.d.ts.map +1 -0
  88. package/dist/types/src/application/resources/page/operations/queries/find-detail/page-find-detail-query.d.ts +6 -0
  89. package/dist/types/src/application/resources/page/operations/queries/find-detail/page-find-detail-query.d.ts.map +1 -0
  90. package/dist/types/src/application/resources/page/operations/queries/find-detail/types.d.ts +11 -0
  91. package/dist/types/src/application/resources/page/operations/queries/find-detail/types.d.ts.map +1 -0
  92. package/dist/types/src/application/resources/page/operations/queries/find-detail/validation/schema.d.ts +7 -0
  93. package/dist/types/src/application/resources/page/operations/queries/find-detail/validation/schema.d.ts.map +1 -0
  94. package/dist/types/src/application/resources/page/operations/queries/find-many/cache.d.ts +4 -0
  95. package/dist/types/src/application/resources/page/operations/queries/find-many/cache.d.ts.map +1 -0
  96. package/dist/types/src/application/resources/page/operations/queries/find-many/index.d.ts +3 -0
  97. package/dist/types/src/application/resources/page/operations/queries/find-many/index.d.ts.map +1 -0
  98. package/dist/types/src/application/resources/page/operations/queries/find-many/page-find-many-query.d.ts +8 -0
  99. package/dist/types/src/application/resources/page/operations/queries/find-many/page-find-many-query.d.ts.map +1 -0
  100. package/dist/types/src/application/resources/page/operations/queries/find-many/types.d.ts +9 -0
  101. package/dist/types/src/application/resources/page/operations/queries/find-many/types.d.ts.map +1 -0
  102. package/dist/types/src/application/resources/page/operations/queries/find-many/validation/schema.d.ts +5 -0
  103. package/dist/types/src/application/resources/page/operations/queries/find-many/validation/schema.d.ts.map +1 -0
  104. package/dist/types/src/application/resources/page/operations/queries/find-many/validation/validate-input.d.ts +3 -0
  105. package/dist/types/src/application/resources/page/operations/queries/find-many/validation/validate-input.d.ts.map +1 -0
  106. package/dist/types/src/application/resources/page/operations/queries/index.d.ts +3 -0
  107. package/dist/types/src/application/resources/page/operations/queries/index.d.ts.map +1 -0
  108. package/dist/types/src/application/resources/page/ports.d.ts +38 -0
  109. package/dist/types/src/application/resources/page/ports.d.ts.map +1 -0
  110. package/dist/types/src/application/resources/page/projections/detail.d.ts +14 -0
  111. package/dist/types/src/application/resources/page/projections/detail.d.ts.map +1 -0
  112. package/dist/types/src/application/resources/page/projections/index.d.ts +2 -0
  113. package/dist/types/src/application/resources/page/projections/index.d.ts.map +1 -0
  114. package/dist/types/src/application/resources/post/assert-post-write-relations-exist.d.ts.map +1 -1
  115. package/dist/types/src/application/resources/post/collect-post-reference-ids.d.ts.map +1 -1
  116. package/dist/types/src/application/resources/post/create-post-list-card-cache-tags.d.ts.map +1 -1
  117. package/dist/types/src/application/resources/post/errors/codes.d.ts +6 -0
  118. package/dist/types/src/application/resources/post/errors/codes.d.ts.map +1 -1
  119. package/dist/types/src/application/resources/post/index.d.ts +2 -1
  120. package/dist/types/src/application/resources/post/index.d.ts.map +1 -1
  121. package/dist/types/src/application/resources/post/operations/commands/create/cache.d.ts.map +1 -1
  122. package/dist/types/src/application/resources/post/operations/commands/create/post-create-command.d.ts +2 -0
  123. package/dist/types/src/application/resources/post/operations/commands/create/post-create-command.d.ts.map +1 -1
  124. package/dist/types/src/application/resources/post/operations/commands/create/validation/schema.d.ts +1 -5
  125. package/dist/types/src/application/resources/post/operations/commands/create/validation/schema.d.ts.map +1 -1
  126. package/dist/types/src/application/resources/post/operations/commands/create/validation/validate-input.d.ts +2 -0
  127. package/dist/types/src/application/resources/post/operations/commands/create/validation/validate-input.d.ts.map +1 -1
  128. package/dist/types/src/application/resources/post/operations/commands/delete/cache.d.ts.map +1 -1
  129. package/dist/types/src/application/resources/post/operations/commands/index.d.ts +1 -0
  130. package/dist/types/src/application/resources/post/operations/commands/index.d.ts.map +1 -1
  131. package/dist/types/src/application/resources/post/operations/commands/lifecycle.d.ts +11 -0
  132. package/dist/types/src/application/resources/post/operations/commands/lifecycle.d.ts.map +1 -0
  133. package/dist/types/src/application/resources/post/operations/commands/update/cache.d.ts.map +1 -1
  134. package/dist/types/src/application/resources/post/operations/commands/update/post-update-command.d.ts +2 -0
  135. package/dist/types/src/application/resources/post/operations/commands/update/post-update-command.d.ts.map +1 -1
  136. package/dist/types/src/application/resources/post/operations/commands/update/validation/schema.d.ts +0 -3
  137. package/dist/types/src/application/resources/post/operations/commands/update/validation/schema.d.ts.map +1 -1
  138. package/dist/types/src/application/resources/post/operations/commands/update/validation/validate-input.d.ts +2 -0
  139. package/dist/types/src/application/resources/post/operations/commands/update/validation/validate-input.d.ts.map +1 -1
  140. package/dist/types/src/application/resources/post/operations/queries/find-detail/cache.d.ts.map +1 -1
  141. package/dist/types/src/application/resources/post/operations/queries/find-detail/validation/schema.d.ts +6 -2
  142. package/dist/types/src/application/resources/post/operations/queries/find-detail/validation/schema.d.ts.map +1 -1
  143. package/dist/types/src/application/resources/post/operations/queries/find-detail/validation/validate-input.d.ts.map +1 -1
  144. package/dist/types/src/application/resources/post/operations/queries/find-list-cards/cache.d.ts.map +1 -1
  145. package/dist/types/src/application/resources/post/operations/queries/find-list-cards/validation/schema.d.ts +7 -3
  146. package/dist/types/src/application/resources/post/operations/queries/find-list-cards/validation/schema.d.ts.map +1 -1
  147. package/dist/types/src/application/resources/post/operations/queries/find-many/cache.d.ts.map +1 -1
  148. package/dist/types/src/application/resources/post/operations/queries/find-many/validation/schema.d.ts +7 -3
  149. package/dist/types/src/application/resources/post/operations/queries/find-many/validation/schema.d.ts.map +1 -1
  150. package/dist/types/src/application/resources/post/operations/queries/find-relations/cache.d.ts.map +1 -1
  151. package/dist/types/src/application/resources/post/ports.d.ts +26 -9
  152. package/dist/types/src/application/resources/post/ports.d.ts.map +1 -1
  153. package/dist/types/src/application/resources/post/projections/detail.d.ts +0 -1
  154. package/dist/types/src/application/resources/post/projections/detail.d.ts.map +1 -1
  155. package/dist/types/src/application/resources/post/projections/list-card.d.ts +0 -2
  156. package/dist/types/src/application/resources/post/projections/list-card.d.ts.map +1 -1
  157. package/dist/types/src/application/resources/post/validate-topic.d.ts +11 -0
  158. package/dist/types/src/application/resources/post/validate-topic.d.ts.map +1 -0
  159. package/dist/types/src/application/resources/seo-metadata/errors/codes.d.ts +2 -0
  160. package/dist/types/src/application/resources/seo-metadata/errors/codes.d.ts.map +1 -1
  161. package/dist/types/src/application/resources/seo-metadata/errors/index.d.ts +1 -1
  162. package/dist/types/src/application/resources/seo-metadata/errors/index.d.ts.map +1 -1
  163. package/dist/types/src/application/resources/seo-metadata/errors/operation-errors.d.ts +6 -0
  164. package/dist/types/src/application/resources/seo-metadata/errors/operation-errors.d.ts.map +1 -1
  165. package/dist/types/src/application/resources/seo-metadata/index.d.ts +2 -1
  166. package/dist/types/src/application/resources/seo-metadata/index.d.ts.map +1 -1
  167. package/dist/types/src/application/resources/seo-metadata/operations/commands/upsert/cache.d.ts.map +1 -1
  168. package/dist/types/src/application/resources/seo-metadata/operations/commands/upsert/seo-metadata-upsert-command.d.ts +2 -0
  169. package/dist/types/src/application/resources/seo-metadata/operations/commands/upsert/seo-metadata-upsert-command.d.ts.map +1 -1
  170. package/dist/types/src/application/resources/seo-metadata/operations/commands/upsert/types.d.ts +5 -7
  171. package/dist/types/src/application/resources/seo-metadata/operations/commands/upsert/types.d.ts.map +1 -1
  172. package/dist/types/src/application/resources/seo-metadata/operations/commands/upsert/validation/schema.d.ts +55 -2
  173. package/dist/types/src/application/resources/seo-metadata/operations/commands/upsert/validation/schema.d.ts.map +1 -1
  174. package/dist/types/src/application/resources/seo-metadata/operations/commands/upsert/validation/validate-input.d.ts +2 -0
  175. package/dist/types/src/application/resources/seo-metadata/operations/commands/upsert/validation/validate-input.d.ts.map +1 -1
  176. package/dist/types/src/application/resources/seo-metadata/ports.d.ts +10 -3
  177. package/dist/types/src/application/resources/seo-metadata/ports.d.ts.map +1 -1
  178. package/dist/types/src/composition/create-sitero-server.d.ts.map +1 -1
  179. package/dist/types/src/composition/policies.d.ts +6 -0
  180. package/dist/types/src/composition/policies.d.ts.map +1 -1
  181. package/dist/types/src/composition/types.d.ts +14 -0
  182. package/dist/types/src/composition/types.d.ts.map +1 -1
  183. package/dist/types/src/index.d.ts +8 -1
  184. package/dist/types/src/index.d.ts.map +1 -1
  185. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/page/operations/commands/update/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,eAAe,GAAG,oBAAoB,CAAC;AAEnD,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,UAAU,CAAC,OAAO,qBAAqB,CAAC,CACzC,GAAG;IACF,QAAQ,EAAE,UAAU,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC;AAEhE,MAAM,MAAM,iBAAiB,GAAG,SAAS,CACvC,eAAe,EACf,wBAAwB,EACxB,gBAAgB,CACjB,CAAC"}
@@ -0,0 +1,98 @@
1
+ import { z } from "zod";
2
+ export declare const pageUpdateInputSchema: () => z.ZodObject<{
3
+ id: z.ZodString;
4
+ page: z.ZodObject<{
5
+ coverMediaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ section1CoverMediaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ section2CoverMediaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ section3CoverMediaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ section4CoverMediaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ section5CoverMediaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ section6CoverMediaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ section7CoverMediaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ section8CoverMediaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ section9CoverMediaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ section10CoverMediaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ translations: z.ZodArray<z.ZodObject<{
17
+ locale: z.ZodString;
18
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ text1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ text2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ text3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ text4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ section1Title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ section1Subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ section1Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ section1Text1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ section1Text2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ section1Text3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ section1Text4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ section2Title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ section2Subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ section2Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ section2Text1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ section2Text2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ section2Text3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ section2Text4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ section3Title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ section3Subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ section3Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ section3Text1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ section3Text2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ section3Text3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ section3Text4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ section4Title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ section4Subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ section4Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ section4Text1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ section4Text2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ section4Text3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ section4Text4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ section5Title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ section5Subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ section5Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ section5Text1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ section5Text2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ section5Text3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ section5Text4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ section6Title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ section6Subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ section6Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ section6Text1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
+ section6Text2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ section6Text3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
+ section6Text4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ section7Title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ section7Subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ section7Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ section7Text1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ section7Text2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ section7Text3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ section7Text4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ section8Title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ section8Subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
+ section8Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ section8Text1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ section8Text2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ section8Text3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
+ section8Text4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
+ section9Title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
+ section9Subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
+ section9Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
+ section9Text1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
+ section9Text2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ section9Text3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
+ section9Text4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
88
+ section10Title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ section10Subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ section10Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ section10Text1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ section10Text2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
+ section10Text3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ section10Text4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
+ }, z.core.$strict>>;
96
+ }, z.core.$strict>;
97
+ }, z.core.$strict>;
98
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/application/resources/page/operations/commands/update/validation/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA2GrB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { FileLookupPort } from "../../../../../file";
2
+ import type { PageQueryPort } from "../../../../ports";
3
+ import type { PageUpdateInput, ValidatedPageUpdateInput } from "../types";
4
+ export declare function validateInput(input: {
5
+ input: PageUpdateInput;
6
+ pageQueryPort: PageQueryPort;
7
+ fileQueryPort: FileLookupPort;
8
+ }): Promise<ValidatedPageUpdateInput>;
9
+ //# sourceMappingURL=validate-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate-input.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/application/resources/page/operations/commands/update/validation/validate-input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAU1E,wBAAsB,aAAa,CAAC,KAAK,EAAE;IACzC,KAAK,EAAE,eAAe,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,cAAc,CAAC;CAC/B,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAcpC"}
@@ -0,0 +1,3 @@
1
+ export { type PageFindDetailQuery, createPageFindDetailQuery, type PageFindDetailInput, type PageFindDetailResult, type PageFindManyQuery, createPageFindManyQuery, type PageFindManyInput, type PageFindManyResult, } from "./queries";
2
+ export { type PageUpdateInput, type PageUpdateResult, type PageUpdateCommand, createPageUpdateCommand, } from "./commands";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/application/resources/page/operations/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,mBAAmB,EACxB,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EAGzB,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACxB,MAAM,WAAW,CAAC;AAKnB,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,uBAAuB,GACxB,MAAM,YAAY,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { PageFindDetailInput, PageFindDetailResult } from "./types";
2
+ import type { OperationSuccess } from "../../../../../../kernel";
3
+ export declare const createPageFindDetailCacheKey: (input: PageFindDetailInput) => string;
4
+ export declare const createPageFindDetailCacheTags: (_: PageFindDetailInput, result: Extract<PageFindDetailResult, OperationSuccess<unknown>>) => string[];
5
+ //# sourceMappingURL=cache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/page/operations/queries/find-detail/cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAQjE,eAAO,MAAM,4BAA4B,GAAI,OAAO,mBAAmB,WAMtE,CAAC;AAEF,eAAO,MAAM,6BAA6B,GACxC,GAAG,mBAAmB,EACtB,QAAQ,OAAO,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,aAiBjE,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { createPageFindDetailQuery } from "./page-find-detail-query";
2
+ export type { PageFindDetailInput, PageFindDetailResult, PageFindDetailQuery, } from "./types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/page/operations/queries/find-detail/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAErE,YAAY,EACV,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,SAAS,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { PageFindDetailQuery } from "./types";
2
+ import type { PageQueryPort } from "../../../ports";
3
+ export declare function createPageFindDetailQuery(input: {
4
+ pageQueryPort: PageQueryPort;
5
+ }): PageFindDetailQuery;
6
+ //# sourceMappingURL=page-find-detail-query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-find-detail-query.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/page/operations/queries/find-detail/page-find-detail-query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AASpD,wBAAgB,yBAAyB,CAAC,KAAK,EAAE;IAC/C,aAAa,EAAE,aAAa,CAAC;CAC9B,GAAG,mBAAmB,CA4BtB"}
@@ -0,0 +1,11 @@
1
+ import type { Operation, OperationResult } from "../../../../../../kernel";
2
+ import type { PageNotFoundError } from "../../../errors";
3
+ import type { PageLookupInput } from "../../../ports";
4
+ import type { PageDetail } from "../../../projections";
5
+ export type PageFindDetailInput = PageLookupInput;
6
+ export type PageFindDetailResult = OperationResult<{
7
+ page: PageDetail;
8
+ }, PageNotFoundError>;
9
+ /** Public Page lookup; Page records contain only website-facing data. */
10
+ export type PageFindDetailQuery = Operation<PageFindDetailInput, PageFindDetailInput, PageFindDetailResult>;
11
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/page/operations/queries/find-detail/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;AAElD,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAChD;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,EACpB,iBAAiB,CAClB,CAAC;AAEF,yEAAyE;AACzE,MAAM,MAAM,mBAAmB,GAAG,SAAS,CACzC,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,CACrB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { z } from "zod";
2
+ export declare const pageFindDetailInputSchema: () => z.ZodUnion<readonly [z.ZodObject<{
3
+ id: z.ZodString;
4
+ }, z.core.$strict>, z.ZodObject<{
5
+ key: z.ZodString;
6
+ }, z.core.$strict>]>;
7
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/application/resources/page/operations/queries/find-detail/validation/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,yBAAyB;;;;oBAIlC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { PageFindManyInput, PageFindManyResult } from "./types";
2
+ export declare const createPageFindManyCacheKey: (input: PageFindManyInput | undefined) => string;
3
+ export declare const createPageFindManyCacheTags: (input: PageFindManyInput | undefined, result: PageFindManyResult) => string[];
4
+ //# sourceMappingURL=cache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/page/operations/queries/find-many/cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAOrE,eAAO,MAAM,0BAA0B,GACrC,OAAO,iBAAiB,GAAG,SAAS,WAIlC,CAAC;AACL,eAAO,MAAM,2BAA2B,GACtC,OAAO,iBAAiB,GAAG,SAAS,EACpC,QAAQ,kBAAkB,aAYrB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { createPageFindManyQuery } from "./page-find-many-query";
2
+ export type { PageFindManyInput, PageFindManyQuery, PageFindManyResult, } from "./types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/page/operations/queries/find-many/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,SAAS,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { PageFindManyQuery } from "./types";
2
+ import type { OperationAuthorization } from "../../../../../../kernel";
3
+ import type { PageQueryPort } from "../../../ports";
4
+ export declare function createPageFindManyQuery(input: {
5
+ pageQueryPort: PageQueryPort;
6
+ authorization: OperationAuthorization;
7
+ }): PageFindManyQuery;
8
+ //# sourceMappingURL=page-find-many-query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-find-many-query.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/page/operations/queries/find-many/page-find-many-query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAQpD,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAC7C,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,sBAAsB,CAAC;CACvC,GAAG,iBAAiB,CA6BpB"}
@@ -0,0 +1,9 @@
1
+ import type { Operation, OperationSuccess } from "../../../../../../kernel";
2
+ import type { PageFindManyCriteria } from "../../../ports";
3
+ import type { PageReference } from "../../../projections";
4
+ export type PageFindManyInput = PageFindManyCriteria;
5
+ export type PageFindManyResult = OperationSuccess<{
6
+ pages: PageReference[];
7
+ }>;
8
+ export type PageFindManyQuery = Operation<PageFindManyInput | undefined, PageFindManyInput | undefined, PageFindManyResult>;
9
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/page/operations/queries/find-many/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;AAErD,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAC;IAChD,KAAK,EAAE,aAAa,EAAE,CAAC;CACxB,CAAC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,SAAS,CACvC,iBAAiB,GAAG,SAAS,EAC7B,iBAAiB,GAAG,SAAS,EAC7B,kBAAkB,CACnB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ export declare const pageFindManyInputSchema: () => z.ZodOptional<z.ZodObject<{
3
+ keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
4
+ }, z.core.$strip>>;
5
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/application/resources/page/operations/queries/find-many/validation/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,uBAAuB;;kBAKrB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PageFindManyInput } from "../types";
2
+ export declare function validatePageFindManyInput(input: PageFindManyInput | undefined): PageFindManyInput | undefined;
3
+ //# sourceMappingURL=validate-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate-input.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/application/resources/page/operations/queries/find-many/validation/validate-input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAIlD,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,iBAAiB,GAAG,SAAS,GACnC,iBAAiB,GAAG,SAAS,CAQ/B"}
@@ -0,0 +1,3 @@
1
+ export { type PageFindDetailQuery, createPageFindDetailQuery, type PageFindDetailInput, type PageFindDetailResult, } from "./find-detail";
2
+ export { type PageFindManyQuery, createPageFindManyQuery, type PageFindManyInput, type PageFindManyResult, } from "./find-many";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/application/resources/page/operations/queries/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,mBAAmB,EACxB,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B,MAAM,eAAe,CAAC;AAKvB,OAAO,EACL,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACxB,MAAM,aAAa,CAAC"}
@@ -0,0 +1,38 @@
1
+ import type { PageDetail, PageReference } from "./projections";
2
+ import type { Page, PageMediaField, PageTranslationData } from "sitero-domain";
3
+ export type PageLookupInput = {
4
+ id: string;
5
+ key?: never;
6
+ } | {
7
+ key: string;
8
+ id?: never;
9
+ };
10
+ export interface PageFindManyCriteria {
11
+ keys?: string[] | undefined;
12
+ }
13
+ /** Omitted fields/locales are preserved. Null clears a field. New locale fields default to null. */
14
+ export type PageUpdateWriteData = {
15
+ [K in `${PageMediaField}Id`]?: string | null | undefined;
16
+ } & {
17
+ translations: Array<{
18
+ [K in keyof PageTranslationData]?: PageTranslationData[K] | undefined;
19
+ } & {
20
+ locale: string;
21
+ }>;
22
+ };
23
+ export interface PageUpdateWriteInput {
24
+ id: string;
25
+ page: PageUpdateWriteData;
26
+ }
27
+ export interface PageCommandPort {
28
+ /** Must atomically preserve omitted data, upsert supplied locales, and protect File references
29
+ * against deletion/purge/replacement. Only active IMAGE/VIDEO Files may be linked.
30
+ * Key and identity cannot be changed. Return the canonical persisted Page. */
31
+ update(input: PageUpdateWriteInput): Promise<Page>;
32
+ }
33
+ export interface PageQueryPort {
34
+ findDetail(input: PageLookupInput): Promise<PageDetail | null>;
35
+ /** Deterministic ordering by key; an empty key selection means no records. */
36
+ findMany(input?: PageFindManyCriteria): Promise<PageReference[]>;
37
+ }
38
+ //# sourceMappingURL=ports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ports.d.ts","sourceRoot":"","sources":["../../../../../../src/application/resources/page/ports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAE/E,MAAM,MAAM,eAAe,GACvB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,KAAK,CAAA;CAAE,GAC3B;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAChC,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;CAC7B;AACD,oGAAoG;AACpG,MAAM,MAAM,mBAAmB,GAAG;KAC/B,CAAC,IAAI,GAAG,cAAc,IAAI,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;CACzD,GAAG;IACF,YAAY,EAAE,KAAK,CACjB;SACG,CAAC,IAAI,MAAM,mBAAmB,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,SAAS;KACtE,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CACvB,CAAC;CACH,CAAC;AACF,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AACD,MAAM,WAAW,eAAe;IAC9B;;kFAE8E;IAC9E,MAAM,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACpD;AACD,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;IAC/D,8EAA8E;IAC9E,QAAQ,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;CAClE"}
@@ -0,0 +1,14 @@
1
+ import type { Page, PageTranslation, File, FileTranslation, PageMediaField, SeoMetadata } from "sitero-domain";
2
+ /** Non-recursive page shape for CMS lists. */
3
+ export type PageReference = Page & {
4
+ translations: PageTranslation[];
5
+ };
6
+ export type PageMedia = File & {
7
+ translations: FileTranslation[];
8
+ };
9
+ export type PageDetail = PageReference & {
10
+ [K in PageMediaField]: PageMedia | null;
11
+ } & {
12
+ seoMetadatas: SeoMetadata[];
13
+ };
14
+ //# sourceMappingURL=detail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detail.d.ts","sourceRoot":"","sources":["../../../../../../../src/application/resources/page/projections/detail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,EACJ,eAAe,EACf,IAAI,EACJ,eAAe,EACf,cAAc,EACd,WAAW,EACZ,MAAM,eAAe,CAAC;AACvB,8CAA8C;AAC9C,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG;IAAE,YAAY,EAAE,eAAe,EAAE,CAAA;CAAE,CAAC;AACvE,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG;IAAE,YAAY,EAAE,eAAe,EAAE,CAAA;CAAE,CAAC;AACnE,MAAM,MAAM,UAAU,GAAG,aAAa,GAAG;KACtC,CAAC,IAAI,cAAc,GAAG,SAAS,GAAG,IAAI;CACxC,GAAG;IAAE,YAAY,EAAE,WAAW,EAAE,CAAA;CAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type { PageReference, PageMedia, PageDetail } from "./detail";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/application/resources/page/projections/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"assert-post-write-relations-exist.d.ts","sourceRoot":"","sources":["../../../../../../src/application/resources/post/assert-post-write-relations-exist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAKjE,sEAAsE;AACtE,wBAAsB,6BAA6B,CAAC,KAAK,EAAE;IACzD,SAAS,EAAE,kBAAkB,CAAC;IAC9B,cAAc,EAAE,cAAc,CAAC;IAC/B,aAAa,EAAE,cAAc,CAAC;IAC9B,aAAa,EAAE,aAAa,CAAC;CAC9B,GAAG,OAAO,CAAC,IAAI,CAAC,CAkDhB"}
1
+ {"version":3,"file":"assert-post-write-relations-exist.d.ts","sourceRoot":"","sources":["../../../../../../src/application/resources/post/assert-post-write-relations-exist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAKjE,sEAAsE;AACtE,wBAAsB,6BAA6B,CAAC,KAAK,EAAE;IACzD,SAAS,EAAE,kBAAkB,CAAC;IAC9B,cAAc,EAAE,cAAc,CAAC;IAC/B,aAAa,EAAE,cAAc,CAAC;IAC9B,aAAa,EAAE,aAAa,CAAC;CAC9B,GAAG,OAAO,CAAC,IAAI,CAAC,CAiDhB"}
@@ -1 +1 @@
1
- {"version":3,"file":"collect-post-reference-ids.d.ts","sourceRoot":"","sources":["../../../../../../src/application/resources/post/collect-post-reference-ids.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,mFAAmF;AACnF,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,EAAE,CAWlE"}
1
+ {"version":3,"file":"collect-post-reference-ids.d.ts","sourceRoot":"","sources":["../../../../../../src/application/resources/post/collect-post-reference-ids.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,mFAAmF;AACnF,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,EAAE,CASlE"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-post-list-card-cache-tags.d.ts","sourceRoot":"","sources":["../../../../../../src/application/resources/post/create-post-list-card-cache-tags.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAGlD,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,YAAY,YAwB7D"}
1
+ {"version":3,"file":"create-post-list-card-cache-tags.d.ts","sourceRoot":"","sources":["../../../../../../src/application/resources/post/create-post-list-card-cache-tags.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAGlD,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,YAAY,YAkB7D"}
@@ -1,6 +1,12 @@
1
1
  /** Stable Post resource operation error codes. */
2
2
  export declare const POST_ERROR_CODES: {
3
3
  readonly NOT_FOUND: "POST_NOT_FOUND";
4
+ readonly IN_USE: "POST_IN_USE";
5
+ readonly INVALID_STATE: "POST_INVALID_STATE";
6
+ readonly SLUG_CONFLICT: "POST_SLUG_CONFLICT";
7
+ readonly PARENT_UNPUBLISHED: "POST_PARENT_UNPUBLISHED";
8
+ readonly HAS_PUBLISHED_CHILDREN: "POST_HAS_PUBLISHED_CHILDREN";
9
+ readonly REFERENCE_UNAVAILABLE: "POST_REFERENCE_UNAVAILABLE";
4
10
  readonly DELETE_LOCKED: "POST_DELETE_LOCKED";
5
11
  };
6
12
  export declare const POST_FIELD_ERROR_CODES: {
@@ -1 +1 @@
1
- {"version":3,"file":"codes.d.ts","sourceRoot":"","sources":["../../../../../../../src/application/resources/post/errors/codes.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AAEX,eAAO,MAAM,sBAAsB;;CAEzB,CAAC"}
1
+ {"version":3,"file":"codes.d.ts","sourceRoot":"","sources":["../../../../../../../src/application/resources/post/errors/codes.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,eAAO,MAAM,gBAAgB;;;;;;;;;CASnB,CAAC;AAEX,eAAO,MAAM,sBAAsB;;CAEzB,CAAC"}
@@ -1,6 +1,7 @@
1
- export type { PostCommandPort, PostCreateWriteData, PostCreateWriteInput, PostFindDetailCriteria, PostFindDetailPortResult, PostFindListCardsCriteria, PostListCardStateFilters, PostFindManyCriteria, PostLookupInput, PostQueryPort, PostRelationsQueryPort, PostUpdateWriteData, PostUpdateWriteInput, PostWriteRelations, } from "./ports";
1
+ export type { PostCommandPort, PostReadScope, PostCreateWriteData, PostCreateWriteInput, PostFindDetailCriteria, PostFindDetailPortResult, PostFindListCardsCriteria, PostListCardStateFilters, PostFindManyCriteria, PostLookupInput, PostQueryPort, PostRelationsQueryPort, PostUpdateWriteData, PostUpdateWriteInput, PostWriteRelations, } from "./ports";
2
2
  export { POST_ERROR_CODES, PostDeleteLockedError, PostNotFoundError, } from "./errors";
3
3
  export { assertPostWriteRelationsExist } from "./assert-post-write-relations-exist";
4
4
  export type { PostDetail, PostListCard, PostRelations, PostReference, PostReferenceWithCover, } from "./projections";
5
5
  export { createPostDeleteCommand, type PostDeleteCommand, type PostDeleteInput, type PostDeleteResult, createPostUpdateCommand, type PostUpdateCommand, type PostUpdateInput, type PostUpdateResult, createPostCreateCommand, type PostCreateCommand, type PostCreateInput, type PostCreateResult, createPostFindDetailQuery, type PostFindDetailInput, type PostFindDetailQuery, type PostFindDetailResult, type PostFindRelationsInput, type PostFindRelationsQuery, type PostFindRelationsResult, createPostFindRelationsQuery, createPostFindListCardsQuery, type PostFindListCardsInput, type PostFindListCardsQuery, type PostFindListCardsResult, createPostFindManyQuery, type PostFindManyInput, type PostFindManyQuery, type PostFindManyResult, } from "./operations";
6
+ export { createPostLifecycleCommand } from "./operations/commands/lifecycle";
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/application/resources/post/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAKpF,YAAY,EACV,UAAU,EACV,YAAY,EACZ,aAAa,EACb,aAAa,EACb,sBAAsB,GACvB,MAAM,eAAe,CAAC;AAKvB,OAAO,EACL,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,4BAA4B,EAC5B,4BAA4B,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACxB,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/application/resources/post/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAKpF,YAAY,EACV,UAAU,EACV,YAAY,EACZ,aAAa,EACb,aAAa,EACb,sBAAsB,GACvB,MAAM,eAAe,CAAC;AAKvB,OAAO,EACL,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,4BAA4B,EAC5B,4BAA4B,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACxB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/post/operations/commands/create/cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAM3D,eAAO,MAAM,gCAAgC,GAC3C,OAAO,oBAAoB,EAC3B,QAAQ,OAAO,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,aAsC7D,CAAC"}
1
+ {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/post/operations/commands/create/cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAM3D,eAAO,MAAM,gCAAgC,GAC3C,OAAO,oBAAoB,EAC3B,QAAQ,OAAO,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,aAqC7D,CAAC"}
@@ -3,7 +3,9 @@ import type { OperationAuthorization } from "../../../../../../kernel";
3
3
  import type { AdminQueryPort } from "../../../../admin";
4
4
  import type { FileLookupPort } from "../../../../file";
5
5
  import type { PostCommandPort, PostQueryPort } from "../../../ports";
6
+ import type { TopicDefinitions } from "sitero-domain";
6
7
  export declare function createPostCreateCommand(input: {
8
+ topics?: TopicDefinitions;
7
9
  authorization: OperationAuthorization;
8
10
  postCommandPort: PostCommandPort;
9
11
  postQueryPort: PostQueryPort;
@@ -1 +1 @@
1
- {"version":3,"file":"post-create-command.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/post/operations/commands/create/post-create-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAKrE,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAC7C,aAAa,EAAE,sBAAsB,CAAC;IACtC,eAAe,EAAE,eAAe,CAAC;IACjC,aAAa,EAAE,aAAa,CAAC;IAC7B,cAAc,EAAE,cAAc,CAAC;IAC/B,aAAa,EAAE,cAAc,CAAC;CAC/B,GAAG,iBAAiB,CA+BpB"}
1
+ {"version":3,"file":"post-create-command.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/post/operations/commands/create/post-create-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAKtD,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAC7C,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,aAAa,EAAE,sBAAsB,CAAC;IACtC,eAAe,EAAE,eAAe,CAAC;IACjC,aAAa,EAAE,aAAa,CAAC;IAC7B,cAAc,EAAE,cAAc,CAAC;IAC/B,aAAa,EAAE,cAAc,CAAC;CAC/B,GAAG,iBAAiB,CAiCpB"}
@@ -1,14 +1,12 @@
1
1
  import { z } from "zod";
2
2
  export declare const postCreateInputSchema: () => z.ZodObject<{
3
3
  type: z.ZodEnum<{
4
- readonly TOPIC: "TOPIC";
5
4
  readonly CATEGORY: "CATEGORY";
6
5
  readonly SUBCATEGORY: "SUBCATEGORY";
7
6
  readonly POST: "POST";
8
7
  readonly PRODUCT: "PRODUCT";
9
8
  readonly TAG: "TAG";
10
9
  readonly PRODUCT_TAG: "PRODUCT_TAG";
11
- readonly PAGE: "PAGE";
12
10
  }>;
13
11
  isActive: z.ZodBoolean;
14
12
  isIndexActive: z.ZodBoolean;
@@ -52,9 +50,7 @@ export declare const postCreateInputSchema: () => z.ZodObject<{
52
50
  author: z.ZodNullable<z.ZodObject<{
53
51
  id: z.ZodString;
54
52
  }, z.core.$strip>>;
55
- topic: z.ZodNullable<z.ZodObject<{
56
- id: z.ZodString;
57
- }, z.core.$strip>>;
53
+ topicKey: z.ZodNullable<z.ZodString>;
58
54
  parents: z.ZodArray<z.ZodObject<{
59
55
  id: z.ZodString;
60
56
  }, z.core.$strip>>;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/application/resources/post/operations/commands/create/validation/schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsCxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAyFrB,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/application/resources/post/operations/commands/create/validation/schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsCxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAyFrB,CAAC"}
@@ -2,7 +2,9 @@ import type { AdminQueryPort } from "../../../../../admin";
2
2
  import type { FileLookupPort } from "../../../../../file";
3
3
  import type { PostCreateWriteInput, PostQueryPort } from "../../../../ports";
4
4
  import type { PostCreateInput } from "../types";
5
+ import type { TopicDefinitions } from "sitero-domain";
5
6
  export declare function validateInput(input: {
7
+ topics: TopicDefinitions;
6
8
  input: PostCreateInput;
7
9
  adminQueryPort: AdminQueryPort;
8
10
  fileQueryPort: FileLookupPort;
@@ -1 +1 @@
1
- {"version":3,"file":"validate-input.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/application/resources/post/operations/commands/create/validation/validate-input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAKhD,wBAAsB,aAAa,CAAC,KAAK,EAAE;IACzC,KAAK,EAAE,eAAe,CAAC;IACvB,cAAc,EAAE,cAAc,CAAC;IAC/B,aAAa,EAAE,cAAc,CAAC;IAC9B,aAAa,EAAE,aAAa,CAAC;CAC9B,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAgChC"}
1
+ {"version":3,"file":"validate-input.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/application/resources/post/operations/commands/create/validation/validate-input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAMtD,wBAAsB,aAAa,CAAC,KAAK,EAAE;IACzC,MAAM,EAAE,gBAAgB,CAAC;IACzB,KAAK,EAAE,eAAe,CAAC;IACvB,cAAc,EAAE,cAAc,CAAC;IAC/B,aAAa,EAAE,cAAc,CAAC;IAC9B,aAAa,EAAE,aAAa,CAAC;CAC9B,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAwChC"}
@@ -1 +1 @@
1
- {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/post/operations/commands/delete/cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAQjE,eAAO,MAAM,gCAAgC,GAC3C,OAAO,wBAAwB,EAC/B,QAAQ,OAAO,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,aA6B7D,CAAC"}
1
+ {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/post/operations/commands/delete/cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAQjE,eAAO,MAAM,gCAAgC,GAC3C,OAAO,wBAAwB,EAC/B,QAAQ,OAAO,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,aA4B7D,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export { createPostCreateCommand, type PostCreateCommand, type PostCreateInput, type PostCreateResult, } from "./create";
2
2
  export { createPostDeleteCommand, type PostDeleteCommand, type PostDeleteInput, type PostDeleteResult, } from "./delete";
3
3
  export { createPostUpdateCommand, type PostUpdateCommand, type PostUpdateInput, type PostUpdateResult, } from "./update";
4
+ export { createPostLifecycleCommand } from "./lifecycle";
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/application/resources/post/operations/commands/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACtB,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACtB,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACtB,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/application/resources/post/operations/commands/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACtB,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACtB,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACtB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { OperationAuthorization } from "../../../../../kernel";
2
+ import type { PostCommandPort, PostQueryPort } from "../../ports";
3
+ import type { PostDeleteCommand } from "./delete/types";
4
+ /** Restore and purge share the deleted-only lookup and reference invalidation. */
5
+ export declare function createPostLifecycleCommand(input: {
6
+ action: "restore" | "purge";
7
+ authorization: OperationAuthorization;
8
+ postCommandPort: PostCommandPort;
9
+ postQueryPort: PostQueryPort;
10
+ }): PostDeleteCommand;
11
+ //# sourceMappingURL=lifecycle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../../../../../../src/application/resources/post/operations/commands/lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAMxD,kFAAkF;AAClF,wBAAgB,0BAA0B,CAAC,KAAK,EAAE;IAChD,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC;IAC5B,aAAa,EAAE,sBAAsB,CAAC;IACtC,eAAe,EAAE,eAAe,CAAC;IACjC,aAAa,EAAE,aAAa,CAAC;CAC9B,GAAG,iBAAiB,CAuBpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/post/operations/commands/update/cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAQjE,eAAO,MAAM,gCAAgC,GAC3C,OAAO,wBAAwB,EAC/B,QAAQ,OAAO,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,aA8C7D,CAAC"}
1
+ {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/post/operations/commands/update/cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAQjE,eAAO,MAAM,gCAAgC,GAC3C,OAAO,wBAAwB,EAC/B,QAAQ,OAAO,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,aA4C7D,CAAC"}
@@ -3,7 +3,9 @@ import type { OperationAuthorization } from "../../../../../../kernel";
3
3
  import type { AdminQueryPort } from "../../../../admin";
4
4
  import type { FileLookupPort } from "../../../../file";
5
5
  import type { PostCommandPort, PostQueryPort } from "../../../ports";
6
+ import type { TopicDefinitions } from "sitero-domain";
6
7
  export declare function createPostUpdateCommand(input: {
8
+ topics?: TopicDefinitions;
7
9
  authorization: OperationAuthorization;
8
10
  postCommandPort: PostCommandPort;
9
11
  postQueryPort: PostQueryPort;
@@ -1 +1 @@
1
- {"version":3,"file":"post-update-command.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/post/operations/commands/update/post-update-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAKrE,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAC7C,aAAa,EAAE,sBAAsB,CAAC;IACtC,eAAe,EAAE,eAAe,CAAC;IACjC,aAAa,EAAE,aAAa,CAAC;IAC7B,cAAc,EAAE,cAAc,CAAC;IAC/B,aAAa,EAAE,cAAc,CAAC;CAC/B,GAAG,iBAAiB,CA8BpB"}
1
+ {"version":3,"file":"post-update-command.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/post/operations/commands/update/post-update-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAKtD,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAC7C,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,aAAa,EAAE,sBAAsB,CAAC;IACtC,eAAe,EAAE,eAAe,CAAC;IACjC,aAAa,EAAE,aAAa,CAAC;IAC7B,cAAc,EAAE,cAAc,CAAC;IAC/B,aAAa,EAAE,cAAc,CAAC;CAC/B,GAAG,iBAAiB,CAgCpB"}
@@ -39,9 +39,6 @@ export declare const postUpdateInputSchema: () => import("zod").ZodObject<{
39
39
  author: import("zod").ZodNullable<import("zod").ZodObject<{
40
40
  id: import("zod").ZodString;
41
41
  }, import("zod/v4/core").$strip>>;
42
- topic: import("zod").ZodNullable<import("zod").ZodObject<{
43
- id: import("zod").ZodString;
44
- }, import("zod/v4/core").$strip>>;
45
42
  index: import("zod").ZodNullable<import("zod").ZodNumber>;
46
43
  text1: import("zod").ZodNullable<import("zod").ZodString>;
47
44
  text2: import("zod").ZodNullable<import("zod").ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/application/resources/post/operations/commands/update/validation/schema.ts"],"names":[],"mappings":"AAGA,qFAAqF;AACrF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAIrB,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/application/resources/post/operations/commands/update/validation/schema.ts"],"names":[],"mappings":"AAGA,qFAAqF;AACrF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAIrB,CAAC"}
@@ -2,7 +2,9 @@ import type { AdminQueryPort } from "../../../../../admin";
2
2
  import type { FileLookupPort } from "../../../../../file";
3
3
  import type { PostQueryPort } from "../../../../ports";
4
4
  import type { PostUpdateInput, ValidatedPostUpdateInput } from "../types";
5
+ import type { TopicDefinitions } from "sitero-domain";
5
6
  export declare function validateInput(input: {
7
+ topics: TopicDefinitions;
6
8
  input: PostUpdateInput;
7
9
  adminQueryPort: AdminQueryPort;
8
10
  fileQueryPort: FileLookupPort;
@@ -1 +1 @@
1
- {"version":3,"file":"validate-input.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/application/resources/post/operations/commands/update/validation/validate-input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAM1E,wBAAsB,aAAa,CAAC,KAAK,EAAE;IACzC,KAAK,EAAE,eAAe,CAAC;IACvB,cAAc,EAAE,cAAc,CAAC;IAC/B,aAAa,EAAE,cAAc,CAAC;IAC9B,aAAa,EAAE,aAAa,CAAC;CAC9B,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAsCpC"}
1
+ {"version":3,"file":"validate-input.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/application/resources/post/operations/commands/update/validation/validate-input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAOtD,wBAAsB,aAAa,CAAC,KAAK,EAAE;IACzC,MAAM,EAAE,gBAAgB,CAAC;IACzB,KAAK,EAAE,eAAe,CAAC;IACvB,cAAc,EAAE,cAAc,CAAC;IAC/B,aAAa,EAAE,cAAc,CAAC;IAC9B,aAAa,EAAE,aAAa,CAAC;CAC9B,GAAG,OAAO,CAAC,wBAAwB,CAAC,CA8CpC"}