@elyx-code/project-logic-tree 0.0.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 (368) hide show
  1. package/README.md +2 -0
  2. package/dist/definitions/built-in-base-entities/conditions/comparison/index.d.ts +6 -0
  3. package/dist/definitions/built-in-base-entities/conditions/comparison/more-than-or-equal.d.ts +7 -0
  4. package/dist/definitions/built-in-base-entities/conditions/index.d.ts +7 -0
  5. package/dist/definitions/built-in-base-entities/conditions/standalone/index.d.ts +6 -0
  6. package/dist/definitions/built-in-base-entities/conditions/standalone/not-empty.d.ts +5 -0
  7. package/dist/definitions/built-in-base-entities/entities/cron/entity.d.ts +7 -0
  8. package/dist/definitions/built-in-base-entities/entities/cron/index.d.ts +2 -0
  9. package/dist/definitions/built-in-base-entities/entities/cron/trigger.d.ts +4 -0
  10. package/dist/definitions/built-in-base-entities/entities/endpoint.d.ts +52 -0
  11. package/dist/definitions/built-in-base-entities/entities/execution/index.d.ts +5 -0
  12. package/dist/definitions/built-in-base-entities/entities/index.d.ts +6 -0
  13. package/dist/definitions/built-in-base-entities/entities/other/index.d.ts +1 -0
  14. package/dist/definitions/built-in-base-entities/entities/other/key-value-param.d.ts +11 -0
  15. package/dist/definitions/built-in-base-entities/entities/persisted/entity.d.ts +3 -0
  16. package/dist/definitions/built-in-base-entities/entities/persisted/index.d.ts +3 -0
  17. package/dist/definitions/built-in-base-entities/entities/persisted/methods/delete.d.ts +4 -0
  18. package/dist/definitions/built-in-base-entities/entities/persisted/methods/index.d.ts +2 -0
  19. package/dist/definitions/built-in-base-entities/entities/persisted/methods/soft-delete.d.ts +4 -0
  20. package/dist/definitions/built-in-base-entities/entities/persisted/properties.d.ts +25 -0
  21. package/dist/definitions/built-in-base-entities/entities/relational-database/entity.d.ts +19 -0
  22. package/dist/definitions/built-in-base-entities/entities/relational-database/index.d.ts +1 -0
  23. package/dist/definitions/built-in-base-entities/global-events/index.d.ts +6 -0
  24. package/dist/definitions/built-in-base-entities/global-events/project-published.d.ts +3 -0
  25. package/dist/definitions/built-in-base-entities/ids.d.ts +118 -0
  26. package/dist/definitions/built-in-base-entities/index.d.ts +8 -0
  27. package/dist/definitions/built-in-base-entities/loops/index.d.ts +2 -0
  28. package/dist/definitions/built-in-base-entities/loops/list.d.ts +9 -0
  29. package/dist/definitions/built-in-base-entities/loops/manual-flow.d.ts +7 -0
  30. package/dist/definitions/built-in-base-entities/operations/custom-entity/create-new.d.ts +17 -0
  31. package/dist/definitions/built-in-base-entities/operations/custom-entity/index.d.ts +7 -0
  32. package/dist/definitions/built-in-base-entities/operations/custom-entity/validate-data.d.ts +23 -0
  33. package/dist/definitions/built-in-base-entities/operations/function-execution/index.d.ts +8 -0
  34. package/dist/definitions/built-in-base-entities/operations/function-execution/parallel.d.ts +21 -0
  35. package/dist/definitions/built-in-base-entities/operations/function-execution/sequential.d.ts +21 -0
  36. package/dist/definitions/built-in-base-entities/operations/function-execution/wait.d.ts +15 -0
  37. package/dist/definitions/built-in-base-entities/operations/http-request/http-request.d.ts +45 -0
  38. package/dist/definitions/built-in-base-entities/operations/http-request/index.d.ts +6 -0
  39. package/dist/definitions/built-in-base-entities/operations/index.d.ts +11 -0
  40. package/dist/definitions/built-in-base-entities/operations/list/append.d.ts +25 -0
  41. package/dist/definitions/built-in-base-entities/operations/list/get-last.d.ts +20 -0
  42. package/dist/definitions/built-in-base-entities/operations/list/index.d.ts +9 -0
  43. package/dist/definitions/built-in-base-entities/operations/list/join-lists.d.ts +25 -0
  44. package/dist/definitions/built-in-base-entities/operations/list/split-list.d.ts +29 -0
  45. package/dist/definitions/built-in-base-entities/operations/number/index.d.ts +6 -0
  46. package/dist/definitions/built-in-base-entities/operations/number/number-addition.d.ts +25 -0
  47. package/dist/definitions/built-in-base-entities/operations/string/index.d.ts +6 -0
  48. package/dist/definitions/built-in-base-entities/operations/string/join-string.d.ts +25 -0
  49. package/dist/definitions/built-in-base-entities/primitive-entities.d.ts +15 -0
  50. package/dist/definitions/built-in-base-entities/value-descriptors/index.d.ts +1 -0
  51. package/dist/definitions/built-in-base-entities/value-descriptors/process-output.d.ts +5 -0
  52. package/dist/definitions/index.d.ts +4 -0
  53. package/dist/definitions/logic/custom-entity-to-zod-schema.d.ts +4 -0
  54. package/dist/definitions/logic/index.d.ts +2 -0
  55. package/dist/definitions/logic/value-autogeneration/boolean.d.ts +3 -0
  56. package/dist/definitions/logic/value-autogeneration/date.d.ts +6 -0
  57. package/dist/definitions/logic/value-autogeneration/index.d.ts +6 -0
  58. package/dist/definitions/logic/value-autogeneration/number.d.ts +6 -0
  59. package/dist/definitions/logic/value-autogeneration/text.d.ts +6 -0
  60. package/dist/definitions/logic/value-autogeneration/uuid.d.ts +1 -0
  61. package/dist/definitions/logic/value-autogeneration/value-autogeneration.d.ts +3 -0
  62. package/dist/definitions/mock/default-mock/entities/alt-relational-database/entity.d.ts +4 -0
  63. package/dist/definitions/mock/default-mock/entities/alt-relational-database/properties.d.ts +15 -0
  64. package/dist/definitions/mock/default-mock/entities/animal.d.ts +12 -0
  65. package/dist/definitions/mock/default-mock/entities/back-account/account-owner-event.d.ts +26 -0
  66. package/dist/definitions/mock/default-mock/entities/back-account/change-owner-of-account.d.ts +16 -0
  67. package/dist/definitions/mock/default-mock/entities/back-account/entity.d.ts +4 -0
  68. package/dist/definitions/mock/default-mock/entities/back-account/properties.d.ts +10 -0
  69. package/dist/definitions/mock/default-mock/entities/bitcoin-api-response/bpi/currency/entity.d.ts +4 -0
  70. package/dist/definitions/mock/default-mock/entities/bitcoin-api-response/bpi/currency/properties.d.ts +22 -0
  71. package/dist/definitions/mock/default-mock/entities/bitcoin-api-response/bpi/entity.d.ts +4 -0
  72. package/dist/definitions/mock/default-mock/entities/bitcoin-api-response/bpi/properties.d.ts +14 -0
  73. package/dist/definitions/mock/default-mock/entities/bitcoin-api-response/entity.d.ts +4 -0
  74. package/dist/definitions/mock/default-mock/entities/bitcoin-api-response/ids.d.ts +15 -0
  75. package/dist/definitions/mock/default-mock/entities/bitcoin-api-response/properties.d.ts +18 -0
  76. package/dist/definitions/mock/default-mock/entities/company/change-owner-of-company.d.ts +16 -0
  77. package/dist/definitions/mock/default-mock/entities/company/company-changed-event/company-name-exists-condition.d.ts +8 -0
  78. package/dist/definitions/mock/default-mock/entities/company/company-changed-event/gov-registry-func-call.d.ts +16 -0
  79. package/dist/definitions/mock/default-mock/entities/company/company-changed-event/index.d.ts +18 -0
  80. package/dist/definitions/mock/default-mock/entities/company/entity.d.ts +4 -0
  81. package/dist/definitions/mock/default-mock/entities/company/properties.d.ts +18 -0
  82. package/dist/definitions/mock/default-mock/entities/cron-job/entity.d.ts +13 -0
  83. package/dist/definitions/mock/default-mock/entities/default-relational-database/entity.d.ts +4 -0
  84. package/dist/definitions/mock/default-mock/entities/default-relational-database/properties.d.ts +15 -0
  85. package/dist/definitions/mock/default-mock/entities/employee.d.ts +17 -0
  86. package/dist/definitions/mock/default-mock/entities/get-all-bank-accounts-endpoint/entity.d.ts +4 -0
  87. package/dist/definitions/mock/default-mock/entities/get-company-by-id-endpoint/endpoint-reached-event.d.ts +39 -0
  88. package/dist/definitions/mock/default-mock/entities/get-company-by-id-endpoint/entity.d.ts +4 -0
  89. package/dist/definitions/mock/default-mock/entities/get-company-by-id-endpoint/ids.d.ts +1 -0
  90. package/dist/definitions/mock/default-mock/entities/get-company-by-id-endpoint/properties.d.ts +12 -0
  91. package/dist/definitions/mock/default-mock/entities/person.d.ts +12 -0
  92. package/dist/definitions/mock/default-mock/entities/product.d.ts +12 -0
  93. package/dist/definitions/mock/default-mock/entities/user.d.ts +8 -0
  94. package/dist/definitions/mock/default-mock/events/project-loaded/get-bitcoin-price/get-bitcoin-price-http-call.d.ts +20 -0
  95. package/dist/definitions/mock/default-mock/events/project-loaded/get-bitcoin-price/validate-bitcoin-price-response.d.ts +13 -0
  96. package/dist/definitions/mock/default-mock/events/project-loaded/ids.d.ts +4 -0
  97. package/dist/definitions/mock/default-mock/events/project-loaded/index.d.ts +7 -0
  98. package/dist/definitions/mock/default-mock/function-calls/call-execution-abort.d.ts +4 -0
  99. package/dist/definitions/mock/default-mock/function-calls/call-hello-world-loop.d.ts +4 -0
  100. package/dist/definitions/mock/default-mock/functions/abort-execution/execution-abort-call-var.d.ts +9 -0
  101. package/dist/definitions/mock/default-mock/functions/abort-execution/execution-var-declaration.d.ts +8 -0
  102. package/dist/definitions/mock/default-mock/functions/abort-execution/execution-var-instance-write.d.ts +8 -0
  103. package/dist/definitions/mock/default-mock/functions/abort-execution/function.d.ts +4 -0
  104. package/dist/definitions/mock/default-mock/functions/abort-execution/ids.d.ts +11 -0
  105. package/dist/definitions/mock/default-mock/functions/abort-execution/long-wait-return-statement.d.ts +10 -0
  106. package/dist/definitions/mock/default-mock/functions/abort-execution/long-wait.d.ts +9 -0
  107. package/dist/definitions/mock/default-mock/functions/abort-execution/second-wait.d.ts +8 -0
  108. package/dist/definitions/mock/default-mock/functions/abort-execution/small-wait-return-statement.d.ts +10 -0
  109. package/dist/definitions/mock/default-mock/functions/abort-execution/small-wait.d.ts +8 -0
  110. package/dist/definitions/mock/default-mock/functions/check-gov-registry/gov-http-call.d.ts +35 -0
  111. package/dist/definitions/mock/default-mock/functions/check-gov-registry/index.d.ts +8 -0
  112. package/dist/definitions/mock/default-mock/functions/check-gov-registry/join-query-string-operation.d.ts +19 -0
  113. package/dist/definitions/mock/default-mock/functions/check-gov-registry/return-statement.d.ts +10 -0
  114. package/dist/definitions/mock/default-mock/functions/check-gov-registry/shared-arg-map.d.ts +5 -0
  115. package/dist/definitions/mock/default-mock/functions/company-dto/employee-dto-map-loop/body.d.ts +24 -0
  116. package/dist/definitions/mock/default-mock/functions/company-dto/employee-dto-map-loop/loop.d.ts +10 -0
  117. package/dist/definitions/mock/default-mock/functions/company-dto/function.d.ts +8 -0
  118. package/dist/definitions/mock/default-mock/functions/company-dto/ids.d.ts +28 -0
  119. package/dist/definitions/mock/default-mock/functions/company-dto/return-statement.d.ts +10 -0
  120. package/dist/definitions/mock/default-mock/functions/company-dto/variable-mapping/bank-account-variable.d.ts +10 -0
  121. package/dist/definitions/mock/default-mock/functions/company-dto/variable-mapping/company/outputs.d.ts +12 -0
  122. package/dist/definitions/mock/default-mock/functions/company-dto/variable-mapping/company/variable.d.ts +8 -0
  123. package/dist/definitions/mock/default-mock/functions/company-dto/variable-mapping/company-dto/inputs.d.ts +17 -0
  124. package/dist/definitions/mock/default-mock/functions/company-dto/variable-mapping/company-dto/variable.d.ts +7 -0
  125. package/dist/definitions/mock/default-mock/functions/company-dto/variable-mapping/owner-variable.d.ts +10 -0
  126. package/dist/definitions/mock/default-mock/functions/company-dto/variable-mapping.d.ts +0 -0
  127. package/dist/definitions/mock/default-mock/functions/concurrency-and-waits/company-dto/mapping-func-call.d.ts +8 -0
  128. package/dist/definitions/mock/default-mock/functions/concurrency-and-waits/company-dto/var-chain.d.ts +15 -0
  129. package/dist/definitions/mock/default-mock/functions/concurrency-and-waits/exec-in-parallel-call/operation.d.ts +13 -0
  130. package/dist/definitions/mock/default-mock/functions/concurrency-and-waits/exec-sequentially-call/operation.d.ts +13 -0
  131. package/dist/definitions/mock/default-mock/functions/concurrency-and-waits/function-list-variable.d.ts +12 -0
  132. package/dist/definitions/mock/default-mock/functions/concurrency-and-waits/function.d.ts +4 -0
  133. package/dist/definitions/mock/default-mock/functions/concurrency-and-waits/ids.d.ts +14 -0
  134. package/dist/definitions/mock/default-mock/functions/concurrency-and-waits/return-statement.d.ts +10 -0
  135. package/dist/definitions/mock/default-mock/functions/concurrency-and-waits/return-variables-chain.d.ts +0 -0
  136. package/dist/definitions/mock/default-mock/functions/concurrency-and-waits/wait.d.ts +9 -0
  137. package/dist/definitions/mock/default-mock/functions/create-new-company/index.d.ts +4 -0
  138. package/dist/definitions/mock/default-mock/functions/create-new-company/return-statement.d.ts +9 -0
  139. package/dist/definitions/mock/default-mock/functions/current-time.d.ts +16 -0
  140. package/dist/definitions/mock/default-mock/functions/do-math/ids.d.ts +2 -0
  141. package/dist/definitions/mock/default-mock/functions/do-math/index.d.ts +18 -0
  142. package/dist/definitions/mock/default-mock/functions/do-math/op-output-variables.d.ts +8 -0
  143. package/dist/definitions/mock/default-mock/functions/do-math/return-statement.d.ts +9 -0
  144. package/dist/definitions/mock/default-mock/functions/do-math/sum-operation.d.ts +12 -0
  145. package/dist/definitions/mock/default-mock/functions/do-math/var-to-return-statement.d.ts +7 -0
  146. package/dist/definitions/mock/default-mock/functions/employee-dto/function.d.ts +8 -0
  147. package/dist/definitions/mock/default-mock/functions/employee-dto/ids.d.ts +16 -0
  148. package/dist/definitions/mock/default-mock/functions/employee-dto/return-statement.d.ts +10 -0
  149. package/dist/definitions/mock/default-mock/functions/employee-dto/variable-mapping/employee/outputs.d.ts +10 -0
  150. package/dist/definitions/mock/default-mock/functions/employee-dto/variable-mapping/employee/variable.d.ts +8 -0
  151. package/dist/definitions/mock/default-mock/functions/employee-dto/variable-mapping/employee-dto/inputs.d.ts +14 -0
  152. package/dist/definitions/mock/default-mock/functions/employee-dto/variable-mapping/employee-dto/variable.d.ts +5 -0
  153. package/dist/definitions/mock/default-mock/functions/employee-dto/variable-mapping/manager-variable.d.ts +10 -0
  154. package/dist/definitions/mock/default-mock/functions/manual-hello-world-loop/function.d.ts +4 -0
  155. package/dist/definitions/mock/default-mock/functions/manual-hello-world-loop/ids.d.ts +13 -0
  156. package/dist/definitions/mock/default-mock/functions/manual-hello-world-loop/loop/add-latest-text-to-final-list.d.ts +14 -0
  157. package/dist/definitions/mock/default-mock/functions/manual-hello-world-loop/loop/break-statement.d.ts +10 -0
  158. package/dist/definitions/mock/default-mock/functions/manual-hello-world-loop/loop/continue-statement.d.ts +10 -0
  159. package/dist/definitions/mock/default-mock/functions/manual-hello-world-loop/loop/iteration-smaller-than-ten-condition.d.ts +10 -0
  160. package/dist/definitions/mock/default-mock/functions/manual-hello-world-loop/loop/join-texts.d.ts +13 -0
  161. package/dist/definitions/mock/default-mock/functions/manual-hello-world-loop/loop/loop-body.d.ts +12 -0
  162. package/dist/definitions/mock/default-mock/functions/manual-hello-world-loop/loop/loop.d.ts +7 -0
  163. package/dist/definitions/mock/default-mock/functions/manual-hello-world-loop/return-statement.d.ts +10 -0
  164. package/dist/definitions/mock/default-mock/functions/replace-back-account-in-company/company-variable-declaration.d.ts +10 -0
  165. package/dist/definitions/mock/default-mock/functions/replace-back-account-in-company/company-variable-instance.d.ts +9 -0
  166. package/dist/definitions/mock/default-mock/functions/replace-back-account-in-company/create-new-bank-account.d.ts +15 -0
  167. package/dist/definitions/mock/default-mock/functions/replace-back-account-in-company/ids.d.ts +15 -0
  168. package/dist/definitions/mock/default-mock/functions/replace-back-account-in-company/index.d.ts +19 -0
  169. package/dist/definitions/mock/default-mock/functions/replace-back-account-in-company/old-bank-account-variable.d.ts +11 -0
  170. package/dist/definitions/mock/default-mock/functions/replace-back-account-in-company/person-not-empty-condition.d.ts +8 -0
  171. package/dist/definitions/mock/default-mock/functions/replace-back-account-in-company/person-not-found-return-error.d.ts +10 -0
  172. package/dist/definitions/mock/default-mock/functions/replace-back-account-in-company/search-person-by-id/found-person-output.d.ts +8 -0
  173. package/dist/definitions/mock/default-mock/functions/replace-back-account-in-company/search-person-by-id/index.d.ts +5 -0
  174. package/dist/definitions/mock/default-mock/functions/replace-back-account-in-company/search-person-by-id/person-id-input.d.ts +9 -0
  175. package/dist/definitions/mock/default-mock/functions/replace-back-account-in-company/search-person-by-id/search-query.d.ts +3 -0
  176. package/dist/definitions/mock/default-mock/functions/show-popup/index.d.ts +4 -0
  177. package/dist/definitions/mock/default-mock/ids.d.ts +3 -0
  178. package/dist/definitions/mock/default-mock/index.d.ts +4 -0
  179. package/dist/definitions/mock/default-mock/installed-projects/mock-third-party-project.d.ts +7 -0
  180. package/dist/definitions/mock/default-mock/loops/iterate-over-list/body.d.ts +8 -0
  181. package/dist/definitions/mock/default-mock/loops/iterate-over-list/ids.d.ts +3 -0
  182. package/dist/definitions/mock/default-mock/loops/iterate-over-list/loop.d.ts +6 -0
  183. package/dist/definitions/mock/default-mock/operations/random-wait.d.ts +7 -0
  184. package/dist/definitions/mock/default-mock/searches/find-companies-with-multiple-employees-and-bank-account.d.ts +10 -0
  185. package/dist/definitions/mock/default-mock/variables/global-data-mapping/company-employee/company-employee.d.ts +6 -0
  186. package/dist/definitions/mock/default-mock/variables/global-data-mapping/company-employee/outputs.d.ts +10 -0
  187. package/dist/definitions/mock/default-mock/variables/global-data-mapping/employee-dto/company-employee-mapped-DTO.d.ts +4 -0
  188. package/dist/definitions/mock/default-mock/variables/global-data-mapping/employee-dto/inputs.d.ts +17 -0
  189. package/dist/definitions/mock/default-mock/variables/global-data-mapping/global-user-instance.d.ts +6 -0
  190. package/dist/definitions/mock/default-mock/variables/global-data-mapping/ids.d.ts +15 -0
  191. package/dist/definitions/mock/default-mock/variables/global-data-mapping/manager-variable.d.ts +9 -0
  192. package/dist/definitions/mock/default-mock/variables/isTestEnv.d.ts +9 -0
  193. package/dist/definitions/mock/default-mock/variables/lastTimestamp.d.ts +7 -0
  194. package/dist/definitions/mock/default-mock/variables/user.d.ts +6 -0
  195. package/dist/definitions/mock/index.d.ts +3 -0
  196. package/dist/definitions/types/autogeneration.d.ts +101 -0
  197. package/dist/definitions/types/base-entity.d.ts +79 -0
  198. package/dist/definitions/types/base.d.ts +177 -0
  199. package/dist/definitions/types/condition.d.ts +61 -0
  200. package/dist/definitions/types/custom-entity.d.ts +31 -0
  201. package/dist/definitions/types/data-type.d.ts +50 -0
  202. package/dist/definitions/types/event.d.ts +49 -0
  203. package/dist/definitions/types/function.d.ts +180 -0
  204. package/dist/definitions/types/generic-reference.d.ts +95 -0
  205. package/dist/definitions/types/index.d.ts +201 -0
  206. package/dist/definitions/types/input-output-map.d.ts +135 -0
  207. package/dist/definitions/types/loop.d.ts +41 -0
  208. package/dist/definitions/types/operation.d.ts +92 -0
  209. package/dist/definitions/types/primitives.d.ts +199 -0
  210. package/dist/definitions/types/project.d.ts +84 -0
  211. package/dist/definitions/types/property.d.ts +35 -0
  212. package/dist/definitions/types/return.d.ts +109 -0
  213. package/dist/definitions/types/search.d.ts +62 -0
  214. package/dist/definitions/types/variable.d.ts +128 -0
  215. package/dist/index.d.ts +2 -0
  216. package/dist/index.js +38622 -0
  217. package/dist/index.umd.cjs +299 -0
  218. package/dist/tree/built-in/built-in-base-entities/index.d.ts +1 -0
  219. package/dist/tree/built-in/built-in-base-entities/persisted/entity.d.ts +22 -0
  220. package/dist/tree/built-in/built-in-base-entities/persisted/index.d.ts +1 -0
  221. package/dist/tree/built-in/index.d.ts +3 -0
  222. package/dist/tree/built-in/operations/function-execution/index.d.ts +3 -0
  223. package/dist/tree/built-in/operations/function-execution/parallel.d.ts +20 -0
  224. package/dist/tree/built-in/operations/function-execution/sequential.d.ts +22 -0
  225. package/dist/tree/built-in/operations/function-execution/wait.d.ts +20 -0
  226. package/dist/tree/built-in/operations/index.d.ts +1 -0
  227. package/dist/tree/built-in/operations/init.d.ts +4 -0
  228. package/dist/tree/built-in/primitive-entities/index.d.ts +1 -0
  229. package/dist/tree/index.d.ts +3 -0
  230. package/dist/tree/state/action-descriptor/action-descriptor.d.ts +113 -0
  231. package/dist/tree/state/action-descriptor/index.d.ts +1 -0
  232. package/dist/tree/state/action-descriptor/validation/logic-validation.d.ts +4 -0
  233. package/dist/tree/state/action-descriptor/validation/validation-schema.d.ts +438 -0
  234. package/dist/tree/state/argument-declaration/argument-declaration.d.ts +98 -0
  235. package/dist/tree/state/argument-declaration/index.d.ts +1 -0
  236. package/dist/tree/state/argument-declaration/validation/logic-validation.d.ts +4 -0
  237. package/dist/tree/state/argument-declaration/validation/validation-schema.d.ts +489 -0
  238. package/dist/tree/state/autogeneration.d.ts +823 -0
  239. package/dist/tree/state/base.d.ts +111 -0
  240. package/dist/tree/state/break-statement/break-statement.d.ts +99 -0
  241. package/dist/tree/state/break-statement/index.d.ts +1 -0
  242. package/dist/tree/state/break-statement/validation/logic-validation.d.ts +4 -0
  243. package/dist/tree/state/break-statement/validation/validation-schema.d.ts +1117 -0
  244. package/dist/tree/state/built-in-base-entity/built-in-base-entity.d.ts +82 -0
  245. package/dist/tree/state/built-in-base-entity/index.d.ts +1 -0
  246. package/dist/tree/state/built-in-base-entity/init.d.ts +4 -0
  247. package/dist/tree/state/built-in-base-entity/logic-validation.d.ts +4 -0
  248. package/dist/tree/state/built-in-base-entity/validation-schema.d.ts +256 -0
  249. package/dist/tree/state/condition/condition.d.ts +105 -0
  250. package/dist/tree/state/condition/index.d.ts +1 -0
  251. package/dist/tree/state/condition/init.d.ts +4 -0
  252. package/dist/tree/state/condition/validation/logic-validation.d.ts +4 -0
  253. package/dist/tree/state/condition/validation/validation-schema.d.ts +2386 -0
  254. package/dist/tree/state/continue-statement/continue-statement.d.ts +99 -0
  255. package/dist/tree/state/continue-statement/index.d.ts +1 -0
  256. package/dist/tree/state/continue-statement/validation/logic-validation.d.ts +4 -0
  257. package/dist/tree/state/continue-statement/validation/validation-schema.d.ts +1117 -0
  258. package/dist/tree/state/create.d.ts +8 -0
  259. package/dist/tree/state/custom-entity/custom-entity.d.ts +129 -0
  260. package/dist/tree/state/custom-entity/index.d.ts +1 -0
  261. package/dist/tree/state/custom-entity/validation/logic-validation.d.ts +9 -0
  262. package/dist/tree/state/custom-entity/validation/references.d.ts +5 -0
  263. package/dist/tree/state/custom-entity/validation/validation-schema.d.ts +472 -0
  264. package/dist/tree/state/data-type/data-type.d.ts +108 -0
  265. package/dist/tree/state/data-type/index.d.ts +1 -0
  266. package/dist/tree/state/data-type/validation/logic-validation.d.ts +4 -0
  267. package/dist/tree/state/data-type/validation/references.d.ts +5 -0
  268. package/dist/tree/state/data-type/validation/validation-schema.d.ts +12115 -0
  269. package/dist/tree/state/error.d.ts +133 -0
  270. package/dist/tree/state/function-call/function-call.d.ts +111 -0
  271. package/dist/tree/state/function-call/index.d.ts +1 -0
  272. package/dist/tree/state/function-call/validation/logic-validation.d.ts +4 -0
  273. package/dist/tree/state/function-call/validation/validation-schema.d.ts +2517 -0
  274. package/dist/tree/state/function-declaration/function-declaration.d.ts +115 -0
  275. package/dist/tree/state/function-declaration/index.d.ts +1 -0
  276. package/dist/tree/state/function-declaration/validation/logic-validation.d.ts +4 -0
  277. package/dist/tree/state/function-declaration/validation/validation-schema.d.ts +505 -0
  278. package/dist/tree/state/global-event/global-event.d.ts +105 -0
  279. package/dist/tree/state/global-event/index.d.ts +1 -0
  280. package/dist/tree/state/global-event/init.d.ts +4 -0
  281. package/dist/tree/state/global-event/validation/logic-validation.d.ts +4 -0
  282. package/dist/tree/state/global-event/validation/validation-schema.d.ts +1379 -0
  283. package/dist/tree/state/index.d.ts +28 -0
  284. package/dist/tree/state/input-map/index.d.ts +1 -0
  285. package/dist/tree/state/input-map/input-map.d.ts +124 -0
  286. package/dist/tree/state/input-map/validation/logic-validation.d.ts +4 -0
  287. package/dist/tree/state/input-map/validation/validation-schema.d.ts +36161 -0
  288. package/dist/tree/state/installed-project/index.d.ts +1 -0
  289. package/dist/tree/state/installed-project/installed-project.d.ts +90 -0
  290. package/dist/tree/state/installed-project/validation/logic-validation.d.ts +4 -0
  291. package/dist/tree/state/installed-project/validation/validation-schema.d.ts +238 -0
  292. package/dist/tree/state/internal-call/index.d.ts +1 -0
  293. package/dist/tree/state/internal-call/internal-call.d.ts +109 -0
  294. package/dist/tree/state/internal-call/validation/logic-validation.d.ts +4 -0
  295. package/dist/tree/state/internal-call/validation/validation-schema.d.ts +2433 -0
  296. package/dist/tree/state/loop/index.d.ts +1 -0
  297. package/dist/tree/state/loop/init.d.ts +4 -0
  298. package/dist/tree/state/loop/loop.d.ts +127 -0
  299. package/dist/tree/state/loop/validation/logic-validation.d.ts +4 -0
  300. package/dist/tree/state/loop/validation/validation-schema.d.ts +2523 -0
  301. package/dist/tree/state/operation/index.d.ts +1 -0
  302. package/dist/tree/state/operation/operation.d.ts +111 -0
  303. package/dist/tree/state/operation/validation/logic-validation.d.ts +4 -0
  304. package/dist/tree/state/operation/validation/validation-schema.d.ts +2553 -0
  305. package/dist/tree/state/output-map/index.d.ts +1 -0
  306. package/dist/tree/state/output-map/output-map.d.ts +111 -0
  307. package/dist/tree/state/output-map/validation/logic-validation.d.ts +4 -0
  308. package/dist/tree/state/output-map/validation/validation-schema.d.ts +1543 -0
  309. package/dist/tree/state/primitive-entity/index.d.ts +1 -0
  310. package/dist/tree/state/primitive-entity/init.d.ts +4 -0
  311. package/dist/tree/state/primitive-entity/primitive-entity.d.ts +62 -0
  312. package/dist/tree/state/primitive-entity/validation/logic-validation.d.ts +4 -0
  313. package/dist/tree/state/primitive-entity/validation/validation-schema.d.ts +251 -0
  314. package/dist/tree/state/primitive-value/index.d.ts +1 -0
  315. package/dist/tree/state/primitive-value/primitive-value.d.ts +91 -0
  316. package/dist/tree/state/primitive-value/validation/logic-validation.d.ts +4 -0
  317. package/dist/tree/state/primitive-value/validation/references.d.ts +5 -0
  318. package/dist/tree/state/primitive-value/validation/validation-schema.d.ts +11410 -0
  319. package/dist/tree/state/project/index.d.ts +1 -0
  320. package/dist/tree/state/project/project.d.ts +180 -0
  321. package/dist/tree/state/project/validation/validation-schema.d.ts +389 -0
  322. package/dist/tree/state/property/index.d.ts +1 -0
  323. package/dist/tree/state/property/property.d.ts +100 -0
  324. package/dist/tree/state/property/validation/logic-validation.d.ts +5 -0
  325. package/dist/tree/state/property/validation/references.d.ts +5 -0
  326. package/dist/tree/state/property/validation/validation-schema.d.ts +365 -0
  327. package/dist/tree/state/return-declaration/index.d.ts +1 -0
  328. package/dist/tree/state/return-declaration/return-declaration.d.ts +100 -0
  329. package/dist/tree/state/return-declaration/validation/logic-validation.d.ts +4 -0
  330. package/dist/tree/state/return-declaration/validation/validation-schema.d.ts +579 -0
  331. package/dist/tree/state/return-statement/index.d.ts +1 -0
  332. package/dist/tree/state/return-statement/return-statement.d.ts +98 -0
  333. package/dist/tree/state/return-statement/validation/logic-validation.d.ts +4 -0
  334. package/dist/tree/state/return-statement/validation/references.d.ts +8 -0
  335. package/dist/tree/state/return-statement/validation/validation-schema.d.ts +1217 -0
  336. package/dist/tree/state/search/index.d.ts +1 -0
  337. package/dist/tree/state/search/search.d.ts +116 -0
  338. package/dist/tree/state/search/validation/logic-validation.d.ts +4 -0
  339. package/dist/tree/state/search/validation/validation-schema.d.ts +2493 -0
  340. package/dist/tree/state/state.test.d.ts +1 -0
  341. package/dist/tree/state/store.d.ts +10 -0
  342. package/dist/tree/state/types/index.d.ts +7 -0
  343. package/dist/tree/state/types/state.d.ts +52 -0
  344. package/dist/tree/state/types/validation.d.ts +3591 -0
  345. package/dist/tree/state/validate.d.ts +122 -0
  346. package/dist/tree/state/validate.test.d.ts +1 -0
  347. package/dist/tree/state/value-descriptor/index.d.ts +1 -0
  348. package/dist/tree/state/value-descriptor/init.d.ts +4 -0
  349. package/dist/tree/state/value-descriptor/validation/logic-validation.d.ts +4 -0
  350. package/dist/tree/state/value-descriptor/validation/validation-schema.d.ts +191 -0
  351. package/dist/tree/state/value-descriptor/value-descriptor.d.ts +91 -0
  352. package/dist/tree/state/variable-declaration/index.d.ts +1 -0
  353. package/dist/tree/state/variable-declaration/validation/logic-validation.d.ts +4 -0
  354. package/dist/tree/state/variable-declaration/validation/validation-schema.d.ts +2687 -0
  355. package/dist/tree/state/variable-declaration/variable-declaration.d.ts +129 -0
  356. package/dist/tree/state/variable-instance/index.d.ts +1 -0
  357. package/dist/tree/state/variable-instance/validation/logic-validation.d.ts +4 -0
  358. package/dist/tree/state/variable-instance/validation/validation-schema.d.ts +2689 -0
  359. package/dist/tree/state/variable-instance/variable-instance.d.ts +125 -0
  360. package/dist/tree/utils/data-type.d.ts +51 -0
  361. package/dist/tree/utils/index.d.ts +158 -0
  362. package/dist/tree/utils/names.d.ts +32 -0
  363. package/dist/tree/utils/references.d.ts +4 -0
  364. package/dist/tree/utils/shared-data-structure-entity.d.ts +26 -0
  365. package/dist/tree/utils/string.d.ts +2 -0
  366. package/dist/tree/utils/uuid.d.ts +7 -0
  367. package/dist/tree/utils/variables.d.ts +5 -0
  368. package/package.json +65 -0
@@ -0,0 +1 @@
1
+ export * from './project';
@@ -0,0 +1,180 @@
1
+ import { EntityId, EntityType, EntityVersion, IProject, ICustomEntity, IFunctionDeclaration, IGlobalEvent, Element, IProjectTransfer, IGenericReference, ElementTransfer, Reference, IProjectReference, IFunctionCallTransfer, ICustomEntityTransfer, IFunctionDeclarationTransfer, IInstalledProjectTransfer, IVariableDeclarationTransfer, IProjectShallowTransfer, ElementShallowTransfer, ElementGenerationTarget, IProjectGenerationTarget, IConditionTransfer, IOperationTransfer, ProjectTypesUnion } from '../../../../../../../../../src/definitions';
2
+ import { ZodError } from 'zod';
3
+ import { BaseState, UserManagedEntityStateFunctionality } from '../base';
4
+ import { FunctionDeclarationState } from '../function-declaration';
5
+ import { GlobalEventState } from '../global-event';
6
+ import { CustomEntityState } from '../custom-entity';
7
+ import { InstalledProjectState } from '../installed-project';
8
+ import { VariableDeclarationState } from '../variable-declaration';
9
+ import { ConditionState } from '../condition';
10
+ import { FunctionCallState } from '../function-call';
11
+ import { OperationState } from '../operation';
12
+ import { DataTypeState, EntityState, EntryPointEntityState, PrimitiveEntityState, VariableState } from '..';
13
+ import { LoopState } from '../loop';
14
+ import { SearchState } from '../search';
15
+ import { VariableInstanceState } from '../variable-instance';
16
+ import { BuiltInBaseEntityState } from '../built-in-base-entity';
17
+ import { EntityError, EntityGenerationError } from '../error';
18
+ import { ActionDescriptorState } from '../action-descriptor';
19
+ import { ValueDescriptorState } from '../value-descriptor';
20
+ import { IModuleInjection } from '../types';
21
+
22
+ export declare class ProjectState implements IProject, UserManagedEntityStateFunctionality, BaseState {
23
+ initialData: IProject | IProjectTransfer;
24
+ readonly id: EntityId;
25
+ version: EntityVersion;
26
+ type: EntityType.Project;
27
+ name: string | null;
28
+ description: string | null;
29
+ x: number;
30
+ y: number;
31
+ entities: CustomEntityState[];
32
+ projects: InstalledProjectState[];
33
+ functions: FunctionDeclarationState[];
34
+ events: GlobalEventState[];
35
+ variableDeclarations: VariableDeclarationState[];
36
+ variableInstances: VariableInstanceState[];
37
+ conditions: ConditionState[];
38
+ operations: OperationState[];
39
+ functionCalls: FunctionCallState[];
40
+ loops: LoopState[];
41
+ searches: SearchState[];
42
+ primitives: PrimitiveEntityState[];
43
+ builtInBaseEntities: BuiltInBaseEntityState[];
44
+ operationDeclarations: ActionDescriptorState[];
45
+ globalEventActionDescriptors: ActionDescriptorState[];
46
+ loopDeclarations: ActionDescriptorState[];
47
+ conditionDeclarations: ActionDescriptorState[];
48
+ valueDescriptors: ValueDescriptorState[];
49
+ dataTypes: DataTypeState[];
50
+ project: ProjectState;
51
+ instances: {
52
+ [id: string]: EntityState;
53
+ };
54
+ builtInInstances: {
55
+ [id: string]: EntityState;
56
+ };
57
+ errors: EntityError[];
58
+ references: IGenericReference[];
59
+ constructor(initialProjectData: IProject | IProjectTransfer);
60
+ static MUTABLE_BASE_PROPERTIES: string[];
61
+ static INMUTABLE_BASE_PROPERTIES: string[];
62
+ static BASE_PROPERTIES: string[];
63
+ static MUTABLE_META_PROPERTIES: string[];
64
+ static INMUTABLE_META_PROPERTIES: string[];
65
+ static META_PROPERTIES: string[];
66
+ static MUTABLE_UPSTREAM_PROPERTIES: string[];
67
+ static INMUTABLE_UPSTREAM_PROPERTIES: string[];
68
+ static UPSTREAM_PROPERTIES: string[];
69
+ static MUTABLE_DOWNSTREAM_PROPERTIES: string[];
70
+ static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
71
+ static DOWNSTREAM_PROPERTIES: string[];
72
+ static PROPERTIES: string[];
73
+ static validateGenerationTarget(data: IProjectGenerationTarget, project: ProjectState): {
74
+ errors: EntityGenerationError[];
75
+ modifiedData: IProjectGenerationTarget;
76
+ };
77
+ inject(...injectedModules: IModuleInjection[]): Promise<ProjectState>;
78
+ validateGeneratedUpdate(data: Partial<IProjectGenerationTarget>): {
79
+ errors: EntityGenerationError[];
80
+ modifiedData: Partial<IProjectGenerationTarget>;
81
+ };
82
+ addSelfToProject(): ProjectState;
83
+ get instancesList(): EntityState[];
84
+ isOperationDeclaration(entity: ActionDescriptorState): boolean;
85
+ isGlobalEventActionDescriptor(entity: ActionDescriptorState): boolean;
86
+ isLoopDeclaration(entity: ActionDescriptorState): boolean;
87
+ isConditionDeclaration(entity: ActionDescriptorState): boolean;
88
+ initChildren(): ProjectState;
89
+ subscribeInstance(instance: EntityState): ProjectState;
90
+ subscribeBuiltInInstance(instance: EntityState): ProjectState;
91
+ subscribe(): ProjectState;
92
+ unsubscribe(): ProjectState;
93
+ unsubscribeInstance(entity: EntityState): ProjectState;
94
+ findSubscribedInstance(entity: Element | ElementTransfer): EntityState | null;
95
+ findSubscribedBuiltInInstance(entity: Element | ElementTransfer): EntityState | null;
96
+ get(entityId: EntityId): EntityState | null;
97
+ getManaged(entityId: EntityId): EntityState | null;
98
+ getBuiltIn(entityId: EntityId): EntityState | null;
99
+ findSubscribedInstanceFromReference(entity: Reference): EntityState | null;
100
+ findSubscribedBuiltInInstanceFromReference(entity: Reference): EntityState | null;
101
+ sync(data: Partial<IProject & {
102
+ x: number;
103
+ y: number;
104
+ }>): ProjectState;
105
+ load(): Promise<ProjectState>;
106
+ create(): Promise<ProjectState>;
107
+ update(_: Partial<ProjectTypesUnion>): Promise<ProjectState>;
108
+ delete(): Promise<ProjectState>;
109
+ remove({ ignoreUpstream: _ }?: {
110
+ ignoreUpstream: boolean;
111
+ }): {
112
+ affected: EntityState[];
113
+ removed: EntityState[];
114
+ };
115
+ restore({ seenEntities: _ }?: {
116
+ seenEntities: Set<string>;
117
+ }): {
118
+ affected: EntityState[];
119
+ self: EntityState;
120
+ };
121
+ getAllBuiltInIds(): EntityId[];
122
+ getAllBuiltIn(): EntityState[];
123
+ toFlat(seenEntities?: Set<string>): EntityState[];
124
+ toFlatIds(seenEntities?: Set<string>): EntityId[];
125
+ toJSON(): IProjectTransfer;
126
+ toReference(): IProjectReference;
127
+ toShallowJSON(): IProjectShallowTransfer;
128
+ toFlatJSON(seenEntities?: Set<string>): ElementShallowTransfer[];
129
+ toGenerationTarget(): IProjectGenerationTarget;
130
+ toFlatGenerationTarget(seenEntities?: Set<string>): ElementGenerationTarget[];
131
+ clearErrors(): ProjectState;
132
+ validate(): {
133
+ success: boolean;
134
+ error: ZodError | null;
135
+ data: IProjectTransfer | null;
136
+ };
137
+ validateChildren(): void;
138
+ getErrors(): EntityError[];
139
+ getShallowErrors(): EntityError[];
140
+ clone(): ProjectState;
141
+ getCustomEntity(id: EntityId): CustomEntityState | null;
142
+ addCustomEntityFromTransfer(entity: ICustomEntityTransfer): CustomEntityState;
143
+ addCustomEntity(entity: CustomEntityState): CustomEntityState;
144
+ addFunctionDeclarationFromTransfer(func: IFunctionDeclarationTransfer): FunctionDeclarationState;
145
+ addFunctionDeclaration(func: FunctionDeclarationState): FunctionDeclarationState;
146
+ addFunctionCallFromTransfer(func: IFunctionCallTransfer): FunctionCallState;
147
+ addFunctionCall(func: FunctionCallState): FunctionCallState;
148
+ addVariableDeclarationFromTransfer(variable: IVariableDeclarationTransfer): VariableDeclarationState;
149
+ addVariableDeclaration(variable: VariableDeclarationState): VariableDeclarationState;
150
+ addVariableInstanceFromTransfer(variable: IVariableDeclarationTransfer): VariableInstanceState;
151
+ addVariableInstance(variable: VariableInstanceState): VariableInstanceState;
152
+ addInstalledProjectFromTransfer(project: IInstalledProjectTransfer): ProjectState;
153
+ addInstalledProject(project: InstalledProjectState): ProjectState;
154
+ addGlobalEventFromTransfer(event: IGlobalEvent): ProjectState;
155
+ addGlobalEvent(event: GlobalEventState): ProjectState;
156
+ addConditionFromTransfer(condition: IConditionTransfer): ProjectState;
157
+ addCondition(condition: ConditionState): ProjectState;
158
+ addOperationFromTransfer(operation: IOperationTransfer): ProjectState;
159
+ addOperation(operation: OperationState): ProjectState;
160
+ addLoopFromTransfer(loop: LoopState): ProjectState;
161
+ addLoop(loop: LoopState): ProjectState;
162
+ addSearchFromTransfer(search: IConditionTransfer): ProjectState;
163
+ addSearch(search: SearchState): ProjectState;
164
+ removeCustomEntity(entity: ICustomEntity): CustomEntityState | null;
165
+ removeFunctionDeclaration(func: IFunctionDeclaration): FunctionDeclarationState | null;
166
+ removeExternalProject(project: IProject): InstalledProjectState | null;
167
+ removeGlobalEvent(event: IGlobalEvent): GlobalEventState | null;
168
+ removeTopLevelVariableDeclaration(variable: VariableDeclarationState): VariableDeclarationState | null;
169
+ getEntryPoints(): EntryPointEntityState[];
170
+ getFunctionDeclaration(id: EntityId): FunctionDeclarationState | null;
171
+ getConditions(): ConditionState[];
172
+ getOperations(): OperationState[];
173
+ getFunctionCalls(): FunctionCallState[];
174
+ getVariables(): VariableState[];
175
+ getVariableInstances(): VariableInstanceState[];
176
+ getVariableDeclarations(): VariableDeclarationState[];
177
+ attachOrphanReferences(): ProjectState;
178
+ getBuiltInPersistedEntity(): BuiltInBaseEntityState | null;
179
+ }
180
+ export type ProjectPayloadUnion = ProjectState | ProjectTypesUnion;
@@ -0,0 +1,389 @@
1
+ import { EntityType } from '../../../../../../../../../../src/definitions';
2
+ import { z } from 'zod';
3
+
4
+ export declare function getProjectTypeSchema(): z.ZodUnion<[z.ZodObject<{
5
+ type: z.ZodLiteral<EntityType.Project>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ type: EntityType.Project;
8
+ }, {
9
+ type: EntityType.Project;
10
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>;
11
+ export declare function getProjectReferenceSchema(): z.ZodObject<{
12
+ entityType: z.ZodLiteral<EntityType.Project>;
13
+ entityId: z.ZodString;
14
+ id: z.ZodString;
15
+ type: z.ZodLiteral<EntityType.GenericReference>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ id: string;
18
+ type: EntityType.GenericReference;
19
+ entityType: EntityType.Project;
20
+ entityId: string;
21
+ }, {
22
+ id: string;
23
+ type: EntityType.GenericReference;
24
+ entityType: EntityType.Project;
25
+ entityId: string;
26
+ }>;
27
+ export declare function getProjectBaseSchema(): z.ZodObject<{
28
+ id: z.ZodString;
29
+ type: z.ZodLiteral<EntityType.Project>;
30
+ name: z.ZodString;
31
+ description: z.ZodNullable<z.ZodString>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ id: string;
34
+ type: EntityType.Project;
35
+ name: string;
36
+ description: string | null;
37
+ }, {
38
+ id: string;
39
+ type: EntityType.Project;
40
+ name: string;
41
+ description: string | null;
42
+ }>;
43
+ export declare function getProjectMetaSchema(): z.ZodObject<z.objectUtil.extendShape<{
44
+ id: z.ZodString;
45
+ type: z.ZodLiteral<EntityType.Project>;
46
+ name: z.ZodString;
47
+ description: z.ZodNullable<z.ZodString>;
48
+ }, {
49
+ version: z.ZodNumber;
50
+ }>, "strip", z.ZodTypeAny, {
51
+ id: string;
52
+ type: EntityType.Project;
53
+ name: string;
54
+ description: string | null;
55
+ version: number;
56
+ }, {
57
+ id: string;
58
+ type: EntityType.Project;
59
+ name: string;
60
+ description: string | null;
61
+ version: number;
62
+ }>;
63
+ export declare function getProjectGenerationTargetSchema(): z.ZodObject<{
64
+ id: z.ZodString;
65
+ type: z.ZodLiteral<EntityType.Project>;
66
+ name: z.ZodString;
67
+ description: z.ZodNullable<z.ZodString>;
68
+ }, "strip", z.ZodTypeAny, {
69
+ id: string;
70
+ type: EntityType.Project;
71
+ name: string;
72
+ description: string | null;
73
+ }, {
74
+ id: string;
75
+ type: EntityType.Project;
76
+ name: string;
77
+ description: string | null;
78
+ }>;
79
+ export declare function getProjectNestedEntitiesSchema(): z.ZodObject<{
80
+ entities: z.ZodArray<z.ZodUnion<[z.ZodObject<{
81
+ type: z.ZodLiteral<EntityType.CustomEntity>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ type: EntityType.CustomEntity;
84
+ }, {
85
+ type: EntityType.CustomEntity;
86
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
87
+ functions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
88
+ type: z.ZodLiteral<EntityType.FunctionDeclaration>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ type: EntityType.FunctionDeclaration;
91
+ }, {
92
+ type: EntityType.FunctionDeclaration;
93
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
94
+ events: z.ZodArray<z.ZodUnion<[z.ZodObject<{
95
+ type: z.ZodLiteral<EntityType.GlobalEvent>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ type: EntityType.GlobalEvent;
98
+ }, {
99
+ type: EntityType.GlobalEvent;
100
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
101
+ projects: z.ZodArray<z.ZodUnion<[z.ZodObject<{
102
+ type: z.ZodLiteral<EntityType.InstalledProject>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ type: EntityType.InstalledProject;
105
+ }, {
106
+ type: EntityType.InstalledProject;
107
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
108
+ variableDeclarations: z.ZodArray<z.ZodUnion<[z.ZodObject<{
109
+ type: z.ZodLiteral<EntityType.VariableDeclaration>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ type: EntityType.VariableDeclaration;
112
+ }, {
113
+ type: EntityType.VariableDeclaration;
114
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
115
+ variableInstances: z.ZodArray<z.ZodUnion<[z.ZodObject<{
116
+ type: z.ZodLiteral<EntityType.VariableInstance>;
117
+ }, "strip", z.ZodTypeAny, {
118
+ type: EntityType.VariableInstance;
119
+ }, {
120
+ type: EntityType.VariableInstance;
121
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
122
+ conditions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
123
+ type: z.ZodLiteral<EntityType.Condition>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ type: EntityType.Condition;
126
+ }, {
127
+ type: EntityType.Condition;
128
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
129
+ operations: z.ZodArray<z.ZodUnion<[z.ZodObject<{
130
+ type: z.ZodLiteral<EntityType.Operation>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ type: EntityType.Operation;
133
+ }, {
134
+ type: EntityType.Operation;
135
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
136
+ functionCalls: z.ZodArray<z.ZodUnion<[z.ZodObject<{
137
+ type: z.ZodLiteral<EntityType.FunctionCall>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ type: EntityType.FunctionCall;
140
+ }, {
141
+ type: EntityType.FunctionCall;
142
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
143
+ loops: z.ZodArray<z.ZodUnion<[z.ZodObject<{
144
+ type: z.ZodLiteral<EntityType.Loop>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ type: EntityType.Loop;
147
+ }, {
148
+ type: EntityType.Loop;
149
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
150
+ searches: z.ZodArray<z.ZodUnion<[z.ZodObject<{
151
+ type: z.ZodLiteral<EntityType.Search>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ type: EntityType.Search;
154
+ }, {
155
+ type: EntityType.Search;
156
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
157
+ }, "strip", z.ZodTypeAny, {
158
+ functions: (Record<string, any> | {
159
+ type: EntityType.FunctionDeclaration;
160
+ })[];
161
+ events: (Record<string, any> | {
162
+ type: EntityType.GlobalEvent;
163
+ })[];
164
+ entities: (Record<string, any> | {
165
+ type: EntityType.CustomEntity;
166
+ })[];
167
+ projects: (Record<string, any> | {
168
+ type: EntityType.InstalledProject;
169
+ })[];
170
+ variableDeclarations: (Record<string, any> | {
171
+ type: EntityType.VariableDeclaration;
172
+ })[];
173
+ variableInstances: (Record<string, any> | {
174
+ type: EntityType.VariableInstance;
175
+ })[];
176
+ conditions: (Record<string, any> | {
177
+ type: EntityType.Condition;
178
+ })[];
179
+ operations: (Record<string, any> | {
180
+ type: EntityType.Operation;
181
+ })[];
182
+ functionCalls: (Record<string, any> | {
183
+ type: EntityType.FunctionCall;
184
+ })[];
185
+ loops: (Record<string, any> | {
186
+ type: EntityType.Loop;
187
+ })[];
188
+ searches: (Record<string, any> | {
189
+ type: EntityType.Search;
190
+ })[];
191
+ }, {
192
+ functions: (Record<string, any> | {
193
+ type: EntityType.FunctionDeclaration;
194
+ })[];
195
+ events: (Record<string, any> | {
196
+ type: EntityType.GlobalEvent;
197
+ })[];
198
+ entities: (Record<string, any> | {
199
+ type: EntityType.CustomEntity;
200
+ })[];
201
+ projects: (Record<string, any> | {
202
+ type: EntityType.InstalledProject;
203
+ })[];
204
+ variableDeclarations: (Record<string, any> | {
205
+ type: EntityType.VariableDeclaration;
206
+ })[];
207
+ variableInstances: (Record<string, any> | {
208
+ type: EntityType.VariableInstance;
209
+ })[];
210
+ conditions: (Record<string, any> | {
211
+ type: EntityType.Condition;
212
+ })[];
213
+ operations: (Record<string, any> | {
214
+ type: EntityType.Operation;
215
+ })[];
216
+ functionCalls: (Record<string, any> | {
217
+ type: EntityType.FunctionCall;
218
+ })[];
219
+ loops: (Record<string, any> | {
220
+ type: EntityType.Loop;
221
+ })[];
222
+ searches: (Record<string, any> | {
223
+ type: EntityType.Search;
224
+ })[];
225
+ }>;
226
+ export declare function getProjectSchema(): z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
227
+ id: z.ZodString;
228
+ type: z.ZodLiteral<EntityType.Project>;
229
+ name: z.ZodString;
230
+ description: z.ZodNullable<z.ZodString>;
231
+ }, {
232
+ version: z.ZodNumber;
233
+ }>, {
234
+ entities: z.ZodArray<z.ZodUnion<[z.ZodObject<{
235
+ type: z.ZodLiteral<EntityType.CustomEntity>;
236
+ }, "strip", z.ZodTypeAny, {
237
+ type: EntityType.CustomEntity;
238
+ }, {
239
+ type: EntityType.CustomEntity;
240
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
241
+ functions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
242
+ type: z.ZodLiteral<EntityType.FunctionDeclaration>;
243
+ }, "strip", z.ZodTypeAny, {
244
+ type: EntityType.FunctionDeclaration;
245
+ }, {
246
+ type: EntityType.FunctionDeclaration;
247
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
248
+ events: z.ZodArray<z.ZodUnion<[z.ZodObject<{
249
+ type: z.ZodLiteral<EntityType.GlobalEvent>;
250
+ }, "strip", z.ZodTypeAny, {
251
+ type: EntityType.GlobalEvent;
252
+ }, {
253
+ type: EntityType.GlobalEvent;
254
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
255
+ projects: z.ZodArray<z.ZodUnion<[z.ZodObject<{
256
+ type: z.ZodLiteral<EntityType.InstalledProject>;
257
+ }, "strip", z.ZodTypeAny, {
258
+ type: EntityType.InstalledProject;
259
+ }, {
260
+ type: EntityType.InstalledProject;
261
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
262
+ variableDeclarations: z.ZodArray<z.ZodUnion<[z.ZodObject<{
263
+ type: z.ZodLiteral<EntityType.VariableDeclaration>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ type: EntityType.VariableDeclaration;
266
+ }, {
267
+ type: EntityType.VariableDeclaration;
268
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
269
+ variableInstances: z.ZodArray<z.ZodUnion<[z.ZodObject<{
270
+ type: z.ZodLiteral<EntityType.VariableInstance>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ type: EntityType.VariableInstance;
273
+ }, {
274
+ type: EntityType.VariableInstance;
275
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
276
+ conditions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
277
+ type: z.ZodLiteral<EntityType.Condition>;
278
+ }, "strip", z.ZodTypeAny, {
279
+ type: EntityType.Condition;
280
+ }, {
281
+ type: EntityType.Condition;
282
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
283
+ operations: z.ZodArray<z.ZodUnion<[z.ZodObject<{
284
+ type: z.ZodLiteral<EntityType.Operation>;
285
+ }, "strip", z.ZodTypeAny, {
286
+ type: EntityType.Operation;
287
+ }, {
288
+ type: EntityType.Operation;
289
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
290
+ functionCalls: z.ZodArray<z.ZodUnion<[z.ZodObject<{
291
+ type: z.ZodLiteral<EntityType.FunctionCall>;
292
+ }, "strip", z.ZodTypeAny, {
293
+ type: EntityType.FunctionCall;
294
+ }, {
295
+ type: EntityType.FunctionCall;
296
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
297
+ loops: z.ZodArray<z.ZodUnion<[z.ZodObject<{
298
+ type: z.ZodLiteral<EntityType.Loop>;
299
+ }, "strip", z.ZodTypeAny, {
300
+ type: EntityType.Loop;
301
+ }, {
302
+ type: EntityType.Loop;
303
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
304
+ searches: z.ZodArray<z.ZodUnion<[z.ZodObject<{
305
+ type: z.ZodLiteral<EntityType.Search>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ type: EntityType.Search;
308
+ }, {
309
+ type: EntityType.Search;
310
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>, "many">;
311
+ }>, "strip", z.ZodTypeAny, {
312
+ id: string;
313
+ type: EntityType.Project;
314
+ name: string;
315
+ description: string | null;
316
+ version: number;
317
+ functions: (Record<string, any> | {
318
+ type: EntityType.FunctionDeclaration;
319
+ })[];
320
+ events: (Record<string, any> | {
321
+ type: EntityType.GlobalEvent;
322
+ })[];
323
+ entities: (Record<string, any> | {
324
+ type: EntityType.CustomEntity;
325
+ })[];
326
+ projects: (Record<string, any> | {
327
+ type: EntityType.InstalledProject;
328
+ })[];
329
+ variableDeclarations: (Record<string, any> | {
330
+ type: EntityType.VariableDeclaration;
331
+ })[];
332
+ variableInstances: (Record<string, any> | {
333
+ type: EntityType.VariableInstance;
334
+ })[];
335
+ conditions: (Record<string, any> | {
336
+ type: EntityType.Condition;
337
+ })[];
338
+ operations: (Record<string, any> | {
339
+ type: EntityType.Operation;
340
+ })[];
341
+ functionCalls: (Record<string, any> | {
342
+ type: EntityType.FunctionCall;
343
+ })[];
344
+ loops: (Record<string, any> | {
345
+ type: EntityType.Loop;
346
+ })[];
347
+ searches: (Record<string, any> | {
348
+ type: EntityType.Search;
349
+ })[];
350
+ }, {
351
+ id: string;
352
+ type: EntityType.Project;
353
+ name: string;
354
+ description: string | null;
355
+ version: number;
356
+ functions: (Record<string, any> | {
357
+ type: EntityType.FunctionDeclaration;
358
+ })[];
359
+ events: (Record<string, any> | {
360
+ type: EntityType.GlobalEvent;
361
+ })[];
362
+ entities: (Record<string, any> | {
363
+ type: EntityType.CustomEntity;
364
+ })[];
365
+ projects: (Record<string, any> | {
366
+ type: EntityType.InstalledProject;
367
+ })[];
368
+ variableDeclarations: (Record<string, any> | {
369
+ type: EntityType.VariableDeclaration;
370
+ })[];
371
+ variableInstances: (Record<string, any> | {
372
+ type: EntityType.VariableInstance;
373
+ })[];
374
+ conditions: (Record<string, any> | {
375
+ type: EntityType.Condition;
376
+ })[];
377
+ operations: (Record<string, any> | {
378
+ type: EntityType.Operation;
379
+ })[];
380
+ functionCalls: (Record<string, any> | {
381
+ type: EntityType.FunctionCall;
382
+ })[];
383
+ loops: (Record<string, any> | {
384
+ type: EntityType.Loop;
385
+ })[];
386
+ searches: (Record<string, any> | {
387
+ type: EntityType.Search;
388
+ })[];
389
+ }>;
@@ -0,0 +1 @@
1
+ export * from './property';
@@ -0,0 +1,100 @@
1
+ import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IProperty, IPropertyGenerationTarget, IPropertyReference, IPropertyShallowTransfer, IPropertyTransfer, PropertyTypesUnion } from '../../../../../../../../../src/definitions';
2
+ import { ZodError } from 'zod';
3
+ import { BaseState, ChildEntityState, EntityWithValueClass, UserManagedEntityStateFunctionality } from '../base';
4
+ import { DataTypeState } from '../data-type';
5
+ import { ProjectState } from '../project/project';
6
+ import { PrimitiveEntityState } from '../primitive-entity';
7
+ import { CustomEntityState } from '../custom-entity';
8
+ import { BuiltInBaseEntityState } from '../built-in-base-entity';
9
+ import { EntityError, EntityGenerationError } from '../error';
10
+ import { PrimitiveValueState } from '../primitive-value';
11
+ import { EntityState } from '../types';
12
+
13
+ export declare class PropertyState implements IProperty, UserManagedEntityStateFunctionality, BaseState, ChildEntityState, EntityWithValueClass {
14
+ initialData: IProperty | IPropertyTransfer;
15
+ readonly id: EntityId;
16
+ version: EntityVersion;
17
+ name: string;
18
+ description: string | null;
19
+ private: boolean;
20
+ abstract: boolean;
21
+ index: number;
22
+ static: boolean;
23
+ required: boolean;
24
+ readonly type: EntityType.Property;
25
+ dataType: DataTypeState | null;
26
+ implements: PropertyState | null;
27
+ project: ProjectState;
28
+ errors: EntityError[];
29
+ parent: CustomEntityState | PrimitiveEntityState | BuiltInBaseEntityState;
30
+ initialized: boolean;
31
+ suggestion: boolean;
32
+ constructor(initialPropertyData: IProperty | IPropertyTransfer, parentProjectState: ProjectState);
33
+ static MUTABLE_BASE_PROPERTIES: string[];
34
+ static INMUTABLE_BASE_PROPERTIES: string[];
35
+ static BASE_PROPERTIES: string[];
36
+ static MUTABLE_META_PROPERTIES: string[];
37
+ static INMUTABLE_META_PROPERTIES: string[];
38
+ static META_PROPERTIES: string[];
39
+ static MUTABLE_UPSTREAM_PROPERTIES: string[];
40
+ static INMUTABLE_UPSTREAM_PROPERTIES: string[];
41
+ static UPSTREAM_PROPERTIES: string[];
42
+ static MUTABLE_DOWNSTREAM_PROPERTIES: string[];
43
+ static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
44
+ static DOWNSTREAM_PROPERTIES: string[];
45
+ static PROPERTIES: string[];
46
+ static fromGenerationTarget(data: IPropertyGenerationTarget, parentProjectState: ProjectState): PropertyState;
47
+ static validateGenerationTarget(data: IPropertyGenerationTarget, project: ProjectState): {
48
+ errors: EntityGenerationError[];
49
+ modifiedData: IPropertyGenerationTarget;
50
+ };
51
+ validateGeneratedUpdate(data: Partial<IPropertyGenerationTarget>): {
52
+ errors: EntityGenerationError[];
53
+ modifiedData: Partial<IPropertyGenerationTarget>;
54
+ };
55
+ addSelfToProject(): PropertyState;
56
+ setParent(parent: CustomEntityState | PrimitiveEntityState | BuiltInBaseEntityState): PropertyState;
57
+ initChildren(): PropertyState;
58
+ subscribe(): PropertyState;
59
+ unsubscribe(): PropertyState;
60
+ sync(data: Partial<IProperty>): PropertyState;
61
+ load(): Promise<PropertyState>;
62
+ create(): Promise<PropertyState>;
63
+ update(_: Partial<PropertyTypesUnion>): Promise<PropertyState>;
64
+ delete(): Promise<PropertyState>;
65
+ remove({ ignoreUpstream, seenEntities, }?: {
66
+ ignoreUpstream: boolean;
67
+ seenEntities: Set<string>;
68
+ }): {
69
+ affected: EntityState[];
70
+ removed: EntityState[];
71
+ };
72
+ restore({ seenEntities }?: {
73
+ seenEntities: Set<string>;
74
+ }): {
75
+ affected: EntityState[];
76
+ self: PropertyState;
77
+ };
78
+ toFlat(seenEntities?: Set<string>): EntityState[];
79
+ toFlatIds(seenEntities?: Set<string>): EntityId[];
80
+ toJSON(): IPropertyTransfer;
81
+ toReference(): IPropertyReference;
82
+ toShallowJSON(): IPropertyShallowTransfer;
83
+ toFlatJSON(seenEntities?: Set<string>): ElementShallowTransfer[];
84
+ toGenerationTarget(): IPropertyGenerationTarget;
85
+ toFlatGenerationTarget(seenEntities?: Set<string>): ElementGenerationTarget[];
86
+ clearErrors(): PropertyState;
87
+ validate(): {
88
+ success: boolean;
89
+ error: ZodError | null;
90
+ data: IPropertyTransfer | null;
91
+ };
92
+ getErrors(): EntityError[];
93
+ getShallowErrors(): EntityError[];
94
+ getDefaultValue(): PrimitiveValueState | null;
95
+ clone(parent?: CustomEntityState | null, newId?: string | null, subscribe?: boolean): PropertyState;
96
+ setDataType(dataType: DataTypeState): PropertyState;
97
+ removeDataType(): PropertyState;
98
+ getDataType(): DataTypeState | null;
99
+ }
100
+ export type PropertyPayloadUnion = PropertyState | PropertyTypesUnion;
@@ -0,0 +1,5 @@
1
+ import { EntityError } from '../../error';
2
+ import { PropertyState } from '../property';
3
+
4
+ export declare function validate(self: PropertyState): EntityError[];
5
+ export declare function validateImplementation(self: PropertyState): EntityError[];
@@ -0,0 +1,5 @@
1
+ import { IPropertyGenerationTarget } from '../../../../../../../../../../src/definitions';
2
+ import { EntityGenerationError } from '../../error';
3
+ import { ProjectState } from '../../project';
4
+
5
+ export declare function validateReferenceTypes(data: IPropertyGenerationTarget, project: ProjectState): EntityGenerationError[];