@paroicms/server 0.150.0 → 0.151.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 (570) hide show
  1. package/README.md +10 -7
  2. package/package.json +17 -8
  3. package/dist/cli.d.ts +0 -2
  4. package/dist/cli.js +0 -5
  5. package/dist/cli.js.map +0 -1
  6. package/dist/common/child-ordering-query.d.ts +0 -13
  7. package/dist/common/child-ordering-query.js +0 -107
  8. package/dist/common/child-ordering-query.js.map +0 -1
  9. package/dist/common/data-format.d.ts +0 -19
  10. package/dist/common/data-format.js +0 -86
  11. package/dist/common/data-format.js.map +0 -1
  12. package/dist/common/mail/html-helpers.d.ts +0 -7
  13. package/dist/common/mail/html-helpers.js +0 -46
  14. package/dist/common/mail/html-helpers.js.map +0 -1
  15. package/dist/common/mail/sendMail.helpers.d.ts +0 -14
  16. package/dist/common/mail/sendMail.helpers.js +0 -51
  17. package/dist/common/mail/sendMail.helpers.js.map +0 -1
  18. package/dist/common/media-handles.helpers.d.ts +0 -19
  19. package/dist/common/media-handles.helpers.js +0 -52
  20. package/dist/common/media-handles.helpers.js.map +0 -1
  21. package/dist/common/serve-html-or.d.ts +0 -16
  22. package/dist/common/serve-html-or.js +0 -72
  23. package/dist/common/serve-html-or.js.map +0 -1
  24. package/dist/common/text-cache.d.ts +0 -57
  25. package/dist/common/text-cache.js +0 -87
  26. package/dist/common/text-cache.js.map +0 -1
  27. package/dist/common/tracker-report.d.ts +0 -2
  28. package/dist/common/tracker-report.js +0 -27
  29. package/dist/common/tracker-report.js.map +0 -1
  30. package/dist/context.d.ts +0 -29
  31. package/dist/context.js +0 -60
  32. package/dist/context.js.map +0 -1
  33. package/dist/express/http-helpers.d.ts +0 -16
  34. package/dist/express/http-helpers.js +0 -44
  35. package/dist/express/http-helpers.js.map +0 -1
  36. package/dist/express/static-middlewares.d.ts +0 -3
  37. package/dist/express/static-middlewares.js +0 -114
  38. package/dist/express/static-middlewares.js.map +0 -1
  39. package/dist/helpers/configuration.helpers.d.ts +0 -2
  40. package/dist/helpers/configuration.helpers.js +0 -8
  41. package/dist/helpers/configuration.helpers.js.map +0 -1
  42. package/dist/helpers/excerpt.helpers.d.ts +0 -2
  43. package/dist/helpers/excerpt.helpers.js +0 -31
  44. package/dist/helpers/excerpt.helpers.js.map +0 -1
  45. package/dist/helpers/jwt-secret.helpers.d.ts +0 -2
  46. package/dist/helpers/jwt-secret.helpers.js +0 -30
  47. package/dist/helpers/jwt-secret.helpers.js.map +0 -1
  48. package/dist/helpers/label-translator.helper.d.ts +0 -9
  49. package/dist/helpers/label-translator.helper.js +0 -14
  50. package/dist/helpers/label-translator.helper.js.map +0 -1
  51. package/dist/helpers/passwordEncrypt-helper.d.ts +0 -2
  52. package/dist/helpers/passwordEncrypt-helper.js +0 -37
  53. package/dist/helpers/passwordEncrypt-helper.js.map +0 -1
  54. package/dist/helpers/relative-id-helper.d.ts +0 -10
  55. package/dist/helpers/relative-id-helper.js +0 -37
  56. package/dist/helpers/relative-id-helper.js.map +0 -1
  57. package/dist/helpers/simple-i18n.d.ts +0 -14
  58. package/dist/helpers/simple-i18n.js +0 -82
  59. package/dist/helpers/simple-i18n.js.map +0 -1
  60. package/dist/helpers/special-account.helpers.d.ts +0 -9
  61. package/dist/helpers/special-account.helpers.js +0 -43
  62. package/dist/helpers/special-account.helpers.js.map +0 -1
  63. package/dist/helpers/url.helpers.d.ts +0 -2
  64. package/dist/helpers/url.helpers.js +0 -12
  65. package/dist/helpers/url.helpers.js.map +0 -1
  66. package/dist/helpers/utils-helper.d.ts +0 -4
  67. package/dist/helpers/utils-helper.js +0 -32
  68. package/dist/helpers/utils-helper.js.map +0 -1
  69. package/dist/index.d.ts +0 -7
  70. package/dist/index.js +0 -69
  71. package/dist/index.js.map +0 -1
  72. package/dist/liquidjs-tools/liquidjs-drop.d.ts +0 -31
  73. package/dist/liquidjs-tools/liquidjs-drop.js +0 -45
  74. package/dist/liquidjs-tools/liquidjs-drop.js.map +0 -1
  75. package/dist/liquidjs-tools/liquidjs-filter.d.ts +0 -10
  76. package/dist/liquidjs-tools/liquidjs-filter.js +0 -23
  77. package/dist/liquidjs-tools/liquidjs-filter.js.map +0 -1
  78. package/dist/liquidjs-tools/liquidjs-rendering/render-liquidjs.d.ts +0 -6
  79. package/dist/liquidjs-tools/liquidjs-rendering/render-liquidjs.js +0 -40
  80. package/dist/liquidjs-tools/liquidjs-rendering/render-liquidjs.js.map +0 -1
  81. package/dist/liquidjs-tools/liquidjs-rendering/rendering-context.d.ts +0 -25
  82. package/dist/liquidjs-tools/liquidjs-rendering/rendering-context.js +0 -35
  83. package/dist/liquidjs-tools/liquidjs-rendering/rendering-context.js.map +0 -1
  84. package/dist/liquidjs-tools/liquidjs-utils.d.ts +0 -5
  85. package/dist/liquidjs-tools/liquidjs-utils.js +0 -22
  86. package/dist/liquidjs-tools/liquidjs-utils.js.map +0 -1
  87. package/dist/liquidjs-tools/render-clone/collection.d.ts +0 -1
  88. package/dist/liquidjs-tools/render-clone/collection.js +0 -18
  89. package/dist/liquidjs-tools/render-clone/collection.js.map +0 -1
  90. package/dist/liquidjs-tools/render-clone/forloop-drop.d.ts +0 -15
  91. package/dist/liquidjs-tools/render-clone/forloop-drop.js +0 -40
  92. package/dist/liquidjs-tools/render-clone/forloop-drop.js.map +0 -1
  93. package/dist/liquidjs-tools/render-clone/render.d.ts +0 -13
  94. package/dist/liquidjs-tools/render-clone/render.js +0 -108
  95. package/dist/liquidjs-tools/render-clone/render.js.map +0 -1
  96. package/dist/maintenance/maintenance-task.d.ts +0 -4
  97. package/dist/maintenance/maintenance-task.js +0 -27
  98. package/dist/maintenance/maintenance-task.js.map +0 -1
  99. package/dist/maintenance/shutdown.d.ts +0 -7
  100. package/dist/maintenance/shutdown.js +0 -51
  101. package/dist/maintenance/shutdown.js.map +0 -1
  102. package/dist/modules/app.controller.d.ts +0 -5
  103. package/dist/modules/app.controller.js +0 -89
  104. package/dist/modules/app.controller.js.map +0 -1
  105. package/dist/modules/app.module.d.ts +0 -2
  106. package/dist/modules/app.module.js +0 -48
  107. package/dist/modules/app.module.js.map +0 -1
  108. package/dist/modules/core/account/account.model.d.ts +0 -18
  109. package/dist/modules/core/account/account.model.js +0 -59
  110. package/dist/modules/core/account/account.model.js.map +0 -1
  111. package/dist/modules/core/account/account.module.d.ts +0 -2
  112. package/dist/modules/core/account/account.module.js +0 -20
  113. package/dist/modules/core/account/account.module.js.map +0 -1
  114. package/dist/modules/core/account/account.queries.d.ts +0 -18
  115. package/dist/modules/core/account/account.queries.js +0 -150
  116. package/dist/modules/core/account/account.queries.js.map +0 -1
  117. package/dist/modules/core/account/account.resolver.d.ts +0 -11
  118. package/dist/modules/core/account/account.resolver.js +0 -107
  119. package/dist/modules/core/account/account.resolver.js.map +0 -1
  120. package/dist/modules/core/account/account.schema.d.ts +0 -24
  121. package/dist/modules/core/account/account.schema.js +0 -114
  122. package/dist/modules/core/account/account.schema.js.map +0 -1
  123. package/dist/modules/core/account-auth/account-auth.module.d.ts +0 -2
  124. package/dist/modules/core/account-auth/account-auth.module.js +0 -24
  125. package/dist/modules/core/account-auth/account-auth.module.js.map +0 -1
  126. package/dist/modules/core/account-auth/account-auth.service.d.ts +0 -5
  127. package/dist/modules/core/account-auth/account-auth.service.js +0 -41
  128. package/dist/modules/core/account-auth/account-auth.service.js.map +0 -1
  129. package/dist/modules/core/account-auth/account-auth.strategy.d.ts +0 -10
  130. package/dist/modules/core/account-auth/account-auth.strategy.js +0 -49
  131. package/dist/modules/core/account-auth/account-auth.strategy.js.map +0 -1
  132. package/dist/modules/core/auth/auth.module.d.ts +0 -2
  133. package/dist/modules/core/auth/auth.module.js +0 -35
  134. package/dist/modules/core/auth/auth.module.js.map +0 -1
  135. package/dist/modules/core/auth/auth.service.d.ts +0 -11
  136. package/dist/modules/core/auth/auth.service.js +0 -164
  137. package/dist/modules/core/auth/auth.service.js.map +0 -1
  138. package/dist/modules/core/auth/auth.types.d.ts +0 -27
  139. package/dist/modules/core/auth/auth.types.js +0 -3
  140. package/dist/modules/core/auth/auth.types.js.map +0 -1
  141. package/dist/modules/core/auth/jwt.auth.guard.d.ts +0 -6
  142. package/dist/modules/core/auth/jwt.auth.guard.js +0 -23
  143. package/dist/modules/core/auth/jwt.auth.guard.js.map +0 -1
  144. package/dist/modules/core/auth/jwt.strategy.d.ts +0 -10
  145. package/dist/modules/core/auth/jwt.strategy.js +0 -35
  146. package/dist/modules/core/auth/jwt.strategy.js.map +0 -1
  147. package/dist/modules/core/backup/backup.controller.d.ts +0 -7
  148. package/dist/modules/core/backup/backup.controller.js +0 -61
  149. package/dist/modules/core/backup/backup.controller.js.map +0 -1
  150. package/dist/modules/core/backup/backup.module.d.ts +0 -2
  151. package/dist/modules/core/backup/backup.module.js +0 -22
  152. package/dist/modules/core/backup/backup.module.js.map +0 -1
  153. package/dist/modules/core/backup/backup.resolver.d.ts +0 -8
  154. package/dist/modules/core/backup/backup.resolver.js +0 -54
  155. package/dist/modules/core/backup/backup.resolver.js.map +0 -1
  156. package/dist/modules/core/backup/backup.shema.d.ts +0 -4
  157. package/dist/modules/core/backup/backup.shema.js +0 -30
  158. package/dist/modules/core/backup/backup.shema.js.map +0 -1
  159. package/dist/modules/core/core.module.d.ts +0 -2
  160. package/dist/modules/core/core.module.js +0 -50
  161. package/dist/modules/core/core.module.js.map +0 -1
  162. package/dist/modules/core/document/document.helper.d.ts +0 -2
  163. package/dist/modules/core/document/document.helper.js +0 -10
  164. package/dist/modules/core/document/document.helper.js.map +0 -1
  165. package/dist/modules/core/document/document.model.d.ts +0 -9
  166. package/dist/modules/core/document/document.model.js +0 -59
  167. package/dist/modules/core/document/document.model.js.map +0 -1
  168. package/dist/modules/core/document/document.module.d.ts +0 -2
  169. package/dist/modules/core/document/document.module.js +0 -25
  170. package/dist/modules/core/document/document.module.js.map +0 -1
  171. package/dist/modules/core/document/document.resolver.d.ts +0 -12
  172. package/dist/modules/core/document/document.resolver.extend.d.ts +0 -10
  173. package/dist/modules/core/document/document.resolver.extend.js +0 -69
  174. package/dist/modules/core/document/document.resolver.extend.js.map +0 -1
  175. package/dist/modules/core/document/document.resolver.js +0 -154
  176. package/dist/modules/core/document/document.resolver.js.map +0 -1
  177. package/dist/modules/core/document/document.schema.d.ts +0 -39
  178. package/dist/modules/core/document/document.schema.js +0 -181
  179. package/dist/modules/core/document/document.schema.js.map +0 -1
  180. package/dist/modules/core/document/load-documents.queries.d.ts +0 -17
  181. package/dist/modules/core/document/load-documents.queries.js +0 -119
  182. package/dist/modules/core/document/load-documents.queries.js.map +0 -1
  183. package/dist/modules/core/document/save-documents.queries.d.ts +0 -18
  184. package/dist/modules/core/document/save-documents.queries.js +0 -199
  185. package/dist/modules/core/document/save-documents.queries.js.map +0 -1
  186. package/dist/modules/core/fields/_fields.helpers.d.ts +0 -2
  187. package/dist/modules/core/fields/_fields.helpers.js +0 -12
  188. package/dist/modules/core/fields/_fields.helpers.js.map +0 -1
  189. package/dist/modules/core/fields/fields.model.d.ts +0 -17
  190. package/dist/modules/core/fields/fields.model.js +0 -99
  191. package/dist/modules/core/fields/fields.model.js.map +0 -1
  192. package/dist/modules/core/fields/fields.module.d.ts +0 -2
  193. package/dist/modules/core/fields/fields.module.js +0 -20
  194. package/dist/modules/core/fields/fields.module.js.map +0 -1
  195. package/dist/modules/core/fields/fields.resolver.d.ts +0 -14
  196. package/dist/modules/core/fields/fields.resolver.js +0 -165
  197. package/dist/modules/core/fields/fields.resolver.js.map +0 -1
  198. package/dist/modules/core/fields/load-fields.queries.d.ts +0 -20
  199. package/dist/modules/core/fields/load-fields.queries.js +0 -233
  200. package/dist/modules/core/fields/load-fields.queries.js.map +0 -1
  201. package/dist/modules/core/fields/quill-delta.d.ts +0 -1
  202. package/dist/modules/core/fields/quill-delta.js +0 -40
  203. package/dist/modules/core/fields/quill-delta.js.map +0 -1
  204. package/dist/modules/core/fields/save-fields.queries.d.ts +0 -9
  205. package/dist/modules/core/fields/save-fields.queries.js +0 -135
  206. package/dist/modules/core/fields/save-fields.queries.js.map +0 -1
  207. package/dist/modules/core/leaf/leaf.model.d.ts +0 -9
  208. package/dist/modules/core/leaf/leaf.model.js +0 -61
  209. package/dist/modules/core/leaf/leaf.model.js.map +0 -1
  210. package/dist/modules/core/leaf/leaf.module.d.ts +0 -2
  211. package/dist/modules/core/leaf/leaf.module.js +0 -21
  212. package/dist/modules/core/leaf/leaf.module.js.map +0 -1
  213. package/dist/modules/core/leaf/leaf.queries.d.ts +0 -21
  214. package/dist/modules/core/leaf/leaf.queries.js +0 -159
  215. package/dist/modules/core/leaf/leaf.queries.js.map +0 -1
  216. package/dist/modules/core/leaf/leaf.resolver.d.ts +0 -9
  217. package/dist/modules/core/leaf/leaf.resolver.extend.d.ts +0 -6
  218. package/dist/modules/core/leaf/leaf.resolver.extend.js +0 -42
  219. package/dist/modules/core/leaf/leaf.resolver.extend.js.map +0 -1
  220. package/dist/modules/core/leaf/leaf.resolver.js +0 -84
  221. package/dist/modules/core/leaf/leaf.resolver.js.map +0 -1
  222. package/dist/modules/core/leaf/leaf.schema.d.ts +0 -7
  223. package/dist/modules/core/leaf/leaf.schema.js +0 -45
  224. package/dist/modules/core/leaf/leaf.schema.js.map +0 -1
  225. package/dist/modules/core/leaf-item/leaf-item.model.d.ts +0 -6
  226. package/dist/modules/core/leaf-item/leaf-item.model.js +0 -44
  227. package/dist/modules/core/leaf-item/leaf-item.model.js.map +0 -1
  228. package/dist/modules/core/leaf-item/leaf-item.queries.d.ts +0 -9
  229. package/dist/modules/core/leaf-item/leaf-item.queries.js +0 -120
  230. package/dist/modules/core/leaf-item/leaf-item.queries.js.map +0 -1
  231. package/dist/modules/core/login/login.controller.d.ts +0 -8
  232. package/dist/modules/core/login/login.controller.js +0 -54
  233. package/dist/modules/core/login/login.controller.js.map +0 -1
  234. package/dist/modules/core/login/login.module.d.ts +0 -2
  235. package/dist/modules/core/login/login.module.js +0 -22
  236. package/dist/modules/core/login/login.module.js.map +0 -1
  237. package/dist/modules/core/media/media-upload.controller.d.ts +0 -21
  238. package/dist/modules/core/media/media-upload.controller.js +0 -160
  239. package/dist/modules/core/media/media-upload.controller.js.map +0 -1
  240. package/dist/modules/core/media/media.d.ts +0 -22
  241. package/dist/modules/core/media/media.js +0 -53
  242. package/dist/modules/core/media/media.js.map +0 -1
  243. package/dist/modules/core/media/media.module.d.ts +0 -2
  244. package/dist/modules/core/media/media.module.js +0 -22
  245. package/dist/modules/core/media/media.module.js.map +0 -1
  246. package/dist/modules/core/media/media.resolver.d.ts +0 -14
  247. package/dist/modules/core/media/media.resolver.js +0 -199
  248. package/dist/modules/core/media/media.resolver.js.map +0 -1
  249. package/dist/modules/core/media/media.schema.d.ts +0 -30
  250. package/dist/modules/core/media/media.schema.js +0 -144
  251. package/dist/modules/core/media/media.schema.js.map +0 -1
  252. package/dist/modules/core/part/part.module.d.ts +0 -2
  253. package/dist/modules/core/part/part.module.js +0 -21
  254. package/dist/modules/core/part/part.module.js.map +0 -1
  255. package/dist/modules/core/part/part.queries.d.ts +0 -22
  256. package/dist/modules/core/part/part.queries.js +0 -167
  257. package/dist/modules/core/part/part.queries.js.map +0 -1
  258. package/dist/modules/core/part/part.resolver.d.ts +0 -14
  259. package/dist/modules/core/part/part.resolver.extend.d.ts +0 -5
  260. package/dist/modules/core/part/part.resolver.extend.js +0 -49
  261. package/dist/modules/core/part/part.resolver.extend.js.map +0 -1
  262. package/dist/modules/core/part/part.resolver.js +0 -135
  263. package/dist/modules/core/part/part.resolver.js.map +0 -1
  264. package/dist/modules/core/part/part.schema.d.ts +0 -12
  265. package/dist/modules/core/part/part.schema.js +0 -66
  266. package/dist/modules/core/part/part.schema.js.map +0 -1
  267. package/dist/modules/core/section/section-wrap.resolver.d.ts +0 -11
  268. package/dist/modules/core/section/section-wrap.resolver.js +0 -168
  269. package/dist/modules/core/section/section-wrap.resolver.js.map +0 -1
  270. package/dist/modules/core/section/section.model.d.ts +0 -6
  271. package/dist/modules/core/section/section.model.js +0 -44
  272. package/dist/modules/core/section/section.model.js.map +0 -1
  273. package/dist/modules/core/section/section.module.d.ts +0 -2
  274. package/dist/modules/core/section/section.module.js +0 -21
  275. package/dist/modules/core/section/section.module.js.map +0 -1
  276. package/dist/modules/core/section/section.queries.d.ts +0 -51
  277. package/dist/modules/core/section/section.queries.js +0 -228
  278. package/dist/modules/core/section/section.queries.js.map +0 -1
  279. package/dist/modules/core/section/section.resolver.d.ts +0 -7
  280. package/dist/modules/core/section/section.resolver.js +0 -78
  281. package/dist/modules/core/section/section.resolver.js.map +0 -1
  282. package/dist/modules/core/section/section.schema.d.ts +0 -27
  283. package/dist/modules/core/section/section.schema.js +0 -129
  284. package/dist/modules/core/section/section.schema.js.map +0 -1
  285. package/dist/modules/core/site-info/site-info.module.d.ts +0 -2
  286. package/dist/modules/core/site-info/site-info.module.js +0 -20
  287. package/dist/modules/core/site-info/site-info.module.js.map +0 -1
  288. package/dist/modules/core/site-info/site-info.resolver.d.ts +0 -5
  289. package/dist/modules/core/site-info/site-info.resolver.js +0 -44
  290. package/dist/modules/core/site-info/site-info.resolver.js.map +0 -1
  291. package/dist/modules/core/site-info/site-info.schema.d.ts +0 -6
  292. package/dist/modules/core/site-info/site-info.schema.js +0 -36
  293. package/dist/modules/core/site-info/site-info.schema.js.map +0 -1
  294. package/dist/modules/core/site-schema/site-schema.module.d.ts +0 -2
  295. package/dist/modules/core/site-schema/site-schema.module.js +0 -20
  296. package/dist/modules/core/site-schema/site-schema.module.js.map +0 -1
  297. package/dist/modules/core/site-schema/site-schema.resolver.d.ts +0 -4
  298. package/dist/modules/core/site-schema/site-schema.resolver.js +0 -35
  299. package/dist/modules/core/site-schema/site-schema.resolver.js.map +0 -1
  300. package/dist/modules/core/term-flag/term-flag.model.d.ts +0 -6
  301. package/dist/modules/core/term-flag/term-flag.model.js +0 -45
  302. package/dist/modules/core/term-flag/term-flag.model.js.map +0 -1
  303. package/dist/modules/core/term-flag/term-flag.module.d.ts +0 -2
  304. package/dist/modules/core/term-flag/term-flag.module.js +0 -20
  305. package/dist/modules/core/term-flag/term-flag.module.js.map +0 -1
  306. package/dist/modules/core/term-flag/term-flag.queries.d.ts +0 -7
  307. package/dist/modules/core/term-flag/term-flag.queries.js +0 -44
  308. package/dist/modules/core/term-flag/term-flag.queries.js.map +0 -1
  309. package/dist/modules/core/term-flag/term-flag.resolver.d.ts +0 -5
  310. package/dist/modules/core/term-flag/term-flag.resolver.js +0 -47
  311. package/dist/modules/core/term-flag/term-flag.resolver.js.map +0 -1
  312. package/dist/modules/core/term-flag/term-flag.schema.d.ts +0 -9
  313. package/dist/modules/core/term-flag/term-flag.schema.js +0 -51
  314. package/dist/modules/core/term-flag/term-flag.schema.js.map +0 -1
  315. package/dist/modules/core/unprotected/unprotected.module.d.ts +0 -2
  316. package/dist/modules/core/unprotected/unprotected.module.js +0 -20
  317. package/dist/modules/core/unprotected/unprotected.module.js.map +0 -1
  318. package/dist/modules/core/unprotected/unprotected.resolver.d.ts +0 -8
  319. package/dist/modules/core/unprotected/unprotected.resolver.js +0 -106
  320. package/dist/modules/core/unprotected/unprotected.resolver.js.map +0 -1
  321. package/dist/modules/core/unprotected/unprotected.schema.d.ts +0 -19
  322. package/dist/modules/core/unprotected/unprotected.schema.js +0 -93
  323. package/dist/modules/core/unprotected/unprotected.schema.js.map +0 -1
  324. package/dist/modules/graphql.types.d.ts +0 -6
  325. package/dist/modules/graphql.types.js +0 -3
  326. package/dist/modules/graphql.types.js.map +0 -1
  327. package/dist/modules/private-api.module.d.ts +0 -2
  328. package/dist/modules/private-api.module.js +0 -50
  329. package/dist/modules/private-api.module.js.map +0 -1
  330. package/dist/modules/public-api/class-validator-options.d.ts +0 -7
  331. package/dist/modules/public-api/class-validator-options.js +0 -11
  332. package/dist/modules/public-api/class-validator-options.js.map +0 -1
  333. package/dist/modules/public-api/mail/contact-form-mail.d.ts +0 -8
  334. package/dist/modules/public-api/mail/contact-form-mail.js +0 -96
  335. package/dist/modules/public-api/mail/contact-form-mail.js.map +0 -1
  336. package/dist/modules/public-api/mail/mail.dto.d.ts +0 -8
  337. package/dist/modules/public-api/mail/mail.dto.js +0 -56
  338. package/dist/modules/public-api/mail/mail.dto.js.map +0 -1
  339. package/dist/modules/public-api/partials/partials-params.dto.d.ts +0 -6
  340. package/dist/modules/public-api/partials/partials-params.dto.js +0 -45
  341. package/dist/modules/public-api/partials/partials-params.dto.js.map +0 -1
  342. package/dist/modules/public-api/password-reset/password-reset.controller.d.ts +0 -11
  343. package/dist/modules/public-api/password-reset/password-reset.controller.js +0 -59
  344. package/dist/modules/public-api/password-reset/password-reset.controller.js.map +0 -1
  345. package/dist/modules/public-api/password-reset/password-reset.dto.d.ts +0 -9
  346. package/dist/modules/public-api/password-reset/password-reset.dto.js +0 -55
  347. package/dist/modules/public-api/password-reset/password-reset.dto.js.map +0 -1
  348. package/dist/modules/public-api/password-reset/password-reset.module.d.ts +0 -2
  349. package/dist/modules/public-api/password-reset/password-reset.module.js +0 -22
  350. package/dist/modules/public-api/password-reset/password-reset.module.js.map +0 -1
  351. package/dist/modules/public-api/password-reset/password-reset.service.d.ts +0 -14
  352. package/dist/modules/public-api/password-reset/password-reset.service.js +0 -56
  353. package/dist/modules/public-api/password-reset/password-reset.service.js.map +0 -1
  354. package/dist/modules/public-api/public-api-controller.d.ts +0 -32
  355. package/dist/modules/public-api/public-api-controller.js +0 -198
  356. package/dist/modules/public-api/public-api-controller.js.map +0 -1
  357. package/dist/modules/public-api/public-api.module.d.ts +0 -2
  358. package/dist/modules/public-api/public-api.module.js +0 -22
  359. package/dist/modules/public-api/public-api.module.js.map +0 -1
  360. package/dist/modules/public-api/search-text/search-text.dto.d.ts +0 -7
  361. package/dist/modules/public-api/search-text/search-text.dto.js +0 -50
  362. package/dist/modules/public-api/search-text/search-text.dto.js.map +0 -1
  363. package/dist/modules/public-api/search-text/search-text.queries.d.ts +0 -14
  364. package/dist/modules/public-api/search-text/search-text.queries.js +0 -58
  365. package/dist/modules/public-api/search-text/search-text.queries.js.map +0 -1
  366. package/dist/modules/public-site/app-exception-filter.d.ts +0 -4
  367. package/dist/modules/public-site/app-exception-filter.js +0 -41
  368. package/dist/modules/public-site/app-exception-filter.js.map +0 -1
  369. package/dist/modules/public-site/helpers/format-date.helper.d.ts +0 -4
  370. package/dist/modules/public-site/helpers/format-date.helper.js +0 -35
  371. package/dist/modules/public-site/helpers/format-date.helper.js.map +0 -1
  372. package/dist/modules/public-site/helpers/medias.helpers.d.ts +0 -3
  373. package/dist/modules/public-site/helpers/medias.helpers.js +0 -16
  374. package/dist/modules/public-site/helpers/medias.helpers.js.map +0 -1
  375. package/dist/modules/public-site/helpers/obfuscate.helper.d.ts +0 -2
  376. package/dist/modules/public-site/helpers/obfuscate.helper.js +0 -27
  377. package/dist/modules/public-site/helpers/obfuscate.helper.js.map +0 -1
  378. package/dist/modules/public-site/liquidjs-filters/format-date.d.ts +0 -7
  379. package/dist/modules/public-site/liquidjs-filters/format-date.js +0 -15
  380. package/dist/modules/public-site/liquidjs-filters/format-date.js.map +0 -1
  381. package/dist/modules/public-site/liquidjs-filters/format-number.d.ts +0 -6
  382. package/dist/modules/public-site/liquidjs-filters/format-number.js +0 -17
  383. package/dist/modules/public-site/liquidjs-filters/format-number.js.map +0 -1
  384. package/dist/modules/public-site/liquidjs-filters/info-filter.d.ts +0 -1
  385. package/dist/modules/public-site/liquidjs-filters/info-filter.js +0 -144
  386. package/dist/modules/public-site/liquidjs-filters/info-filter.js.map +0 -1
  387. package/dist/modules/public-site/liquidjs-filters/inject-facebook-chat.d.ts +0 -1
  388. package/dist/modules/public-site/liquidjs-filters/inject-facebook-chat.js +0 -40
  389. package/dist/modules/public-site/liquidjs-filters/inject-facebook-chat.js.map +0 -1
  390. package/dist/modules/public-site/liquidjs-filters/inject-menu-items-data.d.ts +0 -6
  391. package/dist/modules/public-site/liquidjs-filters/inject-menu-items-data.js +0 -25
  392. package/dist/modules/public-site/liquidjs-filters/inject-menu-items-data.js.map +0 -1
  393. package/dist/modules/public-site/liquidjs-filters/make-excerpt.d.ts +0 -3
  394. package/dist/modules/public-site/liquidjs-filters/make-excerpt.js +0 -10
  395. package/dist/modules/public-site/liquidjs-filters/make-excerpt.js.map +0 -1
  396. package/dist/modules/public-site/liquidjs-filters/obfuscate.d.ts +0 -2
  397. package/dist/modules/public-site/liquidjs-filters/obfuscate.js +0 -18
  398. package/dist/modules/public-site/liquidjs-filters/obfuscate.js.map +0 -1
  399. package/dist/modules/public-site/liquidjs-filters/open-graph-filter.d.ts +0 -6
  400. package/dist/modules/public-site/liquidjs-filters/open-graph-filter.js +0 -41
  401. package/dist/modules/public-site/liquidjs-filters/open-graph-filter.js.map +0 -1
  402. package/dist/modules/public-site/liquidjs-filters/translate-filter.d.ts +0 -7
  403. package/dist/modules/public-site/liquidjs-filters/translate-filter.js +0 -23
  404. package/dist/modules/public-site/liquidjs-filters/translate-filter.js.map +0 -1
  405. package/dist/modules/public-site/liquidjs-tags/get-page-tag.d.ts +0 -13
  406. package/dist/modules/public-site/liquidjs-tags/get-page-tag.js +0 -69
  407. package/dist/modules/public-site/liquidjs-tags/get-page-tag.js.map +0 -1
  408. package/dist/modules/public-site/liquidjs-tags/get-pages-tag.d.ts +0 -13
  409. package/dist/modules/public-site/liquidjs-tags/get-pages-tag.js +0 -95
  410. package/dist/modules/public-site/liquidjs-tags/get-pages-tag.js.map +0 -1
  411. package/dist/modules/public-site/liquidjs-tags/use-image-tag.d.ts +0 -13
  412. package/dist/modules/public-site/liquidjs-tags/use-image-tag.js +0 -54
  413. package/dist/modules/public-site/liquidjs-tags/use-image-tag.js.map +0 -1
  414. package/dist/modules/public-site/media-serve/_media-serve-helpers.d.ts +0 -11
  415. package/dist/modules/public-site/media-serve/_media-serve-helpers.js +0 -26
  416. package/dist/modules/public-site/media-serve/_media-serve-helpers.js.map +0 -1
  417. package/dist/modules/public-site/media-serve/media-serve.controller.d.ts +0 -4
  418. package/dist/modules/public-site/media-serve/media-serve.controller.js +0 -140
  419. package/dist/modules/public-site/media-serve/media-serve.controller.js.map +0 -1
  420. package/dist/modules/public-site/media-serve/media-serve.module.d.ts +0 -2
  421. package/dist/modules/public-site/media-serve/media-serve.module.js +0 -20
  422. package/dist/modules/public-site/media-serve/media-serve.module.js.map +0 -1
  423. package/dist/modules/public-site/oauth2-client.controller.d.ts +0 -10
  424. package/dist/modules/public-site/oauth2-client.controller.js +0 -144
  425. package/dist/modules/public-site/oauth2-client.controller.js.map +0 -1
  426. package/dist/modules/public-site/public-route/make-url.d.ts +0 -11
  427. package/dist/modules/public-site/public-route/make-url.js +0 -150
  428. package/dist/modules/public-site/public-route/make-url.js.map +0 -1
  429. package/dist/modules/public-site/public-route/public-route-parser.d.ts +0 -16
  430. package/dist/modules/public-site/public-route/public-route-parser.js +0 -154
  431. package/dist/modules/public-site/public-route/public-route-parser.js.map +0 -1
  432. package/dist/modules/public-site/public-route/raw-document-payload.d.ts +0 -8
  433. package/dist/modules/public-site/public-route/raw-document-payload.js +0 -86
  434. package/dist/modules/public-site/public-route/raw-document-payload.js.map +0 -1
  435. package/dist/modules/public-site/public-site.controller.d.ts +0 -7
  436. package/dist/modules/public-site/public-site.controller.js +0 -58
  437. package/dist/modules/public-site/public-site.controller.js.map +0 -1
  438. package/dist/modules/public-site/public-site.middleware.d.ts +0 -5
  439. package/dist/modules/public-site/public-site.middleware.js +0 -67
  440. package/dist/modules/public-site/public-site.middleware.js.map +0 -1
  441. package/dist/modules/public-site/public-site.module.d.ts +0 -4
  442. package/dist/modules/public-site/public-site.module.js +0 -27
  443. package/dist/modules/public-site/public-site.module.js.map +0 -1
  444. package/dist/modules/public-site/serve-document/serve-document.d.ts +0 -20
  445. package/dist/modules/public-site/serve-document/serve-document.js +0 -60
  446. package/dist/modules/public-site/serve-document/serve-document.js.map +0 -1
  447. package/dist/modules/security/app-throttler-guard.d.ts +0 -8
  448. package/dist/modules/security/app-throttler-guard.js +0 -18
  449. package/dist/modules/security/app-throttler-guard.js.map +0 -1
  450. package/dist/modules/security/complexity-plugin.d.ts +0 -8
  451. package/dist/modules/security/complexity-plugin.js +0 -46
  452. package/dist/modules/security/complexity-plugin.js.map +0 -1
  453. package/dist/nest-custom-logger.d.ts +0 -8
  454. package/dist/nest-custom-logger.js +0 -23
  455. package/dist/nest-custom-logger.js.map +0 -1
  456. package/dist/public-payload/breadcrumb.queries.d.ts +0 -5
  457. package/dist/public-payload/breadcrumb.queries.js +0 -26
  458. package/dist/public-payload/breadcrumb.queries.js.map +0 -1
  459. package/dist/public-payload/create-page-drop.d.ts +0 -11
  460. package/dist/public-payload/create-page-drop.js +0 -160
  461. package/dist/public-payload/create-page-drop.js.map +0 -1
  462. package/dist/public-payload/create-page-part-drop.d.ts +0 -7
  463. package/dist/public-payload/create-page-part-drop.js +0 -39
  464. package/dist/public-payload/create-page-part-drop.js.map +0 -1
  465. package/dist/public-payload/excerpt.queries.d.ts +0 -10
  466. package/dist/public-payload/excerpt.queries.js +0 -38
  467. package/dist/public-payload/excerpt.queries.js.map +0 -1
  468. package/dist/public-payload/field-values.d.ts +0 -9
  469. package/dist/public-payload/field-values.js +0 -99
  470. package/dist/public-payload/field-values.js.map +0 -1
  471. package/dist/public-payload/get-siblings.queries.d.ts +0 -5
  472. package/dist/public-payload/get-siblings.queries.js +0 -117
  473. package/dist/public-payload/get-siblings.queries.js.map +0 -1
  474. package/dist/public-payload/load-default-image.d.ts +0 -8
  475. package/dist/public-payload/load-default-image.js +0 -52
  476. package/dist/public-payload/load-default-image.js.map +0 -1
  477. package/dist/public-payload/make-basic-payload.d.ts +0 -6
  478. package/dist/public-payload/make-basic-payload.js +0 -19
  479. package/dist/public-payload/make-basic-payload.js.map +0 -1
  480. package/dist/public-payload/make-image-available.d.ts +0 -26
  481. package/dist/public-payload/make-image-available.js +0 -38
  482. package/dist/public-payload/make-image-available.js.map +0 -1
  483. package/dist/public-payload/page-values.queries.d.ts +0 -27
  484. package/dist/public-payload/page-values.queries.js +0 -110
  485. package/dist/public-payload/page-values.queries.js.map +0 -1
  486. package/dist/public-payload/parts.queries.d.ts +0 -6
  487. package/dist/public-payload/parts.queries.js +0 -123
  488. package/dist/public-payload/parts.queries.js.map +0 -1
  489. package/dist/public-payload/public-payload.types.d.ts +0 -130
  490. package/dist/public-payload/public-payload.types.js +0 -3
  491. package/dist/public-payload/public-payload.types.js.map +0 -1
  492. package/dist/public-payload/site-payload.d.ts +0 -4
  493. package/dist/public-payload/site-payload.js +0 -43
  494. package/dist/public-payload/site-payload.js.map +0 -1
  495. package/dist/public-payload/taxonomies.queries.d.ts +0 -13
  496. package/dist/public-payload/taxonomies.queries.js +0 -45
  497. package/dist/public-payload/taxonomies.queries.js.map +0 -1
  498. package/dist/public-payload/translations.queries.d.ts +0 -7
  499. package/dist/public-payload/translations.queries.js +0 -62
  500. package/dist/public-payload/translations.queries.js.map +0 -1
  501. package/dist/public.types.d.ts +0 -5
  502. package/dist/public.types.js +0 -3
  503. package/dist/public.types.js.map +0 -1
  504. package/dist/share/pino-app-log.d.ts +0 -26
  505. package/dist/share/pino-app-log.js +0 -138
  506. package/dist/share/pino-app-log.js.map +0 -1
  507. package/dist/share/read-configuration.d.ts +0 -7
  508. package/dist/share/read-configuration.js +0 -31
  509. package/dist/share/read-configuration.js.map +0 -1
  510. package/dist/site-backup/archiver.helper.d.ts +0 -12
  511. package/dist/site-backup/archiver.helper.js +0 -43
  512. package/dist/site-backup/archiver.helper.js.map +0 -1
  513. package/dist/site-backup/backup-tasks.d.ts +0 -10
  514. package/dist/site-backup/backup-tasks.js +0 -50
  515. package/dist/site-backup/backup-tasks.js.map +0 -1
  516. package/dist/site-backup/backup.d.ts +0 -11
  517. package/dist/site-backup/backup.helper.d.ts +0 -3
  518. package/dist/site-backup/backup.helper.js +0 -13
  519. package/dist/site-backup/backup.helper.js.map +0 -1
  520. package/dist/site-backup/backup.js +0 -35
  521. package/dist/site-backup/backup.js.map +0 -1
  522. package/dist/site-context/create-site-context.d.ts +0 -3
  523. package/dist/site-context/create-site-context.js +0 -183
  524. package/dist/site-context/create-site-context.js.map +0 -1
  525. package/dist/site-context/db-init/db-init.d.ts +0 -11
  526. package/dist/site-context/db-init/db-init.js +0 -38
  527. package/dist/site-context/db-init/db-init.js.map +0 -1
  528. package/dist/site-context/db-init/ddl-migration.d.ts +0 -13
  529. package/dist/site-context/db-init/ddl-migration.js +0 -26
  530. package/dist/site-context/db-init/ddl-migration.js.map +0 -1
  531. package/dist/site-context/db-init/init-routing-points.d.ts +0 -5
  532. package/dist/site-context/db-init/init-routing-points.js +0 -149
  533. package/dist/site-context/db-init/init-routing-points.js.map +0 -1
  534. package/dist/site-context/site-conf.d.ts +0 -17
  535. package/dist/site-context/site-conf.js +0 -103
  536. package/dist/site-context/site-conf.js.map +0 -1
  537. package/dist/site-context/site-context.d.ts +0 -12
  538. package/dist/site-context/site-context.js +0 -87
  539. package/dist/site-context/site-context.js.map +0 -1
  540. package/dist/site-context/site-context.types.d.ts +0 -46
  541. package/dist/site-context/site-context.types.js +0 -3
  542. package/dist/site-context/site-context.types.js.map +0 -1
  543. package/dist/site-context/theme-conf-reader.d.ts +0 -4
  544. package/dist/site-context/theme-conf-reader.js +0 -33
  545. package/dist/site-context/theme-conf-reader.js.map +0 -1
  546. package/dist/site-context/theme-conf-types.d.ts +0 -4
  547. package/dist/site-context/theme-conf-types.js +0 -3
  548. package/dist/site-context/theme-conf-types.js.map +0 -1
  549. package/dist/site-schema/common-schema-reader.d.ts +0 -6
  550. package/dist/site-schema/common-schema-reader.js +0 -29
  551. package/dist/site-schema/common-schema-reader.js.map +0 -1
  552. package/dist/site-schema/merged-schema-lib.d.ts +0 -30
  553. package/dist/site-schema/merged-schema-lib.js +0 -118
  554. package/dist/site-schema/merged-schema-lib.js.map +0 -1
  555. package/dist/site-schema/read-locales.d.ts +0 -24
  556. package/dist/site-schema/read-locales.js +0 -171
  557. package/dist/site-schema/read-locales.js.map +0 -1
  558. package/dist/site-schema/site-schema-factory.d.ts +0 -2
  559. package/dist/site-schema/site-schema-factory.js +0 -385
  560. package/dist/site-schema/site-schema-factory.js.map +0 -1
  561. package/dist/site-schema/site-schema-helpers.d.ts +0 -5
  562. package/dist/site-schema/site-schema-helpers.js +0 -27
  563. package/dist/site-schema/site-schema-helpers.js.map +0 -1
  564. package/dist/site-schema/site-schema-lib-reader.d.ts +0 -14
  565. package/dist/site-schema/site-schema-lib-reader.js +0 -48
  566. package/dist/site-schema/site-schema-lib-reader.js.map +0 -1
  567. package/dist/start.d.ts +0 -1
  568. package/dist/start.js +0 -5
  569. package/dist/start.js.map +0 -1
  570. package/dist/types.to.json +0 -1
@@ -1,385 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.loadSiteSchema = void 0;
4
- const data_formatters_lib_1 = require("@paroi/data-formatters-lib");
5
- const promises_1 = require("fs/promises");
6
- const path_1 = require("path");
7
- const context_1 = require("../context");
8
- const utils_helper_1 = require("../helpers/utils-helper");
9
- const merged_schema_lib_1 = require("./merged-schema-lib");
10
- const read_locales_1 = require("./read-locales");
11
- const site_schema_helpers_1 = require("./site-schema-helpers");
12
- const authorizedClassicRoute = new Set([":relativeId-:slug", ":yyyy/:mm/:dd/:relativeId-:slug"]);
13
- const invalidFieldNames = ["featuredImage", "boFavicon"];
14
- async function loadSiteSchema(siteDir) {
15
- const jsonData = await readJsonOfSiteSchema((0, path_1.join)(siteDir, "site-schema.json"));
16
- const lib = (0, merged_schema_lib_1.prepareLib)(jsonData.useModules, (0, context_1.getSiteSchemaLib)(), jsonData.langs);
17
- const l10n = (0, read_locales_1.createEmptySchemaLocales)(jsonData.langs);
18
- (0, read_locales_1.importPartOfL10n)({
19
- from: lib.common.l10n,
20
- fromPath: ["site", "fields"],
21
- to: l10n,
22
- toPath: ["site", "fields"],
23
- ifDuplicate: "overwrite",
24
- });
25
- const imageQualityPolicy = lib.module.imageQualityPolicy ?? jsonData.imageQualityPolicy;
26
- if (!imageQualityPolicy)
27
- throw new Error("missing 'imageQualityPolicy' in site-schema");
28
- const jsonSiteFields = jsonData.site?.fields ?? lib.module.site?.fields;
29
- const siteFields = jsonSiteFields === undefined
30
- ? []
31
- : jsonSiteFields.map((item) => typeof item === "string" ? importSiteField(item, l10n, lib) : item);
32
- checkFieldNames(siteFields, { common: lib.common, type: "site" });
33
- if (jsonData.langs.length === 0)
34
- throw new Error("missing langs in site-schema");
35
- const newSchema = {
36
- langs: jsonData.langs,
37
- langLabels: makeLangLabels(jsonData.langs, context_1.langLabels),
38
- defaultLang: jsonData.langs[0],
39
- site: {
40
- kind: "site",
41
- leafType: site_schema_helpers_1.siteLeafType,
42
- withData: true,
43
- fields: [...lib.common.site.fields, ...siteFields],
44
- },
45
- documentTypes: {
46
- home: undefined,
47
- },
48
- partTypes: {},
49
- mediaPolicies: {
50
- default: undefined,
51
- },
52
- imageQualityPolicy,
53
- l10n,
54
- };
55
- importMediaPolicy(newSchema, lib, "default", { ensureImagePolicy: true });
56
- appendDocumentTypesToSiteSchema(jsonData, newSchema, lib);
57
- await (0, read_locales_1.completeSchemaLocales)(siteDir, l10n);
58
- checkRoutingPointDocumentTypes(newSchema);
59
- return newSchema;
60
- }
61
- exports.loadSiteSchema = loadSiteSchema;
62
- function appendDocumentTypesToSiteSchema(jsonData, newSchema, lib) {
63
- for (const item of jsonData.documentTypes ?? ["home"]) {
64
- if (typeof item === "string") {
65
- importDocumentType(newSchema, lib, item);
66
- continue;
67
- }
68
- (0, site_schema_helpers_1.checkLeafType)(item.leafType);
69
- if (newSchema.documentTypes[item.leafType]) {
70
- throw new Error(`Duplicated document type '${item.leafType}'`);
71
- }
72
- newSchema.documentTypes[item.leafType] = toDocumentSchema({
73
- newSchema,
74
- jsonData: item,
75
- langs: newSchema.langs,
76
- lib,
77
- });
78
- }
79
- for (const item of jsonData.partTypes ?? []) {
80
- (0, site_schema_helpers_1.checkLeafType)(item.leafType);
81
- if (newSchema.partTypes[item.leafType]) {
82
- throw new Error(`Duplicated document part type '${item.leafType}'`);
83
- }
84
- newSchema.partTypes[item.leafType] = toPartType(item, newSchema.l10n, lib);
85
- }
86
- }
87
- function toDocumentSchema({ newSchema, jsonData, langs, lib, }) {
88
- const from = jsonData.from ? getDocumentType(jsonData.from, lib) : undefined;
89
- let isRoutingPoint = isRoutingPointRoute(jsonData.route);
90
- if (from) {
91
- const isFromRP = isRoutingPointRoute(from.route);
92
- if (jsonData.route) {
93
- if (isRoutingPoint !== isFromRP) {
94
- throw new Error(`document type '${jsonData.leafType}' cannot extends '${from.leafType}'`);
95
- }
96
- }
97
- else {
98
- isRoutingPoint = isFromRP;
99
- }
100
- (0, read_locales_1.importPartOfL10n)({
101
- from: lib.l10n,
102
- fromPath: ["documentTypes", from.leafType],
103
- to: newSchema.l10n,
104
- toPath: ["documentTypes", jsonData.leafType],
105
- });
106
- importDocumentTypeDependencies(newSchema, lib, from);
107
- }
108
- const merged = from ? { ...from, ...jsonData } : jsonData;
109
- const jsonFields = merged.fields;
110
- const fields = jsonFields === undefined
111
- ? undefined
112
- : jsonFields.map((item) => typeof item === "string"
113
- ? importSectionField({
114
- fieldName: item,
115
- fillL10n: newSchema.l10n,
116
- fillL10nPath: ["documentTypes", jsonData.leafType, "fields"],
117
- lib,
118
- })
119
- : item);
120
- if (fields)
121
- checkFieldNames(fields, { common: lib.common, type: "document" });
122
- if (isRoutingPoint)
123
- return toRoutingPointDocumentSchema(merged, langs, fields);
124
- return toClassicDocumentSchema(merged, fields);
125
- }
126
- function importDocumentTypeDependencies(newSchema, lib, jsonData) {
127
- for (const listType of jsonData.partLists ?? []) {
128
- for (const leafType of listType.partLeafTypes) {
129
- importPartType(newSchema, lib, leafType, { skipDuplicate: true });
130
- }
131
- }
132
- for (const taxonomy of jsonData.useTaxonomies ?? []) {
133
- importDocumentType(newSchema, lib, taxonomy.leafType, { skipDuplicate: true });
134
- }
135
- for (const childLeafType of jsonData.children ?? []) {
136
- importDocumentType(newSchema, lib, childLeafType, { skipDuplicate: true });
137
- }
138
- if (jsonData.mediaPolicy) {
139
- importMediaPolicy(newSchema, lib, jsonData.mediaPolicy, { skipDuplicate: true });
140
- }
141
- }
142
- function toRoutingPointDocumentSchema(jsonData, langs, fields) {
143
- const dashedName = (0, utils_helper_1.pascalCaseToDashed)(jsonData.leafType);
144
- return {
145
- kind: "routingPoint",
146
- leafType: jsonData.leafType,
147
- boDirName: dashedName,
148
- urlPaths: toUrlPaths(jsonData.route, langs),
149
- withData: jsonData.withData ?? false,
150
- fields,
151
- mediaPolicy: jsonData.mediaPolicy,
152
- partLists: jsonData.partLists,
153
- children: jsonData.children,
154
- childOrdering: (0, site_schema_helpers_1.parseChildOrdering)(jsonData.childOrdering),
155
- childLimit: jsonData.childLimit,
156
- useTaxonomies: jsonData.useTaxonomies,
157
- templateNames: [dashedName],
158
- ogType: jsonData.ogType,
159
- };
160
- }
161
- function toUrlPaths(route, langs, defaultUrlPaths) {
162
- if (!route)
163
- return;
164
- const urlPaths = {};
165
- if (typeof route === "string") {
166
- for (const lang of langs) {
167
- urlPaths[lang] = route;
168
- }
169
- }
170
- else {
171
- const defaultLang = langs[0];
172
- if (!defaultLang)
173
- throw new Error("missing langs in site-schema");
174
- for (const lang of langs) {
175
- const val = route[lang] ?? defaultUrlPaths?.[lang] ?? route[defaultLang];
176
- if (!val)
177
- throw new Error("missing lang");
178
- if (val.includes(":"))
179
- throw new Error("route should not contain ':'");
180
- urlPaths[lang] = val;
181
- }
182
- }
183
- return urlPaths;
184
- }
185
- function toClassicDocumentSchema(jsonData, fields) {
186
- if (jsonData.route &&
187
- (typeof jsonData.route !== "string" || !authorizedClassicRoute.has(jsonData.route))) {
188
- throw new Error(`invalid route '${jsonData.route}'`);
189
- }
190
- const dashedName = (0, utils_helper_1.pascalCaseToDashed)(jsonData.leafType);
191
- if (!jsonData.route) {
192
- throw new Error(`missing route in '${jsonData.leafType}'`);
193
- }
194
- if (!jsonData.withData) {
195
- throw new Error(`classic document '${jsonData.leafType}' must have 'data.document' to true`);
196
- }
197
- return {
198
- kind: "classic",
199
- leafType: jsonData.leafType,
200
- boDirName: dashedName,
201
- route: jsonData.route,
202
- withData: true,
203
- fields,
204
- mediaPolicy: jsonData.mediaPolicy,
205
- partLists: jsonData.partLists,
206
- children: jsonData.children,
207
- childOrdering: (0, site_schema_helpers_1.parseChildOrdering)(jsonData.childOrdering),
208
- childLimit: jsonData.childLimit,
209
- useTaxonomies: jsonData.useTaxonomies,
210
- autoPublish: jsonData.autoPublish,
211
- relativeIdGenerator: formatRelativeIdGeneratorSchema(jsonData.relativeIdGenerator, {
212
- varName: "relativeIdGenerator",
213
- }),
214
- templateNames: [dashedName],
215
- ogType: jsonData.ogType,
216
- };
217
- }
218
- function isRoutingPointRoute(route) {
219
- return (route === undefined ||
220
- typeof route === "object" ||
221
- (typeof route === "string" && !route.includes(":")));
222
- }
223
- function formatRelativeIdGeneratorSchema(val, formatOptions) {
224
- if (!val)
225
- return;
226
- if (val.length === 0) {
227
- throw new Error(`invalid empty value for '${formatOptions.varName}'`);
228
- }
229
- val[0] = (0, data_formatters_lib_1.strVal)(val[0], { varName: `${formatOptions.varName}[0]` });
230
- return val;
231
- }
232
- function checkRoutingPointDocumentTypes(newSchema) {
233
- for (const documentType of Object.values(newSchema.documentTypes)) {
234
- if (documentType.kind !== "routingPoint" || documentType.leafType === "home")
235
- continue;
236
- if (!documentType.urlPaths) {
237
- throw new Error(`Missing route for non-home document type '${documentType.leafType}'`);
238
- }
239
- }
240
- }
241
- function toPartType(jsonData, l10n, lib) {
242
- const jsonFields = jsonData.fields;
243
- const fields = jsonFields === undefined
244
- ? undefined
245
- : jsonFields.map((item) => typeof item === "string"
246
- ? importSectionField({
247
- fieldName: item,
248
- fillL10n: l10n,
249
- fillL10nPath: ["partTypes", jsonData.leafType, "fields"],
250
- lib,
251
- })
252
- : item);
253
- if (fields)
254
- checkFieldNames(fields, { common: lib.common, type: "part" });
255
- return {
256
- kind: "part",
257
- leafType: jsonData.leafType,
258
- withData: jsonData.withData,
259
- fields,
260
- mediaPolicy: jsonData.mediaPolicy,
261
- };
262
- }
263
- function importDocumentType(newSchema, lib, leafType, options = {}) {
264
- if (newSchema.documentTypes[leafType]) {
265
- if (options.skipDuplicate)
266
- return;
267
- throw new Error(`Duplicate document type '${leafType}'`);
268
- }
269
- const jsonData = lib.module.documentTypes[leafType];
270
- if (!jsonData)
271
- throw new Error(`Unknown document type '${leafType}'`);
272
- (0, read_locales_1.importPartOfL10n)({ from: lib.l10n, fromPath: ["documentTypes", leafType], to: newSchema.l10n });
273
- newSchema.documentTypes[leafType] = toDocumentSchema({
274
- newSchema,
275
- jsonData,
276
- lib,
277
- langs: newSchema.langs,
278
- });
279
- importDocumentTypeDependencies(newSchema, lib, jsonData);
280
- }
281
- function importPartType(newSchema, lib, leafType, options = {}) {
282
- if (newSchema.partTypes[leafType]) {
283
- if (options.skipDuplicate)
284
- return;
285
- throw new Error(`Duplicate section type '${leafType}'`);
286
- }
287
- const jsonData = lib.module.partTypes[leafType];
288
- if (!jsonData)
289
- throw new Error(`Unknown section type '${leafType}'`);
290
- (0, read_locales_1.importPartOfL10n)({
291
- from: lib.l10n,
292
- fromPath: ["partTypes", leafType],
293
- to: newSchema.l10n,
294
- });
295
- newSchema.partTypes[leafType] = toPartType(jsonData, newSchema.l10n, lib);
296
- if (jsonData.mediaPolicy) {
297
- importMediaPolicy(newSchema, lib, jsonData.mediaPolicy, { skipDuplicate: true });
298
- }
299
- }
300
- function importMediaPolicy(newSchema, lib, policyName, options = {}) {
301
- if (newSchema.mediaPolicies[policyName]) {
302
- if (options.skipDuplicate)
303
- return;
304
- throw new Error(`Duplicate media policy '${policyName}'`);
305
- }
306
- const jsonData = lib.module.mediaPolicies[policyName];
307
- if (!jsonData)
308
- throw new Error(`Unknown media policy '${policyName}'`);
309
- if (options.ensureImagePolicy && !jsonData.image) {
310
- throw new Error(`missing 'image' in media policy '${policyName}'`);
311
- }
312
- (0, read_locales_1.importPartOfL10n)({
313
- from: lib.l10n,
314
- fromPath: ["mediaPolicies", policyName],
315
- to: newSchema.l10n,
316
- });
317
- newSchema.mediaPolicies[policyName] = jsonData;
318
- }
319
- async function readJsonOfSiteSchema(file) {
320
- const json = await (0, promises_1.readFile)(file, {
321
- encoding: "utf8",
322
- });
323
- const data = JSON.parse(json);
324
- const result = context_1.typeValidator.validate("JsonOfSiteSchema", data);
325
- if (!result.valid) {
326
- throw new Error(`invalid site-schema '${file}': ${result.error ?? "(missing message)"}`);
327
- }
328
- return data;
329
- }
330
- function importSiteField(fieldName, fillL10n, lib) {
331
- const field = lib.module.siteFieldLib[fieldName];
332
- if (!field)
333
- throw new Error(`unknown site-field '${fieldName}'`);
334
- (0, read_locales_1.importPartOfL10n)({
335
- from: lib.l10n,
336
- fromPath: ["siteFieldLib", fieldName],
337
- to: fillL10n,
338
- toPath: ["site", "fields", fieldName],
339
- });
340
- return field;
341
- }
342
- function importSectionField({ fieldName, fillL10n, fillL10nPath, lib, }) {
343
- const field = lib.module.sectionFieldLib[fieldName];
344
- if (!field)
345
- throw new Error(`unknown section-field '${fieldName}'`);
346
- (0, read_locales_1.importPartOfL10n)({
347
- from: lib.l10n,
348
- fromPath: ["sectionFieldLib", fieldName],
349
- to: fillL10n,
350
- toPath: [...fillL10nPath, fieldName],
351
- });
352
- return field;
353
- }
354
- function makeLangLabels(langs, langLabelsLib) {
355
- const newLabels = {};
356
- for (const lang of langs) {
357
- if (!langLabelsLib[lang])
358
- throw new Error(`Invalid lang '${lang}'`);
359
- newLabels[lang] = langLabelsLib[lang];
360
- }
361
- return newLabels;
362
- }
363
- function getDocumentType(leafType, lib) {
364
- const jsonData = lib.module.documentTypes[leafType];
365
- if (!jsonData)
366
- throw new Error(`unknown document type '${leafType}'`);
367
- return jsonData;
368
- }
369
- function checkFieldNames(fields, { common, type }) {
370
- const names = fields.map((item) => item.name);
371
- const set = new Set(names);
372
- if (set.size !== fields.length)
373
- throw new Error(`duplicated fields: ${names.join(", ")}`);
374
- const invalidNames = type === "site"
375
- ? common.site.fields.map((item) => item.name)
376
- : type === "document"
377
- ? ["title"]
378
- : [];
379
- invalidNames.push(...invalidFieldNames);
380
- for (const invalidName of invalidNames) {
381
- if (set.has(invalidName))
382
- throw new Error(`invalid field name "${invalidName}"`);
383
- }
384
- }
385
- //# sourceMappingURL=site-schema-factory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"site-schema-factory.js","sourceRoot":"","sources":["../../src/site-schema/site-schema-factory.ts"],"names":[],"mappings":";;;AAAA,oEAAoD;AAWpD,0CAAuC;AACvC,+BAA4B;AAC5B,wCAAyE;AACzE,0DAA6D;AAS7D,2DAAkE;AAClE,iDAAmG;AACnG,+DAAwF;AAExF,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAC,CAAC,mBAAmB,EAAE,iCAAiC,CAAC,CAAC,CAAC;AACjG,MAAM,iBAAiB,GAAG,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC;AAElD,KAAK,UAAU,cAAc,CAAC,OAAe;IAClD,MAAM,QAAQ,GAAG,MAAM,oBAAoB,CAAC,IAAA,WAAI,EAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC;IAE/E,MAAM,GAAG,GAAG,IAAA,8BAAU,EAAC,QAAQ,CAAC,UAAU,EAAE,IAAA,0BAAgB,GAAE,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAChF,MAAM,IAAI,GAAG,IAAA,uCAAwB,EAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEtD,IAAA,+BAAgB,EAAC;QACf,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI;QACrB,QAAQ,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;QAC5B,EAAE,EAAE,IAAI;QACR,MAAM,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;QAC1B,WAAW,EAAE,WAAW;KACzB,CAAC,CAAC;IAEH,MAAM,kBAAkB,GAAG,GAAG,CAAC,MAAM,CAAC,kBAAkB,IAAI,QAAQ,CAAC,kBAAkB,CAAC;IACxF,IAAI,CAAC,kBAAkB;QAAE,MAAM,IAAI,KAAK,CAAC,6CAA6C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C9C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;IAC3B,IAAI,GAAG,CAAC,IAAI,KAAK,MAAM,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC1F,MAAM,YAAY,GAChB,IAAI,KAAK,MAAM;QACb,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;QAC7C,CAAC,CAAC,IAAI,KAAK,UAAU;YACnB,CAAC,CAAC,CAAC,OAAO,CAAC;YACX,CAAC,CAAC,EAAE,CAAC;IACX,YAAY,CAAC,IAAI,CAAC,GAAG,iBAAiB,CAAC,CAAC;IACxC,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,IAAI,GAAG,CAAC,GAAG,CAAC,WAAW,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,uBAAuB,WAAW,GAAG,CAAC,CAAC;IACnF,CAAC;AACH,CAAC"}
@@ -1,5 +0,0 @@
1
- import { ChildOrdering } from "@paroicms/anywhere-lib";
2
- import { JsonOfChildOrdering } from "../typeonly/site-schema-json-types";
3
- export declare const siteLeafType = "_site";
4
- export declare function parseChildOrdering(val: JsonOfChildOrdering | undefined): ChildOrdering | undefined;
5
- export declare function checkLeafType(leafType: string): void;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.checkLeafType = exports.parseChildOrdering = exports.siteLeafType = void 0;
4
- exports.siteLeafType = "_site";
5
- function parseChildOrdering(val) {
6
- if (!val)
7
- return;
8
- if (val === "manual")
9
- return "manual";
10
- const childOrdering = [];
11
- const arr = typeof val === "string" ? val.split(/\s*,\s*/) : val;
12
- for (const item of arr) {
13
- const [fieldName, direction] = item.split(/\s+/);
14
- if ((direction !== "asc" && direction !== "desc") || !/^[a-zA-Z]+$/.test(fieldName)) {
15
- throw new Error(`invalid child ordering '${item}'`);
16
- }
17
- childOrdering.push([fieldName, direction]);
18
- }
19
- return childOrdering;
20
- }
21
- exports.parseChildOrdering = parseChildOrdering;
22
- function checkLeafType(leafType) {
23
- if (leafType === exports.siteLeafType)
24
- throw new Error(`Invalid leafType '${leafType}'`);
25
- }
26
- exports.checkLeafType = checkLeafType;
27
- //# sourceMappingURL=site-schema-helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"site-schema-helpers.js","sourceRoot":"","sources":["../../src/site-schema/site-schema-helpers.ts"],"names":[],"mappings":";;;AAGa,QAAA,YAAY,GAAG,OAAO,CAAC;AAEpC,SAAgB,kBAAkB,CAChC,GAAoC;IAEpC,IAAI,CAAC,GAAG;QAAE,OAAO;IACjB,IAAI,GAAG,KAAK,QAAQ;QAAE,OAAO,QAAQ,CAAC;IAEtC,MAAM,aAAa,GAA+B,EAAE,CAAC;IACrD,MAAM,GAAG,GAAG,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;IACjE,KAAK,MAAM,IAAI,IAAI,GAAG,EAAE,CAAC;QACvB,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACjD,IAAI,CAAC,SAAS,KAAK,KAAK,IAAI,SAAS,KAAK,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACpF,MAAM,IAAI,KAAK,CAAC,2BAA2B,IAAI,GAAG,CAAC,CAAC;QACtD,CAAC;QACD,aAAa,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;IAC7C,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC;AAjBD,gDAiBC;AAED,SAAgB,aAAa,CAAC,QAAgB;IAC5C,IAAI,QAAQ,KAAK,oBAAY;QAAE,MAAM,IAAI,KAAK,CAAC,qBAAqB,QAAQ,GAAG,CAAC,CAAC;AACnF,CAAC;AAFD,sCAEC"}
@@ -1,14 +0,0 @@
1
- import { JsonOfSiteSchemaModule } from "../typeonly/site-schema-json-types";
2
- import { CommonSchema } from "./common-schema-reader";
3
- import { GroupedLabelLocales } from "./read-locales";
4
- export declare const siteSchemaDirName = "site-schema-lib";
5
- export interface SiteSchemaLibrary {
6
- common: CommonSchema;
7
- modules: {
8
- [moduleName: string]: {
9
- module: JsonOfSiteSchemaModule;
10
- l10n: GroupedLabelLocales;
11
- };
12
- };
13
- }
14
- export declare function readSiteSchemaLibraries(): Promise<SiteSchemaLibrary>;
@@ -1,48 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.readSiteSchemaLibraries = exports.siteSchemaDirName = void 0;
4
- const promises_1 = require("node:fs/promises");
5
- const node_path_1 = require("node:path");
6
- const context_1 = require("../context");
7
- const common_schema_reader_1 = require("./common-schema-reader");
8
- const read_locales_1 = require("./read-locales");
9
- const site_schema_helpers_1 = require("./site-schema-helpers");
10
- exports.siteSchemaDirName = "site-schema-lib";
11
- const siteSchemaSuffix = ".site-schema.json";
12
- async function readSiteSchemaLibraries() {
13
- const dir = (0, node_path_1.join)(context_1.packageDir, exports.siteSchemaDirName);
14
- const siteSchemaLib = {
15
- common: await (0, common_schema_reader_1.readCommonSchema)(dir),
16
- modules: {},
17
- };
18
- const fileNames = await (0, promises_1.readdir)(dir);
19
- for (const fileName of fileNames) {
20
- if (!fileName.endsWith(siteSchemaSuffix))
21
- continue;
22
- const moduleName = fileName.substring(0, fileName.length - siteSchemaSuffix.length);
23
- const module = await readJsonOfSiteSchemaModule({ fileName, dir });
24
- const l10n = (0, read_locales_1.createEmptyGroupedLabelLocales)(module.langs);
25
- await (0, read_locales_1.appendToSchemaLocales)({ dir, baseFileName: `${moduleName}.site-schema.l10n` }, l10n);
26
- siteSchemaLib.modules[moduleName] = {
27
- module,
28
- l10n,
29
- };
30
- }
31
- return siteSchemaLib;
32
- }
33
- exports.readSiteSchemaLibraries = readSiteSchemaLibraries;
34
- async function readJsonOfSiteSchemaModule({ dir, fileName }) {
35
- const json = await (0, promises_1.readFile)((0, node_path_1.join)(dir, fileName), {
36
- encoding: "utf8",
37
- });
38
- const data = JSON.parse(json);
39
- const result = context_1.typeValidator.validate("JsonOfSiteSchemaModule", data);
40
- if (!result.valid) {
41
- throw new Error(`invalid site-schema module file '${fileName}': ${result.error ?? "(missing message)"}`);
42
- }
43
- const module = data;
44
- module.documentTypes?.forEach((item) => (0, site_schema_helpers_1.checkLeafType)(item.leafType));
45
- module.partTypes?.forEach((item) => (0, site_schema_helpers_1.checkLeafType)(item.leafType));
46
- return module;
47
- }
48
- //# sourceMappingURL=site-schema-lib-reader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"site-schema-lib-reader.js","sourceRoot":"","sources":["../../src/site-schema/site-schema-lib-reader.ts"],"names":[],"mappings":";;;AAAA,+CAAqD;AACrD,yCAAiC;AACjC,wCAAuD;AAEvD,iEAAwE;AACxE,iDAIwB;AACxB,+DAAsD;AAEzC,QAAA,iBAAiB,GAAG,iBAAiB,CAAC;AACnD,MAAM,gBAAgB,GAAG,mBAAmB,CAAC;AAYtC,KAAK,UAAU,uBAAuB;IAC3C,MAAM,GAAG,GAAG,IAAA,gBAAI,EAAC,oBAAU,EAAE,yBAAiB,CAAC,CAAC;IAEhD,MAAM,aAAa,GAAsB;QACvC,MAAM,EAAE,MAAM,IAAA,uCAAgB,EAAC,GAAG,CAAC;QACnC,OAAO,EAAE,EAAE;KACZ,CAAC;IAEF,MAAM,SAAS,GAAG,MAAM,IAAA,kBAAO,EAAC,GAAG,CAAC,CAAC;IACrC,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;QACjC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,gBAAgB,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C,CAAC,CAAC;IACtE,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,mCAAa,EAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAClE,OAAO,MAAM,CAAC;AAChB,CAAC"}
package/dist/start.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
package/dist/start.js DELETED
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const _1 = require(".");
4
- void (0, _1.start)();
5
- //# sourceMappingURL=start.js.map
package/dist/start.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"start.js","sourceRoot":"","sources":["../src/start.ts"],"names":[],"mappings":";;AAAA,wBAA0B;AAE1B,KAAK,IAAA,QAAK,GAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"./configuration-types":{"namedTypes":[{"name":"Configuration","exported":true,"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"SingleSiteConfiguration"},{"kind":"localRef","refName":"MultiSiteConfiguration"}]},{"name":"ConfigurationBase","exported":true,"kind":"interface","properties":[{"name":"thisServer","type":{"kind":"localRef","refName":"ThisServerConf"}},{"name":"log","type":{"kind":"localRef","refName":"LogConf"}},{"name":"allowRobots","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"immutableAssets","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"cacheTimeToIdle","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"literal","literal":"disabled"},{"kind":"literal","literal":"infinite"}]},"docComment":"For example: `\"14d\"`."},{"name":"clearCacheAfterStart","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"clearImageCacheAfterStart","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"devTools","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"googleAuth","type":{"kind":"localRef","refName":"GoogleAuth"}},{"name":"awsSesMail","type":{"kind":"localRef","refName":"AwsSesMailConf"}},{"name":"googleRecaptcha","type":{"kind":"localRef","refName":"GoogleRecaptchaConf"}},{"name":"imageProcessor","type":{"kind":"localRef","refName":"ImageProcessorConf"}},{"name":"devAccount","type":{"kind":"localRef","refName":"DevAccount"},"optional":true},{"name":"platformAdminAccounts","type":{"kind":"array","itemType":{"kind":"localRef","refName":"PlatformAdminAccount"}},"optional":true}]},{"name":"SingleSiteConfiguration","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"ConfigurationBase"},{"kind":"interface","properties":[{"name":"singleSite","type":{"kind":"localRef","refName":"SingleSiteConf"}}]}]},{"name":"MultiSiteConfiguration","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"ConfigurationBase"},{"kind":"interface","properties":[{"name":"platformDataDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"sitePacks","type":{"kind":"array","itemType":{"kind":"localRef","refName":"SitePackConf"}}}]}]},{"name":"ThisServerConf","exported":true,"kind":"interface","properties":[{"name":"hostName","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"name","group":"primitive","refName":"null"}]},"optional":true},{"name":"port","type":{"kind":"name","group":"primitive","refName":"number"}},{"name":"publicPort","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"number"},{"kind":"name","group":"primitive","refName":"null"}]},"optional":true},{"name":"boPublicPort","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"number"},{"kind":"name","group":"primitive","refName":"null"}]},"optional":true},{"name":"https","type":{"kind":"name","group":"primitive","refName":"boolean"}}]},{"name":"LogConf","exported":true,"kind":"interface","properties":[{"name":"level","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"silent"},{"kind":"literal","literal":"error"},{"kind":"literal","literal":"warn"},{"kind":"literal","literal":"info"},{"kind":"literal","literal":"stats"},{"kind":"literal","literal":"debug"},{"kind":"literal","literal":"trace"}]}},{"name":"file","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"Omit for stdout."},{"name":"prettyPrint","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true}]},{"name":"SingleSiteConf","exported":true,"kind":"interface","properties":[{"name":"siteDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"dataDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"cacheDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"backupDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"fqdn","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"SitePackConf","exported":true,"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"FqdnSitePackConf"},{"kind":"localRef","refName":"SubDomainSitePackConf"}]},{"name":"SitePackConfBase","exported":true,"kind":"interface","properties":[{"name":"packName","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"sitesDir","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true},{"name":"dataDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"cacheDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"backupDir","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"FqdnSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveAs","type":{"kind":"literal","literal":"fqdn"}}]}]},{"name":"SubDomainSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveAs","type":{"kind":"literal","literal":"subDomain"}},{"name":"parentDomain","type":{"kind":"name","group":"primitive","refName":"string"}}]}]},{"name":"GoogleAuth","exported":true,"kind":"interface","properties":[{"name":"fqdn","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"disabled","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"clientId","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"clientSecret","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"AwsSesMailConf","exported":true,"kind":"interface","properties":[{"name":"disabled","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"from","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"accessKeyId","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"secretAccessKey","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"region","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"GoogleRecaptchaConf","exported":true,"kind":"interface","properties":[{"name":"siteKey","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"secretKey","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"ImageProcessorConf","exported":true,"kind":"interface","properties":[{"name":"cpuCoresPerFile","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"oneSharpAtATime","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true}]},{"name":"DevAccount","exported":true,"kind":"interface","properties":[{"name":"email","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"name","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"password","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"PlatformAdminAccount","exported":true,"kind":"interface","properties":[{"name":"email","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"name","type":{"kind":"name","group":"primitive","refName":"string"}}]}]},"./l10n-types":{"namedTypes":[{"name":"JsonOfLanguageSchemaLocales","exported":true,"kind":"interface","properties":[{"name":"siteFieldLib","type":{"kind":"interface","indexSignature":{"keyName":"fieldName","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true},{"name":"sectionFieldLib","type":{"kind":"interface","indexSignature":{"keyName":"fieldName","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true},{"name":"site","type":{"kind":"interface","properties":[{"name":"fields","type":{"kind":"interface","indexSignature":{"keyName":"fieldName","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true}]},"optional":true},{"name":"documentTypes","type":{"kind":"interface","indexSignature":{"keyName":"leafType","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true},{"name":"partTypes","type":{"kind":"interface","indexSignature":{"keyName":"leafType","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true}]},{"name":"JsonOfLabelLocales","exported":true,"kind":"interface","indexSignature":{"keyName":"key","keyType":"string","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"localRef","refName":"JsonOfLabelLocales"}]}}}]},"./site-schema-json-types":{"namedTypes":[{"name":"JsonOfCommonSchema","exported":true,"kind":"interface","properties":[{"name":"schemaEngineVersion","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"langs","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}}},{"name":"site","type":{"kind":"interface","properties":[{"name":"fields","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfFieldType"}}}]}}]},{"name":"JsonOfSiteSchemaBase","exported":true,"kind":"interface","properties":[{"name":"schemaEngineVersion","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"langs","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}}},{"name":"useModules","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"optional":true},{"name":"site","type":{"kind":"localRef","refName":"JsonOfSiteDataSchema"},"optional":true},{"name":"partTypes","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfPartSchema"}},"optional":true},{"name":"mediaPolicies","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfMediaPolicy"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true},{"name":"imageQualityPolicy","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfImageCompressionQualityPolicy"}},"optional":true}]},{"name":"JsonOfSiteDataSchema","exported":true,"kind":"interface","properties":[{"name":"fields","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true}]},{"name":"JsonOfSiteSchema","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfSiteSchemaBase"},{"kind":"interface","properties":[{"name":"siteFieldLib","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true},{"name":"sectionFieldLib","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true},{"name":"documentTypes","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfDocumentType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"If missing, then `[\"home\"]` is taken by default."}]}]},{"name":"JsonOfSiteSchemaModule","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfSiteSchemaBase"},{"kind":"interface","properties":[{"name":"siteFieldLib","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfFieldType"}},"optional":true},{"name":"sectionFieldLib","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfFieldType"}},"optional":true},{"name":"documentTypes","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfModuleDocumentType"}},"optional":true}]}]},{"name":"JsonOfModuleDocumentType","exported":true,"kind":"interface","properties":[{"name":"leafType","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"route","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"interface","indexSignature":{"keyName":"lang","keyType":"string","type":{"kind":"name","group":"primitive","refName":"string"}}}]},"optional":true},{"name":"relativeIdGenerator","type":{"kind":"array","itemType":{"kind":"name","group":"ts","refName":"any"}},"optional":true},{"name":"children","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"optional":true},{"name":"childOrdering","type":{"kind":"localRef","refName":"JsonOfChildOrdering"},"optional":true},{"name":"childLimit","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"partLists","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfPartListSchema"}},"optional":true},{"name":"useTaxonomies","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfUseTaxonomy"}},"optional":true},{"name":"withData","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"fields","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true},{"name":"mediaPolicy","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true},{"name":"ogType","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true},{"name":"autoPublish","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true}]},{"name":"JsonOfChildOrdering","exported":true,"kind":"composite","op":"union","types":[{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},{"kind":"literal","literal":"manual"},{"kind":"name","group":"primitive","refName":"string"}]},{"name":"JsonOfDocumentType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfModuleDocumentType"},{"kind":"interface","properties":[{"name":"from","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]}]},{"name":"JsonOfPartListSchema","exported":true,"kind":"interface","properties":[{"name":"listName","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"orderBy","type":{"kind":"literal","literal":"manual"}},{"name":"partLeafTypes","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}}},{"name":"partLimit","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true}]},{"name":"JsonOfPartSchema","exported":true,"kind":"interface","properties":[{"name":"leafType","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"withData","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"fields","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true},{"name":"mediaPolicy","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]},{"name":"JsonOfUseTaxonomy","exported":true,"kind":"interface","properties":[{"name":"leafType","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"relation","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"single"},{"kind":"literal","literal":"multiple"}]}},{"name":"withLeadTerm","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"single"},{"kind":"literal","literal":"multiple"}]},"optional":true}]},{"name":"JsonOfFieldType","exported":true,"kind":"composite","op":"union","types":[{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfVarcharFieldType"},{"kind":"localRef","refName":"JsonOfTextFieldType"},{"kind":"localRef","refName":"JsonOfLeafMediaFieldType"},{"kind":"localRef","refName":"JsonOfLeafGalleryFieldType"}]}]},{"name":"JsonOfFieldTypeBase","exported":true,"kind":"interface","properties":[{"name":"storedOn","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"leaf"},{"kind":"literal","literal":"section"}]}},{"name":"name","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"JsonOfVarcharFieldType","exported":true,"kind":"composite","op":"union","types":[{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfStringVarcharFieldType"},{"kind":"localRef","refName":"JsonOfNumberVarcharFieldType"},{"kind":"localRef","refName":"JsonOfBooleanVarcharFieldType"}]}]},{"name":"JsonOfStringVarcharFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"varchar"}},{"name":"dataType","type":{"kind":"literal","literal":"string"}}]}]},{"name":"JsonOfNumberVarcharFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"varchar"}},{"name":"dataType","type":{"kind":"literal","literal":"number"}},{"name":"currency","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]}]},{"name":"JsonOfBooleanVarcharFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"varchar"}},{"name":"dataType","type":{"kind":"literal","literal":"boolean"}}]}]},{"name":"JsonOfTextFieldType","exported":true,"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFTextFieldType"},{"kind":"localRef","refName":"JsonOfJsonFieldType"}]},{"name":"JsonOfFTextFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"text"}},{"name":"dataType","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"quillDelta"},{"kind":"literal","literal":"html"}]}},{"name":"useAsExcerpt","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"useAsDefaultImage","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"withGallery","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"backOffice","type":{"kind":"localRef","refName":"JsonOfFTextFieldBackOffice"},"optional":true}]}]},{"name":"JsonOfJsonFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"text"}},{"name":"dataType","type":{"kind":"literal","literal":"json"}}]}]},{"name":"JsonOfFTextFieldBackOffice","exported":true,"kind":"interface","properties":[{"name":"editorRows","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true}]},{"name":"JsonOfGalleryFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"mediaHandle"}},{"name":"dataType","type":{"kind":"literal","literal":"gallery"}},{"name":"accept","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"refuse","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]}]},{"name":"JsonOfLeafGalleryFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfGalleryFieldType"},{"kind":"interface","properties":[{"name":"useAsDefaultImage","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true}]}]},{"name":"JsonOfMediaFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"mediaHandle"}},{"name":"dataType","type":{"kind":"literal","literal":"media"}},{"name":"accept","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"refuse","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]}]},{"name":"JsonOfLeafMediaFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfMediaFieldType"},{"kind":"interface","properties":[{"name":"useAsDefaultImage","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true}]}]},{"name":"JsonOfMediaPolicy","exported":true,"kind":"interface","properties":[{"name":"policyName","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"mediaLimitPerDocument","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"mediaLimitPerPart","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"attachedDocument","type":{"kind":"localRef","refName":"JsonOfAttachedDocumentPolicy"},"optional":true},{"name":"image","type":{"kind":"localRef","refName":"JsonOfImagePolicy"},"optional":true}]},{"name":"JsonOfAttachedDocumentPolicy","exported":true,"kind":"interface","properties":[{"name":"siteWeightLimitB","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true}]},{"name":"JsonOfImagePolicy","exported":true,"kind":"interface","properties":[{"name":"weightLimitB","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"areaLimitPx","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true}]},{"name":"JsonOfImageCompressionQualityPolicy","exported":true,"kind":"interface","properties":[{"name":"areaLimitPx","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"quality","type":{"kind":"name","group":"primitive","refName":"number"}}]}]},"./theme-json-types":{"namedTypes":[{"name":"JsonOfThemeConf","exported":true,"kind":"interface","properties":[{"name":"fTextImages","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}}}]}]}}