@paroicms/server 0.146.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 (659) hide show
  1. package/README.md +3 -0
  2. package/ddl/main.ddl.sql +84 -0
  3. package/dist/backup/site/archiver.helper.d.ts +12 -0
  4. package/dist/backup/site/archiver.helper.js +46 -0
  5. package/dist/backup/site/archiver.helper.js.map +1 -0
  6. package/dist/backup/site/backup.d.ts +5 -0
  7. package/dist/backup/site/backup.js +118 -0
  8. package/dist/backup/site/backup.js.map +1 -0
  9. package/dist/cli.d.ts +2 -0
  10. package/dist/cli.js +5 -0
  11. package/dist/cli.js.map +1 -0
  12. package/dist/common/child-ordering-query.d.ts +13 -0
  13. package/dist/common/child-ordering-query.js +107 -0
  14. package/dist/common/child-ordering-query.js.map +1 -0
  15. package/dist/common/data-format.d.ts +19 -0
  16. package/dist/common/data-format.js +86 -0
  17. package/dist/common/data-format.js.map +1 -0
  18. package/dist/common/mail/html-helpers.d.ts +7 -0
  19. package/dist/common/mail/html-helpers.js +46 -0
  20. package/dist/common/mail/html-helpers.js.map +1 -0
  21. package/dist/common/mail/sendMail.helpers.d.ts +14 -0
  22. package/dist/common/mail/sendMail.helpers.js +51 -0
  23. package/dist/common/mail/sendMail.helpers.js.map +1 -0
  24. package/dist/common/media-handles.helpers.d.ts +19 -0
  25. package/dist/common/media-handles.helpers.js +52 -0
  26. package/dist/common/media-handles.helpers.js.map +1 -0
  27. package/dist/common/serve-html-or.d.ts +16 -0
  28. package/dist/common/serve-html-or.js +72 -0
  29. package/dist/common/serve-html-or.js.map +1 -0
  30. package/dist/common/text-cache.d.ts +57 -0
  31. package/dist/common/text-cache.js +87 -0
  32. package/dist/common/text-cache.js.map +1 -0
  33. package/dist/common/tracker-report.d.ts +2 -0
  34. package/dist/common/tracker-report.js +27 -0
  35. package/dist/common/tracker-report.js.map +1 -0
  36. package/dist/context.d.ts +29 -0
  37. package/dist/context.js +60 -0
  38. package/dist/context.js.map +1 -0
  39. package/dist/express/http-helpers.d.ts +16 -0
  40. package/dist/express/http-helpers.js +44 -0
  41. package/dist/express/http-helpers.js.map +1 -0
  42. package/dist/express/static-middlewares.d.ts +3 -0
  43. package/dist/express/static-middlewares.js +114 -0
  44. package/dist/express/static-middlewares.js.map +1 -0
  45. package/dist/helpers/configuration.helpers.d.ts +2 -0
  46. package/dist/helpers/configuration.helpers.js +8 -0
  47. package/dist/helpers/configuration.helpers.js.map +1 -0
  48. package/dist/helpers/excerpt.helpers.d.ts +2 -0
  49. package/dist/helpers/excerpt.helpers.js +31 -0
  50. package/dist/helpers/excerpt.helpers.js.map +1 -0
  51. package/dist/helpers/excerpt.helpers.spec.d.ts +1 -0
  52. package/dist/helpers/excerpt.helpers.spec.js +133 -0
  53. package/dist/helpers/excerpt.helpers.spec.js.map +1 -0
  54. package/dist/helpers/jwt-secret.helpers.d.ts +2 -0
  55. package/dist/helpers/jwt-secret.helpers.js +30 -0
  56. package/dist/helpers/jwt-secret.helpers.js.map +1 -0
  57. package/dist/helpers/label-translator.helper.d.ts +9 -0
  58. package/dist/helpers/label-translator.helper.js +14 -0
  59. package/dist/helpers/label-translator.helper.js.map +1 -0
  60. package/dist/helpers/passwordEncrypt-helper.d.ts +2 -0
  61. package/dist/helpers/passwordEncrypt-helper.js +37 -0
  62. package/dist/helpers/passwordEncrypt-helper.js.map +1 -0
  63. package/dist/helpers/relative-id-helper.d.ts +10 -0
  64. package/dist/helpers/relative-id-helper.js +37 -0
  65. package/dist/helpers/relative-id-helper.js.map +1 -0
  66. package/dist/helpers/search-text-helper.d.ts +7 -0
  67. package/dist/helpers/search-text-helper.js +27 -0
  68. package/dist/helpers/search-text-helper.js.map +1 -0
  69. package/dist/helpers/simple-i18n.d.ts +14 -0
  70. package/dist/helpers/simple-i18n.js +82 -0
  71. package/dist/helpers/simple-i18n.js.map +1 -0
  72. package/dist/helpers/special-account.helpers.d.ts +9 -0
  73. package/dist/helpers/special-account.helpers.js +43 -0
  74. package/dist/helpers/special-account.helpers.js.map +1 -0
  75. package/dist/helpers/url.helpers.d.ts +2 -0
  76. package/dist/helpers/url.helpers.js +12 -0
  77. package/dist/helpers/url.helpers.js.map +1 -0
  78. package/dist/helpers/utils-helper.d.ts +4 -0
  79. package/dist/helpers/utils-helper.js +32 -0
  80. package/dist/helpers/utils-helper.js.map +1 -0
  81. package/dist/index.d.ts +7 -0
  82. package/dist/index.js +67 -0
  83. package/dist/index.js.map +1 -0
  84. package/dist/maintenance/maintenance-task.d.ts +4 -0
  85. package/dist/maintenance/maintenance-task.js +27 -0
  86. package/dist/maintenance/maintenance-task.js.map +1 -0
  87. package/dist/maintenance/shutdown.d.ts +7 -0
  88. package/dist/maintenance/shutdown.js +51 -0
  89. package/dist/maintenance/shutdown.js.map +1 -0
  90. package/dist/modules/app.controller.d.ts +5 -0
  91. package/dist/modules/app.controller.js +89 -0
  92. package/dist/modules/app.controller.js.map +1 -0
  93. package/dist/modules/app.module.d.ts +2 -0
  94. package/dist/modules/app.module.js +48 -0
  95. package/dist/modules/app.module.js.map +1 -0
  96. package/dist/modules/core/account/account.model.d.ts +18 -0
  97. package/dist/modules/core/account/account.model.js +59 -0
  98. package/dist/modules/core/account/account.model.js.map +1 -0
  99. package/dist/modules/core/account/account.module.d.ts +2 -0
  100. package/dist/modules/core/account/account.module.js +20 -0
  101. package/dist/modules/core/account/account.module.js.map +1 -0
  102. package/dist/modules/core/account/account.queries.d.ts +18 -0
  103. package/dist/modules/core/account/account.queries.js +150 -0
  104. package/dist/modules/core/account/account.queries.js.map +1 -0
  105. package/dist/modules/core/account/account.resolver.d.ts +11 -0
  106. package/dist/modules/core/account/account.resolver.js +107 -0
  107. package/dist/modules/core/account/account.resolver.js.map +1 -0
  108. package/dist/modules/core/account/account.schema.d.ts +24 -0
  109. package/dist/modules/core/account/account.schema.js +114 -0
  110. package/dist/modules/core/account/account.schema.js.map +1 -0
  111. package/dist/modules/core/account-auth/account-auth.controller.d.ts +5 -0
  112. package/dist/modules/core/account-auth/account-auth.controller.js +46 -0
  113. package/dist/modules/core/account-auth/account-auth.controller.js.map +1 -0
  114. package/dist/modules/core/account-auth/account-auth.module.d.ts +2 -0
  115. package/dist/modules/core/account-auth/account-auth.module.js +24 -0
  116. package/dist/modules/core/account-auth/account-auth.module.js.map +1 -0
  117. package/dist/modules/core/account-auth/account-auth.service.d.ts +5 -0
  118. package/dist/modules/core/account-auth/account-auth.service.js +41 -0
  119. package/dist/modules/core/account-auth/account-auth.service.js.map +1 -0
  120. package/dist/modules/core/account-auth/account-auth.strategy.d.ts +10 -0
  121. package/dist/modules/core/account-auth/account-auth.strategy.js +49 -0
  122. package/dist/modules/core/account-auth/account-auth.strategy.js.map +1 -0
  123. package/dist/modules/core/auth/auth.module.d.ts +2 -0
  124. package/dist/modules/core/auth/auth.module.js +35 -0
  125. package/dist/modules/core/auth/auth.module.js.map +1 -0
  126. package/dist/modules/core/auth/auth.service.d.ts +11 -0
  127. package/dist/modules/core/auth/auth.service.js +164 -0
  128. package/dist/modules/core/auth/auth.service.js.map +1 -0
  129. package/dist/modules/core/auth/auth.types.d.ts +27 -0
  130. package/dist/modules/core/auth/auth.types.js +3 -0
  131. package/dist/modules/core/auth/auth.types.js.map +1 -0
  132. package/dist/modules/core/auth/jwt.auth.guard.d.ts +6 -0
  133. package/dist/modules/core/auth/jwt.auth.guard.js +23 -0
  134. package/dist/modules/core/auth/jwt.auth.guard.js.map +1 -0
  135. package/dist/modules/core/auth/jwt.strategy.d.ts +10 -0
  136. package/dist/modules/core/auth/jwt.strategy.js +35 -0
  137. package/dist/modules/core/auth/jwt.strategy.js.map +1 -0
  138. package/dist/modules/core/backup/backup.controller.d.ts +7 -0
  139. package/dist/modules/core/backup/backup.controller.js +61 -0
  140. package/dist/modules/core/backup/backup.controller.js.map +1 -0
  141. package/dist/modules/core/backup/backup.module.d.ts +2 -0
  142. package/dist/modules/core/backup/backup.module.js +22 -0
  143. package/dist/modules/core/backup/backup.module.js.map +1 -0
  144. package/dist/modules/core/backup/backup.resolver.d.ts +8 -0
  145. package/dist/modules/core/backup/backup.resolver.js +54 -0
  146. package/dist/modules/core/backup/backup.resolver.js.map +1 -0
  147. package/dist/modules/core/backup/backup.shema.d.ts +4 -0
  148. package/dist/modules/core/backup/backup.shema.js +30 -0
  149. package/dist/modules/core/backup/backup.shema.js.map +1 -0
  150. package/dist/modules/core/core.module.d.ts +2 -0
  151. package/dist/modules/core/core.module.js +50 -0
  152. package/dist/modules/core/core.module.js.map +1 -0
  153. package/dist/modules/core/document/document.helper.d.ts +2 -0
  154. package/dist/modules/core/document/document.helper.js +10 -0
  155. package/dist/modules/core/document/document.helper.js.map +1 -0
  156. package/dist/modules/core/document/document.model.d.ts +9 -0
  157. package/dist/modules/core/document/document.model.js +59 -0
  158. package/dist/modules/core/document/document.model.js.map +1 -0
  159. package/dist/modules/core/document/document.module.d.ts +2 -0
  160. package/dist/modules/core/document/document.module.js +25 -0
  161. package/dist/modules/core/document/document.module.js.map +1 -0
  162. package/dist/modules/core/document/document.resolver.d.ts +12 -0
  163. package/dist/modules/core/document/document.resolver.extend.d.ts +10 -0
  164. package/dist/modules/core/document/document.resolver.extend.js +69 -0
  165. package/dist/modules/core/document/document.resolver.extend.js.map +1 -0
  166. package/dist/modules/core/document/document.resolver.js +154 -0
  167. package/dist/modules/core/document/document.resolver.js.map +1 -0
  168. package/dist/modules/core/document/document.schema.d.ts +39 -0
  169. package/dist/modules/core/document/document.schema.js +181 -0
  170. package/dist/modules/core/document/document.schema.js.map +1 -0
  171. package/dist/modules/core/document/load-documents.queries.d.ts +17 -0
  172. package/dist/modules/core/document/load-documents.queries.js +119 -0
  173. package/dist/modules/core/document/load-documents.queries.js.map +1 -0
  174. package/dist/modules/core/document/save-documents.queries.d.ts +18 -0
  175. package/dist/modules/core/document/save-documents.queries.js +199 -0
  176. package/dist/modules/core/document/save-documents.queries.js.map +1 -0
  177. package/dist/modules/core/document/search-document-item.resolver.d.ts +7 -0
  178. package/dist/modules/core/document/search-document-item.resolver.js +58 -0
  179. package/dist/modules/core/document/search-document-item.resolver.js.map +1 -0
  180. package/dist/modules/core/fields/_fields.helpers.d.ts +2 -0
  181. package/dist/modules/core/fields/_fields.helpers.js +12 -0
  182. package/dist/modules/core/fields/_fields.helpers.js.map +1 -0
  183. package/dist/modules/core/fields/fields.model.d.ts +17 -0
  184. package/dist/modules/core/fields/fields.model.js +99 -0
  185. package/dist/modules/core/fields/fields.model.js.map +1 -0
  186. package/dist/modules/core/fields/fields.module.d.ts +2 -0
  187. package/dist/modules/core/fields/fields.module.js +20 -0
  188. package/dist/modules/core/fields/fields.module.js.map +1 -0
  189. package/dist/modules/core/fields/fields.resolver.d.ts +14 -0
  190. package/dist/modules/core/fields/fields.resolver.js +165 -0
  191. package/dist/modules/core/fields/fields.resolver.js.map +1 -0
  192. package/dist/modules/core/fields/load-fields.queries.d.ts +20 -0
  193. package/dist/modules/core/fields/load-fields.queries.js +233 -0
  194. package/dist/modules/core/fields/load-fields.queries.js.map +1 -0
  195. package/dist/modules/core/fields/quill-delta.d.ts +1 -0
  196. package/dist/modules/core/fields/quill-delta.js +40 -0
  197. package/dist/modules/core/fields/quill-delta.js.map +1 -0
  198. package/dist/modules/core/fields/save-fields.queries.d.ts +9 -0
  199. package/dist/modules/core/fields/save-fields.queries.js +135 -0
  200. package/dist/modules/core/fields/save-fields.queries.js.map +1 -0
  201. package/dist/modules/core/leaf/leaf.model.d.ts +9 -0
  202. package/dist/modules/core/leaf/leaf.model.js +61 -0
  203. package/dist/modules/core/leaf/leaf.model.js.map +1 -0
  204. package/dist/modules/core/leaf/leaf.module.d.ts +2 -0
  205. package/dist/modules/core/leaf/leaf.module.js +21 -0
  206. package/dist/modules/core/leaf/leaf.module.js.map +1 -0
  207. package/dist/modules/core/leaf/leaf.queries.d.ts +21 -0
  208. package/dist/modules/core/leaf/leaf.queries.js +143 -0
  209. package/dist/modules/core/leaf/leaf.queries.js.map +1 -0
  210. package/dist/modules/core/leaf/leaf.resolver.d.ts +9 -0
  211. package/dist/modules/core/leaf/leaf.resolver.extend.d.ts +6 -0
  212. package/dist/modules/core/leaf/leaf.resolver.extend.js +42 -0
  213. package/dist/modules/core/leaf/leaf.resolver.extend.js.map +1 -0
  214. package/dist/modules/core/leaf/leaf.resolver.js +84 -0
  215. package/dist/modules/core/leaf/leaf.resolver.js.map +1 -0
  216. package/dist/modules/core/leaf/leaf.schema.d.ts +7 -0
  217. package/dist/modules/core/leaf/leaf.schema.js +45 -0
  218. package/dist/modules/core/leaf/leaf.schema.js.map +1 -0
  219. package/dist/modules/core/leaf-item/leaf-item.model.d.ts +6 -0
  220. package/dist/modules/core/leaf-item/leaf-item.model.js +44 -0
  221. package/dist/modules/core/leaf-item/leaf-item.model.js.map +1 -0
  222. package/dist/modules/core/leaf-item/leaf-item.queries.d.ts +9 -0
  223. package/dist/modules/core/leaf-item/leaf-item.queries.js +120 -0
  224. package/dist/modules/core/leaf-item/leaf-item.queries.js.map +1 -0
  225. package/dist/modules/core/login/login.controller.d.ts +8 -0
  226. package/dist/modules/core/login/login.controller.js +54 -0
  227. package/dist/modules/core/login/login.controller.js.map +1 -0
  228. package/dist/modules/core/login/login.module.d.ts +2 -0
  229. package/dist/modules/core/login/login.module.js +22 -0
  230. package/dist/modules/core/login/login.module.js.map +1 -0
  231. package/dist/modules/core/media/media-upload.controller.d.ts +21 -0
  232. package/dist/modules/core/media/media-upload.controller.js +160 -0
  233. package/dist/modules/core/media/media-upload.controller.js.map +1 -0
  234. package/dist/modules/core/media/media.d.ts +22 -0
  235. package/dist/modules/core/media/media.js +53 -0
  236. package/dist/modules/core/media/media.js.map +1 -0
  237. package/dist/modules/core/media/media.module.d.ts +2 -0
  238. package/dist/modules/core/media/media.module.js +22 -0
  239. package/dist/modules/core/media/media.module.js.map +1 -0
  240. package/dist/modules/core/media/media.resolver.d.ts +14 -0
  241. package/dist/modules/core/media/media.resolver.js +199 -0
  242. package/dist/modules/core/media/media.resolver.js.map +1 -0
  243. package/dist/modules/core/media/media.schema.d.ts +30 -0
  244. package/dist/modules/core/media/media.schema.js +144 -0
  245. package/dist/modules/core/media/media.schema.js.map +1 -0
  246. package/dist/modules/core/part/part.model.d.ts +6 -0
  247. package/dist/modules/core/part/part.model.js +44 -0
  248. package/dist/modules/core/part/part.model.js.map +1 -0
  249. package/dist/modules/core/part/part.module.d.ts +2 -0
  250. package/dist/modules/core/part/part.module.js +21 -0
  251. package/dist/modules/core/part/part.module.js.map +1 -0
  252. package/dist/modules/core/part/part.queries.d.ts +22 -0
  253. package/dist/modules/core/part/part.queries.js +167 -0
  254. package/dist/modules/core/part/part.queries.js.map +1 -0
  255. package/dist/modules/core/part/part.resolver.d.ts +14 -0
  256. package/dist/modules/core/part/part.resolver.extend.d.ts +5 -0
  257. package/dist/modules/core/part/part.resolver.extend.js +49 -0
  258. package/dist/modules/core/part/part.resolver.extend.js.map +1 -0
  259. package/dist/modules/core/part/part.resolver.js +135 -0
  260. package/dist/modules/core/part/part.resolver.js.map +1 -0
  261. package/dist/modules/core/part/part.schema.d.ts +12 -0
  262. package/dist/modules/core/part/part.schema.js +66 -0
  263. package/dist/modules/core/part/part.schema.js.map +1 -0
  264. package/dist/modules/core/section/section-wrap.resolver.d.ts +11 -0
  265. package/dist/modules/core/section/section-wrap.resolver.js +168 -0
  266. package/dist/modules/core/section/section-wrap.resolver.js.map +1 -0
  267. package/dist/modules/core/section/section.model.d.ts +6 -0
  268. package/dist/modules/core/section/section.model.js +44 -0
  269. package/dist/modules/core/section/section.model.js.map +1 -0
  270. package/dist/modules/core/section/section.module.d.ts +2 -0
  271. package/dist/modules/core/section/section.module.js +21 -0
  272. package/dist/modules/core/section/section.module.js.map +1 -0
  273. package/dist/modules/core/section/section.queries.d.ts +51 -0
  274. package/dist/modules/core/section/section.queries.js +228 -0
  275. package/dist/modules/core/section/section.queries.js.map +1 -0
  276. package/dist/modules/core/section/section.resolver.d.ts +7 -0
  277. package/dist/modules/core/section/section.resolver.js +78 -0
  278. package/dist/modules/core/section/section.resolver.js.map +1 -0
  279. package/dist/modules/core/section/section.schema.d.ts +27 -0
  280. package/dist/modules/core/section/section.schema.js +129 -0
  281. package/dist/modules/core/section/section.schema.js.map +1 -0
  282. package/dist/modules/core/site-fields/site-fields.model.d.ts +4 -0
  283. package/dist/modules/core/site-fields/site-fields.model.js +30 -0
  284. package/dist/modules/core/site-fields/site-fields.model.js.map +1 -0
  285. package/dist/modules/core/site-fields/site-fields.module.d.ts +2 -0
  286. package/dist/modules/core/site-fields/site-fields.module.js +20 -0
  287. package/dist/modules/core/site-fields/site-fields.module.js.map +1 -0
  288. package/dist/modules/core/site-fields/site-fields.queries.d.ts +9 -0
  289. package/dist/modules/core/site-fields/site-fields.queries.js +123 -0
  290. package/dist/modules/core/site-fields/site-fields.queries.js.map +1 -0
  291. package/dist/modules/core/site-fields/site-fields.resolver.d.ts +5 -0
  292. package/dist/modules/core/site-fields/site-fields.resolver.js +56 -0
  293. package/dist/modules/core/site-fields/site-fields.resolver.js.map +1 -0
  294. package/dist/modules/core/site-info/site-info.module.d.ts +2 -0
  295. package/dist/modules/core/site-info/site-info.module.js +20 -0
  296. package/dist/modules/core/site-info/site-info.module.js.map +1 -0
  297. package/dist/modules/core/site-info/site-info.resolver.d.ts +5 -0
  298. package/dist/modules/core/site-info/site-info.resolver.js +44 -0
  299. package/dist/modules/core/site-info/site-info.resolver.js.map +1 -0
  300. package/dist/modules/core/site-info/site-info.schema.d.ts +6 -0
  301. package/dist/modules/core/site-info/site-info.schema.js +36 -0
  302. package/dist/modules/core/site-info/site-info.schema.js.map +1 -0
  303. package/dist/modules/core/site-schema/site-schema.module.d.ts +2 -0
  304. package/dist/modules/core/site-schema/site-schema.module.js +20 -0
  305. package/dist/modules/core/site-schema/site-schema.module.js.map +1 -0
  306. package/dist/modules/core/site-schema/site-schema.resolver.d.ts +4 -0
  307. package/dist/modules/core/site-schema/site-schema.resolver.js +35 -0
  308. package/dist/modules/core/site-schema/site-schema.resolver.js.map +1 -0
  309. package/dist/modules/core/term-flag/term-flag.model.d.ts +6 -0
  310. package/dist/modules/core/term-flag/term-flag.model.js +45 -0
  311. package/dist/modules/core/term-flag/term-flag.model.js.map +1 -0
  312. package/dist/modules/core/term-flag/term-flag.module.d.ts +2 -0
  313. package/dist/modules/core/term-flag/term-flag.module.js +20 -0
  314. package/dist/modules/core/term-flag/term-flag.module.js.map +1 -0
  315. package/dist/modules/core/term-flag/term-flag.queries.d.ts +7 -0
  316. package/dist/modules/core/term-flag/term-flag.queries.js +44 -0
  317. package/dist/modules/core/term-flag/term-flag.queries.js.map +1 -0
  318. package/dist/modules/core/term-flag/term-flag.resolver.d.ts +5 -0
  319. package/dist/modules/core/term-flag/term-flag.resolver.js +47 -0
  320. package/dist/modules/core/term-flag/term-flag.resolver.js.map +1 -0
  321. package/dist/modules/core/term-flag/term-flag.schema.d.ts +9 -0
  322. package/dist/modules/core/term-flag/term-flag.schema.js +51 -0
  323. package/dist/modules/core/term-flag/term-flag.schema.js.map +1 -0
  324. package/dist/modules/core/term-flag/term-flag.service.d.ts +9 -0
  325. package/dist/modules/core/term-flag/term-flag.service.js +50 -0
  326. package/dist/modules/core/term-flag/term-flag.service.js.map +1 -0
  327. package/dist/modules/core/unprotected/unprotected.module.d.ts +2 -0
  328. package/dist/modules/core/unprotected/unprotected.module.js +20 -0
  329. package/dist/modules/core/unprotected/unprotected.module.js.map +1 -0
  330. package/dist/modules/core/unprotected/unprotected.resolver.d.ts +8 -0
  331. package/dist/modules/core/unprotected/unprotected.resolver.js +106 -0
  332. package/dist/modules/core/unprotected/unprotected.resolver.js.map +1 -0
  333. package/dist/modules/core/unprotected/unprotected.schema.d.ts +19 -0
  334. package/dist/modules/core/unprotected/unprotected.schema.js +93 -0
  335. package/dist/modules/core/unprotected/unprotected.schema.js.map +1 -0
  336. package/dist/modules/graphql.types.d.ts +6 -0
  337. package/dist/modules/graphql.types.js +3 -0
  338. package/dist/modules/graphql.types.js.map +1 -0
  339. package/dist/modules/private-api.module.d.ts +2 -0
  340. package/dist/modules/private-api.module.js +50 -0
  341. package/dist/modules/private-api.module.js.map +1 -0
  342. package/dist/modules/public-api/class-validator-options.d.ts +7 -0
  343. package/dist/modules/public-api/class-validator-options.js +11 -0
  344. package/dist/modules/public-api/class-validator-options.js.map +1 -0
  345. package/dist/modules/public-api/mail/contact-form-mail.d.ts +8 -0
  346. package/dist/modules/public-api/mail/contact-form-mail.js +96 -0
  347. package/dist/modules/public-api/mail/contact-form-mail.js.map +1 -0
  348. package/dist/modules/public-api/mail/mail.dto.d.ts +8 -0
  349. package/dist/modules/public-api/mail/mail.dto.js +56 -0
  350. package/dist/modules/public-api/mail/mail.dto.js.map +1 -0
  351. package/dist/modules/public-api/partials/partials-params.dto.d.ts +6 -0
  352. package/dist/modules/public-api/partials/partials-params.dto.js +45 -0
  353. package/dist/modules/public-api/partials/partials-params.dto.js.map +1 -0
  354. package/dist/modules/public-api/password-reset/password-reset.controller.d.ts +11 -0
  355. package/dist/modules/public-api/password-reset/password-reset.controller.js +59 -0
  356. package/dist/modules/public-api/password-reset/password-reset.controller.js.map +1 -0
  357. package/dist/modules/public-api/password-reset/password-reset.dto.d.ts +9 -0
  358. package/dist/modules/public-api/password-reset/password-reset.dto.js +55 -0
  359. package/dist/modules/public-api/password-reset/password-reset.dto.js.map +1 -0
  360. package/dist/modules/public-api/password-reset/password-reset.module.d.ts +2 -0
  361. package/dist/modules/public-api/password-reset/password-reset.module.js +22 -0
  362. package/dist/modules/public-api/password-reset/password-reset.module.js.map +1 -0
  363. package/dist/modules/public-api/password-reset/password-reset.service.d.ts +14 -0
  364. package/dist/modules/public-api/password-reset/password-reset.service.js +56 -0
  365. package/dist/modules/public-api/password-reset/password-reset.service.js.map +1 -0
  366. package/dist/modules/public-api/public-api-controller.d.ts +32 -0
  367. package/dist/modules/public-api/public-api-controller.js +198 -0
  368. package/dist/modules/public-api/public-api-controller.js.map +1 -0
  369. package/dist/modules/public-api/public-api.module.d.ts +2 -0
  370. package/dist/modules/public-api/public-api.module.js +22 -0
  371. package/dist/modules/public-api/public-api.module.js.map +1 -0
  372. package/dist/modules/public-api/search-text/search-text.dto.d.ts +7 -0
  373. package/dist/modules/public-api/search-text/search-text.dto.js +50 -0
  374. package/dist/modules/public-api/search-text/search-text.dto.js.map +1 -0
  375. package/dist/modules/public-api/search-text/search-text.queries.d.ts +14 -0
  376. package/dist/modules/public-api/search-text/search-text.queries.js +58 -0
  377. package/dist/modules/public-api/search-text/search-text.queries.js.map +1 -0
  378. package/dist/modules/public-site/app-exception-filter.d.ts +4 -0
  379. package/dist/modules/public-site/app-exception-filter.js +41 -0
  380. package/dist/modules/public-site/app-exception-filter.js.map +1 -0
  381. package/dist/modules/public-site/google-auth.controller.d.ts +10 -0
  382. package/dist/modules/public-site/google-auth.controller.js +127 -0
  383. package/dist/modules/public-site/google-auth.controller.js.map +1 -0
  384. package/dist/modules/public-site/helpers/format-date.helper.d.ts +3 -0
  385. package/dist/modules/public-site/helpers/format-date.helper.js +35 -0
  386. package/dist/modules/public-site/helpers/format-date.helper.js.map +1 -0
  387. package/dist/modules/public-site/helpers/format-date.helper.spec.d.ts +1 -0
  388. package/dist/modules/public-site/helpers/format-date.helper.spec.js +37 -0
  389. package/dist/modules/public-site/helpers/format-date.helper.spec.js.map +1 -0
  390. package/dist/modules/public-site/helpers/medias.helpers.d.ts +3 -0
  391. package/dist/modules/public-site/helpers/medias.helpers.js +16 -0
  392. package/dist/modules/public-site/helpers/medias.helpers.js.map +1 -0
  393. package/dist/modules/public-site/helpers/obfuscate.helper.d.ts +2 -0
  394. package/dist/modules/public-site/helpers/obfuscate.helper.js +27 -0
  395. package/dist/modules/public-site/helpers/obfuscate.helper.js.map +1 -0
  396. package/dist/modules/public-site/helpers/public-field-values.d.ts +10 -0
  397. package/dist/modules/public-site/helpers/public-field-values.js +76 -0
  398. package/dist/modules/public-site/helpers/public-field-values.js.map +1 -0
  399. package/dist/modules/public-site/liquidjs-filters/format-date.d.ts +2 -0
  400. package/dist/modules/public-site/liquidjs-filters/format-date.js +14 -0
  401. package/dist/modules/public-site/liquidjs-filters/format-date.js.map +1 -0
  402. package/dist/modules/public-site/liquidjs-filters/format-number.d.ts +2 -0
  403. package/dist/modules/public-site/liquidjs-filters/format-number.js +18 -0
  404. package/dist/modules/public-site/liquidjs-filters/format-number.js.map +1 -0
  405. package/dist/modules/public-site/liquidjs-filters/info-filter.d.ts +2 -0
  406. package/dist/modules/public-site/liquidjs-filters/info-filter.js +144 -0
  407. package/dist/modules/public-site/liquidjs-filters/info-filter.js.map +1 -0
  408. package/dist/modules/public-site/liquidjs-filters/inject-facebook-chat.d.ts +2 -0
  409. package/dist/modules/public-site/liquidjs-filters/inject-facebook-chat.js +38 -0
  410. package/dist/modules/public-site/liquidjs-filters/inject-facebook-chat.js.map +1 -0
  411. package/dist/modules/public-site/liquidjs-filters/inject-menu-items-data.d.ts +3 -0
  412. package/dist/modules/public-site/liquidjs-filters/inject-menu-items-data.js +21 -0
  413. package/dist/modules/public-site/liquidjs-filters/inject-menu-items-data.js.map +1 -0
  414. package/dist/modules/public-site/liquidjs-filters/make-excerpt.d.ts +2 -0
  415. package/dist/modules/public-site/liquidjs-filters/make-excerpt.js +10 -0
  416. package/dist/modules/public-site/liquidjs-filters/make-excerpt.js.map +1 -0
  417. package/dist/modules/public-site/liquidjs-filters/obfuscate.d.ts +3 -0
  418. package/dist/modules/public-site/liquidjs-filters/obfuscate.js +15 -0
  419. package/dist/modules/public-site/liquidjs-filters/obfuscate.js.map +1 -0
  420. package/dist/modules/public-site/liquidjs-filters/open-graph-filter.d.ts +4 -0
  421. package/dist/modules/public-site/liquidjs-filters/open-graph-filter.js +39 -0
  422. package/dist/modules/public-site/liquidjs-filters/open-graph-filter.js.map +1 -0
  423. package/dist/modules/public-site/liquidjs-filters/translate-filter.1.d.ts +3 -0
  424. package/dist/modules/public-site/liquidjs-filters/translate-filter.1.js +12 -0
  425. package/dist/modules/public-site/liquidjs-filters/translate-filter.1.js.map +1 -0
  426. package/dist/modules/public-site/liquidjs-filters/translate-filter.d.ts +3 -0
  427. package/dist/modules/public-site/liquidjs-filters/translate-filter.js +12 -0
  428. package/dist/modules/public-site/liquidjs-filters/translate-filter.js.map +1 -0
  429. package/dist/modules/public-site/liquidjs-rendering/render-clone/collection.d.ts +1 -0
  430. package/dist/modules/public-site/liquidjs-rendering/render-clone/collection.js +18 -0
  431. package/dist/modules/public-site/liquidjs-rendering/render-clone/collection.js.map +1 -0
  432. package/dist/modules/public-site/liquidjs-rendering/render-clone/forloop-drop.d.ts +15 -0
  433. package/dist/modules/public-site/liquidjs-rendering/render-clone/forloop-drop.js +40 -0
  434. package/dist/modules/public-site/liquidjs-rendering/render-clone/forloop-drop.js.map +1 -0
  435. package/dist/modules/public-site/liquidjs-rendering/render-clone/render.d.ts +13 -0
  436. package/dist/modules/public-site/liquidjs-rendering/render-clone/render.js +108 -0
  437. package/dist/modules/public-site/liquidjs-rendering/render-clone/render.js.map +1 -0
  438. package/dist/modules/public-site/liquidjs-rendering/render-liquidjs.d.ts +6 -0
  439. package/dist/modules/public-site/liquidjs-rendering/render-liquidjs.js +40 -0
  440. package/dist/modules/public-site/liquidjs-rendering/render-liquidjs.js.map +1 -0
  441. package/dist/modules/public-site/liquidjs-rendering/rendering-context.d.ts +27 -0
  442. package/dist/modules/public-site/liquidjs-rendering/rendering-context.js +46 -0
  443. package/dist/modules/public-site/liquidjs-rendering/rendering-context.js.map +1 -0
  444. package/dist/modules/public-site/liquidjs-tags/get-breadcrumb-liquidjs-tag.d.ts +13 -0
  445. package/dist/modules/public-site/liquidjs-tags/get-breadcrumb-liquidjs-tag.js +49 -0
  446. package/dist/modules/public-site/liquidjs-tags/get-breadcrumb-liquidjs-tag.js.map +1 -0
  447. package/dist/modules/public-site/liquidjs-tags/get-page-tag.d.ts +13 -0
  448. package/dist/modules/public-site/liquidjs-tags/get-page-tag.js +68 -0
  449. package/dist/modules/public-site/liquidjs-tags/get-page-tag.js.map +1 -0
  450. package/dist/modules/public-site/liquidjs-tags/get-pages-tag.d.ts +13 -0
  451. package/dist/modules/public-site/liquidjs-tags/get-pages-tag.js +94 -0
  452. package/dist/modules/public-site/liquidjs-tags/get-pages-tag.js.map +1 -0
  453. package/dist/modules/public-site/liquidjs-tags/get-siblings-liquidjs-tag.d.ts +13 -0
  454. package/dist/modules/public-site/liquidjs-tags/get-siblings-liquidjs-tag.js +61 -0
  455. package/dist/modules/public-site/liquidjs-tags/get-siblings-liquidjs-tag.js.map +1 -0
  456. package/dist/modules/public-site/liquidjs-tags/use-image-tag.d.ts +13 -0
  457. package/dist/modules/public-site/liquidjs-tags/use-image-tag.js +53 -0
  458. package/dist/modules/public-site/liquidjs-tags/use-image-tag.js.map +1 -0
  459. package/dist/modules/public-site/media-serve/_media-serve-helpers.d.ts +11 -0
  460. package/dist/modules/public-site/media-serve/_media-serve-helpers.js +26 -0
  461. package/dist/modules/public-site/media-serve/_media-serve-helpers.js.map +1 -0
  462. package/dist/modules/public-site/media-serve/media-serve.controller.d.ts +4 -0
  463. package/dist/modules/public-site/media-serve/media-serve.controller.js +140 -0
  464. package/dist/modules/public-site/media-serve/media-serve.controller.js.map +1 -0
  465. package/dist/modules/public-site/media-serve/media-serve.module.d.ts +2 -0
  466. package/dist/modules/public-site/media-serve/media-serve.module.js +20 -0
  467. package/dist/modules/public-site/media-serve/media-serve.module.js.map +1 -0
  468. package/dist/modules/public-site/oauth2-client.controller.d.ts +10 -0
  469. package/dist/modules/public-site/oauth2-client.controller.js +144 -0
  470. package/dist/modules/public-site/oauth2-client.controller.js.map +1 -0
  471. package/dist/modules/public-site/public-route/make-url.d.ts +11 -0
  472. package/dist/modules/public-site/public-route/make-url.js +150 -0
  473. package/dist/modules/public-site/public-route/make-url.js.map +1 -0
  474. package/dist/modules/public-site/public-route/public-route-parser.d.ts +16 -0
  475. package/dist/modules/public-site/public-route/public-route-parser.js +154 -0
  476. package/dist/modules/public-site/public-route/public-route-parser.js.map +1 -0
  477. package/dist/modules/public-site/public-route/raw-document-payload.d.ts +8 -0
  478. package/dist/modules/public-site/public-route/raw-document-payload.js +86 -0
  479. package/dist/modules/public-site/public-route/raw-document-payload.js.map +1 -0
  480. package/dist/modules/public-site/public-site.controller.d.ts +7 -0
  481. package/dist/modules/public-site/public-site.controller.js +58 -0
  482. package/dist/modules/public-site/public-site.controller.js.map +1 -0
  483. package/dist/modules/public-site/public-site.middleware.d.ts +5 -0
  484. package/dist/modules/public-site/public-site.middleware.js +67 -0
  485. package/dist/modules/public-site/public-site.middleware.js.map +1 -0
  486. package/dist/modules/public-site/public-site.module.d.ts +4 -0
  487. package/dist/modules/public-site/public-site.module.js +27 -0
  488. package/dist/modules/public-site/public-site.module.js.map +1 -0
  489. package/dist/modules/public-site/serve-document/serve-document.d.ts +20 -0
  490. package/dist/modules/public-site/serve-document/serve-document.js +60 -0
  491. package/dist/modules/public-site/serve-document/serve-document.js.map +1 -0
  492. package/dist/modules/security/app-throttler-guard.d.ts +8 -0
  493. package/dist/modules/security/app-throttler-guard.js +18 -0
  494. package/dist/modules/security/app-throttler-guard.js.map +1 -0
  495. package/dist/modules/security/complexity-plugin.d.ts +8 -0
  496. package/dist/modules/security/complexity-plugin.js +46 -0
  497. package/dist/modules/security/complexity-plugin.js.map +1 -0
  498. package/dist/modules/security/gqlThrottlerGuard.d.ts +8 -0
  499. package/dist/modules/security/gqlThrottlerGuard.js +24 -0
  500. package/dist/modules/security/gqlThrottlerGuard.js.map +1 -0
  501. package/dist/nest-custom-logger.d.ts +8 -0
  502. package/dist/nest-custom-logger.js +23 -0
  503. package/dist/nest-custom-logger.js.map +1 -0
  504. package/dist/public-payload/breadcrumb.queries.d.ts +5 -0
  505. package/dist/public-payload/breadcrumb.queries.js +26 -0
  506. package/dist/public-payload/breadcrumb.queries.js.map +1 -0
  507. package/dist/public-payload/create-page-drop.d.ts +11 -0
  508. package/dist/public-payload/create-page-drop.js +160 -0
  509. package/dist/public-payload/create-page-drop.js.map +1 -0
  510. package/dist/public-payload/create-page-part-drop.d.ts +7 -0
  511. package/dist/public-payload/create-page-part-drop.js +39 -0
  512. package/dist/public-payload/create-page-part-drop.js.map +1 -0
  513. package/dist/public-payload/create-page-payload-drop.d.ts +10 -0
  514. package/dist/public-payload/create-page-payload-drop.js +143 -0
  515. package/dist/public-payload/create-page-payload-drop.js.map +1 -0
  516. package/dist/public-payload/excerpt.queries.d.ts +10 -0
  517. package/dist/public-payload/excerpt.queries.js +38 -0
  518. package/dist/public-payload/excerpt.queries.js.map +1 -0
  519. package/dist/public-payload/field-values.d.ts +9 -0
  520. package/dist/public-payload/field-values.js +99 -0
  521. package/dist/public-payload/field-values.js.map +1 -0
  522. package/dist/public-payload/get-siblings.queries.d.ts +5 -0
  523. package/dist/public-payload/get-siblings.queries.js +117 -0
  524. package/dist/public-payload/get-siblings.queries.js.map +1 -0
  525. package/dist/public-payload/liquidjs-drop.d.ts +31 -0
  526. package/dist/public-payload/liquidjs-drop.js +45 -0
  527. package/dist/public-payload/liquidjs-drop.js.map +1 -0
  528. package/dist/public-payload/load-default-image.d.ts +8 -0
  529. package/dist/public-payload/load-default-image.js +52 -0
  530. package/dist/public-payload/load-default-image.js.map +1 -0
  531. package/dist/public-payload/make-basic-payload.d.ts +6 -0
  532. package/dist/public-payload/make-basic-payload.js +19 -0
  533. package/dist/public-payload/make-basic-payload.js.map +1 -0
  534. package/dist/public-payload/make-image-available.d.ts +26 -0
  535. package/dist/public-payload/make-image-available.js +38 -0
  536. package/dist/public-payload/make-image-available.js.map +1 -0
  537. package/dist/public-payload/page-values.queries.d.ts +27 -0
  538. package/dist/public-payload/page-values.queries.js +110 -0
  539. package/dist/public-payload/page-values.queries.js.map +1 -0
  540. package/dist/public-payload/parts.queries.d.ts +6 -0
  541. package/dist/public-payload/parts.queries.js +123 -0
  542. package/dist/public-payload/parts.queries.js.map +1 -0
  543. package/dist/public-payload/public-payload.types.d.ts +130 -0
  544. package/dist/public-payload/public-payload.types.js +3 -0
  545. package/dist/public-payload/public-payload.types.js.map +1 -0
  546. package/dist/public-payload/site-payload.d.ts +4 -0
  547. package/dist/public-payload/site-payload.js +43 -0
  548. package/dist/public-payload/site-payload.js.map +1 -0
  549. package/dist/public-payload/taxonomies.queries.d.ts +13 -0
  550. package/dist/public-payload/taxonomies.queries.js +45 -0
  551. package/dist/public-payload/taxonomies.queries.js.map +1 -0
  552. package/dist/public-payload/translations.queries.d.ts +7 -0
  553. package/dist/public-payload/translations.queries.js +62 -0
  554. package/dist/public-payload/translations.queries.js.map +1 -0
  555. package/dist/public.types.d.ts +5 -0
  556. package/dist/public.types.js +3 -0
  557. package/dist/public.types.js.map +1 -0
  558. package/dist/share/pino-app-log.d.ts +26 -0
  559. package/dist/share/pino-app-log.js +138 -0
  560. package/dist/share/pino-app-log.js.map +1 -0
  561. package/dist/share/read-configuration.d.ts +7 -0
  562. package/dist/share/read-configuration.js +31 -0
  563. package/dist/share/read-configuration.js.map +1 -0
  564. package/dist/site-backup/archiver.helper.d.ts +12 -0
  565. package/dist/site-backup/archiver.helper.js +43 -0
  566. package/dist/site-backup/archiver.helper.js.map +1 -0
  567. package/dist/site-backup/backup-tasks.d.ts +11 -0
  568. package/dist/site-backup/backup-tasks.js +98 -0
  569. package/dist/site-backup/backup-tasks.js.map +1 -0
  570. package/dist/site-backup/backup.d.ts +11 -0
  571. package/dist/site-backup/backup.helper.d.ts +3 -0
  572. package/dist/site-backup/backup.helper.js +13 -0
  573. package/dist/site-backup/backup.helper.js.map +1 -0
  574. package/dist/site-backup/backup.js +34 -0
  575. package/dist/site-backup/backup.js.map +1 -0
  576. package/dist/site-backup/default-data/default-config.d.ts +1 -0
  577. package/dist/site-backup/default-data/default-config.js +50 -0
  578. package/dist/site-backup/default-data/default-config.js.map +1 -0
  579. package/dist/site-backup/default-data/default-readme.d.ts +1 -0
  580. package/dist/site-backup/default-data/default-readme.js +8 -0
  581. package/dist/site-backup/default-data/default-readme.js.map +1 -0
  582. package/dist/site-context/db-init/db-init.d.ts +11 -0
  583. package/dist/site-context/db-init/db-init.js +37 -0
  584. package/dist/site-context/db-init/db-init.js.map +1 -0
  585. package/dist/site-context/db-init/ddl-migration.d.ts +13 -0
  586. package/dist/site-context/db-init/ddl-migration.js +26 -0
  587. package/dist/site-context/db-init/ddl-migration.js.map +1 -0
  588. package/dist/site-context/db-init/init-routing-points.d.ts +4 -0
  589. package/dist/site-context/db-init/init-routing-points.js +147 -0
  590. package/dist/site-context/db-init/init-routing-points.js.map +1 -0
  591. package/dist/site-context/site-conf.d.ts +17 -0
  592. package/dist/site-context/site-conf.js +103 -0
  593. package/dist/site-context/site-conf.js.map +1 -0
  594. package/dist/site-context/site-context.d.ts +11 -0
  595. package/dist/site-context/site-context.js +234 -0
  596. package/dist/site-context/site-context.js.map +1 -0
  597. package/dist/site-context/site-context.types.d.ts +46 -0
  598. package/dist/site-context/site-context.types.js +3 -0
  599. package/dist/site-context/site-context.types.js.map +1 -0
  600. package/dist/site-context/theme-conf-reader.d.ts +4 -0
  601. package/dist/site-context/theme-conf-reader.js +33 -0
  602. package/dist/site-context/theme-conf-reader.js.map +1 -0
  603. package/dist/site-context/theme-conf-types.d.ts +4 -0
  604. package/dist/site-context/theme-conf-types.js +3 -0
  605. package/dist/site-context/theme-conf-types.js.map +1 -0
  606. package/dist/site-schema/common-schema-reader.d.ts +6 -0
  607. package/dist/site-schema/common-schema-reader.js +29 -0
  608. package/dist/site-schema/common-schema-reader.js.map +1 -0
  609. package/dist/site-schema/merged-schema-lib.d.ts +30 -0
  610. package/dist/site-schema/merged-schema-lib.js +118 -0
  611. package/dist/site-schema/merged-schema-lib.js.map +1 -0
  612. package/dist/site-schema/read-locales.d.ts +24 -0
  613. package/dist/site-schema/read-locales.js +171 -0
  614. package/dist/site-schema/read-locales.js.map +1 -0
  615. package/dist/site-schema/site-schema-factory.d.ts +2 -0
  616. package/dist/site-schema/site-schema-factory.js +382 -0
  617. package/dist/site-schema/site-schema-factory.js.map +1 -0
  618. package/dist/site-schema/site-schema-helpers.d.ts +5 -0
  619. package/dist/site-schema/site-schema-helpers.js +27 -0
  620. package/dist/site-schema/site-schema-helpers.js.map +1 -0
  621. package/dist/site-schema/site-schema-lib-reader.d.ts +14 -0
  622. package/dist/site-schema/site-schema-lib-reader.js +48 -0
  623. package/dist/site-schema/site-schema-lib-reader.js.map +1 -0
  624. package/dist/start.d.ts +1 -0
  625. package/dist/start.js +5 -0
  626. package/dist/start.js.map +1 -0
  627. package/dist/types.to.json +1 -0
  628. package/locales/en.json +18 -0
  629. package/locales/fr.json +18 -0
  630. package/package.json +99 -0
  631. package/schema.gql +293 -0
  632. package/site-schema-lib/common-schema.json +36 -0
  633. package/site-schema-lib/common-schema.l10n.en.json +10 -0
  634. package/site-schema-lib/common-schema.l10n.fr.json +10 -0
  635. package/site-schema-lib/fields.site-schema.json +79 -0
  636. package/site-schema-lib/fields.site-schema.l10n.en.json +26 -0
  637. package/site-schema-lib/fields.site-schema.l10n.fr.json +26 -0
  638. package/site-schema-lib/gallery-page.site-schema.json +19 -0
  639. package/site-schema-lib/gallery-page.site-schema.l10n.en.json +11 -0
  640. package/site-schema-lib/gallery-page.site-schema.l10n.fr.json +11 -0
  641. package/site-schema-lib/lowcost.site-schema.json +84 -0
  642. package/site-schema-lib/lowcost.site-schema.l10n.en.json +30 -0
  643. package/site-schema-lib/lowcost.site-schema.l10n.fr.json +30 -0
  644. package/site-schema-lib/media-policies.site-schema.json +26 -0
  645. package/site-schema-lib/portfolio.site-schema.json +28 -0
  646. package/site-schema-lib/portfolio.site-schema.l10n.en.json +16 -0
  647. package/site-schema-lib/portfolio.site-schema.l10n.fr.json +16 -0
  648. package/site-schema-lib/post.site-schema.json +48 -0
  649. package/site-schema-lib/post.site-schema.l10n.en.json +28 -0
  650. package/site-schema-lib/post.site-schema.l10n.fr.json +27 -0
  651. package/site-schema-lib/simple-pages.site-schema.json +19 -0
  652. package/site-schema-lib/simple-pages.site-schema.l10n.en.json +11 -0
  653. package/site-schema-lib/simple-pages.site-schema.l10n.fr.json +11 -0
  654. package/site-schema-lib/special-page.site-schema.json +42 -0
  655. package/site-schema-lib/special-page.site-schema.l10n.en.json +16 -0
  656. package/site-schema-lib/special-page.site-schema.l10n.fr.json +16 -0
  657. package/site-schema-lib/tour.site-schema.json +70 -0
  658. package/site-schema-lib/tour.site-schema.l10n.en.json +37 -0
  659. package/site-schema-lib/tour.site-schema.l10n.fr.json +37 -0
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSiblingDocuments = void 0;
4
+ const data_formatters_lib_1 = require("@paroi/data-formatters-lib");
5
+ const anywhere_lib_1 = require("@paroicms/anywhere-lib");
6
+ const child_ordering_query_1 = require("../common/child-ordering-query");
7
+ const text_cache_1 = require("../common/text-cache");
8
+ const ddl_migration_1 = require("../site-context/db-init/ddl-migration");
9
+ const create_page_drop_1 = require("./create-page-drop");
10
+ const page_values_queries_1 = require("./page-values.queries");
11
+ async function getSiblingDocuments(siteContext, renderingContext, documentId) {
12
+ const parentLeaf = await getParentLeaf(siteContext, renderingContext.tracker, documentId.leafId);
13
+ if (!parentLeaf)
14
+ return { previous: undefined, next: undefined };
15
+ const parentDocumentType = (0, anywhere_lib_1.getDocumentTypeByLeafType)(siteContext.siteSchema, parentLeaf.parentLeafType);
16
+ if (!parentDocumentType.childOrdering)
17
+ return { previous: undefined, next: undefined };
18
+ const { previousDocumentId, nextDocumentId } = await getSiblingDocumentIds(siteContext, renderingContext.tracker, {
19
+ parentDocumentType,
20
+ parentLeafId: parentLeaf.parentLeafId,
21
+ documentId,
22
+ });
23
+ if (previousDocumentId) {
24
+ renderingContext.addDependencyKey((0, text_cache_1.makeCacheDependencyKey)({ documentId: previousDocumentId }));
25
+ }
26
+ if (nextDocumentId) {
27
+ renderingContext.addDependencyKey((0, text_cache_1.makeCacheDependencyKey)({ documentId: nextDocumentId }));
28
+ }
29
+ return {
30
+ previous: previousDocumentId
31
+ ? (0, create_page_drop_1.createPagePayloadDrop)(siteContext, renderingContext, await (0, page_values_queries_1.getPageItem)(siteContext, renderingContext.tracker, previousDocumentId))
32
+ : undefined,
33
+ next: nextDocumentId
34
+ ? (0, create_page_drop_1.createPagePayloadDrop)(siteContext, renderingContext, await (0, page_values_queries_1.getPageItem)(siteContext, renderingContext.tracker, nextDocumentId))
35
+ : undefined,
36
+ };
37
+ }
38
+ exports.getSiblingDocuments = getSiblingDocuments;
39
+ async function getParentLeaf(siteContext, tracker, leafId) {
40
+ const row = await siteContext.mainCn
41
+ .createQueryBuilder()
42
+ .select("l2.leafType", "parentLeafType")
43
+ .addSelect("l2.id", "parentId")
44
+ .from("PaLeaf", "l")
45
+ .where("l.id = :leafId", { leafId })
46
+ .innerJoin("PaLeaf", "l2", "l2.id = l.parentId")
47
+ .getRawOne();
48
+ tracker.trackAccess(ddl_migration_1.dbSchemaName, "PaLeaf", "read");
49
+ if (!row)
50
+ return;
51
+ return {
52
+ parentLeafType: (0, data_formatters_lib_1.strVal)(row.parentLeafType),
53
+ parentLeafId: (0, data_formatters_lib_1.strVal)(row.parentId),
54
+ };
55
+ }
56
+ class MissingOrderByError extends Error {
57
+ }
58
+ async function getSiblingDocumentIds(siteContext, tracker, { documentId, parentLeafId, parentDocumentType, }) {
59
+ const { lang } = documentId;
60
+ let query;
61
+ try {
62
+ query = siteContext.mainCn
63
+ .createQueryBuilder()
64
+ .select("b.prevId", "prevId")
65
+ .addSelect("b.nextId", "nextId")
66
+ .from((subQuery) => {
67
+ subQuery
68
+ .select("l.id", "id")
69
+ .from("PaLeaf", "l")
70
+ .innerJoin("PaSection", "s", "s.leafId = l.id and s.lang = :lang", { lang })
71
+ .innerJoin("PaDocument", "d", "d.leafId = s.leafId and d.lang = s.lang")
72
+ .where("l.parentId = :parentId", {
73
+ parentId: parentLeafId,
74
+ })
75
+ .andWhere("s.ready = 1")
76
+ .andWhere("l.publishDate <= current_timestamp");
77
+ const { orderBy } = (0, child_ordering_query_1.applyChildOrderingOnQuery)(siteContext, {
78
+ query: subQuery,
79
+ parentDocumentType,
80
+ orderByAsString: true,
81
+ });
82
+ if (!orderBy)
83
+ throw new MissingOrderByError();
84
+ subQuery
85
+ .addSelect(`lag(l.id) over (order by ${orderBy})`, "prevId")
86
+ .addSelect(`lead(l.id) over (order by ${orderBy})`, "nextId");
87
+ return subQuery;
88
+ }, "b")
89
+ .where("b.id = :leafId", { leafId: documentId.leafId });
90
+ }
91
+ catch (err) {
92
+ if (err instanceof MissingOrderByError)
93
+ return {};
94
+ throw err;
95
+ }
96
+ const row = await query.getRawOne();
97
+ tracker.trackAccess(ddl_migration_1.dbSchemaName, "PaLeaf", "read");
98
+ if (!row)
99
+ return {};
100
+ const prevLeafId = (0, data_formatters_lib_1.strValOrUndef)(row.prevId);
101
+ const nextLeafId = (0, data_formatters_lib_1.strValOrUndef)(row.nextId);
102
+ return {
103
+ previousDocumentId: prevLeafId === undefined
104
+ ? undefined
105
+ : {
106
+ leafId: prevLeafId,
107
+ lang,
108
+ },
109
+ nextDocumentId: nextLeafId === undefined
110
+ ? undefined
111
+ : {
112
+ leafId: nextLeafId,
113
+ lang,
114
+ },
115
+ };
116
+ }
117
+ //# sourceMappingURL=get-siblings.queries.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-siblings.queries.js","sourceRoot":"","sources":["../../src/public-payload/get-siblings.queries.ts"],"names":[],"mappings":";;;AAAA,oEAAmE;AACnE,yDAKgC;AAGhC,yEAA2E;AAC3E,qDAA8D;AAE9D,yEAAqE;AAErE,yDAA2D;AAC3D,+DAAoD;AAG7C,KAAK,UAAU,mBAAmB,CACvC,WAAwB,EACxB,gBAAkC,EAClC,UAA2B;IAE3B,MAAM,UAAU,GAAG,MAAM,aAAa,CAAC,WAAW,EAAE,gBAAgB,CAAC,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IACjG,IAAI,CAAC,UAAU;QAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAEjE,MAAM,kBAA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cAAc,EACZ,UAAU,KAAK,SAAS;YACtB,CAAC,CAAC,SAAS;YACX,CAAC,CAAC;gBACE,MAAM,EAAE,UAAU;gBAClB,IAAI;aACL;KACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { ParsedSectionId } from "@paroicms/anywhere-lib";
2
+ import { Drop } from "liquidjs";
3
+ import { RenderingContext } from "../modules/public-site/liquidjs-rendering/rendering-context";
4
+ import { SiteContext } from "../site-context/site-context.types";
5
+ export declare const valuesSymbol: unique symbol;
6
+ export type DropValues<T> = {
7
+ [name in keyof T]: DropOrLiquidValue;
8
+ };
9
+ export type DropOrLiquidValue = DropInst<any> | LiquidValue | (() => Promise<DropOrLiquidValue> | DropOrLiquidValue);
10
+ export type LiquidValue = PrimitiveLiquidValue | object | DropOrLiquidValue[];
11
+ export type PrimitiveLiquidValue = string | number | boolean | undefined;
12
+ export type DropInst<T> = Drop & {
13
+ [valuesSymbol]: DropValues<T>;
14
+ };
15
+ export type CacheKeyOptions = DocumentCacheKeyOptions | SiteCacheKeyOptions;
16
+ export interface DocumentCacheKeyOptions {
17
+ documentId: ParsedSectionId;
18
+ keySuffix?: string;
19
+ keyPrefix?: string;
20
+ }
21
+ export interface SiteCacheKeyOptions {
22
+ lang: string;
23
+ keyPrefix?: string;
24
+ }
25
+ export declare function createLiquidJsDrop<T>({ renderingContext, cacheKeyOptions, values, }: {
26
+ renderingContext: RenderingContext;
27
+ cacheKeyOptions: CacheKeyOptions;
28
+ values: DropValues<T>;
29
+ }, { siteLog }: Pick<SiteContext, "siteLog">): DropInst<T>;
30
+ export declare function loadOrFromRenderingCache<T>(renderingContext: RenderingContext, cacheKey: string, load: () => T): Promise<T>;
31
+ export declare function makeDropCacheKeyForRendering(propName: string, cacheKeyOptions: CacheKeyOptions): string;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.makeDropCacheKeyForRendering = exports.loadOrFromRenderingCache = exports.createLiquidJsDrop = exports.valuesSymbol = void 0;
4
+ const liquidjs_1 = require("liquidjs");
5
+ exports.valuesSymbol = Symbol("values");
6
+ function createLiquidJsDrop({ renderingContext, cacheKeyOptions, values, }, { siteLog }) {
7
+ const drop = Object.create(liquidjs_1.Drop.prototype);
8
+ drop.liquidMethodMissing = async (name) => {
9
+ const val = values[name];
10
+ if (typeof val !== "function")
11
+ return val;
12
+ try {
13
+ return await loadOrFromRenderingCache(renderingContext, makeDropCacheKeyForRendering(name, cacheKeyOptions), val);
14
+ }
15
+ catch (error) {
16
+ siteLog.error(`Error when generating '${name}':`, error);
17
+ throw error;
18
+ }
19
+ };
20
+ drop[exports.valuesSymbol] = values;
21
+ return drop;
22
+ }
23
+ exports.createLiquidJsDrop = createLiquidJsDrop;
24
+ async function loadOrFromRenderingCache(renderingContext, cacheKey, load) {
25
+ const cacheVal = renderingContext.getValueFromCache(cacheKey);
26
+ if (cacheVal.found)
27
+ return cacheVal.val;
28
+ const result = await load();
29
+ renderingContext.setValueIntoCache(cacheKey, result);
30
+ return result;
31
+ }
32
+ exports.loadOrFromRenderingCache = loadOrFromRenderingCache;
33
+ function makeDropCacheKeyForRendering(propName, cacheKeyOptions) {
34
+ if ("documentId" in cacheKeyOptions) {
35
+ const { documentId, keySuffix, keyPrefix } = cacheKeyOptions;
36
+ return `drop:${documentId.lang}:${documentId.leafId}${keyPrefix ? `:${keyPrefix}` : ""}:${propName}${keySuffix ? `:${keySuffix}` : ""}`;
37
+ }
38
+ return makeSiteFieldDropCacheKeyForRendering(propName, cacheKeyOptions);
39
+ }
40
+ exports.makeDropCacheKeyForRendering = makeDropCacheKeyForRendering;
41
+ function makeSiteFieldDropCacheKeyForRendering(fieldName, cacheKeyOptions) {
42
+ const { lang, keyPrefix } = cacheKeyOptions;
43
+ return `drop${keyPrefix ? `:${keyPrefix}` : ""}:${lang}:${fieldName}`;
44
+ }
45
+ //# sourceMappingURL=liquidjs-drop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,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,MAAM,CAAC;AAChB,CAAC;AAXD,4DAWC;AAED,SAAgB,4BAA4B,CAAC,QAAgB,EAAE,eAAgC;IAC7F,IAAI,YAAY,IAAI,eAAe,EAAE,CAAC;QACpC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,eAAe,CAAC;QAC7D,OAAO,QAAQ,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,MAAM,GACjD,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC,EAChC,IAAI,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACpD,CAAC;IACD,OAAO,qCAAqC,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;AAC1E,CAAC;AARD,oEAQC;AAED,SAAS,qCAAqC,CAC5C,SAAiB,EACjB,eAAoC;IAEpC,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,eAAe,CAAC;IAC5C,OAAO,OAAO,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,IAAI,SAAS,EAAE,CAAC;AACxE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { FieldType } from "@paroicms/anywhere-lib";
2
+ import { Tracker } from "@paroicms/server-lib";
3
+ import { SiteContext } from "../site-context/site-context.types";
4
+ export declare function loadDefaultImageUid(siteContext: SiteContext, tracker: Tracker, options: {
5
+ fieldTypes: FieldType[] | undefined;
6
+ leafId: string;
7
+ lang: string;
8
+ }): Promise<string | undefined>;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.loadDefaultImageUid = void 0;
4
+ const common_1 = require("@nestjs/common");
5
+ const anywhere_lib_1 = require("@paroicms/anywhere-lib");
6
+ const media_handles_helpers_1 = require("../common/media-handles.helpers");
7
+ const medias_helpers_1 = require("../modules/public-site/helpers/medias.helpers");
8
+ const ddl_migration_1 = require("../site-context/db-init/ddl-migration");
9
+ async function loadDefaultImageUid(siteContext, tracker, options) {
10
+ const { fieldTypes, leafId, lang } = options;
11
+ const featuredImage = await (0, medias_helpers_1.getFeaturedImageOf)(siteContext, leafId);
12
+ const defaultImageUid = featuredImage
13
+ ? featuredImage.uid
14
+ : await getFirstImageUid(siteContext, tracker, { leafId, fieldTypes, lang });
15
+ return defaultImageUid;
16
+ }
17
+ exports.loadDefaultImageUid = loadDefaultImageUid;
18
+ async function getFirstImageUid(siteContext, tracker, { leafId, fieldTypes, lang }) {
19
+ const row = await siteContext.mainCn
20
+ .createQueryBuilder()
21
+ .select("l.leafType", "leafType")
22
+ .from("PaLeaf", "l")
23
+ .where("l.id = :leafId", { leafId })
24
+ .getRawOne();
25
+ tracker.trackAccess(ddl_migration_1.dbSchemaName, "PaLeaf", "read");
26
+ if (!row)
27
+ throw new common_1.NotFoundException(`unknown leaf '${leafId}'`);
28
+ const selectedFields = [];
29
+ for (const f of fieldTypes ?? []) {
30
+ if (f.storedAs !== "mediaHandle" && (!(0, anywhere_lib_1.isFTextFieldType)(f) || !f.withGallery)) {
31
+ continue;
32
+ }
33
+ if (f.useAsDefaultImage !== undefined) {
34
+ const useAsDefaultImage = f.useAsDefaultImage;
35
+ selectedFields.push({ f, useAsDefaultImage });
36
+ }
37
+ }
38
+ const orderedFieldTypes = selectedFields.sort((a, b) => a.useAsDefaultImage - b.useAsDefaultImage);
39
+ let newFeaturedImageUid;
40
+ for (const item of orderedFieldTypes) {
41
+ const handle = (0, media_handles_helpers_1.getHandleOfField)(siteContext, { leafId, fieldType: item.f, lang });
42
+ const firstImageUid = await siteContext.mediaStorage.getFirstImageUid({
43
+ handle: handle,
44
+ });
45
+ if (firstImageUid) {
46
+ newFeaturedImageUid = firstImageUid;
47
+ break;
48
+ }
49
+ }
50
+ return newFeaturedImageUid;
51
+ }
52
+ //# sourceMappingURL=load-default-image.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-default-image.js","sourceRoot":"","sources":["../../src/public-payload/load-default-image.ts"],"names":[],"mappings":";;;AAAA,2CAAmD;AACnD,yDAA0E;AAE1E,2EAAmE;AACnE,kFAAmF;AACnF,yEAAqE;AAG9D,KAAK,UAAU,mBAAmB,CACvC,WAAwB,EACxB,OAAgB,EAChB,OAA8E;IAE9E,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IAC7C,MAAM,aAAa,GAAG,MAAM,IAAA,mCAAkB,EAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACpE,MAAM,eAAe,GAAG,aAAa;QACnC,CAAC,CAAC,aAAa,CAAC,GAAG;QACnB,CAAC,CAAC,MAAM,gBAAgB,CAAC,WAAW,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;IAC/E,OAAO,eAAe,CAAC;AACzB,CAAC;AAXD,kDAWC;AAED,KAAK,UAAU,gBAAgB,CAC7B,WAAwB,EACxB,OAAgB,EAChB,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAA8D;IAExF,MAAM,GAAG,GAAG,MAAM,WAAW,CAAC,MAAM;SACjC,kBAAkB,EAAE;SACpB,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC;SAChC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC;SACnB,KAAK,CAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,CAAC;SACnC,SAAS,EAAO,CAAC;IACpB,OAAO,CAAC,WAAW,CAAC,4BAAY,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IACpD,IAAI,CAAC,GAAG;QAAE,MAAM,IAAI,0BAAiB,CAAC,iBAAiB,MAAM,GAAG,CAAC,CAAC;IAElE,MAAM,cAAc,GAGd,EAAE,CAAC;IACT,KAAK,MAAM,CAAC,IAAI,UAAU,IAAI,EAAE,EAAE,CAAC;QACjC,IAAI,CAAC,CAAC,QAAQ,KAAK,aAAa,IAAI,CAAC,CAAC,IAAA,+BAAgB,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,CAAC;YAC7E,SAAS;QACX,CAAC;QACD,IAAI,CAAC,CAAC,iBAAiB,KAAK,SAAS,EAAE,CAAC;YACtC,MAAM,iBAAiB,GAAG,CAAC,CAAC,iBAAiB,CAAC;YAC9C,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,iBAAiB,EAAE,CAAC,CAAC;QAChD,CAAC;IACH,CAAC;IAED,MAAM,iBAAiB,GAAG,cAAc,CAAC,IAAI,CAC3C,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,iBAAiB,GAAG,CAAC,CAAC,iBAAiB,CACpD,CAAC;IAEF,IAAI,mBAAuC,CAAC;IAC5C,KAAK,MAAM,IAAI,IAAI,iBAAiB,EAAE,CAAC;QACrC,MAAM,MAAM,GAAG,IAAA,wCAAgB,EAAC,WAAW,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;QAClF,MAAM,aAAa,GAAG,MAAM,WAAW,CAAC,YAAY,CAAC,gBAAgB,CAAC;YACpE,MAAM,EAAE,MAAM;SACf,CAAC,CAAC;QACH,IAAI,aAAa,EAAE,CAAC;YAClB,mBAAmB,GAAG,aAAa,CAAC;YACpC,MAAM;QACR,CAAC;IACH,CAAC;IAED,OAAO,mBAAmB,CAAC;AAC7B,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { RenderingContext } from "../modules/public-site/liquidjs-rendering/rendering-context";
2
+ import { SiteContext } from "../site-context/site-context.types";
3
+ import type * as publicPayload from "./public-payload.types";
4
+ export declare function makePublicBasicPayload(siteContext: SiteContext, renderingContext: RenderingContext, options?: {
5
+ lang?: string;
6
+ }): publicPayload.DetachedPublicPayload;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.makePublicBasicPayload = void 0;
4
+ const site_payload_1 = require("./site-payload");
5
+ const translations_queries_1 = require("./translations.queries");
6
+ function makePublicBasicPayload(siteContext, renderingContext, options = {}) {
7
+ const lang = options.lang ?? siteContext.siteSchema.langs[0];
8
+ return {
9
+ site: (0, site_payload_1.makeSitePayload)(siteContext, renderingContext, lang),
10
+ page: {
11
+ kind: "detached",
12
+ lang,
13
+ langLabel: siteContext.siteSchema.langLabels[lang],
14
+ translations: (0, translations_queries_1.makeBasicTranslationsPayload)(siteContext),
15
+ },
16
+ };
17
+ }
18
+ exports.makePublicBasicPayload = makePublicBasicPayload;
19
+ //# sourceMappingURL=make-basic-payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"make-basic-payload.js","sourceRoot":"","sources":["../../src/public-payload/make-basic-payload.ts"],"names":[],"mappings":";;;AAGA,iDAAiD;AACjD,iEAAsE;AAEtE,SAAgB,sBAAsB,CACpC,WAAwB,EACxB,gBAAkC,EAClC,UAA6B,EAAE;IAE/B,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC7D,OAAO;QACL,IAAI,EAAE,IAAA,8BAAe,EAAC,WAAW,EAAE,gBAAgB,EAAE,IAAI,CAAC;QAC1D,IAAI,EAAE;YACJ,IAAI,EAAE,UAAU;YAChB,IAAI;YACJ,SAAS,EAAE,WAAW,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC;YAClD,YAAY,EAAE,IAAA,mDAA4B,EAAC,WAAW,CAAC;SACxD;KACF,CAAC;AACJ,CAAC;AAfD,wDAeC"}
@@ -0,0 +1,26 @@
1
+ import { VariantName } from "@paroicms/server-image-cache-engine";
2
+ import { RenderingContext } from "../modules/public-site/liquidjs-rendering/rendering-context";
3
+ import { SiteContext } from "../site-context/site-context.types";
4
+ export interface PublicImage {
5
+ url: string;
6
+ width: number;
7
+ height: number;
8
+ mediaType: string;
9
+ }
10
+ export interface MakeImageAvailableByHandleOptions {
11
+ imageSel: {
12
+ handle: string;
13
+ };
14
+ size: VariantName;
15
+ autoCrop?: boolean;
16
+ }
17
+ export interface MakeImageAvailableByUidOptions {
18
+ imageSel: {
19
+ uid: string;
20
+ };
21
+ size: VariantName;
22
+ autoCrop?: boolean;
23
+ }
24
+ export declare function makeImageAvailable(siteContext: SiteContext, renderingContext: RenderingContext, options: MakeImageAvailableByHandleOptions): Promise<PublicImage | undefined>;
25
+ export declare function makeImageAvailable(siteContext: SiteContext, renderingContext: RenderingContext, options: MakeImageAvailableByUidOptions): Promise<PublicImage>;
26
+ export declare function makeImageAvailable(siteContext: SiteContext, renderingContext: RenderingContext, options: MakeImageAvailableByHandleOptions | MakeImageAvailableByUidOptions): Promise<PublicImage | undefined>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.makeImageAvailable = void 0;
4
+ const utils_helper_1 = require("../helpers/utils-helper");
5
+ async function makeImageAvailable(siteContext, renderingContext, { imageSel, size, autoCrop = false, }) {
6
+ const media = "uid" in imageSel
7
+ ? await siteContext.mediaStorage.getMedia(imageSel)
8
+ : await siteContext.mediaStorage.getMedia(imageSel);
9
+ if (!media) {
10
+ if ("handle" in imageSel)
11
+ return;
12
+ throw new Error(`missing image '${imageSelToString(imageSel)}'`);
13
+ }
14
+ if (media.kind !== "image")
15
+ throw new Error(`media '${media.uid}' should be an image`);
16
+ const { width, height, completeVariantName } = siteContext.imageCache.makeImageAvailable({
17
+ imageRef: {
18
+ imageUid: media.uid,
19
+ width: media.width,
20
+ height: media.height,
21
+ mediaType: media.mediaType,
22
+ },
23
+ variantName: size,
24
+ autoCrop,
25
+ dependsOnCacheKey: renderingContext.cacheKey,
26
+ });
27
+ return {
28
+ url: `/medias/${media.uid}-${completeVariantName}.${(0, utils_helper_1.mediaTypeToFileExtension)(media.mediaType)}`,
29
+ width,
30
+ height,
31
+ mediaType: media.mediaType,
32
+ };
33
+ }
34
+ exports.makeImageAvailable = makeImageAvailable;
35
+ function imageSelToString(imageSel) {
36
+ return "uid" in imageSel ? imageSel.uid : imageSel.handle;
37
+ }
38
+ //# sourceMappingURL=make-image-available.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"make-image-available.js","sourceRoot":"","sources":["../../src/public-payload/make-image-available.ts"],"names":[],"mappings":";;;AACA,0DAAmE;AAsC5D,KAAK,UAAU,kBAAkB,CACtC,WAAwB,EACxB,gBAAkC,EAClC,EACE,QAAQ,EACR,IAAI,EACJ,QAAQ,GAAG,KAAK,GACmD;IAErE,MAAM,KAAK,GACT,KAAK,IAAI,QAAQ;QACf,CAAC,CAAC,MAAM,WAAW,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC;QACnD,CAAC,CAAC,MAAM,WAAW,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAExD,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,IAAI,QAAQ,IAAI,QAAQ;YAAE,OAAO;QACjC,MAAM,IAAI,KAAK,CAAC,kBAAkB,gBAAgB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IACnE,CAAC;IACD,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO;QAAE,MAAM,IAAI,KAAK,CAAC,UAAU,KAAK,CAAC,GAAG,sBAAsB,CAAC,CAAC;IAEvF,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,mBAAmB,EAAE,GAAG,WAAW,CAAC,UAAU,CAAC,kBAAkB,CAAC;QACvF,QAAQ,EAAE;YACR,QAAQ,EAAE,KAAK,CAAC,GAAG;YACnB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,SAAS,EAAE,KAAK,CAAC,SAAS;SAC3B;QACD,WAAW,EAAE,IAAI;QACjB,QAAQ;QACR,iBAAiB,EAAE,gBAAgB,CAAC,QAAQ;KAC7C,CAAC,CAAC;IAEH,OAAO;QACL,GAAG,EAAE,WAAW,KAAK,CAAC,GAAG,IAAI,mBAAmB,IAAI,IAAA,uCAAwB,EAAC,KAAK,CAAC,SAAS,CAAC,EAAE;QAC/F,KAAK;QACL,MAAM;QACN,SAAS,EAAE,KAAK,CAAC,SAAS;KAC3B,CAAC;AACJ,CAAC;AAtCD,gDAsCC;AAED,SAAS,gBAAgB,CAAC,QAA8C;IACtE,OAAO,KAAK,IAAI,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;AAC5D,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { ChildOrdering, Obj, ParsedSectionId } from "@paroicms/anywhere-lib";
2
+ import { Tracker } from "@paroicms/server-lib";
3
+ import { SelectQueryBuilder } from "typeorm";
4
+ import { SiteContext } from "../site-context/site-context.types";
5
+ import { PageValues } from "./public-payload.types";
6
+ export declare function getPageItem(siteContext: SiteContext, tracker: Tracker, documentId: ParsedSectionId): Promise<PageValues>;
7
+ export interface PageListWithTotal {
8
+ list: PageValues[];
9
+ total: number;
10
+ }
11
+ export declare function getPageItemsWithTotal(siteContext: SiteContext, tracker: Tracker, options: GetPagesOptions): Promise<PageListWithTotal>;
12
+ export interface GetPagesOptions {
13
+ parentId: ParsedSectionId;
14
+ orderBy?: ChildOrdering;
15
+ startIndex?: number;
16
+ limit?: number;
17
+ flaggedWithTermId?: string;
18
+ }
19
+ export declare function getPageItems(siteContext: SiteContext, tracker: Tracker, options: GetPagesOptions): Promise<PageValues[]>;
20
+ export declare function querySelectPageValues(query: SelectQueryBuilder<any>, { omitId }?: {
21
+ omitId?: boolean;
22
+ }): void;
23
+ export declare function formatPageValues(row: Obj, { lang, leafId, leafType }?: {
24
+ lang?: string;
25
+ leafId?: string;
26
+ leafType?: string;
27
+ }): PageValues;
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.formatPageValues = exports.querySelectPageValues = exports.getPageItems = exports.getPageItemsWithTotal = exports.getPageItem = void 0;
4
+ const data_formatters_lib_1 = require("@paroi/data-formatters-lib");
5
+ const anywhere_lib_1 = require("@paroicms/anywhere-lib");
6
+ const child_ordering_query_1 = require("../common/child-ordering-query");
7
+ const leaf_queries_1 = require("../modules/core/leaf/leaf.queries");
8
+ const ddl_migration_1 = require("../site-context/db-init/ddl-migration");
9
+ async function getPageItem(siteContext, tracker, documentId) {
10
+ const query = siteContext.mainCn.createQueryBuilder();
11
+ querySelectPageValues(query, { omitId: true });
12
+ query
13
+ .from("PaDocument", "d")
14
+ .innerJoin("PaSection", "s", "s.leafId = d.leafId and s.lang = d.lang")
15
+ .innerJoin("PaLeaf", "l", "l.id = d.leafId")
16
+ .where("d.leafId = :leafId", { leafId: documentId.leafId })
17
+ .andWhere("d.lang = :lang", { lang: documentId.lang })
18
+ .andWhere("s.ready = 1")
19
+ .andWhere("l.publishDate <= current_timestamp");
20
+ const row = await query.getRawOne();
21
+ tracker.trackAccess(ddl_migration_1.dbSchemaName, "PaDocument", "read");
22
+ if (!row)
23
+ throw new Error(`unknown page '${documentId.lang}:${documentId.leafId}'`);
24
+ return formatPageValues(row, documentId);
25
+ }
26
+ exports.getPageItem = getPageItem;
27
+ async function getPageItemsWithTotal(siteContext, tracker, options) {
28
+ const items = await getPageItems(siteContext, tracker, options);
29
+ const total = options.limit && options.limit === items.length
30
+ ? await countPageItems(siteContext, tracker, { parentId: options.parentId })
31
+ : items.length;
32
+ return {
33
+ list: items,
34
+ total,
35
+ };
36
+ }
37
+ exports.getPageItemsWithTotal = getPageItemsWithTotal;
38
+ async function getPageItems(siteContext, tracker, options) {
39
+ const { parentId } = options;
40
+ const parentLeafType = await (0, leaf_queries_1.getLeafTypeOf)(siteContext, parentId.leafId);
41
+ const parentDocumentType = (0, anywhere_lib_1.getDocumentTypeByLeafType)(siteContext.siteSchema, parentLeafType);
42
+ const query = createBasePageItemsQueryBuilder(siteContext, { parentId });
43
+ querySelectPageValues(query);
44
+ (0, child_ordering_query_1.applyChildOrderingOnQuery)(siteContext, {
45
+ query,
46
+ parentDocumentType,
47
+ childOrdering: options.orderBy,
48
+ });
49
+ if (options.flaggedWithTermId !== undefined) {
50
+ query
51
+ .innerJoin("PaTermFlag", "f", "f.flaggedId = l.id")
52
+ .andWhere("f.termId = :termId", { termId: options.flaggedWithTermId });
53
+ }
54
+ if (options.startIndex !== undefined) {
55
+ query.offset(options.startIndex);
56
+ }
57
+ if (options.limit !== undefined) {
58
+ query.limit(options.limit);
59
+ }
60
+ const rows = await query.getRawMany();
61
+ tracker.trackAccess(ddl_migration_1.dbSchemaName, "PaDocument", "read");
62
+ return rows.map((row) => formatPageValues(row, { lang: parentId.lang }));
63
+ }
64
+ exports.getPageItems = getPageItems;
65
+ async function countPageItems(siteContext, tracker, { parentId }) {
66
+ const row = await createBasePageItemsQueryBuilder(siteContext, { parentId })
67
+ .select("count(1)", "total")
68
+ .getRawOne();
69
+ tracker.trackAccess(ddl_migration_1.dbSchemaName, "PaDocument", "read");
70
+ return (0, data_formatters_lib_1.nbVal)(row.total);
71
+ }
72
+ function querySelectPageValues(query, { omitId } = {}) {
73
+ query.select("l.leafType", "leafType");
74
+ if (!omitId) {
75
+ query.addSelect("l.id", "leafId");
76
+ }
77
+ query
78
+ .addSelect("l.relativeId", "relativeId")
79
+ .addSelect("d.title", "title")
80
+ .addSelect("d.slug", "slug")
81
+ .addSelect("l.publishDate", "publishDate")
82
+ .addSelect("d.metaDescription", "metaDescription")
83
+ .addSelect("d.metaKeywords", "metaKeywords");
84
+ }
85
+ exports.querySelectPageValues = querySelectPageValues;
86
+ function createBasePageItemsQueryBuilder(siteContext, { parentId }) {
87
+ return siteContext.mainCn
88
+ .createQueryBuilder()
89
+ .from("PaLeaf", "l")
90
+ .innerJoin("PaSection", "s", "s.leafId = l.id and s.lang = :lang", { lang: parentId.lang })
91
+ .innerJoin("PaDocument", "d", "d.leafId = s.leafId and d.lang = s.lang")
92
+ .where("l.parentId = :parentId", { parentId: parentId.leafId })
93
+ .andWhere("s.ready = 1")
94
+ .andWhere("l.publishDate <= current_timestamp");
95
+ }
96
+ function formatPageValues(row, { lang, leafId, leafType } = {}) {
97
+ return {
98
+ leafType: leafType ?? (0, data_formatters_lib_1.strVal)(row.leafType),
99
+ leafId: leafId ?? (0, data_formatters_lib_1.strVal)(row.leafId),
100
+ lang: lang ?? (0, data_formatters_lib_1.strVal)(row.lang),
101
+ relativeId: (0, data_formatters_lib_1.strVal)(row.relativeId),
102
+ title: (0, data_formatters_lib_1.strValOrUndef)(row.title),
103
+ slug: (0, data_formatters_lib_1.strValOrUndef)(row.slug),
104
+ publishDate: (0, data_formatters_lib_1.strVal)(row.publishDate),
105
+ metaDescription: (0, data_formatters_lib_1.strValOrUndef)(row.metaDescription),
106
+ metaKeywords: (0, data_formatters_lib_1.strValOrUndef)(row.metaKeywords),
107
+ };
108
+ }
109
+ exports.formatPageValues = formatPageValues;
110
+ //# sourceMappingURL=page-values.queries.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-values.queries.js","sourceRoot":"","sources":["../../src/public-payload/page-values.queries.ts"],"names":[],"mappings":";;;AAAA,oEAA0E;AAC1E,yDAKgC;AAGhC,yEAA2E;AAC3E,oEAAkE;AAClE,yEAAqE;AAI9D,KAAK,UAAU,WAAW,CAC/B,WAAwB,EACxB,OAAgB,EAChB,UAA2B;IAE3B,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,kBAAkB,EAAE,CAAC;IACtD,qBAAqB,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IAC/C,KAAK;SACF,IAAI,CAAC,YAAY,EAAE,GAAG,CAAC;SACvB,SAAS,CAAC,WAAW,EAAE,GAAG,EAAE,yCAAyC,CAAC;SACtE,SAAS,CAAC,QAAQ,EAAE,GAAG,EAAE,iBAAiB,CAAC;SAC3C,KAAK,CAAC,oBAA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,CAAC,aAAa,CAAC;SACvB,QAAQ,CAAC,oCAAoC,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,gBAAgB,CAC9B,GAAQ,EACR,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,KAA4D,EAAE;IAEtF,OAAO;QACL,QAAQ,EAAE,QAAQ,IAAI,IAAA,4BAAM,EAAC,GAAG,CAAC,QAAQ,CAAC;QAC1C,MAAM,EAAE,MAAM,IAAI,IAAA,4BAAM,EAAC,GAAG,CAAC,MAAM,CAAC;QACpC,IAAI,EAAE,IAAI,IAAI,IAAA,4BAAM,EAAC,GAAG,CAAC,IAAI,CAAC;QAC9B,UAAU,EAAE,IAAA,4BAAM,EAAC,GAAG,CAAC,UAAU,CAAC;QAClC,KAAK,EAAE,IAAA,mCAAa,EAAC,GAAG,CAAC,KAAK,CAAC;QAC/B,IAAI,EAAE,IAAA,mCAAa,EAAC,GAAG,CAAC,IAAI,CAAC;QAC7B,WAAW,EAAE,IAAA,4BAAM,EAAC,GAAG,CAAC,WAAW,CAAC;QACpC,eAAe,EAAE,IAAA,mCAAa,EAAC,GAAG,CAAC,eAAe,CAAC;QACnD,YAAY,EAAE,IAAA,mCAAa,EAAC,GAAG,CAAC,YAAY,CAAC;KAC9C,CAAC;AACJ,CAAC;AAfD,4CAeC"}
@@ -0,0 +1,6 @@
1
+ import { ParsedSectionId, PartListSchema } from "@paroicms/anywhere-lib";
2
+ import { Tracker } from "@paroicms/server-lib";
3
+ import { SiteContext } from "../site-context/site-context.types";
4
+ import type * as publicPayload from "./public-payload.types";
5
+ export declare function loadPartsOf(siteContext: SiteContext, tracker: Tracker, parentId: ParsedSectionId, listType: Pick<PartListSchema, "listName">): Promise<publicPayload.PagePartValues[]>;
6
+ export declare function countPartsOf(siteContext: SiteContext, tracker: Tracker, parentId: ParsedSectionId, listType: Pick<PartListSchema, "listName">): Promise<number>;