@paroicms/server 1.42.2 → 1.43.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 (317) hide show
  1. package/dist/common/child-ordering-query.d.ts +1 -1
  2. package/dist/common/child-ordering-query.js +2 -2
  3. package/dist/common/child-ordering-query.js.map +1 -1
  4. package/dist/common/data-format.d.ts +2 -4
  5. package/dist/common/data-format.js +4 -4
  6. package/dist/common/data-format.js.map +1 -1
  7. package/dist/common/mail/sendMail.helpers.d.ts +3 -3
  8. package/dist/common/mail/sendMail.helpers.js +3 -3
  9. package/dist/common/mail/sendMail.helpers.js.map +1 -1
  10. package/dist/common/media-handles.helpers.d.ts +1 -1
  11. package/dist/common/serve-text-or.d.ts +1 -1
  12. package/dist/common/serve-text-or.js +2 -2
  13. package/dist/common/serve-text-or.js.map +1 -1
  14. package/dist/common/text-cache.d.ts +7 -1
  15. package/dist/common/text-cache.js +23 -13
  16. package/dist/common/text-cache.js.map +1 -1
  17. package/dist/common/tracker-report.d.ts +1 -1
  18. package/dist/context.d.ts +5 -8
  19. package/dist/context.js +10 -22
  20. package/dist/context.js.map +1 -1
  21. package/dist/express/static-middlewares.js +3 -3
  22. package/dist/express/static-middlewares.js.map +1 -1
  23. package/dist/helpers/label-translator.helper.d.ts +1 -1
  24. package/dist/helpers/make-plugin-site-context.d.ts +1 -1
  25. package/dist/helpers/special-account.helpers.d.ts +1 -1
  26. package/dist/helpers/special-account.helpers.js.map +1 -1
  27. package/dist/helpers/utils-helper.d.ts +1 -1
  28. package/dist/helpers/utils-helper.js +2 -2
  29. package/dist/helpers/utils-helper.js.map +1 -1
  30. package/dist/index.d.ts +1 -1
  31. package/dist/index.js +7 -8
  32. package/dist/index.js.map +1 -1
  33. package/dist/liquidjs-tools/liquidjs-drop.d.ts +1 -1
  34. package/dist/liquidjs-tools/liquidjs-rendering/rendering-context.d.ts +1 -1
  35. package/dist/liquidjs-tools/liquidjs-rendering/rendering-context.js +2 -2
  36. package/dist/liquidjs-tools/liquidjs-rendering/rendering-context.js.map +1 -1
  37. package/dist/liquidjs-tools/liquidjs-utils.d.ts +1 -1
  38. package/dist/liquidjs-tools/liquidjs-utils.js +2 -2
  39. package/dist/liquidjs-tools/liquidjs-utils.js.map +1 -1
  40. package/dist/maintenance/shutdown.d.ts +1 -1
  41. package/dist/modules/app.controller.js +2 -2
  42. package/dist/modules/app.controller.js.map +1 -1
  43. package/dist/modules/core/account/account.queries.d.ts +1 -1
  44. package/dist/modules/core/account/account.queries.js +14 -14
  45. package/dist/modules/core/account/account.queries.js.map +1 -1
  46. package/dist/modules/core/auth/auth.service.js.map +1 -1
  47. package/dist/modules/core/backup/backup.controller.js +3 -4
  48. package/dist/modules/core/backup/backup.controller.js.map +1 -1
  49. package/dist/modules/core/backup/backup.resolver.js +2 -2
  50. package/dist/modules/core/backup/backup.resolver.js.map +1 -1
  51. package/dist/modules/core/document/document.helper.d.ts +1 -1
  52. package/dist/modules/core/document/document.helper.js +2 -2
  53. package/dist/modules/core/document/document.helper.js.map +1 -1
  54. package/dist/modules/core/document/document.resolver.js +10 -10
  55. package/dist/modules/core/document/document.resolver.js.map +1 -1
  56. package/dist/modules/core/document/load-documents.queries.d.ts +2 -2
  57. package/dist/modules/core/document/load-documents.queries.js +4 -31
  58. package/dist/modules/core/document/load-documents.queries.js.map +1 -1
  59. package/dist/modules/core/document/save-documents.queries.d.ts +1 -1
  60. package/dist/modules/core/document/save-documents.queries.js +21 -24
  61. package/dist/modules/core/document/save-documents.queries.js.map +1 -1
  62. package/dist/modules/core/fields/_fields.helpers.d.ts +1 -1
  63. package/dist/modules/core/fields/fields.resolver.js +3 -3
  64. package/dist/modules/core/fields/fields.resolver.js.map +1 -1
  65. package/dist/modules/core/fields/load-fields.queries.d.ts +1 -1
  66. package/dist/modules/core/fields/load-fields.queries.js +5 -5
  67. package/dist/modules/core/fields/load-fields.queries.js.map +1 -1
  68. package/dist/modules/core/fields/preprocess-fields.d.ts +2 -2
  69. package/dist/modules/core/fields/preprocess-fields.js.map +1 -1
  70. package/dist/modules/core/fields/save-fields.queries.js +6 -6
  71. package/dist/modules/core/fields/save-fields.queries.js.map +1 -1
  72. package/dist/modules/core/labeling/labeling.queries.js +1 -2
  73. package/dist/modules/core/labeling/labeling.queries.js.map +1 -1
  74. package/dist/modules/core/leaf/leaf.queries.d.ts +3 -3
  75. package/dist/modules/core/leaf/leaf.queries.js +40 -17
  76. package/dist/modules/core/leaf/leaf.queries.js.map +1 -1
  77. package/dist/modules/core/leaf/ordered-leaf.queries.js +2 -2
  78. package/dist/modules/core/leaf/ordered-leaf.queries.js.map +1 -1
  79. package/dist/modules/core/media/media-upload.controller.d.ts +1 -1
  80. package/dist/modules/core/media/media-upload.controller.js +5 -5
  81. package/dist/modules/core/media/media-upload.controller.js.map +1 -1
  82. package/dist/modules/core/media/media.d.ts +1 -1
  83. package/dist/modules/core/media/media.js +2 -2
  84. package/dist/modules/core/media/media.js.map +1 -1
  85. package/dist/modules/core/media/media.resolver.js +6 -6
  86. package/dist/modules/core/media/media.resolver.js.map +1 -1
  87. package/dist/modules/core/part/part-leaf.queries.d.ts +1 -1
  88. package/dist/modules/core/part/part-leaf.queries.js.map +1 -1
  89. package/dist/modules/core/part/part.queries.d.ts +2 -1
  90. package/dist/modules/core/part/part.queries.js +32 -18
  91. package/dist/modules/core/part/part.queries.js.map +1 -1
  92. package/dist/modules/core/part/part.resolver.extend.js +3 -3
  93. package/dist/modules/core/part/part.resolver.extend.js.map +1 -1
  94. package/dist/modules/core/part/part.resolver.js +4 -4
  95. package/dist/modules/core/part/part.resolver.js.map +1 -1
  96. package/dist/modules/core/part/part.schema.d.ts +1 -0
  97. package/dist/modules/core/part/part.schema.js +5 -0
  98. package/dist/modules/core/part/part.schema.js.map +1 -1
  99. package/dist/modules/core/section/section-wrap.resolver.js +8 -8
  100. package/dist/modules/core/section/section-wrap.resolver.js.map +1 -1
  101. package/dist/modules/core/section/section.queries.d.ts +3 -3
  102. package/dist/modules/core/section/section.queries.js +50 -13
  103. package/dist/modules/core/section/section.queries.js.map +1 -1
  104. package/dist/modules/core/section/section.resolver.js +2 -2
  105. package/dist/modules/core/section/section.resolver.js.map +1 -1
  106. package/dist/modules/core/unprotected/unprotected.resolver.js +2 -2
  107. package/dist/modules/core/unprotected/unprotected.resolver.js.map +1 -1
  108. package/dist/modules/public-api/password-reset/password-reset.service.js +2 -2
  109. package/dist/modules/public-api/password-reset/password-reset.service.js.map +1 -1
  110. package/dist/modules/public-api/public-api-controller.d.ts +1 -1
  111. package/dist/modules/public-api/public-api-controller.js +6 -6
  112. package/dist/modules/public-api/public-api-controller.js.map +1 -1
  113. package/dist/modules/public-api/search-text/search-text.queries.js.map +1 -1
  114. package/dist/modules/public-site/feed/feed-generator.d.ts +1 -1
  115. package/dist/modules/public-site/feed/feed-generator.js +9 -9
  116. package/dist/modules/public-site/feed/feed-generator.js.map +1 -1
  117. package/dist/modules/public-site/feed/feed.middleware.js +5 -5
  118. package/dist/modules/public-site/feed/feed.middleware.js.map +1 -1
  119. package/dist/modules/public-site/helpers/medias.helpers.d.ts +1 -1
  120. package/dist/modules/public-site/liquidjs-filters/format-number.js +2 -2
  121. package/dist/modules/public-site/liquidjs-filters/format-number.js.map +1 -1
  122. package/dist/modules/public-site/liquidjs-filters/head-tags-filter.js +7 -8
  123. package/dist/modules/public-site/liquidjs-filters/head-tags-filter.js.map +1 -1
  124. package/dist/modules/public-site/liquidjs-filters/image-zoom-url.js +2 -2
  125. package/dist/modules/public-site/liquidjs-filters/image-zoom-url.js.map +1 -1
  126. package/dist/modules/public-site/liquidjs-filters/info-filter.js +4 -4
  127. package/dist/modules/public-site/liquidjs-filters/info-filter.js.map +1 -1
  128. package/dist/modules/public-site/liquidjs-filters/inject-menu-items-data.js +4 -4
  129. package/dist/modules/public-site/liquidjs-filters/inject-menu-items-data.js.map +1 -1
  130. package/dist/modules/public-site/liquidjs-filters/obfuscate.js +3 -3
  131. package/dist/modules/public-site/liquidjs-filters/obfuscate.js.map +1 -1
  132. package/dist/modules/public-site/liquidjs-filters/open-graph-filter.js +8 -8
  133. package/dist/modules/public-site/liquidjs-filters/open-graph-filter.js.map +1 -1
  134. package/dist/modules/public-site/liquidjs-tags/get-doc-tag.d.ts +1 -1
  135. package/dist/modules/public-site/liquidjs-tags/get-doc-tag.js +2 -2
  136. package/dist/modules/public-site/liquidjs-tags/get-doc-tag.js.map +1 -1
  137. package/dist/modules/public-site/liquidjs-tags/get-docs-tag.d.ts +1 -1
  138. package/dist/modules/public-site/liquidjs-tags/get-docs-tag.js +5 -5
  139. package/dist/modules/public-site/liquidjs-tags/get-docs-tag.js.map +1 -1
  140. package/dist/modules/public-site/liquidjs-tags/get-paginated-docs-tag.d.ts +2 -2
  141. package/dist/modules/public-site/liquidjs-tags/get-paginated-docs-tag.js +5 -5
  142. package/dist/modules/public-site/liquidjs-tags/get-paginated-docs-tag.js.map +1 -1
  143. package/dist/modules/public-site/liquidjs-tags/use-image-tag.d.ts +1 -1
  144. package/dist/modules/public-site/liquidjs-tags/use-image-tag.js +3 -3
  145. package/dist/modules/public-site/liquidjs-tags/use-image-tag.js.map +1 -1
  146. package/dist/modules/public-site/media-serve/_media-serve-helpers.d.ts +1 -1
  147. package/dist/modules/public-site/media-serve/_media-serve-helpers.js +2 -2
  148. package/dist/modules/public-site/media-serve/_media-serve-helpers.js.map +1 -1
  149. package/dist/modules/public-site/media-serve/media-serve.controller.js +6 -6
  150. package/dist/modules/public-site/media-serve/media-serve.controller.js.map +1 -1
  151. package/dist/modules/public-site/oauth2-client.controller.js +5 -5
  152. package/dist/modules/public-site/oauth2-client.controller.js.map +1 -1
  153. package/dist/modules/public-site/public-route/make-url.d.ts +2 -2
  154. package/dist/modules/public-site/public-route/make-url.js +5 -5
  155. package/dist/modules/public-site/public-route/make-url.js.map +1 -1
  156. package/dist/modules/public-site/public-route/public-route-parser.d.ts +1 -1
  157. package/dist/modules/public-site/public-site.controller.d.ts +1 -1
  158. package/dist/modules/public-site/public-site.controller.js +2 -2
  159. package/dist/modules/public-site/public-site.controller.js.map +1 -1
  160. package/dist/modules/public-site/public-site.middleware.js +2 -2
  161. package/dist/modules/public-site/public-site.middleware.js.map +1 -1
  162. package/dist/modules/public-site/serve-document/serve-document.d.ts +1 -1
  163. package/dist/modules/public-site/serve-document/serve-document.js +2 -2
  164. package/dist/modules/public-site/serve-document/serve-document.js.map +1 -1
  165. package/dist/plugins/plugin-api.d.ts +1 -1
  166. package/dist/plugins/plugin-api.js.map +1 -1
  167. package/dist/public-payload/breadcrumb.queries.d.ts +1 -1
  168. package/dist/public-payload/breadcrumb.queries.js +2 -2
  169. package/dist/public-payload/breadcrumb.queries.js.map +1 -1
  170. package/dist/public-payload/create-doc-drop.d.ts +1 -1
  171. package/dist/public-payload/create-doc-drop.js +6 -5
  172. package/dist/public-payload/create-doc-drop.js.map +1 -1
  173. package/dist/public-payload/create-doc-part-drop.js +4 -3
  174. package/dist/public-payload/create-doc-part-drop.js.map +1 -1
  175. package/dist/public-payload/doc-values.queries.d.ts +3 -2
  176. package/dist/public-payload/doc-values.queries.js +6 -6
  177. package/dist/public-payload/doc-values.queries.js.map +1 -1
  178. package/dist/public-payload/excerpt.queries.d.ts +2 -2
  179. package/dist/public-payload/excerpt.queries.js +4 -4
  180. package/dist/public-payload/excerpt.queries.js.map +1 -1
  181. package/dist/public-payload/field-values.d.ts +1 -1
  182. package/dist/public-payload/field-values.js +4 -4
  183. package/dist/public-payload/field-values.js.map +1 -1
  184. package/dist/public-payload/get-siblings.queries.d.ts +1 -1
  185. package/dist/public-payload/get-siblings.queries.js +6 -7
  186. package/dist/public-payload/get-siblings.queries.js.map +1 -1
  187. package/dist/public-payload/load-default-image.d.ts +2 -2
  188. package/dist/public-payload/load-default-image.js +2 -2
  189. package/dist/public-payload/load-default-image.js.map +1 -1
  190. package/dist/public-payload/make-image-available.d.ts +1 -1
  191. package/dist/public-payload/make-image-available.js +3 -3
  192. package/dist/public-payload/make-image-available.js.map +1 -1
  193. package/dist/public-payload/parts.queries.d.ts +2 -2
  194. package/dist/public-payload/parts.queries.js +10 -9
  195. package/dist/public-payload/parts.queries.js.map +1 -1
  196. package/dist/public-payload/site-payload.js.map +1 -1
  197. package/dist/public-payload/taxonomies.queries.d.ts +3 -2
  198. package/dist/public-payload/taxonomies.queries.js +2 -2
  199. package/dist/public-payload/taxonomies.queries.js.map +1 -1
  200. package/dist/public-payload/translations.queries.d.ts +1 -1
  201. package/dist/public-payload/translations.queries.js +2 -2
  202. package/dist/public-payload/translations.queries.js.map +1 -1
  203. package/dist/site-context/create-site-context.d.ts +1 -1
  204. package/dist/site-context/create-site-context.js +11 -14
  205. package/dist/site-context/create-site-context.js.map +1 -1
  206. package/dist/site-context/site-context.js.map +1 -1
  207. package/dist/site-context/site-context.types.d.ts +4 -32
  208. package/package.json +16 -18
  209. package/schema.gql +1 -0
  210. package/ddl/main.ddl.sql +0 -91
  211. package/dist/app-conf/app-conf-provider.d.ts +0 -3
  212. package/dist/app-conf/app-conf-provider.js +0 -88
  213. package/dist/app-conf/app-conf-provider.js.map +0 -1
  214. package/dist/app-conf/app-conf.types.d.ts +0 -37
  215. package/dist/app-conf/app-conf.types.js +0 -3
  216. package/dist/app-conf/app-conf.types.js.map +0 -1
  217. package/dist/helpers/jwt-secret.helpers.d.ts +0 -2
  218. package/dist/helpers/jwt-secret.helpers.js +0 -30
  219. package/dist/helpers/jwt-secret.helpers.js.map +0 -1
  220. package/dist/helpers/relative-id-helper.d.ts +0 -10
  221. package/dist/helpers/relative-id-helper.js +0 -37
  222. package/dist/helpers/relative-id-helper.js.map +0 -1
  223. package/dist/models/account.model.d.ts +0 -18
  224. package/dist/models/account.model.js +0 -59
  225. package/dist/models/account.model.js.map +0 -1
  226. package/dist/models/document.model.d.ts +0 -9
  227. package/dist/models/document.model.js +0 -59
  228. package/dist/models/document.model.js.map +0 -1
  229. package/dist/models/fields.model.d.ts +0 -17
  230. package/dist/models/fields.model.js +0 -99
  231. package/dist/models/fields.model.js.map +0 -1
  232. package/dist/models/labeling.model.d.ts +0 -6
  233. package/dist/models/labeling.model.js +0 -45
  234. package/dist/models/labeling.model.js.map +0 -1
  235. package/dist/models/leaf.model.d.ts +0 -9
  236. package/dist/models/leaf.model.js +0 -61
  237. package/dist/models/leaf.model.js.map +0 -1
  238. package/dist/models/ordered-leaf.model.d.ts +0 -5
  239. package/dist/models/ordered-leaf.model.js +0 -39
  240. package/dist/models/ordered-leaf.model.js.map +0 -1
  241. package/dist/models/part-leaf.model.d.ts +0 -6
  242. package/dist/models/part-leaf.model.js +0 -45
  243. package/dist/models/part-leaf.model.js.map +0 -1
  244. package/dist/models/section.model.d.ts +0 -6
  245. package/dist/models/section.model.js +0 -44
  246. package/dist/models/section.model.js.map +0 -1
  247. package/dist/plugins/plugin-loader.d.ts +0 -11
  248. package/dist/plugins/plugin-loader.js +0 -78
  249. package/dist/plugins/plugin-loader.js.map +0 -1
  250. package/dist/plugins/plugin.helpers.d.ts +0 -4
  251. package/dist/plugins/plugin.helpers.js +0 -33
  252. package/dist/plugins/plugin.helpers.js.map +0 -1
  253. package/dist/public.types.d.ts +0 -5
  254. package/dist/public.types.js +0 -3
  255. package/dist/public.types.js.map +0 -1
  256. package/dist/share/pino-app-log.d.ts +0 -26
  257. package/dist/share/pino-app-log.js +0 -138
  258. package/dist/share/pino-app-log.js.map +0 -1
  259. package/dist/share/read-configuration.d.ts +0 -7
  260. package/dist/share/read-configuration.js +0 -31
  261. package/dist/share/read-configuration.js.map +0 -1
  262. package/dist/site-backup/archiver.helper.d.ts +0 -12
  263. package/dist/site-backup/archiver.helper.js +0 -43
  264. package/dist/site-backup/archiver.helper.js.map +0 -1
  265. package/dist/site-backup/backup-tasks.d.ts +0 -10
  266. package/dist/site-backup/backup-tasks.js +0 -50
  267. package/dist/site-backup/backup-tasks.js.map +0 -1
  268. package/dist/site-backup/backup.d.ts +0 -11
  269. package/dist/site-backup/backup.helper.d.ts +0 -3
  270. package/dist/site-backup/backup.helper.js +0 -13
  271. package/dist/site-backup/backup.helper.js.map +0 -1
  272. package/dist/site-backup/backup.js +0 -35
  273. package/dist/site-backup/backup.js.map +0 -1
  274. package/dist/site-context/db-init/db-init.d.ts +0 -10
  275. package/dist/site-context/db-init/db-init.js +0 -44
  276. package/dist/site-context/db-init/db-init.js.map +0 -1
  277. package/dist/site-context/db-init/ddl-migration.d.ts +0 -9
  278. package/dist/site-context/db-init/ddl-migration.js +0 -42
  279. package/dist/site-context/db-init/ddl-migration.js.map +0 -1
  280. package/dist/site-context/db-init/init-routing-points.d.ts +0 -5
  281. package/dist/site-context/db-init/init-routing-points.js +0 -149
  282. package/dist/site-context/db-init/init-routing-points.js.map +0 -1
  283. package/dist/site-context/site-conf.d.ts +0 -17
  284. package/dist/site-context/site-conf.js +0 -101
  285. package/dist/site-context/site-conf.js.map +0 -1
  286. package/dist/site-context/theme-conf-reader.d.ts +0 -4
  287. package/dist/site-context/theme-conf-reader.js +0 -44
  288. package/dist/site-context/theme-conf-reader.js.map +0 -1
  289. package/dist/site-schema/common-schema-reader.d.ts +0 -6
  290. package/dist/site-schema/common-schema-reader.js +0 -32
  291. package/dist/site-schema/common-schema-reader.js.map +0 -1
  292. package/dist/site-schema/merged-schema-lib.d.ts +0 -39
  293. package/dist/site-schema/merged-schema-lib.js +0 -131
  294. package/dist/site-schema/merged-schema-lib.js.map +0 -1
  295. package/dist/site-schema/read-locales.d.ts +0 -24
  296. package/dist/site-schema/read-locales.js +0 -171
  297. package/dist/site-schema/read-locales.js.map +0 -1
  298. package/dist/site-schema/site-schema-factory.d.ts +0 -7
  299. package/dist/site-schema/site-schema-factory.js +0 -441
  300. package/dist/site-schema/site-schema-factory.js.map +0 -1
  301. package/dist/site-schema/site-schema-helpers.d.ts +0 -9
  302. package/dist/site-schema/site-schema-helpers.js +0 -44
  303. package/dist/site-schema/site-schema-helpers.js.map +0 -1
  304. package/dist/site-schema/site-schema-lib-reader.d.ts +0 -14
  305. package/dist/site-schema/site-schema-lib-reader.js +0 -50
  306. package/dist/site-schema/site-schema-lib-reader.js.map +0 -1
  307. package/dist/types.to.json +0 -1
  308. package/site-schema-lib/common-schema.json +0 -36
  309. package/site-schema-lib/common-schema.l10n.en.json +0 -10
  310. package/site-schema-lib/common-schema.l10n.fr.json +0 -10
  311. package/site-schema-lib/default-media-policies.site-schema.json +0 -26
  312. package/site-schema-lib/field-lib.site-schema.json +0 -94
  313. package/site-schema-lib/field-lib.site-schema.l10n.en.json +0 -29
  314. package/site-schema-lib/field-lib.site-schema.l10n.fr.json +0 -29
  315. package/site-schema-lib/lowcost.site-schema.json +0 -91
  316. package/site-schema-lib/lowcost.site-schema.l10n.en.json +0 -32
  317. package/site-schema-lib/lowcost.site-schema.l10n.fr.json +0 -32
@@ -1,99 +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.PaFieldTextEntity = exports.PaFieldVarcharEntity = void 0;
13
- const typeorm_1 = require("typeorm");
14
- let PaFieldVarcharEntity = class PaFieldVarcharEntity {
15
- leafId;
16
- field;
17
- lang;
18
- dataType;
19
- val;
20
- idToString() {
21
- this.leafId = this.leafId?.toString();
22
- }
23
- };
24
- exports.PaFieldVarcharEntity = PaFieldVarcharEntity;
25
- __decorate([
26
- (0, typeorm_1.Column)({ type: "bigint", primary: true }),
27
- __metadata("design:type", String)
28
- ], PaFieldVarcharEntity.prototype, "leafId", void 0);
29
- __decorate([
30
- (0, typeorm_1.Column)({ type: "varchar", length: 250, primary: true }),
31
- __metadata("design:type", String)
32
- ], PaFieldVarcharEntity.prototype, "field", void 0);
33
- __decorate([
34
- (0, typeorm_1.Column)({ type: "varchar", length: 2, primary: true }),
35
- __metadata("design:type", String)
36
- ], PaFieldVarcharEntity.prototype, "lang", void 0);
37
- __decorate([
38
- (0, typeorm_1.Column)({ type: "varchar", length: 100 }),
39
- __metadata("design:type", String)
40
- ], PaFieldVarcharEntity.prototype, "dataType", void 0);
41
- __decorate([
42
- (0, typeorm_1.Column)({ type: "varchar", length: 5000, nullable: true }),
43
- __metadata("design:type", String)
44
- ], PaFieldVarcharEntity.prototype, "val", void 0);
45
- __decorate([
46
- (0, typeorm_1.AfterLoad)(),
47
- __metadata("design:type", Function),
48
- __metadata("design:paramtypes", []),
49
- __metadata("design:returntype", void 0)
50
- ], PaFieldVarcharEntity.prototype, "idToString", null);
51
- exports.PaFieldVarcharEntity = PaFieldVarcharEntity = __decorate([
52
- (0, typeorm_1.Entity)("PaFieldVarchar")
53
- ], PaFieldVarcharEntity);
54
- let PaFieldTextEntity = class PaFieldTextEntity {
55
- leafId;
56
- field;
57
- lang;
58
- dataType;
59
- val;
60
- excerpt;
61
- idToString() {
62
- this.leafId = this.leafId?.toString();
63
- }
64
- };
65
- exports.PaFieldTextEntity = PaFieldTextEntity;
66
- __decorate([
67
- (0, typeorm_1.Column)({ type: "bigint", primary: true }),
68
- __metadata("design:type", String)
69
- ], PaFieldTextEntity.prototype, "leafId", void 0);
70
- __decorate([
71
- (0, typeorm_1.Column)({ type: "varchar", length: 250, primary: true }),
72
- __metadata("design:type", String)
73
- ], PaFieldTextEntity.prototype, "field", void 0);
74
- __decorate([
75
- (0, typeorm_1.Column)({ type: "varchar", length: 2, primary: true }),
76
- __metadata("design:type", String)
77
- ], PaFieldTextEntity.prototype, "lang", void 0);
78
- __decorate([
79
- (0, typeorm_1.Column)({ type: "varchar", length: 100 }),
80
- __metadata("design:type", String)
81
- ], PaFieldTextEntity.prototype, "dataType", void 0);
82
- __decorate([
83
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
84
- __metadata("design:type", String)
85
- ], PaFieldTextEntity.prototype, "val", void 0);
86
- __decorate([
87
- (0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
88
- __metadata("design:type", String)
89
- ], PaFieldTextEntity.prototype, "excerpt", void 0);
90
- __decorate([
91
- (0, typeorm_1.AfterLoad)(),
92
- __metadata("design:type", Function),
93
- __metadata("design:paramtypes", []),
94
- __metadata("design:returntype", void 0)
95
- ], PaFieldTextEntity.prototype, "idToString", null);
96
- exports.PaFieldTextEntity = PaFieldTextEntity = __decorate([
97
- (0, typeorm_1.Entity)("PaFieldText")
98
- ], PaFieldTextEntity);
99
- //# sourceMappingURL=fields.model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fields.model.js","sourceRoot":"","sources":["../../src/models/fields.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AAG7C,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAE/B,MAAM,CAAU;IAGhB,KAAK,CAAU;IAGf,IAAI,CAAU;IAGd,QAAQ,CAAU;IAGlB,GAAG,CAAU;IAGb,UAAU;QACR,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC;IACxC,CAAC;CACF,CAAA;AApBY,oDAAoB;AAE/B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;oDAC1B;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;mDACzC;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAA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;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACxC;AAGjB;IADC,IAAA,mBAAS,GAAE;;;;mDAGX;4BAtBU,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,aAAa,CAAC;GACT,iBAAiB,CAuB7B"}
@@ -1,6 +0,0 @@
1
- export declare class LabelingEntity {
2
- termId: string;
3
- labeledId: string;
4
- lead: boolean;
5
- idToString(): void;
6
- }
@@ -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.LabelingEntity = void 0;
13
- const typeorm_1 = require("typeorm");
14
- let LabelingEntity = class LabelingEntity {
15
- termId;
16
- labeledId;
17
- lead;
18
- idToString() {
19
- this.termId = this.termId?.toString();
20
- this.labeledId = this.labeledId?.toString();
21
- }
22
- };
23
- exports.LabelingEntity = LabelingEntity;
24
- __decorate([
25
- (0, typeorm_1.Column)({ type: "bigint", primary: true }),
26
- __metadata("design:type", String)
27
- ], LabelingEntity.prototype, "termId", void 0);
28
- __decorate([
29
- (0, typeorm_1.Column)({ type: "bigint", primary: true }),
30
- __metadata("design:type", String)
31
- ], LabelingEntity.prototype, "labeledId", void 0);
32
- __decorate([
33
- (0, typeorm_1.Column)({ type: "boolean", default: false }),
34
- __metadata("design:type", Boolean)
35
- ], LabelingEntity.prototype, "lead", void 0);
36
- __decorate([
37
- (0, typeorm_1.AfterLoad)(),
38
- __metadata("design:type", Function),
39
- __metadata("design:paramtypes", []),
40
- __metadata("design:returntype", void 0)
41
- ], LabelingEntity.prototype, "idToString", null);
42
- exports.LabelingEntity = LabelingEntity = __decorate([
43
- (0, typeorm_1.Entity)("PaLabeling")
44
- ], LabelingEntity);
45
- //# sourceMappingURL=labeling.model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"labeling.model.js","sourceRoot":"","sources":["../../src/models/labeling.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AAG7C,IAAM,cAAc,GAApB,MAAM,cAAc;IAEzB,MAAM,CAAU;IAGhB,SAAS,CAAU;IAGnB,IAAI,CAAW;IAGf,UAAU;QACR,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC;QACtC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,CAAC;IAC9C,CAAC;CACF,CAAA;AAfY,wCAAc;AAEzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;8CAC1B;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;iDACvB;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;4CAC7B;AAGf;IADC,IAAA,mBAAS,GAAE;;;;gDAIX;yBAdU,cAAc;IAD1B,IAAA,gBAAM,EAAC,YAAY,CAAC;GACR,cAAc,CAe1B"}
@@ -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/models/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,5 +0,0 @@
1
- export declare class OrderedLeafEntity {
2
- leafId: string;
3
- orderNum?: number;
4
- idToString(): void;
5
- }
@@ -1,39 +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.OrderedLeafEntity = void 0;
13
- const typeorm_1 = require("typeorm");
14
- let OrderedLeafEntity = class OrderedLeafEntity {
15
- leafId;
16
- orderNum;
17
- idToString() {
18
- this.leafId = this.leafId?.toString();
19
- }
20
- };
21
- exports.OrderedLeafEntity = OrderedLeafEntity;
22
- __decorate([
23
- (0, typeorm_1.Column)({ primary: true, type: "bigint" }),
24
- __metadata("design:type", String)
25
- ], OrderedLeafEntity.prototype, "leafId", void 0);
26
- __decorate([
27
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
28
- __metadata("design:type", Number)
29
- ], OrderedLeafEntity.prototype, "orderNum", void 0);
30
- __decorate([
31
- (0, typeorm_1.AfterLoad)(),
32
- __metadata("design:type", Function),
33
- __metadata("design:paramtypes", []),
34
- __metadata("design:returntype", void 0)
35
- ], OrderedLeafEntity.prototype, "idToString", null);
36
- exports.OrderedLeafEntity = OrderedLeafEntity = __decorate([
37
- (0, typeorm_1.Entity)("PaOrderedLeaf")
38
- ], OrderedLeafEntity);
39
- //# sourceMappingURL=ordered-leaf.model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ordered-leaf.model.js","sourceRoot":"","sources":["../../src/models/ordered-leaf.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AAG7C,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAE5B,MAAM,CAAU;IAGhB,QAAQ,CAAU;IAGlB,UAAU;QACR,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC;IACxC,CAAC;CACF,CAAA;AAXY,8CAAiB;AAE5B;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;iDAC1B;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDAC1B;AAGlB;IADC,IAAA,mBAAS,GAAE;;;;mDAGX;4BAVU,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,eAAe,CAAC;GACX,iBAAiB,CAW7B"}
@@ -1,6 +0,0 @@
1
- export declare class PartLeafEntity {
2
- leafId: string;
3
- documentLeafId: string;
4
- listName: string;
5
- idToString(): void;
6
- }
@@ -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.PartLeafEntity = void 0;
13
- const typeorm_1 = require("typeorm");
14
- let PartLeafEntity = class PartLeafEntity {
15
- leafId;
16
- documentLeafId;
17
- listName;
18
- idToString() {
19
- this.leafId = this.leafId?.toString();
20
- this.documentLeafId = this.documentLeafId?.toString();
21
- }
22
- };
23
- exports.PartLeafEntity = PartLeafEntity;
24
- __decorate([
25
- (0, typeorm_1.Column)({ primary: true, type: "bigint" }),
26
- __metadata("design:type", String)
27
- ], PartLeafEntity.prototype, "leafId", void 0);
28
- __decorate([
29
- (0, typeorm_1.Column)({ type: "bigint" }),
30
- __metadata("design:type", String)
31
- ], PartLeafEntity.prototype, "documentLeafId", void 0);
32
- __decorate([
33
- (0, typeorm_1.Column)({ type: "varchar", length: 100 }),
34
- __metadata("design:type", String)
35
- ], PartLeafEntity.prototype, "listName", void 0);
36
- __decorate([
37
- (0, typeorm_1.AfterLoad)(),
38
- __metadata("design:type", Function),
39
- __metadata("design:paramtypes", []),
40
- __metadata("design:returntype", void 0)
41
- ], PartLeafEntity.prototype, "idToString", null);
42
- exports.PartLeafEntity = PartLeafEntity = __decorate([
43
- (0, typeorm_1.Entity)("PaPartLeaf")
44
- ], PartLeafEntity);
45
- //# sourceMappingURL=part-leaf.model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"part-leaf.model.js","sourceRoot":"","sources":["../../src/models/part-leaf.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AAG7C,IAAM,cAAc,GAApB,MAAM,cAAc;IAEzB,MAAM,CAAU;IAGhB,cAAc,CAAU;IAGxB,QAAQ,CAAU;IAGlB,UAAU;QACR,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC;QACtC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,EAAE,QAAQ,EAAE,CAAC;IACxD,CAAC;CACF,CAAA;AAfY,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,QAAQ,EAAE,CAAC;;sDACH;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;gDACvB;AAGlB;IADC,IAAA,mBAAS,GAAE;;;;gDAIX;yBAdU,cAAc;IAD1B,IAAA,gBAAM,EAAC,YAAY,CAAC;GACR,cAAc,CAe1B"}
@@ -1,6 +0,0 @@
1
- export declare class SectionEntity {
2
- leafId: string;
3
- lang: string;
4
- ready: boolean;
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.SectionEntity = void 0;
13
- const typeorm_1 = require("typeorm");
14
- let SectionEntity = class SectionEntity {
15
- leafId;
16
- lang;
17
- ready;
18
- idToString() {
19
- this.leafId = this.leafId?.toString();
20
- }
21
- };
22
- exports.SectionEntity = SectionEntity;
23
- __decorate([
24
- (0, typeorm_1.Column)({ type: "bigint", primary: true }),
25
- __metadata("design:type", String)
26
- ], SectionEntity.prototype, "leafId", void 0);
27
- __decorate([
28
- (0, typeorm_1.Column)({ type: "varchar", primary: true }),
29
- __metadata("design:type", String)
30
- ], SectionEntity.prototype, "lang", void 0);
31
- __decorate([
32
- (0, typeorm_1.Column)({ type: "boolean", default: false }),
33
- __metadata("design:type", Boolean)
34
- ], SectionEntity.prototype, "ready", 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
- ], SectionEntity.prototype, "idToString", null);
41
- exports.SectionEntity = SectionEntity = __decorate([
42
- (0, typeorm_1.Entity)("PaSection")
43
- ], SectionEntity);
44
- //# sourceMappingURL=section.model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"section.model.js","sourceRoot":"","sources":["../../src/models/section.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AAG7C,IAAM,aAAa,GAAnB,MAAM,aAAa;IAExB,MAAM,CAAU;IAGhB,IAAI,CAAU;IAGd,KAAK,CAAW;IAGhB,UAAU;QACR,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC;IACxC,CAAC;CACF,CAAA;AAdY,sCAAa;AAExB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;6CAC1B;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;2CAC7B;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;4CAC5B;AAGhB;IADC,IAAA,mBAAS,GAAE;;;;+CAGX;wBAbU,aAAa;IADzB,IAAA,gBAAM,EAAC,WAAW,CAAC;GACP,aAAa,CAczB"}
@@ -1,11 +0,0 @@
1
- import type { ParoiCmsPlugin, PublicApiHandler } from "@paroicms/plugin-lib";
2
- import type { SiteConf } from "../site-context/site-conf";
3
- export interface Plugin {
4
- pluginName: string;
5
- plugin: ParoiCmsPlugin;
6
- boPluginUrl: string;
7
- publicDirName: string;
8
- publicAssetsDir?: string;
9
- publicApiHandler?: PublicApiHandler;
10
- }
11
- export declare function loadPlugins(siteConf: Pick<SiteConf, "siteDir" | "siteUrl">, pluginNames: string[]): Map<string, Plugin>;
@@ -1,78 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.loadPlugins = void 0;
4
- const anywhere_lib_1 = require("@paroicms/anywhere-lib");
5
- const context_1 = require("../context");
6
- const plugin_helpers_1 = require("./plugin.helpers");
7
- const importedPlugins = new Map();
8
- function loadPlugins(siteConf, pluginNames) {
9
- const urlProvider = createBoPluginUrlProvider(siteConf.siteUrl);
10
- const map = new Map();
11
- for (const pluginName of pluginNames) {
12
- const plugin = getImportedPlugin(siteConf, pluginName);
13
- if (plugin) {
14
- const { boPluginUrl, urlPath } = urlProvider(pluginName);
15
- map.set(pluginName, { pluginName, plugin, boPluginUrl, publicDirName: urlPath });
16
- }
17
- }
18
- return map;
19
- }
20
- exports.loadPlugins = loadPlugins;
21
- function createBoPluginUrlProvider(siteUrl) {
22
- const paths = new Set();
23
- return (pluginName) => {
24
- const basePath = (0, plugin_helpers_1.toPluginUrlPathName)(pluginName);
25
- let urlPath;
26
- if (paths.has(basePath)) {
27
- for (let i = 2; i < 100; ++i) {
28
- const attempt = `${basePath}-${i}`;
29
- if (!paths.has(attempt)) {
30
- urlPath = attempt;
31
- break;
32
- }
33
- }
34
- if (!urlPath)
35
- throw new Error(`Too many plugins with the same name '${basePath}'`);
36
- }
37
- else {
38
- urlPath = basePath;
39
- }
40
- paths.add(urlPath);
41
- return {
42
- boPluginUrl: `${siteUrl}/adm/plugins/${urlPath}`,
43
- urlPath,
44
- };
45
- };
46
- }
47
- function getImportedPlugin(siteConf, pluginName) {
48
- const jsModuleName = (0, plugin_helpers_1.toJsModuleName)(siteConf, pluginName);
49
- if (importedPlugins.has(jsModuleName)) {
50
- return importedPlugins.get(jsModuleName);
51
- }
52
- try {
53
- const plugin = require(jsModuleName);
54
- checkPluginFormat(plugin);
55
- importedPlugins.set(jsModuleName, plugin);
56
- return plugin;
57
- }
58
- catch (error) {
59
- context_1.platformLog.error(`Invalid plugin '${pluginName}', used in '${siteConf.siteDir}': ${(0, anywhere_lib_1.messageOf)(error)}`);
60
- importedPlugins.set(jsModuleName, undefined);
61
- }
62
- }
63
- function checkPluginFormat(plugin) {
64
- if (!plugin || typeof plugin !== "object") {
65
- throw new Error("should export an object");
66
- }
67
- const obj = plugin;
68
- if (obj.init && typeof obj.init !== "function") {
69
- throw new Error("'init' should be a function");
70
- }
71
- if (!obj.boPluginDir || typeof obj.boPluginDir !== "string") {
72
- throw new Error("'boPluginDir' should be a string");
73
- }
74
- if (!obj.version || typeof obj.version !== "string") {
75
- throw new Error("'version' should be a string");
76
- }
77
- }
78
- //# sourceMappingURL=plugin-loader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-loader.js","sourceRoot":"","sources":["../../src/plugins/plugin-loader.ts"],"names":[],"mappings":";;;AAAA,yDAA6D;AAE7D,wCAAyC;AAEzC,qDAAuE;AAEvE,MAAM,eAAe,GAAG,IAAI,GAAG,EAAsC,CAAC;AAWtE,SAAgB,WAAW,CACzB,QAA+C,EAC/C,WAAqB;IA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GAAG,CAAC,WAAW,IAAI,OAAO,GAAG,CAAC,WAAW,KAAK,QAAQ,EAAE,CAAC;QAC5D,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;IACtD,CAAC;IACD,IAAI,CAAC,GAAG,CAAC,OAAO,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;QACpD,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;IAClD,CAAC;AACH,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { SiteConf } from "../site-context/site-conf";
2
- export declare function toPluginUrlPathName(pluginName: string): string;
3
- export declare function unscopePackageName(packageName: string): string;
4
- export declare function toJsModuleName(siteConf: Pick<SiteConf, "siteDir" | "siteUrl">, pluginName: string): string;
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toJsModuleName = exports.unscopePackageName = exports.toPluginUrlPathName = void 0;
4
- const anywhere_lib_1 = require("@paroicms/anywhere-lib");
5
- const node_path_1 = require("node:path");
6
- const node_process_1 = require("node:process");
7
- function toPluginUrlPathName(pluginName) {
8
- if (pluginName.startsWith("site:")) {
9
- return (0, anywhere_lib_1.generateSlug)(pluginName.slice(5));
10
- }
11
- const name = unscopePackageName(pluginName);
12
- const index = name.indexOf("plugin-");
13
- if (index === -1)
14
- return (0, anywhere_lib_1.generateSlug)(name);
15
- return (0, anywhere_lib_1.generateSlug)(name.slice(index + 7));
16
- }
17
- exports.toPluginUrlPathName = toPluginUrlPathName;
18
- function unscopePackageName(packageName) {
19
- const match = packageName.match(/^@[^/]+\/(.*)$/);
20
- if (!match)
21
- return packageName;
22
- return match[1];
23
- }
24
- exports.unscopePackageName = unscopePackageName;
25
- function toJsModuleName(siteConf, pluginName) {
26
- if (pluginName.startsWith("site:")) {
27
- const siteDir = (0, node_path_1.isAbsolute)(siteConf.siteDir) ? siteConf.siteDir : (0, node_path_1.join)((0, node_process_1.cwd)(), siteConf.siteDir);
28
- return (0, node_path_1.join)(siteDir, "plugins", pluginName.slice(5), "plugin.cjs");
29
- }
30
- return pluginName;
31
- }
32
- exports.toJsModuleName = toJsModuleName;
33
- //# sourceMappingURL=plugin.helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.helpers.js","sourceRoot":"","sources":["../../src/plugins/plugin.helpers.ts"],"names":[],"mappings":";;;AAAA,yDAAsD;AACtD,yCAA6C;AAC7C,+CAAmC;AAGnC,SAAgB,mBAAmB,CAAC,UAAkB;IACpD,IAAI,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QACnC,OAAO,IAAA,2BAAY,EAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3C,CAAC;IACD,MAAM,IAAI,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAC5C,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACtC,IAAI,KAAK,KAAK,CAAC,CAAC;QAAE,OAAO,IAAA,2BAAY,EAAC,IAAI,CAAC,CAAC;IAC5C,OAAO,IAAA,2BAAY,EAAC,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;AAC7C,CAAC;AARD,kDAQC;AAED,SAAgB,kBAAkB,CAAC,WAAmB;IACpD,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAClD,IAAI,CAAC,KAAK;QAAE,OAAO,WAAW,CAAC;IAC/B,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAJD,gDAIC;AAED,SAAgB,cAAc,CAC5B,QAA+C,EAC/C,UAAkB;IAElB,IAAI,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QACnC,MAAM,OAAO,GAAG,IAAA,sBAAU,EAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,IAAA,gBAAI,EAAC,IAAA,kBAAG,GAAE,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QAChG,OAAO,IAAA,gBAAI,EAAC,OAAO,EAAE,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AATD,wCASC"}
@@ -1,5 +0,0 @@
1
- export interface SitePlace {
2
- siteDir: string;
3
- domain: string;
4
- version?: string;
5
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=public.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"public.types.js","sourceRoot":"","sources":["../src/public.types.ts"],"names":[],"mappings":""}
@@ -1,26 +0,0 @@
1
- import type { Obj } from "@paroicms/anywhere-lib";
2
- export interface AppLog {
3
- error(...messages: any[]): void;
4
- warn(...messages: any[]): void;
5
- info(...messages: any[]): void;
6
- stats(...messages: any[]): void;
7
- debug(...messages: any[]): void;
8
- trace(...messages: any[]): void;
9
- }
10
- export type AppLogLevel = keyof AppLog;
11
- export interface PlatformLog extends AppLog {
12
- createChildLog(properties: Obj): AppLog;
13
- on(level: AppLogLevel, listener: (ev: AppLogEvent) => void): void;
14
- untilReady: Promise<void>;
15
- flushSync(): void;
16
- }
17
- export interface AppLogEvent {
18
- level: AppLogLevel;
19
- textMessage: string;
20
- originalMessages: any[];
21
- }
22
- export interface AppLogOptions {
23
- level: "silent" | AppLogLevel;
24
- file?: string;
25
- }
26
- export declare function createPlatformLog({ file, level }: AppLogOptions): PlatformLog;