@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,199 +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.MediaResolver = void 0;
16
- const graphql_1 = require("@nestjs/graphql");
17
- const common_1 = require("@nestjs/common");
18
- const server_image_cache_engine_1 = require("@paroicms/server-image-cache-engine");
19
- const media_handles_helpers_1 = require("../../../common/media-handles.helpers");
20
- const text_cache_1 = require("../../../common/text-cache");
21
- const context_1 = require("../../../context");
22
- const site_context_1 = require("../../../site-context/site-context");
23
- const media_1 = require("./media");
24
- const media_schema_1 = require("./media.schema");
25
- let MediaResolver = class MediaResolver {
26
- async medias({ fqdn }, galleryHandle) {
27
- const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
28
- return await siteContext.mediaStorage.getMedias({ handle: galleryHandle });
29
- }
30
- async media({ fqdn }, handle) {
31
- const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
32
- return await siteContext.mediaStorage.getMedia({ handle });
33
- }
34
- async deleteMediaFromGallery({ fqdn }, uid, galleryHandle) {
35
- const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
36
- const deletedUids = await siteContext.mediaStorage.deleteMedia({ uid, handle: galleryHandle });
37
- await siteContext.imageCache.invalidate({ imageUids: deletedUids });
38
- const leafId = (0, media_handles_helpers_1.extractLeafIdFromHandle)(galleryHandle);
39
- if (leafId !== undefined)
40
- await (0, text_cache_1.invalidateMultipleDocumentsInCache)(siteContext, { leafId });
41
- return galleryHandle;
42
- }
43
- async deleteMedia({ fqdn }, handle) {
44
- const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
45
- const deletedUids = await siteContext.mediaStorage.deleteMedia({ handle });
46
- await siteContext.imageCache.invalidate({ imageUids: deletedUids });
47
- const leafId = (0, media_handles_helpers_1.extractLeafIdFromHandle)(handle);
48
- if (leafId !== undefined)
49
- await (0, text_cache_1.invalidateMultipleDocumentsInCache)(siteContext, { leafId });
50
- return handle;
51
- }
52
- async updateAttachedData({ fqdn }, mediaUid, values) {
53
- const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
54
- return await siteContext.mediaStorage.updateAttachedData({ mediaUid, values });
55
- }
56
- async reorderMedias({ fqdn }, input) {
57
- const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
58
- const medias = await siteContext.mediaStorage.reorderMedias({
59
- handle: input.galleryHandle,
60
- mediaUids: input.mediaUids,
61
- });
62
- const leafId = (0, media_handles_helpers_1.extractLeafIdFromHandle)(input.galleryHandle);
63
- if (leafId !== undefined)
64
- await (0, text_cache_1.invalidateMultipleDocumentsInCache)(siteContext, { leafId });
65
- return medias;
66
- }
67
- async url({ fqdn }, media) {
68
- const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
69
- return (0, media_1.makeMediaUrl)(siteContext, media, { absoluteUrl: true });
70
- }
71
- async thumbImage({ fqdn }, media) {
72
- if (media.kind !== "image")
73
- return;
74
- const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
75
- const resized = (0, media_1.registerImageVariant)(siteContext, {
76
- autoCrop: false,
77
- imageRef: {
78
- imageUid: media.uid,
79
- mediaType: media.mediaType,
80
- width: media.width,
81
- height: media.height,
82
- },
83
- variantName: context_1.thumbVariantName,
84
- absoluteUrl: true,
85
- dependsOnCacheKey: "bo",
86
- });
87
- return {
88
- url: resized.url,
89
- width: resized.width,
90
- height: resized.height,
91
- mediaType: resized.mediaType,
92
- originalWidth: media.width,
93
- originalHeight: media.height,
94
- originalLossless: media.lossless,
95
- };
96
- }
97
- async resizeImage({ fqdn }, { variantName, uid }) {
98
- if (!(0, server_image_cache_engine_1.isVariantName)(variantName)) {
99
- throw new common_1.BadRequestException(`invalid variant name '${variantName}'`);
100
- }
101
- const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
102
- const media = await siteContext.mediaStorage.getMedia({ uid });
103
- if (!media)
104
- throw new common_1.NotFoundException(`missing image '${uid}'`);
105
- if (media.kind !== "image")
106
- throw new common_1.BadRequestException(`media '${uid}' is not an image`);
107
- return (0, media_1.registerImageVariant)(siteContext, {
108
- variantName,
109
- autoCrop: true,
110
- imageRef: {
111
- height: media.height,
112
- imageUid: media.uid,
113
- mediaType: media.mediaType,
114
- width: media.width,
115
- },
116
- absoluteUrl: true,
117
- dependsOnCacheKey: "themeConf.fTextImages",
118
- });
119
- }
120
- };
121
- exports.MediaResolver = MediaResolver;
122
- __decorate([
123
- (0, graphql_1.Query)(() => [media_schema_1.MediaObjectType]),
124
- __param(0, (0, graphql_1.Context)()),
125
- __param(1, (0, graphql_1.Args)("galleryHandle", { type: () => graphql_1.ID })),
126
- __metadata("design:type", Function),
127
- __metadata("design:paramtypes", [Object, String]),
128
- __metadata("design:returntype", Promise)
129
- ], MediaResolver.prototype, "medias", null);
130
- __decorate([
131
- (0, graphql_1.Query)(() => media_schema_1.MediaObjectType, { nullable: true }),
132
- __param(0, (0, graphql_1.Context)()),
133
- __param(1, (0, graphql_1.Args)("handle", { type: () => graphql_1.ID })),
134
- __metadata("design:type", Function),
135
- __metadata("design:paramtypes", [Object, String]),
136
- __metadata("design:returntype", Promise)
137
- ], MediaResolver.prototype, "media", null);
138
- __decorate([
139
- (0, graphql_1.Mutation)(() => String),
140
- __param(0, (0, graphql_1.Context)()),
141
- __param(1, (0, graphql_1.Args)("uid", { type: () => graphql_1.ID })),
142
- __param(2, (0, graphql_1.Args)("galleryHandle", { type: () => graphql_1.ID })),
143
- __metadata("design:type", Function),
144
- __metadata("design:paramtypes", [Object, String, String]),
145
- __metadata("design:returntype", Promise)
146
- ], MediaResolver.prototype, "deleteMediaFromGallery", null);
147
- __decorate([
148
- (0, graphql_1.Mutation)(() => String),
149
- __param(0, (0, graphql_1.Context)()),
150
- __param(1, (0, graphql_1.Args)("handle", { type: () => graphql_1.ID })),
151
- __metadata("design:type", Function),
152
- __metadata("design:paramtypes", [Object, String]),
153
- __metadata("design:returntype", Promise)
154
- ], MediaResolver.prototype, "deleteMedia", null);
155
- __decorate([
156
- (0, graphql_1.Mutation)(() => media_schema_1.MediaObjectType),
157
- __param(0, (0, graphql_1.Context)()),
158
- __param(1, (0, graphql_1.Args)("mediaUid", { type: () => graphql_1.ID })),
159
- __param(2, (0, graphql_1.Args)("values", { type: () => String })),
160
- __metadata("design:type", Function),
161
- __metadata("design:paramtypes", [Object, String, String]),
162
- __metadata("design:returntype", Promise)
163
- ], MediaResolver.prototype, "updateAttachedData", null);
164
- __decorate([
165
- (0, graphql_1.Mutation)(() => [media_schema_1.MediaObjectType]),
166
- __param(0, (0, graphql_1.Context)()),
167
- __param(1, (0, graphql_1.Args)("input")),
168
- __metadata("design:type", Function),
169
- __metadata("design:paramtypes", [Object, media_schema_1.ReorderMediasInput]),
170
- __metadata("design:returntype", Promise)
171
- ], MediaResolver.prototype, "reorderMedias", null);
172
- __decorate([
173
- (0, graphql_1.ResolveField)(() => String),
174
- __param(0, (0, graphql_1.Context)()),
175
- __param(1, (0, graphql_1.Parent)()),
176
- __metadata("design:type", Function),
177
- __metadata("design:paramtypes", [Object, Object]),
178
- __metadata("design:returntype", Promise)
179
- ], MediaResolver.prototype, "url", null);
180
- __decorate([
181
- (0, graphql_1.ResolveField)(() => media_schema_1.ThumbImagePropertiesObjectType, { nullable: true }),
182
- __param(0, (0, graphql_1.Context)()),
183
- __param(1, (0, graphql_1.Parent)()),
184
- __metadata("design:type", Function),
185
- __metadata("design:paramtypes", [Object, Object]),
186
- __metadata("design:returntype", Promise)
187
- ], MediaResolver.prototype, "thumbImage", null);
188
- __decorate([
189
- (0, graphql_1.Mutation)(() => media_schema_1.ResizingImage),
190
- __param(0, (0, graphql_1.Context)()),
191
- __param(1, (0, graphql_1.Args)("input")),
192
- __metadata("design:type", Function),
193
- __metadata("design:paramtypes", [Object, media_schema_1.ResizeImageInput]),
194
- __metadata("design:returntype", Promise)
195
- ], MediaResolver.prototype, "resizeImage", null);
196
- exports.MediaResolver = MediaResolver = __decorate([
197
- (0, graphql_1.Resolver)(() => media_schema_1.MediaObjectType)
198
- ], MediaResolver);
199
- //# sourceMappingURL=media.resolver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"media.resolver.js","sourceRoot":"","sources":["../../../../src/modules/core/media/media.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CASyB;AAEzB,2CAAwE;AAExE,mFAAoE;AACpE,iFAAgF;AAChF,2DAAgF;AAChF,8CAAoD;AACpD,qEAAoE;AAEpE,mCAA6D;AAC7D,iDAMwB;AAGjB,IAAM,aAAa,GAAnB,MAAM,aAAa;IAElB,AAAN,KAAK,CAAC,MAAM,CACC,EAAE,IAAI,EAAkB,EACQ,aAAqB;QAEhE,MAAM,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,CAAC;QAC/C,OA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;IAE3B,WAAA,IAAA,iBAAO,GAAE,CAAA;IACT,WAAA,IAAA,cAAI,EAAC,OAAO,CAAC,CAAA;;6CACQ,+BAAgB;;gDAwBvC;wBAzJU,aAAa;IADzB,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,8BAAe,CAAC;GACnB,aAAa,CA0JzB"}
@@ -1,30 +0,0 @@
1
- export declare class MediaObjectType {
2
- uid: string;
3
- mediaType: string;
4
- weightB: number;
5
- modifiedTs: Date;
6
- originalName?: string;
7
- attachedData?: string;
8
- }
9
- export declare class ThumbImagePropertiesObjectType {
10
- url: string;
11
- width: number;
12
- height: number;
13
- mediaType: string;
14
- originalWidth: number;
15
- originalHeight: number;
16
- originalLossless?: boolean;
17
- }
18
- export declare class ReorderMediasInput {
19
- galleryHandle: string;
20
- mediaUids: string[];
21
- }
22
- export declare class ResizeImageInput {
23
- uid: string;
24
- variantName: string;
25
- }
26
- export declare class ResizingImage {
27
- height: number;
28
- width: number;
29
- url: string;
30
- }
@@ -1,144 +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.ResizingImage = exports.ResizeImageInput = exports.ReorderMediasInput = exports.ThumbImagePropertiesObjectType = exports.MediaObjectType = void 0;
13
- const graphql_1 = require("@nestjs/graphql");
14
- let MediaObjectType = class MediaObjectType {
15
- uid;
16
- mediaType;
17
- weightB;
18
- modifiedTs;
19
- originalName;
20
- attachedData;
21
- };
22
- exports.MediaObjectType = MediaObjectType;
23
- __decorate([
24
- (0, graphql_1.Field)(() => graphql_1.ID),
25
- __metadata("design:type", String)
26
- ], MediaObjectType.prototype, "uid", void 0);
27
- __decorate([
28
- (0, graphql_1.Field)(),
29
- __metadata("design:type", String)
30
- ], MediaObjectType.prototype, "mediaType", void 0);
31
- __decorate([
32
- (0, graphql_1.Field)(() => graphql_1.Int),
33
- __metadata("design:type", Number)
34
- ], MediaObjectType.prototype, "weightB", void 0);
35
- __decorate([
36
- (0, graphql_1.Field)(() => Date),
37
- __metadata("design:type", Date)
38
- ], MediaObjectType.prototype, "modifiedTs", void 0);
39
- __decorate([
40
- (0, graphql_1.Field)(() => String, { nullable: true }),
41
- __metadata("design:type", String)
42
- ], MediaObjectType.prototype, "originalName", void 0);
43
- __decorate([
44
- (0, graphql_1.Field)(() => String, { nullable: true }),
45
- __metadata("design:type", String)
46
- ], MediaObjectType.prototype, "attachedData", void 0);
47
- exports.MediaObjectType = MediaObjectType = __decorate([
48
- (0, graphql_1.ObjectType)("Media")
49
- ], MediaObjectType);
50
- let ThumbImagePropertiesObjectType = class ThumbImagePropertiesObjectType {
51
- url;
52
- width;
53
- height;
54
- mediaType;
55
- originalWidth;
56
- originalHeight;
57
- originalLossless;
58
- };
59
- exports.ThumbImagePropertiesObjectType = ThumbImagePropertiesObjectType;
60
- __decorate([
61
- (0, graphql_1.Field)(() => String),
62
- __metadata("design:type", String)
63
- ], ThumbImagePropertiesObjectType.prototype, "url", void 0);
64
- __decorate([
65
- (0, graphql_1.Field)(() => graphql_1.Int),
66
- __metadata("design:type", Number)
67
- ], ThumbImagePropertiesObjectType.prototype, "width", void 0);
68
- __decorate([
69
- (0, graphql_1.Field)(() => graphql_1.Int),
70
- __metadata("design:type", Number)
71
- ], ThumbImagePropertiesObjectType.prototype, "height", void 0);
72
- __decorate([
73
- (0, graphql_1.Field)(),
74
- __metadata("design:type", String)
75
- ], ThumbImagePropertiesObjectType.prototype, "mediaType", void 0);
76
- __decorate([
77
- (0, graphql_1.Field)(() => graphql_1.Int),
78
- __metadata("design:type", Number)
79
- ], ThumbImagePropertiesObjectType.prototype, "originalWidth", void 0);
80
- __decorate([
81
- (0, graphql_1.Field)(() => graphql_1.Int),
82
- __metadata("design:type", Number)
83
- ], ThumbImagePropertiesObjectType.prototype, "originalHeight", void 0);
84
- __decorate([
85
- (0, graphql_1.Field)(() => Boolean, { nullable: true }),
86
- __metadata("design:type", Boolean)
87
- ], ThumbImagePropertiesObjectType.prototype, "originalLossless", void 0);
88
- exports.ThumbImagePropertiesObjectType = ThumbImagePropertiesObjectType = __decorate([
89
- (0, graphql_1.ObjectType)("ThumbImageProperties")
90
- ], ThumbImagePropertiesObjectType);
91
- let ReorderMediasInput = class ReorderMediasInput {
92
- galleryHandle;
93
- mediaUids;
94
- };
95
- exports.ReorderMediasInput = ReorderMediasInput;
96
- __decorate([
97
- (0, graphql_1.Field)(() => graphql_1.ID),
98
- __metadata("design:type", String)
99
- ], ReorderMediasInput.prototype, "galleryHandle", void 0);
100
- __decorate([
101
- (0, graphql_1.Field)(() => [graphql_1.ID]),
102
- __metadata("design:type", Array)
103
- ], ReorderMediasInput.prototype, "mediaUids", void 0);
104
- exports.ReorderMediasInput = ReorderMediasInput = __decorate([
105
- (0, graphql_1.InputType)()
106
- ], ReorderMediasInput);
107
- let ResizeImageInput = class ResizeImageInput {
108
- uid;
109
- variantName;
110
- };
111
- exports.ResizeImageInput = ResizeImageInput;
112
- __decorate([
113
- (0, graphql_1.Field)(() => graphql_1.ID),
114
- __metadata("design:type", String)
115
- ], ResizeImageInput.prototype, "uid", void 0);
116
- __decorate([
117
- (0, graphql_1.Field)(() => String),
118
- __metadata("design:type", String)
119
- ], ResizeImageInput.prototype, "variantName", void 0);
120
- exports.ResizeImageInput = ResizeImageInput = __decorate([
121
- (0, graphql_1.InputType)()
122
- ], ResizeImageInput);
123
- let ResizingImage = class ResizingImage {
124
- height;
125
- width;
126
- url;
127
- };
128
- exports.ResizingImage = ResizingImage;
129
- __decorate([
130
- (0, graphql_1.Field)(() => graphql_1.Int),
131
- __metadata("design:type", Number)
132
- ], ResizingImage.prototype, "height", void 0);
133
- __decorate([
134
- (0, graphql_1.Field)(() => graphql_1.Int),
135
- __metadata("design:type", Number)
136
- ], ResizingImage.prototype, "width", void 0);
137
- __decorate([
138
- (0, graphql_1.Field)(() => String),
139
- __metadata("design:type", String)
140
- ], ResizingImage.prototype, "url", void 0);
141
- exports.ResizingImage = ResizingImage = __decorate([
142
- (0, graphql_1.ObjectType)()
143
- ], ResizingImage);
144
- //# sourceMappingURL=media.schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"media.schema.js","sourceRoot":"","sources":["../../../../src/modules/core/media/media.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwE;AAGjE,IAAM,eAAe,GAArB,MAAM,eAAe;IAE1B,GAAG,CAAU;IAGb,SAAS,CAAU;IAGnB,OAAO,CAAU;IAGjB,UAAU,CAAQ;IAGlB,YAAY,CAAU;IAGtB,YAAY,CAAU;CACvB,CAAA;AAlBY,0CAAe;AAE1B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;4CACH;AAGb;IADC,IAAA,eAAK,GAAE;;kDACW;AAGnB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;gDACA;AAGjB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;mDAAC;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAClB;AAGtB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAClB;0BAjBX,eAAe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AAgB;AAE3B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;6CACH;AAGb;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qDACC;2BALV,gBAAgB;IAD5B,IAAA,mBAAS,GAAE;GACC,gBAAgB,CAM5B;AAGM,IAAM,aAAa,GAAnB,MAAM,aAAa;IAExB,MAAM,CAAU;IAGhB,KAAK,CAAU;IAGf,GAAG,CAAU;CACd,CAAA;AATY,sCAAa;AAExB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;6CACD;AAGhB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;4CACF;AAGf;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0CACP;wBARF,aAAa;IADzB,IAAA,oBAAU,GAAE;GACA,aAAa,CASzB"}
@@ -1,2 +0,0 @@
1
- export declare class PartModule {
2
- }
@@ -1,21 +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.PartModule = void 0;
10
- const common_1 = require("@nestjs/common");
11
- const part_resolver_1 = require("./part.resolver");
12
- const part_resolver_extend_1 = require("./part.resolver.extend");
13
- let PartModule = class PartModule {
14
- };
15
- exports.PartModule = PartModule;
16
- exports.PartModule = PartModule = __decorate([
17
- (0, common_1.Module)({
18
- providers: [part_resolver_1.PartResolver, part_resolver_extend_1.ExtendSectionWrapWithPartResolver, part_resolver_1.PartPlaceholderResolver],
19
- })
20
- ], PartModule);
21
- //# sourceMappingURL=part.module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"part.module.js","sourceRoot":"","sources":["../../../../src/modules/core/part/part.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,mDAAwE;AACxE,iEAA2E;AAKpE,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IAHtB,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,4BAAY,EAAE,wDAAiC,EAAE,uCAAuB,CAAC;KACtF,CAAC;GACW,UAAU,CAAG"}
@@ -1,22 +0,0 @@
1
- import { ParsedSectionId } from "@paroicms/anywhere-lib";
2
- import { SiteContext } from "../../../site-context/site-context.types";
3
- import { PartObjectType, PartPlaceholderObjectType } from "./part.schema";
4
- export declare function createPartOnLeaf(siteContext: SiteContext, sectionId: ParsedSectionId): Promise<ParsedSectionId>;
5
- export declare function createLeafWithPart(siteContext: SiteContext, { parentSectionId, listName, leafType, }: {
6
- parentSectionId: ParsedSectionId;
7
- listName: string;
8
- leafType: string;
9
- }): Promise<ParsedSectionId>;
10
- export interface Part {
11
- leafType: string;
12
- leafId: string;
13
- lang: string;
14
- sectionId: string;
15
- featuredImageHandle: string;
16
- }
17
- export declare function loadPart(siteContext: Pick<SiteContext, "mainCn">, sectionId: ParsedSectionId): Promise<Part>;
18
- export declare function deletePart(siteContext: SiteContext, sectionId: ParsedSectionId): Promise<void>;
19
- export declare function partsOf({ mainCn }: SiteContext, { listNames, parentId, }: {
20
- parentId: ParsedSectionId;
21
- listNames: string[];
22
- }): Promise<(PartPlaceholderObjectType | PartObjectType)[]>;
@@ -1,167 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.partsOf = exports.deletePart = exports.loadPart = exports.createLeafWithPart = exports.createPartOnLeaf = 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 media_handles_helpers_1 = require("../../../common/media-handles.helpers");
8
- const text_cache_1 = require("../../../common/text-cache");
9
- const load_documents_queries_1 = require("../document/load-documents.queries");
10
- const leaf_item_queries_1 = require("../leaf-item/leaf-item.queries");
11
- const leaf_model_1 = require("../leaf/leaf.model");
12
- const leaf_queries_1 = require("../leaf/leaf.queries");
13
- const section_model_1 = require("../section/section.model");
14
- const section_queries_1 = require("../section/section.queries");
15
- async function createPartOnLeaf(siteContext, sectionId) {
16
- const newId = await siteContext.mainCn.transaction(async (cn) => {
17
- return await createPartOnLeafWithManager(sectionId, { cn });
18
- });
19
- await (0, text_cache_1.invalidateDocumentInCache)(siteContext, { parentOf: sectionId });
20
- return newId;
21
- }
22
- exports.createPartOnLeaf = createPartOnLeaf;
23
- async function createLeafWithPart(siteContext, { parentSectionId, listName, leafType, }) {
24
- const { lang, leafId: parentLeafId } = parentSectionId;
25
- const parentLeafType = await (0, leaf_queries_1.getLeafTypeOf)(siteContext, parentLeafId);
26
- const parentDocumentType = (0, anywhere_lib_1.getDocumentTypeByLeafType)(siteContext.siteSchema, parentLeafType);
27
- const listType = parentDocumentType.partLists?.find((l) => l.listName === listName);
28
- if (!listType) {
29
- throw new common_1.BadRequestException(`listName '${listName}' not found in document '${parentLeafType}'`);
30
- }
31
- if (listType.partLimit !== undefined) {
32
- const count = await countLeafItemsOfList(siteContext, {
33
- listName: listType.listName,
34
- parentLeafId,
35
- });
36
- if (count >= listType.partLimit)
37
- throw new common_1.BadRequestException("maximum parts reached");
38
- }
39
- if (!listType.partLeafTypes.includes(leafType)) {
40
- throw new common_1.BadRequestException({
41
- code: "invalid_section_type_for_this_list_name",
42
- message: `Invalid sectionType leafType: '${leafType}' for listName '${listType.listName}'`,
43
- });
44
- }
45
- const newId = await siteContext.mainCn.transaction(async (cn) => {
46
- const leaf = await (0, leaf_queries_1.createLeaf)(siteContext.siteSchema, cn, { parentId: parentLeafId, leafType });
47
- await (0, leaf_item_queries_1.createLeafItem)(siteContext, {
48
- leafId: leaf.id,
49
- listName: listType.listName,
50
- parentId: parentLeafId,
51
- });
52
- if (!leaf)
53
- throw new Error("PartService, createLeafWithPart: Unexpected error");
54
- const { id: leafId } = leaf;
55
- return await createPartOnLeafWithManager({ lang, leafId }, { cn });
56
- });
57
- await (0, text_cache_1.invalidateDocumentInCache)(siteContext, { documentId: parentSectionId });
58
- return newId;
59
- }
60
- exports.createLeafWithPart = createLeafWithPart;
61
- async function loadPart(siteContext, sectionId) {
62
- const row = await siteContext.mainCn
63
- .createQueryBuilder()
64
- .select("l.leafType", "leafType")
65
- .from("PaLeaf", "l")
66
- .innerJoin("PaSection", "s", "s.leafId = l.id and s.lang = :lang", { lang: sectionId.lang })
67
- .where("l.id = :leafId", { leafId: sectionId.leafId })
68
- .andWhere("not exists (select 1 from PaDocument d where d.leafId = l.id)")
69
- .getRawOne();
70
- if (!row)
71
- throw new common_1.NotFoundException(`cannot find part '${sectionId.lang}:${sectionId.leafId}'`);
72
- return {
73
- leafType: (0, data_formatters_lib_1.strVal)(row.leafType),
74
- leafId: sectionId.leafId,
75
- lang: sectionId.lang,
76
- sectionId: (0, anywhere_lib_1.encodeSectionId)(sectionId),
77
- featuredImageHandle: (0, media_handles_helpers_1.getHandleOfFeaturedImage)(sectionId.leafId),
78
- };
79
- }
80
- exports.loadPart = loadPart;
81
- async function deletePart(siteContext, sectionId) {
82
- const parentId = await (0, load_documents_queries_1.getParentSectionIdOf)(siteContext, sectionId);
83
- if (!parentId) {
84
- throw new Error(`part '${sectionId.lang}:${sectionId.leafId}' should have a parent`);
85
- }
86
- const { shouldDeleteLeaf } = await siteContext.mainCn.transaction(async (cn) => {
87
- const sectionRepo = cn.getRepository(section_model_1.SectionEntity);
88
- await sectionRepo.delete(sectionId);
89
- const shouldDeleteLeaf = await (0, section_queries_1.isOrphanLeaf)(cn, sectionId.leafId);
90
- if (shouldDeleteLeaf) {
91
- await (0, leaf_item_queries_1.updatePartsItemNumAfterDeletetion)(siteContext, sectionId.leafId);
92
- await cn
93
- .createQueryBuilder()
94
- .delete()
95
- .from("PaFieldVarchar")
96
- .where("leafId = :leafId", { leafId: sectionId.leafId })
97
- .execute();
98
- await cn.getRepository(leaf_model_1.LeafEntity).delete({ id: sectionId.leafId });
99
- }
100
- return { shouldDeleteLeaf };
101
- });
102
- await (0, text_cache_1.invalidateDocumentInCache)(siteContext, { documentId: parentId });
103
- if (shouldDeleteLeaf) {
104
- const deletedUids = await siteContext.mediaStorage.deleteMedia({
105
- handle: (0, media_handles_helpers_1.getHandleOfFeaturedImage)(sectionId.leafId),
106
- });
107
- await siteContext.imageCache.invalidate({ imageUids: deletedUids });
108
- }
109
- }
110
- exports.deletePart = deletePart;
111
- async function partsOf({ mainCn }, { listNames, parentId, }) {
112
- const parts = await mainCn
113
- .createQueryBuilder()
114
- .select("i.itemNum", "itemNum")
115
- .addSelect("i.leafId", "leafId")
116
- .addSelect("s.lang", "lang")
117
- .addSelect("s.leafId", "sectionLeafId")
118
- .addSelect("l.leafType", "leafType")
119
- .from("PaLeaf", "l")
120
- .innerJoin("PaLeafItem", "i", "i.leafId = l.id and i.listName in (:...listNames)", {
121
- listNames,
122
- })
123
- .leftJoin("PaSection", "s", "s.leafId = l.id and s.lang = :lang", {
124
- lang: parentId.lang,
125
- })
126
- .where("l.parentId = :parentId", { parentId: parentId.leafId })
127
- .andWhere("not exists (select 1 from PaDocument d where d.leafId = l.id)")
128
- .orderBy("i.itemNum", "ASC")
129
- .getRawMany();
130
- return parts.map((item) => {
131
- if ((0, data_formatters_lib_1.strValOrUndef)(item.sectionLeafId) === undefined) {
132
- return {
133
- leafId: (0, data_formatters_lib_1.strVal)(item.leafId),
134
- leafType: (0, data_formatters_lib_1.strVal)(item.leafType),
135
- };
136
- }
137
- const leafId = (0, data_formatters_lib_1.strVal)(item.leafId);
138
- return {
139
- sectionId: (0, anywhere_lib_1.encodeSectionId)({
140
- lang: (0, data_formatters_lib_1.strVal)(parentId.lang),
141
- leafId: (0, data_formatters_lib_1.strVal)(item.leafId),
142
- }),
143
- lang: (0, data_formatters_lib_1.strVal)(parentId.lang),
144
- leafId,
145
- leafType: (0, data_formatters_lib_1.strVal)(item.leafType),
146
- featuredImageHandle: (0, media_handles_helpers_1.getHandleOfFeaturedImage)(leafId),
147
- };
148
- });
149
- }
150
- exports.partsOf = partsOf;
151
- async function createPartOnLeafWithManager({ lang, leafId }, { cn, }) {
152
- await cn.getRepository(section_model_1.SectionEntity).save({ lang, leafId, ready: true });
153
- return { lang, leafId };
154
- }
155
- async function countLeafItemsOfList({ mainCn }, { listName, parentLeafId, }) {
156
- const row = await mainCn
157
- .createQueryBuilder()
158
- .addSelect("count(1)", "cnt")
159
- .from("PaLeaf", "l")
160
- .innerJoin("PaLeafItem", "i", "i.leafId = l.id and i.listName = :listName", {
161
- listName,
162
- })
163
- .where("l.parentId = :parentId", { parentId: parentLeafId })
164
- .getRawOne();
165
- return (0, data_formatters_lib_1.nbVal)(row?.cnt);
166
- }
167
- //# sourceMappingURL=part.queries.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"part.queries.js","sourceRoot":"","sources":["../../../../src/modules/core/part/part.queries.ts"],"names":[],"mappings":";;;AAAA,2CAAwE;AACxE,oEAA0E;AAC1E,yDAKgC;AAEhC,iFAAiF;AACjF,2DAAuE;AAEvE,+EAA0E;AAC1E,sEAAmG;AACnG,mDAAgD;AAChD,uDAAiE;AACjE,4DAAyD;AACzD,gEAA0D;AAGnD,KAAK,UAAU,gBAAgB,CAAC,WAAwB,EAAE,SAA0B;IACzF,MAAM,KAAK,GAAG,MAAM,WAAW,CAAC,MAAM,CAAC,WAAW,CAAkB,KAAK,EAAE,EAAE,EAAE,EAAE;QAC/E,OAAO,MAAM,2BAA2B,CAAC,SAAS,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;I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CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AAC1B,CAAC;AAED,KAAK,UAAU,oBAAoB,CACjC,EAAE,MAAM,EAAe,EACvB,EACE,QAAQ,EACR,YAAY,GAIb;IAED,MAAM,GAAG,GAAG,MAAM,MAAM;SACrB,kBAAkB,EAAE;SACpB,SAAS,CAAC,UAAU,EAAE,KAAK,CAAC;SAC5B,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC;SACnB,SAAS,CAAC,YAAY,EAAE,GAAG,EAAE,4CAA4C,EAAE;QAC1E,QAAQ;KACT,CAAC;SACD,KAAK,CAAC,wBAAwB,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC;SAC3D,SAAS,EAAO,CAAC;IACpB,OAAO,IAAA,2BAAK,EAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AACzB,CAAC"}
@@ -1,14 +0,0 @@
1
- import { GraphqlContext } from "../../graphql.types";
2
- import { MediaObjectType } from "../media/media.schema";
3
- import { PartObjectType, PartPlaceholderObjectType } from "./part.schema";
4
- export declare class PartPlaceholderResolver {
5
- itemNum({ fqdn }: GraphqlContext, { leafId }: PartPlaceholderObjectType): Promise<number | undefined>;
6
- }
7
- export declare class PartResolver {
8
- part({ fqdn }: GraphqlContext, sectionId: string): Promise<PartObjectType>;
9
- createPartOnLeaf({ fqdn }: GraphqlContext, lang: string, leafId: string): Promise<PartObjectType>;
10
- createLeafWithPart({ fqdn }: GraphqlContext, parentSectionId: string, listName: string, leafType: string): Promise<PartObjectType>;
11
- deletePart({ fqdn }: GraphqlContext, sectionId: string): Promise<boolean>;
12
- itemNum({ fqdn }: GraphqlContext, { leafId }: PartObjectType | PartPlaceholderObjectType): Promise<number | undefined>;
13
- featuredImage({ fqdn }: GraphqlContext, { featuredImageHandle }: PartObjectType): Promise<MediaObjectType | undefined>;
14
- }
@@ -1,5 +0,0 @@
1
- import { GraphqlContext } from "../../graphql.types";
2
- import { SectionWrapObjectType } from "../section/section.schema";
3
- export declare class ExtendSectionWrapWithPartResolver {
4
- parts({ fqdn }: GraphqlContext, { leafId, lang }: SectionWrapObjectType): Promise<(import("./part.schema").PartObjectType | import("./part.schema").PartPlaceholderObjectType)[]>;
5
- }