document-model 2.4.0 → 2.5.0-test.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 (637) hide show
  1. package/dist/index.d.ts +18 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +13 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/{browser/src → src}/document/actions/creators.d.ts +4 -2
  6. package/dist/src/document/actions/creators.d.ts.map +1 -0
  7. package/dist/{node/src/document/actions/creators.d.ts → src/document/actions/creators.js} +18 -8
  8. package/dist/src/document/actions/creators.js.map +1 -0
  9. package/dist/src/document/actions/operations.d.ts +23 -0
  10. package/dist/src/document/actions/operations.d.ts.map +1 -0
  11. package/dist/src/document/actions/operations.js +131 -0
  12. package/dist/src/document/actions/operations.js.map +1 -0
  13. package/dist/src/document/actions/types.d.ts +16 -0
  14. package/dist/src/document/actions/types.d.ts.map +1 -0
  15. package/dist/src/document/actions/types.js +7 -0
  16. package/dist/src/document/actions/types.js.map +1 -0
  17. package/dist/{browser/src → src}/document/object.d.ts +17 -14
  18. package/dist/src/document/object.d.ts.map +1 -0
  19. package/dist/{node/src/document/object.d.ts → src/document/object.js} +93 -29
  20. package/dist/src/document/object.js.map +1 -0
  21. package/dist/src/document/reducer.d.ts +49 -0
  22. package/dist/src/document/reducer.d.ts.map +1 -0
  23. package/dist/src/document/reducer.js +342 -0
  24. package/dist/src/document/reducer.js.map +1 -0
  25. package/dist/{browser/src → src}/document/schema/types.d.ts +2 -1
  26. package/dist/src/document/schema/types.d.ts.map +1 -0
  27. package/dist/src/document/schema/types.js +2 -0
  28. package/dist/src/document/schema/types.js.map +1 -0
  29. package/dist/{browser/src → src}/document/schema/zod.d.ts +30 -47
  30. package/dist/src/document/schema/zod.d.ts.map +1 -0
  31. package/dist/src/document/schema/zod.js +113 -0
  32. package/dist/src/document/schema/zod.js.map +1 -0
  33. package/dist/{node/src → src}/document/signal.d.ts +10 -9
  34. package/dist/src/document/signal.d.ts.map +1 -0
  35. package/dist/src/document/signal.js +2 -0
  36. package/dist/src/document/signal.js.map +1 -0
  37. package/dist/src/document/types.d.ts +345 -0
  38. package/dist/src/document/types.d.ts.map +1 -0
  39. package/dist/src/document/types.js +2 -0
  40. package/dist/src/document/types.js.map +1 -0
  41. package/dist/src/document/utils/base.d.ts +83 -0
  42. package/dist/src/document/utils/base.d.ts.map +1 -0
  43. package/dist/src/document/utils/base.js +331 -0
  44. package/dist/src/document/utils/base.js.map +1 -0
  45. package/dist/src/document/utils/browser.d.ts +18 -0
  46. package/dist/src/document/utils/browser.d.ts.map +1 -0
  47. package/dist/src/document/utils/browser.js +54 -0
  48. package/dist/src/document/utils/browser.js.map +1 -0
  49. package/dist/src/document/utils/crypto.d.ts +11 -0
  50. package/dist/src/document/utils/crypto.d.ts.map +1 -0
  51. package/dist/src/document/utils/crypto.js +80 -0
  52. package/dist/src/document/utils/crypto.js.map +1 -0
  53. package/dist/src/document/utils/document-helpers.d.ts +78 -0
  54. package/dist/src/document/utils/document-helpers.d.ts.map +1 -0
  55. package/dist/src/document/utils/document-helpers.js +411 -0
  56. package/dist/src/document/utils/document-helpers.js.map +1 -0
  57. package/dist/src/document/utils/errors.d.ts +10 -0
  58. package/dist/src/document/utils/errors.d.ts.map +1 -0
  59. package/dist/src/document/utils/errors.js +19 -0
  60. package/dist/src/document/utils/errors.js.map +1 -0
  61. package/dist/{node/src → src}/document/utils/file.d.ts +10 -8
  62. package/dist/src/document/utils/file.d.ts.map +1 -0
  63. package/dist/src/document/utils/file.js +158 -0
  64. package/dist/src/document/utils/file.js.map +1 -0
  65. package/dist/src/document/utils/node.d.ts +18 -0
  66. package/dist/src/document/utils/node.d.ts.map +1 -0
  67. package/dist/src/document/utils/node.js +62 -0
  68. package/dist/src/document/utils/node.js.map +1 -0
  69. package/dist/src/document/utils/validation.d.ts +3 -0
  70. package/dist/src/document/utils/validation.d.ts.map +1 -0
  71. package/dist/src/document/utils/validation.js +23 -0
  72. package/dist/src/document/utils/validation.js.map +1 -0
  73. package/dist/src/document-model/custom/reducers/header.d.ts +3 -0
  74. package/dist/src/document-model/custom/reducers/header.d.ts.map +1 -0
  75. package/dist/src/document-model/custom/reducers/header.js +23 -0
  76. package/dist/src/document-model/custom/reducers/header.js.map +1 -0
  77. package/dist/src/document-model/custom/reducers/module.d.ts +3 -0
  78. package/dist/src/document-model/custom/reducers/module.d.ts.map +1 -0
  79. package/dist/src/document-model/custom/reducers/module.js +41 -0
  80. package/dist/src/document-model/custom/reducers/module.js.map +1 -0
  81. package/dist/src/document-model/custom/reducers/operation-error.d.ts +3 -0
  82. package/dist/src/document-model/custom/reducers/operation-error.d.ts.map +1 -0
  83. package/dist/src/document-model/custom/reducers/operation-error.js +94 -0
  84. package/dist/src/document-model/custom/reducers/operation-error.js.map +1 -0
  85. package/dist/src/document-model/custom/reducers/operation-example.d.ts +3 -0
  86. package/dist/src/document-model/custom/reducers/operation-example.d.ts.map +1 -0
  87. package/dist/src/document-model/custom/reducers/operation-example.js +53 -0
  88. package/dist/src/document-model/custom/reducers/operation-example.js.map +1 -0
  89. package/dist/src/document-model/custom/reducers/operation.d.ts +3 -0
  90. package/dist/src/document-model/custom/reducers/operation.d.ts.map +1 -0
  91. package/dist/src/document-model/custom/reducers/operation.js +125 -0
  92. package/dist/src/document-model/custom/reducers/operation.js.map +1 -0
  93. package/dist/src/document-model/custom/reducers/state.d.ts +3 -0
  94. package/dist/src/document-model/custom/reducers/state.d.ts.map +1 -0
  95. package/dist/src/document-model/custom/reducers/state.js +71 -0
  96. package/dist/src/document-model/custom/reducers/state.js.map +1 -0
  97. package/dist/src/document-model/custom/reducers/versioning.d.ts +8 -0
  98. package/dist/src/document-model/custom/reducers/versioning.d.ts.map +1 -0
  99. package/dist/src/document-model/custom/reducers/versioning.js +23 -0
  100. package/dist/src/document-model/custom/reducers/versioning.js.map +1 -0
  101. package/dist/{browser/src → src}/document-model/custom/utils.d.ts +4 -3
  102. package/dist/src/document-model/custom/utils.d.ts.map +1 -0
  103. package/dist/src/document-model/custom/utils.js +105 -0
  104. package/dist/src/document-model/custom/utils.js.map +1 -0
  105. package/dist/src/document-model/gen/actions.d.ts +16 -0
  106. package/dist/src/document-model/gen/actions.d.ts.map +1 -0
  107. package/dist/src/document-model/gen/actions.js +8 -0
  108. package/dist/src/document-model/gen/actions.js.map +1 -0
  109. package/dist/src/document-model/gen/constants.d.ts +7 -0
  110. package/dist/src/document-model/gen/constants.d.ts.map +1 -0
  111. package/dist/src/document-model/gen/constants.js +34 -0
  112. package/dist/src/document-model/gen/constants.js.map +1 -0
  113. package/dist/src/document-model/gen/creators.d.ts +8 -0
  114. package/dist/src/document-model/gen/creators.d.ts.map +1 -0
  115. package/dist/src/document-model/gen/creators.js +8 -0
  116. package/dist/src/document-model/gen/creators.js.map +1 -0
  117. package/dist/src/document-model/gen/document-model.d.ts +3 -0
  118. package/dist/src/document-model/gen/document-model.d.ts.map +1 -0
  119. package/dist/src/document-model/gen/document-model.js +542 -0
  120. package/dist/src/document-model/gen/document-model.js.map +1 -0
  121. package/dist/src/document-model/gen/header/actions.d.ts +10 -0
  122. package/dist/src/document-model/gen/header/actions.d.ts.map +1 -0
  123. package/dist/src/document-model/gen/header/actions.js +2 -0
  124. package/dist/src/document-model/gen/header/actions.js.map +1 -0
  125. package/dist/{node/src → src}/document-model/gen/header/creators.d.ts +3 -2
  126. package/dist/src/document-model/gen/header/creators.d.ts.map +1 -0
  127. package/dist/src/document-model/gen/header/creators.js +10 -0
  128. package/dist/src/document-model/gen/header/creators.js.map +1 -0
  129. package/dist/src/document-model/gen/header/object.d.ts +13 -0
  130. package/dist/src/document-model/gen/header/object.d.ts.map +1 -0
  131. package/dist/src/document-model/gen/header/object.js +23 -0
  132. package/dist/src/document-model/gen/header/object.js.map +1 -0
  133. package/dist/{node/src → src}/document-model/gen/header/operations.d.ts +3 -2
  134. package/dist/src/document-model/gen/header/operations.d.ts.map +1 -0
  135. package/dist/src/document-model/gen/header/operations.js +2 -0
  136. package/dist/src/document-model/gen/header/operations.js.map +1 -0
  137. package/dist/src/document-model/gen/module/actions.d.ts +9 -0
  138. package/dist/src/document-model/gen/module/actions.d.ts.map +1 -0
  139. package/dist/src/document-model/gen/module/actions.js +2 -0
  140. package/dist/src/document-model/gen/module/actions.js.map +1 -0
  141. package/dist/{node/src → src}/document-model/gen/module/creators.d.ts +3 -2
  142. package/dist/src/document-model/gen/module/creators.d.ts.map +1 -0
  143. package/dist/src/document-model/gen/module/creators.js +9 -0
  144. package/dist/src/document-model/gen/module/creators.js.map +1 -0
  145. package/dist/src/document-model/gen/module/object.d.ts +12 -0
  146. package/dist/src/document-model/gen/module/object.d.ts.map +1 -0
  147. package/dist/src/document-model/gen/module/object.js +20 -0
  148. package/dist/src/document-model/gen/module/object.js.map +1 -0
  149. package/dist/{browser/src → src}/document-model/gen/module/operations.d.ts +3 -2
  150. package/dist/src/document-model/gen/module/operations.d.ts.map +1 -0
  151. package/dist/src/document-model/gen/module/operations.js +2 -0
  152. package/dist/src/document-model/gen/module/operations.js.map +1 -0
  153. package/dist/src/document-model/gen/object.d.ts +29 -0
  154. package/dist/src/document-model/gen/object.d.ts.map +1 -0
  155. package/dist/src/document-model/gen/object.js +46 -0
  156. package/dist/src/document-model/gen/object.js.map +1 -0
  157. package/dist/src/document-model/gen/operation/actions.d.ts +14 -0
  158. package/dist/src/document-model/gen/operation/actions.d.ts.map +1 -0
  159. package/dist/src/document-model/gen/operation/actions.js +2 -0
  160. package/dist/src/document-model/gen/operation/actions.js.map +1 -0
  161. package/dist/{browser/src → src}/document-model/gen/operation/creators.d.ts +3 -2
  162. package/dist/src/document-model/gen/operation/creators.d.ts.map +1 -0
  163. package/dist/src/document-model/gen/operation/creators.js +20 -0
  164. package/dist/src/document-model/gen/operation/creators.js.map +1 -0
  165. package/dist/{node/src → src}/document-model/gen/operation/object.d.ts +7 -5
  166. package/dist/src/document-model/gen/operation/object.d.ts.map +1 -0
  167. package/dist/src/document-model/gen/operation/object.js +35 -0
  168. package/dist/src/document-model/gen/operation/object.js.map +1 -0
  169. package/dist/{node/src → src}/document-model/gen/operation/operations.d.ts +3 -2
  170. package/dist/src/document-model/gen/operation/operations.d.ts.map +1 -0
  171. package/dist/src/document-model/gen/operation/operations.js +2 -0
  172. package/dist/src/document-model/gen/operation/operations.js.map +1 -0
  173. package/dist/src/document-model/gen/operation-error/actions.d.ts +11 -0
  174. package/dist/src/document-model/gen/operation-error/actions.d.ts.map +1 -0
  175. package/dist/src/document-model/gen/operation-error/actions.js +2 -0
  176. package/dist/src/document-model/gen/operation-error/actions.js.map +1 -0
  177. package/dist/{node/src → src}/document-model/gen/operation-error/creators.d.ts +3 -2
  178. package/dist/src/document-model/gen/operation-error/creators.d.ts.map +1 -0
  179. package/dist/src/document-model/gen/operation-error/creators.js +17 -0
  180. package/dist/src/document-model/gen/operation-error/creators.js.map +1 -0
  181. package/dist/{node/src → src}/document-model/gen/operation-error/object.d.ts +7 -5
  182. package/dist/src/document-model/gen/operation-error/object.d.ts.map +1 -0
  183. package/dist/src/document-model/gen/operation-error/object.js +26 -0
  184. package/dist/src/document-model/gen/operation-error/object.js.map +1 -0
  185. package/dist/{browser/src → src}/document-model/gen/operation-error/operations.d.ts +3 -2
  186. package/dist/src/document-model/gen/operation-error/operations.d.ts.map +1 -0
  187. package/dist/src/document-model/gen/operation-error/operations.js +2 -0
  188. package/dist/src/document-model/gen/operation-error/operations.js.map +1 -0
  189. package/dist/src/document-model/gen/operation-example/actions.d.ts +8 -0
  190. package/dist/src/document-model/gen/operation-example/actions.d.ts.map +1 -0
  191. package/dist/src/document-model/gen/operation-example/actions.js +2 -0
  192. package/dist/src/document-model/gen/operation-example/actions.js.map +1 -0
  193. package/dist/{browser/src → src}/document-model/gen/operation-example/creators.d.ts +3 -2
  194. package/dist/src/document-model/gen/operation-example/creators.d.ts.map +1 -0
  195. package/dist/src/document-model/gen/operation-example/creators.js +14 -0
  196. package/dist/src/document-model/gen/operation-example/creators.js.map +1 -0
  197. package/dist/src/document-model/gen/operation-example/object.d.ts +12 -0
  198. package/dist/src/document-model/gen/operation-example/object.d.ts.map +1 -0
  199. package/dist/src/document-model/gen/operation-example/object.js +17 -0
  200. package/dist/src/document-model/gen/operation-example/object.js.map +1 -0
  201. package/dist/{browser/src → src}/document-model/gen/operation-example/operations.d.ts +3 -2
  202. package/dist/src/document-model/gen/operation-example/operations.d.ts.map +1 -0
  203. package/dist/src/document-model/gen/operation-example/operations.js +2 -0
  204. package/dist/src/document-model/gen/operation-example/operations.js.map +1 -0
  205. package/dist/src/document-model/gen/reducer.d.ts +5 -0
  206. package/dist/src/document-model/gen/reducer.d.ts.map +1 -0
  207. package/dist/src/document-model/gen/reducer.js +193 -0
  208. package/dist/src/document-model/gen/reducer.js.map +1 -0
  209. package/dist/{browser/src → src}/document-model/gen/schema/types.d.ts +6 -1
  210. package/dist/src/document-model/gen/schema/types.d.ts.map +1 -0
  211. package/dist/src/document-model/gen/schema/types.js +2 -0
  212. package/dist/src/document-model/gen/schema/types.js.map +1 -0
  213. package/dist/src/document-model/gen/schema/zod.d.ts +454 -0
  214. package/dist/src/document-model/gen/schema/zod.d.ts.map +1 -0
  215. package/dist/src/document-model/gen/schema/zod.js +394 -0
  216. package/dist/src/document-model/gen/schema/zod.js.map +1 -0
  217. package/dist/src/document-model/gen/state/actions.d.ts +10 -0
  218. package/dist/src/document-model/gen/state/actions.d.ts.map +1 -0
  219. package/dist/src/document-model/gen/state/actions.js +2 -0
  220. package/dist/src/document-model/gen/state/actions.js.map +1 -0
  221. package/dist/{browser/src → src}/document-model/gen/state/creators.d.ts +3 -2
  222. package/dist/src/document-model/gen/state/creators.d.ts.map +1 -0
  223. package/dist/src/document-model/gen/state/creators.js +10 -0
  224. package/dist/src/document-model/gen/state/creators.js.map +1 -0
  225. package/dist/src/document-model/gen/state/object.d.ts +13 -0
  226. package/dist/src/document-model/gen/state/object.d.ts.map +1 -0
  227. package/dist/src/document-model/gen/state/object.js +23 -0
  228. package/dist/src/document-model/gen/state/object.js.map +1 -0
  229. package/dist/{browser/src → src}/document-model/gen/state/operations.d.ts +3 -2
  230. package/dist/src/document-model/gen/state/operations.d.ts.map +1 -0
  231. package/dist/src/document-model/gen/state/operations.js +2 -0
  232. package/dist/src/document-model/gen/state/operations.js.map +1 -0
  233. package/dist/src/document-model/gen/types.d.ts +7 -0
  234. package/dist/src/document-model/gen/types.d.ts.map +1 -0
  235. package/dist/src/document-model/gen/types.js +2 -0
  236. package/dist/src/document-model/gen/types.js.map +1 -0
  237. package/dist/src/document-model/gen/utils.d.ts +11 -0
  238. package/dist/src/document-model/gen/utils.d.ts.map +1 -0
  239. package/dist/src/document-model/gen/utils.js +30 -0
  240. package/dist/src/document-model/gen/utils.js.map +1 -0
  241. package/dist/src/document-model/gen/versioning/actions.d.ts +9 -0
  242. package/dist/src/document-model/gen/versioning/actions.d.ts.map +1 -0
  243. package/dist/src/document-model/gen/versioning/actions.js +2 -0
  244. package/dist/src/document-model/gen/versioning/actions.js.map +1 -0
  245. package/dist/{browser/src → src}/document-model/gen/versioning/creators.d.ts +3 -2
  246. package/dist/src/document-model/gen/versioning/creators.d.ts.map +1 -0
  247. package/dist/src/document-model/gen/versioning/creators.js +13 -0
  248. package/dist/src/document-model/gen/versioning/creators.js.map +1 -0
  249. package/dist/src/document-model/gen/versioning/object.d.ts +13 -0
  250. package/dist/src/document-model/gen/versioning/object.d.ts.map +1 -0
  251. package/dist/src/document-model/gen/versioning/object.js +20 -0
  252. package/dist/src/document-model/gen/versioning/object.js.map +1 -0
  253. package/dist/{browser/src → src}/document-model/gen/versioning/operations.d.ts +3 -2
  254. package/dist/src/document-model/gen/versioning/operations.d.ts.map +1 -0
  255. package/dist/src/document-model/gen/versioning/operations.js +2 -0
  256. package/dist/src/document-model/gen/versioning/operations.js.map +1 -0
  257. package/dist/src/document-model/module.d.ts +3 -0
  258. package/dist/src/document-model/module.d.ts.map +1 -0
  259. package/dist/src/document-model/module.js +13 -0
  260. package/dist/src/document-model/module.js.map +1 -0
  261. package/dist/src/document-model/types.d.ts +4 -0
  262. package/dist/src/document-model/types.d.ts.map +1 -0
  263. package/dist/src/document-model/types.js +2 -0
  264. package/dist/src/document-model/types.js.map +1 -0
  265. package/dist/test/document/crypto.test.d.ts +2 -0
  266. package/dist/test/document/crypto.test.d.ts.map +1 -0
  267. package/dist/test/document/crypto.test.js +181 -0
  268. package/dist/test/document/crypto.test.js.map +1 -0
  269. package/dist/test/document/event-vs-command.test.d.ts +2 -0
  270. package/dist/test/document/event-vs-command.test.d.ts.map +1 -0
  271. package/dist/test/document/event-vs-command.test.js +169 -0
  272. package/dist/test/document/event-vs-command.test.js.map +1 -0
  273. package/dist/test/document/local.test.d.ts +2 -0
  274. package/dist/test/document/local.test.d.ts.map +1 -0
  275. package/dist/test/document/local.test.js +248 -0
  276. package/dist/test/document/local.test.js.map +1 -0
  277. package/dist/test/document/object.test.d.ts +2 -0
  278. package/dist/test/document/object.test.d.ts.map +1 -0
  279. package/dist/test/document/object.test.js +13 -0
  280. package/dist/test/document/object.test.js.map +1 -0
  281. package/dist/test/document/operation-id.test.d.ts +2 -0
  282. package/dist/test/document/operation-id.test.d.ts.map +1 -0
  283. package/dist/test/document/operation-id.test.js +159 -0
  284. package/dist/test/document/operation-id.test.js.map +1 -0
  285. package/dist/test/document/prune.test.d.ts +2 -0
  286. package/dist/test/document/prune.test.d.ts.map +1 -0
  287. package/dist/test/document/prune.test.js +177 -0
  288. package/dist/test/document/prune.test.js.map +1 -0
  289. package/dist/test/document/reducer.test.d.ts +2 -0
  290. package/dist/test/document/reducer.test.d.ts.map +1 -0
  291. package/dist/test/document/reducer.test.js +270 -0
  292. package/dist/test/document/reducer.test.js.map +1 -0
  293. package/dist/test/document/skip-operations.test.d.ts +2 -0
  294. package/dist/test/document/skip-operations.test.d.ts.map +1 -0
  295. package/dist/test/document/skip-operations.test.js +442 -0
  296. package/dist/test/document/skip-operations.test.js.map +1 -0
  297. package/dist/test/document/undo-redo.test.d.ts +2 -0
  298. package/dist/test/document/undo-redo.test.d.ts.map +1 -0
  299. package/dist/test/document/undo-redo.test.js +377 -0
  300. package/dist/test/document/undo-redo.test.js.map +1 -0
  301. package/dist/test/document/utils.test.d.ts +2 -0
  302. package/dist/test/document/utils.test.d.ts.map +1 -0
  303. package/dist/test/document/utils.test.js +152 -0
  304. package/dist/test/document/utils.test.js.map +1 -0
  305. package/dist/test/document-helpers/addUndo.test.d.ts +2 -0
  306. package/dist/test/document-helpers/addUndo.test.d.ts.map +1 -0
  307. package/dist/test/document-helpers/addUndo.test.js +120 -0
  308. package/dist/test/document-helpers/addUndo.test.js.map +1 -0
  309. package/dist/test/document-helpers/attachBranch.test.d.ts +2 -0
  310. package/dist/test/document-helpers/attachBranch.test.d.ts.map +1 -0
  311. package/dist/test/document-helpers/attachBranch.test.js +364 -0
  312. package/dist/test/document-helpers/attachBranch.test.js.map +1 -0
  313. package/dist/test/document-helpers/checkCleanedOperationsIntegrity.test.d.ts +2 -0
  314. package/dist/test/document-helpers/checkCleanedOperationsIntegrity.test.d.ts.map +1 -0
  315. package/dist/test/document-helpers/checkCleanedOperationsIntegrity.test.js +252 -0
  316. package/dist/test/document-helpers/checkCleanedOperationsIntegrity.test.js.map +1 -0
  317. package/dist/test/document-helpers/conflictResolution.test.d.ts +2 -0
  318. package/dist/test/document-helpers/conflictResolution.test.d.ts.map +1 -0
  319. package/dist/test/document-helpers/conflictResolution.test.js +109 -0
  320. package/dist/test/document-helpers/conflictResolution.test.js.map +1 -0
  321. package/dist/test/document-helpers/filterDuplicatedOperations.test.d.ts +2 -0
  322. package/dist/test/document-helpers/filterDuplicatedOperations.test.d.ts.map +1 -0
  323. package/dist/test/document-helpers/filterDuplicatedOperations.test.js +126 -0
  324. package/dist/test/document-helpers/filterDuplicatedOperations.test.js.map +1 -0
  325. package/dist/test/document-helpers/garbageCollect.test.d.ts +2 -0
  326. package/dist/test/document-helpers/garbageCollect.test.d.ts.map +1 -0
  327. package/dist/test/document-helpers/garbageCollect.test.js +136 -0
  328. package/dist/test/document-helpers/garbageCollect.test.js.map +1 -0
  329. package/dist/test/document-helpers/groupOperationsByScope.test.d.ts +2 -0
  330. package/dist/test/document-helpers/groupOperationsByScope.test.d.ts.map +1 -0
  331. package/dist/test/document-helpers/groupOperationsByScope.test.js +98 -0
  332. package/dist/test/document-helpers/groupOperationsByScope.test.js.map +1 -0
  333. package/dist/test/document-helpers/merge.test.d.ts +2 -0
  334. package/dist/test/document-helpers/merge.test.d.ts.map +1 -0
  335. package/dist/test/document-helpers/merge.test.js +906 -0
  336. package/dist/test/document-helpers/merge.test.js.map +1 -0
  337. package/dist/test/document-helpers/nextSkipNumber.test.d.ts +2 -0
  338. package/dist/test/document-helpers/nextSkipNumber.test.d.ts.map +1 -0
  339. package/dist/test/document-helpers/nextSkipNumber.test.js +135 -0
  340. package/dist/test/document-helpers/nextSkipNumber.test.js.map +1 -0
  341. package/dist/test/document-helpers/prepareOperations.test.d.ts +2 -0
  342. package/dist/test/document-helpers/prepareOperations.test.d.ts.map +1 -0
  343. package/dist/test/document-helpers/prepareOperations.test.js +304 -0
  344. package/dist/test/document-helpers/prepareOperations.test.js.map +1 -0
  345. package/dist/test/document-helpers/removeExistingOperations.test.d.ts +2 -0
  346. package/dist/test/document-helpers/removeExistingOperations.test.d.ts.map +1 -0
  347. package/dist/test/document-helpers/removeExistingOperations.test.js +150 -0
  348. package/dist/test/document-helpers/removeExistingOperations.test.js.map +1 -0
  349. package/dist/test/document-helpers/reshuffleByTimestamp.test.d.ts +2 -0
  350. package/dist/test/document-helpers/reshuffleByTimestamp.test.d.ts.map +1 -0
  351. package/dist/test/document-helpers/reshuffleByTimestamp.test.js +148 -0
  352. package/dist/test/document-helpers/reshuffleByTimestamp.test.js.map +1 -0
  353. package/dist/test/document-helpers/reshuffleByTimestampAndIndex.test.d.ts +2 -0
  354. package/dist/test/document-helpers/reshuffleByTimestampAndIndex.test.d.ts.map +1 -0
  355. package/dist/test/document-helpers/reshuffleByTimestampAndIndex.test.js +200 -0
  356. package/dist/test/document-helpers/reshuffleByTimestampAndIndex.test.js.map +1 -0
  357. package/dist/test/document-helpers/skipHeaderOperations.test.d.ts +2 -0
  358. package/dist/test/document-helpers/skipHeaderOperations.test.d.ts.map +1 -0
  359. package/dist/test/document-helpers/skipHeaderOperations.test.js +74 -0
  360. package/dist/test/document-helpers/skipHeaderOperations.test.js.map +1 -0
  361. package/dist/test/document-helpers/sortOperations.test.d.ts +2 -0
  362. package/dist/test/document-helpers/sortOperations.test.d.ts.map +1 -0
  363. package/dist/test/document-helpers/sortOperations.test.js +101 -0
  364. package/dist/test/document-helpers/sortOperations.test.js.map +1 -0
  365. package/dist/test/document-helpers/split.test.d.ts +2 -0
  366. package/dist/test/document-helpers/split.test.d.ts.map +1 -0
  367. package/dist/test/document-helpers/split.test.js +121 -0
  368. package/dist/test/document-helpers/split.test.js.map +1 -0
  369. package/dist/{browser/test → test}/document-helpers/utils.d.ts +2 -1
  370. package/dist/test/document-helpers/utils.d.ts.map +1 -0
  371. package/dist/test/document-helpers/utils.js +22 -0
  372. package/dist/test/document-helpers/utils.js.map +1 -0
  373. package/dist/test/document-model/object.test.d.ts +2 -0
  374. package/dist/test/document-model/object.test.d.ts.map +1 -0
  375. package/dist/test/document-model/object.test.js +243 -0
  376. package/dist/test/document-model/object.test.js.map +1 -0
  377. package/dist/test/document-model/replay.test.d.ts +2 -0
  378. package/dist/test/document-model/replay.test.d.ts.map +1 -0
  379. package/dist/test/document-model/replay.test.js +149 -0
  380. package/dist/test/document-model/replay.test.js.map +1 -0
  381. package/dist/test/document-model/skip-operations.test.d.ts +2 -0
  382. package/dist/test/document-model/skip-operations.test.d.ts.map +1 -0
  383. package/dist/test/document-model/skip-operations.test.js +220 -0
  384. package/dist/test/document-model/skip-operations.test.js.map +1 -0
  385. package/dist/test/document-model/validation.test.d.ts +2 -0
  386. package/dist/test/document-model/validation.test.d.ts.map +1 -0
  387. package/dist/test/document-model/validation.test.js +258 -0
  388. package/dist/test/document-model/validation.test.js.map +1 -0
  389. package/dist/test/document-model/zip.test.d.ts +2 -0
  390. package/dist/test/document-model/zip.test.d.ts.map +1 -0
  391. package/dist/test/document-model/zip.test.js +80 -0
  392. package/dist/test/document-model/zip.test.js.map +1 -0
  393. package/dist/test/helpers.d.ts +31 -0
  394. package/dist/test/helpers.d.ts.map +1 -0
  395. package/dist/test/helpers.js +71 -0
  396. package/dist/test/helpers.js.map +1 -0
  397. package/dist/tsconfig.tsbuildinfo +1 -0
  398. package/dist/vitest.config.d.ts +3 -0
  399. package/dist/vitest.config.d.ts.map +1 -0
  400. package/dist/vitest.config.js +13 -0
  401. package/dist/vitest.config.js.map +1 -0
  402. package/package.json +27 -53
  403. package/dist/browser/cjs/document-model.js +0 -20
  404. package/dist/browser/cjs/document-model.js.map +0 -1
  405. package/dist/browser/cjs/document.js +0 -15
  406. package/dist/browser/cjs/document.js.map +0 -1
  407. package/dist/browser/cjs/index.js +0 -14
  408. package/dist/browser/cjs/index.js.map +0 -1
  409. package/dist/browser/cjs/internal/index-DyKphRZa.js +0 -2215
  410. package/dist/browser/cjs/internal/index-DyKphRZa.js.map +0 -1
  411. package/dist/browser/cjs/internal/index-y9w_m1Lo.js +0 -57
  412. package/dist/browser/cjs/internal/index-y9w_m1Lo.js.map +0 -1
  413. package/dist/browser/cjs/internal/object-Dbc1GbBl.js +0 -2694
  414. package/dist/browser/cjs/internal/object-Dbc1GbBl.js.map +0 -1
  415. package/dist/browser/cjs/package.json +0 -1
  416. package/dist/browser/document-model.d.ts +0 -2
  417. package/dist/browser/document.d.ts +0 -2
  418. package/dist/browser/es/document-model.js +0 -20
  419. package/dist/browser/es/document-model.js.map +0 -1
  420. package/dist/browser/es/document.js +0 -15
  421. package/dist/browser/es/document.js.map +0 -1
  422. package/dist/browser/es/index.js +0 -14
  423. package/dist/browser/es/index.js.map +0 -1
  424. package/dist/browser/es/internal/index-BI16PNmr.js +0 -58
  425. package/dist/browser/es/internal/index-BI16PNmr.js.map +0 -1
  426. package/dist/browser/es/internal/index-CiQX4huJ.js +0 -2216
  427. package/dist/browser/es/internal/index-CiQX4huJ.js.map +0 -1
  428. package/dist/browser/es/internal/object-BTIqCvb-.js +0 -2695
  429. package/dist/browser/es/internal/object-BTIqCvb-.js.map +0 -1
  430. package/dist/browser/es/package.json +0 -1
  431. package/dist/browser/index.d.ts +0 -6
  432. package/dist/browser/src/document/actions/index.d.ts +0 -14
  433. package/dist/browser/src/document/actions/types.d.ts +0 -15
  434. package/dist/browser/src/document/index.d.ts +0 -6
  435. package/dist/browser/src/document/reducer.d.ts +0 -65
  436. package/dist/browser/src/document/schema/index.d.ts +0 -2
  437. package/dist/browser/src/document/signal.d.ts +0 -29
  438. package/dist/browser/src/document/types.d.ts +0 -271
  439. package/dist/browser/src/document/utils/base.d.ts +0 -87
  440. package/dist/browser/src/document/utils/crypto.d.ts +0 -9
  441. package/dist/browser/src/document/utils/document-helpers.d.ts +0 -73
  442. package/dist/browser/src/document/utils/file.d.ts +0 -48
  443. package/dist/browser/src/document/utils/index.d.ts +0 -6
  444. package/dist/browser/src/document/utils/node.d.ts +0 -9
  445. package/dist/browser/src/document/utils/validation.d.ts +0 -2
  446. package/dist/browser/src/document-model/custom/reducers/header.d.ts +0 -2
  447. package/dist/browser/src/document-model/custom/reducers/module.d.ts +0 -2
  448. package/dist/browser/src/document-model/custom/reducers/operation-error.d.ts +0 -2
  449. package/dist/browser/src/document-model/custom/reducers/operation-example.d.ts +0 -2
  450. package/dist/browser/src/document-model/custom/reducers/operation.d.ts +0 -2
  451. package/dist/browser/src/document-model/custom/reducers/state.d.ts +0 -2
  452. package/dist/browser/src/document-model/custom/reducers/versioning.d.ts +0 -2
  453. package/dist/browser/src/document-model/gen/actions.d.ts +0 -15
  454. package/dist/browser/src/document-model/gen/creators.d.ts +0 -7
  455. package/dist/browser/src/document-model/gen/document-model.d.ts +0 -2
  456. package/dist/browser/src/document-model/gen/header/actions.d.ts +0 -9
  457. package/dist/browser/src/document-model/gen/header/creators.d.ts +0 -8
  458. package/dist/browser/src/document-model/gen/header/object.d.ts +0 -12
  459. package/dist/browser/src/document-model/gen/header/operations.d.ts +0 -10
  460. package/dist/browser/src/document-model/gen/index.d.ts +0 -5
  461. package/dist/browser/src/document-model/gen/module/actions.d.ts +0 -8
  462. package/dist/browser/src/document-model/gen/module/creators.d.ts +0 -7
  463. package/dist/browser/src/document-model/gen/module/object.d.ts +0 -11
  464. package/dist/browser/src/document-model/gen/object.d.ts +0 -28
  465. package/dist/browser/src/document-model/gen/operation/actions.d.ts +0 -13
  466. package/dist/browser/src/document-model/gen/operation/object.d.ts +0 -16
  467. package/dist/browser/src/document-model/gen/operation/operations.d.ts +0 -14
  468. package/dist/browser/src/document-model/gen/operation-error/actions.d.ts +0 -10
  469. package/dist/browser/src/document-model/gen/operation-error/creators.d.ts +0 -9
  470. package/dist/browser/src/document-model/gen/operation-error/object.d.ts +0 -13
  471. package/dist/browser/src/document-model/gen/operation-example/actions.d.ts +0 -7
  472. package/dist/browser/src/document-model/gen/operation-example/object.d.ts +0 -10
  473. package/dist/browser/src/document-model/gen/reducer.d.ts +0 -5
  474. package/dist/browser/src/document-model/gen/schema/index.d.ts +0 -2
  475. package/dist/browser/src/document-model/gen/schema/zod.d.ts +0 -453
  476. package/dist/browser/src/document-model/gen/state/actions.d.ts +0 -9
  477. package/dist/browser/src/document-model/gen/state/object.d.ts +0 -12
  478. package/dist/browser/src/document-model/gen/types.d.ts +0 -8
  479. package/dist/browser/src/document-model/gen/utils.d.ts +0 -6
  480. package/dist/browser/src/document-model/gen/versioning/actions.d.ts +0 -8
  481. package/dist/browser/src/document-model/gen/versioning/object.d.ts +0 -11
  482. package/dist/browser/src/document-model/index.d.ts +0 -76
  483. package/dist/browser/src/index.d.ts +0 -24
  484. package/dist/browser/test/document/crypto.test.d.ts +0 -1
  485. package/dist/browser/test/document/event-vs-command.test.d.ts +0 -1
  486. package/dist/browser/test/document/local.test.d.ts +0 -1
  487. package/dist/browser/test/document/object.test.d.ts +0 -1
  488. package/dist/browser/test/document/operation-id.test.d.ts +0 -1
  489. package/dist/browser/test/document/prune.test.d.ts +0 -1
  490. package/dist/browser/test/document/reducer.test.d.ts +0 -1
  491. package/dist/browser/test/document/skip-operations.test.d.ts +0 -1
  492. package/dist/browser/test/document/undo-redo.test.d.ts +0 -1
  493. package/dist/browser/test/document/utils.test.d.ts +0 -1
  494. package/dist/browser/test/document-helpers/addUndo.test.d.ts +0 -1
  495. package/dist/browser/test/document-helpers/attachBranch.test.d.ts +0 -1
  496. package/dist/browser/test/document-helpers/checkCleanedOperationsIntegrity.test.d.ts +0 -1
  497. package/dist/browser/test/document-helpers/conflictResolution.test.d.ts +0 -1
  498. package/dist/browser/test/document-helpers/filterDuplicatedOperations.test.d.ts +0 -1
  499. package/dist/browser/test/document-helpers/garbageCollect.test.d.ts +0 -1
  500. package/dist/browser/test/document-helpers/groupOperationsByScope.test.d.ts +0 -1
  501. package/dist/browser/test/document-helpers/merge.test.d.ts +0 -1
  502. package/dist/browser/test/document-helpers/nextSkipNumber.test.d.ts +0 -1
  503. package/dist/browser/test/document-helpers/prepareOperations.test.d.ts +0 -1
  504. package/dist/browser/test/document-helpers/removeExistingOperations.test.d.ts +0 -1
  505. package/dist/browser/test/document-helpers/reshuffleByTimestamp.test.d.ts +0 -1
  506. package/dist/browser/test/document-helpers/reshuffleByTimestampAndIndex.test.d.ts +0 -1
  507. package/dist/browser/test/document-helpers/skipHeaderOperations.test.d.ts +0 -1
  508. package/dist/browser/test/document-helpers/sortOperations.test.d.ts +0 -1
  509. package/dist/browser/test/document-helpers/split.test.d.ts +0 -1
  510. package/dist/browser/test/document-model/object.test.d.ts +0 -1
  511. package/dist/browser/test/document-model/replay.test.d.ts +0 -1
  512. package/dist/browser/test/document-model/skip-operations.test.d.ts +0 -1
  513. package/dist/browser/test/document-model/validation.test.d.ts +0 -1
  514. package/dist/browser/test/document-model/zip.test.d.ts +0 -1
  515. package/dist/browser/test/helpers.d.ts +0 -39
  516. package/dist/browser/vite.config.d.ts +0 -2
  517. package/dist/browser/vitest.config.d.ts +0 -2
  518. package/dist/node/cjs/document-model.js +0 -24
  519. package/dist/node/cjs/document-model.js.map +0 -1
  520. package/dist/node/cjs/document.js +0 -15
  521. package/dist/node/cjs/document.js.map +0 -1
  522. package/dist/node/cjs/index.js +0 -14
  523. package/dist/node/cjs/index.js.map +0 -1
  524. package/dist/node/cjs/internal/index-CLCVBs4I.js +0 -57
  525. package/dist/node/cjs/internal/index-CLCVBs4I.js.map +0 -1
  526. package/dist/node/cjs/internal/index-Cp37sm40.js +0 -2219
  527. package/dist/node/cjs/internal/index-Cp37sm40.js.map +0 -1
  528. package/dist/node/cjs/internal/object-ByNZ3G_j.js +0 -2480
  529. package/dist/node/cjs/internal/object-ByNZ3G_j.js.map +0 -1
  530. package/dist/node/cjs/package.json +0 -1
  531. package/dist/node/document-model.d.ts +0 -2
  532. package/dist/node/document.d.ts +0 -2
  533. package/dist/node/es/document-model.js +0 -24
  534. package/dist/node/es/document-model.js.map +0 -1
  535. package/dist/node/es/document.js +0 -15
  536. package/dist/node/es/document.js.map +0 -1
  537. package/dist/node/es/index.js +0 -14
  538. package/dist/node/es/index.js.map +0 -1
  539. package/dist/node/es/internal/index-BXfMlE4L.js +0 -58
  540. package/dist/node/es/internal/index-BXfMlE4L.js.map +0 -1
  541. package/dist/node/es/internal/index-ppDSDiFU.js +0 -2220
  542. package/dist/node/es/internal/index-ppDSDiFU.js.map +0 -1
  543. package/dist/node/es/internal/object-C8sca9DR.js +0 -2481
  544. package/dist/node/es/internal/object-C8sca9DR.js.map +0 -1
  545. package/dist/node/es/package.json +0 -1
  546. package/dist/node/index.d.ts +0 -6
  547. package/dist/node/src/document/actions/index.d.ts +0 -14
  548. package/dist/node/src/document/actions/types.d.ts +0 -15
  549. package/dist/node/src/document/index.d.ts +0 -6
  550. package/dist/node/src/document/reducer.d.ts +0 -65
  551. package/dist/node/src/document/schema/index.d.ts +0 -2
  552. package/dist/node/src/document/schema/types.d.ts +0 -176
  553. package/dist/node/src/document/schema/zod.d.ts +0 -116
  554. package/dist/node/src/document/types.d.ts +0 -271
  555. package/dist/node/src/document/utils/base.d.ts +0 -87
  556. package/dist/node/src/document/utils/crypto.d.ts +0 -9
  557. package/dist/node/src/document/utils/document-helpers.d.ts +0 -73
  558. package/dist/node/src/document/utils/index.d.ts +0 -6
  559. package/dist/node/src/document/utils/node.d.ts +0 -9
  560. package/dist/node/src/document/utils/validation.d.ts +0 -2
  561. package/dist/node/src/document-model/custom/reducers/header.d.ts +0 -2
  562. package/dist/node/src/document-model/custom/reducers/module.d.ts +0 -2
  563. package/dist/node/src/document-model/custom/reducers/operation-error.d.ts +0 -2
  564. package/dist/node/src/document-model/custom/reducers/operation-example.d.ts +0 -2
  565. package/dist/node/src/document-model/custom/reducers/operation.d.ts +0 -2
  566. package/dist/node/src/document-model/custom/reducers/state.d.ts +0 -2
  567. package/dist/node/src/document-model/custom/reducers/versioning.d.ts +0 -2
  568. package/dist/node/src/document-model/custom/utils.d.ts +0 -7
  569. package/dist/node/src/document-model/gen/actions.d.ts +0 -15
  570. package/dist/node/src/document-model/gen/creators.d.ts +0 -7
  571. package/dist/node/src/document-model/gen/document-model.d.ts +0 -2
  572. package/dist/node/src/document-model/gen/header/actions.d.ts +0 -9
  573. package/dist/node/src/document-model/gen/header/object.d.ts +0 -12
  574. package/dist/node/src/document-model/gen/index.d.ts +0 -5
  575. package/dist/node/src/document-model/gen/module/actions.d.ts +0 -8
  576. package/dist/node/src/document-model/gen/module/object.d.ts +0 -11
  577. package/dist/node/src/document-model/gen/module/operations.d.ts +0 -9
  578. package/dist/node/src/document-model/gen/object.d.ts +0 -28
  579. package/dist/node/src/document-model/gen/operation/actions.d.ts +0 -13
  580. package/dist/node/src/document-model/gen/operation/creators.d.ts +0 -12
  581. package/dist/node/src/document-model/gen/operation-error/actions.d.ts +0 -10
  582. package/dist/node/src/document-model/gen/operation-error/operations.d.ts +0 -11
  583. package/dist/node/src/document-model/gen/operation-example/actions.d.ts +0 -7
  584. package/dist/node/src/document-model/gen/operation-example/creators.d.ts +0 -6
  585. package/dist/node/src/document-model/gen/operation-example/object.d.ts +0 -10
  586. package/dist/node/src/document-model/gen/operation-example/operations.d.ts +0 -8
  587. package/dist/node/src/document-model/gen/reducer.d.ts +0 -5
  588. package/dist/node/src/document-model/gen/schema/index.d.ts +0 -2
  589. package/dist/node/src/document-model/gen/schema/types.d.ts +0 -453
  590. package/dist/node/src/document-model/gen/schema/zod.d.ts +0 -453
  591. package/dist/node/src/document-model/gen/state/actions.d.ts +0 -9
  592. package/dist/node/src/document-model/gen/state/creators.d.ts +0 -8
  593. package/dist/node/src/document-model/gen/state/object.d.ts +0 -12
  594. package/dist/node/src/document-model/gen/state/operations.d.ts +0 -10
  595. package/dist/node/src/document-model/gen/types.d.ts +0 -8
  596. package/dist/node/src/document-model/gen/utils.d.ts +0 -6
  597. package/dist/node/src/document-model/gen/versioning/actions.d.ts +0 -8
  598. package/dist/node/src/document-model/gen/versioning/creators.d.ts +0 -7
  599. package/dist/node/src/document-model/gen/versioning/object.d.ts +0 -11
  600. package/dist/node/src/document-model/gen/versioning/operations.d.ts +0 -9
  601. package/dist/node/src/document-model/index.d.ts +0 -76
  602. package/dist/node/src/index.d.ts +0 -24
  603. package/dist/node/test/document/crypto.test.d.ts +0 -1
  604. package/dist/node/test/document/event-vs-command.test.d.ts +0 -1
  605. package/dist/node/test/document/local.test.d.ts +0 -1
  606. package/dist/node/test/document/object.test.d.ts +0 -1
  607. package/dist/node/test/document/operation-id.test.d.ts +0 -1
  608. package/dist/node/test/document/prune.test.d.ts +0 -1
  609. package/dist/node/test/document/reducer.test.d.ts +0 -1
  610. package/dist/node/test/document/skip-operations.test.d.ts +0 -1
  611. package/dist/node/test/document/undo-redo.test.d.ts +0 -1
  612. package/dist/node/test/document/utils.test.d.ts +0 -1
  613. package/dist/node/test/document-helpers/addUndo.test.d.ts +0 -1
  614. package/dist/node/test/document-helpers/attachBranch.test.d.ts +0 -1
  615. package/dist/node/test/document-helpers/checkCleanedOperationsIntegrity.test.d.ts +0 -1
  616. package/dist/node/test/document-helpers/conflictResolution.test.d.ts +0 -1
  617. package/dist/node/test/document-helpers/filterDuplicatedOperations.test.d.ts +0 -1
  618. package/dist/node/test/document-helpers/garbageCollect.test.d.ts +0 -1
  619. package/dist/node/test/document-helpers/groupOperationsByScope.test.d.ts +0 -1
  620. package/dist/node/test/document-helpers/merge.test.d.ts +0 -1
  621. package/dist/node/test/document-helpers/nextSkipNumber.test.d.ts +0 -1
  622. package/dist/node/test/document-helpers/prepareOperations.test.d.ts +0 -1
  623. package/dist/node/test/document-helpers/removeExistingOperations.test.d.ts +0 -1
  624. package/dist/node/test/document-helpers/reshuffleByTimestamp.test.d.ts +0 -1
  625. package/dist/node/test/document-helpers/reshuffleByTimestampAndIndex.test.d.ts +0 -1
  626. package/dist/node/test/document-helpers/skipHeaderOperations.test.d.ts +0 -1
  627. package/dist/node/test/document-helpers/sortOperations.test.d.ts +0 -1
  628. package/dist/node/test/document-helpers/split.test.d.ts +0 -1
  629. package/dist/node/test/document-helpers/utils.d.ts +0 -7
  630. package/dist/node/test/document-model/object.test.d.ts +0 -1
  631. package/dist/node/test/document-model/replay.test.d.ts +0 -1
  632. package/dist/node/test/document-model/skip-operations.test.d.ts +0 -1
  633. package/dist/node/test/document-model/validation.test.d.ts +0 -1
  634. package/dist/node/test/document-model/zip.test.d.ts +0 -1
  635. package/dist/node/test/helpers.d.ts +0 -39
  636. package/dist/node/vite.config.d.ts +0 -2
  637. package/dist/node/vitest.config.d.ts +0 -2
@@ -1,453 +0,0 @@
1
- import { z } from 'zod';
2
- import { AddChangeLogItemInput, AddModuleInput, AddOperationErrorInput, AddOperationExampleInput, AddOperationInput, AddStateExampleInput, Author, CodeExample, DeleteChangeLogItemInput, DeleteModuleInput, DeleteOperationErrorInput, DeleteOperationExampleInput, DeleteOperationInput, DeleteStateExampleInput, DocumentModelState, DocumentSpecification, Module, MoveOperationInput, Operation, OperationError, ReorderChangeLogItemsInput, ReorderModuleOperationsInput, ReorderModulesInput, ReorderOperationErrorsInput, ReorderOperationExamplesInput, ReorderStateExamplesInput, ScopeState, SetAuthorNameInput, SetAuthorWebsiteInput, SetInitialStateInput, SetModelDescriptionInput, SetModelExtensionInput, SetModelIdInput, SetModelNameInput, SetModuleDescriptionInput, SetModuleNameInput, SetOperationDescriptionInput, SetOperationErrorCodeInput, SetOperationErrorDescriptionInput, SetOperationErrorNameInput, SetOperationErrorTemplateInput, SetOperationNameInput, SetOperationReducerInput, SetOperationSchemaInput, SetOperationScopeInput, SetOperationTemplateInput, SetStateSchemaInput, State, UpdateChangeLogItemInput, UpdateOperationExampleInput, UpdateStateExampleInput } from '.';
3
- import { OperationScope } from '../../../document';
4
- type Properties<T> = Required<{
5
- [K in keyof T]: z.ZodType<T[K], any, T[K]>;
6
- }>;
7
- type definedNonNullAny = {};
8
- export declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
9
- export declare const definedNonNullAnySchema: z.ZodEffects<z.ZodAny, definedNonNullAny, any>;
10
- export declare function AddChangeLogItemInputSchema(): z.ZodObject<Properties<AddChangeLogItemInput>>;
11
- export declare function AddModuleInputSchema(): z.ZodObject<Properties<AddModuleInput>>;
12
- export declare function AddOperationErrorInputSchema(): z.ZodObject<Properties<AddOperationErrorInput>>;
13
- export declare function AddOperationExampleInputSchema(): z.ZodObject<Properties<AddOperationExampleInput>>;
14
- export declare function AddOperationInputSchema(): z.ZodObject<Properties<AddOperationInput>>;
15
- export declare function AddStateExampleInputSchema(): z.ZodObject<Properties<AddStateExampleInput>>;
16
- export declare function AuthorSchema(): z.ZodObject<Properties<Author>>;
17
- export declare function CodeExampleSchema(): z.ZodObject<Properties<CodeExample>>;
18
- export declare function DeleteChangeLogItemInputSchema(): z.ZodObject<Properties<DeleteChangeLogItemInput>>;
19
- export declare function DeleteModuleInputSchema(): z.ZodObject<Properties<DeleteModuleInput>>;
20
- export declare function DeleteOperationErrorInputSchema(): z.ZodObject<Properties<DeleteOperationErrorInput>>;
21
- export declare function DeleteOperationExampleInputSchema(): z.ZodObject<Properties<DeleteOperationExampleInput>>;
22
- export declare function DeleteOperationInputSchema(): z.ZodObject<Properties<DeleteOperationInput>>;
23
- export declare function DeleteStateExampleInputSchema(): z.ZodObject<Properties<DeleteStateExampleInput>>;
24
- export declare function OperationScopeSchema(): z.ZodType<OperationScope>;
25
- export declare function DocumentModelInputSchema(): z.ZodUnion<[z.ZodObject<Required<{
26
- __typename?: z.ZodType<"AddChangeLogItemInput" | undefined, any, "AddChangeLogItemInput" | undefined> | undefined;
27
- content: z.ZodType<string, any, string>;
28
- id: z.ZodType<string, any, string>;
29
- insertBefore: z.ZodType<import('./types').Maybe<string>, any, import('./types').Maybe<string>>;
30
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
31
- content: import('./types').Scalars["String"]["output"];
32
- id: import('./types').Scalars["ID"]["output"];
33
- insertBefore: import('./types').Maybe<import('./types').Scalars["ID"]["output"]>;
34
- __typename?: "AddChangeLogItemInput" | undefined;
35
- }, {
36
- content: import('./types').Scalars["String"]["output"];
37
- id: import('./types').Scalars["ID"]["output"];
38
- insertBefore: import('./types').Maybe<import('./types').Scalars["ID"]["output"]>;
39
- __typename?: "AddChangeLogItemInput" | undefined;
40
- }>, z.ZodObject<Required<{
41
- description?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
42
- id: z.ZodType<string, any, string>;
43
- name: z.ZodType<string, any, string>;
44
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
45
- id: import('./types').Scalars["ID"]["input"];
46
- name: import('./types').Scalars["String"]["input"];
47
- description?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
48
- }, {
49
- id: import('./types').Scalars["ID"]["input"];
50
- name: import('./types').Scalars["String"]["input"];
51
- description?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
52
- }>, z.ZodObject<Required<{
53
- errorCode?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
54
- errorDescription?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
55
- errorName?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
56
- errorTemplate?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
57
- id: z.ZodType<string, any, string>;
58
- operationId: z.ZodType<string, any, string>;
59
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
60
- id: import('./types').Scalars["ID"]["input"];
61
- operationId: import('./types').Scalars["ID"]["input"];
62
- errorCode?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
63
- errorDescription?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
64
- errorName?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
65
- errorTemplate?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
66
- }, {
67
- id: import('./types').Scalars["ID"]["input"];
68
- operationId: import('./types').Scalars["ID"]["input"];
69
- errorCode?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
70
- errorDescription?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
71
- errorName?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
72
- errorTemplate?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
73
- }>, z.ZodObject<Required<{
74
- example: z.ZodType<string, any, string>;
75
- id: z.ZodType<string, any, string>;
76
- operationId: z.ZodType<string, any, string>;
77
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
78
- id: import('./types').Scalars["ID"]["input"];
79
- operationId: import('./types').Scalars["ID"]["input"];
80
- example: import('./types').Scalars["String"]["input"];
81
- }, {
82
- id: import('./types').Scalars["ID"]["input"];
83
- operationId: import('./types').Scalars["ID"]["input"];
84
- example: import('./types').Scalars["String"]["input"];
85
- }>, z.ZodObject<Required<{
86
- description?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
87
- id: z.ZodType<string, any, string>;
88
- moduleId: z.ZodType<string, any, string>;
89
- name: z.ZodType<string, any, string>;
90
- reducer?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
91
- schema?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
92
- template?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
93
- scope?: z.ZodType<import('./types').InputMaybe<OperationScope>, any, import('./types').InputMaybe<OperationScope>> | undefined;
94
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
95
- id: import('./types').Scalars["ID"]["input"];
96
- name: import('./types').Scalars["String"]["input"];
97
- moduleId: import('./types').Scalars["ID"]["input"];
98
- description?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
99
- reducer?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
100
- schema?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
101
- template?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
102
- scope?: import('./types').InputMaybe<OperationScope>;
103
- }, {
104
- id: import('./types').Scalars["ID"]["input"];
105
- name: import('./types').Scalars["String"]["input"];
106
- moduleId: import('./types').Scalars["ID"]["input"];
107
- description?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
108
- reducer?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
109
- schema?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
110
- template?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
111
- scope?: import('./types').InputMaybe<OperationScope>;
112
- }>, z.ZodObject<Required<{
113
- scope: z.ZodType<string, any, string>;
114
- example: z.ZodType<string, any, string>;
115
- id: z.ZodType<string, any, string>;
116
- insertBefore?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
117
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
118
- id: import('./types').Scalars["ID"]["input"];
119
- example: import('./types').Scalars["String"]["input"];
120
- scope: import('./types').Scalars["String"]["input"];
121
- insertBefore?: import('./types').InputMaybe<import('./types').Scalars["ID"]["input"]>;
122
- }, {
123
- id: import('./types').Scalars["ID"]["input"];
124
- example: import('./types').Scalars["String"]["input"];
125
- scope: import('./types').Scalars["String"]["input"];
126
- insertBefore?: import('./types').InputMaybe<import('./types').Scalars["ID"]["input"]>;
127
- }>, z.ZodObject<Required<{
128
- __typename?: z.ZodType<"DeleteChangeLogItemInput" | undefined, any, "DeleteChangeLogItemInput" | undefined> | undefined;
129
- id: z.ZodType<string, any, string>;
130
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
131
- id: import('./types').Scalars["ID"]["output"];
132
- __typename?: "DeleteChangeLogItemInput" | undefined;
133
- }, {
134
- id: import('./types').Scalars["ID"]["output"];
135
- __typename?: "DeleteChangeLogItemInput" | undefined;
136
- }>, z.ZodObject<Required<{
137
- id: z.ZodType<string, any, string>;
138
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
139
- id: import('./types').Scalars["ID"]["input"];
140
- }, {
141
- id: import('./types').Scalars["ID"]["input"];
142
- }>, z.ZodObject<Required<{
143
- id: z.ZodType<string, any, string>;
144
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
145
- id: import('./types').Scalars["ID"]["input"];
146
- }, {
147
- id: import('./types').Scalars["ID"]["input"];
148
- }>, z.ZodObject<Required<{
149
- id: z.ZodType<string, any, string>;
150
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
151
- id: import('./types').Scalars["ID"]["input"];
152
- }, {
153
- id: import('./types').Scalars["ID"]["input"];
154
- }>, z.ZodObject<Required<{
155
- id: z.ZodType<string, any, string>;
156
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
157
- id: import('./types').Scalars["ID"]["input"];
158
- }, {
159
- id: import('./types').Scalars["ID"]["input"];
160
- }>, z.ZodObject<Required<{
161
- scope: z.ZodType<string, any, string>;
162
- id: z.ZodType<string, any, string>;
163
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
164
- id: import('./types').Scalars["ID"]["input"];
165
- scope: import('./types').Scalars["String"]["input"];
166
- }, {
167
- id: import('./types').Scalars["ID"]["input"];
168
- scope: import('./types').Scalars["String"]["input"];
169
- }>, z.ZodObject<Required<{
170
- newModuleId: z.ZodType<string, any, string>;
171
- operationId: z.ZodType<string, any, string>;
172
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
173
- operationId: import('./types').Scalars["ID"]["input"];
174
- newModuleId: import('./types').Scalars["ID"]["input"];
175
- }, {
176
- operationId: import('./types').Scalars["ID"]["input"];
177
- newModuleId: import('./types').Scalars["ID"]["input"];
178
- }>, z.ZodObject<Required<{
179
- __typename?: z.ZodType<"ReorderChangeLogItemsInput" | undefined, any, "ReorderChangeLogItemsInput" | undefined> | undefined;
180
- order: z.ZodType<string[], any, string[]>;
181
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
182
- order: Array<import('./types').Scalars["ID"]["output"]>;
183
- __typename?: "ReorderChangeLogItemsInput" | undefined;
184
- }, {
185
- order: Array<import('./types').Scalars["ID"]["output"]>;
186
- __typename?: "ReorderChangeLogItemsInput" | undefined;
187
- }>, z.ZodObject<Required<{
188
- moduleId: z.ZodType<string, any, string>;
189
- order: z.ZodType<string[], any, string[]>;
190
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
191
- moduleId: import('./types').Scalars["ID"]["input"];
192
- order: Array<import('./types').Scalars["ID"]["input"]>;
193
- }, {
194
- moduleId: import('./types').Scalars["ID"]["input"];
195
- order: Array<import('./types').Scalars["ID"]["input"]>;
196
- }>, z.ZodObject<Required<{
197
- order: z.ZodType<string[], any, string[]>;
198
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
199
- order: Array<import('./types').Scalars["ID"]["input"]>;
200
- }, {
201
- order: Array<import('./types').Scalars["ID"]["input"]>;
202
- }>, z.ZodObject<Required<{
203
- operationId: z.ZodType<string, any, string>;
204
- order: z.ZodType<string[], any, string[]>;
205
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
206
- operationId: import('./types').Scalars["ID"]["input"];
207
- order: Array<import('./types').Scalars["ID"]["input"]>;
208
- }, {
209
- operationId: import('./types').Scalars["ID"]["input"];
210
- order: Array<import('./types').Scalars["ID"]["input"]>;
211
- }>, z.ZodObject<Required<{
212
- operationId: z.ZodType<string, any, string>;
213
- order: z.ZodType<string[], any, string[]>;
214
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
215
- operationId: import('./types').Scalars["ID"]["input"];
216
- order: Array<import('./types').Scalars["ID"]["input"]>;
217
- }, {
218
- operationId: import('./types').Scalars["ID"]["input"];
219
- order: Array<import('./types').Scalars["ID"]["input"]>;
220
- }>, z.ZodObject<Required<{
221
- scope: z.ZodType<string, any, string>;
222
- order: z.ZodType<string[], any, string[]>;
223
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
224
- scope: import('./types').Scalars["String"]["input"];
225
- order: Array<import('./types').Scalars["ID"]["input"]>;
226
- }, {
227
- scope: import('./types').Scalars["String"]["input"];
228
- order: Array<import('./types').Scalars["ID"]["input"]>;
229
- }>, z.ZodObject<Required<{
230
- authorName: z.ZodType<string, any, string>;
231
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
232
- authorName: import('./types').Scalars["String"]["input"];
233
- }, {
234
- authorName: import('./types').Scalars["String"]["input"];
235
- }>, z.ZodObject<Required<{
236
- authorWebsite: z.ZodType<string, any, string>;
237
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
238
- authorWebsite: import('./types').Scalars["String"]["input"];
239
- }, {
240
- authorWebsite: import('./types').Scalars["String"]["input"];
241
- }>, z.ZodObject<Required<{
242
- scope: z.ZodType<string, any, string>;
243
- initialValue: z.ZodType<string, any, string>;
244
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
245
- scope: import('./types').Scalars["String"]["input"];
246
- initialValue: import('./types').Scalars["String"]["input"];
247
- }, {
248
- scope: import('./types').Scalars["String"]["input"];
249
- initialValue: import('./types').Scalars["String"]["input"];
250
- }>, z.ZodObject<Required<{
251
- description: z.ZodType<string, any, string>;
252
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
253
- description: import('./types').Scalars["String"]["input"];
254
- }, {
255
- description: import('./types').Scalars["String"]["input"];
256
- }>, z.ZodObject<Required<{
257
- extension: z.ZodType<string, any, string>;
258
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
259
- extension: import('./types').Scalars["String"]["input"];
260
- }, {
261
- extension: import('./types').Scalars["String"]["input"];
262
- }>, z.ZodObject<Required<{
263
- id: z.ZodType<string, any, string>;
264
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
265
- id: import('./types').Scalars["String"]["input"];
266
- }, {
267
- id: import('./types').Scalars["String"]["input"];
268
- }>, z.ZodObject<Required<{
269
- name: z.ZodType<string, any, string>;
270
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
271
- name: import('./types').Scalars["String"]["input"];
272
- }, {
273
- name: import('./types').Scalars["String"]["input"];
274
- }>, z.ZodObject<Required<{
275
- description?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
276
- id: z.ZodType<string, any, string>;
277
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
278
- id: import('./types').Scalars["ID"]["input"];
279
- description?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
280
- }, {
281
- id: import('./types').Scalars["ID"]["input"];
282
- description?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
283
- }>, z.ZodObject<Required<{
284
- id: z.ZodType<string, any, string>;
285
- name?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
286
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
287
- id: import('./types').Scalars["ID"]["input"];
288
- name?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
289
- }, {
290
- id: import('./types').Scalars["ID"]["input"];
291
- name?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
292
- }>, z.ZodObject<Required<{
293
- description?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
294
- id: z.ZodType<string, any, string>;
295
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
296
- id: import('./types').Scalars["ID"]["input"];
297
- description?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
298
- }, {
299
- id: import('./types').Scalars["ID"]["input"];
300
- description?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
301
- }>, z.ZodObject<Required<{
302
- errorCode?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
303
- id: z.ZodType<string, any, string>;
304
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
305
- id: import('./types').Scalars["ID"]["input"];
306
- errorCode?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
307
- }, {
308
- id: import('./types').Scalars["ID"]["input"];
309
- errorCode?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
310
- }>, z.ZodObject<Required<{
311
- errorDescription?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
312
- id: z.ZodType<string, any, string>;
313
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
314
- id: import('./types').Scalars["ID"]["input"];
315
- errorDescription?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
316
- }, {
317
- id: import('./types').Scalars["ID"]["input"];
318
- errorDescription?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
319
- }>, z.ZodObject<Required<{
320
- errorName?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
321
- id: z.ZodType<string, any, string>;
322
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
323
- id: import('./types').Scalars["ID"]["input"];
324
- errorName?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
325
- }, {
326
- id: import('./types').Scalars["ID"]["input"];
327
- errorName?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
328
- }>, z.ZodObject<Required<{
329
- errorTemplate?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
330
- id: z.ZodType<string, any, string>;
331
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
332
- id: import('./types').Scalars["ID"]["input"];
333
- errorTemplate?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
334
- }, {
335
- id: import('./types').Scalars["ID"]["input"];
336
- errorTemplate?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
337
- }>, z.ZodObject<Required<{
338
- id: z.ZodType<string, any, string>;
339
- name?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
340
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
341
- id: import('./types').Scalars["ID"]["input"];
342
- name?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
343
- }, {
344
- id: import('./types').Scalars["ID"]["input"];
345
- name?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
346
- }>, z.ZodObject<Required<{
347
- id: z.ZodType<string, any, string>;
348
- reducer?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
349
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
350
- id: import('./types').Scalars["ID"]["input"];
351
- reducer?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
352
- }, {
353
- id: import('./types').Scalars["ID"]["input"];
354
- reducer?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
355
- }>, z.ZodObject<Required<{
356
- id: z.ZodType<string, any, string>;
357
- schema?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
358
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
359
- id: import('./types').Scalars["ID"]["input"];
360
- schema?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
361
- }, {
362
- id: import('./types').Scalars["ID"]["input"];
363
- schema?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
364
- }>, z.ZodObject<Required<{
365
- id: z.ZodType<string, any, string>;
366
- template?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
367
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
368
- id: import('./types').Scalars["ID"]["input"];
369
- template?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
370
- }, {
371
- id: import('./types').Scalars["ID"]["input"];
372
- template?: import('./types').InputMaybe<import('./types').Scalars["String"]["input"]>;
373
- }>, z.ZodObject<Required<{
374
- scope: z.ZodType<string, any, string>;
375
- schema: z.ZodType<string, any, string>;
376
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
377
- schema: import('./types').Scalars["String"]["input"];
378
- scope: import('./types').Scalars["String"]["input"];
379
- }, {
380
- schema: import('./types').Scalars["String"]["input"];
381
- scope: import('./types').Scalars["String"]["input"];
382
- }>, z.ZodObject<Required<{
383
- __typename?: z.ZodType<"UpdateChangeLogItemInput" | undefined, any, "UpdateChangeLogItemInput" | undefined> | undefined;
384
- id: z.ZodType<string, any, string>;
385
- newContent: z.ZodType<string, any, string>;
386
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
387
- id: import('./types').Scalars["ID"]["output"];
388
- newContent: import('./types').Scalars["String"]["output"];
389
- __typename?: "UpdateChangeLogItemInput" | undefined;
390
- }, {
391
- id: import('./types').Scalars["ID"]["output"];
392
- newContent: import('./types').Scalars["String"]["output"];
393
- __typename?: "UpdateChangeLogItemInput" | undefined;
394
- }>, z.ZodObject<Required<{
395
- example: z.ZodType<string, any, string>;
396
- id: z.ZodType<string, any, string>;
397
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
398
- id: import('./types').Scalars["ID"]["input"];
399
- example: import('./types').Scalars["String"]["input"];
400
- }, {
401
- id: import('./types').Scalars["ID"]["input"];
402
- example: import('./types').Scalars["String"]["input"];
403
- }>, z.ZodObject<Required<{
404
- scope: z.ZodType<string, any, string>;
405
- id: z.ZodType<string, any, string>;
406
- newExample: z.ZodType<string, any, string>;
407
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
408
- id: import('./types').Scalars["ID"]["input"];
409
- scope: import('./types').Scalars["String"]["input"];
410
- newExample: import('./types').Scalars["String"]["input"];
411
- }, {
412
- id: import('./types').Scalars["ID"]["input"];
413
- scope: import('./types').Scalars["String"]["input"];
414
- newExample: import('./types').Scalars["String"]["input"];
415
- }>]>;
416
- export declare function DocumentModelStateSchema(): z.ZodObject<Properties<DocumentModelState>>;
417
- export declare function DocumentSpecificationSchema(): z.ZodObject<Properties<DocumentSpecification>>;
418
- export declare function ModuleSchema(): z.ZodObject<Properties<Module>>;
419
- export declare function MoveOperationInputSchema(): z.ZodObject<Properties<MoveOperationInput>>;
420
- export declare function OperationSchema(): z.ZodObject<Properties<Operation>>;
421
- export declare function OperationErrorSchema(): z.ZodObject<Properties<OperationError>>;
422
- export declare function ReorderChangeLogItemsInputSchema(): z.ZodObject<Properties<ReorderChangeLogItemsInput>>;
423
- export declare function ReorderModuleOperationsInputSchema(): z.ZodObject<Properties<ReorderModuleOperationsInput>>;
424
- export declare function ReorderModulesInputSchema(): z.ZodObject<Properties<ReorderModulesInput>>;
425
- export declare function ReorderOperationErrorsInputSchema(): z.ZodObject<Properties<ReorderOperationErrorsInput>>;
426
- export declare function ReorderOperationExamplesInputSchema(): z.ZodObject<Properties<ReorderOperationExamplesInput>>;
427
- export declare function ReorderStateExamplesInputSchema(): z.ZodObject<Properties<ReorderStateExamplesInput>>;
428
- export declare function SetAuthorNameInputSchema(): z.ZodObject<Properties<SetAuthorNameInput>>;
429
- export declare function SetAuthorWebsiteInputSchema(): z.ZodObject<Properties<SetAuthorWebsiteInput>>;
430
- export declare function SetInitialStateInputSchema(): z.ZodObject<Properties<SetInitialStateInput>>;
431
- export declare function SetModelDescriptionInputSchema(): z.ZodObject<Properties<SetModelDescriptionInput>>;
432
- export declare function SetModelExtensionInputSchema(): z.ZodObject<Properties<SetModelExtensionInput>>;
433
- export declare function SetModelIdInputSchema(): z.ZodObject<Properties<SetModelIdInput>>;
434
- export declare function SetModelNameInputSchema(): z.ZodObject<Properties<SetModelNameInput>>;
435
- export declare function SetModuleDescriptionInputSchema(): z.ZodObject<Properties<SetModuleDescriptionInput>>;
436
- export declare function SetModuleNameInputSchema(): z.ZodObject<Properties<SetModuleNameInput>>;
437
- export declare function SetOperationDescriptionInputSchema(): z.ZodObject<Properties<SetOperationDescriptionInput>>;
438
- export declare function SetOperationErrorCodeInputSchema(): z.ZodObject<Properties<SetOperationErrorCodeInput>>;
439
- export declare function SetOperationErrorDescriptionInputSchema(): z.ZodObject<Properties<SetOperationErrorDescriptionInput>>;
440
- export declare function SetOperationErrorNameInputSchema(): z.ZodObject<Properties<SetOperationErrorNameInput>>;
441
- export declare function SetOperationErrorTemplateInputSchema(): z.ZodObject<Properties<SetOperationErrorTemplateInput>>;
442
- export declare function SetOperationNameInputSchema(): z.ZodObject<Properties<SetOperationNameInput>>;
443
- export declare function SetOperationScopeInputSchema(): z.ZodObject<Properties<SetOperationScopeInput>>;
444
- export declare function SetOperationReducerInputSchema(): z.ZodObject<Properties<SetOperationReducerInput>>;
445
- export declare function SetOperationSchemaInputSchema(): z.ZodObject<Properties<SetOperationSchemaInput>>;
446
- export declare function SetOperationTemplateInputSchema(): z.ZodObject<Properties<SetOperationTemplateInput>>;
447
- export declare function SetStateSchemaInputSchema(): z.ZodObject<Properties<SetStateSchemaInput>>;
448
- export declare function StateSchema(): z.ZodObject<Properties<State>>;
449
- export declare function ScopeStateSchema(): z.ZodObject<Properties<ScopeState>>;
450
- export declare function UpdateChangeLogItemInputSchema(): z.ZodObject<Properties<UpdateChangeLogItemInput>>;
451
- export declare function UpdateOperationExampleInputSchema(): z.ZodObject<Properties<UpdateOperationExampleInput>>;
452
- export declare function UpdateStateExampleInputSchema(): z.ZodObject<Properties<UpdateStateExampleInput>>;
453
- export {};
@@ -1,9 +0,0 @@
1
- import { Action } from '../../../document';
2
- import { SetStateSchemaInput, SetInitialStateInput, AddStateExampleInput, UpdateStateExampleInput, DeleteStateExampleInput, ReorderStateExamplesInput } from '../types';
3
- export type SetStateSchemaAction = Action<"SET_STATE_SCHEMA", SetStateSchemaInput>;
4
- export type SetInitialStateAction = Action<"SET_INITIAL_STATE", SetInitialStateInput>;
5
- export type AddStateExampleAction = Action<"ADD_STATE_EXAMPLE", AddStateExampleInput>;
6
- export type UpdateStateExampleAction = Action<"UPDATE_STATE_EXAMPLE", UpdateStateExampleInput>;
7
- export type DeleteStateExampleAction = Action<"DELETE_STATE_EXAMPLE", DeleteStateExampleInput>;
8
- export type ReorderStateExamplesAction = Action<"REORDER_STATE_EXAMPLES", ReorderStateExamplesInput>;
9
- export type DocumentModelStateAction = SetStateSchemaAction | SetInitialStateAction | AddStateExampleAction | UpdateStateExampleAction | DeleteStateExampleAction | ReorderStateExamplesAction;
@@ -1,12 +0,0 @@
1
- import { BaseDocument } from '../../../document/object';
2
- import { SetStateSchemaInput, SetInitialStateInput, AddStateExampleInput, UpdateStateExampleInput, DeleteStateExampleInput, ReorderStateExamplesInput, DocumentModelState, DocumentModelLocalState } from '../types';
3
- import { DocumentModelAction } from '../actions';
4
- import { ReducerOptions } from '../../../document';
5
- export default class DocumentModel_State extends BaseDocument<DocumentModelState, DocumentModelAction, DocumentModelLocalState> {
6
- setStateSchema(input: SetStateSchemaInput, options?: ReducerOptions): this;
7
- setInitialState(input: SetInitialStateInput, options?: ReducerOptions): this;
8
- addStateExample(input: AddStateExampleInput, options?: ReducerOptions): this;
9
- updateStateExample(input: UpdateStateExampleInput, options?: ReducerOptions): this;
10
- deleteStateExample(input: DeleteStateExampleInput, options?: ReducerOptions): this;
11
- reorderStateExamples(input: ReorderStateExamplesInput, options?: ReducerOptions): this;
12
- }
@@ -1,8 +0,0 @@
1
- import { Document, ExtendedState } from '../../document/types';
2
- import { DocumentModelState, DocumentModelLocalState } from './schema/types';
3
- import { DocumentModelAction } from './actions';
4
- export { z } from './schema';
5
- export type * from './schema/types';
6
- export type ExtendedDocumentModelState = ExtendedState<DocumentModelState>;
7
- export type DocumentModelDocument = Document<DocumentModelState, DocumentModelAction, DocumentModelLocalState>;
8
- export { DocumentModelState, DocumentModelAction, DocumentModelLocalState };
@@ -1,6 +0,0 @@
1
- import { DocumentModelUtils } from '../../document';
2
- import { DocumentModelAction, DocumentModelLocalState, DocumentModelState } from './types';
3
- export declare const initialGlobalState: DocumentModelState;
4
- export declare const initialLocalState: DocumentModelLocalState;
5
- declare const utils: DocumentModelUtils<DocumentModelState, DocumentModelAction, DocumentModelLocalState>;
6
- export default utils;
@@ -1,8 +0,0 @@
1
- import { Action } from '../../../document';
2
- import { AddChangeLogItemInput, UpdateChangeLogItemInput, DeleteChangeLogItemInput, ReorderChangeLogItemsInput } from '../types';
3
- export type AddChangeLogItemAction = Action<"ADD_CHANGE_LOG_ITEM", AddChangeLogItemInput>;
4
- export type UpdateChangeLogItemAction = Action<"UPDATE_CHANGE_LOG_ITEM", UpdateChangeLogItemInput>;
5
- export type DeleteChangeLogItemAction = Action<"DELETE_CHANGE_LOG_ITEM", DeleteChangeLogItemInput>;
6
- export type ReorderChangeLogItemsAction = Action<"REORDER_CHANGE_LOG_ITEMS", ReorderChangeLogItemsInput>;
7
- export type ReleaseNewVersionAction = Action<"RELEASE_NEW_VERSION", never>;
8
- export type DocumentModelVersioningAction = AddChangeLogItemAction | UpdateChangeLogItemAction | DeleteChangeLogItemAction | ReorderChangeLogItemsAction | ReleaseNewVersionAction;
@@ -1,11 +0,0 @@
1
- import { BaseDocument } from '../../../document/object';
2
- import { AddChangeLogItemInput, UpdateChangeLogItemInput, DeleteChangeLogItemInput, ReorderChangeLogItemsInput, DocumentModelState, DocumentModelLocalState } from '../types';
3
- import { DocumentModelAction } from '../actions';
4
- import { ReducerOptions } from '../../../document';
5
- export default class DocumentModel_Versioning extends BaseDocument<DocumentModelState, DocumentModelAction, DocumentModelLocalState> {
6
- addChangeLogItem(input: AddChangeLogItemInput, options?: ReducerOptions): this;
7
- updateChangeLogItem(input: UpdateChangeLogItemInput, options?: ReducerOptions): this;
8
- deleteChangeLogItem(input: DeleteChangeLogItemInput, options?: ReducerOptions): this;
9
- reorderChangeLogItems(input: ReorderChangeLogItemsInput, options?: ReducerOptions): this;
10
- releaseNewVersion(options?: ReducerOptions): this;
11
- }
@@ -1,76 +0,0 @@
1
- import { DocumentModel as _DocumentModel } from '../document';
2
- import { DocumentModel } from './gen';
3
- import { documentModel } from './gen/document-model';
4
- import { reducer } from './gen/reducer';
5
- import { DocumentModelAction, DocumentModelLocalState, DocumentModelState } from './gen/types';
6
- declare const Document: typeof DocumentModel;
7
- declare const utils: {
8
- validateInitialState(initialState: string, allowEmptyState?: boolean): import('../document').ValidationError[];
9
- validateStateSchemaName(schema: string, documentName: string, scope?: string, allowEmptySchema?: boolean): import('../document').ValidationError[];
10
- validateModules(modules: Array<import('./gen').Module>): import('../document').ValidationError[];
11
- validateModule(mod: import('./gen').Module): import('../document').ValidationError[];
12
- validateModuleOperation(operation: import('./gen').Operation): import('../document').ValidationError[];
13
- fileExtension: string;
14
- createState: import('../document').CreateState<DocumentModelState, DocumentModelLocalState>;
15
- createExtendedState: (extendedState?: Partial<import('../document').ExtendedState<import('../document').PartialState<DocumentModelState>, import('../document').PartialState<DocumentModelLocalState>>> | undefined, createState?: import('../document').CreateState<DocumentModelState, DocumentModelLocalState> | undefined) => import('../document').ExtendedState<DocumentModelState, DocumentModelLocalState>;
16
- createDocument: (document?: Partial<import('../document').ExtendedState<import('../document').PartialState<DocumentModelState>, import('../document').PartialState<DocumentModelLocalState>>> | undefined, createState?: import('../document').CreateState<DocumentModelState, DocumentModelLocalState> | undefined) => import('../document').Document<DocumentModelState, DocumentModelAction, DocumentModelLocalState>;
17
- loadFromFile: (path: string) => Promise<import('../document').Document<DocumentModelState, DocumentModelAction, DocumentModelLocalState>>;
18
- loadFromInput: (input: import('../document').FileInput) => Promise<import('../document').Document<DocumentModelState, DocumentModelAction, DocumentModelLocalState>>;
19
- saveToFile: (document: import('../document').Document<DocumentModelState, DocumentModelAction, DocumentModelLocalState>, path: string, name?: string) => Promise<string>;
20
- saveToFileHandle: (document: import('../document').Document<DocumentModelState, DocumentModelAction, DocumentModelLocalState>, input: FileSystemFileHandle) => Promise<void>;
21
- };
22
- declare const actions: {
23
- setModelName: (input: import('./gen').SetModelNameInput) => import('./gen').SetModelNameAction;
24
- setModelId: (input: import('./gen').SetModelIdInput) => import('./gen').SetModelIdAction;
25
- setModelExtension: (input: import('./gen').SetModelExtensionInput) => import('./gen').SetModelExtensionAction;
26
- setModelDescription: (input: import('./gen').SetModelDescriptionInput) => import('./gen').SetModelDescriptionAction;
27
- setAuthorName: (input: import('./gen').SetAuthorNameInput) => import('./gen').SetAuthorNameAction;
28
- setAuthorWebsite: (input: import('./gen').SetAuthorWebsiteInput) => import('./gen').SetAuthorWebsiteAction;
29
- addChangeLogItem: (input: import('./gen').AddChangeLogItemInput) => import('./gen').AddChangeLogItemAction;
30
- updateChangeLogItem: (input: import('./gen').UpdateChangeLogItemInput) => import('./gen').UpdateChangeLogItemAction;
31
- deleteChangeLogItem: (input: import('./gen').DeleteChangeLogItemInput) => import('./gen').DeleteChangeLogItemAction;
32
- reorderChangeLogItems: (input: import('./gen').ReorderChangeLogItemsInput) => import('./gen').ReorderChangeLogItemsAction;
33
- releaseNewVersion: () => import('./gen').ReleaseNewVersionAction;
34
- addModule: (input: import('./gen').AddModuleInput) => import('./gen').AddModuleAction;
35
- setModuleName: (input: import('./gen').SetModuleNameInput) => import('./gen').SetModuleNameAction;
36
- setModuleDescription: (input: import('./gen').SetModuleDescriptionInput) => import('./gen').SetModuleDescriptionAction;
37
- deleteModule: (input: import('./gen').DeleteModuleInput) => import('./gen').DeleteModuleAction;
38
- reorderModules: (input: import('./gen').ReorderModulesInput) => import('./gen').ReorderModulesAction;
39
- addOperationError: (input: import('./gen').AddOperationErrorInput) => import('./gen').AddOperationErrorAction;
40
- setOperationErrorCode: (input: import('./gen').SetOperationErrorCodeInput) => import('./gen').SetOperationErrorCodeAction;
41
- setOperationErrorName: (input: import('./gen').SetOperationErrorNameInput) => import('./gen').SetOperationErrorNameAction;
42
- setOperationErrorDescription: (input: import('./gen').SetOperationErrorDescriptionInput) => import('./gen').SetOperationErrorDescriptionAction;
43
- setOperationErrorTemplate: (input: import('./gen').SetOperationErrorTemplateInput) => import('./gen').SetOperationErrorTemplateAction;
44
- deleteOperationError: (input: import('./gen').DeleteOperationErrorInput) => import('./gen').DeleteOperationErrorAction;
45
- reorderOperationErrors: (input: import('./gen').ReorderOperationErrorsInput) => import('./gen').ReorderOperationErrorsAction;
46
- addOperationExample: (input: import('./gen').AddOperationExampleInput) => import('./gen').AddOperationExampleAction;
47
- updateOperationExample: (input: import('./gen').UpdateOperationExampleInput) => import('./gen').UpdateOperationExampleAction;
48
- deleteOperationExample: (input: import('./gen').DeleteOperationExampleInput) => import('./gen').DeleteOperationExampleAction;
49
- reorderOperationExamples: (input: import('./gen').ReorderOperationExamplesInput) => import('./gen').ReorderOperationExamplesAction;
50
- addOperation: (input: import('./gen').AddOperationInput) => import('./gen').AddOperationAction;
51
- setOperationName: (input: import('./gen').SetOperationNameInput) => import('./gen').SetOperationNameAction;
52
- setOperationScope: (input: import('./gen').SetOperationScopeInput) => import('./gen').SetOperationScopeAction;
53
- setOperationSchema: (input: import('./gen').SetOperationSchemaInput) => import('./gen').SetOperationSchemaAction;
54
- setOperationDescription: (input: import('./gen').SetOperationDescriptionInput) => import('./gen').SetOperationDescriptionAction;
55
- setOperationTemplate: (input: import('./gen').SetOperationTemplateInput) => import('./gen').SetOperationTemplateAction;
56
- setOperationReducer: (input: import('./gen').SetOperationReducerInput) => import('./gen').SetOperationReducerAction;
57
- moveOperation: (input: import('./gen').MoveOperationInput) => import('./gen').MoveOperationAction;
58
- deleteOperation: (input: import('./gen').DeleteOperationInput) => import('./gen').DeleteOperationAction;
59
- reorderModuleOperations: (input: import('./gen').ReorderModuleOperationsInput) => import('./gen').ReorderModuleOperationsAction;
60
- setStateSchema: (input: import('./gen').SetStateSchemaInput) => import('./gen').SetStateSchemaAction;
61
- setInitialState: (input: import('./gen').SetInitialStateInput) => import('./gen').SetInitialStateAction;
62
- addStateExample: (input: import('./gen').AddStateExampleInput) => import('./gen').AddStateExampleAction;
63
- updateStateExample: (input: import('./gen').UpdateStateExampleInput) => import('./gen').UpdateStateExampleAction;
64
- deleteStateExample: (input: import('./gen').DeleteStateExampleInput) => import('./gen').DeleteStateExampleAction;
65
- reorderStateExamples: (input: import('./gen').ReorderStateExamplesInput) => import('./gen').ReorderStateExamplesAction;
66
- setName: (name: string) => import('../document/actions/types').SetNameAction;
67
- undo: (skip?: number, scope?: import('../document').OperationScope) => import('../document/actions/types').UndoAction;
68
- redo: (count?: number, scope?: import('../document').OperationScope) => import('../document/actions/types').RedoAction;
69
- prune: (start?: number | undefined, end?: number | undefined, scope?: import('../document').OperationScope) => import('../document/actions/types').PruneAction;
70
- loadState: <S, T>(state: Pick<import('../document').ExtendedState<S, T>, "state" | "name">, operations: number) => import('../document/actions/types').LoadStateAction;
71
- noop: (scope?: import('../document').OperationScope) => import('../document/actions/types').NOOPAction;
72
- };
73
- export declare const module: _DocumentModel<DocumentModelState, DocumentModelAction, DocumentModelLocalState, DocumentModel>;
74
- export * from './custom/utils';
75
- export * from './gen/types';
76
- export { DocumentModel, Document, reducer, actions, utils, documentModel };