@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,9 +0,0 @@
1
- export declare class LeafEntity {
2
- id: string;
3
- leafType: string;
4
- parentId?: string;
5
- relativeId: string;
6
- depth: number;
7
- publishDate?: Date;
8
- idToString(): void;
9
- }
@@ -1,61 +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.LeafEntity = void 0;
13
- const typeorm_1 = require("typeorm");
14
- let LeafEntity = class LeafEntity {
15
- id;
16
- leafType;
17
- parentId;
18
- relativeId;
19
- depth;
20
- publishDate;
21
- idToString() {
22
- this.id = this.id?.toString();
23
- this.parentId = this?.parentId?.toString();
24
- }
25
- };
26
- exports.LeafEntity = LeafEntity;
27
- __decorate([
28
- (0, typeorm_1.PrimaryGeneratedColumn)("increment", { type: "bigint" }),
29
- __metadata("design:type", String)
30
- ], LeafEntity.prototype, "id", void 0);
31
- __decorate([
32
- (0, typeorm_1.Column)({ type: "varchar", length: 100 }),
33
- __metadata("design:type", String)
34
- ], LeafEntity.prototype, "leafType", void 0);
35
- __decorate([
36
- (0, typeorm_1.Column)({ type: "bigint", nullable: true }),
37
- __metadata("design:type", String)
38
- ], LeafEntity.prototype, "parentId", void 0);
39
- __decorate([
40
- (0, typeorm_1.Column)({ type: "varchar", length: 36 }),
41
- __metadata("design:type", String)
42
- ], LeafEntity.prototype, "relativeId", void 0);
43
- __decorate([
44
- (0, typeorm_1.Column)({ type: "smallint" }),
45
- __metadata("design:type", Number)
46
- ], LeafEntity.prototype, "depth", void 0);
47
- __decorate([
48
- (0, typeorm_1.Column)({ type: "datetime", nullable: true }),
49
- __metadata("design:type", Date)
50
- ], LeafEntity.prototype, "publishDate", void 0);
51
- __decorate([
52
- (0, typeorm_1.AfterLoad)(),
53
- __metadata("design:type", Function),
54
- __metadata("design:paramtypes", []),
55
- __metadata("design:returntype", void 0)
56
- ], LeafEntity.prototype, "idToString", null);
57
- exports.LeafEntity = LeafEntity = __decorate([
58
- (0, typeorm_1.Entity)("PaLeaf"),
59
- (0, typeorm_1.Unique)(["parentId", "relativeId"])
60
- ], LeafEntity);
61
- //# sourceMappingURL=leaf.model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leaf.model.js","sourceRoot":"","sources":["../../../../src/modules/core/leaf/leaf.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoF;AAI7E,IAAM,UAAU,GAAhB,MAAM,UAAU;IAErB,EAAE,CAAU;IAGZ,QAAQ,CAAU;IAGlB,QAAQ,CAAU;IAGlB,UAAU,CAAU;IAGpB,KAAK,CAAU;IAGf,WAAW,CAAQ;IAGnB,UAAU;QACR,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC;QAC9B,IAAI,CAAC,QAAQ,GAAG,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;IAC7C,CAAC;CACF,CAAA;AAxBY,gCAAU;AAErB;IADC,IAAA,gCAAsB,EAAC,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;sCAC5C;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;4CACvB;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACzB;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;8CACpB;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;;yCACd;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC/B,IAAI;+CAAC;AAGnB;IADC,IAAA,mBAAS,GAAE;;;;4CAIX;qBAvBU,UAAU;IAFtB,IAAA,gBAAM,EAAC,QAAQ,CAAC;IAChB,IAAA,gBAAM,EAAC,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;GACtB,UAAU,CAwBtB"}
@@ -1,2 +0,0 @@
1
- export declare class LeafModule {
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.LeafModule = void 0;
10
- const common_1 = require("@nestjs/common");
11
- const leaf_resolver_1 = require("./leaf.resolver");
12
- const leaf_resolver_extend_1 = require("./leaf.resolver.extend");
13
- let LeafModule = class LeafModule {
14
- };
15
- exports.LeafModule = LeafModule;
16
- exports.LeafModule = LeafModule = __decorate([
17
- (0, common_1.Module)({
18
- providers: [leaf_resolver_1.LeafResolver, leaf_resolver_extend_1.ExtendSectionWrapWithLeafResolver],
19
- })
20
- ], LeafModule);
21
- //# sourceMappingURL=leaf.module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leaf.module.js","sourceRoot":"","sources":["../../../../src/modules/core/leaf/leaf.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,mDAA+C;AAC/C,iEAA2E;AAKpE,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IAHtB,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,4BAAY,EAAE,wDAAiC,CAAC;KAC7D,CAAC;GACW,UAAU,CAAG"}
@@ -1,21 +0,0 @@
1
- import { DocumentSchema, SiteSchema } from "@paroicms/anywhere-lib";
2
- import { Tracker } from "@paroicms/server-lib";
3
- import { EntityManager } from "typeorm";
4
- import { SiteContext } from "../../../site-context/site-context.types";
5
- import { TermFlagObjectType } from "../term-flag/term-flag.schema";
6
- import { LeafEntity } from "./leaf.model";
7
- export declare function getLeafTypeOf(siteContext: Pick<SiteContext, "mainCn">, leafId: string): Promise<string>;
8
- export declare function getDocumentSchemaOf(siteContext: Pick<SiteContext, "mainCn" | "siteSchema">, leafId: string): Promise<DocumentSchema>;
9
- export declare function findOneLeaf({ mainCn }: SiteContext, id: string): Promise<LeafEntity>;
10
- export declare function setLeafPublishDate(siteContext: SiteContext, { leafId, publishDate }: {
11
- leafId: string;
12
- publishDate: string;
13
- }): Promise<LeafEntity>;
14
- export declare function flaggedWith({ mainCn }: SiteContext, flaggedId: string): Promise<TermFlagObjectType[]>;
15
- export declare function createLeaf(siteSchema: SiteSchema, cn: EntityManager, { parentId, depth, leafType, }: {
16
- parentId?: string;
17
- depth?: number;
18
- leafType: string;
19
- }): Promise<LeafEntity>;
20
- export declare function getLeafDepth(siteContext: Pick<SiteContext, "mainCn">, tracker: Tracker, leafId: string): Promise<number>;
21
- export declare function countLeafChildrenOf(siteContext: Pick<SiteContext, "mainCn">, parendId: string): Promise<number>;
@@ -1,159 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.countLeafChildrenOf = exports.getLeafDepth = exports.createLeaf = exports.flaggedWith = exports.setLeafPublishDate = exports.findOneLeaf = exports.getDocumentSchemaOf = exports.getLeafTypeOf = 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 data_format_1 = require("../../../common/data-format");
8
- const text_cache_1 = require("../../../common/text-cache");
9
- const relative_id_helper_1 = require("../../../helpers/relative-id-helper");
10
- const ddl_migration_1 = require("../../../site-context/db-init/ddl-migration");
11
- const leaf_model_1 = require("./leaf.model");
12
- async function getLeafTypeOf(siteContext, leafId) {
13
- const row = await siteContext.mainCn
14
- .createQueryBuilder()
15
- .select("l.leafType", "leafType")
16
- .from("PaLeaf", "l")
17
- .where("l.id = :leafId", { leafId })
18
- .getRawOne();
19
- if (!row)
20
- throw new common_1.NotFoundException(`cannot find leaf '${leafId}'`);
21
- return (0, data_formatters_lib_1.strVal)(row.leafType);
22
- }
23
- exports.getLeafTypeOf = getLeafTypeOf;
24
- async function getDocumentSchemaOf(siteContext, leafId) {
25
- const leafType = await getLeafTypeOf(siteContext, leafId);
26
- const documentType = siteContext.siteSchema.documentTypes[leafType];
27
- if (!documentType)
28
- throw new Error(`unknown document type '${leafType}'`);
29
- return documentType;
30
- }
31
- exports.getDocumentSchemaOf = getDocumentSchemaOf;
32
- async function findOneLeaf({ mainCn }, id) {
33
- const leaf = await mainCn.getRepository(leaf_model_1.LeafEntity).findOne({
34
- where: {
35
- id,
36
- },
37
- });
38
- if (!leaf)
39
- throw new common_1.NotFoundException(`can't find leaf ${id}`);
40
- return leaf;
41
- }
42
- exports.findOneLeaf = findOneLeaf;
43
- async function setLeafPublishDate(siteContext, { leafId, publishDate }) {
44
- await siteContext.mainCn.getRepository(leaf_model_1.LeafEntity).update(leafId, { publishDate });
45
- await (0, text_cache_1.invalidateMultipleDocumentsInCache)(siteContext, { leafId, fully: true });
46
- return await findOneLeaf(siteContext, leafId);
47
- }
48
- exports.setLeafPublishDate = setLeafPublishDate;
49
- async function flaggedWith({ mainCn }, flaggedId) {
50
- const rows = await mainCn
51
- .createQueryBuilder()
52
- .select("f.lead", "lead")
53
- .addSelect("f.termId", "termId")
54
- .addSelect("l2.leafType", "parentLeafType")
55
- .from("PaTermFlag", "f")
56
- .innerJoin("PaLeaf", "l1", "l1.id = f.termId")
57
- .innerJoin("PaLeaf", "l2", "l2.id = l1.parentId")
58
- .where("f.flaggedId = :flaggedId", { flaggedId })
59
- .getRawMany();
60
- return (0, data_formatters_lib_1.listVal)(rows, data_format_1.formatTermFlagObjectType);
61
- }
62
- exports.flaggedWith = flaggedWith;
63
- async function createLeaf(siteSchema, cn, { parentId, depth, leafType, }) {
64
- const documentSchema = siteSchema.documentTypes[leafType];
65
- let leafDepth = depth;
66
- if (leafDepth === undefined) {
67
- if (!parentId)
68
- throw new Error("parentId not provided");
69
- const row = await cn
70
- .createQueryBuilder()
71
- .select("leafType", "leafType")
72
- .addSelect("depth", "depth")
73
- .from("PaLeaf", "l")
74
- .where("l.id = :parentId", { parentId })
75
- .getRawOne();
76
- if (!row)
77
- throw new Error(`cannot find parent leaf '${parentId}'`);
78
- const parentLeaf = {
79
- leafType: (0, data_formatters_lib_1.strVal)(row.leafType),
80
- depth: (0, data_formatters_lib_1.nbVal)(row.depth),
81
- };
82
- leafDepth = parentLeaf.depth + 1;
83
- if (!isLeafTypeChildOf(siteSchema, { leafType, parentLeafType: parentLeaf.leafType })) {
84
- throw new common_1.BadRequestException(`invalid parentLeafType '${parentLeaf.leafType}'`);
85
- }
86
- }
87
- const makeRelativeId = provideRelativeIdGenerator(documentSchema?.kind === "classic" ? documentSchema.relativeIdGenerator : undefined);
88
- let attempt = 0;
89
- while (true) {
90
- const newRelativeId = makeRelativeId();
91
- try {
92
- const result = await cn
93
- .createQueryBuilder()
94
- .insert()
95
- .into("PaLeaf")
96
- .values({
97
- parentId,
98
- relativeId: newRelativeId,
99
- depth: leafDepth,
100
- leafType,
101
- publishDate: () => "current_timestamp",
102
- })
103
- .execute();
104
- const newId = (0, data_formatters_lib_1.strVal)(result.identifiers[0]?.id, { varName: "newId" });
105
- return await cn.getRepository(leaf_model_1.LeafEntity).findOneOrFail({
106
- where: { id: newId },
107
- });
108
- }
109
- catch (err) {
110
- if (++attempt === 20)
111
- throw err;
112
- }
113
- }
114
- }
115
- exports.createLeaf = createLeaf;
116
- function provideRelativeIdGenerator(rim) {
117
- const makerName = rim?.[0] ?? "default";
118
- if (makerName === "default") {
119
- const size = rim ? (0, data_formatters_lib_1.nbVal)(rim[1], { varName: "relativeId" }) : undefined;
120
- return () => (0, relative_id_helper_1.makeDefaultRelativeId)({ size });
121
- }
122
- throw new Error(`Invalid relativeId maker name '${makerName}'`);
123
- }
124
- async function getLeafDepth(siteContext, tracker, leafId) {
125
- const row = await siteContext.mainCn
126
- .createQueryBuilder()
127
- .select("l.depth", "depth")
128
- .from("PaLeaf", "l")
129
- .where("l.id = :leafId", { leafId })
130
- .getRawOne();
131
- tracker.trackAccess(ddl_migration_1.dbSchemaName, "PaLeaf", "read");
132
- if (!row)
133
- throw new common_1.NotFoundException(`cannot find leaf '${leafId}'`);
134
- return (0, data_formatters_lib_1.nbVal)(row.depth);
135
- }
136
- exports.getLeafDepth = getLeafDepth;
137
- async function countLeafChildrenOf(siteContext, parendId) {
138
- const row = await siteContext.mainCn
139
- .createQueryBuilder()
140
- .select("count(1)", "cnt")
141
- .from("PaLeaf", "l")
142
- .where("l.parentId = :parendId", { parendId })
143
- .getRawOne();
144
- return (0, data_formatters_lib_1.nbVal)(row?.cnt);
145
- }
146
- exports.countLeafChildrenOf = countLeafChildrenOf;
147
- function isLeafTypeChildOf(siteSchema, { parentLeafType, leafType }) {
148
- const parentSchema = (0, anywhere_lib_1.getDocumentTypeByLeafType)(siteSchema, parentLeafType);
149
- if (siteSchema.documentTypes[leafType]) {
150
- const child = siteSchema.documentTypes[leafType];
151
- return parentSchema.children?.includes(child.leafType) ?? false;
152
- }
153
- for (const listType of parentSchema.partLists ?? []) {
154
- if (listType.partLeafTypes.includes(leafType))
155
- return true;
156
- }
157
- return false;
158
- }
159
- //# sourceMappingURL=leaf.queries.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leaf.queries.js","sourceRoot":"","sources":["../../../../src/modules/core/leaf/leaf.queries.ts"],"names":[],"mappings":";;;AAAA,2CAAwE;AACxE,oEAAoE;AACpE,yDAMgC;AAGhC,6DAAuE;AACvE,2DAAgF;AAChF,4EAA4E;AAC5E,+EAA2E;AAG3E,6CAA0C;AAEnC,KAAK,UAAU,aAAa,CACjC,WAAwC,EACxC,MAAc;IAEd,MAAM,GAAG,GAAG,MAAM,WAAW,CAAC,MAAM;SACjC,kBAAkB,EAAE;SACpB,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC;SAChC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC;SACnB,KAAK,CAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,CAAC;SACnC,SAAS,EAAO,CAAC;IACpB,IAAI,CAAC,GAAG;QAAE,MAAM,IAAI,0BAAiB,CAAC,qBAAqB,MAAM,GAAG,CAAC,CAAC;IACtE,OAAO,IAAA,4BAAM,EAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC9B,CAAC;AAZD,sCAYC;AAEM,KAAK,UAAU,mBAAmB,CACvC,WAAuD,EACvD,MAAc;IAEd,MA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,CAAC,wBAAwB,EAAE,EAAE,QAAQ,EAAE,CAAC;SAC7C,SAAS,EAAO,CAAC;IACpB,OAAO,IAAA,2BAAK,EAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AACzB,CAAC;AAXD,kDAWC;AAED,SAAS,iBAAiB,CACxB,UAAsB,EACtB,EAAE,cAAc,EAAE,QAAQ,EAAgD;IAE1E,MAAM,YAAY,GAAG,IAAA,wCAAyB,EAAC,UAAU,EAAE,cAAc,CAAC,CAAC;IAC3E,IAAI,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE,CAAC;QACvC,MAAM,KAAK,GAAG,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QACjD,OAAO,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC;IAClE,CAAC;IAED,KAAK,MAAM,QAAQ,IAAI,YAAY,CAAC,SAAS,IAAI,EAAE,EAAE,CAAC;QACpD,IAAI,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC;YAAE,OAAO,IAAI,CAAC;IAC7D,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1,9 +0,0 @@
1
- import { GraphqlContext } from "../../graphql.types";
2
- import { TermFlagObjectType } from "../term-flag/term-flag.schema";
3
- import { LeafObjectType } from "./leaf.schema";
4
- export declare class LeafResolver {
5
- flaggedWith({ fqdn }: GraphqlContext, { id }: LeafObjectType): Promise<TermFlagObjectType[]>;
6
- planned({ publishDate }: LeafObjectType): boolean;
7
- setLeafPublishDate({ fqdn }: GraphqlContext, leafId: string, publishDate: Date): Promise<LeafObjectType>;
8
- reorderLeafItems({ fqdn }: GraphqlContext, leafIds: string[], parentLeafId: string, listName: string): Promise<string[]>;
9
- }
@@ -1,6 +0,0 @@
1
- import { GraphqlContext } from "../../graphql.types";
2
- import { SectionWrapObjectType } from "../section/section.schema";
3
- import { LeafObjectType } from "./leaf.schema";
4
- export declare class ExtendSectionWrapWithLeafResolver {
5
- leaf({ fqdn }: GraphqlContext, { leafId }: SectionWrapObjectType): Promise<LeafObjectType>;
6
- }
@@ -1,42 +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.ExtendSectionWrapWithLeafResolver = void 0;
16
- const common_1 = require("@nestjs/common");
17
- const graphql_1 = require("@nestjs/graphql");
18
- const data_format_1 = require("../../../common/data-format");
19
- const site_context_1 = require("../../../site-context/site-context");
20
- const jwt_auth_guard_1 = require("../auth/jwt.auth.guard");
21
- const section_schema_1 = require("../section/section.schema");
22
- const leaf_queries_1 = require("./leaf.queries");
23
- const leaf_schema_1 = require("./leaf.schema");
24
- let ExtendSectionWrapWithLeafResolver = class ExtendSectionWrapWithLeafResolver {
25
- async leaf({ fqdn }, { leafId }) {
26
- return (0, data_format_1.leafEntityToObjectType)(await (0, leaf_queries_1.findOneLeaf)(await (0, site_context_1.getSiteContext)(fqdn), leafId));
27
- }
28
- };
29
- exports.ExtendSectionWrapWithLeafResolver = ExtendSectionWrapWithLeafResolver;
30
- __decorate([
31
- (0, graphql_1.ResolveField)(() => leaf_schema_1.LeafObjectType),
32
- __param(0, (0, graphql_1.Context)()),
33
- __param(1, (0, graphql_1.Parent)()),
34
- __metadata("design:type", Function),
35
- __metadata("design:paramtypes", [Object, section_schema_1.SectionWrapObjectType]),
36
- __metadata("design:returntype", Promise)
37
- ], ExtendSectionWrapWithLeafResolver.prototype, "leaf", null);
38
- exports.ExtendSectionWrapWithLeafResolver = ExtendSectionWrapWithLeafResolver = __decorate([
39
- (0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
40
- (0, graphql_1.Resolver)(() => section_schema_1.SectionWrapObjectType)
41
- ], ExtendSectionWrapWithLeafResolver);
42
- //# sourceMappingURL=leaf.resolver.extend.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leaf.resolver.extend.js","sourceRoot":"","sources":["../../../../src/modules/core/leaf/leaf.resolver.extend.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,6CAA0E;AAC1E,6DAAqE;AACrE,qEAAoE;AAEpE,2DAAsD;AACtD,8DAAkE;AAClE,iDAA6C;AAC7C,+CAA+C;AAIxC,IAAM,iCAAiC,GAAvC,MAAM,iCAAiC;IAEtC,AAAN,KAAK,CAAC,IAAI,CACG,EAAE,IAAI,EAAkB,EAEnC,EAAE,MAAM,EAAyB;QAEjC,OAAO,IAAA,oCAAsB,EAAC,MAAM,IAAA,0BAAW,EAAC,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACvF,CAAC;CACF,CAAA;AATY,8EAAiC;AAEtC;IADL,IAAA,sBAAY,EAAC,GAAG,EAAE,CAAC,4BAAc,CAAC;IAEhC,WAAA,IAAA,iBAAO,GAAE,CAAA;IACT,WAAA,IAAA,gBAAM,GAAE,CAAA;;6CACG,sCAAqB;;6DAGlC;4CARU,iCAAiC;IAF7C,IAAA,kBAAS,EAAC,6BAAY,CAAC;IACvB,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,sCAAqB,CAAC;GACzB,iCAAiC,CAS7C"}
@@ -1,84 +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.LeafResolver = void 0;
16
- const common_1 = require("@nestjs/common");
17
- const graphql_1 = require("@nestjs/graphql");
18
- const data_format_1 = require("../../../common/data-format");
19
- const site_context_1 = require("../../../site-context/site-context");
20
- const jwt_auth_guard_1 = require("../auth/jwt.auth.guard");
21
- const leaf_item_queries_1 = require("../leaf-item/leaf-item.queries");
22
- const term_flag_schema_1 = require("../term-flag/term-flag.schema");
23
- const leaf_queries_1 = require("./leaf.queries");
24
- const leaf_schema_1 = require("./leaf.schema");
25
- let LeafResolver = class LeafResolver {
26
- async flaggedWith({ fqdn }, { id }) {
27
- return await (0, leaf_queries_1.flaggedWith)(await (0, site_context_1.getSiteContext)(fqdn), id);
28
- }
29
- planned({ publishDate }) {
30
- if (!publishDate)
31
- return false;
32
- return new Date(publishDate).getTime() > Date.now();
33
- }
34
- async setLeafPublishDate({ fqdn }, leafId, publishDate) {
35
- return (0, data_format_1.leafEntityToObjectType)(await (0, leaf_queries_1.setLeafPublishDate)(await (0, site_context_1.getSiteContext)(fqdn), {
36
- leafId,
37
- publishDate: publishDate.toISOString(),
38
- }));
39
- }
40
- async reorderLeafItems({ fqdn }, leafIds, parentLeafId, listName) {
41
- const siteContext = await (0, site_context_1.getSiteContext)(fqdn);
42
- return (0, leaf_item_queries_1.reorderLeafItems)(siteContext, leafIds, parentLeafId, listName);
43
- }
44
- };
45
- exports.LeafResolver = LeafResolver;
46
- __decorate([
47
- (0, graphql_1.ResolveField)(() => [term_flag_schema_1.TermFlagObjectType]),
48
- __param(0, (0, graphql_1.Context)()),
49
- __param(1, (0, graphql_1.Parent)()),
50
- __metadata("design:type", Function),
51
- __metadata("design:paramtypes", [Object, leaf_schema_1.LeafObjectType]),
52
- __metadata("design:returntype", Promise)
53
- ], LeafResolver.prototype, "flaggedWith", null);
54
- __decorate([
55
- (0, graphql_1.ResolveField)(() => Boolean),
56
- __param(0, (0, graphql_1.Parent)()),
57
- __metadata("design:type", Function),
58
- __metadata("design:paramtypes", [leaf_schema_1.LeafObjectType]),
59
- __metadata("design:returntype", Boolean)
60
- ], LeafResolver.prototype, "planned", null);
61
- __decorate([
62
- (0, graphql_1.Mutation)(() => leaf_schema_1.LeafObjectType),
63
- __param(0, (0, graphql_1.Context)()),
64
- __param(1, (0, graphql_1.Args)("leafId", { type: () => graphql_1.ID })),
65
- __param(2, (0, graphql_1.Args)("publishDate", { type: () => Date })),
66
- __metadata("design:type", Function),
67
- __metadata("design:paramtypes", [Object, String, Date]),
68
- __metadata("design:returntype", Promise)
69
- ], LeafResolver.prototype, "setLeafPublishDate", null);
70
- __decorate([
71
- (0, graphql_1.Mutation)(() => [String]),
72
- __param(0, (0, graphql_1.Context)()),
73
- __param(1, (0, graphql_1.Args)("leafIds", { type: () => [String] })),
74
- __param(2, (0, graphql_1.Args)("parentLeafId", { type: () => String })),
75
- __param(3, (0, graphql_1.Args)("listName", { type: () => String })),
76
- __metadata("design:type", Function),
77
- __metadata("design:paramtypes", [Object, Array, String, String]),
78
- __metadata("design:returntype", Promise)
79
- ], LeafResolver.prototype, "reorderLeafItems", null);
80
- exports.LeafResolver = LeafResolver = __decorate([
81
- (0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
82
- (0, graphql_1.Resolver)(() => leaf_schema_1.LeafObjectType)
83
- ], LeafResolver);
84
- //# sourceMappingURL=leaf.resolver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leaf.resolver.js","sourceRoot":"","sources":["../../../../src/modules/core/leaf/leaf.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,6CAA8F;AAC9F,6DAAqE;AACrE,qEAAoE;AAEpE,2DAAsD;AACtD,sEAAkE;AAClE,oEAAmE;AACnE,iDAAiE;AACjE,+CAA+C;AAIxC,IAAM,YAAY,GAAlB,MAAM,YAAY;IAEjB,AAAN,KAAK,CAAC,WAAW,CACJ,EAAE,IAAI,EAAkB,EAEnC,EAAE,EAAE,EAAkB;QAEtB,OAAO,MAAM,IAAA,0BAAW,EAAC,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IAC3D,CAAC;IAGD,OAAO,CAEL,EAAE,WAAW,EAAkB;QAE/B,IAAI,CAAC,WAAW;YAAE,OAAO,KAAK,CAAC;QAC/B,OAAO,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IACtD,CAAC;IAGK,AAAN,KAAK,CAAC,kBAAkB,CACX,EAAE,IAAI,EAAkB,EACC,MAAc,EACP,WAAiB;QAE5D,OAAO,IAAA,oCAAsB,EAC3B,MAAM,IAAA,iCAAkB,EAAC,MAAM,IAAA,6BAAc,EAAC,IAAI,CAAC,EAAE;YACnD,MAAM;YACN,WAAW,EAAE,WAAW,CAAC,WAAW,EAAE;SACvC,CAAC,CACH,CAAC;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,gBAAgB,CACT,EAAE,IAAI,EAAkB,EACQ,OAAiB,EACd,YAAoB,EACxB,QAAgB;QAE1D,MAAM,WA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,CAAA;;;;oDAI1C;uBA1CU,YAAY;IAFxB,IAAA,kBAAS,EAAC,6BAAY,CAAC;IACvB,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,4BAAc,CAAC;GAClB,YAAY,CA2CxB"}
@@ -1,7 +0,0 @@
1
- export declare class LeafObjectType {
2
- id: string;
3
- leafType: string;
4
- parentId?: string;
5
- relativeId: string;
6
- publishDate?: Date;
7
- }
@@ -1,45 +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.LeafObjectType = void 0;
13
- const graphql_1 = require("@nestjs/graphql");
14
- let LeafObjectType = class LeafObjectType {
15
- id;
16
- leafType;
17
- parentId;
18
- relativeId;
19
- publishDate;
20
- };
21
- exports.LeafObjectType = LeafObjectType;
22
- __decorate([
23
- (0, graphql_1.Field)(() => graphql_1.ID),
24
- __metadata("design:type", String)
25
- ], LeafObjectType.prototype, "id", void 0);
26
- __decorate([
27
- (0, graphql_1.Field)(() => String),
28
- __metadata("design:type", String)
29
- ], LeafObjectType.prototype, "leafType", void 0);
30
- __decorate([
31
- (0, graphql_1.Field)(() => graphql_1.ID, { nullable: true }),
32
- __metadata("design:type", String)
33
- ], LeafObjectType.prototype, "parentId", void 0);
34
- __decorate([
35
- (0, graphql_1.Field)(() => String),
36
- __metadata("design:type", String)
37
- ], LeafObjectType.prototype, "relativeId", void 0);
38
- __decorate([
39
- (0, graphql_1.Field)(() => Date, { nullable: true }),
40
- __metadata("design:type", Date)
41
- ], LeafObjectType.prototype, "publishDate", void 0);
42
- exports.LeafObjectType = LeafObjectType = __decorate([
43
- (0, graphql_1.ObjectType)("Leaf")
44
- ], LeafObjectType);
45
- //# sourceMappingURL=leaf.schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leaf.schema.js","sourceRoot":"","sources":["../../../../src/modules/core/leaf/leaf.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwD;AAGjD,IAAM,cAAc,GAApB,MAAM,cAAc;IAEzB,EAAE,CAAU;IAGZ,QAAQ,CAAU;IAGlB,QAAQ,CAAU;IAGlB,UAAU,CAAU;IAGpB,WAAW,CAAQ;CACpB,CAAA;AAfY,wCAAc;AAEzB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;0CACJ;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;gDACF;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAClB;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;kDACA;AAGpB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACxB,IAAI;mDAAC;yBAdR,cAAc;IAD1B,IAAA,oBAAU,EAAC,MAAM,CAAC;GACN,cAAc,CAe1B"}
@@ -1,6 +0,0 @@
1
- export declare class LeafItemEntity {
2
- leafId: string;
3
- listName: string;
4
- itemNum?: number;
5
- idToString(): void;
6
- }
@@ -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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.LeafItemEntity = void 0;
13
- const typeorm_1 = require("typeorm");
14
- let LeafItemEntity = class LeafItemEntity {
15
- leafId;
16
- listName;
17
- itemNum;
18
- idToString() {
19
- this.leafId = this.leafId?.toString();
20
- }
21
- };
22
- exports.LeafItemEntity = LeafItemEntity;
23
- __decorate([
24
- (0, typeorm_1.Column)({ primary: true, type: "bigint" }),
25
- __metadata("design:type", String)
26
- ], LeafItemEntity.prototype, "leafId", void 0);
27
- __decorate([
28
- (0, typeorm_1.Column)({ type: "varchar", length: 100 }),
29
- __metadata("design:type", String)
30
- ], LeafItemEntity.prototype, "listName", void 0);
31
- __decorate([
32
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
33
- __metadata("design:type", Number)
34
- ], LeafItemEntity.prototype, "itemNum", void 0);
35
- __decorate([
36
- (0, typeorm_1.AfterLoad)(),
37
- __metadata("design:type", Function),
38
- __metadata("design:paramtypes", []),
39
- __metadata("design:returntype", void 0)
40
- ], LeafItemEntity.prototype, "idToString", null);
41
- exports.LeafItemEntity = LeafItemEntity = __decorate([
42
- (0, typeorm_1.Entity)("PaLeafItem")
43
- ], LeafItemEntity);
44
- //# sourceMappingURL=leaf-item.model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leaf-item.model.js","sourceRoot":"","sources":["../../../../src/modules/core/leaf-item/leaf-item.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AAG7C,IAAM,cAAc,GAApB,MAAM,cAAc;IAEzB,MAAM,CAAU;IAGhB,QAAQ,CAAU;IAGlB,OAAO,CAAU;IAGjB,UAAU;QACR,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC;IACxC,CAAC;CACF,CAAA;AAdY,wCAAc;AAEzB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;8CAC1B;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;gDACvB;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC3B;AAGjB;IADC,IAAA,mBAAS,GAAE;;;;gDAGX;yBAbU,cAAc;IAD1B,IAAA,gBAAM,EAAC,YAAY,CAAC;GACR,cAAc,CAc1B"}
@@ -1,9 +0,0 @@
1
- import { SiteContext } from "../../../site-context/site-context.types";
2
- export declare function findOneLeafItemItemNum({ mainCn }: SiteContext, leafId: string): Promise<number | undefined>;
3
- export declare function createLeafItem(siteContext: SiteContext, { leafId, listName, parentId }: {
4
- leafId: string;
5
- listName: string;
6
- parentId: string;
7
- }): Promise<void>;
8
- export declare function updatePartsItemNumAfterDeletetion(siteContext: SiteContext, leafId: string): Promise<void>;
9
- export declare function reorderLeafItems(siteContext: SiteContext, leafIds: string[], parentLeafId: string, listName: string): Promise<string[]>;