@party-stack/ontology 0.18.0 → 0.19.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 (406) hide show
  1. package/lib/OntologyPullConfig.d.ts +15 -13
  2. package/lib/OntologyPullConfig.d.ts.map +1 -1
  3. package/lib/OntologyPullConfig.js +0 -1
  4. package/lib/_virtual/_rolldown/runtime.js +13 -0
  5. package/lib/cli/format.d.ts +4 -0
  6. package/lib/cli/format.d.ts.map +1 -0
  7. package/lib/cli/format.js +19 -0
  8. package/lib/cli/format.js.map +1 -0
  9. package/lib/cli/generate.d.ts +6 -5
  10. package/lib/cli/generate.d.ts.map +1 -1
  11. package/lib/cli/generate.js +86 -110
  12. package/lib/cli/generate.js.map +1 -1
  13. package/lib/cli/index.d.ts +1 -3
  14. package/lib/cli/index.js +42 -59
  15. package/lib/cli/index.js.map +1 -1
  16. package/lib/cli/pull.d.ts +3 -1
  17. package/lib/cli/pull.d.ts.map +1 -1
  18. package/lib/cli/pull.js +42 -60
  19. package/lib/cli/pull.js.map +1 -1
  20. package/lib/examples/blog.d.ts +347 -345
  21. package/lib/examples/blog.d.ts.map +1 -1
  22. package/lib/examples/blog.js +350 -337
  23. package/lib/examples/blog.js.map +1 -1
  24. package/lib/examples/blog.live-queries.d.ts +8 -3
  25. package/lib/examples/blog.live-queries.d.ts.map +1 -1
  26. package/lib/examples/blog.live-queries.js +28 -44
  27. package/lib/examples/blog.live-queries.js.map +1 -1
  28. package/lib/examples/generated/constants.d.ts +1 -2
  29. package/lib/examples/generated/constants.js +0 -2
  30. package/lib/examples/generated/live.d.ts +5 -3
  31. package/lib/examples/generated/live.d.ts.map +1 -1
  32. package/lib/examples/generated/live.js +12 -8
  33. package/lib/examples/generated/live.js.map +1 -1
  34. package/lib/examples/generated/types.d.ts +52 -50
  35. package/lib/examples/generated/types.d.ts.map +1 -1
  36. package/lib/examples/generated/types.js +0 -2
  37. package/lib/generate/builders.d.ts +8 -5
  38. package/lib/generate/builders.d.ts.map +1 -1
  39. package/lib/generate/builders.js +53 -55
  40. package/lib/generate/builders.js.map +1 -1
  41. package/lib/generate/constants.d.ts +3 -1
  42. package/lib/generate/constants.d.ts.map +1 -1
  43. package/lib/generate/constants.js +23 -26
  44. package/lib/generate/constants.js.map +1 -1
  45. package/lib/generate/index.d.ts +6 -6
  46. package/lib/generate/index.js +6 -6
  47. package/lib/generate/live.d.ts +8 -6
  48. package/lib/generate/live.d.ts.map +1 -1
  49. package/lib/generate/live.js +43 -42
  50. package/lib/generate/live.js.map +1 -1
  51. package/lib/generate/ontology.d.ts +4 -2
  52. package/lib/generate/ontology.d.ts.map +1 -1
  53. package/lib/generate/ontology.js +453 -354
  54. package/lib/generate/ontology.js.map +1 -1
  55. package/lib/generate/types.d.ts +7 -6
  56. package/lib/generate/types.d.ts.map +1 -1
  57. package/lib/generate/types.js +190 -262
  58. package/lib/generate/types.js.map +1 -1
  59. package/lib/generate/utils/buildJsDocs.d.ts +7 -4
  60. package/lib/generate/utils/buildJsDocs.d.ts.map +1 -1
  61. package/lib/generate/utils/buildJsDocs.js +14 -10
  62. package/lib/generate/utils/buildJsDocs.js.map +1 -1
  63. package/lib/index.d.ts +30 -13
  64. package/lib/index.js +18 -10
  65. package/lib/infer.d.ts +129 -152
  66. package/lib/infer.d.ts.map +1 -1
  67. package/lib/infer.js +10 -6
  68. package/lib/infer.js.map +1 -1
  69. package/lib/installation/createMetaOntologyConfiguration.d.ts +6 -3
  70. package/lib/installation/createMetaOntologyConfiguration.d.ts.map +1 -1
  71. package/lib/installation/createMetaOntologyConfiguration.js +13 -11
  72. package/lib/installation/createMetaOntologyConfiguration.js.map +1 -1
  73. package/lib/installation/createOntologyBackendInstallation.d.ts +3 -1
  74. package/lib/installation/createOntologyBackendInstallation.d.ts.map +1 -1
  75. package/lib/installation/createOntologyBackendInstallation.js +205 -268
  76. package/lib/installation/createOntologyBackendInstallation.js.map +1 -1
  77. package/lib/installation/index.d.ts +4 -4
  78. package/lib/installation/index.js +3 -3
  79. package/lib/installation/types.d.ts +83 -80
  80. package/lib/installation/types.d.ts.map +1 -1
  81. package/lib/installation/types.js +0 -1
  82. package/lib/ir/generated/builders.d.ts +294 -382
  83. package/lib/ir/generated/builders.d.ts.map +1 -1
  84. package/lib/ir/generated/builders.js +180 -119
  85. package/lib/ir/generated/builders.js.map +1 -1
  86. package/lib/ir/generated/constants.d.ts +137 -135
  87. package/lib/ir/generated/constants.d.ts.map +1 -1
  88. package/lib/ir/generated/constants.js +162 -129
  89. package/lib/ir/generated/constants.js.map +1 -1
  90. package/lib/ir/generated/types.d.ts +239 -234
  91. package/lib/ir/generated/types.d.ts.map +1 -1
  92. package/lib/ir/generated/types.js +0 -2
  93. package/lib/ir/index.d.ts +4 -4
  94. package/lib/ir/index.js +3 -4
  95. package/lib/ir/schema.d.ts +2174 -2172
  96. package/lib/ir/schema.d.ts.map +1 -1
  97. package/lib/ir/schema.js +1184 -1343
  98. package/lib/ir/schema.js.map +1 -1
  99. package/lib/ir/validate.d.ts +5 -3
  100. package/lib/ir/validate.d.ts.map +1 -1
  101. package/lib/ir/validate.js +589 -707
  102. package/lib/ir/validate.js.map +1 -1
  103. package/lib/json/index.d.ts +10 -8
  104. package/lib/json/index.d.ts.map +1 -1
  105. package/lib/json/index.js +101 -135
  106. package/lib/json/index.js.map +1 -1
  107. package/lib/lenses.d.ts +7 -4
  108. package/lib/lenses.d.ts.map +1 -1
  109. package/lib/lenses.js +96 -132
  110. package/lib/lenses.js.map +1 -1
  111. package/lib/live/LiveOntology.d.ts +55 -60
  112. package/lib/live/LiveOntology.d.ts.map +1 -1
  113. package/lib/live/LiveOntology.js +98 -124
  114. package/lib/live/LiveOntology.js.map +1 -1
  115. package/lib/live/OntologyBackendAdapter.d.ts +79 -76
  116. package/lib/live/OntologyBackendAdapter.d.ts.map +1 -1
  117. package/lib/live/OntologyBackendAdapter.js +0 -1
  118. package/lib/live/actions/createLiveOntologyAction.d.ts +27 -24
  119. package/lib/live/actions/createLiveOntologyAction.d.ts.map +1 -1
  120. package/lib/live/actions/createLiveOntologyAction.js +24 -21
  121. package/lib/live/actions/createLiveOntologyAction.js.map +1 -1
  122. package/lib/live/actions/createLiveOntologyActions.d.ts +23 -20
  123. package/lib/live/actions/createLiveOntologyActions.d.ts.map +1 -1
  124. package/lib/live/actions/createLiveOntologyActions.js +131 -161
  125. package/lib/live/actions/createLiveOntologyActions.js.map +1 -1
  126. package/lib/live/actions/prepareActionParameters.d.ts +14 -11
  127. package/lib/live/actions/prepareActionParameters.d.ts.map +1 -1
  128. package/lib/live/actions/prepareActionParameters.js +190 -228
  129. package/lib/live/actions/prepareActionParameters.js.map +1 -1
  130. package/lib/live/attachments/attachmentSources.d.ts +7 -4
  131. package/lib/live/attachments/attachmentSources.d.ts.map +1 -1
  132. package/lib/live/attachments/attachmentSources.js +55 -71
  133. package/lib/live/attachments/attachmentSources.js.map +1 -1
  134. package/lib/live/attachments/createLiveOntologyAttachments.d.ts +47 -45
  135. package/lib/live/attachments/createLiveOntologyAttachments.d.ts.map +1 -1
  136. package/lib/live/attachments/createLiveOntologyAttachments.js +65 -83
  137. package/lib/live/attachments/createLiveOntologyAttachments.js.map +1 -1
  138. package/lib/live/attachments/types.d.ts +10 -9
  139. package/lib/live/attachments/types.d.ts.map +1 -1
  140. package/lib/live/attachments/types.js +0 -1
  141. package/lib/live/attachments/unsupportedOntologyAttachmentsAdapter.d.ts +3 -1
  142. package/lib/live/attachments/unsupportedOntologyAttachmentsAdapter.d.ts.map +1 -1
  143. package/lib/live/attachments/unsupportedOntologyAttachmentsAdapter.js +5 -3
  144. package/lib/live/attachments/unsupportedOntologyAttachmentsAdapter.js.map +1 -1
  145. package/lib/live/expression.d.ts +16 -14
  146. package/lib/live/expression.d.ts.map +1 -1
  147. package/lib/live/expression.js +142 -223
  148. package/lib/live/expression.js.map +1 -1
  149. package/lib/live/index.d.ts +12 -9
  150. package/lib/live/index.js +6 -8
  151. package/lib/live/mutators/OntologyEdits.d.ts +12 -9
  152. package/lib/live/mutators/OntologyEdits.d.ts.map +1 -1
  153. package/lib/live/mutators/OntologyEdits.js +57 -74
  154. package/lib/live/mutators/OntologyEdits.js.map +1 -1
  155. package/lib/live/mutators/createMutatorTx.d.ts +7 -5
  156. package/lib/live/mutators/createMutatorTx.d.ts.map +1 -1
  157. package/lib/live/mutators/createMutatorTx.js +53 -69
  158. package/lib/live/mutators/createMutatorTx.js.map +1 -1
  159. package/lib/live/mutators/runOptimisticAction.d.ts +16 -13
  160. package/lib/live/mutators/runOptimisticAction.d.ts.map +1 -1
  161. package/lib/live/mutators/runOptimisticAction.js +26 -26
  162. package/lib/live/mutators/runOptimisticAction.js.map +1 -1
  163. package/lib/live/mutators/types.d.ts +18 -16
  164. package/lib/live/mutators/types.d.ts.map +1 -1
  165. package/lib/live/mutators/types.js +0 -1
  166. package/lib/live/objects/OntologyObject.d.ts +2 -0
  167. package/lib/live/objects/OntologyObject.d.ts.map +1 -1
  168. package/lib/live/objects/OntologyObject.js +0 -1
  169. package/lib/live/objects/createLiveOntologyObjectCollection.d.ts +13 -10
  170. package/lib/live/objects/createLiveOntologyObjectCollection.d.ts.map +1 -1
  171. package/lib/live/objects/createLiveOntologyObjectCollection.js +49 -53
  172. package/lib/live/objects/createLiveOntologyObjectCollection.js.map +1 -1
  173. package/lib/live/objects/ontologyObjectCollectionId.d.ts +2 -0
  174. package/lib/live/objects/ontologyObjectCollectionId.d.ts.map +1 -1
  175. package/lib/live/objects/ontologyObjectCollectionId.js +6 -2
  176. package/lib/live/objects/ontologyObjectCollectionId.js.map +1 -1
  177. package/lib/live/outbox/createOntologyOutbox.d.ts +16 -14
  178. package/lib/live/outbox/createOntologyOutbox.d.ts.map +1 -1
  179. package/lib/live/outbox/createOntologyOutbox.js +275 -326
  180. package/lib/live/outbox/createOntologyOutbox.js.map +1 -1
  181. package/lib/live/outbox/leaderExecutor.d.ts +15 -13
  182. package/lib/live/outbox/leaderExecutor.d.ts.map +1 -1
  183. package/lib/live/outbox/leaderExecutor.js +114 -153
  184. package/lib/live/outbox/leaderExecutor.js.map +1 -1
  185. package/lib/live/outbox/outboxService.d.ts +4 -2
  186. package/lib/live/outbox/outboxService.d.ts.map +1 -1
  187. package/lib/live/outbox/outboxService.js +66 -71
  188. package/lib/live/outbox/outboxService.js.map +1 -1
  189. package/lib/live/outbox/projectionManager.d.ts +26 -24
  190. package/lib/live/outbox/projectionManager.d.ts.map +1 -1
  191. package/lib/live/outbox/projectionManager.js +121 -147
  192. package/lib/live/outbox/projectionManager.js.map +1 -1
  193. package/lib/live/outbox/repository.d.ts +27 -25
  194. package/lib/live/outbox/repository.d.ts.map +1 -1
  195. package/lib/live/outbox/repository.js +192 -241
  196. package/lib/live/outbox/repository.js.map +1 -1
  197. package/lib/live/outbox/service.d.ts +52 -50
  198. package/lib/live/outbox/service.d.ts.map +1 -1
  199. package/lib/live/outbox/service.js +5 -1
  200. package/lib/live/outbox/service.js.map +1 -1
  201. package/lib/live/outbox/types.d.ts +35 -33
  202. package/lib/live/outbox/types.d.ts.map +1 -1
  203. package/lib/live/outbox/types.js +10 -6
  204. package/lib/live/outbox/types.js.map +1 -1
  205. package/lib/live/waitForCollectionReady.d.ts +3 -1
  206. package/lib/live/waitForCollectionReady.d.ts.map +1 -1
  207. package/lib/live/waitForCollectionReady.js +44 -65
  208. package/lib/live/waitForCollectionReady.js.map +1 -1
  209. package/lib/meta/createLocalMetaOntologyBackendAdapter.d.ts +5 -2
  210. package/lib/meta/createLocalMetaOntologyBackendAdapter.d.ts.map +1 -1
  211. package/lib/meta/createLocalMetaOntologyBackendAdapter.js +37 -39
  212. package/lib/meta/createLocalMetaOntologyBackendAdapter.js.map +1 -1
  213. package/lib/meta/generated/constants.d.ts +137 -135
  214. package/lib/meta/generated/constants.d.ts.map +1 -1
  215. package/lib/meta/generated/constants.js +162 -129
  216. package/lib/meta/generated/constants.js.map +1 -1
  217. package/lib/meta/generated/live.d.ts +5 -2
  218. package/lib/meta/generated/live.d.ts.map +1 -1
  219. package/lib/meta/generated/live.js +12 -8
  220. package/lib/meta/generated/live.js.map +1 -1
  221. package/lib/meta/generated/types.d.ts +233 -231
  222. package/lib/meta/generated/types.d.ts.map +1 -1
  223. package/lib/meta/generated/types.js +0 -2
  224. package/lib/meta/ontology.d.ts +23 -21
  225. package/lib/meta/ontology.d.ts.map +1 -1
  226. package/lib/meta/ontology.js +100 -104
  227. package/lib/meta/ontology.js.map +1 -1
  228. package/lib/meta/pull.d.ts +8 -6
  229. package/lib/meta/pull.d.ts.map +1 -1
  230. package/lib/meta/pull.js +39 -52
  231. package/lib/meta/pull.js.map +1 -1
  232. package/lib/utils/index.d.ts +8 -8
  233. package/lib/utils/index.js +5 -6
  234. package/lib/utils/links.d.ts +34 -32
  235. package/lib/utils/links.d.ts.map +1 -1
  236. package/lib/utils/links.js +10 -17
  237. package/lib/utils/links.js.map +1 -1
  238. package/lib/utils/paths.d.ts +2 -0
  239. package/lib/utils/paths.d.ts.map +1 -1
  240. package/lib/utils/paths.js +32 -44
  241. package/lib/utils/paths.js.map +1 -1
  242. package/lib/utils/provide.d.ts +2 -0
  243. package/lib/utils/provide.d.ts.map +1 -1
  244. package/lib/utils/provide.js +7 -9
  245. package/lib/utils/provide.js.map +1 -1
  246. package/lib/utils/targets.d.ts +20 -18
  247. package/lib/utils/targets.d.ts.map +1 -1
  248. package/lib/utils/targets.js +0 -1
  249. package/lib/utils/typeNames.d.ts +10 -8
  250. package/lib/utils/typeNames.d.ts.map +1 -1
  251. package/lib/utils/typeNames.js +0 -1
  252. package/lib/utils/types.d.ts +6 -4
  253. package/lib/utils/types.d.ts.map +1 -1
  254. package/lib/utils/types.js +38 -38
  255. package/lib/utils/types.js.map +1 -1
  256. package/lib/utils/uncertain.d.ts +5 -3
  257. package/lib/utils/uncertain.d.ts.map +1 -1
  258. package/lib/utils/uncertain.js +11 -9
  259. package/lib/utils/uncertain.js.map +1 -1
  260. package/lib/utils/validation.d.ts +4 -2
  261. package/lib/utils/validation.d.ts.map +1 -1
  262. package/lib/utils/validation.js +0 -1
  263. package/lib/utils/values.d.ts +21 -18
  264. package/lib/utils/values.d.ts.map +1 -1
  265. package/lib/utils/values.js +0 -1
  266. package/package.json +22 -25
  267. package/lib/OntologyPullConfig.js.map +0 -1
  268. package/lib/cli/index.d.ts.map +0 -1
  269. package/lib/cli/index.test.d.ts +0 -2
  270. package/lib/cli/index.test.d.ts.map +0 -1
  271. package/lib/cli/index.test.js +0 -34
  272. package/lib/cli/index.test.js.map +0 -1
  273. package/lib/cli/pull.test.d.ts +0 -2
  274. package/lib/cli/pull.test.d.ts.map +0 -1
  275. package/lib/cli/pull.test.js +0 -125
  276. package/lib/cli/pull.test.js.map +0 -1
  277. package/lib/examples/generated/constants.d.ts.map +0 -1
  278. package/lib/examples/generated/constants.js.map +0 -1
  279. package/lib/examples/generated/types.js.map +0 -1
  280. package/lib/generate/builders.test.d.ts +0 -2
  281. package/lib/generate/builders.test.d.ts.map +0 -1
  282. package/lib/generate/builders.test.js +0 -49
  283. package/lib/generate/builders.test.js.map +0 -1
  284. package/lib/generate/index.d.ts.map +0 -1
  285. package/lib/generate/index.js.map +0 -1
  286. package/lib/generate/live.test.d.ts +0 -2
  287. package/lib/generate/live.test.d.ts.map +0 -1
  288. package/lib/generate/live.test.js +0 -22
  289. package/lib/generate/live.test.js.map +0 -1
  290. package/lib/generate/ontology.test.d.ts +0 -2
  291. package/lib/generate/ontology.test.d.ts.map +0 -1
  292. package/lib/generate/ontology.test.js +0 -157
  293. package/lib/generate/ontology.test.js.map +0 -1
  294. package/lib/generate/types.test.d.ts +0 -2
  295. package/lib/generate/types.test.d.ts.map +0 -1
  296. package/lib/generate/types.test.js +0 -304
  297. package/lib/generate/types.test.js.map +0 -1
  298. package/lib/index.d.ts.map +0 -1
  299. package/lib/index.js.map +0 -1
  300. package/lib/infer.test.d.ts +0 -2
  301. package/lib/infer.test.d.ts.map +0 -1
  302. package/lib/infer.test.js +0 -125
  303. package/lib/infer.test.js.map +0 -1
  304. package/lib/installation/createMetaOntologyConfiguration.test.d.ts +0 -2
  305. package/lib/installation/createMetaOntologyConfiguration.test.d.ts.map +0 -1
  306. package/lib/installation/createMetaOntologyConfiguration.test.js +0 -20
  307. package/lib/installation/createMetaOntologyConfiguration.test.js.map +0 -1
  308. package/lib/installation/createOntologyBackendInstallation.test.d.ts +0 -2
  309. package/lib/installation/createOntologyBackendInstallation.test.d.ts.map +0 -1
  310. package/lib/installation/createOntologyBackendInstallation.test.js +0 -320
  311. package/lib/installation/createOntologyBackendInstallation.test.js.map +0 -1
  312. package/lib/installation/index.d.ts.map +0 -1
  313. package/lib/installation/index.js.map +0 -1
  314. package/lib/installation/types.js.map +0 -1
  315. package/lib/ir/generated/types.js.map +0 -1
  316. package/lib/ir/index.d.ts.map +0 -1
  317. package/lib/ir/index.js.map +0 -1
  318. package/lib/ir/validate.test.d.ts +0 -2
  319. package/lib/ir/validate.test.d.ts.map +0 -1
  320. package/lib/ir/validate.test.js +0 -1061
  321. package/lib/ir/validate.test.js.map +0 -1
  322. package/lib/json/index.test.d.ts +0 -2
  323. package/lib/json/index.test.d.ts.map +0 -1
  324. package/lib/json/index.test.js +0 -142
  325. package/lib/json/index.test.js.map +0 -1
  326. package/lib/lenses.test.d.ts +0 -2
  327. package/lib/lenses.test.d.ts.map +0 -1
  328. package/lib/lenses.test.js +0 -80
  329. package/lib/lenses.test.js.map +0 -1
  330. package/lib/live/LiveOntology.test.d.ts +0 -2
  331. package/lib/live/LiveOntology.test.d.ts.map +0 -1
  332. package/lib/live/LiveOntology.test.js +0 -507
  333. package/lib/live/LiveOntology.test.js.map +0 -1
  334. package/lib/live/OntologyBackendAdapter.js.map +0 -1
  335. package/lib/live/actions/createLiveOntologyAction.test.d.ts +0 -2
  336. package/lib/live/actions/createLiveOntologyAction.test.d.ts.map +0 -1
  337. package/lib/live/actions/createLiveOntologyAction.test.js +0 -232
  338. package/lib/live/actions/createLiveOntologyAction.test.js.map +0 -1
  339. package/lib/live/actions/prepareActionParameters.test.d.ts +0 -2
  340. package/lib/live/actions/prepareActionParameters.test.d.ts.map +0 -1
  341. package/lib/live/actions/prepareActionParameters.test.js +0 -165
  342. package/lib/live/actions/prepareActionParameters.test.js.map +0 -1
  343. package/lib/live/attachments/attachmentMetadata.test.d.ts +0 -2
  344. package/lib/live/attachments/attachmentMetadata.test.d.ts.map +0 -1
  345. package/lib/live/attachments/attachmentMetadata.test.js +0 -73
  346. package/lib/live/attachments/attachmentMetadata.test.js.map +0 -1
  347. package/lib/live/attachments/createLiveOntologyAttachments.test.d.ts +0 -2
  348. package/lib/live/attachments/createLiveOntologyAttachments.test.d.ts.map +0 -1
  349. package/lib/live/attachments/createLiveOntologyAttachments.test.js +0 -363
  350. package/lib/live/attachments/createLiveOntologyAttachments.test.js.map +0 -1
  351. package/lib/live/attachments/types.js.map +0 -1
  352. package/lib/live/expression.test.d.ts +0 -2
  353. package/lib/live/expression.test.d.ts.map +0 -1
  354. package/lib/live/expression.test.js +0 -281
  355. package/lib/live/expression.test.js.map +0 -1
  356. package/lib/live/index.d.ts.map +0 -1
  357. package/lib/live/index.js.map +0 -1
  358. package/lib/live/mutators/OntologyEdits.test.d.ts +0 -2
  359. package/lib/live/mutators/OntologyEdits.test.d.ts.map +0 -1
  360. package/lib/live/mutators/OntologyEdits.test.js +0 -85
  361. package/lib/live/mutators/OntologyEdits.test.js.map +0 -1
  362. package/lib/live/mutators/createMutatorTx.test.d.ts +0 -2
  363. package/lib/live/mutators/createMutatorTx.test.d.ts.map +0 -1
  364. package/lib/live/mutators/createMutatorTx.test.js +0 -182
  365. package/lib/live/mutators/createMutatorTx.test.js.map +0 -1
  366. package/lib/live/mutators/types.js.map +0 -1
  367. package/lib/live/objects/OntologyObject.js.map +0 -1
  368. package/lib/live/objects/createLiveOntologyObjectCollection.test.d.ts +0 -2
  369. package/lib/live/objects/createLiveOntologyObjectCollection.test.d.ts.map +0 -1
  370. package/lib/live/objects/createLiveOntologyObjectCollection.test.js +0 -181
  371. package/lib/live/objects/createLiveOntologyObjectCollection.test.js.map +0 -1
  372. package/lib/live/outbox/createOntologyOutbox.test.d.ts +0 -2
  373. package/lib/live/outbox/createOntologyOutbox.test.d.ts.map +0 -1
  374. package/lib/live/outbox/createOntologyOutbox.test.js +0 -1007
  375. package/lib/live/outbox/createOntologyOutbox.test.js.map +0 -1
  376. package/lib/live/outbox/outboxValues.d.ts +0 -7
  377. package/lib/live/outbox/outboxValues.d.ts.map +0 -1
  378. package/lib/live/outbox/outboxValues.js +0 -76
  379. package/lib/live/outbox/outboxValues.js.map +0 -1
  380. package/lib/meta/generated/types.js.map +0 -1
  381. package/lib/meta/ontology.test.d.ts +0 -2
  382. package/lib/meta/ontology.test.d.ts.map +0 -1
  383. package/lib/meta/ontology.test.js +0 -84
  384. package/lib/meta/ontology.test.js.map +0 -1
  385. package/lib/utils/index.d.ts.map +0 -1
  386. package/lib/utils/index.js.map +0 -1
  387. package/lib/utils/links.test.d.ts +0 -2
  388. package/lib/utils/links.test.d.ts.map +0 -1
  389. package/lib/utils/links.test.js +0 -109
  390. package/lib/utils/links.test.js.map +0 -1
  391. package/lib/utils/paths.test.d.ts +0 -2
  392. package/lib/utils/paths.test.d.ts.map +0 -1
  393. package/lib/utils/paths.test.js +0 -33
  394. package/lib/utils/paths.test.js.map +0 -1
  395. package/lib/utils/targets.js.map +0 -1
  396. package/lib/utils/typeNames.js.map +0 -1
  397. package/lib/utils/types.test.d.ts +0 -2
  398. package/lib/utils/types.test.d.ts.map +0 -1
  399. package/lib/utils/types.test.js +0 -157
  400. package/lib/utils/types.test.js.map +0 -1
  401. package/lib/utils/uncertain.test.d.ts +0 -2
  402. package/lib/utils/uncertain.test.d.ts.map +0 -1
  403. package/lib/utils/uncertain.test.js +0 -14
  404. package/lib/utils/uncertain.test.js.map +0 -1
  405. package/lib/utils/validation.js.map +0 -1
  406. package/lib/utils/values.js.map +0 -1
@@ -1,3 +1,4 @@
1
+ //#region src/examples/blog.d.ts
1
2
  /**
2
3
  * Example: Blog ontology with Authors, Posts, and Comments.
3
4
  *
@@ -10,376 +11,377 @@
10
11
  * - Optional properties and timestamps
11
12
  */
12
13
  declare const _default: {
13
- types: {
14
- name: string;
15
- description: string;
16
- type: {
17
- kind: "struct";
14
+ types: {
15
+ name: string;
16
+ description: string;
17
+ type: {
18
+ kind: "struct";
19
+ value: {
20
+ readonly fields: [{
21
+ readonly name: "line1";
22
+ readonly displayName: "Line 1";
23
+ readonly type: {
24
+ kind: "string";
25
+ value: {};
26
+ };
27
+ }, {
28
+ readonly name: "line2";
29
+ readonly displayName: "Line 2";
30
+ readonly type: {
31
+ kind: "optional";
18
32
  value: {
19
- readonly fields: [{
20
- readonly name: "line1";
21
- readonly displayName: "Line 1";
22
- readonly type: {
23
- kind: "string";
24
- value: {};
25
- };
26
- }, {
27
- readonly name: "line2";
28
- readonly displayName: "Line 2";
29
- readonly type: {
30
- kind: "optional";
31
- value: {
32
- readonly type: {
33
- kind: "string";
34
- value: {};
35
- };
36
- };
37
- };
38
- }, {
39
- readonly name: "city";
40
- readonly displayName: "City";
41
- readonly type: {
42
- kind: "string";
43
- value: {};
44
- };
45
- }, {
46
- readonly name: "state";
47
- readonly displayName: "State";
48
- readonly type: {
49
- kind: "string";
50
- value: {};
51
- };
52
- }, {
53
- readonly name: "zip";
54
- readonly displayName: "ZIP";
55
- readonly type: {
56
- kind: "string";
57
- value: {};
58
- };
59
- }];
60
- };
61
- };
62
- }[];
63
- objectTypes: ({
64
- name: string;
65
- displayName: string;
66
- pluralDisplayName: string;
67
- description: string;
68
- primaryKey: string;
69
- properties: ({
70
- name: string;
71
- displayName: string;
72
- type: {
33
+ readonly type: {
73
34
  kind: "string";
74
35
  value: {};
36
+ };
75
37
  };
76
- description?: undefined;
77
- } | {
78
- name: string;
79
- displayName: string;
80
- type: {
81
- kind: "optional";
82
- value: {
83
- readonly type: {
84
- kind: "string";
85
- value: {};
86
- };
87
- };
88
- };
89
- description?: undefined;
90
- } | {
91
- name: string;
92
- displayName: string;
93
- description: string;
94
- type: {
95
- kind: "optional";
96
- value: {
97
- readonly type: {
98
- kind: "attachment";
99
- value: {};
100
- };
101
- };
102
- };
103
- } | {
104
- name: string;
105
- displayName: string;
106
- type: {
107
- kind: "optional";
108
- value: {
109
- readonly type: {
110
- kind: "ref";
111
- value: {
112
- readonly name: "Address";
113
- };
114
- };
115
- };
116
- };
117
- description?: undefined;
118
- } | {
119
- name: string;
120
- displayName: string;
121
- type: {
122
- kind: "timestamp";
123
- value: {};
124
- };
125
- description?: undefined;
126
- })[];
38
+ };
39
+ }, {
40
+ readonly name: "city";
41
+ readonly displayName: "City";
42
+ readonly type: {
43
+ kind: "string";
44
+ value: {};
45
+ };
46
+ }, {
47
+ readonly name: "state";
48
+ readonly displayName: "State";
49
+ readonly type: {
50
+ kind: "string";
51
+ value: {};
52
+ };
53
+ }, {
54
+ readonly name: "zip";
55
+ readonly displayName: "ZIP";
56
+ readonly type: {
57
+ kind: "string";
58
+ value: {};
59
+ };
60
+ }];
61
+ };
62
+ };
63
+ }[];
64
+ objectTypes: ({
65
+ name: string;
66
+ displayName: string;
67
+ pluralDisplayName: string;
68
+ description: string;
69
+ primaryKey: string;
70
+ properties: ({
71
+ name: string;
72
+ displayName: string;
73
+ type: {
74
+ kind: "string";
75
+ value: {};
76
+ };
77
+ description?: undefined;
127
78
  } | {
128
- name: string;
129
- displayName: string;
130
- pluralDisplayName: string;
131
- description: string;
132
- primaryKey: string;
133
- properties: ({
134
- name: string;
135
- displayName: string;
136
- type: {
137
- kind: "string";
138
- value: {};
139
- };
140
- } | {
141
- name: string;
142
- displayName: string;
143
- type: {
144
- kind: "optional";
145
- value: {
146
- readonly type: {
147
- kind: "attachment";
148
- value: {};
149
- };
150
- };
151
- };
152
- } | {
153
- name: string;
154
- displayName: string;
155
- type: {
156
- kind: "list";
157
- value: {
158
- readonly elementType: {
159
- kind: "string";
160
- value: {};
161
- };
162
- };
163
- };
164
- } | {
165
- name: string;
166
- displayName: string;
167
- type: {
168
- kind: "timestamp";
169
- value: {};
170
- };
171
- } | {
172
- name: string;
173
- displayName: string;
174
- type: {
175
- kind: "optional";
176
- value: {
177
- readonly type: {
178
- kind: "timestamp";
179
- value: {};
180
- };
181
- };
79
+ name: string;
80
+ displayName: string;
81
+ type: {
82
+ kind: "optional";
83
+ value: {
84
+ readonly type: {
85
+ kind: "string";
86
+ value: {};
87
+ };
88
+ };
89
+ };
90
+ description?: undefined;
91
+ } | {
92
+ name: string;
93
+ displayName: string;
94
+ description: string;
95
+ type: {
96
+ kind: "optional";
97
+ value: {
98
+ readonly type: {
99
+ kind: "attachment";
100
+ value: {};
101
+ };
102
+ };
103
+ };
104
+ } | {
105
+ description?: undefined;
106
+ name: string;
107
+ displayName: string;
108
+ type: {
109
+ kind: "optional";
110
+ value: {
111
+ readonly type: {
112
+ kind: "ref";
113
+ value: {
114
+ readonly name: "Address";
182
115
  };
183
- })[];
116
+ };
117
+ };
118
+ };
119
+ } | {
120
+ description?: undefined;
121
+ name: string;
122
+ displayName: string;
123
+ type: {
124
+ kind: "timestamp";
125
+ value: {};
126
+ };
184
127
  })[];
185
- linkTypes: ({
186
- id: string;
187
- source: {
188
- objectType: string;
189
- name: string;
190
- displayName: string;
128
+ } | {
129
+ name: string;
130
+ displayName: string;
131
+ pluralDisplayName: string;
132
+ description: string;
133
+ primaryKey: string;
134
+ properties: ({
135
+ name: string;
136
+ displayName: string;
137
+ type: {
138
+ kind: "string";
139
+ value: {};
140
+ };
141
+ } | {
142
+ name: string;
143
+ displayName: string;
144
+ type: {
145
+ kind: "optional";
146
+ value: {
147
+ readonly type: {
148
+ kind: "attachment";
149
+ value: {};
150
+ };
151
+ };
152
+ };
153
+ } | {
154
+ name: string;
155
+ displayName: string;
156
+ type: {
157
+ kind: "list";
158
+ value: {
159
+ readonly elementType: {
160
+ kind: "string";
161
+ value: {};
162
+ };
191
163
  };
192
- target: {
193
- objectType: string;
194
- name: string;
195
- displayName: string;
164
+ };
165
+ } | {
166
+ name: string;
167
+ displayName: string;
168
+ type: {
169
+ kind: "timestamp";
170
+ value: {};
171
+ };
172
+ } | {
173
+ name: string;
174
+ displayName: string;
175
+ type: {
176
+ kind: "optional";
177
+ value: {
178
+ readonly type: {
179
+ kind: "timestamp";
180
+ value: {};
181
+ };
196
182
  };
197
- foreignKey: string;
198
- cardinality: "many";
183
+ };
184
+ })[];
185
+ })[];
186
+ linkTypes: ({
187
+ id: string;
188
+ source: {
189
+ objectType: string;
190
+ name: string;
191
+ displayName: string;
192
+ };
193
+ target: {
194
+ objectType: string;
195
+ name: string;
196
+ displayName: string;
197
+ };
198
+ foreignKey: string;
199
+ cardinality: "many";
200
+ } | {
201
+ id: string;
202
+ source: {
203
+ objectType: string;
204
+ name: string;
205
+ displayName: string;
206
+ };
207
+ target: {
208
+ objectType: string;
209
+ name: string;
210
+ displayName: string;
211
+ };
212
+ foreignKey: string;
213
+ cardinality: "one";
214
+ })[];
215
+ actionTypes: {
216
+ name: string;
217
+ displayName: string;
218
+ description: string;
219
+ parameters: ({
220
+ name: string;
221
+ displayName: string;
222
+ type: {
223
+ kind: "string";
224
+ value: {};
225
+ };
226
+ defaultValue: {
227
+ kind: "uuid";
228
+ value: {};
229
+ };
199
230
  } | {
200
- id: string;
201
- source: {
202
- objectType: string;
203
- name: string;
204
- displayName: string;
231
+ name: string;
232
+ displayName: string;
233
+ type: {
234
+ kind: "objectReference";
235
+ value: {
236
+ readonly objectType: "Author";
205
237
  };
206
- target: {
207
- objectType: string;
208
- name: string;
209
- displayName: string;
238
+ };
239
+ defaultValue?: undefined;
240
+ } | {
241
+ name: string;
242
+ displayName: string;
243
+ type: {
244
+ kind: "string";
245
+ value: {};
246
+ };
247
+ defaultValue?: undefined;
248
+ } | {
249
+ name: string;
250
+ displayName: string;
251
+ type: {
252
+ kind: "list";
253
+ value: {
254
+ readonly elementType: {
255
+ kind: "string";
256
+ value: {};
257
+ };
210
258
  };
211
- foreignKey: string;
212
- cardinality: "one";
259
+ };
260
+ defaultValue?: undefined;
261
+ } | {
262
+ name: string;
263
+ displayName: string;
264
+ type: {
265
+ kind: "timestamp";
266
+ value: {};
267
+ };
268
+ defaultValue: {
269
+ kind: "now";
270
+ value: {};
271
+ };
213
272
  })[];
214
- actionTypes: {
215
- name: string;
216
- displayName: string;
217
- description: string;
218
- parameters: ({
219
- name: string;
220
- displayName: string;
221
- type: {
222
- kind: "string";
223
- value: {};
224
- };
225
- defaultValue: {
226
- kind: "uuid";
227
- value: {};
273
+ logic: {
274
+ kind: "createObject";
275
+ value: {
276
+ readonly objectType: "Post";
277
+ readonly values: [{
278
+ readonly property: ["postId"];
279
+ readonly value: {
280
+ kind: "inputReference";
281
+ value: {
282
+ readonly name: "postId";
228
283
  };
229
- } | {
230
- name: string;
231
- displayName: string;
232
- type: {
233
- kind: "objectReference";
234
- value: {
235
- readonly objectType: "Author";
236
- };
284
+ };
285
+ }, {
286
+ readonly property: ["title"];
287
+ readonly value: {
288
+ kind: "inputReference";
289
+ value: {
290
+ readonly name: "title";
237
291
  };
238
- defaultValue?: undefined;
239
- } | {
240
- name: string;
241
- displayName: string;
242
- type: {
243
- kind: "string";
244
- value: {};
292
+ };
293
+ }, {
294
+ readonly property: ["body"];
295
+ readonly value: {
296
+ kind: "inputReference";
297
+ value: {
298
+ readonly name: "body";
245
299
  };
246
- defaultValue?: undefined;
247
- } | {
248
- name: string;
249
- displayName: string;
250
- type: {
251
- kind: "list";
300
+ };
301
+ }, {
302
+ readonly property: ["authorId"];
303
+ readonly value: {
304
+ kind: "getAt";
305
+ value: {
306
+ readonly source: {
307
+ kind: "objectLookup";
252
308
  value: {
253
- readonly elementType: {
254
- kind: "string";
255
- value: {};
309
+ readonly reference: {
310
+ kind: "inputReference";
311
+ value: {
312
+ readonly name: "author";
256
313
  };
314
+ };
257
315
  };
316
+ };
317
+ readonly path: ["authorId"];
258
318
  };
259
- defaultValue?: undefined;
260
- } | {
261
- name: string;
262
- displayName: string;
263
- type: {
264
- kind: "timestamp";
265
- value: {};
266
- };
267
- defaultValue: {
268
- kind: "now";
269
- value: {};
270
- };
271
- })[];
272
- logic: {
273
- kind: "createObject";
319
+ };
320
+ }, {
321
+ readonly property: ["status"];
322
+ readonly value: {
323
+ kind: "inputReference";
274
324
  value: {
275
- readonly objectType: "Post";
276
- readonly values: [{
277
- readonly property: ["postId"];
278
- readonly value: {
279
- kind: "inputReference";
280
- value: {
281
- readonly name: "postId";
282
- };
283
- };
284
- }, {
285
- readonly property: ["title"];
286
- readonly value: {
287
- kind: "inputReference";
288
- value: {
289
- readonly name: "title";
290
- };
291
- };
292
- }, {
293
- readonly property: ["body"];
294
- readonly value: {
295
- kind: "inputReference";
296
- value: {
297
- readonly name: "body";
298
- };
299
- };
300
- }, {
301
- readonly property: ["authorId"];
302
- readonly value: {
303
- kind: "getAt";
304
- value: {
305
- readonly source: {
306
- kind: "objectLookup";
307
- value: {
308
- readonly reference: {
309
- kind: "inputReference";
310
- value: {
311
- readonly name: "author";
312
- };
313
- };
314
- };
315
- };
316
- readonly path: ["authorId"];
317
- };
318
- };
319
- }, {
320
- readonly property: ["status"];
321
- readonly value: {
322
- kind: "inputReference";
323
- value: {
324
- readonly name: "status";
325
- };
326
- };
327
- }, {
328
- readonly property: ["tags"];
329
- readonly value: {
330
- kind: "inputReference";
331
- value: {
332
- readonly name: "tags";
333
- };
334
- };
335
- }, {
336
- readonly property: ["createdAt"];
337
- readonly value: {
338
- kind: "inputReference";
339
- value: {
340
- readonly name: "createdAt";
341
- };
342
- };
343
- }];
344
- };
345
- }[];
346
- }[];
347
- queryFunctionTypes: {
348
- name: string;
349
- displayName: string;
350
- description: string;
351
- parameters: ({
352
- name: string;
353
- displayName: string;
354
- type: {
355
- kind: "string";
356
- value: {};
325
+ readonly name: "status";
357
326
  };
358
- } | {
359
- name: string;
360
- displayName: string;
361
- type: {
362
- kind: "optional";
363
- value: {
364
- readonly type: {
365
- kind: "integer";
366
- value: {};
367
- };
368
- };
327
+ };
328
+ }, {
329
+ readonly property: ["tags"];
330
+ readonly value: {
331
+ kind: "inputReference";
332
+ value: {
333
+ readonly name: "tags";
369
334
  };
370
- })[];
371
- returnType: {
372
- kind: "list";
335
+ };
336
+ }, {
337
+ readonly property: ["createdAt"];
338
+ readonly value: {
339
+ kind: "inputReference";
373
340
  value: {
374
- readonly elementType: {
375
- kind: "objectReference";
376
- value: {
377
- readonly objectType: "Post";
378
- };
379
- };
341
+ readonly name: "createdAt";
380
342
  };
381
- };
343
+ };
344
+ }];
345
+ };
382
346
  }[];
347
+ }[];
348
+ queryFunctionTypes: {
349
+ name: string;
350
+ displayName: string;
351
+ description: string;
352
+ parameters: ({
353
+ name: string;
354
+ displayName: string;
355
+ type: {
356
+ kind: "string";
357
+ value: {};
358
+ };
359
+ } | {
360
+ name: string;
361
+ displayName: string;
362
+ type: {
363
+ kind: "optional";
364
+ value: {
365
+ readonly type: {
366
+ kind: "integer";
367
+ value: {};
368
+ };
369
+ };
370
+ };
371
+ })[];
372
+ returnType: {
373
+ kind: "list";
374
+ value: {
375
+ readonly elementType: {
376
+ kind: "objectReference";
377
+ value: {
378
+ readonly objectType: "Post";
379
+ };
380
+ };
381
+ };
382
+ };
383
+ }[];
383
384
  };
384
- export default _default;
385
+ //#endregion
386
+ export { _default as default };
385
387
  //# sourceMappingURL=blog.d.ts.map