@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,228 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.searchDocuments = exports.isOrphanLeaf = exports.getBreadcrumb = exports.setSectionReady = exports.getSectionWraps = exports.findOneSection = exports.leafSections = void 0;
4
- const common_1 = require("@nestjs/common");
5
- const data_formatters_lib_1 = require("@paroi/data-formatters-lib");
6
- const anywhere_lib_1 = require("@paroicms/anywhere-lib");
7
- const child_ordering_query_1 = require("../../../common/child-ordering-query");
8
- const data_format_1 = require("../../../common/data-format");
9
- const ddl_migration_1 = require("../../../site-context/db-init/ddl-migration");
10
- const search_text_queries_1 = require("../../public-api/search-text/search-text.queries");
11
- const leaf_queries_1 = require("../leaf/leaf.queries");
12
- const section_model_1 = require("./section.model");
13
- async function leafSections({ mainCn }, leafId) {
14
- return await mainCn.getRepository(section_model_1.SectionEntity).find({
15
- where: { leafId },
16
- });
17
- }
18
- exports.leafSections = leafSections;
19
- async function findOneSection({ mainCn }, sectionId) {
20
- const section = await mainCn.getRepository(section_model_1.SectionEntity).findOne({
21
- where: sectionId,
22
- });
23
- if (!section) {
24
- throw new common_1.NotFoundException(`can't find section ${sectionId.lang}:${sectionId.leafId}`);
25
- }
26
- return section;
27
- }
28
- exports.findOneSection = findOneSection;
29
- async function getSectionWraps(siteContext, { parentId, pagination, }) {
30
- let total;
31
- let sectionEntities;
32
- if (pagination) {
33
- const childSectionsResult = await getChildSectionsForAllLangs(siteContext, {
34
- parentLeafId: parentId.leafId,
35
- pagination,
36
- });
37
- sectionEntities = childSectionsResult.list;
38
- total = childSectionsResult.total;
39
- }
40
- else {
41
- sectionEntities = await getChildSectionsForAllLangs(siteContext, {
42
- parentLeafId: parentId.leafId,
43
- pagination,
44
- });
45
- }
46
- const byLeafIdMap = new Map();
47
- sectionEntities.forEach((sectionEntity) => {
48
- let list = byLeafIdMap.get(sectionEntity.leafId);
49
- if (!list) {
50
- list = [];
51
- byLeafIdMap.set(sectionEntity.leafId, list);
52
- }
53
- list.push(sectionEntity);
54
- });
55
- const result = [];
56
- byLeafIdMap.forEach((list) => {
57
- let found = list.find((i) => i.lang === parentId.lang);
58
- found ??= list[0];
59
- result.push(found);
60
- });
61
- const sectionWraps = result.map((item) => {
62
- return {
63
- ...(0, data_format_1.sectionWrapToObjectType)(item),
64
- section: (0, data_format_1.sectionEntityToObjectType)(item),
65
- };
66
- });
67
- return {
68
- total,
69
- sectionWraps,
70
- };
71
- }
72
- exports.getSectionWraps = getSectionWraps;
73
- async function getChildSectionsForAllLangs(siteContext, options) {
74
- const parentLeafType = await (0, leaf_queries_1.getLeafTypeOf)(siteContext, options.parentLeafId);
75
- const leafTypes = (0, anywhere_lib_1.childrenClassicLeafTypesOf)(siteContext.siteSchema, parentLeafType);
76
- const parentDocumentType = (0, anywhere_lib_1.getDocumentTypeByLeafType)(siteContext.siteSchema, parentLeafType);
77
- const query = createBaseChildSectionsForAllLangsQueryBuilder(siteContext, {
78
- parentLeafId: options.parentLeafId,
79
- leafTypes,
80
- })
81
- .select("s.leafId", "leafId")
82
- .addSelect("s.lang", "lang")
83
- .addSelect("s.ready", "ready");
84
- (0, child_ordering_query_1.applyChildOrderingOnQuery)(siteContext, {
85
- query,
86
- parentDocumentType,
87
- leftJoinDocument: true,
88
- });
89
- if (options.pagination) {
90
- query.limit(options.pagination.limit).offset(options.pagination.start);
91
- }
92
- const rows = await query.getRawMany();
93
- const formatedRows = rows.map((row) => ({
94
- leafId: (0, data_formatters_lib_1.strVal)(row.leafId),
95
- lang: (0, data_formatters_lib_1.strVal)(row.lang),
96
- ready: (0, data_formatters_lib_1.boolVal)(row.ready),
97
- }));
98
- if (options.pagination) {
99
- let total;
100
- if (rows.length < options.pagination.limit) {
101
- total = options.pagination.start + rows.length;
102
- }
103
- else {
104
- total = await countChildSectionsForAllLangs(siteContext, {
105
- parentLeafId: options.parentLeafId,
106
- leafTypes,
107
- });
108
- }
109
- return {
110
- list: formatedRows,
111
- total,
112
- };
113
- }
114
- return formatedRows;
115
- }
116
- async function countChildSectionsForAllLangs(siteContext, { parentLeafId, leafTypes }) {
117
- const row = await createBaseChildSectionsForAllLangsQueryBuilder(siteContext, {
118
- parentLeafId,
119
- leafTypes,
120
- })
121
- .select("count(1)", "total")
122
- .getRawOne();
123
- return (0, data_formatters_lib_1.nbVal)(row.total);
124
- }
125
- function createBaseChildSectionsForAllLangsQueryBuilder(siteContext, { parentLeafId, leafTypes, }) {
126
- return siteContext.mainCn
127
- .createQueryBuilder()
128
- .from("PaSection", "s")
129
- .innerJoin("PaLeaf", "l", "l.id = s.leafId")
130
- .where("l.parentId = :parentId", {
131
- parentId: parentLeafId,
132
- })
133
- .andWhere("l.leafType in (:...leafTypes)", { leafTypes });
134
- }
135
- async function setSectionReady(siteContext, { sectionId, ready }) {
136
- await siteContext.mainCn.getRepository(section_model_1.SectionEntity).update(sectionId, { ready });
137
- }
138
- exports.setSectionReady = setSectionReady;
139
- async function getBreadcrumb(siteContext, tracker, documentId, options = {}) {
140
- const depth = await (0, leaf_queries_1.getLeafDepth)(siteContext, tracker, documentId.leafId);
141
- if (depth === 0)
142
- return [];
143
- const lang = documentId.lang;
144
- const query = siteContext.mainCn
145
- .createQueryBuilder()
146
- .from("PaLeaf", `l${depth}`)
147
- .where(`l${depth}.id = :leafId`, { leafId: documentId.leafId });
148
- if (options.ensurePublished)
149
- queryEnsurePublished(query, depth, lang);
150
- const minDepth = options.skipHome ? 1 : 0;
151
- let prev = depth;
152
- for (let cur = depth - 1; cur >= minDepth; --cur) {
153
- query
154
- .addSelect(`l${cur}.id`, `leafId${cur}`)
155
- .addSelect(`l${cur}.leafType`, `leafType${cur}`)
156
- .addSelect(`d${cur}.title`, `title${cur}`)
157
- .innerJoin("PaLeaf", `l${cur}`, `l${cur}.id = l${prev}.parentId`)
158
- .leftJoin("PaDocument", `d${cur}`, `d${cur}.leafId = l${cur}.id and d${cur}.lang = :lang`, {
159
- lang,
160
- });
161
- if (options.ensurePublished)
162
- queryEnsurePublished(query, cur, lang);
163
- prev = cur;
164
- }
165
- const row = await query.getRawOne();
166
- tracker.trackAccess(ddl_migration_1.dbSchemaName, "PaLeaf", "read");
167
- if (!row)
168
- throw new Error(`cannot get breadcrumb of '${documentId.lang}:${documentId.leafId}'`);
169
- const result = [];
170
- for (let d = minDepth; d < depth; ++d) {
171
- const leafId = (0, data_formatters_lib_1.strVal)(row[`leafId${d}`], { varName: `leafId${d}` });
172
- const leafType = (0, data_formatters_lib_1.strVal)(row[`leafType${d}`], { varName: `leafType${d}` });
173
- const title = (0, data_formatters_lib_1.strValOrUndef)(row[`title${d}`], { varName: `title${d}` });
174
- if (options.ensurePublished) {
175
- const documentType = (0, anywhere_lib_1.getDocumentTypeByLeafType)(siteContext.siteSchema, leafType);
176
- if (!documentType.withData)
177
- continue;
178
- }
179
- result.push({
180
- documentId: { leafId, lang },
181
- leafType,
182
- title,
183
- });
184
- }
185
- return result;
186
- }
187
- exports.getBreadcrumb = getBreadcrumb;
188
- function queryEnsurePublished(query, d, lang) {
189
- query
190
- .innerJoin("PaSection", `s${d}`, `s${d}.leafId = l${d}.id and s${d}.lang = :lang`, {
191
- lang,
192
- })
193
- .andWhere(`s${d}.ready = 1`)
194
- .andWhere(`l${d}.publishDate <= current_timestamp`);
195
- }
196
- async function isOrphanLeaf(cn, leafId) {
197
- const count = await cn.getRepository(section_model_1.SectionEntity).count({ where: { leafId } });
198
- return count === 0;
199
- }
200
- exports.isOrphanLeaf = isOrphanLeaf;
201
- async function searchDocuments(siteContext, options) {
202
- const { queryString, lang, start, limit } = options;
203
- const words = (0, data_formatters_lib_1.strVal)(queryString)
204
- .split(/\s+/)
205
- .filter((word) => word.length >= 2);
206
- if (words.length === 0)
207
- return { total: 0, start, items: [] };
208
- const result = await (0, search_text_queries_1.searchText)(siteContext, {
209
- lang: (0, data_formatters_lib_1.strVal)(lang),
210
- words,
211
- start: (0, data_formatters_lib_1.nbVal)(start),
212
- limit: (0, data_formatters_lib_1.nbVal)(limit),
213
- });
214
- const sectionWraps = result.map((row) => {
215
- return {
216
- sectionId: (0, anywhere_lib_1.encodeSectionId)({ lang: row.lang, leafId: row.leafId }),
217
- lang: row.lang,
218
- leafId: row.leafId,
219
- };
220
- });
221
- return {
222
- total: sectionWraps.length,
223
- items: sectionWraps,
224
- start,
225
- };
226
- }
227
- exports.searchDocuments = searchDocuments;
228
- //# sourceMappingURL=section.queries.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"section.queries.js","sourceRoot":"","sources":["../../../../src/modules/core/section/section.queries.ts"],"names":[],"mappings":";;;AAAA,2CAAmD;AACnD,oEAAmF;AACnF,yDAMgC;AAGhC,+EAAiF;AACjF,6DAAiG;AACjG,+EAA2E;AAE3E,0FAA8E;AAC9E,uDAAmE;AACnE,mDAAgD;AAYzC,KAAK,UAAU,YAAY,CAAC,EAAE,MAAM,EAAe,EAAE,MAAc;IACxE,OAAO,MAAM,MAAM,CAAC,aAAa,CAAC,6BAAa,CAAC,CAAC,IAAI,CAAC;QACpD,KAAK,EAAE,EAAE,MAAM,EAAE;KAClB,CAAC,CAAC;AACL,CAAC;AAJD,oCAIC;AAEM,KAAK,UAAU,cAAc,CAAC,EAAE,MAAM,EAAe,EAAE,SAA0B;IACtF,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,6BAAa,CAAC,CAAC,OAAO,CAAC;QAChE,KAAK,EAAE,SAAS;KACjB,CAAC,CAAC;IAEH,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAA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jectType } from "./section.schema";
3
- export declare class SectionResolver {
4
- setSectionReady({ fqdn }: GraphqlContext, sectionId: string, ready: boolean): Promise<SectionObjectType>;
5
- translatedInto({ fqdn }: GraphqlContext, { leafId }: SectionObjectType): Promise<unknown[]>;
6
- routingPointIds({ fqdn }: GraphqlContext): Promise<string>;
7
- }
@@ -1,78 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.SectionResolver = void 0;
16
- const common_1 = require("@nestjs/common");
17
- const graphql_1 = require("@nestjs/graphql");
18
- const anywhere_lib_1 = require("@paroicms/anywhere-lib");
19
- const data_format_1 = require("../../../common/data-format");
20
- const site_context_1 = require("../../../site-context/site-context");
21
- const jwt_auth_guard_1 = require("../auth/jwt.auth.guard");
22
- const section_queries_1 = require("./section.queries");
23
- const section_schema_1 = require("./section.schema");
24
- let SectionResolver = class SectionResolver {
25
- async setSectionReady({ fqdn }, sectionId, ready) {
26
- const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
27
- const parsedId = (0, anywhere_lib_1.parseSectionId)(sectionId);
28
- await (0, section_queries_1.setSectionReady)(siteContext, {
29
- sectionId: parsedId,
30
- ready,
31
- });
32
- return (0, data_format_1.sectionEntityToObjectType)(await (0, section_queries_1.findOneSection)(siteContext, parsedId));
33
- }
34
- async translatedInto({ fqdn }, { leafId }) {
35
- const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
36
- const sections = await siteContext.mainCn
37
- .createQueryBuilder()
38
- .select("s.lang", "lang")
39
- .from("PaSection", "s")
40
- .where("s.leafId = :leafId", { leafId })
41
- .getRawMany();
42
- return sections.map((item) => item.lang);
43
- }
44
- async routingPointIds({ fqdn }) {
45
- const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
46
- return JSON.stringify(siteContext.siteIds.homeIds);
47
- }
48
- };
49
- exports.SectionResolver = SectionResolver;
50
- __decorate([
51
- (0, graphql_1.Mutation)(() => section_schema_1.SectionObjectType),
52
- __param(0, (0, graphql_1.Context)()),
53
- __param(1, (0, graphql_1.Args)("sectionId", { type: () => graphql_1.ID })),
54
- __param(2, (0, graphql_1.Args)("ready", { type: () => Boolean })),
55
- __metadata("design:type", Function),
56
- __metadata("design:paramtypes", [Object, String, Boolean]),
57
- __metadata("design:returntype", Promise)
58
- ], SectionResolver.prototype, "setSectionReady", null);
59
- __decorate([
60
- (0, graphql_1.ResolveField)(() => [String]),
61
- __param(0, (0, graphql_1.Context)()),
62
- __param(1, (0, graphql_1.Parent)()),
63
- __metadata("design:type", Function),
64
- __metadata("design:paramtypes", [Object, section_schema_1.SectionObjectType]),
65
- __metadata("design:returntype", Promise)
66
- ], SectionResolver.prototype, "translatedInto", null);
67
- __decorate([
68
- (0, graphql_1.Query)(() => String),
69
- __param(0, (0, graphql_1.Context)()),
70
- __metadata("design:type", Function),
71
- __metadata("design:paramtypes", [Object]),
72
- __metadata("design:returntype", Promise)
73
- ], SectionResolver.prototype, "routingPointIds", null);
74
- exports.SectionResolver = SectionResolver = __decorate([
75
- (0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
76
- (0, graphql_1.Resolver)(() => section_schema_1.SectionObjectType)
77
- ], SectionResolver);
78
- //# sourceMappingURL=section.resolver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"section.resolver.js","sourceRoot":"","sources":["../../../../src/modules/core/section/section.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,6CASyB;AACzB,yDAA6D;AAC7D,6DAAwE;AACxE,qEAAoE;AAEpE,2DAAsD;AACtD,uDAAoE;AACpE,qDAAqD;AAI9C,IAAM,eAAe,GAArB,MAAM,eAAe;IAEpB,AAAN,KAAK,CAAC,eAAe,CACR,EAAE,IAAI,EAAkB,EACI,SAAiB,EAChB,KAAc;QAEtD,MAAM,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAC/C,MAAM,QAAQ,GAAG,IAAA,6BAAc,EAAC,SAAS,CAAC,CAAC;QAC3C,MAAM,IAAA,iCAAe,EAAC,WAAW,EAAE;YACjC,SAAS,EAAE,QAAQ;YACnB,KAAK;SACN,CAAC,CAAC;QACH,OAAO,IAAA,uCAAyB,EAAC,MAAM,IAAA,gCAAc,EAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;IAChF,CAAC;IAGK,AAAN,KAAK,CAAC,cAAc,CACP,EAAE,IAAI,EAAkB,EAEnC,EAAE,MAAM,EAAqB;QAE7B,MAAM,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAE/C,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,MAAM;aACtC,kBAAkB,EAAE;aACpB,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC;aACxB,IAAI,CAAC,WAAW,EAAE,GAAG,CAAC;aACtB,KAAK,CAAC,oBAAoB,EAAE,EAAE,MAAM,EAAE,CAAC;aACvC,UAAU,EAAO,CAAC;QAErB,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IAGK,AAAN,KAAK,CAAC,eAAe,CAAY,EAAE,IAAI,EAAkB;QACvD,MAAM,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAC/C,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACrD,CAAC;CACF,CAAA;AAvCY,0CAAe;AAEpB;IADL,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kCAAiB,CAAC;IAE/B,WAAA,IAAA,iBAAO,GAAE,CAAA;IACT,WAAA,IAAA,cAAI,EAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,YAAE,EAAE,CAAC,CAAA;IACrC,WAAA,IAAA,cAAI,EAAC,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAA;;;;sDASxC;AAGK;IADL,IAAA,sBAAY,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;IAE1B,WAAA,IAAA,iBAAO,GAAE,CAAA;IACT,WAAA,IAAA,gBAAM,GAAE,CAAA;;6CACG,kCAAiB;;qDAY9B;AAGK;IADL,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IACG,WAAA,IAAA,iBAAO,GAAE,CAAA;;;;sDAG/B;0BAtCU,eAAe;IAF3B,IAAA,kBAAS,EAAC,6BAAY,CAAC;IACvB,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kCAAiB,CAAC;GACrB,eAAe,CAuC3B"}
@@ -1,27 +0,0 @@
1
- export declare class SectionObjectType {
2
- sectionId: string;
3
- leafId: string;
4
- lang: string;
5
- ready: boolean;
6
- }
7
- export declare class PagedSectionWrapsObjectType {
8
- items: SectionWrapObjectType[];
9
- start: number;
10
- total: number;
11
- }
12
- export declare class SectionWrapObjectType {
13
- sectionId: string;
14
- lang: string;
15
- leafId: string;
16
- }
17
- export declare class SectionTranslationObjectType {
18
- lang: string;
19
- sectionId: string;
20
- }
21
- export declare class BreadcrumbItemObjectType {
22
- lang: string;
23
- leafId: string;
24
- sectionId: string;
25
- leafType: string;
26
- title?: string;
27
- }
@@ -1,129 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.BreadcrumbItemObjectType = exports.SectionTranslationObjectType = exports.SectionWrapObjectType = exports.PagedSectionWrapsObjectType = exports.SectionObjectType = void 0;
13
- const graphql_1 = require("@nestjs/graphql");
14
- let SectionObjectType = class SectionObjectType {
15
- sectionId;
16
- leafId;
17
- lang;
18
- ready;
19
- };
20
- exports.SectionObjectType = SectionObjectType;
21
- __decorate([
22
- (0, graphql_1.Field)(() => graphql_1.ID),
23
- __metadata("design:type", String)
24
- ], SectionObjectType.prototype, "sectionId", void 0);
25
- __decorate([
26
- (0, graphql_1.Field)(() => graphql_1.ID),
27
- __metadata("design:type", String)
28
- ], SectionObjectType.prototype, "leafId", void 0);
29
- __decorate([
30
- (0, graphql_1.Field)(() => String),
31
- __metadata("design:type", String)
32
- ], SectionObjectType.prototype, "lang", void 0);
33
- __decorate([
34
- (0, graphql_1.Field)(() => Boolean),
35
- __metadata("design:type", Boolean)
36
- ], SectionObjectType.prototype, "ready", void 0);
37
- exports.SectionObjectType = SectionObjectType = __decorate([
38
- (0, graphql_1.ObjectType)("Section")
39
- ], SectionObjectType);
40
- let PagedSectionWrapsObjectType = class PagedSectionWrapsObjectType {
41
- items;
42
- start;
43
- total;
44
- };
45
- exports.PagedSectionWrapsObjectType = PagedSectionWrapsObjectType;
46
- __decorate([
47
- (0, graphql_1.Field)(() => [SectionWrapObjectType]),
48
- __metadata("design:type", Array)
49
- ], PagedSectionWrapsObjectType.prototype, "items", void 0);
50
- __decorate([
51
- (0, graphql_1.Field)(() => graphql_1.Int),
52
- __metadata("design:type", Number)
53
- ], PagedSectionWrapsObjectType.prototype, "start", void 0);
54
- __decorate([
55
- (0, graphql_1.Field)(() => graphql_1.Int),
56
- __metadata("design:type", Number)
57
- ], PagedSectionWrapsObjectType.prototype, "total", void 0);
58
- exports.PagedSectionWrapsObjectType = PagedSectionWrapsObjectType = __decorate([
59
- (0, graphql_1.ObjectType)("PagedSectionWraps")
60
- ], PagedSectionWrapsObjectType);
61
- let SectionWrapObjectType = class SectionWrapObjectType {
62
- sectionId;
63
- lang;
64
- leafId;
65
- };
66
- exports.SectionWrapObjectType = SectionWrapObjectType;
67
- __decorate([
68
- (0, graphql_1.Field)(() => graphql_1.ID),
69
- __metadata("design:type", String)
70
- ], SectionWrapObjectType.prototype, "sectionId", void 0);
71
- __decorate([
72
- (0, graphql_1.Field)(() => String),
73
- __metadata("design:type", String)
74
- ], SectionWrapObjectType.prototype, "lang", void 0);
75
- __decorate([
76
- (0, graphql_1.Field)(() => String),
77
- __metadata("design:type", String)
78
- ], SectionWrapObjectType.prototype, "leafId", void 0);
79
- exports.SectionWrapObjectType = SectionWrapObjectType = __decorate([
80
- (0, graphql_1.ObjectType)("SectionWrap")
81
- ], SectionWrapObjectType);
82
- let SectionTranslationObjectType = class SectionTranslationObjectType {
83
- lang;
84
- sectionId;
85
- };
86
- exports.SectionTranslationObjectType = SectionTranslationObjectType;
87
- __decorate([
88
- (0, graphql_1.Field)(() => String),
89
- __metadata("design:type", String)
90
- ], SectionTranslationObjectType.prototype, "lang", void 0);
91
- __decorate([
92
- (0, graphql_1.Field)(() => graphql_1.ID),
93
- __metadata("design:type", String)
94
- ], SectionTranslationObjectType.prototype, "sectionId", void 0);
95
- exports.SectionTranslationObjectType = SectionTranslationObjectType = __decorate([
96
- (0, graphql_1.ObjectType)("SectionTranslation")
97
- ], SectionTranslationObjectType);
98
- let BreadcrumbItemObjectType = class BreadcrumbItemObjectType {
99
- lang;
100
- leafId;
101
- sectionId;
102
- leafType;
103
- title;
104
- };
105
- exports.BreadcrumbItemObjectType = BreadcrumbItemObjectType;
106
- __decorate([
107
- (0, graphql_1.Field)(() => String),
108
- __metadata("design:type", String)
109
- ], BreadcrumbItemObjectType.prototype, "lang", void 0);
110
- __decorate([
111
- (0, graphql_1.Field)(() => graphql_1.ID),
112
- __metadata("design:type", String)
113
- ], BreadcrumbItemObjectType.prototype, "leafId", void 0);
114
- __decorate([
115
- (0, graphql_1.Field)(() => graphql_1.ID),
116
- __metadata("design:type", String)
117
- ], BreadcrumbItemObjectType.prototype, "sectionId", void 0);
118
- __decorate([
119
- (0, graphql_1.Field)(() => String),
120
- __metadata("design:type", String)
121
- ], BreadcrumbItemObjectType.prototype, "leafType", void 0);
122
- __decorate([
123
- (0, graphql_1.Field)(() => String, { nullable: true }),
124
- __metadata("design:type", String)
125
- ], BreadcrumbItemObjectType.prototype, "title", void 0);
126
- exports.BreadcrumbItemObjectType = BreadcrumbItemObjectType = __decorate([
127
- (0, graphql_1.ObjectType)("BreadcrumbItem")
128
- ], BreadcrumbItemObjectType);
129
- //# sourceMappingURL=section.schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"section.schema.js","sourceRoot":"","sources":["../../../../src/modules/core/section/section.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA6D;AAGtD,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAE5B,SAAS,CAAU;IAGnB,MAAM,CAAU;IAGhB,IAAI,CAAU;IAGd,KAAK,CAAW;CACjB,CAAA;AAZY,8CAAiB;AAE5B;IADC,IAAA,eA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oEAA4B;AAEvC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0DACN;AAGd;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;+DACG;uCALR,4BAA4B;IADxC,IAAA,oBAAU,EAAC,oBAAoB,CAAC;GACpB,4BAA4B,CAMxC;AAGM,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAEnC,IAAI,CAAU;IAGd,MAAM,CAAU;IAGhB,SAAS,CAAU;IAGnB,QAAQ,CAAU;IAGlB,KAAK,CAAU;CAChB,CAAA;AAfY,4DAAwB;AAEnC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sDACN;AAGd;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;wDACA;AAGhB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;2DACG;AAGnB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0DACF;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACzB;mCAdJ,wBAAwB;IADpC,IAAA,oBAAU,EAAC,gBAAgB,CAAC;GAChB,wBAAwB,CAepC"}
@@ -1,2 +0,0 @@
1
- export declare class SiteInfoModule {
2
- }
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.SiteInfoModule = void 0;
10
- const common_1 = require("@nestjs/common");
11
- const site_info_resolver_1 = require("./site-info.resolver");
12
- let SiteInfoModule = class SiteInfoModule {
13
- };
14
- exports.SiteInfoModule = SiteInfoModule;
15
- exports.SiteInfoModule = SiteInfoModule = __decorate([
16
- (0, common_1.Module)({
17
- providers: [site_info_resolver_1.SiteInfoResolver],
18
- })
19
- ], SiteInfoModule);
20
- //# sourceMappingURL=site-info.module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"site-info.module.js","sourceRoot":"","sources":["../../../../src/modules/core/site-info/site-info.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6DAAwD;AAKjD,IAAM,cAAc,GAApB,MAAM,cAAc;CAAG,CAAA;AAAjB,wCAAc;yBAAd,cAAc;IAH1B,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,qCAAgB,CAAC;KAC9B,CAAC;GACW,cAAc,CAAG"}
@@ -1,5 +0,0 @@
1
- import { GraphqlContext } from "../../graphql.types";
2
- import { SiteInfoObjectType } from "./site-info.schema";
3
- export declare class SiteInfoResolver {
4
- siteInfo({ fqdn }: GraphqlContext): Promise<SiteInfoObjectType>;
5
- }
@@ -1,44 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.SiteInfoResolver = void 0;
16
- const common_1 = require("@nestjs/common");
17
- const graphql_1 = require("@nestjs/graphql");
18
- const site_context_1 = require("../../../site-context/site-context");
19
- const jwt_auth_guard_1 = require("../auth/jwt.auth.guard");
20
- const site_info_schema_1 = require("./site-info.schema");
21
- let SiteInfoResolver = class SiteInfoResolver {
22
- async siteInfo({ fqdn }) {
23
- const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
24
- return {
25
- currentThemeConf: {
26
- fTextImages: siteContext.themeConf.fTextImages,
27
- },
28
- };
29
- }
30
- };
31
- exports.SiteInfoResolver = SiteInfoResolver;
32
- __decorate([
33
- (0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
34
- (0, graphql_1.Query)(() => site_info_schema_1.SiteInfoObjectType),
35
- __param(0, (0, graphql_1.Context)()),
36
- __metadata("design:type", Function),
37
- __metadata("design:paramtypes", [Object]),
38
- __metadata("design:returntype", Promise)
39
- ], SiteInfoResolver.prototype, "siteInfo", null);
40
- exports.SiteInfoResolver = SiteInfoResolver = __decorate([
41
- (0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
42
- (0, graphql_1.Resolver)(() => site_info_schema_1.SiteInfoObjectType)
43
- ], SiteInfoResolver);
44
- //# sourceMappingURL=site-info.resolver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"site-info.resolver.js","sourceRoot":"","sources":["../../../../src/modules/core/site-info/site-info.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,6CAA2D;AAC3D,qEAAoE;AAEpE,2DAAsD;AACtD,yDAAwD;AAIjD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAGrB,AAAN,KAAK,CAAC,QAAQ,CAAY,EAAE,IAAI,EAAkB;QAChD,MAAM,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAC/C,OAAO;YACL,gBAAgB,EAAE;gBAChB,WAAW,EAAE,WAAW,CAAC,SAAS,CAAC,WAAW;aAC/C;SACF,CAAC;IACJ,CAAC;CACF,CAAA;AAXY,4CAAgB;AAGrB;IAFL,IAAA,kBAAS,EAAC,6BAAY,CAAC;IACvB,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;IAChB,WAAA,IAAA,iBAAO,GAAE,CAAA;;;;gDAOxB;2BAVU,gBAAgB;IAF5B,IAAA,kBAAS,EAAC,6BAAY,CAAC;IACvB,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,qCAAkB,CAAC;GACtB,gBAAgB,CAW5B"}
@@ -1,6 +0,0 @@
1
- export declare class CurrentThemeConfObjectType {
2
- fTextImages: string[];
3
- }
4
- export declare class SiteInfoObjectType {
5
- currentThemeConf: CurrentThemeConfObjectType;
6
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.SiteInfoObjectType = exports.CurrentThemeConfObjectType = void 0;
13
- const graphql_1 = require("@nestjs/graphql");
14
- let CurrentThemeConfObjectType = class CurrentThemeConfObjectType {
15
- fTextImages;
16
- };
17
- exports.CurrentThemeConfObjectType = CurrentThemeConfObjectType;
18
- __decorate([
19
- (0, graphql_1.Field)(() => [String]),
20
- __metadata("design:type", Array)
21
- ], CurrentThemeConfObjectType.prototype, "fTextImages", void 0);
22
- exports.CurrentThemeConfObjectType = CurrentThemeConfObjectType = __decorate([
23
- (0, graphql_1.ObjectType)("CurrentThemeConf")
24
- ], CurrentThemeConfObjectType);
25
- let SiteInfoObjectType = class SiteInfoObjectType {
26
- currentThemeConf;
27
- };
28
- exports.SiteInfoObjectType = SiteInfoObjectType;
29
- __decorate([
30
- (0, graphql_1.Field)(() => CurrentThemeConfObjectType),
31
- __metadata("design:type", CurrentThemeConfObjectType)
32
- ], SiteInfoObjectType.prototype, "currentThemeConf", void 0);
33
- exports.SiteInfoObjectType = SiteInfoObjectType = __decorate([
34
- (0, graphql_1.ObjectType)("SiteInfo")
35
- ], SiteInfoObjectType);
36
- //# sourceMappingURL=site-info.schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"site-info.schema.js","sourceRoot":"","sources":["../../../../src/modules/core/site-info/site-info.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AAG7C,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAErC,WAAW,CAAY;CACxB,CAAA;AAHY,gEAA0B;AAErC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;;+DACC;qCAFZ,0BAA0B;IADtC,IAAA,oBAAU,EAAC,kBAAkB,CAAC;GAClB,0BAA0B,CAGtC;AAGM,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAE7B,gBAAgB,CAA8B;CAC/C,CAAA;AAHY,gDAAkB;AAE7B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BACrB,0BAA0B;4DAAC;6BAFnC,kBAAkB;IAD9B,IAAA,oBAAU,EAAC,UAAU,CAAC;GACV,kBAAkB,CAG9B"}
@@ -1,2 +0,0 @@
1
- export declare class SiteSchemaModule {
2
- }