@powerhousedao/shared 6.2.3-dev.6 → 6.2.3-dev.61
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.
- package/dist/analytics/index.d.ts +4 -4
- package/dist/analytics/index.d.ts.map +1 -1
- package/dist/analytics/index.js +25 -24
- package/dist/analytics/index.js.map +1 -1
- package/dist/clis/args/{access-token-To5LaIfL.mjs → access-token-3Hqv_U8I.mjs} +2 -2
- package/dist/clis/args/{access-token-To5LaIfL.mjs.map → access-token-3Hqv_U8I.mjs.map} +1 -1
- package/dist/clis/args/access-token-C5sKsH2O.d.mts +16 -0
- package/dist/clis/args/access-token-C5sKsH2O.d.mts.map +1 -0
- package/dist/clis/args/access-token.d.mts +3 -2
- package/dist/clis/args/access-token.mjs +1 -1
- package/dist/clis/args/{common-CcYbXrBx.mjs → common-BXabdhiO.mjs} +30 -7
- package/dist/clis/args/common-BXabdhiO.mjs.map +1 -0
- package/dist/clis/args/common-Bnm859xU.d.mts +186 -0
- package/dist/clis/args/common-Bnm859xU.d.mts.map +1 -0
- package/dist/clis/args/common.d.mts +3 -2
- package/dist/clis/args/common.mjs +1 -1
- package/dist/clis/args/{connect-BVVvCmL9.mjs → connect-BG3HkYBk.mjs} +8 -3
- package/dist/clis/args/connect-BG3HkYBk.mjs.map +1 -0
- package/dist/clis/args/connect-DjeiqXus.d.mts +450 -0
- package/dist/clis/args/connect-DjeiqXus.d.mts.map +1 -0
- package/dist/clis/args/connect.d.mts +3 -2
- package/dist/clis/args/connect.mjs +1 -1
- package/dist/clis/args/dist-CorQTQL-.mjs +1533 -0
- package/dist/clis/args/dist-CorQTQL-.mjs.map +1 -0
- package/dist/clis/args/{generate-CA916Fvj.mjs → generate-BOItUNvP.mjs} +40 -2
- package/dist/clis/args/generate-BOItUNvP.mjs.map +1 -0
- package/dist/clis/args/generate-BPBBLeUD.d.mts +103 -0
- package/dist/clis/args/generate-BPBBLeUD.d.mts.map +1 -0
- package/dist/clis/args/generate.d.mts +3 -2
- package/dist/clis/args/generate.mjs +1 -1
- package/dist/clis/args/{help-Bqbgbalu.mjs → help-BfAqpYvC.mjs} +43 -16
- package/dist/clis/args/help-BfAqpYvC.mjs.map +1 -0
- package/dist/clis/args/help-KuqI-EEG.d.mts +203 -0
- package/dist/clis/args/help-KuqI-EEG.d.mts.map +1 -0
- package/dist/clis/args/help.d.mts +3 -2
- package/dist/clis/args/help.mjs +1 -1
- package/dist/clis/args/index.d.mts +20 -19
- package/dist/clis/args/index.mjs +18 -18
- package/dist/clis/args/init-CTaK80wE.d.mts +55 -0
- package/dist/clis/args/init-CTaK80wE.d.mts.map +1 -0
- package/dist/clis/args/{init-rz9Ei7nq.mjs → init-xlCNZ8Oe.mjs} +7 -2
- package/dist/clis/args/{init-rz9Ei7nq.mjs.map → init-xlCNZ8Oe.mjs.map} +1 -1
- package/dist/clis/args/init.d.mts +3 -2
- package/dist/clis/args/init.mjs +1 -1
- package/dist/clis/args/inspect-BjRmtB86.d.mts +13 -0
- package/dist/clis/args/inspect-BjRmtB86.d.mts.map +1 -0
- package/dist/clis/args/{inspect-tckH8mSw.mjs → inspect-UNQgtuR0.mjs} +2 -2
- package/dist/clis/args/{inspect-tckH8mSw.mjs.map → inspect-UNQgtuR0.mjs.map} +1 -1
- package/dist/clis/args/inspect.d.mts +3 -2
- package/dist/clis/args/inspect.mjs +1 -1
- package/dist/clis/args/install-B0tMyUMw.d.mts +37 -0
- package/dist/clis/args/install-B0tMyUMw.d.mts.map +1 -0
- package/dist/clis/args/{install-Sz2DlCHh.mjs → install-F-27kF6m.mjs} +2 -2
- package/dist/clis/args/{install-Sz2DlCHh.mjs.map → install-F-27kF6m.mjs.map} +1 -1
- package/dist/clis/args/install.d.mts +3 -2
- package/dist/clis/args/install.mjs +1 -1
- package/dist/clis/args/{list-DM2d6f1m.mjs → list-Bkfn8Yuo.mjs} +2 -2
- package/dist/clis/args/{list-DM2d6f1m.mjs.map → list-Bkfn8Yuo.mjs.map} +1 -1
- package/dist/clis/args/list-DrbxA7JJ.d.mts +10 -0
- package/dist/clis/args/list-DrbxA7JJ.d.mts.map +1 -0
- package/dist/clis/args/list.d.mts +3 -2
- package/dist/clis/args/list.mjs +1 -1
- package/dist/clis/args/{login-DiKT5Jfu.mjs → login-CIFkQExi.mjs} +2 -2
- package/dist/clis/args/{login-DiKT5Jfu.mjs.map → login-CIFkQExi.mjs.map} +1 -1
- package/dist/clis/args/login-CXRJXg71.d.mts +25 -0
- package/dist/clis/args/login-CXRJXg71.d.mts.map +1 -0
- package/dist/clis/args/login.d.mts +3 -2
- package/dist/clis/args/login.mjs +1 -1
- package/dist/clis/args/migrate-DkCQRL2D.d.mts +19 -0
- package/dist/clis/args/migrate-DkCQRL2D.d.mts.map +1 -0
- package/dist/clis/args/{migrate-CG_gWc4k.mjs → migrate-DwJGhc2d.mjs} +2 -2
- package/dist/clis/args/{migrate-CG_gWc4k.mjs.map → migrate-DwJGhc2d.mjs.map} +1 -1
- package/dist/clis/args/migrate.d.mts +3 -2
- package/dist/clis/args/migrate.mjs +1 -1
- package/dist/clis/args/publish-CeW4bOrl.d.mts +16 -0
- package/dist/clis/args/publish-CeW4bOrl.d.mts.map +1 -0
- package/dist/clis/args/{publish-DDZYsUfV.mjs → publish-DHqlGWmL.mjs} +2 -2
- package/dist/clis/args/{publish-DDZYsUfV.mjs.map → publish-DHqlGWmL.mjs.map} +1 -1
- package/dist/clis/args/publish.d.mts +3 -2
- package/dist/clis/args/publish.mjs +1 -1
- package/dist/clis/args/{registry-C_OVFQmI.mjs → registry-DIwES3l2.mjs} +2 -2
- package/dist/clis/args/{registry-C_OVFQmI.mjs.map → registry-DIwES3l2.mjs.map} +1 -1
- package/dist/clis/args/registry-DNH8xuaE.d.mts +17 -0
- package/dist/clis/args/registry-DNH8xuaE.d.mts.map +1 -0
- package/dist/clis/args/registry.d.mts +3 -2
- package/dist/clis/args/registry.mjs +1 -1
- package/dist/clis/args/run-CYp5t1xU.mjs +28 -0
- package/dist/clis/args/run-CYp5t1xU.mjs.map +1 -0
- package/dist/clis/args/run.d.mts +18 -0
- package/dist/clis/args/run.d.mts.map +1 -0
- package/dist/clis/args/run.mjs +2 -0
- package/dist/clis/args/service-CHjY5epu.d.mts +27 -0
- package/dist/clis/args/service-CHjY5epu.d.mts.map +1 -0
- package/dist/clis/args/{service-CHOOr0Gg.mjs → service-Cpjlyeu5.mjs} +2 -2
- package/dist/clis/args/{service-CHOOr0Gg.mjs.map → service-Cpjlyeu5.mjs.map} +1 -1
- package/dist/clis/args/service.d.mts +3 -2
- package/dist/clis/args/service.mjs +1 -1
- package/dist/clis/args/{switchboard-Dsp7nosi.mjs → switchboard-CCaAtU56.mjs} +2 -2
- package/dist/clis/args/{switchboard-Dsp7nosi.mjs.map → switchboard-CCaAtU56.mjs.map} +1 -1
- package/dist/clis/args/switchboard-RrNb1fUH.d.mts +70 -0
- package/dist/clis/args/switchboard-RrNb1fUH.d.mts.map +1 -0
- package/dist/clis/args/switchboard.d.mts +3 -2
- package/dist/clis/args/switchboard.mjs +1 -1
- package/dist/clis/args/{uninstall-CTwTX0u_.mjs → uninstall-3U0B8g5c.mjs} +2 -2
- package/dist/clis/args/{uninstall-CTwTX0u_.mjs.map → uninstall-3U0B8g5c.mjs.map} +1 -1
- package/dist/clis/args/uninstall-CDx7lwxn.d.mts +28 -0
- package/dist/clis/args/uninstall-CDx7lwxn.d.mts.map +1 -0
- package/dist/clis/args/uninstall.d.mts +3 -2
- package/dist/clis/args/uninstall.mjs +1 -1
- package/dist/clis/args/unpublish-CEDsk6uv.d.mts +22 -0
- package/dist/clis/args/unpublish-CEDsk6uv.d.mts.map +1 -0
- package/dist/clis/args/{unpublish-BPMkGEg5.mjs → unpublish-s9zUh6Gw.mjs} +2 -2
- package/dist/clis/args/{unpublish-BPMkGEg5.mjs.map → unpublish-s9zUh6Gw.mjs.map} +1 -1
- package/dist/clis/args/unpublish.d.mts +3 -2
- package/dist/clis/args/unpublish.mjs +1 -1
- package/dist/clis/args/{vetra-b4KUu1Ax.mjs → vetra-BUNlAAPp.mjs} +2 -2
- package/dist/clis/args/{vetra-b4KUu1Ax.mjs.map → vetra-BUNlAAPp.mjs.map} +1 -1
- package/dist/clis/args/vetra-DkDaWFPi.d.mts +111 -0
- package/dist/clis/args/vetra-DkDaWFPi.d.mts.map +1 -0
- package/dist/clis/args/vetra-ports.test.d.mts +2 -1
- package/dist/clis/args/vetra-ports.test.mjs +7366 -5728
- package/dist/clis/args/vetra-ports.test.mjs.map +1 -1
- package/dist/clis/args/vetra.d.mts +3 -2
- package/dist/clis/args/vetra.mjs +1 -1
- package/dist/clis/build-config-HbYUSZS1.mjs +252 -0
- package/dist/clis/build-config-HbYUSZS1.mjs.map +1 -0
- package/dist/clis/build-config.d.mts +52 -10616
- package/dist/clis/build-config.d.mts.map +1 -1
- package/dist/clis/build-config.mjs +2 -88
- package/dist/clis/build-pieces.d.mts +160 -0
- package/dist/clis/build-pieces.d.mts.map +1 -0
- package/dist/clis/build-pieces.mjs +549 -0
- package/dist/clis/build-pieces.mjs.map +1 -0
- package/dist/clis/command-names.d.mts +2 -2
- package/dist/clis/command-names.d.mts.map +1 -1
- package/dist/clis/command-names.mjs +1 -0
- package/dist/clis/command-names.mjs.map +1 -1
- package/dist/clis/constants.d.mts +3 -462
- package/dist/clis/constants.mjs +43 -12
- package/dist/clis/constants.mjs.map +1 -1
- package/dist/clis/feature-flags.d.mts +17 -0
- package/dist/clis/feature-flags.d.mts.map +1 -0
- package/dist/clis/feature-flags.mjs +21 -0
- package/dist/clis/feature-flags.mjs.map +1 -0
- package/dist/clis/index-6CZwrmQi.d.mts +11154 -0
- package/dist/clis/index-6CZwrmQi.d.mts.map +1 -0
- package/dist/clis/index.d.mts +1448 -1225
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +665 -352
- package/dist/clis/index.mjs.map +1 -1
- package/dist/clis/project-env.d.mts +4 -4
- package/dist/clis/project-env.d.mts.map +1 -1
- package/dist/clis/project-env.mjs.map +1 -1
- package/dist/clis/project-ports.d.mts +5 -5
- package/dist/clis/project-ports.d.mts.map +1 -1
- package/dist/clis/project-ports.mjs +1 -1
- package/dist/clis/project-ports.mjs.map +1 -1
- package/dist/clis/services/telemetry.d.mts +7 -7
- package/dist/clis/services/telemetry.d.mts.map +1 -1
- package/dist/clis/services/telemetry.mjs.map +1 -1
- package/dist/clis/types-DvsXtkR2.d.mts +582 -0
- package/dist/clis/types-DvsXtkR2.d.mts.map +1 -0
- package/dist/clis/utils.d.mts +4 -4
- package/dist/clis/utils.d.mts.map +1 -1
- package/dist/clis/utils.mjs.map +1 -1
- package/dist/{config-loader-B845Hidf.js → config-loader-DBJolZd0.js} +43 -9
- package/dist/config-loader-DBJolZd0.js.map +1 -0
- package/dist/connect/config-loader.d.ts +21 -8
- package/dist/connect/config-loader.d.ts.map +1 -1
- package/dist/connect/config-loader.js +2 -2
- package/dist/connect/index.d.ts +203 -57
- package/dist/connect/index.d.ts.map +1 -1
- package/dist/connect/index.js +318 -31
- package/dist/connect/index.js.map +1 -1
- package/dist/connect/json-adapter.d.ts +3 -4
- package/dist/connect/json-adapter.d.ts.map +1 -1
- package/dist/connect/json-adapter.js.map +1 -1
- package/dist/constants-DVJon33y.d.ts +9 -0
- package/dist/constants-DVJon33y.d.ts.map +1 -0
- package/dist/constants.d.ts +3 -2
- package/dist/constants.js +14 -5
- package/dist/constants.js.map +1 -1
- package/dist/document-drive/index.d.ts +131 -105
- package/dist/document-drive/index.d.ts.map +1 -1
- package/dist/document-drive/index.js +116 -54
- package/dist/document-drive/index.js.map +1 -1
- package/dist/document-model/errors.d.ts +3 -0
- package/dist/document-model/errors.js +152 -0
- package/dist/document-model/errors.js.map +1 -0
- package/dist/document-model/index.d.ts +5 -4
- package/dist/document-model/index.js +296 -390
- package/dist/document-model/index.js.map +1 -1
- package/dist/document-model/mock.d.ts +2 -3
- package/dist/document-model/mock.d.ts.map +1 -1
- package/dist/document-model/mock.js +2 -1
- package/dist/document-model/mock.js.map +1 -1
- package/dist/document-model/utils.d.ts +3 -2
- package/dist/document-model/utils.js +1 -1
- package/dist/document-model/version.d.ts +3 -0
- package/dist/document-model/version.js +8 -0
- package/dist/document-model/version.js.map +1 -0
- package/dist/index-bx0vYtFw.d.ts +36 -0
- package/dist/index-bx0vYtFw.d.ts.map +1 -0
- package/dist/index.d.ts +7 -6
- package/dist/index.js.map +1 -1
- package/dist/processors/index.d.ts +3 -2
- package/dist/processors/index.js +63 -4
- package/dist/processors/index.js.map +1 -1
- package/dist/purge-v06m_oGz.js +381 -0
- package/dist/purge-v06m_oGz.js.map +1 -0
- package/dist/registry/index.d.ts +15 -15
- package/dist/registry/index.d.ts.map +1 -1
- package/dist/registry/index.js +24 -6
- package/dist/registry/index.js.map +1 -1
- package/dist/registry/manifest-slim.d.ts +4 -3
- package/dist/registry/manifest-slim.d.ts.map +1 -1
- package/dist/registry/manifest-slim.js +21 -0
- package/dist/registry/manifest-slim.js.map +1 -1
- package/dist/registry/updates.d.ts +3 -3
- package/dist/registry/updates.d.ts.map +1 -1
- package/dist/registry/updates.js.map +1 -1
- package/dist/registry/urls.d.ts +2 -2
- package/dist/registry/urls.d.ts.map +1 -1
- package/dist/registry/urls.js.map +1 -1
- package/dist/{types-C1in4fl3.d.ts → types-Bsp8VL2y.d.ts} +2 -2
- package/dist/types-Bsp8VL2y.d.ts.map +1 -0
- package/dist/{types-YqLqb0Zb.d.ts → types-CfU91XFU.d.ts} +39 -43
- package/dist/types-CfU91XFU.d.ts.map +1 -0
- package/dist/{types-CpnWmiFY.d.ts → types-DzleLgA8.d.ts} +2038 -822
- package/dist/types-DzleLgA8.d.ts.map +1 -0
- package/dist/{utils-DP122OSS.d.ts → utils-BrKxCmKx.d.ts} +2 -2
- package/dist/utils-BrKxCmKx.d.ts.map +1 -0
- package/dist/{utils-aaTmfxFW.js → utils-CSF716ux.js} +10 -3
- package/dist/utils-CSF716ux.js.map +1 -0
- package/dist/version-BxLITo9P.d.ts +6 -0
- package/dist/version-BxLITo9P.d.ts.map +1 -0
- package/package.json +15 -6
- package/dist/clis/args/access-token--9H57y8J.d.mts +0 -18
- package/dist/clis/args/access-token--9H57y8J.d.mts.map +0 -1
- package/dist/clis/args/common-CcYbXrBx.mjs.map +0 -1
- package/dist/clis/args/common-Dsf1vpHV.d.mts +0 -183
- package/dist/clis/args/common-Dsf1vpHV.d.mts.map +0 -1
- package/dist/clis/args/connect-BVVvCmL9.mjs.map +0 -1
- package/dist/clis/args/connect-DetTnI8g.d.mts +0 -443
- package/dist/clis/args/connect-DetTnI8g.d.mts.map +0 -1
- package/dist/clis/args/generate-CA916Fvj.mjs.map +0 -1
- package/dist/clis/args/generate-DnV-bfXt.d.mts +0 -87
- package/dist/clis/args/generate-DnV-bfXt.d.mts.map +0 -1
- package/dist/clis/args/help-Bqbgbalu.mjs.map +0 -1
- package/dist/clis/args/help-CjAsudUn.d.mts +0 -193
- package/dist/clis/args/help-CjAsudUn.d.mts.map +0 -1
- package/dist/clis/args/init-CUXyfquF.d.mts +0 -55
- package/dist/clis/args/init-CUXyfquF.d.mts.map +0 -1
- package/dist/clis/args/inspect-DtZeoA5c.d.mts +0 -15
- package/dist/clis/args/inspect-DtZeoA5c.d.mts.map +0 -1
- package/dist/clis/args/install-CkP8zcHb.d.mts +0 -40
- package/dist/clis/args/install-CkP8zcHb.d.mts.map +0 -1
- package/dist/clis/args/list-BGf8s_gj.d.mts +0 -12
- package/dist/clis/args/list-BGf8s_gj.d.mts.map +0 -1
- package/dist/clis/args/login-DNsHwvqk.d.mts +0 -27
- package/dist/clis/args/login-DNsHwvqk.d.mts.map +0 -1
- package/dist/clis/args/magic-string.es-h_0HDQBQ.mjs +0 -1013
- package/dist/clis/args/magic-string.es-h_0HDQBQ.mjs.map +0 -1
- package/dist/clis/args/migrate-sixkWhxm.d.mts +0 -21
- package/dist/clis/args/migrate-sixkWhxm.d.mts.map +0 -1
- package/dist/clis/args/publish-Dqe5DUst.d.mts +0 -18
- package/dist/clis/args/publish-Dqe5DUst.d.mts.map +0 -1
- package/dist/clis/args/registry-C_RfTsKB.d.mts +0 -19
- package/dist/clis/args/registry-C_RfTsKB.d.mts.map +0 -1
- package/dist/clis/args/service-DhIkf8-O.d.mts +0 -22
- package/dist/clis/args/service-DhIkf8-O.d.mts.map +0 -1
- package/dist/clis/args/switchboard-BlPaq2at.d.mts +0 -72
- package/dist/clis/args/switchboard-BlPaq2at.d.mts.map +0 -1
- package/dist/clis/args/uninstall-BpA3YYbw.d.mts +0 -31
- package/dist/clis/args/uninstall-BpA3YYbw.d.mts.map +0 -1
- package/dist/clis/args/unpublish-CvwaIimG.d.mts +0 -24
- package/dist/clis/args/unpublish-CvwaIimG.d.mts.map +0 -1
- package/dist/clis/args/vetra-DLQ6lhLl.d.mts +0 -113
- package/dist/clis/args/vetra-DLQ6lhLl.d.mts.map +0 -1
- package/dist/clis/build-config.mjs.map +0 -1
- package/dist/clis/constants.d.mts.map +0 -1
- package/dist/config-loader-B845Hidf.js.map +0 -1
- package/dist/constants-BP_gjn8g.d.ts +0 -8
- package/dist/constants-BP_gjn8g.d.ts.map +0 -1
- package/dist/index-C_iVZe7f.d.ts +0 -7
- package/dist/index-C_iVZe7f.d.ts.map +0 -1
- package/dist/index-DyYIJtVy.d.ts +0 -836
- package/dist/index-DyYIJtVy.d.ts.map +0 -1
- package/dist/types-C1in4fl3.d.ts.map +0 -1
- package/dist/types-CpnWmiFY.d.ts.map +0 -1
- package/dist/types-YqLqb0Zb.d.ts.map +0 -1
- package/dist/utils-DP122OSS.d.ts.map +0 -1
- package/dist/utils-aaTmfxFW.js.map +0 -1
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as LegacySynchronizationUnit, A as TriggerData, C as RemoveTriggerInput, D as SetSharingTypeInput, E as SetDriveNameInput,
|
|
1
|
+
import { Ln as Maybe, On as IsDocumentOfType, St as CreateState, Ut as DocumentModelGlobalState, Zr as Reducer, _i as SaveToFileHandle, jn as LoadFromInput, km as PHBaseState, kn as IsStateOfType, lt as AssertIsDocumentOfType, ut as AssertIsStateOfType, yt as CreateDocument } from "../types-DzleLgA8.js";
|
|
2
|
+
import { $ as LegacySynchronizationUnit, A as TriggerData, C as RemoveTriggerInput, D as SetSharingTypeInput, E as SetDriveNameInput, J as DriveDocumentModelModule, M as TriggerType, N as UpdateFileInput, O as TransmitterType, P as UpdateNodeInput, Q as LegacyAddFileInput, S as RemoveListenerInput, T as SetDriveIconInput, X as DocumentDriveDocument, Y as DocumentDriveAction, Z as LegacyAddFileAction, _ as ListenerInput, _t as SetDriveNameAction, a as CopyNodeInput, at as DocumentDriveNodeOperations, b as PullResponderTriggerData, c as DocumentDriveLocalState, ct as UpdateNodeAction, d as FolderNode, dt as DocumentDriveDriveAction, et as AddFileAction, f as Listener, ft as DocumentDriveDriveOperations, g as ListenerFilterInput, gt as SetDriveIconAction, h as ListenerFilter, ht as SetAvailableOfflineAction, i as AddTriggerInput, it as DocumentDriveNodeAction, j as TriggerInput, k as Trigger, l as DocumentDrivePHState$1, lt as AddListenerAction, m as ListenerCallInfoInput, mt as RemoveTriggerAction, n as AddFolderInput, nt as CopyNodeAction, o as DeleteNodeInput, ot as MoveNodeAction, p as ListenerCallInfo, pt as RemoveListenerAction, q as DocumentDrivePHState, r as AddListenerInput, rt as DeleteNodeAction, s as DocumentDriveGlobalState, st as UpdateFileAction, t as AddFileInput, tt as AddFolderAction, u as FileNode, ut as AddTriggerAction, v as MoveNodeInput, vt as SetSharingTypeAction, w as SetAvailableOfflineInput, x as PullResponderTriggerDataInput, y as Node } from "../types-CfU91XFU.js";
|
|
3
|
+
import { a as GenerateNodesCopyIdGenerator, i as DriveInput, o as GenerateNodesCopySrc, s as SharingType } from "../index-bx0vYtFw.js";
|
|
3
4
|
import { z } from "zod";
|
|
4
|
-
|
|
5
5
|
//#region document-drive/constants.d.ts
|
|
6
|
-
declare const driveDocumentFileExtension = "phdd";
|
|
6
|
+
export declare const driveDocumentFileExtension = "phdd";
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region document-drive/gen/node/creators.d.ts
|
|
9
9
|
/**
|
|
10
10
|
* @deprecated Use addFile with {@link AddFileInput} instead. This overload will be removed in the future.
|
|
11
11
|
*/
|
|
12
|
-
declare function addFile(input: LegacyAddFileInput): LegacyAddFileAction;
|
|
13
|
-
declare function addFile(input: AddFileInput): AddFileAction;
|
|
14
|
-
declare const addFolder: (input: AddFolderInput) => AddFolderAction;
|
|
15
|
-
declare const deleteNode: (input: DeleteNodeInput) => DeleteNodeAction;
|
|
16
|
-
declare const updateFile: (input: UpdateFileInput) => UpdateFileAction;
|
|
17
|
-
declare const updateNode: (input: UpdateNodeInput) => UpdateNodeAction;
|
|
18
|
-
declare const copyNode: (input: CopyNodeInput) => CopyNodeAction;
|
|
19
|
-
declare const moveNode: (input: MoveNodeInput) => MoveNodeAction;
|
|
12
|
+
export declare function addFile(input: LegacyAddFileInput): LegacyAddFileAction;
|
|
13
|
+
export declare function addFile(input: AddFileInput): AddFileAction;
|
|
14
|
+
export declare const addFolder: (input: AddFolderInput) => AddFolderAction;
|
|
15
|
+
export declare const deleteNode: (input: DeleteNodeInput) => DeleteNodeAction;
|
|
16
|
+
export declare const updateFile: (input: UpdateFileInput) => UpdateFileAction;
|
|
17
|
+
export declare const updateNode: (input: UpdateNodeInput) => UpdateNodeAction;
|
|
18
|
+
export declare const copyNode: (input: CopyNodeInput) => CopyNodeAction;
|
|
19
|
+
export declare const moveNode: (input: MoveNodeInput) => MoveNodeAction;
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region document-drive/gen/drive/creators.d.ts
|
|
22
|
-
declare const setDriveName: (input: SetDriveNameInput) => SetDriveNameAction;
|
|
23
|
-
declare const setDriveIcon: (input: SetDriveIconInput) => SetDriveIconAction;
|
|
24
|
-
declare const setSharingType: (input: SetSharingTypeInput) => SetSharingTypeAction;
|
|
25
|
-
declare const setAvailableOffline: (input: SetAvailableOfflineInput) => SetAvailableOfflineAction;
|
|
26
|
-
declare const addListener: (input: AddListenerInput) => AddListenerAction;
|
|
27
|
-
declare const removeListener: (input: RemoveListenerInput) => RemoveListenerAction;
|
|
28
|
-
declare const addTrigger: (input: AddTriggerInput) => AddTriggerAction;
|
|
29
|
-
declare const removeTrigger: (input: RemoveTriggerInput) => RemoveTriggerAction;
|
|
22
|
+
export declare const setDriveName: (input: SetDriveNameInput) => SetDriveNameAction;
|
|
23
|
+
export declare const setDriveIcon: (input: SetDriveIconInput) => SetDriveIconAction;
|
|
24
|
+
export declare const setSharingType: (input: SetSharingTypeInput) => SetSharingTypeAction;
|
|
25
|
+
export declare const setAvailableOffline: (input: SetAvailableOfflineInput) => SetAvailableOfflineAction;
|
|
26
|
+
export declare const addListener: (input: AddListenerInput) => AddListenerAction;
|
|
27
|
+
export declare const removeListener: (input: RemoveListenerInput) => RemoveListenerAction;
|
|
28
|
+
export declare const addTrigger: (input: AddTriggerInput) => AddTriggerAction;
|
|
29
|
+
export declare const removeTrigger: (input: RemoveTriggerInput) => RemoveTriggerAction;
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region document-drive/gen/document-model.d.ts
|
|
32
|
-
declare const driveDocumentModel: DocumentModelGlobalState;
|
|
32
|
+
export declare const driveDocumentModel: DocumentModelGlobalState;
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region document-drive/gen/document-schema.d.ts
|
|
35
35
|
/** Schema for validating the header object of a Drive document */
|
|
36
|
-
declare const DriveDocumentHeaderSchema: z.ZodObject<{
|
|
36
|
+
export declare const DriveDocumentHeaderSchema: z.ZodObject<{
|
|
37
37
|
id: z.ZodString;
|
|
38
38
|
name: z.ZodString;
|
|
39
39
|
createdAtUtcIso: z.ZodString;
|
|
@@ -41,7 +41,7 @@ declare const DriveDocumentHeaderSchema: z.ZodObject<{
|
|
|
41
41
|
documentType: z.ZodLiteral<"powerhouse/document-drive">;
|
|
42
42
|
}, z.core.$strip>;
|
|
43
43
|
/** Schema for validating the state object of a Drive document */
|
|
44
|
-
declare const DrivePHStateSchema: z.ZodObject<{
|
|
44
|
+
export declare const DrivePHStateSchema: z.ZodObject<{
|
|
45
45
|
global: z.ZodObject<Required<{
|
|
46
46
|
icon: z.ZodType<Maybe<string>, Maybe<string>, z.core.$ZodTypeInternals<Maybe<string>, Maybe<string>>>;
|
|
47
47
|
name: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
@@ -54,7 +54,7 @@ declare const DrivePHStateSchema: z.ZodObject<{
|
|
|
54
54
|
triggers: z.ZodType<Trigger[], Trigger[], z.core.$ZodTypeInternals<Trigger[], Trigger[]>>;
|
|
55
55
|
}>, z.core.$strip>;
|
|
56
56
|
}, z.core.$strip>;
|
|
57
|
-
declare const DriveDocumentSchema: z.ZodObject<{
|
|
57
|
+
export declare const DriveDocumentSchema: z.ZodObject<{
|
|
58
58
|
header: z.ZodObject<{
|
|
59
59
|
id: z.ZodString;
|
|
60
60
|
name: z.ZodString;
|
|
@@ -90,34 +90,34 @@ declare const DriveDocumentSchema: z.ZodObject<{
|
|
|
90
90
|
}, z.core.$strip>;
|
|
91
91
|
}, z.core.$strip>;
|
|
92
92
|
/** Simple helper function to check if a state object is a Drive document state object */
|
|
93
|
-
declare function isDriveState(state: unknown): state is DocumentDrivePHState$1;
|
|
93
|
+
export declare function isDriveState(state: unknown): state is DocumentDrivePHState$1;
|
|
94
94
|
/** Simple helper function to assert that a document state object is a Drive document state object */
|
|
95
|
-
declare function assertIsDriveState(state: unknown): asserts state is DocumentDrivePHState$1;
|
|
95
|
+
export declare function assertIsDriveState(state: unknown): asserts state is DocumentDrivePHState$1;
|
|
96
96
|
/** Simple helper function to check if a document is a Drive document */
|
|
97
|
-
declare function isDriveDocument(document: unknown): document is DocumentDriveDocument;
|
|
97
|
+
export declare function isDriveDocument(document: unknown): document is DocumentDriveDocument;
|
|
98
98
|
/** Simple helper function to assert that a document is a Drive document */
|
|
99
|
-
declare function assertIsDriveDocument(document: unknown): asserts document is DocumentDriveDocument;
|
|
99
|
+
export declare function assertIsDriveDocument(document: unknown): asserts document is DocumentDriveDocument;
|
|
100
100
|
//#endregion
|
|
101
101
|
//#region document-drive/gen/document-type.d.ts
|
|
102
|
-
declare const driveDocumentType = "powerhouse/document-drive";
|
|
102
|
+
export declare const driveDocumentType = "powerhouse/document-drive";
|
|
103
103
|
//#endregion
|
|
104
104
|
//#region document-drive/gen/ph-factories.d.ts
|
|
105
|
-
declare function defaultGlobalState(): DocumentDriveGlobalState;
|
|
106
|
-
declare function defaultLocalState(): DocumentDriveLocalState;
|
|
107
|
-
declare function defaultPHState(): DocumentDrivePHState$1;
|
|
108
|
-
declare function createGlobalState(state?: Partial<DocumentDriveGlobalState>): DocumentDriveGlobalState;
|
|
109
|
-
declare function createLocalState(state?: Partial<DocumentDriveLocalState>): DocumentDriveLocalState;
|
|
110
|
-
declare function createState(baseState?: Partial<PHBaseState>, globalState?: Partial<DocumentDriveGlobalState>, localState?: Partial<DocumentDriveLocalState>): DocumentDrivePHState$1;
|
|
105
|
+
export declare function defaultGlobalState(): DocumentDriveGlobalState;
|
|
106
|
+
export declare function defaultLocalState(): DocumentDriveLocalState;
|
|
107
|
+
export declare function defaultPHState(): DocumentDrivePHState$1;
|
|
108
|
+
export declare function createGlobalState(state?: Partial<DocumentDriveGlobalState>): DocumentDriveGlobalState;
|
|
109
|
+
export declare function createLocalState(state?: Partial<DocumentDriveLocalState>): DocumentDriveLocalState;
|
|
110
|
+
export declare function createState(baseState?: Partial<PHBaseState>, globalState?: Partial<DocumentDriveGlobalState>, localState?: Partial<DocumentDriveLocalState>): DocumentDrivePHState$1;
|
|
111
111
|
//#endregion
|
|
112
112
|
//#region document-drive/gen/reducer.d.ts
|
|
113
|
-
declare const driveDocumentReducer: Reducer<DocumentDrivePHState$1>;
|
|
113
|
+
export declare const driveDocumentReducer: Reducer<DocumentDrivePHState$1>;
|
|
114
114
|
//#endregion
|
|
115
115
|
//#region document-drive/gen/schema/zod.d.ts
|
|
116
|
-
type Properties<T> = Required<{ [K in keyof T]: z.ZodType<T[K], T[K]
|
|
116
|
+
type Properties<T> = Required<{ [K in keyof T]: z.ZodType<T[K], T[K]>; }>;
|
|
117
117
|
type definedNonNullAny = {};
|
|
118
|
-
declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
|
|
119
|
-
declare const definedNonNullAnySchema: z.ZodAny & z.ZodType<definedNonNullAny, any, z.core.$ZodTypeInternals<definedNonNullAny, any>>;
|
|
120
|
-
declare const TransmitterTypeSchema: z.ZodEnum<{
|
|
118
|
+
export declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
|
|
119
|
+
export declare const definedNonNullAnySchema: z.ZodAny & z.ZodType<definedNonNullAny, any, z.core.$ZodTypeInternals<definedNonNullAny, any>>;
|
|
120
|
+
export declare const TransmitterTypeSchema: z.ZodEnum<{
|
|
121
121
|
Internal: "Internal";
|
|
122
122
|
MatrixConnect: "MatrixConnect";
|
|
123
123
|
PullResponder: "PullResponder";
|
|
@@ -125,27 +125,27 @@ declare const TransmitterTypeSchema: z.ZodEnum<{
|
|
|
125
125
|
SecureConnect: "SecureConnect";
|
|
126
126
|
SwitchboardPush: "SwitchboardPush";
|
|
127
127
|
}>;
|
|
128
|
-
declare const TriggerTypeSchema: z.ZodEnum<{
|
|
128
|
+
export declare const TriggerTypeSchema: z.ZodEnum<{
|
|
129
129
|
PullResponder: "PullResponder";
|
|
130
130
|
}>;
|
|
131
|
-
declare function AddFileInputSchema(): z.ZodObject<Properties<AddFileInput>>;
|
|
132
|
-
declare function AddFolderInputSchema(): z.ZodObject<Properties<AddFolderInput>>;
|
|
133
|
-
declare function AddListenerInputSchema(): z.ZodObject<Properties<AddListenerInput>>;
|
|
134
|
-
declare function AddTriggerInputSchema(): z.ZodObject<Properties<AddTriggerInput>>;
|
|
135
|
-
declare function CopyNodeInputSchema(): z.ZodObject<Properties<CopyNodeInput>>;
|
|
136
|
-
declare function DeleteNodeInputSchema(): z.ZodObject<Properties<DeleteNodeInput>>;
|
|
137
|
-
declare function DocumentDriveLocalStateSchema(): z.ZodObject<Properties<DocumentDriveLocalState>>;
|
|
138
|
-
declare function DocumentDriveStateSchema(): z.ZodObject<Properties<DocumentDriveGlobalState>>;
|
|
139
|
-
declare function FileNodeSchema(): z.ZodObject<Properties<FileNode>>;
|
|
140
|
-
declare function FolderNodeSchema(): z.ZodObject<Properties<FolderNode>>;
|
|
141
|
-
declare function ListenerSchema(): z.ZodObject<Properties<Listener>>;
|
|
142
|
-
declare function ListenerInputSchema(): z.ZodObject<Properties<ListenerInput>>;
|
|
143
|
-
declare function ListenerCallInfoSchema(): z.ZodObject<Properties<ListenerCallInfo>>;
|
|
144
|
-
declare function ListenerCallInfoInputSchema(): z.ZodObject<Properties<ListenerCallInfoInput>>;
|
|
145
|
-
declare function ListenerFilterSchema(): z.ZodObject<Properties<ListenerFilter>>;
|
|
146
|
-
declare function ListenerFilterInputSchema(): z.ZodObject<Properties<ListenerFilterInput>>;
|
|
147
|
-
declare function MoveNodeInputSchema(): z.ZodObject<Properties<MoveNodeInput>>;
|
|
148
|
-
declare function NodeSchema(): z.ZodUnion<readonly [z.ZodObject<Required<{
|
|
131
|
+
export declare function AddFileInputSchema(): z.ZodObject<Properties<AddFileInput>>;
|
|
132
|
+
export declare function AddFolderInputSchema(): z.ZodObject<Properties<AddFolderInput>>;
|
|
133
|
+
export declare function AddListenerInputSchema(): z.ZodObject<Properties<AddListenerInput>>;
|
|
134
|
+
export declare function AddTriggerInputSchema(): z.ZodObject<Properties<AddTriggerInput>>;
|
|
135
|
+
export declare function CopyNodeInputSchema(): z.ZodObject<Properties<CopyNodeInput>>;
|
|
136
|
+
export declare function DeleteNodeInputSchema(): z.ZodObject<Properties<DeleteNodeInput>>;
|
|
137
|
+
export declare function DocumentDriveLocalStateSchema(): z.ZodObject<Properties<DocumentDriveLocalState>>;
|
|
138
|
+
export declare function DocumentDriveStateSchema(): z.ZodObject<Properties<DocumentDriveGlobalState>>;
|
|
139
|
+
export declare function FileNodeSchema(): z.ZodObject<Properties<FileNode>>;
|
|
140
|
+
export declare function FolderNodeSchema(): z.ZodObject<Properties<FolderNode>>;
|
|
141
|
+
export declare function ListenerSchema(): z.ZodObject<Properties<Listener>>;
|
|
142
|
+
export declare function ListenerInputSchema(): z.ZodObject<Properties<ListenerInput>>;
|
|
143
|
+
export declare function ListenerCallInfoSchema(): z.ZodObject<Properties<ListenerCallInfo>>;
|
|
144
|
+
export declare function ListenerCallInfoInputSchema(): z.ZodObject<Properties<ListenerCallInfoInput>>;
|
|
145
|
+
export declare function ListenerFilterSchema(): z.ZodObject<Properties<ListenerFilter>>;
|
|
146
|
+
export declare function ListenerFilterInputSchema(): z.ZodObject<Properties<ListenerFilterInput>>;
|
|
147
|
+
export declare function MoveNodeInputSchema(): z.ZodObject<Properties<MoveNodeInput>>;
|
|
148
|
+
export declare function NodeSchema(): z.ZodUnion<readonly [z.ZodObject<Required<{
|
|
149
149
|
documentType: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
150
150
|
id: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
151
151
|
kind: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
@@ -157,50 +157,50 @@ declare function NodeSchema(): z.ZodUnion<readonly [z.ZodObject<Required<{
|
|
|
157
157
|
name: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
158
158
|
parentFolder: z.ZodType<Maybe<string>, Maybe<string>, z.core.$ZodTypeInternals<Maybe<string>, Maybe<string>>>;
|
|
159
159
|
}>, z.core.$strip>]>;
|
|
160
|
-
declare function PullResponderTriggerDataSchema(): z.ZodObject<Properties<PullResponderTriggerData>>;
|
|
161
|
-
declare function PullResponderTriggerDataInputSchema(): z.ZodObject<Properties<PullResponderTriggerDataInput>>;
|
|
162
|
-
declare function RemoveListenerInputSchema(): z.ZodObject<Properties<RemoveListenerInput>>;
|
|
163
|
-
declare function RemoveTriggerInputSchema(): z.ZodObject<Properties<RemoveTriggerInput>>;
|
|
164
|
-
declare function SetAvailableOfflineInputSchema(): z.ZodObject<Properties<SetAvailableOfflineInput>>;
|
|
165
|
-
declare function SetDriveIconInputSchema(): z.ZodObject<Properties<SetDriveIconInput>>;
|
|
166
|
-
declare function SetDriveNameInputSchema(): z.ZodObject<Properties<SetDriveNameInput>>;
|
|
167
|
-
declare function SetSharingTypeInputSchema(): z.ZodObject<Properties<SetSharingTypeInput>>;
|
|
168
|
-
declare function TriggerSchema(): z.ZodObject<Properties<Trigger>>;
|
|
169
|
-
declare function TriggerInputSchema(): z.ZodObject<Properties<TriggerInput>>;
|
|
170
|
-
declare function TriggerDataSchema(): z.ZodObject<Required<{
|
|
160
|
+
export declare function PullResponderTriggerDataSchema(): z.ZodObject<Properties<PullResponderTriggerData>>;
|
|
161
|
+
export declare function PullResponderTriggerDataInputSchema(): z.ZodObject<Properties<PullResponderTriggerDataInput>>;
|
|
162
|
+
export declare function RemoveListenerInputSchema(): z.ZodObject<Properties<RemoveListenerInput>>;
|
|
163
|
+
export declare function RemoveTriggerInputSchema(): z.ZodObject<Properties<RemoveTriggerInput>>;
|
|
164
|
+
export declare function SetAvailableOfflineInputSchema(): z.ZodObject<Properties<SetAvailableOfflineInput>>;
|
|
165
|
+
export declare function SetDriveIconInputSchema(): z.ZodObject<Properties<SetDriveIconInput>>;
|
|
166
|
+
export declare function SetDriveNameInputSchema(): z.ZodObject<Properties<SetDriveNameInput>>;
|
|
167
|
+
export declare function SetSharingTypeInputSchema(): z.ZodObject<Properties<SetSharingTypeInput>>;
|
|
168
|
+
export declare function TriggerSchema(): z.ZodObject<Properties<Trigger>>;
|
|
169
|
+
export declare function TriggerInputSchema(): z.ZodObject<Properties<TriggerInput>>;
|
|
170
|
+
export declare function TriggerDataSchema(): z.ZodObject<Required<{
|
|
171
171
|
interval: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
172
172
|
listenerId: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
173
173
|
url: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
174
174
|
}>, z.core.$strip>;
|
|
175
|
-
declare function UpdateFileInputSchema(): z.ZodObject<Properties<UpdateFileInput>>;
|
|
176
|
-
declare function UpdateNodeInputSchema(): z.ZodObject<Properties<UpdateNodeInput>>;
|
|
175
|
+
export declare function UpdateFileInputSchema(): z.ZodObject<Properties<UpdateFileInput>>;
|
|
176
|
+
export declare function UpdateNodeInputSchema(): z.ZodObject<Properties<UpdateNodeInput>>;
|
|
177
177
|
//#endregion
|
|
178
178
|
//#region document-drive/gen/utils.d.ts
|
|
179
|
-
declare const initialGlobalState: DocumentDriveGlobalState;
|
|
180
|
-
declare const initialLocalState: DocumentDriveLocalState;
|
|
181
|
-
declare const driveCreateState: CreateState<DocumentDrivePHState$1>;
|
|
182
|
-
declare const driveCreateDocument: CreateDocument<DocumentDrivePHState$1>;
|
|
183
|
-
declare const driveSaveToFileHandle: SaveToFileHandle;
|
|
184
|
-
declare const driveLoadFromInput: LoadFromInput<DocumentDrivePHState$1>;
|
|
185
|
-
declare const isStateOfType: IsStateOfType<DocumentDrivePHState$1>;
|
|
186
|
-
declare const assertIsStateOfType: AssertIsStateOfType<DocumentDrivePHState$1>;
|
|
187
|
-
declare const isDocumentOfType: IsDocumentOfType<DocumentDrivePHState$1>;
|
|
188
|
-
declare const assertIsDocumentOfType: AssertIsDocumentOfType<DocumentDrivePHState$1>;
|
|
179
|
+
export declare const initialGlobalState: DocumentDriveGlobalState;
|
|
180
|
+
export declare const initialLocalState: DocumentDriveLocalState;
|
|
181
|
+
export declare const driveCreateState: CreateState<DocumentDrivePHState$1>;
|
|
182
|
+
export declare const driveCreateDocument: CreateDocument<DocumentDrivePHState$1>;
|
|
183
|
+
export declare const driveSaveToFileHandle: SaveToFileHandle;
|
|
184
|
+
export declare const driveLoadFromInput: LoadFromInput<DocumentDrivePHState$1>;
|
|
185
|
+
export declare const isStateOfType: IsStateOfType<DocumentDrivePHState$1>;
|
|
186
|
+
export declare const assertIsStateOfType: AssertIsStateOfType<DocumentDrivePHState$1>;
|
|
187
|
+
export declare const isDocumentOfType: IsDocumentOfType<DocumentDrivePHState$1>;
|
|
188
|
+
export declare const assertIsDocumentOfType: AssertIsDocumentOfType<DocumentDrivePHState$1>;
|
|
189
189
|
//#endregion
|
|
190
190
|
//#region document-drive/module.d.ts
|
|
191
|
-
declare const driveDocumentModelModule: DriveDocumentModelModule;
|
|
191
|
+
export declare const driveDocumentModelModule: DriveDocumentModelModule;
|
|
192
192
|
//#endregion
|
|
193
193
|
//#region document-drive/src/reducers/drive.d.ts
|
|
194
|
-
declare const driveReducer: DocumentDriveDriveOperations;
|
|
194
|
+
export declare const driveReducer: DocumentDriveDriveOperations;
|
|
195
195
|
//#endregion
|
|
196
196
|
//#region document-drive/src/reducers/node.d.ts
|
|
197
|
-
declare const nodeReducer: DocumentDriveNodeOperations;
|
|
197
|
+
export declare const nodeReducer: DocumentDriveNodeOperations;
|
|
198
198
|
//#endregion
|
|
199
199
|
//#region document-drive/src/utils.d.ts
|
|
200
|
-
declare function isFileNode(node: Node): node is FileNode;
|
|
201
|
-
declare function isFolderNode(node: Node): node is FolderNode;
|
|
202
|
-
declare function getAncestors(node: Node, allNodes: Node[]): Node[];
|
|
203
|
-
declare function getDescendants(node: Node, allNodes: Node[]): Node[];
|
|
200
|
+
export declare function isFileNode(node: Node): node is FileNode;
|
|
201
|
+
export declare function isFolderNode(node: Node): node is FolderNode;
|
|
202
|
+
export declare function getAncestors(node: Node, allNodes: Node[]): Node[];
|
|
203
|
+
export declare function getDescendants(node: Node, allNodes: Node[]): Node[];
|
|
204
204
|
/**
|
|
205
205
|
* Generates a copy of nodes based on the provided source and target information.
|
|
206
206
|
* @param src - The source information for generating the copy.
|
|
@@ -209,32 +209,58 @@ declare function getDescendants(node: Node, allNodes: Node[]): Node[];
|
|
|
209
209
|
* @returns An array of copied nodes with updated IDs and parent folders.
|
|
210
210
|
* @throws Error if the root node with the specified ID is not found.
|
|
211
211
|
*/
|
|
212
|
-
declare function generateNodesCopy(src: GenerateNodesCopySrc, idGenerator: GenerateNodesCopyIdGenerator, nodes: Node[]): CopyNodeInput[];
|
|
213
|
-
declare function getNextCopyNumber(files: string[], baseFilename: string): number;
|
|
214
|
-
declare function escapeRegExp(string: string): string;
|
|
212
|
+
export declare function generateNodesCopy(src: GenerateNodesCopySrc, idGenerator: GenerateNodesCopyIdGenerator, nodes: Node[]): CopyNodeInput[];
|
|
213
|
+
export declare function getNextCopyNumber(files: string[], baseFilename: string): number;
|
|
214
|
+
export declare function escapeRegExp(string: string): string;
|
|
215
215
|
/**
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
* create a child draft per element it visits
|
|
219
|
-
*
|
|
216
|
+
* A plain, unfrozen copy of the node list for read-only scans. Inside a
|
|
217
|
+
* mutative draft the copy is taken from the untouched base list, so a find or
|
|
218
|
+
* filter over it does not create a child draft per element it visits, and it is
|
|
219
|
+
* a copy because the stored list is frozen and V8 scans a frozen array several
|
|
220
|
+
* times slower than a normal one. Callers must read before they write: the base
|
|
221
|
+
* list does not see mutations made earlier in the same action.
|
|
220
222
|
*/
|
|
221
|
-
declare function readNodes(state: {
|
|
223
|
+
export declare function readNodes(state: {
|
|
222
224
|
nodes: Node[];
|
|
223
225
|
}): Node[];
|
|
224
226
|
/**
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
*
|
|
227
|
+
* A copy of the given list, sorted by id and frozen, which is the shape the
|
|
228
|
+
* node reducer assigns. Read the list with readNodes, build the new list from
|
|
229
|
+
* it, and pass what this returns to assignNodes. The copy is what keeps the
|
|
230
|
+
* freeze off the caller's array.
|
|
229
231
|
*/
|
|
230
|
-
declare function
|
|
231
|
-
|
|
232
|
+
export declare function sortNodesById(nodes: readonly Node[]): readonly Node[];
|
|
233
|
+
/**
|
|
234
|
+
* The node list with a node added, ordered by id and frozen, in the same shape
|
|
235
|
+
* sortNodesById returns. The list is built and sorted as plain objects, so
|
|
236
|
+
* inside a mutative draft the comparator never reads an element through the
|
|
237
|
+
* draft proxy. Pass the list read with readNodes: the draft's own list would
|
|
238
|
+
* put child drafts in the result, which the freeze then keeps mutative from
|
|
239
|
+
* resolving.
|
|
240
|
+
*/
|
|
241
|
+
export declare function insertNodeSorted(nodes: readonly Node[], node: Node): readonly Node[];
|
|
242
|
+
/**
|
|
243
|
+
* Installs a node list as state.nodes. Every assignment the node reducer makes
|
|
244
|
+
* goes through here, and this is the one place a frozen array crosses into
|
|
245
|
+
* state: the generated DocumentDriveGlobalState types nodes as a mutable
|
|
246
|
+
* Node[], so the cast below is where that gap is paid rather than spread over
|
|
247
|
+
* the reducer. Consumers must treat drive.state.global.nodes as read-only --
|
|
248
|
+
* mutating it in place (push, sort, splice) throws in strict mode; copy it
|
|
249
|
+
* first, as readNodes does. Note that UPGRADE_DOCUMENT's initialState and
|
|
250
|
+
* imported documents replace a whole scope and can install a list this
|
|
251
|
+
* function never saw.
|
|
252
|
+
*/
|
|
253
|
+
export declare function assignNodes(state: {
|
|
254
|
+
nodes: Node[];
|
|
255
|
+
}, nodes: readonly Node[]): void;
|
|
256
|
+
export declare function handleTargetNameCollisions(params: {
|
|
232
257
|
nodes: Node[];
|
|
233
258
|
targetParentFolder: string | null;
|
|
234
259
|
srcName: string;
|
|
235
260
|
srcKind: "file" | "folder";
|
|
236
261
|
}): string;
|
|
237
|
-
declare const isValidName: (name: string) => boolean;
|
|
262
|
+
export declare const isValidName: (name: string) => boolean;
|
|
238
263
|
//#endregion
|
|
239
|
-
export { AddFileAction, AddFileInput,
|
|
264
|
+
export type { AddFileAction, AddFileInput, AddFolderAction, AddFolderInput, AddListenerAction, AddListenerInput, AddTriggerAction, AddTriggerInput, CopyNodeAction, CopyNodeInput, DeleteNodeAction, DeleteNodeInput, DocumentDriveAction, DocumentDriveDocument, DocumentDriveDriveAction, DocumentDriveDriveOperations, DocumentDriveGlobalState, DocumentDriveLocalState, DocumentDriveNodeAction, DocumentDriveNodeOperations, DocumentDrivePHState, DriveDocumentModelModule, DriveInput, FileNode, FolderNode, GenerateNodesCopyIdGenerator, GenerateNodesCopySrc, LegacyAddFileAction, LegacyAddFileInput, LegacySynchronizationUnit, Listener, ListenerCallInfo, ListenerCallInfoInput, ListenerFilter, ListenerFilterInput, ListenerInput, MoveNodeAction, MoveNodeInput, Node, PullResponderTriggerData, PullResponderTriggerDataInput, RemoveListenerAction, RemoveListenerInput, RemoveTriggerAction, RemoveTriggerInput, SetAvailableOfflineAction, SetAvailableOfflineInput, SetDriveIconAction, SetDriveIconInput, SetDriveNameAction, SetDriveNameInput, SetSharingTypeAction, SetSharingTypeInput, SharingType, TransmitterType, Trigger, TriggerData, TriggerInput, TriggerType, UpdateFileAction, UpdateFileInput, UpdateNodeAction, UpdateNodeInput };
|
|
265
|
+
export {};
|
|
240
266
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../document-drive/constants.ts","../../document-drive/gen/node/creators.ts","../../document-drive/gen/drive/creators.ts","../../document-drive/gen/document-model.ts","../../document-drive/gen/document-schema.ts","../../document-drive/gen/document-type.ts","../../document-drive/gen/ph-factories.ts","../../document-drive/gen/reducer.ts","../../document-drive/gen/schema/zod.ts","../../document-drive/gen/utils.ts","../../document-drive/module.ts","../../document-drive/src/reducers/drive.ts","../../document-drive/src/reducers/node.ts","../../document-drive/src/utils.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../document-drive/constants.ts","../../document-drive/gen/node/creators.ts","../../document-drive/gen/drive/creators.ts","../../document-drive/gen/document-model.ts","../../document-drive/gen/document-schema.ts","../../document-drive/gen/document-type.ts","../../document-drive/gen/ph-factories.ts","../../document-drive/gen/reducer.ts","../../document-drive/gen/schema/zod.ts","../../document-drive/gen/utils.ts","../../document-drive/module.ts","../../document-drive/src/reducers/drive.ts","../../document-drive/src/reducers/node.ts","../../document-drive/src/utils.ts"],"mappings":"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"}
|