@seedprotocol/sdk 0.7.6 → 0.7.7

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 (249) hide show
  1. package/dist/{ClientManager-D6YA20jP.js → ClientManager-2GtDWHq6.js} +297 -218
  2. package/dist/ClientManager-2GtDWHq6.js.map +1 -0
  3. package/dist/{Item-B1MH0tXx.js → Item-D6j0IvBP.js} +233 -330
  4. package/dist/Item-D6j0IvBP.js.map +1 -0
  5. package/dist/{ModelProperty-Dw6dHdu_.js → ModelProperty-B52C3CQ2.js} +33 -33
  6. package/dist/ModelProperty-B52C3CQ2.js.map +1 -0
  7. package/dist/{Schema-DppObO6h.js → Schema-O1QLoXv6.js} +49 -58
  8. package/dist/Schema-O1QLoXv6.js.map +1 -0
  9. package/dist/{SchemaValidationService-DXQ-D531.js → SchemaValidationService-BxCbfDaI.js} +9 -9
  10. package/dist/SchemaValidationService-BxCbfDaI.js.map +1 -0
  11. package/dist/{backfillMetadataPropertyIds-Uhzlwg9X.js → backfillMetadataPropertyIds-CzSbuucw.js} +3 -3
  12. package/dist/{backfillMetadataPropertyIds-Uhzlwg9X.js.map → backfillMetadataPropertyIds-CzSbuucw.js.map} +1 -1
  13. package/dist/{configurePlatform-CVoh3JeR.js → configurePlatform-Bbpw_R4y.js} +2 -2
  14. package/dist/{configurePlatform-CVoh3JeR.js.map → configurePlatform-Bbpw_R4y.js.map} +1 -1
  15. package/dist/{detachRowsBeforeDelete-CtmIFpgV.js → detachRowsBeforeDelete-D1TyEMco.js} +2 -2
  16. package/dist/{detachRowsBeforeDelete-CtmIFpgV.js.map → detachRowsBeforeDelete-D1TyEMco.js.map} +1 -1
  17. package/dist/{discardNewDraft-oGYdB5vS.js → discardNewDraft-hiVaUVjV.js} +5 -5
  18. package/dist/{discardNewDraft-oGYdB5vS.js.map → discardNewDraft-hiVaUVjV.js.map} +1 -1
  19. package/dist/dist/{ClientManager-D6YA20jP.d.ts → ClientManager-2GtDWHq6.d.ts} +2 -1
  20. package/dist/dist/ClientManager-2GtDWHq6.d.ts.map +1 -0
  21. package/dist/dist/{Item-B1MH0tXx.d.ts → Item-D6j0IvBP.d.ts} +16 -23
  22. package/dist/dist/Item-D6j0IvBP.d.ts.map +1 -0
  23. package/dist/dist/{ModelProperty-Dw6dHdu_.d.ts → ModelProperty-B52C3CQ2.d.ts} +1 -1
  24. package/dist/dist/{ModelProperty-Dw6dHdu_.d.ts.map → ModelProperty-B52C3CQ2.d.ts.map} +1 -1
  25. package/dist/dist/{Schema-DppObO6h.d.ts → Schema-O1QLoXv6.d.ts} +2 -2
  26. package/dist/dist/{Schema-DppObO6h.d.ts.map → Schema-O1QLoXv6.d.ts.map} +1 -1
  27. package/dist/dist/{SchemaValidationService-DXQ-D531.d.ts → SchemaValidationService-BxCbfDaI.d.ts} +4 -4
  28. package/dist/dist/{SchemaValidationService-DXQ-D531.d.ts.map → SchemaValidationService-BxCbfDaI.d.ts.map} +1 -1
  29. package/dist/dist/{backfillMetadataPropertyIds-Uhzlwg9X.d.ts → backfillMetadataPropertyIds-CzSbuucw.d.ts} +1 -1
  30. package/dist/dist/backfillMetadataPropertyIds-CzSbuucw.d.ts.map +1 -0
  31. package/dist/dist/{configurePlatform-CVoh3JeR.d.ts → configurePlatform-Bbpw_R4y.d.ts} +1 -1
  32. package/dist/dist/configurePlatform-Bbpw_R4y.d.ts.map +1 -0
  33. package/dist/dist/{detachRowsBeforeDelete-CtmIFpgV.d.ts → detachRowsBeforeDelete-D1TyEMco.d.ts} +1 -1
  34. package/dist/dist/detachRowsBeforeDelete-D1TyEMco.d.ts.map +1 -0
  35. package/dist/dist/{discardNewDraft-oGYdB5vS.d.ts → discardNewDraft-hiVaUVjV.d.ts} +1 -1
  36. package/dist/dist/discardNewDraft-hiVaUVjV.d.ts.map +1 -0
  37. package/dist/dist/{eas-CSm5wmry.d.ts → eas-DOdj-EMK.d.ts} +1 -1
  38. package/dist/dist/eas-DOdj-EMK.d.ts.map +1 -0
  39. package/dist/dist/{errors-3tc6XkCB.d.ts → errors-KM-yq2MD.d.ts} +21 -8
  40. package/dist/dist/errors-KM-yq2MD.d.ts.map +1 -0
  41. package/dist/dist/{getItem-DM3a-7XE.d.ts → getItem-Bh0zv-o1.d.ts} +1 -1
  42. package/dist/dist/getItem-Bh0zv-o1.d.ts.map +1 -0
  43. package/dist/dist/{getPublishPayload-CJF0k5d8.d.ts → getPublishPayload-oH8wJhnH.d.ts} +1 -1
  44. package/dist/dist/getPublishPayload-oH8wJhnH.d.ts.map +1 -0
  45. package/dist/dist/{getPublishUploads-C7-fYIgX.d.ts → getPublishUploads-Cex-NBe6.d.ts} +1 -1
  46. package/dist/dist/{getPublishUploads-C7-fYIgX.d.ts.map → getPublishUploads-Cex-NBe6.d.ts.map} +1 -1
  47. package/dist/dist/{index--mmQ3LQu.d.ts → index-BAao3_Po.d.ts} +5 -5
  48. package/dist/dist/index-BAao3_Po.d.ts.map +1 -0
  49. package/dist/dist/{index-B7yAoYli.d.ts → index-BbFwftAv.d.ts} +1 -1
  50. package/dist/dist/{index-B7yAoYli.d.ts.map → index-BbFwftAv.d.ts.map} +1 -1
  51. package/dist/dist/{index-CrvIcVFJ.d.ts → index-DpgQMIRq.d.ts} +8 -4
  52. package/dist/dist/index-DpgQMIRq.d.ts.map +1 -0
  53. package/dist/dist/{index.browser-BmVS-c2C.d.ts → index.browser-nndbVM7z.d.ts} +4 -4
  54. package/dist/dist/{index.browser-BmVS-c2C.d.ts.map → index.browser-nndbVM7z.d.ts.map} +1 -1
  55. package/dist/dist/{index.node-BKpbCAWt.d.ts → index.node-BUfx-JaP.d.ts} +1 -1
  56. package/dist/dist/{index.node-BKpbCAWt.d.ts.map → index.node-BUfx-JaP.d.ts.map} +1 -1
  57. package/dist/dist/platform.browser.d.ts +2 -2
  58. package/dist/dist/platform.node.d.ts +2 -2
  59. package/dist/dist/{property-DQ-Owzki.d.ts → property-BDBvImLs.d.ts} +3 -3
  60. package/dist/dist/property-BDBvImLs.d.ts.map +1 -0
  61. package/dist/dist/{propertyValidationRules-BDhFjlwP.d.ts → propertyValidationRules-BlfLn4rP.d.ts} +1 -1
  62. package/dist/dist/propertyValidationRules-BlfLn4rP.d.ts.map +1 -0
  63. package/dist/dist/{publishDraftGraph-CzPd9oe9.d.ts → publishDraftGraph-CLO85LLz.d.ts} +1 -1
  64. package/dist/dist/{publishDraftGraph-CzPd9oe9.d.ts.map → publishDraftGraph-CLO85LLz.d.ts.map} +1 -1
  65. package/dist/dist/{resetAmbiguousLegacyItemData-cXZm4NuG.d.ts → resetAmbiguousLegacyItemData-Cy8ik7xk.d.ts} +1 -1
  66. package/dist/dist/resetAmbiguousLegacyItemData-Cy8ik7xk.d.ts.map +1 -0
  67. package/dist/dist/{resolveModelForSyncedSeed-BgxtVCHI.d.ts → resolveModelForSyncedSeed-DFr4COc4.d.ts} +3 -3
  68. package/dist/dist/resolveModelForSyncedSeed-DFr4COc4.d.ts.map +1 -0
  69. package/dist/dist/{syncDbWithEas-Y5GysSCm.d.ts → syncDbWithEas-CAOlw3i-.d.ts} +1 -1
  70. package/dist/dist/syncDbWithEas-CAOlw3i-.d.ts.map +1 -0
  71. package/dist/dist/{tabEvents-D9x26vf2.d.ts → tabEvents-DksXwk3X.d.ts} +1 -1
  72. package/dist/dist/{tabEvents-D9x26vf2.d.ts.map → tabEvents-DksXwk3X.d.ts.map} +1 -1
  73. package/dist/dist/{tolerantWebAccess-BFU2t-SC.d.ts → tolerantWebAccess-CEIjFGf0.d.ts} +1 -1
  74. package/dist/dist/{tolerantWebAccess-BFU2t-SC.d.ts.map → tolerantWebAccess-CEIjFGf0.d.ts.map} +1 -1
  75. package/dist/dist/{updateSeedRevokedAt-CCF8WWYS.d.ts → updateSeedRevokedAt-Cjr35YjE.d.ts} +1 -1
  76. package/dist/dist/updateSeedRevokedAt-Cjr35YjE.d.ts.map +1 -0
  77. package/dist/{eas-CSm5wmry.js → eas-DOdj-EMK.js} +4 -4
  78. package/dist/eas-DOdj-EMK.js.map +1 -0
  79. package/dist/{errors-3tc6XkCB.js → errors-KM-yq2MD.js} +55 -41
  80. package/dist/errors-KM-yq2MD.js.map +1 -0
  81. package/dist/{getItem-DM3a-7XE.js → getItem-Bh0zv-o1.js} +4 -4
  82. package/dist/{getItem-DM3a-7XE.js.map → getItem-Bh0zv-o1.js.map} +1 -1
  83. package/dist/{getPublishPayload-CJF0k5d8.js → getPublishPayload-oH8wJhnH.js} +16 -25
  84. package/dist/getPublishPayload-oH8wJhnH.js.map +1 -0
  85. package/dist/{getPublishUploads-C7-fYIgX.js → getPublishUploads-Cex-NBe6.js} +10 -10
  86. package/dist/getPublishUploads-Cex-NBe6.js.map +1 -0
  87. package/dist/{index--mmQ3LQu.js → index-BAao3_Po.js} +9 -9
  88. package/dist/index-BAao3_Po.js.map +1 -0
  89. package/dist/{index-B7yAoYli.js → index-BbFwftAv.js} +2 -2
  90. package/dist/index-BbFwftAv.js.map +1 -0
  91. package/dist/{index-CrvIcVFJ.js → index-DpgQMIRq.js} +32 -15
  92. package/dist/index-DpgQMIRq.js.map +1 -0
  93. package/dist/{index.browser-BmVS-c2C.js → index.browser-nndbVM7z.js} +26 -28
  94. package/dist/index.browser-nndbVM7z.js.map +1 -0
  95. package/dist/{index.node-BKpbCAWt.js → index.node-BUfx-JaP.js} +7 -7
  96. package/dist/index.node-BUfx-JaP.js.map +1 -0
  97. package/dist/main.js +155 -26
  98. package/dist/main.js.map +1 -1
  99. package/dist/node.js +13 -13
  100. package/dist/node.js.map +1 -1
  101. package/dist/platform.browser.js +5 -5
  102. package/dist/platform.node.js +4 -4
  103. package/dist/{property-DQ-Owzki.js → property-BDBvImLs.js} +11 -11
  104. package/dist/property-BDBvImLs.js.map +1 -0
  105. package/dist/{propertyValidationRules-BDhFjlwP.js → propertyValidationRules-BlfLn4rP.js} +6 -6
  106. package/dist/{propertyValidationRules-BDhFjlwP.js.map → propertyValidationRules-BlfLn4rP.js.map} +1 -1
  107. package/dist/{publishDraftGraph-CzPd9oe9.js → publishDraftGraph-CLO85LLz.js} +7 -7
  108. package/dist/publishDraftGraph-CLO85LLz.js.map +1 -0
  109. package/dist/{resetAmbiguousLegacyItemData-cXZm4NuG.js → resetAmbiguousLegacyItemData-Cy8ik7xk.js} +2 -2
  110. package/dist/{resetAmbiguousLegacyItemData-cXZm4NuG.js.map → resetAmbiguousLegacyItemData-Cy8ik7xk.js.map} +1 -1
  111. package/dist/{resolveModelForSyncedSeed-BgxtVCHI.js → resolveModelForSyncedSeed-DFr4COc4.js} +4 -4
  112. package/dist/resolveModelForSyncedSeed-DFr4COc4.js.map +1 -0
  113. package/dist/src/Item/Item.d.ts +2 -2
  114. package/dist/src/Item/Item.d.ts.map +1 -1
  115. package/dist/src/Item/errors.d.ts +25 -0
  116. package/dist/src/Item/errors.d.ts.map +1 -1
  117. package/dist/src/Item/service/actors/loadOrCreateItem.d.ts.map +1 -1
  118. package/dist/src/Item/service/itemMachineSingle.d.ts.map +1 -1
  119. package/dist/src/ItemProperty/ItemProperty.d.ts +14 -3
  120. package/dist/src/ItemProperty/ItemProperty.d.ts.map +1 -1
  121. package/dist/src/ItemProperty/service/actors/hydrateFromDb.d.ts.map +1 -1
  122. package/dist/src/ItemProperty/service/actors/loadOrCreateProperty.d.ts.map +1 -1
  123. package/dist/src/ItemProperty/service/actors/resolveRelatedValue.d.ts.map +1 -1
  124. package/dist/src/ItemProperty/service/actors/saveValueToDb/analyzeInput.d.ts.map +1 -1
  125. package/dist/src/ItemProperty/service/actors/saveValueToDb/index.d.ts +0 -1
  126. package/dist/src/ItemProperty/service/actors/saveValueToDb/index.d.ts.map +1 -1
  127. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveFile.d.ts.map +1 -1
  128. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveHtml.d.ts.map +1 -1
  129. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveImage.d.ts.map +1 -1
  130. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveItemStorage.d.ts.map +1 -1
  131. package/dist/src/ItemProperty/service/propertyMachine.d.ts +1 -6
  132. package/dist/src/ItemProperty/service/propertyMachine.d.ts.map +1 -1
  133. package/dist/src/Model/Model.d.ts.map +1 -1
  134. package/dist/src/ModelProperty/ModelProperty.d.ts.map +1 -1
  135. package/dist/src/Schema/Schema.d.ts.map +1 -1
  136. package/dist/src/Schema/service/actors/loadOrCreateSchema.d.ts.map +1 -1
  137. package/dist/src/Schema/service/actors/writeSchemaToDb.d.ts.map +1 -1
  138. package/dist/src/Schema/service/validation/SchemaValidationService.d.ts +1 -1
  139. package/dist/src/Schema/service/validation/SchemaValidationService.d.ts.map +1 -1
  140. package/dist/src/Schema/validation.d.ts.map +1 -1
  141. package/dist/src/browser/db/Db.d.ts +1 -1
  142. package/dist/src/browser/db/Db.d.ts.map +1 -1
  143. package/dist/src/browser/helpers/PathResolver.d.ts +2 -2
  144. package/dist/src/browser/helpers/PathResolver.d.ts.map +1 -1
  145. package/dist/src/browser/seed.d.ts +1 -1
  146. package/dist/src/browser/seed.d.ts.map +1 -1
  147. package/dist/src/browser/workers/imageResize.d.ts.map +1 -1
  148. package/dist/src/client/BaseClientManager.d.ts +1 -1
  149. package/dist/src/client/BaseClientManager.d.ts.map +1 -1
  150. package/dist/src/client/ClientManager.d.ts +1 -0
  151. package/dist/src/client/ClientManager.d.ts.map +1 -1
  152. package/dist/src/client/actors/addModelsToDb.d.ts.map +1 -1
  153. package/dist/src/client/actors/fileSystemInit.d.ts.map +1 -1
  154. package/dist/src/client/actors/platformClassesInit.d.ts.map +1 -1
  155. package/dist/src/client/clientManagerMachine.d.ts.map +1 -1
  156. package/dist/src/client/constants.d.ts.map +1 -1
  157. package/dist/src/db/clearStoredDisplayUrls.d.ts +18 -0
  158. package/dist/src/db/clearStoredDisplayUrls.d.ts.map +1 -0
  159. package/dist/src/db/read/getItems.d.ts.map +1 -1
  160. package/dist/src/db/read/getPublishPayload.d.ts.map +1 -1
  161. package/dist/src/db/read/nameMatchLevels.d.ts +7 -3
  162. package/dist/src/db/read/nameMatchLevels.d.ts.map +1 -1
  163. package/dist/src/db/read/resolveModelForSyncedSeed.d.ts +2 -2
  164. package/dist/src/db/write/applyPropertyAttestationUidsFromPublish.d.ts +10 -0
  165. package/dist/src/db/write/applyPropertyAttestationUidsFromPublish.d.ts.map +1 -1
  166. package/dist/src/db/write/deleteItem.d.ts +4 -0
  167. package/dist/src/db/write/deleteItem.d.ts.map +1 -1
  168. package/dist/src/db/write/updateItemPropertyValue.d.ts.map +1 -1
  169. package/dist/src/eas.d.ts.map +1 -1
  170. package/dist/src/events/item/index.d.ts.map +1 -1
  171. package/dist/src/events/item/syncDbWithEas.d.ts.map +1 -1
  172. package/dist/src/events/services/allItems.d.ts +1 -1
  173. package/dist/src/events/services/allItems.d.ts.map +1 -1
  174. package/dist/src/helpers/db.d.ts.map +1 -1
  175. package/dist/src/helpers/file/fetchAll/actors.d.ts.map +1 -1
  176. package/dist/src/helpers/file/fetchAll/index.d.ts.map +1 -1
  177. package/dist/src/helpers/schema.d.ts.map +1 -1
  178. package/dist/src/helpers/updateSchema.d.ts +1 -1
  179. package/dist/src/helpers/updateSchema.d.ts.map +1 -1
  180. package/dist/src/imports/json.d.ts.map +1 -1
  181. package/dist/src/imports/markdown.d.ts +1 -1
  182. package/dist/src/imports/markdown.d.ts.map +1 -1
  183. package/dist/src/index.d.ts +1 -1
  184. package/dist/src/index.d.ts.map +1 -1
  185. package/dist/src/interfaces/IItem.d.ts +1 -1
  186. package/dist/src/interfaces/IItem.d.ts.map +1 -1
  187. package/dist/src/interfaces/IItemProperty.d.ts +5 -1
  188. package/dist/src/interfaces/IItemProperty.d.ts.map +1 -1
  189. package/dist/src/node/helpers/scripts.d.ts +1 -1
  190. package/dist/src/services/write/actors/validateEntity.d.ts.map +1 -1
  191. package/dist/src/services/write/writeProcessMachine.d.ts +3 -4
  192. package/dist/src/services/write/writeProcessMachine.d.ts.map +1 -1
  193. package/dist/src/types/fileManager.d.ts.map +1 -1
  194. package/dist/src/types/item.d.ts +5 -4
  195. package/dist/src/types/item.d.ts.map +1 -1
  196. package/dist/src/types/model.d.ts.map +1 -1
  197. package/dist/src/types/property.d.ts +5 -5
  198. package/dist/src/types/property.d.ts.map +1 -1
  199. package/dist/{syncDbWithEas-Y5GysSCm.js → syncDbWithEas-CAOlw3i-.js} +17 -18
  200. package/dist/syncDbWithEas-CAOlw3i-.js.map +1 -0
  201. package/dist/{tabEvents-D9x26vf2.js → tabEvents-DksXwk3X.js} +4 -4
  202. package/dist/{tabEvents-D9x26vf2.js.map → tabEvents-DksXwk3X.js.map} +1 -1
  203. package/dist/{tolerantWebAccess-BFU2t-SC.js → tolerantWebAccess-CEIjFGf0.js} +6 -6
  204. package/dist/{tolerantWebAccess-BFU2t-SC.js.map → tolerantWebAccess-CEIjFGf0.js.map} +1 -1
  205. package/dist/{updateSeedRevokedAt-CCF8WWYS.js → updateSeedRevokedAt-Cjr35YjE.js} +3 -3
  206. package/dist/{updateSeedRevokedAt-CCF8WWYS.js.map → updateSeedRevokedAt-Cjr35YjE.js.map} +1 -1
  207. package/package.json +6 -6
  208. package/dist/ClientManager-D6YA20jP.js.map +0 -1
  209. package/dist/Item-B1MH0tXx.js.map +0 -1
  210. package/dist/ModelProperty-Dw6dHdu_.js.map +0 -1
  211. package/dist/Schema-DppObO6h.js.map +0 -1
  212. package/dist/SchemaValidationService-DXQ-D531.js.map +0 -1
  213. package/dist/dist/ClientManager-D6YA20jP.d.ts.map +0 -1
  214. package/dist/dist/Item-B1MH0tXx.d.ts.map +0 -1
  215. package/dist/dist/backfillMetadataPropertyIds-Uhzlwg9X.d.ts.map +0 -1
  216. package/dist/dist/configurePlatform-CVoh3JeR.d.ts.map +0 -1
  217. package/dist/dist/detachRowsBeforeDelete-CtmIFpgV.d.ts.map +0 -1
  218. package/dist/dist/discardNewDraft-oGYdB5vS.d.ts.map +0 -1
  219. package/dist/dist/eas-CSm5wmry.d.ts.map +0 -1
  220. package/dist/dist/errors-3tc6XkCB.d.ts.map +0 -1
  221. package/dist/dist/getItem-DM3a-7XE.d.ts.map +0 -1
  222. package/dist/dist/getPublishPayload-CJF0k5d8.d.ts.map +0 -1
  223. package/dist/dist/index--mmQ3LQu.d.ts.map +0 -1
  224. package/dist/dist/index-CrvIcVFJ.d.ts.map +0 -1
  225. package/dist/dist/property-DQ-Owzki.d.ts.map +0 -1
  226. package/dist/dist/propertyValidationRules-BDhFjlwP.d.ts.map +0 -1
  227. package/dist/dist/resetAmbiguousLegacyItemData-cXZm4NuG.d.ts.map +0 -1
  228. package/dist/dist/resolveModelForSyncedSeed-BgxtVCHI.d.ts.map +0 -1
  229. package/dist/dist/syncDbWithEas-Y5GysSCm.d.ts.map +0 -1
  230. package/dist/dist/updateSeedRevokedAt-CCF8WWYS.d.ts.map +0 -1
  231. package/dist/eas-CSm5wmry.js.map +0 -1
  232. package/dist/errors-3tc6XkCB.js.map +0 -1
  233. package/dist/getPublishPayload-CJF0k5d8.js.map +0 -1
  234. package/dist/getPublishUploads-C7-fYIgX.js.map +0 -1
  235. package/dist/index--mmQ3LQu.js.map +0 -1
  236. package/dist/index-B7yAoYli.js.map +0 -1
  237. package/dist/index-CrvIcVFJ.js.map +0 -1
  238. package/dist/index.browser-BmVS-c2C.js.map +0 -1
  239. package/dist/index.node-BKpbCAWt.js.map +0 -1
  240. package/dist/property-DQ-Owzki.js.map +0 -1
  241. package/dist/publishDraftGraph-CzPd9oe9.js.map +0 -1
  242. package/dist/resolveModelForSyncedSeed-BgxtVCHI.js.map +0 -1
  243. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveRelation.d.ts +0 -5
  244. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveRelation.d.ts.map +0 -1
  245. package/dist/src/db/write/recoverDeletedItem.d.ts +0 -5
  246. package/dist/src/db/write/recoverDeletedItem.d.ts.map +0 -1
  247. package/dist/src/interfaces/IEasClient.d.ts +0 -3
  248. package/dist/src/interfaces/IEasClient.d.ts.map +0 -1
  249. package/dist/syncDbWithEas-Y5GysSCm.js.map +0 -1
@@ -1,16 +1,16 @@
1
1
  import { fromCallback, setup, assign, createActor } from 'xstate';
2
- import { i as isActorStopped, w as writeProcessMachine, c as currentEvictionEpoch, M as Model, b as anyEvictionSince, s as schemaEvictedSince } from './errors-3tc6XkCB.js';
3
- import { B as BaseDb, t as models, v as properties, A as schemas, r as modelSchemas, ao as getModelIdByFileId, n as normalizeDataType, ai as generateId, M as ModelPropertyDataTypes, h as BaseFileManager, ap as getModelId, aq as setCachedPropertyRefresher } from './index-CrvIcVFJ.js';
2
+ import { i as isActorStopped, w as writeProcessMachine, c as currentEvictionEpoch, M as Model, b as anyEvictionSince, s as schemaEvictedSince } from './errors-KM-yq2MD.js';
3
+ import { B as BaseDb, t as models, v as properties, A as schemas, r as modelSchemas, ao as getModelIdByFileId, n as normalizeDataType, ai as generateId, M as ModelPropertyDataTypes, h as BaseFileManager, ap as getModelId, aq as setCachedPropertyRefresher } from './index-DpgQMIRq.js';
4
4
  import 'pluralize';
5
5
  import '@seedprotocol/eas';
6
6
  import { eq, and, inArray } from 'drizzle-orm';
7
7
  import { modelPropertiesToObject } from './model-oHA3YhOd.js';
8
8
  import debug from 'debug';
9
- import { S as Schema } from './Schema-DppObO6h.js';
10
- import { D as DEFAULT_READY_TIMEOUT_MS, d as waitForEntityIdle, m as createReactiveProxy, n as findEntity, o as forceRemoveFromCaches, q as runDestroyLifecycle } from './Item-B1MH0tXx.js';
11
- import './ClientManager-D6YA20jP.js';
9
+ import { S as Schema } from './Schema-O1QLoXv6.js';
10
+ import { D as DEFAULT_READY_TIMEOUT_MS, d as waitForEntityIdle, m as createReactiveProxy, n as findEntity, o as forceRemoveFromCaches, q as runDestroyLifecycle } from './Item-D6j0IvBP.js';
11
+ import './ClientManager-2GtDWHq6.js';
12
12
  import 'lodash-es';
13
- import './tabEvents-D9x26vf2.js';
13
+ import './tabEvents-DksXwk3X.js';
14
14
  import '@seedprotocol/arweave';
15
15
  import '@noble/hashes/sha3';
16
16
  import '@noble/hashes/utils';
@@ -20,7 +20,7 @@ import 'drizzle-orm/sqlite-core';
20
20
  import 'nanoid';
21
21
  import 'nanoid-dictionary';
22
22
  import '@noble/hashes/sha256';
23
- import './SchemaValidationService-DXQ-D531.js';
23
+ import './SchemaValidationService-BxCbfDaI.js';
24
24
  import '@sinclair/typebox/value';
25
25
  import 'rxjs';
26
26
 
@@ -32,14 +32,14 @@ const logger$3 = debug('seedSdk:modelProperty:actors:saveToSchema');
32
32
  */
33
33
  async function getSchemaNameFromModel(modelName) {
34
34
  // Get the latest schema files and find which one contains this model
35
- const _mod_0 = await import('./ClientManager-D6YA20jP.js');
35
+ const _mod_0 = await import('./ClientManager-2GtDWHq6.js');
36
36
  const _ns_0 = _mod_0.N;
37
37
  const schemaHelpersMod = _ns_0;
38
38
  const { listLatestSchemaFiles } = schemaHelpersMod;
39
39
  const latestSchemas = await listLatestSchemaFiles();
40
40
  for (const schema of latestSchemas) {
41
41
  try {
42
- const _mod_1 = await import('./index-CrvIcVFJ.js');
42
+ const _mod_1 = await import('./index-DpgQMIRq.js');
43
43
  const _ns_1 = _mod_1.be;
44
44
  const fileManagerMod = _ns_1;
45
45
  const { BaseFileManager } = fileManagerMod;
@@ -59,7 +59,7 @@ async function getSchemaNameFromModel(modelName) {
59
59
  const saveToSchema = fromCallback(({ sendBack, input: { context }, self }) => {
60
60
  const _saveToSchema = async () => {
61
61
  // Use dynamic import to break circular dependency
62
- const validationServiceMod = await import('./SchemaValidationService-DXQ-D531.js');
62
+ const validationServiceMod = await import('./SchemaValidationService-BxCbfDaI.js');
63
63
  const { SchemaValidationService } = validationServiceMod;
64
64
  const validationService = new SchemaValidationService();
65
65
  // Validate property structure before saving
@@ -78,7 +78,7 @@ const saveToSchema = fromCallback(({ sendBack, input: { context }, self }) => {
78
78
  throw new Error(`Model not found for modelId: ${context.modelId}`);
79
79
  }
80
80
  // Persist to database only - schema file is updated only when user calls Schema.saveNewVersion()
81
- const _mod_2 = await import('./index-CrvIcVFJ.js');
81
+ const _mod_2 = await import('./index-DpgQMIRq.js');
82
82
  const _ns_2 = _mod_2.bi;
83
83
  const dbMod = _ns_2;
84
84
  const { savePropertyToDb } = dbMod;
@@ -86,7 +86,7 @@ const saveToSchema = fromCallback(({ sendBack, input: { context }, self }) => {
86
86
  // Mark schema as draft so user knows to save
87
87
  const schemaName = context._schemaName ?? (await getSchemaNameFromModel(context.modelName));
88
88
  if (schemaName) {
89
- const _mod_3 = await import('./Schema-DppObO6h.js');
89
+ const _mod_3 = await import('./Schema-O1QLoXv6.js');
90
90
  const _ns_3 = _mod_3.b;
91
91
  const schemaMod = _ns_3;
92
92
  const { Schema } = schemaMod;
@@ -124,7 +124,7 @@ const compareAndMarkDraft = fromCallback(({ sendBack, input: { context }, self }
124
124
  const schemaFileIdForResolve = fullContext._propertyFileId || (typeof fullContext.id === 'string' ? fullContext.id : undefined);
125
125
  if (schemaFileIdForResolve && (fullContext.modelName === undefined || fullContext.dataType === undefined)) {
126
126
  try {
127
- const _mod_4 = await import('./index-CrvIcVFJ.js');
127
+ const _mod_4 = await import('./index-DpgQMIRq.js');
128
128
  const _ns_4 = _mod_4.bi;
129
129
  const dbMod = _ns_4;
130
130
  const { getPropertyModelNameAndDataType, getModelNameByModelId } = dbMod;
@@ -171,7 +171,7 @@ const compareAndMarkDraft = fromCallback(({ sendBack, input: { context }, self }
171
171
  if (fullContext.modelName && fullContext.name && schemaFileId) {
172
172
  logger$2(`[compareAndMarkDraft] _originalValues not set, but saving to database anyway for property ${context.modelName}:${context.name} (schemaFileId: ${schemaFileId})`);
173
173
  try {
174
- const _mod_5 = await import('./index-CrvIcVFJ.js');
174
+ const _mod_5 = await import('./index-DpgQMIRq.js');
175
175
  const _ns_5 = _mod_5.bi;
176
176
  const dbMod = _ns_5;
177
177
  const { savePropertyToDb } = dbMod;
@@ -233,7 +233,7 @@ const compareAndMarkDraft = fromCallback(({ sendBack, input: { context }, self }
233
233
  logger$2(`Property ${fullContext.modelName}:${fullContext.name} has changes, marking as edited`);
234
234
  logger$2(`[compareAndMarkDraft] Context when saving: id=${fullContext.id}, _propertyFileId=${fullContext._propertyFileId}, name=${fullContext.name}, _originalValues.name=${fullContext._originalValues?.name}`);
235
235
  // Use dynamic import to break circular dependency
236
- const _mod_6 = await import('./index-CrvIcVFJ.js');
236
+ const _mod_6 = await import('./index-DpgQMIRq.js');
237
237
  const _ns_6 = _mod_6.bi;
238
238
  const dbMod = _ns_6;
239
239
  const { savePropertyToDb } = dbMod;
@@ -249,7 +249,7 @@ const compareAndMarkDraft = fromCallback(({ sendBack, input: { context }, self }
249
249
  // Mark schema as draft if schema name is available
250
250
  if (fullContext._schemaName) {
251
251
  // Get the Schema instance and mark it as draft
252
- const _mod_7 = await import('./Schema-DppObO6h.js');
252
+ const _mod_7 = await import('./Schema-O1QLoXv6.js');
253
253
  const _ns_7 = _mod_7.b;
254
254
  const schemaMod = _ns_7;
255
255
  const { Schema } = schemaMod;
@@ -271,16 +271,16 @@ const compareAndMarkDraft = fromCallback(({ sendBack, input: { context }, self }
271
271
  logger$2(`Property ${fullContext.modelName}:${fullContext.name} has no changes`);
272
272
  // Clear isEdited flag in database
273
273
  try {
274
- const _mod_8 = await import('./index-B7yAoYli.js');
274
+ const _mod_8 = await import('./index-BbFwftAv.js');
275
275
  const _ns_8 = _mod_8.s;
276
276
  const seedSchemaMod = _ns_8;
277
- const { properties: propertiesTable, models: modelsTable } = seedSchemaMod;
277
+ const { properties: propertiesTable } = seedSchemaMod;
278
278
  const drizzleMod = await import('drizzle-orm');
279
279
  const { eq, and } = drizzleMod;
280
280
  const db = BaseDb.getAppDb();
281
281
  if (db && fullContext.modelName && fullContext.name) {
282
282
  // Find this property's model (model names are only unique per schema)
283
- const _mod_9 = await import('./index-CrvIcVFJ.js');
283
+ const _mod_9 = await import('./index-DpgQMIRq.js');
284
284
  const _ns_9 = _mod_9.bh;
285
285
  const { resolveModelRecord } = _ns_9;
286
286
  const modelRecord = await resolveModelRecord(fullContext.modelName, {
@@ -340,7 +340,7 @@ const validateProperty = fromCallback(({ sendBack, input: { context }, self }) =
340
340
  // Brief wait so trackPendingWrite from ModelProperty.create() has time to run (it's in setTimeout(0))
341
341
  await new Promise((r) => setTimeout(r, 60));
342
342
  try {
343
- const _mod_10 = await import('./index-CrvIcVFJ.js');
343
+ const _mod_10 = await import('./index-DpgQMIRq.js');
344
344
  const _ns_10 = _mod_10.bi;
345
345
  const dbMod = _ns_10;
346
346
  const { getPropertyModelNameAndDataType, getModelNameByModelId } = dbMod;
@@ -394,10 +394,10 @@ const validateProperty = fromCallback(({ sendBack, input: { context }, self }) =
394
394
  fullContext = { ...fullContext, dataType: (fullContext.dataType ?? context._originalValues?.dataType) || 'Text' };
395
395
  }
396
396
  // Use dynamic imports to break circular dependencies
397
- const validationServiceMod = await import('./SchemaValidationService-DXQ-D531.js');
397
+ const validationServiceMod = await import('./SchemaValidationService-BxCbfDaI.js');
398
398
  const { SchemaValidationService } = validationServiceMod;
399
399
  const validationService = new SchemaValidationService();
400
- const _mod_11 = await import('./Schema-DppObO6h.js');
400
+ const _mod_11 = await import('./Schema-O1QLoXv6.js');
401
401
  const _ns_11 = _mod_11.b;
402
402
  const schemaMod = _ns_11;
403
403
  const { Schema } = schemaMod;
@@ -588,7 +588,7 @@ const modelPropertyMachine = setup({
588
588
  target: '.validating',
589
589
  },
590
590
  validationSuccess: {
591
- actions: assign(({ context, event }) => ({
591
+ actions: assign(({ context }) => ({
592
592
  ...context,
593
593
  _validationErrors: [],
594
594
  })),
@@ -1027,7 +1027,7 @@ class ModelProperty {
1027
1027
  return fallbackIsEdited;
1028
1028
  }
1029
1029
  // Find this property's model (by modelId when known; model names are only unique per schema)
1030
- const _mod_12 = await import('./index-CrvIcVFJ.js');
1030
+ const _mod_12 = await import('./index-DpgQMIRq.js');
1031
1031
  const _ns_12 = _mod_12.bh;
1032
1032
  const { resolveModelRecord } = _ns_12;
1033
1033
  const modelRecord = await resolveModelRecord(property.modelName, this._ownerModelScope(property), db);
@@ -1045,7 +1045,7 @@ class ModelProperty {
1045
1045
  return propertyRecords[0].isEdited ?? false;
1046
1046
  }
1047
1047
  }
1048
- catch (error) {
1048
+ catch {
1049
1049
  // Ignore errors - use fallback value
1050
1050
  }
1051
1051
  return fallbackIsEdited;
@@ -1065,7 +1065,7 @@ class ModelProperty {
1065
1065
  return undefined;
1066
1066
  }
1067
1067
  // Resolve the ref within the owning model's schema
1068
- const _mod_13 = await import('./index-CrvIcVFJ.js');
1068
+ const _mod_13 = await import('./index-DpgQMIRq.js');
1069
1069
  const _ns_13 = _mod_13.bh;
1070
1070
  const { resolveRefModelRecord } = _ns_13;
1071
1071
  const refModelRecord = await resolveRefModelRecord(refModelName, property ? this._ownerModelScope(property) : { schemaName: this._getSnapshotContext()._schemaName }, db);
@@ -1111,7 +1111,7 @@ class ModelProperty {
1111
1111
  }
1112
1112
  }
1113
1113
  if (!model && modelId) {
1114
- const _mod_14 = await import('./index-CrvIcVFJ.js');
1114
+ const _mod_14 = await import('./index-DpgQMIRq.js');
1115
1115
  const _ns_14 = _mod_14.bh;
1116
1116
  const { resolveModelRecord } = _ns_14;
1117
1117
  const modelFileId = (await resolveModelRecord(property.modelName, { modelId }))?.schemaFileId;
@@ -1166,7 +1166,7 @@ class ModelProperty {
1166
1166
  }
1167
1167
  return originalValues;
1168
1168
  }
1169
- catch (error) {
1169
+ catch {
1170
1170
  return undefined;
1171
1171
  }
1172
1172
  }
@@ -1204,7 +1204,7 @@ class ModelProperty {
1204
1204
  }
1205
1205
  }
1206
1206
  }
1207
- catch (error) {
1207
+ catch {
1208
1208
  // Database lookup failed, continue to file-based lookup
1209
1209
  }
1210
1210
  }
@@ -1220,7 +1220,7 @@ class ModelProperty {
1220
1220
  });
1221
1221
  }
1222
1222
  }
1223
- catch (error) {
1223
+ catch {
1224
1224
  // If we can't get schema name, that's okay - it will be set later if needed
1225
1225
  }
1226
1226
  }
@@ -2056,7 +2056,7 @@ class ModelProperty {
2056
2056
  try {
2057
2057
  this._service.stop();
2058
2058
  }
2059
- catch (error) {
2059
+ catch {
2060
2060
  // Service might already be stopped
2061
2061
  }
2062
2062
  }
@@ -2108,7 +2108,7 @@ class ModelProperty {
2108
2108
  .where(and(eq(schemas.name, schemaName), eq(models.name, modelName), eq(properties.name, propertyName)))
2109
2109
  .limit(1);
2110
2110
  if (propertyRecords.length > 0 && propertyRecords[0].propertyId != null) {
2111
- const { detachPropertyRows } = await import('./detachRowsBeforeDelete-CtmIFpgV.js');
2111
+ const { detachPropertyRows } = await import('./detachRowsBeforeDelete-D1TyEMco.js');
2112
2112
  await detachPropertyRows(db, [propertyRecords[0].propertyId]);
2113
2113
  await db
2114
2114
  .delete(properties)
@@ -2157,4 +2157,4 @@ var ModelProperty$1 = /*#__PURE__*/Object.freeze({
2157
2157
  });
2158
2158
 
2159
2159
  export { ModelProperty };
2160
- //# sourceMappingURL=ModelProperty-Dw6dHdu_.js.map
2160
+ //# sourceMappingURL=ModelProperty-B52C3CQ2.js.map