@party-stack/ontology 0.19.1 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (356) hide show
  1. package/README.md +31 -0
  2. package/lib/OntologyPullConfig.d.ts +4 -17
  3. package/lib/OntologyPullConfig.d.ts.map +1 -1
  4. package/lib/authentication.d.ts +1068 -0
  5. package/lib/authentication.d.ts.map +1 -0
  6. package/lib/authentication.js +55 -0
  7. package/lib/authentication.js.map +1 -0
  8. package/lib/cli/index.js +19 -45
  9. package/lib/cli/index.js.map +1 -1
  10. package/lib/cli/pull.d.ts.map +1 -1
  11. package/lib/cli/pull.js +16 -29
  12. package/lib/cli/pull.js.map +1 -1
  13. package/lib/client.d.ts +11 -0
  14. package/lib/client.d.ts.map +1 -0
  15. package/lib/client.js +21 -0
  16. package/lib/client.js.map +1 -0
  17. package/lib/examples/blog.d.ts +2 -387
  18. package/lib/examples/blog.js +1 -353
  19. package/lib/examples/blog.live-queries.d.ts +1 -1
  20. package/lib/examples/blog.live-queries.d.ts.map +1 -1
  21. package/lib/examples/blog.live-queries.js +1 -1
  22. package/lib/examples/blog.live-queries.js.map +1 -1
  23. package/lib/examples/generated/collections.d.ts +7 -0
  24. package/lib/examples/generated/collections.d.ts.map +1 -0
  25. package/lib/examples/generated/collections.js +12 -0
  26. package/lib/examples/generated/collections.js.map +1 -0
  27. package/lib/examples/generated/live.d.ts +2 -2
  28. package/lib/examples/generated/live.d.ts.map +1 -1
  29. package/lib/examples/generated/live.js.map +1 -1
  30. package/lib/http.d.ts +13 -0
  31. package/lib/http.d.ts.map +1 -0
  32. package/lib/http.js +29 -0
  33. package/lib/http.js.map +1 -0
  34. package/lib/index.d.ts +19 -25
  35. package/lib/index.js +9 -15
  36. package/lib/json/index.d.ts +1 -16
  37. package/lib/json/index.js +2 -132
  38. package/lib/live/LiveOntology.d.ts +114 -50
  39. package/lib/live/LiveOntology.d.ts.map +1 -1
  40. package/lib/live/LiveOntology.js +23 -103
  41. package/lib/live/LiveOntology.js.map +1 -1
  42. package/lib/live/actions/createLiveOntologyAction.d.ts +15 -16
  43. package/lib/live/actions/createLiveOntologyAction.d.ts.map +1 -1
  44. package/lib/live/actions/createLiveOntologyAction.js +3 -11
  45. package/lib/live/actions/createLiveOntologyAction.js.map +1 -1
  46. package/lib/live/actions/types.d.ts +21 -0
  47. package/lib/live/actions/types.d.ts.map +1 -0
  48. package/lib/live/attachments/createLiveOntologyAttachments.d.ts +30 -19
  49. package/lib/live/attachments/createLiveOntologyAttachments.d.ts.map +1 -1
  50. package/lib/live/attachments/createLiveOntologyAttachments.js +43 -60
  51. package/lib/live/attachments/createLiveOntologyAttachments.js.map +1 -1
  52. package/lib/live/attachments/types.d.ts +4 -3
  53. package/lib/live/index.d.ts +10 -10
  54. package/lib/live/index.js +5 -6
  55. package/lib/live/mutators/createReadTx.d.ts +5 -0
  56. package/lib/live/mutators/createReadTx.d.ts.map +1 -0
  57. package/lib/live/mutators/createReadTx.js +19 -0
  58. package/lib/live/mutators/createReadTx.js.map +1 -0
  59. package/lib/live/mutators/types.d.ts +7 -2
  60. package/lib/live/mutators/types.d.ts.map +1 -1
  61. package/lib/live/objects/types.d.ts +6 -0
  62. package/lib/live/objects/types.d.ts.map +1 -0
  63. package/lib/live/outbox/types.d.ts +24 -15
  64. package/lib/live/outbox/types.d.ts.map +1 -1
  65. package/lib/live/outbox/types.js +1 -11
  66. package/lib/live/pins.d.ts +51 -0
  67. package/lib/live/pins.d.ts.map +1 -0
  68. package/lib/live/pins.js +113 -0
  69. package/lib/live/pins.js.map +1 -0
  70. package/lib/live/storageBackend.d.ts +50 -0
  71. package/lib/live/storageBackend.d.ts.map +1 -0
  72. package/lib/live/storageBackend.js +42 -0
  73. package/lib/live/storageBackend.js.map +1 -0
  74. package/lib/local.d.ts +15 -0
  75. package/lib/local.d.ts.map +1 -0
  76. package/lib/local.js +19 -0
  77. package/lib/local.js.map +1 -0
  78. package/lib/meta/generated/collections.d.ts +7 -0
  79. package/lib/meta/generated/collections.d.ts.map +1 -0
  80. package/lib/meta/generated/collections.js +15 -0
  81. package/lib/meta/generated/collections.js.map +1 -0
  82. package/lib/meta/generated/live.d.ts +3 -3
  83. package/lib/meta/generated/live.d.ts.map +1 -1
  84. package/lib/meta/generated/live.js +2 -2
  85. package/lib/meta/generated/live.js.map +1 -1
  86. package/lib/meta/pull.d.ts +5 -9
  87. package/lib/meta/pull.d.ts.map +1 -1
  88. package/lib/meta/pull.js +5 -43
  89. package/lib/meta/pull.js.map +1 -1
  90. package/lib/query.d.ts +1 -0
  91. package/lib/query.js +2 -0
  92. package/lib/runtime/host.d.ts +35 -0
  93. package/lib/runtime/host.d.ts.map +1 -0
  94. package/lib/runtime/host.js +39 -0
  95. package/lib/runtime/host.js.map +1 -0
  96. package/lib/runtime/index.d.ts +2 -0
  97. package/lib/runtime/index.js +1 -0
  98. package/lib/runtime/live.d.ts +25 -0
  99. package/lib/runtime/live.d.ts.map +1 -0
  100. package/lib/runtime/live.js +31 -0
  101. package/lib/runtime/live.js.map +1 -0
  102. package/lib/runtime/resource.d.ts +24 -0
  103. package/lib/runtime/resource.d.ts.map +1 -0
  104. package/lib/runtime/resource.js +127 -0
  105. package/lib/runtime/resource.js.map +1 -0
  106. package/lib/runtime/transactions.d.ts +27 -0
  107. package/lib/runtime/transactions.d.ts.map +1 -0
  108. package/lib/runtime/transactions.js +188 -0
  109. package/lib/runtime/transactions.js.map +1 -0
  110. package/lib/runtime/view.d.ts +25 -0
  111. package/lib/runtime/view.d.ts.map +1 -0
  112. package/lib/runtime/view.js +256 -0
  113. package/lib/runtime/view.js.map +1 -0
  114. package/lib/tanstack/collections.d.ts +73 -0
  115. package/lib/tanstack/collections.d.ts.map +1 -0
  116. package/lib/tanstack/collections.js +495 -0
  117. package/lib/tanstack/collections.js.map +1 -0
  118. package/lib/tanstack/createLocalCollection.d.ts +14 -0
  119. package/lib/tanstack/createLocalCollection.d.ts.map +1 -0
  120. package/lib/tanstack/createLocalCollection.js +9 -0
  121. package/lib/tanstack/createLocalCollection.js.map +1 -0
  122. package/lib/tanstack/descriptors.d.ts +33 -0
  123. package/lib/tanstack/descriptors.d.ts.map +1 -0
  124. package/lib/tanstack/descriptors.js +38 -0
  125. package/lib/tanstack/descriptors.js.map +1 -0
  126. package/lib/tanstack/diagnostics.d.ts +23 -0
  127. package/lib/tanstack/diagnostics.d.ts.map +1 -0
  128. package/lib/tanstack/diagnostics.js +14 -0
  129. package/lib/tanstack/diagnostics.js.map +1 -0
  130. package/lib/tanstack/index.d.ts +6 -0
  131. package/lib/tanstack/index.js +6 -0
  132. package/lib/tanstack/localCollection.d.ts +14 -0
  133. package/lib/tanstack/localCollection.d.ts.map +1 -0
  134. package/lib/tanstack/localCollection.js +73 -0
  135. package/lib/tanstack/localCollection.js.map +1 -0
  136. package/lib/tanstack/subset.d.ts +28 -0
  137. package/lib/tanstack/subset.d.ts.map +1 -0
  138. package/lib/tanstack/subset.js +290 -0
  139. package/lib/tanstack/subset.js.map +1 -0
  140. package/lib/testing/sqlite.d.ts +40 -0
  141. package/lib/testing/sqlite.d.ts.map +1 -0
  142. package/lib/testing/sqlite.js +409 -0
  143. package/lib/testing/sqlite.js.map +1 -0
  144. package/lib/testing/sqliteBackend.d.ts +68 -0
  145. package/lib/testing/sqliteBackend.d.ts.map +1 -0
  146. package/lib/testing/sqliteBackend.js +34 -0
  147. package/lib/testing/sqliteBackend.js.map +1 -0
  148. package/lib/utils/index.d.ts +1 -8
  149. package/lib/utils/index.js +2 -5
  150. package/lib/utils/values.d.ts +1 -33
  151. package/lib/worker.d.ts +19 -0
  152. package/lib/worker.d.ts.map +1 -0
  153. package/lib/worker.js +46 -0
  154. package/lib/worker.js.map +1 -0
  155. package/package.json +54 -19
  156. package/lib/_virtual/_rolldown/runtime.js +0 -13
  157. package/lib/cli/format.d.ts +0 -4
  158. package/lib/cli/format.d.ts.map +0 -1
  159. package/lib/cli/format.js +0 -19
  160. package/lib/cli/format.js.map +0 -1
  161. package/lib/cli/generate.d.ts +0 -10
  162. package/lib/cli/generate.d.ts.map +0 -1
  163. package/lib/cli/generate.js +0 -108
  164. package/lib/cli/generate.js.map +0 -1
  165. package/lib/examples/blog.d.ts.map +0 -1
  166. package/lib/examples/blog.js.map +0 -1
  167. package/lib/generate/builders.d.ts +0 -12
  168. package/lib/generate/builders.d.ts.map +0 -1
  169. package/lib/generate/builders.js +0 -58
  170. package/lib/generate/builders.js.map +0 -1
  171. package/lib/generate/constants.d.ts +0 -5
  172. package/lib/generate/constants.d.ts.map +0 -1
  173. package/lib/generate/constants.js +0 -28
  174. package/lib/generate/constants.js.map +0 -1
  175. package/lib/generate/index.d.ts +0 -6
  176. package/lib/generate/index.js +0 -6
  177. package/lib/generate/live.d.ts +0 -12
  178. package/lib/generate/live.d.ts.map +0 -1
  179. package/lib/generate/live.js +0 -48
  180. package/lib/generate/live.js.map +0 -1
  181. package/lib/generate/ontology.d.ts +0 -8
  182. package/lib/generate/ontology.d.ts.map +0 -1
  183. package/lib/generate/ontology.js +0 -501
  184. package/lib/generate/ontology.js.map +0 -1
  185. package/lib/generate/types.d.ts +0 -17
  186. package/lib/generate/types.d.ts.map +0 -1
  187. package/lib/generate/types.js +0 -216
  188. package/lib/generate/types.js.map +0 -1
  189. package/lib/generate/utils/buildJsDocs.d.ts +0 -10
  190. package/lib/generate/utils/buildJsDocs.d.ts.map +0 -1
  191. package/lib/generate/utils/buildJsDocs.js +0 -16
  192. package/lib/generate/utils/buildJsDocs.js.map +0 -1
  193. package/lib/infer.d.ts +0 -222
  194. package/lib/infer.d.ts.map +0 -1
  195. package/lib/infer.js +0 -14
  196. package/lib/infer.js.map +0 -1
  197. package/lib/installation/createMetaOntologyConfiguration.d.ts +0 -10
  198. package/lib/installation/createMetaOntologyConfiguration.d.ts.map +0 -1
  199. package/lib/installation/createMetaOntologyConfiguration.js +0 -16
  200. package/lib/installation/createMetaOntologyConfiguration.js.map +0 -1
  201. package/lib/installation/createOntologyBackendInstallation.d.ts +0 -5
  202. package/lib/installation/createOntologyBackendInstallation.d.ts.map +0 -1
  203. package/lib/installation/createOntologyBackendInstallation.js +0 -221
  204. package/lib/installation/createOntologyBackendInstallation.js.map +0 -1
  205. package/lib/installation/index.d.ts +0 -4
  206. package/lib/installation/index.js +0 -3
  207. package/lib/installation/types.d.ts +0 -94
  208. package/lib/installation/types.d.ts.map +0 -1
  209. package/lib/ir/generated/builders.d.ts +0 -380
  210. package/lib/ir/generated/builders.d.ts.map +0 -1
  211. package/lib/ir/generated/builders.js +0 -186
  212. package/lib/ir/generated/builders.js.map +0 -1
  213. package/lib/ir/generated/constants.d.ts +0 -265
  214. package/lib/ir/generated/constants.d.ts.map +0 -1
  215. package/lib/ir/generated/constants.js +0 -165
  216. package/lib/ir/generated/constants.js.map +0 -1
  217. package/lib/ir/generated/types.d.ts +0 -416
  218. package/lib/ir/generated/types.d.ts.map +0 -1
  219. package/lib/ir/index.d.ts +0 -4
  220. package/lib/ir/index.js +0 -3
  221. package/lib/ir/schema.d.ts +0 -2246
  222. package/lib/ir/schema.d.ts.map +0 -1
  223. package/lib/ir/schema.js +0 -1187
  224. package/lib/ir/schema.js.map +0 -1
  225. package/lib/ir/validate.d.ts +0 -8
  226. package/lib/ir/validate.d.ts.map +0 -1
  227. package/lib/ir/validate.js +0 -623
  228. package/lib/ir/validate.js.map +0 -1
  229. package/lib/json/index.d.ts.map +0 -1
  230. package/lib/json/index.js.map +0 -1
  231. package/lib/lenses.d.ts +0 -21
  232. package/lib/lenses.d.ts.map +0 -1
  233. package/lib/lenses.js +0 -110
  234. package/lib/lenses.js.map +0 -1
  235. package/lib/live/OntologyBackendAdapter.d.ts +0 -100
  236. package/lib/live/OntologyBackendAdapter.d.ts.map +0 -1
  237. package/lib/live/OntologyBackendAdapter.js +0 -1
  238. package/lib/live/actions/createLiveOntologyActions.d.ts +0 -28
  239. package/lib/live/actions/createLiveOntologyActions.d.ts.map +0 -1
  240. package/lib/live/actions/createLiveOntologyActions.js +0 -139
  241. package/lib/live/actions/createLiveOntologyActions.js.map +0 -1
  242. package/lib/live/actions/prepareActionParameters.d.ts +0 -19
  243. package/lib/live/actions/prepareActionParameters.d.ts.map +0 -1
  244. package/lib/live/actions/prepareActionParameters.js +0 -213
  245. package/lib/live/actions/prepareActionParameters.js.map +0 -1
  246. package/lib/live/attachments/attachmentSources.d.ts +0 -10
  247. package/lib/live/attachments/attachmentSources.d.ts.map +0 -1
  248. package/lib/live/attachments/attachmentSources.js +0 -64
  249. package/lib/live/attachments/attachmentSources.js.map +0 -1
  250. package/lib/live/attachments/unsupportedOntologyAttachmentsAdapter.d.ts +0 -5
  251. package/lib/live/attachments/unsupportedOntologyAttachmentsAdapter.d.ts.map +0 -1
  252. package/lib/live/attachments/unsupportedOntologyAttachmentsAdapter.js +0 -6
  253. package/lib/live/attachments/unsupportedOntologyAttachmentsAdapter.js.map +0 -1
  254. package/lib/live/expression.d.ts +0 -23
  255. package/lib/live/expression.d.ts.map +0 -1
  256. package/lib/live/expression.js +0 -160
  257. package/lib/live/expression.js.map +0 -1
  258. package/lib/live/mutators/OntologyEdits.d.ts +0 -15
  259. package/lib/live/mutators/OntologyEdits.d.ts.map +0 -1
  260. package/lib/live/mutators/OntologyEdits.js +0 -65
  261. package/lib/live/mutators/OntologyEdits.js.map +0 -1
  262. package/lib/live/mutators/createMutatorTx.d.ts +0 -11
  263. package/lib/live/mutators/createMutatorTx.d.ts.map +0 -1
  264. package/lib/live/mutators/createMutatorTx.js +0 -61
  265. package/lib/live/mutators/createMutatorTx.js.map +0 -1
  266. package/lib/live/mutators/runOptimisticAction.d.ts +0 -19
  267. package/lib/live/mutators/runOptimisticAction.d.ts.map +0 -1
  268. package/lib/live/mutators/runOptimisticAction.js +0 -30
  269. package/lib/live/mutators/runOptimisticAction.js.map +0 -1
  270. package/lib/live/objects/OntologyObject.d.ts +0 -4
  271. package/lib/live/objects/OntologyObject.d.ts.map +0 -1
  272. package/lib/live/objects/OntologyObject.js +0 -1
  273. package/lib/live/objects/createLiveOntologyObjectCollection.d.ts +0 -17
  274. package/lib/live/objects/createLiveOntologyObjectCollection.d.ts.map +0 -1
  275. package/lib/live/objects/createLiveOntologyObjectCollection.js +0 -55
  276. package/lib/live/objects/createLiveOntologyObjectCollection.js.map +0 -1
  277. package/lib/live/objects/ontologyObjectCollectionId.d.ts +0 -4
  278. package/lib/live/objects/ontologyObjectCollectionId.d.ts.map +0 -1
  279. package/lib/live/objects/ontologyObjectCollectionId.js +0 -8
  280. package/lib/live/objects/ontologyObjectCollectionId.js.map +0 -1
  281. package/lib/live/outbox/createOntologyOutbox.d.ts +0 -23
  282. package/lib/live/outbox/createOntologyOutbox.d.ts.map +0 -1
  283. package/lib/live/outbox/createOntologyOutbox.js +0 -292
  284. package/lib/live/outbox/createOntologyOutbox.js.map +0 -1
  285. package/lib/live/outbox/leaderExecutor.d.ts +0 -20
  286. package/lib/live/outbox/leaderExecutor.d.ts.map +0 -1
  287. package/lib/live/outbox/leaderExecutor.js +0 -130
  288. package/lib/live/outbox/leaderExecutor.js.map +0 -1
  289. package/lib/live/outbox/outboxService.d.ts +0 -7
  290. package/lib/live/outbox/outboxService.d.ts.map +0 -1
  291. package/lib/live/outbox/outboxService.js +0 -68
  292. package/lib/live/outbox/outboxService.js.map +0 -1
  293. package/lib/live/outbox/projectionManager.d.ts +0 -31
  294. package/lib/live/outbox/projectionManager.d.ts.map +0 -1
  295. package/lib/live/outbox/projectionManager.js +0 -127
  296. package/lib/live/outbox/projectionManager.js.map +0 -1
  297. package/lib/live/outbox/repository.d.ts +0 -31
  298. package/lib/live/outbox/repository.d.ts.map +0 -1
  299. package/lib/live/outbox/repository.js +0 -196
  300. package/lib/live/outbox/repository.js.map +0 -1
  301. package/lib/live/outbox/service.d.ts +0 -61
  302. package/lib/live/outbox/service.d.ts.map +0 -1
  303. package/lib/live/outbox/service.js +0 -6
  304. package/lib/live/outbox/service.js.map +0 -1
  305. package/lib/live/outbox/types.js.map +0 -1
  306. package/lib/live/waitForCollectionReady.d.ts +0 -5
  307. package/lib/live/waitForCollectionReady.d.ts.map +0 -1
  308. package/lib/live/waitForCollectionReady.js +0 -49
  309. package/lib/live/waitForCollectionReady.js.map +0 -1
  310. package/lib/meta/createLocalMetaOntologyBackendAdapter.d.ts +0 -7
  311. package/lib/meta/createLocalMetaOntologyBackendAdapter.d.ts.map +0 -1
  312. package/lib/meta/createLocalMetaOntologyBackendAdapter.js +0 -44
  313. package/lib/meta/createLocalMetaOntologyBackendAdapter.js.map +0 -1
  314. package/lib/meta/generated/constants.d.ts +0 -265
  315. package/lib/meta/generated/constants.d.ts.map +0 -1
  316. package/lib/meta/generated/constants.js +0 -165
  317. package/lib/meta/generated/constants.js.map +0 -1
  318. package/lib/meta/generated/types.d.ts +0 -417
  319. package/lib/meta/generated/types.d.ts.map +0 -1
  320. package/lib/meta/generated/types.js +0 -1
  321. package/lib/meta/ontology.d.ts +0 -26
  322. package/lib/meta/ontology.d.ts.map +0 -1
  323. package/lib/meta/ontology.js +0 -111
  324. package/lib/meta/ontology.js.map +0 -1
  325. package/lib/utils/links.d.ts +0 -49
  326. package/lib/utils/links.d.ts.map +0 -1
  327. package/lib/utils/links.js +0 -13
  328. package/lib/utils/links.js.map +0 -1
  329. package/lib/utils/paths.d.ts +0 -6
  330. package/lib/utils/paths.d.ts.map +0 -1
  331. package/lib/utils/paths.js +0 -42
  332. package/lib/utils/paths.js.map +0 -1
  333. package/lib/utils/provide.d.ts +0 -4
  334. package/lib/utils/provide.d.ts.map +0 -1
  335. package/lib/utils/provide.js +0 -9
  336. package/lib/utils/provide.js.map +0 -1
  337. package/lib/utils/targets.d.ts +0 -37
  338. package/lib/utils/targets.d.ts.map +0 -1
  339. package/lib/utils/targets.js +0 -1
  340. package/lib/utils/typeNames.d.ts +0 -28
  341. package/lib/utils/typeNames.d.ts.map +0 -1
  342. package/lib/utils/typeNames.js +0 -1
  343. package/lib/utils/types.d.ts +0 -12
  344. package/lib/utils/types.d.ts.map +0 -1
  345. package/lib/utils/types.js +0 -48
  346. package/lib/utils/types.js.map +0 -1
  347. package/lib/utils/uncertain.d.ts +0 -11
  348. package/lib/utils/uncertain.d.ts.map +0 -1
  349. package/lib/utils/uncertain.js +0 -14
  350. package/lib/utils/uncertain.js.map +0 -1
  351. package/lib/utils/validation.d.ts +0 -7
  352. package/lib/utils/validation.d.ts.map +0 -1
  353. package/lib/utils/validation.js +0 -1
  354. package/lib/utils/values.d.ts.map +0 -1
  355. /package/lib/{installation → live/actions}/types.js +0 -0
  356. /package/lib/{ir/generated → live/objects}/types.js +0 -0
@@ -1,380 +0,0 @@
1
- import { ActionLogicStep as ActionLogicStep$1, AttachmentContentConstraint as AttachmentContentConstraint$1, Expression as Expression$1, LensOp as LensOp$1, StringConstraint as StringConstraint$1, TypeDef, types_d_exports } from "./types.js";
2
- //#region src/ir/generated/builders.d.ts
3
- export declare const string: <const Value extends Extract<TypeDef, {
4
- kind: "string";
5
- }>["value"]>(value: Value) => {
6
- kind: "string";
7
- value: Value;
8
- };
9
- export declare const boolean: <const Value extends Extract<TypeDef, {
10
- kind: "boolean";
11
- }>["value"]>(value: Value) => {
12
- kind: "boolean";
13
- value: Value;
14
- };
15
- export declare const integer: <const Value extends Extract<TypeDef, {
16
- kind: "integer";
17
- }>["value"]>(value: Value) => {
18
- kind: "integer";
19
- value: Value;
20
- };
21
- export declare const float: <const Value extends Extract<TypeDef, {
22
- kind: "float";
23
- }>["value"]>(value: Value) => {
24
- kind: "float";
25
- value: Value;
26
- };
27
- export declare const double: <const Value extends Extract<TypeDef, {
28
- kind: "double";
29
- }>["value"]>(value: Value) => {
30
- kind: "double";
31
- value: Value;
32
- };
33
- export declare const date: <const Value extends Extract<TypeDef, {
34
- kind: "date";
35
- }>["value"]>(value: Value) => {
36
- kind: "date";
37
- value: Value;
38
- };
39
- export declare const timestamp: <const Value extends Extract<TypeDef, {
40
- kind: "timestamp";
41
- }>["value"]>(value: Value) => {
42
- kind: "timestamp";
43
- value: Value;
44
- };
45
- export declare const geopoint: <const Value extends Extract<TypeDef, {
46
- kind: "geopoint";
47
- }>["value"]>(value: Value) => {
48
- kind: "geopoint";
49
- value: Value;
50
- };
51
- export declare const list: <const Value extends Extract<TypeDef, {
52
- kind: "list";
53
- }>["value"]>(value: Value) => {
54
- kind: "list";
55
- value: Value;
56
- };
57
- export declare const map: <const Value extends Extract<TypeDef, {
58
- kind: "map";
59
- }>["value"]>(value: Value) => {
60
- kind: "map";
61
- value: Value;
62
- };
63
- export declare const struct: <const Value extends Extract<TypeDef, {
64
- kind: "struct";
65
- }>["value"]>(value: Value) => {
66
- kind: "struct";
67
- value: Value;
68
- };
69
- export declare const union: <const Value extends Extract<TypeDef, {
70
- kind: "union";
71
- }>["value"]>(value: Value) => {
72
- kind: "union";
73
- value: Value;
74
- };
75
- export declare const optional: <const Value extends Extract<TypeDef, {
76
- kind: "optional";
77
- }>["value"]>(value: Value) => {
78
- kind: "optional";
79
- value: Value;
80
- };
81
- export declare const result: <const Value extends Extract<TypeDef, {
82
- kind: "result";
83
- }>["value"]>(value: Value) => {
84
- kind: "result";
85
- value: Value;
86
- };
87
- export declare const ref: <const Value extends Extract<TypeDef, {
88
- kind: "ref";
89
- }>["value"]>(value: Value) => {
90
- kind: "ref";
91
- value: Value;
92
- };
93
- export declare const attachment: <const Value extends Extract<TypeDef, {
94
- kind: "attachment";
95
- }>["value"]>(value: Value) => {
96
- kind: "attachment";
97
- value: Value;
98
- };
99
- export declare const objectReference: <const Value extends Extract<TypeDef, {
100
- kind: "objectReference";
101
- }>["value"]>(value: Value) => {
102
- kind: "objectReference";
103
- value: Value;
104
- };
105
- export declare const unknown: <const Value extends Extract<TypeDef, {
106
- kind: "unknown";
107
- }>["value"]>(value: Value) => {
108
- kind: "unknown";
109
- value: Value;
110
- };
111
- export declare const StringConstraint: {
112
- enum: <const Value extends Extract<StringConstraint$1, {
113
- kind: "enum";
114
- }>["value"]>(value: Value) => {
115
- kind: "enum";
116
- value: Value;
117
- };
118
- regex: <const Value extends Extract<StringConstraint$1, {
119
- kind: "regex";
120
- }>["value"]>(value: Value) => {
121
- kind: "regex";
122
- value: Value;
123
- };
124
- };
125
- export declare const AttachmentContentConstraint: {
126
- image: <const Value extends Extract<AttachmentContentConstraint$1, {
127
- kind: "image";
128
- }>["value"]>(value: Value) => {
129
- kind: "image";
130
- value: Value;
131
- };
132
- };
133
- export declare const Expression: {
134
- inputReference: <const Value extends Extract<Expression$1, {
135
- kind: "inputReference";
136
- }>["value"]>(value: Value) => {
137
- kind: "inputReference";
138
- value: Value;
139
- };
140
- contextReference: <const Value extends Extract<Expression$1, {
141
- kind: "contextReference";
142
- }>["value"]>(value: Value) => {
143
- kind: "contextReference";
144
- value: Value;
145
- };
146
- localReference: <const Value extends Extract<Expression$1, {
147
- kind: "localReference";
148
- }>["value"]>(value: Value) => {
149
- kind: "localReference";
150
- value: Value;
151
- };
152
- getAt: <const Value extends Extract<Expression$1, {
153
- kind: "getAt";
154
- }>["value"]>(value: Value) => {
155
- kind: "getAt";
156
- value: Value;
157
- };
158
- objectLookup: <const Value extends Extract<Expression$1, {
159
- kind: "objectLookup";
160
- }>["value"]>(value: Value) => {
161
- kind: "objectLookup";
162
- value: Value;
163
- };
164
- linkHop: <const Value extends Extract<Expression$1, {
165
- kind: "linkHop";
166
- }>["value"]>(value: Value) => {
167
- kind: "linkHop";
168
- value: Value;
169
- };
170
- struct: <const Value extends Extract<Expression$1, {
171
- kind: "struct";
172
- }>["value"]>(value: Value) => {
173
- kind: "struct";
174
- value: Value;
175
- };
176
- map: <const Value extends Extract<Expression$1, {
177
- kind: "map";
178
- }>["value"]>(value: Value) => {
179
- kind: "map";
180
- value: Value;
181
- };
182
- uuid: <const Value extends Extract<Expression$1, {
183
- kind: "uuid";
184
- }>["value"]>(value: Value) => {
185
- kind: "uuid";
186
- value: Value;
187
- };
188
- now: <const Value extends Extract<Expression$1, {
189
- kind: "now";
190
- }>["value"]>(value: Value) => {
191
- kind: "now";
192
- value: Value;
193
- };
194
- literal: <const Value extends Extract<Expression$1, {
195
- kind: "literal";
196
- }>["value"]>(value: Value) => {
197
- kind: "literal";
198
- value: Value;
199
- };
200
- };
201
- export declare const ActionLogicStep: {
202
- createObject: <const Value extends Extract<ActionLogicStep$1, {
203
- kind: "createObject";
204
- }>["value"]>(value: Value) => {
205
- kind: "createObject";
206
- value: Value;
207
- };
208
- updateObject: <const Value extends Extract<ActionLogicStep$1, {
209
- kind: "updateObject";
210
- }>["value"]>(value: Value) => {
211
- kind: "updateObject";
212
- value: Value;
213
- };
214
- deleteObject: <const Value extends Extract<ActionLogicStep$1, {
215
- kind: "deleteObject";
216
- }>["value"]>(value: Value) => {
217
- kind: "deleteObject";
218
- value: Value;
219
- };
220
- };
221
- export declare const LensOp: {
222
- move: <const Value extends Extract<LensOp$1, {
223
- kind: "move";
224
- }>["value"]>(value: Value) => {
225
- kind: "move";
226
- value: Value;
227
- };
228
- select: <const Value extends Extract<LensOp$1, {
229
- kind: "select";
230
- }>["value"]>(value: Value) => {
231
- kind: "select";
232
- value: Value;
233
- };
234
- };
235
- export declare const o: {
236
- string: typeof string;
237
- boolean: typeof boolean;
238
- integer: typeof integer;
239
- float: typeof float;
240
- double: typeof double;
241
- date: typeof date;
242
- timestamp: typeof timestamp;
243
- geopoint: typeof geopoint;
244
- list: typeof list;
245
- map: typeof map;
246
- struct: typeof struct;
247
- union: typeof union;
248
- optional: typeof optional;
249
- result: typeof result;
250
- ref: typeof ref;
251
- attachment: typeof attachment;
252
- objectReference: typeof objectReference;
253
- unknown: typeof unknown;
254
- StringConstraint: {
255
- enum: <const Value extends Extract<StringConstraint$1, {
256
- kind: "enum";
257
- }>["value"]>(value: Value) => {
258
- kind: "enum";
259
- value: Value;
260
- };
261
- regex: <const Value extends Extract<StringConstraint$1, {
262
- kind: "regex";
263
- }>["value"]>(value: Value) => {
264
- kind: "regex";
265
- value: Value;
266
- };
267
- };
268
- AttachmentContentConstraint: {
269
- image: <const Value extends Extract<AttachmentContentConstraint$1, {
270
- kind: "image";
271
- }>["value"]>(value: Value) => {
272
- kind: "image";
273
- value: Value;
274
- };
275
- };
276
- Expression: {
277
- inputReference: <const Value extends Extract<Expression$1, {
278
- kind: "inputReference";
279
- }>["value"]>(value: Value) => {
280
- kind: "inputReference";
281
- value: Value;
282
- };
283
- contextReference: <const Value extends Extract<Expression$1, {
284
- kind: "contextReference";
285
- }>["value"]>(value: Value) => {
286
- kind: "contextReference";
287
- value: Value;
288
- };
289
- localReference: <const Value extends Extract<Expression$1, {
290
- kind: "localReference";
291
- }>["value"]>(value: Value) => {
292
- kind: "localReference";
293
- value: Value;
294
- };
295
- getAt: <const Value extends Extract<Expression$1, {
296
- kind: "getAt";
297
- }>["value"]>(value: Value) => {
298
- kind: "getAt";
299
- value: Value;
300
- };
301
- objectLookup: <const Value extends Extract<Expression$1, {
302
- kind: "objectLookup";
303
- }>["value"]>(value: Value) => {
304
- kind: "objectLookup";
305
- value: Value;
306
- };
307
- linkHop: <const Value extends Extract<Expression$1, {
308
- kind: "linkHop";
309
- }>["value"]>(value: Value) => {
310
- kind: "linkHop";
311
- value: Value;
312
- };
313
- struct: <const Value extends Extract<Expression$1, {
314
- kind: "struct";
315
- }>["value"]>(value: Value) => {
316
- kind: "struct";
317
- value: Value;
318
- };
319
- map: <const Value extends Extract<Expression$1, {
320
- kind: "map";
321
- }>["value"]>(value: Value) => {
322
- kind: "map";
323
- value: Value;
324
- };
325
- uuid: <const Value extends Extract<Expression$1, {
326
- kind: "uuid";
327
- }>["value"]>(value: Value) => {
328
- kind: "uuid";
329
- value: Value;
330
- };
331
- now: <const Value extends Extract<Expression$1, {
332
- kind: "now";
333
- }>["value"]>(value: Value) => {
334
- kind: "now";
335
- value: Value;
336
- };
337
- literal: <const Value extends Extract<Expression$1, {
338
- kind: "literal";
339
- }>["value"]>(value: Value) => {
340
- kind: "literal";
341
- value: Value;
342
- };
343
- };
344
- ActionLogicStep: {
345
- createObject: <const Value extends Extract<ActionLogicStep$1, {
346
- kind: "createObject";
347
- }>["value"]>(value: Value) => {
348
- kind: "createObject";
349
- value: Value;
350
- };
351
- updateObject: <const Value extends Extract<ActionLogicStep$1, {
352
- kind: "updateObject";
353
- }>["value"]>(value: Value) => {
354
- kind: "updateObject";
355
- value: Value;
356
- };
357
- deleteObject: <const Value extends Extract<ActionLogicStep$1, {
358
- kind: "deleteObject";
359
- }>["value"]>(value: Value) => {
360
- kind: "deleteObject";
361
- value: Value;
362
- };
363
- };
364
- LensOp: {
365
- move: <const Value extends Extract<LensOp$1, {
366
- kind: "move";
367
- }>["value"]>(value: Value) => {
368
- kind: "move";
369
- value: Value;
370
- };
371
- select: <const Value extends Extract<LensOp$1, {
372
- kind: "select";
373
- }>["value"]>(value: Value) => {
374
- kind: "select";
375
- value: Value;
376
- };
377
- };
378
- };
379
- //#endregion
380
- //# sourceMappingURL=builders.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"builders.d.ts","names":["t","t.TypeDef","t.StringConstraint","t.AttachmentContentConstraint","t.Expression","t.ActionLogicStep","t.LensOp"],"sources":["../../../src/ir/generated/builders.ts"],"mappings":";;qBAIa,eAAgB,cAAc,QAAQC;EAAa;aAA0B,OAC/E;EACG;;;qBAED,gBAAiB,cAAc,QAAQA;EAAa;aAA2B,OACjF;EACG;;;qBAED,gBAAiB,cAAc,QAAQA;EAAa;aAA2B,OACjF;EACG;;;qBAED,cAAe,cAAc,QAAQA;EAAa;aAAyB,OAAS;EACvF;;;qBAIG,eAAgB,cAAc,QAAQA;EAAa;aAA0B,OAC/E;EACG;;;qBAED,aAAc,cAAc,QAAQA;EAAa;aAAwB,OAAS;EACrF;;;qBAIG,kBAAmB,cAAc,QAAQA;EAAa;aAA6B,OACrF;EACG;;;qBAED,iBAAkB,cAAc,QAAQA;EAAa;aAA4B,OACnF;EACG;;;qBAED,aAAc,cAAc,QAAQA;EAAa;aAAwB,OAAS;EACrF;;;qBAIG,YAAa,cAAc,QAAQA;EAAa;aAAuB,OAAS;EACnF;;;qBAIG,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;;;IAID,aAAA,cAAc,QAAQC;MAAY;iBAAwB,OAAS;MACtE;;;IAGK,eAAA,cAAc,QAAQA;MAAY;iBAA0B,OAAS;MAC1E"}
@@ -1,186 +0,0 @@
1
- //#region src/ir/generated/builders.ts
2
- const string = (value) => ({
3
- kind: "string",
4
- value
5
- });
6
- const boolean = (value) => ({
7
- kind: "boolean",
8
- value
9
- });
10
- const integer = (value) => ({
11
- kind: "integer",
12
- value
13
- });
14
- const float = (value) => ({
15
- kind: "float",
16
- value
17
- });
18
- const double = (value) => ({
19
- kind: "double",
20
- value
21
- });
22
- const date = (value) => ({
23
- kind: "date",
24
- value
25
- });
26
- const timestamp = (value) => ({
27
- kind: "timestamp",
28
- value
29
- });
30
- const geopoint = (value) => ({
31
- kind: "geopoint",
32
- value
33
- });
34
- const list = (value) => ({
35
- kind: "list",
36
- value
37
- });
38
- const map = (value) => ({
39
- kind: "map",
40
- value
41
- });
42
- const struct = (value) => ({
43
- kind: "struct",
44
- value
45
- });
46
- const union = (value) => ({
47
- kind: "union",
48
- value
49
- });
50
- const optional = (value) => ({
51
- kind: "optional",
52
- value
53
- });
54
- const result = (value) => ({
55
- kind: "result",
56
- value
57
- });
58
- const ref = (value) => ({
59
- kind: "ref",
60
- value
61
- });
62
- const attachment = (value) => ({
63
- kind: "attachment",
64
- value
65
- });
66
- const objectReference = (value) => ({
67
- kind: "objectReference",
68
- value
69
- });
70
- const unknown = (value) => ({
71
- kind: "unknown",
72
- value
73
- });
74
- const StringConstraint = {
75
- enum: (value) => ({
76
- kind: "enum",
77
- value
78
- }),
79
- regex: (value) => ({
80
- kind: "regex",
81
- value
82
- })
83
- };
84
- const AttachmentContentConstraint = { image: (value) => ({
85
- kind: "image",
86
- value
87
- }) };
88
- const Expression = {
89
- inputReference: (value) => ({
90
- kind: "inputReference",
91
- value
92
- }),
93
- contextReference: (value) => ({
94
- kind: "contextReference",
95
- value
96
- }),
97
- localReference: (value) => ({
98
- kind: "localReference",
99
- value
100
- }),
101
- getAt: (value) => ({
102
- kind: "getAt",
103
- value
104
- }),
105
- objectLookup: (value) => ({
106
- kind: "objectLookup",
107
- value
108
- }),
109
- linkHop: (value) => ({
110
- kind: "linkHop",
111
- value
112
- }),
113
- struct: (value) => ({
114
- kind: "struct",
115
- value
116
- }),
117
- map: (value) => ({
118
- kind: "map",
119
- value
120
- }),
121
- uuid: (value) => ({
122
- kind: "uuid",
123
- value
124
- }),
125
- now: (value) => ({
126
- kind: "now",
127
- value
128
- }),
129
- literal: (value) => ({
130
- kind: "literal",
131
- value
132
- })
133
- };
134
- const ActionLogicStep = {
135
- createObject: (value) => ({
136
- kind: "createObject",
137
- value
138
- }),
139
- updateObject: (value) => ({
140
- kind: "updateObject",
141
- value
142
- }),
143
- deleteObject: (value) => ({
144
- kind: "deleteObject",
145
- value
146
- })
147
- };
148
- const LensOp = {
149
- move: (value) => ({
150
- kind: "move",
151
- value
152
- }),
153
- select: (value) => ({
154
- kind: "select",
155
- value
156
- })
157
- };
158
- const o = {
159
- string,
160
- boolean,
161
- integer,
162
- float,
163
- double,
164
- date,
165
- timestamp,
166
- geopoint,
167
- list,
168
- map,
169
- struct,
170
- union,
171
- optional,
172
- result,
173
- ref,
174
- attachment,
175
- objectReference,
176
- unknown,
177
- StringConstraint,
178
- AttachmentContentConstraint,
179
- Expression,
180
- ActionLogicStep,
181
- LensOp
182
- };
183
- //#endregion
184
- export { ActionLogicStep, AttachmentContentConstraint, Expression, LensOp, StringConstraint, attachment, boolean, date, double, float, geopoint, integer, list, map, o, objectReference, optional, ref, result, string, struct, timestamp, union, unknown };
185
-
186
- //# sourceMappingURL=builders.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"builders.js","names":[],"sources":["../../../src/ir/generated/builders.ts"],"sourcesContent":["// Auto-generated file - do not edit manually\n\nimport * as t from \"./types.js\";\n\nexport const string = <const Value extends Extract<t.TypeDef, { kind: \"string\" }>[\"value\"]>(\n value: Value\n) => ({ kind: \"string\" as const, value });\n\nexport const boolean = <const Value extends Extract<t.TypeDef, { kind: \"boolean\" }>[\"value\"]>(\n value: Value\n) => ({ kind: \"boolean\" as const, value });\n\nexport const integer = <const Value extends Extract<t.TypeDef, { kind: \"integer\" }>[\"value\"]>(\n value: Value\n) => ({ kind: \"integer\" as const, value });\n\nexport const float = <const Value extends Extract<t.TypeDef, { kind: \"float\" }>[\"value\"]>(value: Value) => ({\n kind: \"float\" as const,\n value,\n});\n\nexport const double = <const Value extends Extract<t.TypeDef, { kind: \"double\" }>[\"value\"]>(\n value: Value\n) => ({ kind: \"double\" as const, value });\n\nexport const date = <const Value extends Extract<t.TypeDef, { kind: \"date\" }>[\"value\"]>(value: Value) => ({\n kind: \"date\" as const,\n value,\n});\n\nexport const timestamp = <const Value extends Extract<t.TypeDef, { kind: \"timestamp\" }>[\"value\"]>(\n value: Value\n) => ({ kind: \"timestamp\" as const, value });\n\nexport const geopoint = <const Value extends Extract<t.TypeDef, { kind: \"geopoint\" }>[\"value\"]>(\n value: Value\n) => ({ kind: \"geopoint\" as const, value });\n\nexport const list = <const Value extends Extract<t.TypeDef, { kind: \"list\" }>[\"value\"]>(value: Value) => ({\n kind: \"list\" as const,\n value,\n});\n\nexport const map = <const Value extends Extract<t.TypeDef, { kind: \"map\" }>[\"value\"]>(value: Value) => ({\n kind: \"map\" as const,\n value,\n});\n\nexport const struct = <const Value extends Extract<t.TypeDef, { kind: \"struct\" }>[\"value\"]>(\n value: Value\n) => ({ kind: \"struct\" as const, value });\n\nexport const union = <const Value extends Extract<t.TypeDef, { kind: \"union\" }>[\"value\"]>(value: Value) => ({\n kind: \"union\" as const,\n value,\n});\n\nexport const optional = <const Value extends Extract<t.TypeDef, { kind: \"optional\" }>[\"value\"]>(\n value: Value\n) => ({ kind: \"optional\" as const, value });\n\nexport const result = <const Value extends Extract<t.TypeDef, { kind: \"result\" }>[\"value\"]>(\n value: Value\n) => ({ kind: \"result\" as const, value });\n\nexport const ref = <const Value extends Extract<t.TypeDef, { kind: \"ref\" }>[\"value\"]>(value: Value) => ({\n kind: \"ref\" as const,\n value,\n});\n\nexport const attachment = <const Value extends Extract<t.TypeDef, { kind: \"attachment\" }>[\"value\"]>(\n value: Value\n) => ({ kind: \"attachment\" as const, value });\n\nexport const objectReference = <const Value extends Extract<t.TypeDef, { kind: \"objectReference\" }>[\"value\"]>(\n value: Value\n) => ({ kind: \"objectReference\" as const, value });\n\nexport const unknown = <const Value extends Extract<t.TypeDef, { kind: \"unknown\" }>[\"value\"]>(\n value: Value\n) => ({ kind: \"unknown\" as const, value });\n\nexport const StringConstraint = {\n enum: <const Value extends Extract<t.StringConstraint, { kind: \"enum\" }>[\"value\"]>(value: Value) => ({\n kind: \"enum\" as const,\n value,\n }),\n regex: <const Value extends Extract<t.StringConstraint, { kind: \"regex\" }>[\"value\"]>(value: Value) => ({\n kind: \"regex\" as const,\n value,\n }),\n};\n\nexport const AttachmentContentConstraint = {\n image: <const Value extends Extract<t.AttachmentContentConstraint, { kind: \"image\" }>[\"value\"]>(\n value: Value\n ) => ({ kind: \"image\" as const, value }),\n};\n\nexport const Expression = {\n inputReference: <const Value extends Extract<t.Expression, { kind: \"inputReference\" }>[\"value\"]>(\n value: Value\n ) => ({ kind: \"inputReference\" as const, value }),\n contextReference: <const Value extends Extract<t.Expression, { kind: \"contextReference\" }>[\"value\"]>(\n value: Value\n ) => ({ kind: \"contextReference\" as const, value }),\n localReference: <const Value extends Extract<t.Expression, { kind: \"localReference\" }>[\"value\"]>(\n value: Value\n ) => ({ kind: \"localReference\" as const, value }),\n getAt: <const Value extends Extract<t.Expression, { kind: \"getAt\" }>[\"value\"]>(value: Value) => ({\n kind: \"getAt\" as const,\n value,\n }),\n objectLookup: <const Value extends Extract<t.Expression, { kind: \"objectLookup\" }>[\"value\"]>(\n value: Value\n ) => ({ kind: \"objectLookup\" as const, value }),\n linkHop: <const Value extends Extract<t.Expression, { kind: \"linkHop\" }>[\"value\"]>(value: Value) => ({\n kind: \"linkHop\" as const,\n value,\n }),\n struct: <const Value extends Extract<t.Expression, { kind: \"struct\" }>[\"value\"]>(value: Value) => ({\n kind: \"struct\" as const,\n value,\n }),\n map: <const Value extends Extract<t.Expression, { kind: \"map\" }>[\"value\"]>(value: Value) => ({\n kind: \"map\" as const,\n value,\n }),\n uuid: <const Value extends Extract<t.Expression, { kind: \"uuid\" }>[\"value\"]>(value: Value) => ({\n kind: \"uuid\" as const,\n value,\n }),\n now: <const Value extends Extract<t.Expression, { kind: \"now\" }>[\"value\"]>(value: Value) => ({\n kind: \"now\" as const,\n value,\n }),\n literal: <const Value extends Extract<t.Expression, { kind: \"literal\" }>[\"value\"]>(value: Value) => ({\n kind: \"literal\" as const,\n value,\n }),\n};\n\nexport const ActionLogicStep = {\n createObject: <const Value extends Extract<t.ActionLogicStep, { kind: \"createObject\" }>[\"value\"]>(\n value: Value\n ) => ({ kind: \"createObject\" as const, value }),\n updateObject: <const Value extends Extract<t.ActionLogicStep, { kind: \"updateObject\" }>[\"value\"]>(\n value: Value\n ) => ({ kind: \"updateObject\" as const, value }),\n deleteObject: <const Value extends Extract<t.ActionLogicStep, { kind: \"deleteObject\" }>[\"value\"]>(\n value: Value\n ) => ({ kind: \"deleteObject\" as const, value }),\n};\n\nexport const LensOp = {\n move: <const Value extends Extract<t.LensOp, { kind: \"move\" }>[\"value\"]>(value: Value) => ({\n kind: \"move\" as const,\n value,\n }),\n select: <const Value extends Extract<t.LensOp, { kind: \"select\" }>[\"value\"]>(value: Value) => ({\n kind: \"select\" as const,\n value,\n }),\n};\n\nexport const o = {\n string,\n boolean,\n integer,\n float,\n double,\n date,\n timestamp,\n geopoint,\n list,\n map,\n struct,\n union,\n optional,\n result,\n ref,\n attachment,\n objectReference,\n unknown,\n StringConstraint,\n AttachmentContentConstraint,\n Expression,\n ActionLogicStep,\n LensOp,\n};\n"],"mappings":";AAIA,MAAa,UACT,WACE;CAAE,MAAM;CAAmB;AAAM;AAEvC,MAAa,WACT,WACE;CAAE,MAAM;CAAoB;AAAM;AAExC,MAAa,WAC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