@tstdl/base 0.81.35 → 0.82.1

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 (419) hide show
  1. package/api/client/client.d.ts +3 -3
  2. package/api/default-error-handlers.d.ts +1 -1
  3. package/api/response.d.ts +8 -8
  4. package/api/server/api-controller.d.ts +1 -1
  5. package/api/server/gateway.d.ts +9 -9
  6. package/api/server/middlewares/cors.middleware.d.ts +1 -1
  7. package/api/server/module.d.ts +1 -1
  8. package/api/types.d.ts +30 -30
  9. package/api/utils.d.ts +1 -1
  10. package/api/utils.js +3 -1
  11. package/api/utils.js.map +1 -1
  12. package/authentication/authentication-credentials.service.d.ts +6 -0
  13. package/authentication/authentication-credentials.service.js +17 -0
  14. package/authentication/authentication-credentials.service.js.map +1 -0
  15. package/authentication/authentication-session.repository.d.ts +6 -0
  16. package/authentication/authentication-session.repository.js +18 -0
  17. package/authentication/authentication-session.repository.js.map +1 -0
  18. package/authentication/authentication-token-payload.provider.d.ts +3 -0
  19. package/authentication/authentication-token-payload.provider.js +17 -0
  20. package/authentication/authentication-token-payload.provider.js.map +1 -0
  21. package/authentication/authentication.service.d.ts +42 -0
  22. package/authentication/authentication.service.js +133 -0
  23. package/authentication/authentication.service.js.map +1 -0
  24. package/authentication/models/authentication-credentials.model.d.ts +11 -0
  25. package/authentication/models/authentication-credentials.model.js +44 -0
  26. package/authentication/models/authentication-credentials.model.js.map +1 -0
  27. package/authentication/models/authentication-session.model.d.ts +14 -0
  28. package/authentication/models/authentication-session.model.js +59 -0
  29. package/authentication/models/authentication-session.model.js.map +1 -0
  30. package/authentication/models/index.d.ts +2 -0
  31. package/authentication/models/index.js +19 -0
  32. package/authentication/models/index.js.map +1 -0
  33. package/authentication/tokens.d.ts +2 -0
  34. package/authentication/tokens.js +6 -0
  35. package/authentication/tokens.js.map +1 -0
  36. package/collections/keyed-set.d.ts +1 -1
  37. package/collections/observable/observable-collection.d.ts +1 -1
  38. package/collections/observable/observable-list.d.ts +2 -2
  39. package/container/container.d.ts +3 -3
  40. package/container/container.js +3 -3
  41. package/container/container.js.map +1 -1
  42. package/container/decorators.d.ts +3 -3
  43. package/container/decorators.js +0 -1
  44. package/container/decorators.js.map +1 -1
  45. package/container/interfaces.d.ts +1 -1
  46. package/container/provider.d.ts +6 -6
  47. package/container/resolve-chain.d.ts +2 -2
  48. package/container/resolve-chain.js +1 -1
  49. package/container/resolve-chain.js.map +1 -1
  50. package/container/token.d.ts +3 -3
  51. package/container/type-info.d.ts +1 -1
  52. package/container/types.d.ts +4 -4
  53. package/core.d.ts +1 -1
  54. package/data-structures/linked-list.d.ts +1 -1
  55. package/data-structures/multi-key-map.d.ts +2 -2
  56. package/data-structures/sorted-array-list.d.ts +1 -1
  57. package/database/entity-repository.d.ts +2 -2
  58. package/database/entity.d.ts +3 -3
  59. package/database/module.d.ts +1 -1
  60. package/database/mongo/classes.d.ts +3 -3
  61. package/database/mongo/model/document.d.ts +3 -3
  62. package/database/mongo/module.d.ts +1 -1
  63. package/database/mongo/mongo-base.repository.d.ts +11 -11
  64. package/database/mongo/mongo-bulk.d.ts +1 -1
  65. package/database/mongo/mongo-entity-repository.d.ts +7 -7
  66. package/database/mongo/types.d.ts +16 -16
  67. package/database/query.d.ts +38 -38
  68. package/disposable/async-disposer.d.ts +3 -3
  69. package/distributed-loop/distributed-loop.d.ts +2 -2
  70. package/error/custom.error.d.ts +1 -1
  71. package/http/client/adapters/undici-http-client.adapter.d.ts +1 -1
  72. package/http/client/http-client-request.d.ts +5 -5
  73. package/http/client/http-client-response.d.ts +2 -2
  74. package/http/client/http-client.d.ts +5 -5
  75. package/http/http-body.d.ts +3 -1
  76. package/http/http-body.js +18 -12
  77. package/http/http-body.js.map +1 -1
  78. package/http/http-form.d.ts +2 -2
  79. package/http/http-headers.d.ts +3 -3
  80. package/http/http-query.d.ts +2 -2
  81. package/http/http-url-parameters.d.ts +2 -2
  82. package/http/http-value-map.d.ts +1 -1
  83. package/http/server/http-server-request.d.ts +1 -1
  84. package/http/server/http-server-response.d.ts +1 -1
  85. package/http/server/http-server.d.ts +1 -1
  86. package/http/server/node/node-http-server.d.ts +1 -1
  87. package/http/types.d.ts +5 -5
  88. package/http/utils.d.ts +3 -3
  89. package/image-service/imgproxy/imgproxy-image-service.d.ts +1 -1
  90. package/json-path/json-path.d.ts +4 -4
  91. package/key-value-store/key-value.store.d.ts +1 -1
  92. package/key-value-store/mongo/module.d.ts +1 -1
  93. package/key-value-store/mongo/mongo-key-value.model.d.ts +1 -1
  94. package/lock/lock.d.ts +4 -4
  95. package/lock/mongo/model.d.ts +1 -1
  96. package/lock/mongo/module.d.ts +1 -1
  97. package/lock/provider.d.ts +1 -1
  98. package/logger/logger.d.ts +6 -6
  99. package/mail/mail.client.d.ts +1 -1
  100. package/mail/mail.service.d.ts +3 -1
  101. package/mail/mail.service.js +11 -6
  102. package/mail/mail.service.js.map +1 -1
  103. package/mail/models/mail-address.model.d.ts +1 -1
  104. package/mail/models/mail-content.model.d.ts +1 -1
  105. package/mail/models/mail-data.model.d.ts +2 -1
  106. package/mail/models/mail-log.model.d.ts +2 -2
  107. package/mail/models/mail-send-result.model.d.ts +1 -1
  108. package/mail/models/mail-template.model.d.ts +1 -1
  109. package/mail/module.d.ts +4 -2
  110. package/mail/module.js +6 -2
  111. package/mail/module.js.map +1 -1
  112. package/mail/repositories/mongo-mail-log.repository.d.ts +2 -2
  113. package/mail/tokens.d.ts +1 -0
  114. package/mail/tokens.js +2 -1
  115. package/mail/tokens.js.map +1 -1
  116. package/message-bus/local/types.d.ts +1 -1
  117. package/message-bus/message-bus.d.ts +1 -1
  118. package/migration/migration-state.d.ts +2 -2
  119. package/migration/migrator.d.ts +4 -4
  120. package/migration/mongo/module.d.ts +1 -1
  121. package/module/module-metric-reporter.d.ts +2 -2
  122. package/module/module.d.ts +1 -1
  123. package/module/modules/function.module.d.ts +1 -1
  124. package/module/modules/web-server.module.d.ts +1 -1
  125. package/notification/api.d.ts +3 -6
  126. package/notification/api.js +2 -5
  127. package/notification/api.js.map +1 -1
  128. package/notification/models/index.d.ts +2 -0
  129. package/notification/models/index.js +19 -0
  130. package/notification/models/index.js.map +1 -0
  131. package/notification/models/notification-channel-job.model.d.ts +3 -0
  132. package/notification/models/notification-channel-job.model.js +3 -0
  133. package/notification/models/notification-channel-job.model.js.map +1 -0
  134. package/notification/models/notification.model.d.ts +27 -0
  135. package/notification/{model.js → models/notification.model.js} +28 -16
  136. package/notification/models/notification.model.js.map +1 -0
  137. package/notification/module.d.ts +1 -1
  138. package/notification/notification-channel.service.d.ts +5 -0
  139. package/notification/notification-channel.service.js +7 -0
  140. package/notification/notification-channel.service.js.map +1 -0
  141. package/notification/notification.service.d.ts +8 -0
  142. package/notification/notification.service.js +40 -0
  143. package/notification/notification.service.js.map +1 -0
  144. package/object-storage/object-storage.d.ts +2 -2
  145. package/object-storage/object.d.ts +1 -1
  146. package/object-storage/s3/s3.object-storage-provider.d.ts +1 -1
  147. package/openid-connect/mongo-oidc-state.repository.d.ts +1 -1
  148. package/openid-connect/oidc-configuration.service.d.ts +1 -1
  149. package/openid-connect/oidc-state.model.d.ts +2 -2
  150. package/openid-connect/oidc.service-model.d.ts +8 -8
  151. package/orm/decorators.d.ts +26 -0
  152. package/orm/decorators.js +170 -0
  153. package/orm/decorators.js.map +1 -1
  154. package/orm/entity-definition.model.d.ts +51 -0
  155. package/orm/entity-definition.model.js +27 -0
  156. package/orm/entity-definition.model.js.map +1 -0
  157. package/orm/index.d.ts +1 -0
  158. package/orm/index.js +18 -0
  159. package/orm/index.js.map +1 -0
  160. package/orm/models/entity.d.ts +22 -0
  161. package/orm/models/entity.js +87 -0
  162. package/orm/models/entity.js.map +1 -0
  163. package/orm/models/index.d.ts +1 -0
  164. package/orm/models/index.js +18 -0
  165. package/orm/models/index.js.map +1 -0
  166. package/orm/repository/mongo/classes.d.ts +25 -0
  167. package/orm/repository/mongo/classes.js +33 -0
  168. package/orm/repository/mongo/classes.js.map +1 -0
  169. package/orm/repository/mongo/module.d.ts +8 -0
  170. package/orm/repository/mongo/module.js +88 -0
  171. package/orm/repository/mongo/module.js.map +1 -0
  172. package/orm/repository/mongo/mongo-repository.d.ts +11 -0
  173. package/orm/repository/mongo/mongo-repository.js +55 -0
  174. package/orm/repository/mongo/mongo-repository.js.map +1 -0
  175. package/orm/repository/mongo/mongo-transaction.d.ts +10 -0
  176. package/orm/repository/mongo/mongo-transaction.js +28 -0
  177. package/orm/repository/mongo/mongo-transaction.js.map +1 -0
  178. package/orm/repository/repository.d.ts +75 -0
  179. package/orm/repository/repository.js +182 -0
  180. package/orm/repository/repository.js.map +1 -0
  181. package/orm/repository/transaction.d.ts +26 -0
  182. package/orm/repository/transaction.js +65 -0
  183. package/orm/repository/transaction.js.map +1 -0
  184. package/orm/{types.d.ts → types/definition.d.ts} +5 -5
  185. package/orm/{types.js → types/definition.js} +8 -8
  186. package/orm/types/definition.js.map +1 -0
  187. package/orm/types/index.d.ts +3 -0
  188. package/orm/types/index.js +20 -0
  189. package/orm/types/index.js.map +1 -0
  190. package/orm/types/options.d.ts +36 -0
  191. package/orm/types/options.js +5 -0
  192. package/orm/types/options.js.map +1 -0
  193. package/orm/types/query.d.ts +110 -0
  194. package/orm/types/query.js +10 -0
  195. package/orm/types/query.js.map +1 -0
  196. package/package.json +5 -5
  197. package/pdf/pdf.service.d.ts +3 -3
  198. package/pool/pool.d.ts +4 -4
  199. package/promise/cancelable-promise.d.ts +1 -1
  200. package/promise/lazy-promise.d.ts +1 -1
  201. package/queue/mongo/job.d.ts +2 -2
  202. package/queue/mongo/queue.js +2 -2
  203. package/queue/mongo/queue.js.map +1 -1
  204. package/queue/queue.d.ts +11 -6
  205. package/queue/queue.js +2 -1
  206. package/queue/queue.js.map +1 -1
  207. package/reflection/decorator-data.js +2 -1
  208. package/reflection/decorator-data.js.map +1 -1
  209. package/reflection/registry.d.ts +18 -17
  210. package/reflection/registry.js +25 -10
  211. package/reflection/registry.js.map +1 -1
  212. package/reflection/types.d.ts +34 -34
  213. package/reflection/utils.d.ts +8 -8
  214. package/reflection/utils.js +6 -6
  215. package/reflection/utils.js.map +1 -1
  216. package/rpc/endpoints/message-port.rpc-endpoint.d.ts +3 -3
  217. package/rpc/model.d.ts +22 -22
  218. package/rpc/rpc.d.ts +1 -1
  219. package/rxjs/intersection-observer.d.ts +1 -1
  220. package/rxjs/mutation-observer.d.ts +1 -1
  221. package/rxjs/performance-observer.d.ts +1 -1
  222. package/rxjs/resize-observer.d.ts +1 -1
  223. package/rxjs/slow-array.d.ts +1 -1
  224. package/rxjs/touch.d.ts +1 -1
  225. package/schema/array-constraints/maximum-length.d.ts +2 -2
  226. package/schema/array-constraints/maximum-length.js +2 -2
  227. package/schema/array-constraints/maximum-length.js.map +1 -1
  228. package/schema/array-constraints/minimum-length.d.ts +2 -2
  229. package/schema/array-constraints/minimum-length.js +2 -2
  230. package/schema/array-constraints/minimum-length.js.map +1 -1
  231. package/schema/constraints/enumeration.d.ts +4 -4
  232. package/schema/constraints/enumeration.js +5 -5
  233. package/schema/constraints/enumeration.js.map +1 -1
  234. package/schema/constraints/generic.d.ts +4 -4
  235. package/schema/constraints/generic.js +2 -2
  236. package/schema/constraints/generic.js.map +1 -1
  237. package/schema/constraints/integer.d.ts +2 -2
  238. package/schema/constraints/integer.js +3 -2
  239. package/schema/constraints/integer.js.map +1 -1
  240. package/schema/constraints/length.d.ts +1 -1
  241. package/schema/constraints/literal.d.ts +2 -2
  242. package/schema/constraints/literal.js +2 -2
  243. package/schema/constraints/literal.js.map +1 -1
  244. package/schema/constraints/maximum-date.d.ts +2 -2
  245. package/schema/constraints/maximum-date.js +3 -2
  246. package/schema/constraints/maximum-date.js.map +1 -1
  247. package/schema/constraints/maximum-length.d.ts +2 -2
  248. package/schema/constraints/maximum-length.js +2 -2
  249. package/schema/constraints/maximum-length.js.map +1 -1
  250. package/schema/constraints/maximum.d.ts +2 -2
  251. package/schema/constraints/maximum.js +3 -2
  252. package/schema/constraints/maximum.js.map +1 -1
  253. package/schema/constraints/minimum-date.d.ts +2 -2
  254. package/schema/constraints/minimum-date.js +3 -2
  255. package/schema/constraints/minimum-date.js.map +1 -1
  256. package/schema/constraints/minimum-length.d.ts +2 -2
  257. package/schema/constraints/minimum-length.js +2 -2
  258. package/schema/constraints/minimum-length.js.map +1 -1
  259. package/schema/constraints/minimum.d.ts +2 -2
  260. package/schema/constraints/minimum.js +3 -2
  261. package/schema/constraints/minimum.js.map +1 -1
  262. package/schema/constraints/pattern.d.ts +2 -2
  263. package/schema/constraints/pattern.js +3 -2
  264. package/schema/constraints/pattern.js.map +1 -1
  265. package/schema/decorators/types.d.ts +3 -3
  266. package/schema/decorators/utils.d.ts +4 -1
  267. package/schema/decorators/utils.js +1 -1
  268. package/schema/decorators/utils.js.map +1 -1
  269. package/schema/schema.d.ts +4 -4
  270. package/schema/schema.error.d.ts +1 -1
  271. package/schema/schema.js +10 -13
  272. package/schema/schema.js.map +1 -1
  273. package/schema/schemas/any.d.ts +1 -1
  274. package/schema/schemas/array.d.ts +2 -2
  275. package/schema/schemas/array.js +2 -2
  276. package/schema/schemas/array.js.map +1 -1
  277. package/schema/schemas/boolean.d.ts +1 -1
  278. package/schema/schemas/date.d.ts +2 -2
  279. package/schema/schemas/date.js +2 -2
  280. package/schema/schemas/date.js.map +1 -1
  281. package/schema/schemas/enumeration.d.ts +2 -2
  282. package/schema/schemas/enumeration.js +2 -2
  283. package/schema/schemas/enumeration.js.map +1 -1
  284. package/schema/schemas/instance.d.ts +1 -1
  285. package/schema/schemas/literal.d.ts +2 -2
  286. package/schema/schemas/literal.js +2 -2
  287. package/schema/schemas/literal.js.map +1 -1
  288. package/schema/schemas/nullable.d.ts +1 -1
  289. package/schema/schemas/number.d.ts +2 -2
  290. package/schema/schemas/number.js +2 -2
  291. package/schema/schemas/number.js.map +1 -1
  292. package/schema/schemas/object.d.ts +1 -1
  293. package/schema/schemas/omit.d.ts +2 -2
  294. package/schema/schemas/omit.js.map +1 -1
  295. package/schema/schemas/one-or-many.d.ts +2 -2
  296. package/schema/schemas/optional.d.ts +1 -1
  297. package/schema/schemas/readable-stream.d.ts +1 -1
  298. package/schema/schemas/record.d.ts +1 -1
  299. package/schema/schemas/regexp.d.ts +1 -1
  300. package/schema/schemas/string.d.ts +2 -2
  301. package/schema/schemas/string.js +3 -3
  302. package/schema/schemas/string.js.map +1 -1
  303. package/schema/schemas/uint8-array.d.ts +2 -2
  304. package/schema/schemas/uint8-array.js +3 -3
  305. package/schema/schemas/uint8-array.js.map +1 -1
  306. package/schema/schemas/union.d.ts +1 -1
  307. package/schema/schemas/unknown.d.ts +1 -1
  308. package/schema/transformers/generic.d.ts +1 -1
  309. package/schema/types/index.d.ts +5 -0
  310. package/schema/types/index.js +22 -0
  311. package/schema/types/index.js.map +1 -0
  312. package/schema/types/schema-array-constraint.d.ts +5 -0
  313. package/schema/types/schema-array-constraint.js +7 -0
  314. package/schema/types/schema-array-constraint.js.map +1 -0
  315. package/schema/types/schema-value-coercer.d.ts +8 -0
  316. package/schema/types/schema-value-coercer.js +7 -0
  317. package/schema/types/schema-value-coercer.js.map +1 -0
  318. package/schema/types/schema-value-constraint.d.ts +8 -0
  319. package/schema/types/schema-value-constraint.js +7 -0
  320. package/schema/types/schema-value-constraint.js.map +1 -0
  321. package/schema/types/schema-value-transformer.d.ts +7 -0
  322. package/schema/types/schema-value-transformer.js +7 -0
  323. package/schema/types/schema-value-transformer.js.map +1 -0
  324. package/schema/{types.d.ts → types/types.d.ts} +47 -57
  325. package/schema/types/types.js +174 -0
  326. package/schema/types/types.js.map +1 -0
  327. package/schema/utils/schema.js +1 -1
  328. package/schema/utils/schema.js.map +1 -1
  329. package/schema/utils/value-type.d.ts +1 -1
  330. package/schema/utils/value-type.js +1 -1
  331. package/schema/utils/value-type.js.map +1 -1
  332. package/search-index/elastic/config.d.ts +1 -1
  333. package/search-index/elastic/model/elastic-query.d.ts +15 -15
  334. package/search-index/elastic/model/index-mapping.d.ts +14 -14
  335. package/search-index/elastic/model/sort.d.ts +3 -3
  336. package/search-index/elastic/module.d.ts +1 -1
  337. package/search-index/search-index.d.ts +1 -1
  338. package/search-index/search-result.d.ts +2 -2
  339. package/serializer/handlers/error.d.ts +1 -1
  340. package/serializer/handlers/map.d.ts +1 -1
  341. package/serializer/handlers/regex.d.ts +1 -1
  342. package/serializer/handlers/set.d.ts +1 -1
  343. package/serializer/serializable.d.ts +6 -6
  344. package/serializer/serializer.d.ts +1 -1
  345. package/serializer/types.d.ts +15 -15
  346. package/sse/server-sent-events.d.ts +3 -3
  347. package/tailwind/theme-adapter.d.ts +1 -1
  348. package/templates/module.d.ts +1 -1
  349. package/templates/providers/file.provider-template.d.ts +2 -2
  350. package/templates/providers/file.provider-template.js +2 -1
  351. package/templates/providers/file.provider-template.js.map +1 -1
  352. package/templates/renderers/handlebars.template-renderer.d.ts +9 -9
  353. package/templates/renderers/mjml.template-renderer.d.ts +3 -3
  354. package/templates/renderers/string.template-renderer.d.ts +1 -1
  355. package/templates/resolvers/file.template-resolver.d.ts +2 -2
  356. package/templates/template.model.d.ts +1 -1
  357. package/templates/template.renderer.d.ts +4 -4
  358. package/templates/template.service.d.ts +1 -1
  359. package/text/dynamic-text.model.d.ts +1 -1
  360. package/text/localizable-text.model.d.ts +1 -1
  361. package/text/localization.service.d.ts +11 -11
  362. package/theme/theme-service.d.ts +6 -6
  363. package/threading/thread-pool.d.ts +1 -1
  364. package/threading/thread-worker.d.ts +1 -1
  365. package/types/geo-json.d.ts +12 -12
  366. package/types.d.ts +91 -91
  367. package/utils/any-iterable-iterator.d.ts +3 -3
  368. package/utils/array/array.d.ts +14 -1
  369. package/utils/array/array.js +16 -2
  370. package/utils/array/array.js.map +1 -1
  371. package/utils/async-iterable-helpers/parallel/types.d.ts +2 -2
  372. package/utils/async-iterable-helpers/types.d.ts +7 -7
  373. package/utils/backoff.d.ts +5 -5
  374. package/utils/benchmark.d.ts +1 -1
  375. package/utils/binary-search.d.ts +1 -1
  376. package/utils/binary.js.map +1 -1
  377. package/utils/cancellation-token.d.ts +1 -1
  378. package/utils/compression.d.ts +1 -1
  379. package/utils/cryptography.d.ts +11 -11
  380. package/utils/date-time.d.ts +8 -7
  381. package/utils/date-time.js +6 -2
  382. package/utils/date-time.js.map +1 -1
  383. package/utils/equals.d.ts +3 -3
  384. package/utils/factory-map.d.ts +1 -1
  385. package/utils/format-error.d.ts +1 -1
  386. package/utils/function/memoize.d.ts +1 -1
  387. package/utils/helpers.d.ts +1 -1
  388. package/utils/iterable-helpers/types.d.ts +6 -6
  389. package/utils/jwt.d.ts +4 -4
  390. package/utils/math.d.ts +1 -1
  391. package/utils/merge.d.ts +1 -1
  392. package/utils/middleware.d.ts +9 -9
  393. package/utils/moving-metric.d.ts +1 -1
  394. package/utils/object/decycle.d.ts +1 -1
  395. package/utils/object/dereference.d.ts +1 -1
  396. package/utils/object/forward-ref.d.ts +2 -2
  397. package/utils/object/lazy-property.d.ts +5 -5
  398. package/utils/object/merge.d.ts +1 -1
  399. package/utils/object/object.js +1 -2
  400. package/utils/object/object.js.map +1 -1
  401. package/utils/object/property-name.d.ts +5 -5
  402. package/utils/patch-worker.d.ts +1 -1
  403. package/utils/periodic-sampler.d.ts +1 -1
  404. package/utils/provider-function-iterable.d.ts +2 -2
  405. package/utils/proxy.d.ts +1 -1
  406. package/utils/singleton.d.ts +2 -2
  407. package/utils/sort.d.ts +2 -2
  408. package/utils/stream/stream-helper-types.d.ts +5 -5
  409. package/utils/type-guards.d.ts +3 -3
  410. package/utils/url-builder.d.ts +4 -4
  411. package/web-types.d.ts +4 -4
  412. package/notification/model.d.ts +0 -18
  413. package/notification/model.js.map +0 -1
  414. package/orm/mongo/mongo-repository.d.ts +0 -2
  415. package/orm/mongo/mongo-repository.js +0 -7
  416. package/orm/mongo/mongo-repository.js.map +0 -1
  417. package/orm/types.js.map +0 -1
  418. package/schema/types.js +0 -102
  419. package/schema/types.js.map +0 -1
@@ -1,26 +1,26 @@
1
1
  import type { Entity } from "../../../database";
2
2
  import type { DeepFlatten, StringMap, TypedOmit } from "../../../types";
3
3
  import type { MappingBooleanProperty, MappingByteNumberProperty, MappingDateProperty, MappingDoubleNumberProperty, MappingFloatNumberProperty, MappingGeoPointProperty, MappingHalfFloatNumberProperty, MappingIntegerNumberProperty, MappingKeywordProperty, MappingLongNumberProperty, MappingNestedProperty, MappingObjectProperty, MappingPropertyBase, MappingScaledFloatNumberProperty, MappingShortNumberProperty, MappingTextProperty, MappingTypeMapping, MappingUnsignedLongNumberProperty } from '@elastic/elasticsearch/lib/api/types';
4
- export declare type ElasticIndexMapping<T extends Entity = Entity> = TypedOmit<MappingTypeMapping, 'properties'> & ElasticNestedIndexMapping<TypedOmit<T, 'id'>>;
5
- export declare type ElasticNestedIndexMapping<T> = {
4
+ export type ElasticIndexMapping<T extends Entity = Entity> = TypedOmit<MappingTypeMapping, 'properties'> & ElasticNestedIndexMapping<TypedOmit<T, 'id'>>;
5
+ export type ElasticNestedIndexMapping<T> = {
6
6
  properties: {
7
7
  [P in keyof Required<T>]: ElasticIndexMappingItem<DeepFlatten<Required<T>[P]>>;
8
8
  };
9
9
  };
10
- declare type StrippedBaseType<T extends MappingPropertyBase> = TypedOmit<T, 'properties' | 'fields'>;
11
- declare type ElasticIndexMappingItemBase = {
10
+ type StrippedBaseType<T extends MappingPropertyBase> = TypedOmit<T, 'properties' | 'fields'>;
11
+ type ElasticIndexMappingItemBase = {
12
12
  index?: boolean;
13
13
  fields?: StringMap<ElasticIndexMappingItem>;
14
14
  };
15
- export declare type MappingNumberProperty = MappingByteNumberProperty | MappingDoubleNumberProperty | MappingFloatNumberProperty | MappingHalfFloatNumberProperty | MappingIntegerNumberProperty | MappingLongNumberProperty | MappingShortNumberProperty | MappingScaledFloatNumberProperty | MappingUnsignedLongNumberProperty;
16
- export declare type ElasticKeywordIndexMappingItem = ElasticIndexMappingItemBase & StrippedBaseType<MappingKeywordProperty>;
17
- export declare type ElasticTextIndexMappingItem = ElasticIndexMappingItemBase & StrippedBaseType<MappingTextProperty>;
18
- export declare type ElasticNumberIndexMappingItem = ElasticIndexMappingItemBase & StrippedBaseType<MappingNumberProperty>;
19
- export declare type ElasticBooleanIndexMappingItem = ElasticIndexMappingItemBase & StrippedBaseType<MappingBooleanProperty>;
20
- export declare type ElasticDateIndexMappingItem = ElasticIndexMappingItemBase & StrippedBaseType<MappingDateProperty>;
21
- export declare type ElasticGeoPointIndexMappingItem = ElasticIndexMappingItemBase & StrippedBaseType<MappingGeoPointProperty>;
22
- export declare type ElasticObjectIndexMappingItem<T> = ElasticIndexMappingItemBase & StrippedBaseType<MappingObjectProperty> & ElasticNestedIndexMapping<T>;
23
- export declare type ElasticNestedIndexMappingItem<T> = ElasticIndexMappingItemBase & StrippedBaseType<MappingNestedProperty> & ElasticNestedIndexMapping<T>;
24
- export declare type ElasticIndexMappingItem<T = any> = ElasticKeywordIndexMappingItem | ElasticTextIndexMappingItem | ElasticNumberIndexMappingItem | ElasticBooleanIndexMappingItem | ElasticDateIndexMappingItem | ElasticGeoPointIndexMappingItem | ElasticObjectIndexMappingItem<T> | ElasticNestedIndexMappingItem<T>;
15
+ export type MappingNumberProperty = MappingByteNumberProperty | MappingDoubleNumberProperty | MappingFloatNumberProperty | MappingHalfFloatNumberProperty | MappingIntegerNumberProperty | MappingLongNumberProperty | MappingShortNumberProperty | MappingScaledFloatNumberProperty | MappingUnsignedLongNumberProperty;
16
+ export type ElasticKeywordIndexMappingItem = ElasticIndexMappingItemBase & StrippedBaseType<MappingKeywordProperty>;
17
+ export type ElasticTextIndexMappingItem = ElasticIndexMappingItemBase & StrippedBaseType<MappingTextProperty>;
18
+ export type ElasticNumberIndexMappingItem = ElasticIndexMappingItemBase & StrippedBaseType<MappingNumberProperty>;
19
+ export type ElasticBooleanIndexMappingItem = ElasticIndexMappingItemBase & StrippedBaseType<MappingBooleanProperty>;
20
+ export type ElasticDateIndexMappingItem = ElasticIndexMappingItemBase & StrippedBaseType<MappingDateProperty>;
21
+ export type ElasticGeoPointIndexMappingItem = ElasticIndexMappingItemBase & StrippedBaseType<MappingGeoPointProperty>;
22
+ export type ElasticObjectIndexMappingItem<T> = ElasticIndexMappingItemBase & StrippedBaseType<MappingObjectProperty> & ElasticNestedIndexMapping<T>;
23
+ export type ElasticNestedIndexMappingItem<T> = ElasticIndexMappingItemBase & StrippedBaseType<MappingNestedProperty> & ElasticNestedIndexMapping<T>;
24
+ export type ElasticIndexMappingItem<T = any> = ElasticKeywordIndexMappingItem | ElasticTextIndexMappingItem | ElasticNumberIndexMappingItem | ElasticBooleanIndexMappingItem | ElasticDateIndexMappingItem | ElasticGeoPointIndexMappingItem | ElasticObjectIndexMappingItem<T> | ElasticNestedIndexMappingItem<T>;
25
25
  export declare function mergeElasticSearchMappings<T extends Entity>(mappings: ElasticIndexMapping<T>[]): ElasticIndexMapping<T>;
26
26
  export {};
@@ -1,8 +1,8 @@
1
1
  import type { Entity } from "../../../database";
2
2
  import type { SortOptions as ElasticSortOptions, SortOptionsKeys } from '@elastic/elasticsearch/lib/api/types';
3
3
  export type { SortOrder } from '@elastic/elasticsearch/lib/api/types';
4
- export declare type Sort<T extends Entity = Entity> = SortCombinations<T> | SortCombinations<T>[];
5
- export declare type SortCombinations<T extends Entity = Entity> = keyof T | SortOptions<T>;
6
- export declare type SortOptions<T extends Entity = Entity> = SortOptionsKeys & {
4
+ export type Sort<T extends Entity = Entity> = SortCombinations<T> | SortCombinations<T>[];
5
+ export type SortCombinations<T extends Entity = Entity> = keyof T | SortOptions<T>;
6
+ export type SortOptions<T extends Entity = Entity> = SortOptionsKeys & {
7
7
  [P in keyof T]?: ElasticSortOptions[string];
8
8
  };
@@ -2,7 +2,7 @@ import type { Entity } from "../../database";
2
2
  import type { ClientOptions } from '@elastic/elasticsearch';
3
3
  import type { ElasticSearchIndexConfigArgument } from './config';
4
4
  import { ElasticSearchIndexConfig } from './config';
5
- export declare type ElasticsearchModuleConfig = {
5
+ export type ElasticsearchModuleConfig = {
6
6
  defaultOptions: ClientOptions;
7
7
  logPrefix: string;
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import type { Entity } from "../database";
2
2
  import type { Query, QueryOptions } from "../database/query";
3
3
  import type { SearchResult, SearchResultItem } from './search-result';
4
- export declare type SearchCursorOptions<T extends Entity> = QueryOptions<T> & {
4
+ export type SearchCursorOptions<T extends Entity> = QueryOptions<T> & {
5
5
  batchSize?: number;
6
6
  };
7
7
  declare const type: unique symbol;
@@ -1,9 +1,9 @@
1
1
  import type { Entity } from "../database";
2
- export declare type SearchResultItem<T extends Entity> = {
2
+ export type SearchResultItem<T extends Entity> = {
3
3
  entity: T;
4
4
  score: number;
5
5
  };
6
- export declare type SearchResult<T extends Entity> = {
6
+ export type SearchResult<T extends Entity> = {
7
7
  total?: number;
8
8
  totalIsLowerBound: boolean;
9
9
  milliseconds: number;
@@ -1,4 +1,4 @@
1
- declare type ErrorData = Pick<Error, 'name' | 'message' | 'stack'>;
1
+ type ErrorData = Pick<Error, 'name' | 'message' | 'stack'>;
2
2
  export declare function serializeError(error: Error): ErrorData;
3
3
  export declare function deserializeError(data: ErrorData): Error;
4
4
  export {};
@@ -1,5 +1,5 @@
1
1
  import type { TryDereference } from '../serializable';
2
- declare type MapData = [any, any][];
2
+ type MapData = [any, any][];
3
3
  export declare function serializeMap(map: Map<any, any>): MapData;
4
4
  export declare function deserializeMap(data: MapData, tryDereference: TryDereference): Map<any, any>;
5
5
  export {};
@@ -1,4 +1,4 @@
1
- declare type RegExpData = {
1
+ type RegExpData = {
2
2
  pattern: string;
3
3
  flags: string;
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import type { TryDereference } from '../serializable';
2
2
  import type { Serialized } from '../types';
3
- declare type SetData = Serialized<any>[];
3
+ type SetData = Serialized<any>[];
4
4
  export declare function serializeSet(set: Set<any>): SetData;
5
5
  export declare function deserializeSet(data: SetData, tryDereference: TryDereference): Set<any>;
6
6
  export {};
@@ -3,16 +3,16 @@ export declare const Serializable: {
3
3
  readonly serialize: unique symbol;
4
4
  readonly deserialize: unique symbol;
5
5
  };
6
- export declare type DereferenceCallback = (dereferenced: unknown) => void;
7
- export declare type TryDereference = (value: unknown, callback: DereferenceCallback) => boolean;
6
+ export type DereferenceCallback = (dereferenced: unknown) => void;
7
+ export type TryDereference = (value: unknown, callback: DereferenceCallback) => boolean;
8
8
  export interface Serializable<T, Data> {
9
9
  [Serializable.serialize](instance: T, context: Record): Data;
10
10
  [Serializable.deserialize](data: Data, tryDereference: TryDereference, context: Record): T;
11
11
  }
12
- export declare type SerializableType<T, Data> = Type<Serializable<T, Data>>;
13
- export declare type SerializeFunction<T, Data> = Serializable<T, Data>[typeof Serializable.serialize];
14
- export declare type DeserializeFunction<T, Data> = Serializable<T, Data>[typeof Serializable.deserialize];
15
- declare type SerializableRegistration<T = any, Data = any> = {
12
+ export type SerializableType<T, Data> = Type<Serializable<T, Data>>;
13
+ export type SerializeFunction<T, Data> = Serializable<T, Data>[typeof Serializable.serialize];
14
+ export type DeserializeFunction<T, Data> = Serializable<T, Data>[typeof Serializable.deserialize];
15
+ type SerializableRegistration<T = any, Data = any> = {
16
16
  type: string;
17
17
  serializeData?: boolean;
18
18
  constructor: AbstractConstructor<T>;
@@ -1,6 +1,6 @@
1
1
  import { CircularBuffer } from "../data-structures/circular-buffer";
2
2
  import type { SerializationOptions, Serialized, StringSerialized } from './types';
3
- declare type QueueItem = () => void;
3
+ type QueueItem = () => void;
4
4
  export declare function stringSerialize<T>(value: T, options?: SerializationOptions): StringSerialized<T>;
5
5
  export declare function stringDeserialize<T = unknown>(serialized: string, options?: SerializationOptions): T;
6
6
  /**
@@ -2,27 +2,27 @@ import type { AbstractConstructor, JsonPrimitive, Nested, Record, StringMap } fr
2
2
  declare const serializedSymbol: unique symbol;
3
3
  declare const stringSerializedSymbol: unique symbol;
4
4
  declare const decycledSymbol: unique symbol;
5
- export declare type SerializationReplacer = (value: any) => any;
6
- export declare type TypeField<T extends string> = `<${T}>`;
7
- export declare type NonPrimitive<TypeName extends string = string, Data = unknown> = Record<TypeField<TypeName>, Data>;
8
- export declare type RawNonPrimitive = NonPrimitive<typeof rawNonPrimitiveType, any>;
9
- export declare type UndefinedNonPrimitive = NonPrimitive<typeof undefinedNonPrimitiveType, null>;
10
- export declare type BigintNonPrimitive = NonPrimitive<typeof bigintNonPrimitiveType, string>;
11
- export declare type GlobalSymbolNonPrimitive = NonPrimitive<typeof globalSymbolNonPrimitiveType, string>;
12
- export declare type FunctionNonPrimitive = NonPrimitive<typeof functionNonPrimitiveType, string>;
13
- export declare type RefNonPrimitive = NonPrimitive<typeof refNonPrimitiveType, string>;
14
- export declare type CustomNonPrimitive<TypeName extends string> = NonPrimitive<TypeName, SerializedData>;
15
- export declare type SerializedData = JsonPrimitive | NonPrimitive | Nested<JsonPrimitive | NonPrimitive>;
16
- export declare type Serialized<T = unknown> = SerializedData & {
5
+ export type SerializationReplacer = (value: any) => any;
6
+ export type TypeField<T extends string> = `<${T}>`;
7
+ export type NonPrimitive<TypeName extends string = string, Data = unknown> = Record<TypeField<TypeName>, Data>;
8
+ export type RawNonPrimitive = NonPrimitive<typeof rawNonPrimitiveType, any>;
9
+ export type UndefinedNonPrimitive = NonPrimitive<typeof undefinedNonPrimitiveType, null>;
10
+ export type BigintNonPrimitive = NonPrimitive<typeof bigintNonPrimitiveType, string>;
11
+ export type GlobalSymbolNonPrimitive = NonPrimitive<typeof globalSymbolNonPrimitiveType, string>;
12
+ export type FunctionNonPrimitive = NonPrimitive<typeof functionNonPrimitiveType, string>;
13
+ export type RefNonPrimitive = NonPrimitive<typeof refNonPrimitiveType, string>;
14
+ export type CustomNonPrimitive<TypeName extends string> = NonPrimitive<TypeName, SerializedData>;
15
+ export type SerializedData = JsonPrimitive | NonPrimitive | Nested<JsonPrimitive | NonPrimitive>;
16
+ export type Serialized<T = unknown> = SerializedData & {
17
17
  [serializedSymbol]: T;
18
18
  };
19
- export declare type StringSerialized<T = unknown> = string & {
19
+ export type StringSerialized<T = unknown> = string & {
20
20
  [stringSerializedSymbol]: T;
21
21
  };
22
- export declare type Decycled<T = unknown> = {
22
+ export type Decycled<T = unknown> = {
23
23
  [decycledSymbol]: T;
24
24
  };
25
- export declare type SerializationOptions = {
25
+ export type SerializationOptions = {
26
26
  /**
27
27
  * !!! DANGEROUS !!!
28
28
  *
@@ -1,4 +1,4 @@
1
- export declare type SeverSentEventsEventBase<Data> = {
1
+ export type SeverSentEventsEventBase<Data> = {
2
2
  /**
3
3
  * Name of the event.
4
4
  */
@@ -16,8 +16,8 @@ export declare type SeverSentEventsEventBase<Data> = {
16
16
  */
17
17
  retry?: number;
18
18
  };
19
- export declare type SeverSentEventsTextEvent = SeverSentEventsEventBase<string>;
20
- export declare type SeverSentEventsJsonEvent = SeverSentEventsEventBase<any>;
19
+ export type SeverSentEventsTextEvent = SeverSentEventsEventBase<string>;
20
+ export type SeverSentEventsJsonEvent = SeverSentEventsEventBase<any>;
21
21
  export declare class SeverSentEvents {
22
22
  private readonly writable;
23
23
  private readonly writer;
@@ -1,5 +1,5 @@
1
1
  import type { Theme } from "../theme";
2
- export declare type TailwindPalette = {
2
+ export type TailwindPalette = {
3
3
  DEFAULT: string;
4
4
  50: string;
5
5
  100: string;
@@ -2,7 +2,7 @@ import type { Type } from "../types";
2
2
  import { TemplateProvider } from './template.provider';
3
3
  import type { TemplateRenderer } from './template.renderer';
4
4
  import type { TemplateResolver } from './template.resolver';
5
- export declare type TemplateModuleConfig = {
5
+ export type TemplateModuleConfig = {
6
6
  templateProvider: Type<TemplateProvider>;
7
7
  templateResolvers: Type<TemplateResolver>[];
8
8
  templateRenderers: Type<TemplateRenderer>[];
@@ -2,10 +2,10 @@ import type { Injectable } from "../../container";
2
2
  import { resolveArgumentType } from "../../container";
3
3
  import { Template } from '../template.model';
4
4
  import { TemplateProvider } from '../template.provider';
5
- export declare type FileTemplateProviderConfig = {
5
+ export type FileTemplateProviderConfig = {
6
6
  basePath?: string;
7
7
  };
8
- export declare type FileTemplateProviderArgument = string;
8
+ export type FileTemplateProviderArgument = string;
9
9
  export declare const fileTemplateProviderConfig: FileTemplateProviderConfig;
10
10
  export declare class FileTemplateProvider extends TemplateProvider implements Injectable<FileTemplateProviderArgument> {
11
11
  private readonly basePath;
@@ -29,6 +29,7 @@ let FileTemplateProvider = class FileTemplateProvider extends template_provider_
29
29
  this.basePath = path.resolve(basePath);
30
30
  }
31
31
  async get(key) {
32
+ var _a;
32
33
  if (!keyPattern.test(key)) {
33
34
  throw new bad_request_error_1.BadRequestError('Illegal template key. Only a-z, A-Z, 0-9, _ and - are allowed.');
34
35
  }
@@ -36,7 +37,7 @@ let FileTemplateProvider = class FileTemplateProvider extends template_provider_
36
37
  if (!filePath.startsWith(this.basePath)) {
37
38
  throw new bad_request_error_1.BadRequestError(`Illegal file path. Must be inside "${this.basePath}".`);
38
39
  }
39
- const templateModule = await Promise.resolve().then(() => require(filePath));
40
+ const templateModule = await (_a = filePath, Promise.resolve().then(() => require(_a)));
40
41
  const fileContent = templateModule.default;
41
42
  return schema_1.Schema.parse(template_model_1.Template, fileContent);
42
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"file.provider-template.js","sourceRoot":"","sources":["../../../source/templates/providers/file.provider-template.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,+CAAwE;AACxE,qEAA4D;AAC5D,yCAAkC;AAClC,6BAA6B;AAC7B,sDAA6C;AAC7C,4DAAwD;AAQ3C,QAAA,0BAA0B,GAA+B,EAAE,CAAC;AAEzE,MAAM,UAAU,GAAG,aAAa,CAAC;AAK1B,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oCAAgB;IACvC,QAAQ,CAAS;IAEzB,CAAC,+BAAmB,CAAC,CAA+B;IAC7D,YAAyB,QAAgB;QACvC,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACzC,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,GAAW;QACnB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;YACzB,MAAM,IAAI,mCAAe,CAAC,gEAAgE,CAAC,CAAC;SAC7F;QAED,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,GAAG,KAAK,CAAC,CAAC;QAE1D,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;YACvC,MAAM,IAAI,mCAAe,CAAC,sCAAsC,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAC;SACpF;QAED,MAAM,cAAc,GAAG,2CAAa,QAAQ,EAAyB,CAAC;QACtE,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO,CAAC;QAC3C,OAAO,eAAM,CAAC,KAAK,CAAC,yBAAQ,EAAE,WAAW,CAAC,CAAC;IAC7C,CAAC;CACF,CAAA;AAzBY,oBAAoB;IAHhC,IAAA,qBAAS,EAAC;QACT,uBAAuB,EAAE,GAAG,EAAE,CAAC,kCAA0B,CAAC,QAAQ;KACnE,CAAC;IAKa,WAAA,IAAA,qBAAS,GAAE,CAAA;;GAJb,oBAAoB,CAyBhC;AAzBY,oDAAoB;AA2BjC,SAAgB,6BAA6B,CAAC,SAA8C,EAAE;IAC5F,kCAA0B,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,IAAI,kCAA0B,CAAC,QAAQ,CAAC;AAC/F,CAAC;AAFD,sEAEC"}
1
+ {"version":3,"file":"file.provider-template.js","sourceRoot":"","sources":["../../../source/templates/providers/file.provider-template.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,+CAAwE;AACxE,qEAA4D;AAC5D,yCAAkC;AAClC,6BAA6B;AAC7B,sDAA6C;AAC7C,4DAAwD;AAQ3C,QAAA,0BAA0B,GAA+B,EAAE,CAAC;AAEzE,MAAM,UAAU,GAAG,aAAa,CAAC;AAK1B,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oCAAgB;IACvC,QAAQ,CAAS;IAEzB,CAAC,+BAAmB,CAAC,CAA+B;IAC7D,YAAyB,QAAgB;QACvC,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACzC,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,GAAW;;QACnB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;YACzB,MAAM,IAAI,mCAAe,CAAC,gEAAgE,CAAC,CAAC;SAC7F;QAED,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,GAAG,KAAK,CAAC,CAAC;QAE1D,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;YACvC,MAAM,IAAI,mCAAe,CAAC,sCAAsC,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAC;SACpF;QAED,MAAM,cAAc,GAAG,YAAa,QAAQ,4CAAyB,CAAC;QACtE,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO,CAAC;QAC3C,OAAO,eAAM,CAAC,KAAK,CAAC,yBAAQ,EAAE,WAAW,CAAC,CAAC;IAC7C,CAAC;CACF,CAAA;AAzBY,oBAAoB;IAHhC,IAAA,qBAAS,EAAC;QACT,uBAAuB,EAAE,GAAG,EAAE,CAAC,kCAA0B,CAAC,QAAQ;KACnE,CAAC;IAKa,WAAA,IAAA,qBAAS,GAAE,CAAA;;GAJb,oBAAoB,CAyBhC;AAzBY,oDAAoB;AA2BjC,SAAgB,6BAA6B,CAAC,SAA8C,EAAE;IAC5F,kCAA0B,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,IAAI,kCAA0B,CAAC,QAAQ,CAAC;AAC/F,CAAC;AAFD,sEAEC"}
@@ -4,15 +4,15 @@ import { TemplateResolverProvider } from '../template-resolver.provider';
4
4
  import type { TemplateField } from '../template.model';
5
5
  import type { TemplateRenderObject } from '../template.renderer';
6
6
  import { TemplateRenderer } from '../template.renderer';
7
- export declare type HandlebarsTemplateHelperOptionsLocationItem = {
7
+ export type HandlebarsTemplateHelperOptionsLocationItem = {
8
8
  line: number;
9
9
  column: number;
10
10
  };
11
- export declare type HandlebarsTemplateHelperOptionsLocation = {
11
+ export type HandlebarsTemplateHelperOptionsLocation = {
12
12
  start: HandlebarsTemplateHelperOptionsLocationItem;
13
13
  end: HandlebarsTemplateHelperOptionsLocationItem;
14
14
  };
15
- export declare type HandlebarsTemplateHelperOptions = {
15
+ export type HandlebarsTemplateHelperOptions = {
16
16
  name: string;
17
17
  location?: HandlebarsTemplateHelperOptionsLocation;
18
18
  data?: Record<string>;
@@ -21,17 +21,17 @@ export declare type HandlebarsTemplateHelperOptions = {
21
21
  fn?: handlebars.TemplateDelegate;
22
22
  inverse?: handlebars.TemplateDelegate;
23
23
  };
24
- export declare type HandlebarsTemplateHelper = (context: unknown, args: unknown[], options: HandlebarsTemplateHelperOptions) => any;
25
- export declare type HandlebarsTemplateHelpersObject = Record<string, HandlebarsTemplateHelper>;
26
- export declare type HandlebarsTemplatePartial = string | TemplateField<string, 'handlebars', HandlebarsRendererOptions> | handlebars.TemplateDelegate;
27
- export declare type HandlebarsTemplatePartialsObject = Record<string, HandlebarsTemplatePartial>;
28
- export declare type HandlebarsRendererOptions = {
24
+ export type HandlebarsTemplateHelper = (context: unknown, args: unknown[], options: HandlebarsTemplateHelperOptions) => any;
25
+ export type HandlebarsTemplateHelpersObject = Record<string, HandlebarsTemplateHelper>;
26
+ export type HandlebarsTemplatePartial = string | TemplateField<string, 'handlebars', HandlebarsRendererOptions> | handlebars.TemplateDelegate;
27
+ export type HandlebarsTemplatePartialsObject = Record<string, HandlebarsTemplatePartial>;
28
+ export type HandlebarsRendererOptions = {
29
29
  strict?: boolean;
30
30
  preventIndent?: boolean;
31
31
  helpers?: HandlebarsTemplateHelpersObject;
32
32
  partials?: HandlebarsTemplatePartialsObject;
33
33
  };
34
- export declare type HandlebarsTemplateRenderObject = TemplateRenderObject<'handlebars', HandlebarsRendererOptions>;
34
+ export type HandlebarsTemplateRenderObject = TemplateRenderObject<'handlebars', HandlebarsRendererOptions>;
35
35
  export declare class HandlebarsTemplateRenderer extends TemplateRenderer<'handlebars', HandlebarsRendererOptions> {
36
36
  private readonly templateResolverProvider;
37
37
  private readonly compileHandlebarsTemplate;
@@ -2,11 +2,11 @@ import type { MJMLParsingOptions } from 'mjml-core';
2
2
  import { TemplateRendererProvider } from '../template-renderer.provider';
3
3
  import type { TemplateRenderObject, TemplateRenderResult } from '../template.renderer';
4
4
  import { TemplateRenderer } from '../template.renderer';
5
- export declare type MjmlRendererOptions = Pick<MJMLParsingOptions, 'fonts' | 'keepComments' | 'validationLevel'> & {
5
+ export type MjmlRendererOptions = Pick<MJMLParsingOptions, 'fonts' | 'keepComments' | 'validationLevel'> & {
6
6
  preprocessorOptions?: any;
7
7
  };
8
- export declare type MjmlRendererString = 'mjml' | `mjml-${string}`;
9
- export declare type MjmlTemplateRenderObject = TemplateRenderObject<MjmlRendererString, MjmlRendererOptions>;
8
+ export type MjmlRendererString = 'mjml' | `mjml-${string}`;
9
+ export type MjmlTemplateRenderObject = TemplateRenderObject<MjmlRendererString, MjmlRendererOptions>;
10
10
  export declare class MjmlTemplateRenderer extends TemplateRenderer<MjmlRendererString, MjmlRendererOptions> {
11
11
  private readonly rendererProvider;
12
12
  constructor(rendererProvider: TemplateRendererProvider);
@@ -1,6 +1,6 @@
1
1
  import type { TemplateRenderObject, TemplateRenderResult } from '../template.renderer';
2
2
  import { TemplateRenderer } from '../template.renderer';
3
- export declare type StringTemplateRenderObject = TemplateRenderObject<'string', undefined>;
3
+ export type StringTemplateRenderObject = TemplateRenderObject<'string', undefined>;
4
4
  export declare class StringTemplateRenderer extends TemplateRenderer<'string', undefined> {
5
5
  constructor();
6
6
  canHandleType(type: string): boolean;
@@ -4,10 +4,10 @@ import { TypedOmit } from "../../types";
4
4
  import { TemplateField } from '../template.model';
5
5
  import { TemplateRenderer, TemplateRendererOptions, TemplateRendererString } from '../template.renderer';
6
6
  import { TemplateResolver } from '../template.resolver';
7
- export declare type FileTemplateProviderConfig = {
7
+ export type FileTemplateProviderConfig = {
8
8
  basePath?: string;
9
9
  };
10
- export declare type FileTemplateProviderArgument = string;
10
+ export type FileTemplateProviderArgument = string;
11
11
  export declare const fileTemplateProviderConfig: FileTemplateProviderConfig;
12
12
  export declare class FileTemplateField<Renderer extends string = string, Options = any> extends TemplateField<'file', Renderer, Options> {
13
13
  templateFile: string;
@@ -4,7 +4,7 @@ export declare class TemplateField<Resolver extends string = string, Renderer ex
4
4
  renderer: Renderer;
5
5
  options?: Options;
6
6
  }
7
- export declare type TemplateFields<Fields extends Record<string, boolean>, Resolver extends string = string, Renderer extends string = string, Options = any> = SimplifyObject<{
7
+ export type TemplateFields<Fields extends Record<string, boolean>, Resolver extends string = string, Renderer extends string = string, Options = any> = SimplifyObject<{
8
8
  [P in keyof PickBy<Fields, true>]: TemplateField<Resolver, Renderer, Options>;
9
9
  } & {
10
10
  [P in keyof PickBy<Fields, false>]?: TemplateField<Resolver, Renderer, Options>;
@@ -1,11 +1,11 @@
1
- export declare type TemplateRenderResult = string;
2
- export declare type TemplateRenderObject<Renderer extends string = string, Options = any> = {
1
+ export type TemplateRenderResult = string;
2
+ export type TemplateRenderObject<Renderer extends string = string, Options = any> = {
3
3
  renderer: Renderer;
4
4
  template: string;
5
5
  options?: Options;
6
6
  };
7
- export declare type TemplateRendererString = typeof templateRendererString;
8
- export declare type TemplateRendererOptions = typeof templateRendererOptions;
7
+ export type TemplateRendererString = typeof templateRendererString;
8
+ export type TemplateRendererOptions = typeof templateRendererOptions;
9
9
  export declare const templateRendererString: unique symbol;
10
10
  export declare const templateRendererOptions: unique symbol;
11
11
  export declare abstract class TemplateRenderer<Renderer extends string = string, Options = any> {
@@ -3,7 +3,7 @@ import { TemplateRendererProvider } from './template-renderer.provider';
3
3
  import { TemplateResolverProvider } from './template-resolver.provider';
4
4
  import type { Template } from './template.model';
5
5
  import { TemplateProvider } from './template.provider';
6
- export declare type TemplateServiceRenderResult<T extends Template = Template> = {
6
+ export type TemplateServiceRenderResult<T extends Template = Template> = {
7
7
  fields: Record<keyof T['fields'], string>;
8
8
  options: T['options'];
9
9
  };
@@ -1,5 +1,5 @@
1
1
  import type { Observable } from 'rxjs';
2
2
  import type { LocalizableText } from './localizable-text.model';
3
3
  import { LocalizationService } from './localization.service';
4
- export declare type DynamicText = LocalizableText | Observable<LocalizableText>;
4
+ export type DynamicText = LocalizableText | Observable<LocalizableText>;
5
5
  export declare function resolveDynamicText$(text: DynamicText, localizationService?: LocalizationService): Observable<string>;
@@ -1,2 +1,2 @@
1
1
  import type { LocalizationData } from './localization.service';
2
- export declare type LocalizableText = string | LocalizationData;
2
+ export type LocalizableText = string | LocalizationData;
@@ -1,20 +1,20 @@
1
1
  import type { Enumeration, EnumerationValue } from "../types";
2
2
  import type { PropertyName } from "../utils/object/property-name";
3
3
  import type { Observable } from 'rxjs';
4
- export declare type Language = {
4
+ export type Language = {
5
5
  code: string;
6
6
  name: string;
7
7
  };
8
- export declare type LocalizeFunction<Parameters = void> = (parameters: Parameters) => string;
9
- export declare type LocalizeItem<Parameters = void> = string | LocalizeFunction<Parameters>;
10
- declare type LocalizationTemplate = {
8
+ export type LocalizeFunction<Parameters = void> = (parameters: Parameters) => string;
9
+ export type LocalizeItem<Parameters = void> = string | LocalizeFunction<Parameters>;
10
+ type LocalizationTemplate = {
11
11
  [key: string]: LocalizeItem<any> | LocalizationTemplate;
12
12
  };
13
- export declare type EnumerationLocalization<T extends Enumeration = Enumeration> = {
13
+ export type EnumerationLocalization<T extends Enumeration = Enumeration> = {
14
14
  [P in EnumerationValue<T>]: LocalizeItem<any>;
15
15
  };
16
- export declare type EnumerationLocalizationEntry<T extends Enumeration = Enumeration> = [T, EnumerationLocalization<T>];
17
- export declare type Localization<T extends LocalizationTemplate = LocalizationTemplate, Enums extends Enumeration[] = []> = {
16
+ export type EnumerationLocalizationEntry<T extends Enumeration = Enumeration> = [T, EnumerationLocalization<T>];
17
+ export type Localization<T extends LocalizationTemplate = LocalizationTemplate, Enums extends Enumeration[] = []> = {
18
18
  language: Language;
19
19
  keys: T;
20
20
  enums: {
@@ -22,18 +22,18 @@ export declare type Localization<T extends LocalizationTemplate = LocalizationTe
22
22
  };
23
23
  };
24
24
  declare const parametersSymbol: unique symbol;
25
- export declare type LocalizationKey<Parameters = void> = PropertyName & {
25
+ export type LocalizationKey<Parameters = void> = PropertyName & {
26
26
  [parametersSymbol]: Parameters;
27
27
  };
28
- export declare type LocalizationData<Parameters = any> = LocalizationKey | LocalizationDataObject<Parameters> | {
28
+ export type LocalizationData<Parameters = any> = LocalizationKey | LocalizationDataObject<Parameters> | {
29
29
  key: LocalizationKey;
30
30
  parameters?: void;
31
31
  };
32
- export declare type LocalizationDataObject<Parameters> = {
32
+ export type LocalizationDataObject<Parameters> = {
33
33
  key: LocalizationKey<Parameters>;
34
34
  parameters: Parameters;
35
35
  };
36
- export declare type LocalizationKeys<T extends LocalizationTemplate> = {
36
+ export type LocalizationKeys<T extends LocalizationTemplate> = {
37
37
  [P in keyof T]: T[P] extends LocalizationTemplate ? LocalizationKeys<T[P]> : T[P] extends LocalizeItem<infer R> ? LocalizationKey<R> : LocalizationKey;
38
38
  };
39
39
  export declare function isLocalizationKey(value: any): value is LocalizationKey;
@@ -1,30 +1,30 @@
1
1
  import type { UnionToTuple } from "../types";
2
2
  import type { Observable } from 'rxjs';
3
- export declare type CalculatedPalette<Colors extends string = string> = {
3
+ export type CalculatedPalette<Colors extends string = string> = {
4
4
  [Color in Colors]: {
5
5
  main: ColorTones;
6
6
  text: ColorTones;
7
7
  border?: ColorTones;
8
8
  };
9
9
  };
10
- export declare type CalculatedTheme<Colors extends string = string> = {
10
+ export type CalculatedTheme<Colors extends string = string> = {
11
11
  name: string;
12
12
  palette: CalculatedPalette<Colors>;
13
13
  };
14
- export declare type PaletteColor = string | {
14
+ export type PaletteColor = string | {
15
15
  main: string;
16
16
  text?: string;
17
17
  border?: string;
18
18
  };
19
- export declare type Theme<Colors extends string = string> = {
19
+ export type Theme<Colors extends string = string> = {
20
20
  name: string;
21
21
  textColors?: string[];
22
22
  palette: Palette<Colors>;
23
23
  };
24
- export declare type Palette<Colors extends string = string> = {
24
+ export type Palette<Colors extends string = string> = {
25
25
  [Color in Colors]: PaletteColor;
26
26
  };
27
- export declare type ColorTones = {
27
+ export type ColorTones = {
28
28
  base: string;
29
29
  50: string;
30
30
  100: string;
@@ -4,7 +4,7 @@ import { disposeAsync } from "../disposable";
4
4
  import type { Logger } from "../logger";
5
5
  import type * as NodeWorkerThreads from 'worker_threads';
6
6
  import type { ThreadWorker } from './thread-worker';
7
- export declare type ThreadOptions = (WorkerOptions | NodeWorkerThreads.WorkerOptions) & {
7
+ export type ThreadOptions = (WorkerOptions | NodeWorkerThreads.WorkerOptions) & {
8
8
  threadCount?: number;
9
9
  };
10
10
  export declare class ThreadPool implements AsyncDisposable {
@@ -1,3 +1,3 @@
1
1
  import type { RpcEndpointSource } from "../rpc";
2
- export declare type ThreadWorker = (...args: any[]) => any | Promise<any>;
2
+ export type ThreadWorker = (...args: any[]) => any | Promise<any>;
3
3
  export declare function exposeThreadWorker<T extends ThreadWorker>(worker: T, endpointOrSource: RpcEndpointSource, name?: string): void;
@@ -1,36 +1,36 @@
1
1
  import type { JsonObject } from "../types";
2
- export declare type Position = [longitude: number, latitude: number, elevation?: number];
3
- export declare type GeoJsonObject<Type extends string> = {
2
+ export type Position = [longitude: number, latitude: number, elevation?: number];
3
+ export type GeoJsonObject<Type extends string> = {
4
4
  type: Type;
5
5
  bbox?: [number, number, number, number] | [number, number, number, number, number, number];
6
6
  };
7
- export declare type Point = GeoJsonObject<'Point'> & {
7
+ export type Point = GeoJsonObject<'Point'> & {
8
8
  coordinates: Position;
9
9
  };
10
- export declare type LineString = GeoJsonObject<'LineString'> & {
10
+ export type LineString = GeoJsonObject<'LineString'> & {
11
11
  coordinates: Position[];
12
12
  };
13
- export declare type Polygon = GeoJsonObject<'Polygon'> & {
13
+ export type Polygon = GeoJsonObject<'Polygon'> & {
14
14
  coordinates: Position[][];
15
15
  };
16
- export declare type MultiPoint = GeoJsonObject<'MultiPoint'> & {
16
+ export type MultiPoint = GeoJsonObject<'MultiPoint'> & {
17
17
  coordinates: Position[];
18
18
  };
19
- export declare type MultiLineString = GeoJsonObject<'MultiLineString'> & {
19
+ export type MultiLineString = GeoJsonObject<'MultiLineString'> & {
20
20
  coordinates: Position[][];
21
21
  };
22
- export declare type MultiPolygon = GeoJsonObject<'MultiPolygon'> & {
22
+ export type MultiPolygon = GeoJsonObject<'MultiPolygon'> & {
23
23
  coordinates: Position[][][];
24
24
  };
25
- export declare type GeometryCollection = GeoJsonObject<'GeometryCollection'> & {
25
+ export type GeometryCollection = GeoJsonObject<'GeometryCollection'> & {
26
26
  geometries: Geometry[];
27
27
  };
28
- export declare type Geometry = Point | LineString | Polygon | MultiPoint | MultiLineString | MultiPolygon | GeometryCollection;
29
- export declare type Feature<G extends Geometry | null = null, P extends JsonObject | null = null> = GeoJsonObject<'Feature'> & {
28
+ export type Geometry = Point | LineString | Polygon | MultiPoint | MultiLineString | MultiPolygon | GeometryCollection;
29
+ export type Feature<G extends Geometry | null = null, P extends JsonObject | null = null> = GeoJsonObject<'Feature'> & {
30
30
  id?: string | number;
31
31
  geometry: G;
32
32
  properties: P;
33
33
  };
34
- export declare type FeatureCollection<G extends Geometry | null = null, P extends JsonObject | null = null> = GeoJsonObject<'FeatureCollection'> & {
34
+ export type FeatureCollection<G extends Geometry | null = null, P extends JsonObject | null = null> = GeoJsonObject<'FeatureCollection'> & {
35
35
  features: Feature<G, P>[];
36
36
  };