@visulima/storage-client 1.0.0-alpha.12 → 1.0.0-alpha.14
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/CHANGELOG.md +43 -0
- package/dist/index.d.ts +208 -1
- package/dist/index.js +1 -1
- package/dist/packem_shared/{createAbortAll-CIaZJY9f.js → createAbortAll-BVH_Wo6s.js} +1 -1
- package/dist/packem_shared/{createAbortAll-D3DlfIUX.js → createAbortAll-DMUWUL4C.js} +1 -1
- package/dist/packem_shared/{createAbortBatch-CYc_weio.js → createAbortBatch-C3t-Ho9c.js} +1 -1
- package/dist/packem_shared/{createAbortBatch-r3kaxuh8.js → createAbortBatch-bMvSBu1k.js} +1 -1
- package/dist/packem_shared/{createAbortItem-CDuIUi-c.js → createAbortItem-Bmhqhi8L.js} +1 -1
- package/dist/packem_shared/{createAbortItem-Dvd4L_J4.js → createAbortItem-BsqmmxdZ.js} +1 -1
- package/dist/packem_shared/{createAllAbortListener-DWB1otpM.js → createAllAbortListener-BChF9YcG.js} +1 -1
- package/dist/packem_shared/{createAllAbortListener-BehqWMv-.js → createAllAbortListener-BF9VhxQA.js} +1 -1
- package/dist/packem_shared/{createBatchCancelledListener-c6KcP08b.js → createBatchCancelledListener-DIHrRDNj.js} +1 -1
- package/dist/packem_shared/{createBatchCancelledListener-BXElG-Zl.js → createBatchCancelledListener-FsVlTbYv.js} +1 -1
- package/dist/packem_shared/createBatchDeleteFiles-B8bHItyS.js +1 -0
- package/dist/packem_shared/createBatchDeleteFiles-CN07ubNE.js +1 -0
- package/dist/packem_shared/{createBatchErrorListener-DFJkCUjM.js → createBatchErrorListener-BNXfdSlM.js} +1 -1
- package/dist/packem_shared/{createBatchErrorListener-Qe8LXCAz.js → createBatchErrorListener-CxEJhGOX.js} +1 -1
- package/dist/packem_shared/{createBatchFinalizeListener-Dd2Fiw8Z.js → createBatchFinalizeListener-DOK5uoog.js} +1 -1
- package/dist/packem_shared/{createBatchFinalizeListener-C-VHli8S.js → createBatchFinalizeListener-pjqAl9iM.js} +1 -1
- package/dist/packem_shared/{createBatchFinishListener-m7KNLv_1.js → createBatchFinishListener-BbMzJGlN.js} +1 -1
- package/dist/packem_shared/{createBatchFinishListener-DZHov2gR.js → createBatchFinishListener-DuMOo7Kn.js} +1 -1
- package/dist/packem_shared/{createBatchProgressListener-DXfegOiX.js → createBatchProgressListener-CUpa_7Nv.js} +1 -1
- package/dist/packem_shared/{createBatchProgressListener-C6EL7w7m.js → createBatchProgressListener-D28nm9Xe.js} +1 -1
- package/dist/packem_shared/{createBatchRetry-BnTMC2im.js → createBatchRetry-Bnaf10e9.js} +1 -1
- package/dist/packem_shared/{createBatchRetry-DssYfupW.js → createBatchRetry-DWOdovQt.js} +1 -1
- package/dist/packem_shared/{createBatchStartListener-e0RcceTB.js → createBatchStartListener-BwVzPsCB.js} +1 -1
- package/dist/packem_shared/{createBatchStartListener-D9gG-BHX.js → createBatchStartListener-DejGDAMY.js} +1 -1
- package/dist/packem_shared/{createBatchUpload-DCzjYF4B.js → createBatchUpload-Dm5vSg1j.js} +1 -1
- package/dist/packem_shared/createBatchUpload-Z-8vD9Ql.js +1 -0
- package/dist/packem_shared/createChunkedRestAdapter-CWFhVX6x.js +1 -0
- package/dist/packem_shared/createChunkedRestUpload-BH_5ZAr2.js +1 -0
- package/dist/packem_shared/createChunkedRestUpload-DAoXFznW.js +1 -0
- package/dist/packem_shared/createDeleteFile-D07PU21a.js +1 -0
- package/dist/packem_shared/createDeleteFile-mGIgeCQK.js +1 -0
- package/dist/packem_shared/createFileInput-CERPgCpc.js +1 -0
- package/dist/packem_shared/createFileInput-DyGrmzbc.js +1 -0
- package/dist/packem_shared/createGetFile-cUIB1L1M.js +1 -0
- package/dist/packem_shared/createGetFile-dT-EuNKP.js +1 -0
- package/dist/packem_shared/createGetFileList-C3lYvKGY.js +1 -0
- package/dist/packem_shared/createGetFileList-C_n3HgHG.js +1 -0
- package/dist/packem_shared/createGetFileMeta-CSYB0Oj1.js +1 -0
- package/dist/packem_shared/{createGetFileMeta-50LymNvf.js → createGetFileMeta-DZ46CHse.js} +1 -1
- package/dist/packem_shared/createHeadFile--rl2Ezgb.js +1 -0
- package/dist/packem_shared/{createHeadFile-DR8CwK_B.js → createHeadFile-Ch80NkDO.js} +1 -1
- package/dist/packem_shared/{createMultipartAdapter-BNppwu8z.js → createMultipartAdapter-B17aIZJS.js} +1 -1
- package/dist/packem_shared/{createMultipartUpload-BMu5EO-f.js → createMultipartUpload-BPcFYSwI.js} +1 -1
- package/dist/packem_shared/createMultipartUpload-CFsUjhvG.js +1 -0
- package/dist/packem_shared/createPatchChunk-7y5S60GE.js +1 -0
- package/dist/packem_shared/createPatchChunk-D-N2cYZ7.js +1 -0
- package/dist/packem_shared/createPutFile-BJcLUSQi.js +1 -0
- package/dist/packem_shared/createPutFile-CamOtR__.js +1 -0
- package/dist/packem_shared/{createRetry-2YY79v45.js → createRetry-BInLl1TV.js} +1 -1
- package/dist/packem_shared/{createRetry-DOYZZbrG.js → createRetry-D0eddvNY.js} +1 -1
- package/dist/packem_shared/{createRetryListener-CW4sOuow.js → createRetryListener-59bXI4qF.js} +1 -1
- package/dist/packem_shared/{createRetryListener-ISvMl_3n.js → createRetryListener-hZUkGq7P.js} +1 -1
- package/dist/packem_shared/createTransformFile-BaofH3n5.js +1 -0
- package/dist/packem_shared/createTransformFile-BcoA39lM.js +1 -0
- package/dist/packem_shared/createTransformMetadata-C9lWyhne.js +1 -0
- package/dist/packem_shared/{createTransformMetadata-zyl5UymO.js → createTransformMetadata-CqyCBOXk.js} +1 -1
- package/dist/packem_shared/createTusAdapter-BbFsUNsP.js +1 -0
- package/dist/packem_shared/{createTusUpload-60ceH2dH.js → createTusUpload-DKIIHh2X.js} +1 -1
- package/dist/packem_shared/createTusUpload-rZKMrL5n.js +1 -0
- package/dist/packem_shared/{createUpload-hMh93Gt9.js → createUpload-0qE79TWD.js} +1 -1
- package/dist/packem_shared/createUpload-BF6TujIH.js +1 -0
- package/dist/packem_shared/createUploader-KOsp3cZt.js +1 -0
- package/dist/packem_shared/parseApiError-BiXX3oHJ.js +1 -0
- package/dist/packem_shared/uploader.d-DsC50BbX.d.ts +223 -0
- package/dist/packem_shared/{useAbortAll-Dwl12wn5.js → useAbortAll-DNzPcfOt.js} +1 -1
- package/dist/packem_shared/{useAbortAll-BQ8eXNKW.js → useAbortAll-Xks2z0Rf.js} +1 -1
- package/dist/packem_shared/{useAbortBatch-CyHnX3HT.js → useAbortBatch-Jb37hbXq.js} +1 -1
- package/dist/packem_shared/{useAbortBatch-CZpDT_VG.js → useAbortBatch-y-KZjKTY.js} +1 -1
- package/dist/packem_shared/{useAbortItem-D-5h_Oyx.js → useAbortItem-BhdhRgs8.js} +1 -1
- package/dist/packem_shared/{useAbortItem-D_F-QSoR.js → useAbortItem-DTFUUKVu.js} +1 -1
- package/dist/packem_shared/{useAllAbortListener-BTmWEsU9.js → useAllAbortListener-BBw02ZoD.js} +1 -1
- package/dist/packem_shared/{useAllAbortListener-XvIsxprv.js → useAllAbortListener-Crsmf1kC.js} +1 -1
- package/dist/packem_shared/{useBatchCancelledListener-CYR2wnxk.js → useBatchCancelledListener-C3IW43nC.js} +1 -1
- package/dist/packem_shared/{useBatchCancelledListener-C0LDRfcv.js → useBatchCancelledListener-CVJULtua.js} +1 -1
- package/dist/packem_shared/useBatchDeleteFiles-BSG8D3Do.js +1 -0
- package/dist/packem_shared/useBatchDeleteFiles-DmKXrcBR.js +1 -0
- package/dist/packem_shared/{useBatchErrorListener-Czidx586.js → useBatchErrorListener-BAVIRlQE.js} +1 -1
- package/dist/packem_shared/{useBatchErrorListener-B_6NFnd9.js → useBatchErrorListener-Ck1BwfZA.js} +1 -1
- package/dist/packem_shared/{useBatchFinalizeListener-CHCTeAHu.js → useBatchFinalizeListener-D7TRElSE.js} +1 -1
- package/dist/packem_shared/{useBatchFinalizeListener-DPMYtpeD.js → useBatchFinalizeListener-nA7Qs-Ya.js} +1 -1
- package/dist/packem_shared/{useBatchFinishListener-BU_oqITL.js → useBatchFinishListener-C6zS5OI6.js} +1 -1
- package/dist/packem_shared/{useBatchFinishListener-C757MrUE.js → useBatchFinishListener-VdCzyg4J.js} +1 -1
- package/dist/packem_shared/{useBatchProgressListener-VgV-UnUC.js → useBatchProgressListener-B08x2n9U.js} +1 -1
- package/dist/packem_shared/{useBatchProgressListener-DLvO3sOl.js → useBatchProgressListener-CdcDM2sa.js} +1 -1
- package/dist/packem_shared/{useBatchRetry-DPDRWaAZ.js → useBatchRetry-B3FQ1DdH.js} +1 -1
- package/dist/packem_shared/{useBatchRetry-DgtOIHZS.js → useBatchRetry-DahiIOXJ.js} +1 -1
- package/dist/packem_shared/{useBatchStartListener-BtJWkFZl.js → useBatchStartListener-ByQlcF8F.js} +1 -1
- package/dist/packem_shared/{useBatchStartListener-VhNPXaew.js → useBatchStartListener-DndF1z5v.js} +1 -1
- package/dist/packem_shared/{useBatchUpload-OtoOJPyD.js → useBatchUpload-BJBdu6vh.js} +1 -1
- package/dist/packem_shared/useBatchUpload-IZkU_Gop.js +1 -0
- package/dist/packem_shared/useChunkedRestUpload-C9RhEtUt.js +1 -0
- package/dist/packem_shared/useChunkedRestUpload-tirJ_5VX.js +1 -0
- package/dist/packem_shared/useDeleteFile-BJnTMMUr.js +1 -0
- package/dist/packem_shared/useDeleteFile-Dsw372GL.js +1 -0
- package/dist/packem_shared/useFileInput-BUPBo2m_.js +1 -0
- package/dist/packem_shared/useFileInput-CgqlIlGE.js +1 -0
- package/dist/packem_shared/useGetFile-BkmKk12o.js +1 -0
- package/dist/packem_shared/useGetFile-CNOi9ZIM.js +1 -0
- package/dist/packem_shared/useGetFileList-BIGh4thc.js +1 -0
- package/dist/packem_shared/useGetFileList-CkAmk7lP.js +1 -0
- package/dist/packem_shared/useGetFileMeta-CHee8013.js +1 -0
- package/dist/packem_shared/useGetFileMeta-eKrJc2p1.js +1 -0
- package/dist/packem_shared/useHeadFile-CdIM_Xi1.js +1 -0
- package/dist/packem_shared/{useHeadFile-DBQdkWZG.js → useHeadFile-D5CQQnyf.js} +1 -1
- package/dist/packem_shared/{useMultipartUpload-DmdEn3r3.js → useMultipartUpload-CJMa-_Yo.js} +1 -1
- package/dist/packem_shared/{useMultipartUpload-CIZ1b2I0.js → useMultipartUpload-CbRSpnTb.js} +1 -1
- package/dist/packem_shared/usePatchChunk-B8ZCd9Th.js +1 -0
- package/dist/packem_shared/usePatchChunk-DqZtVBBl.js +1 -0
- package/dist/packem_shared/usePutFile-CFaBgDX4.js +1 -0
- package/dist/packem_shared/usePutFile-Db_uVkqT.js +1 -0
- package/dist/packem_shared/{useRetry-BKB7OLhh.js → useRetry-DHjDuH0H.js} +1 -1
- package/dist/packem_shared/{useRetry-CrCiJNIu.js → useRetry-trYC3K_p.js} +1 -1
- package/dist/packem_shared/{useRetryListener-DJuOCZP7.js → useRetryListener-CAIyK1_Q.js} +1 -1
- package/dist/packem_shared/{useRetryListener-CnCl5adt.js → useRetryListener-DC8G9lmY.js} +1 -1
- package/dist/packem_shared/useTransformFile-BCyX-R_e.js +1 -0
- package/dist/packem_shared/useTransformFile-BMqWIG7J.js +1 -0
- package/dist/packem_shared/useTransformMetadata-CUo8IdKP.js +1 -0
- package/dist/packem_shared/{useTransformMetadata-B0JbX1Ni.js → useTransformMetadata-DjcVDZOc.js} +1 -1
- package/dist/packem_shared/{useTusUpload-BkaFKsSN.js → useTusUpload-B5KsdwDR.js} +1 -1
- package/dist/packem_shared/{useTusUpload-CNRlzFRm.js → useTusUpload-BwF0G1LE.js} +1 -1
- package/dist/packem_shared/{useUpload-DHgLmMri.js → useUpload-7OjscFW6.js} +1 -1
- package/dist/packem_shared/{useUpload-hVpmaxT3.js → useUpload-C5ZiPWFM.js} +1 -1
- package/dist/react/index.d.ts +839 -61
- package/dist/react/index.js +1 -1
- package/dist/solid/index.d.ts +690 -60
- package/dist/solid/index.js +1 -1
- package/dist/svelte/index.d.ts +671 -60
- package/dist/svelte/index.js +1 -1
- package/dist/vue/index.d.ts +804 -60
- package/dist/vue/index.js +1 -1
- package/package.json +26 -26
- package/dist/core/chunked-rest-adapter.d.ts +0 -43
- package/dist/core/index.d.ts +0 -11
- package/dist/core/multipart-adapter.d.ts +0 -34
- package/dist/core/query-client.d.ts +0 -57
- package/dist/core/query-keys.d.ts +0 -34
- package/dist/core/tus-adapter.d.ts +0 -43
- package/dist/core/uploader.d.ts +0 -183
- package/dist/packem_shared/createBatchDeleteFiles-B0SYSdYj.js +0 -1
- package/dist/packem_shared/createBatchDeleteFiles-Z4S-30eN.js +0 -1
- package/dist/packem_shared/createBatchUpload-BAhrDNle.js +0 -1
- package/dist/packem_shared/createChunkedRestAdapter-Df1E_Adn.js +0 -1
- package/dist/packem_shared/createChunkedRestUpload-CJNQp68Z.js +0 -1
- package/dist/packem_shared/createChunkedRestUpload-DZIOry7M.js +0 -1
- package/dist/packem_shared/createDeleteFile-DsUMoSxn.js +0 -1
- package/dist/packem_shared/createDeleteFile-_Znrnika.js +0 -1
- package/dist/packem_shared/createFileInput-B7WPz_-r.js +0 -1
- package/dist/packem_shared/createFileInput-TTI-EsSq.js +0 -1
- package/dist/packem_shared/createGetFile-BOV5S7mX.js +0 -1
- package/dist/packem_shared/createGetFile-CY2ohQF-.js +0 -1
- package/dist/packem_shared/createGetFileList-DZHiTR4D.js +0 -1
- package/dist/packem_shared/createGetFileList-ZF0Luf6h.js +0 -1
- package/dist/packem_shared/createGetFileMeta-DmC_OvP4.js +0 -1
- package/dist/packem_shared/createHeadFile-DHJXsk3i.js +0 -1
- package/dist/packem_shared/createMultipartUpload-D5jXlOpN.js +0 -1
- package/dist/packem_shared/createPatchChunk-DqCMbHjI.js +0 -1
- package/dist/packem_shared/createPatchChunk-Zy6I60LN.js +0 -1
- package/dist/packem_shared/createPutFile-C95UgrTJ.js +0 -1
- package/dist/packem_shared/createPutFile-D8hN-9Ai.js +0 -1
- package/dist/packem_shared/createTransformFile-BlttN909.js +0 -1
- package/dist/packem_shared/createTransformFile-CJXLJEfg.js +0 -1
- package/dist/packem_shared/createTransformMetadata-BImjFF_i.js +0 -1
- package/dist/packem_shared/createTusAdapter-CIQM8UR2.js +0 -1
- package/dist/packem_shared/createTusUpload-DiGPefD0.js +0 -1
- package/dist/packem_shared/createUpload-zv3qcpf1.js +0 -1
- package/dist/packem_shared/createUploader-DzBPRYBP.js +0 -1
- package/dist/packem_shared/parseApiError-CUagSahh.js +0 -1
- package/dist/packem_shared/useBatchDeleteFiles-ASYuAVXn.js +0 -1
- package/dist/packem_shared/useBatchDeleteFiles-KthW4bon.js +0 -1
- package/dist/packem_shared/useBatchUpload-DQPzqa6X.js +0 -1
- package/dist/packem_shared/useChunkedRestUpload-ByEGSmgy.js +0 -1
- package/dist/packem_shared/useChunkedRestUpload-DmXiSpyb.js +0 -1
- package/dist/packem_shared/useDeleteFile-CND-6aNW.js +0 -1
- package/dist/packem_shared/useDeleteFile-CZUMjbYV.js +0 -1
- package/dist/packem_shared/useFileInput-Dvy2fNU7.js +0 -1
- package/dist/packem_shared/useFileInput-hIbzJ_JN.js +0 -1
- package/dist/packem_shared/useGetFile-CuST4rUN.js +0 -1
- package/dist/packem_shared/useGetFile-DvgluPgA.js +0 -1
- package/dist/packem_shared/useGetFileList-BiYDlEAl.js +0 -1
- package/dist/packem_shared/useGetFileList-D0tKDYAc.js +0 -1
- package/dist/packem_shared/useGetFileMeta-C2U1PExr.js +0 -1
- package/dist/packem_shared/useGetFileMeta-Ekre98Sg.js +0 -1
- package/dist/packem_shared/useHeadFile-CCu61b-B.js +0 -1
- package/dist/packem_shared/usePatchChunk-BO3S0Tx4.js +0 -1
- package/dist/packem_shared/usePatchChunk-DoKsCbBH.js +0 -1
- package/dist/packem_shared/usePutFile-B6cFjClD.js +0 -1
- package/dist/packem_shared/usePutFile-bQl10v42.js +0 -1
- package/dist/packem_shared/useTransformFile-DmfsqTjp.js +0 -1
- package/dist/packem_shared/useTransformFile-weII4bx_.js +0 -1
- package/dist/packem_shared/useTransformMetadata-DK1561-K.js +0 -1
- package/dist/react/types.d.ts +0 -65
- package/dist/react/use-abort-all.d.ts +0 -16
- package/dist/react/use-abort-batch.d.ts +0 -16
- package/dist/react/use-abort-item.d.ts +0 -16
- package/dist/react/use-all-abort-listener.d.ts +0 -14
- package/dist/react/use-batch-cancelled-listener.d.ts +0 -14
- package/dist/react/use-batch-delete-files.d.ts +0 -32
- package/dist/react/use-batch-error-listener.d.ts +0 -14
- package/dist/react/use-batch-finalize-listener.d.ts +0 -15
- package/dist/react/use-batch-finish-listener.d.ts +0 -14
- package/dist/react/use-batch-progress-listener.d.ts +0 -14
- package/dist/react/use-batch-retry.d.ts +0 -16
- package/dist/react/use-batch-start-listener.d.ts +0 -14
- package/dist/react/use-batch-upload.d.ts +0 -42
- package/dist/react/use-chunked-rest-upload.d.ts +0 -55
- package/dist/react/use-delete-file.d.ts +0 -25
- package/dist/react/use-file-input.d.ts +0 -32
- package/dist/react/use-get-file-list.d.ts +0 -46
- package/dist/react/use-get-file-meta.d.ts +0 -29
- package/dist/react/use-get-file.d.ts +0 -34
- package/dist/react/use-head-file.d.ts +0 -49
- package/dist/react/use-multipart-upload.d.ts +0 -35
- package/dist/react/use-paste-upload.d.ts +0 -20
- package/dist/react/use-patch-chunk.d.ts +0 -29
- package/dist/react/use-put-file.d.ts +0 -32
- package/dist/react/use-retry-listener.d.ts +0 -15
- package/dist/react/use-retry.d.ts +0 -16
- package/dist/react/use-transform-file.d.ts +0 -48
- package/dist/react/use-transform-metadata.d.ts +0 -33
- package/dist/react/use-tus-upload.d.ts +0 -55
- package/dist/react/use-upload.d.ts +0 -69
- package/dist/solid/create-abort-all.d.ts +0 -8
- package/dist/solid/create-abort-batch.d.ts +0 -8
- package/dist/solid/create-abort-item.d.ts +0 -8
- package/dist/solid/create-all-abort-listener.d.ts +0 -7
- package/dist/solid/create-batch-cancelled-listener.d.ts +0 -7
- package/dist/solid/create-batch-delete-files.d.ts +0 -29
- package/dist/solid/create-batch-error-listener.d.ts +0 -7
- package/dist/solid/create-batch-finalize-listener.d.ts +0 -7
- package/dist/solid/create-batch-finish-listener.d.ts +0 -7
- package/dist/solid/create-batch-progress-listener.d.ts +0 -7
- package/dist/solid/create-batch-retry.d.ts +0 -8
- package/dist/solid/create-batch-start-listener.d.ts +0 -7
- package/dist/solid/create-batch-upload.d.ts +0 -43
- package/dist/solid/create-chunked-rest-upload.d.ts +0 -56
- package/dist/solid/create-delete-file.d.ts +0 -22
- package/dist/solid/create-file-input.d.ts +0 -20
- package/dist/solid/create-get-file-list.d.ts +0 -46
- package/dist/solid/create-get-file-meta.d.ts +0 -29
- package/dist/solid/create-get-file.d.ts +0 -38
- package/dist/solid/create-head-file.d.ts +0 -46
- package/dist/solid/create-multipart-upload.d.ts +0 -36
- package/dist/solid/create-paste-upload.d.ts +0 -11
- package/dist/solid/create-patch-chunk.d.ts +0 -26
- package/dist/solid/create-put-file.d.ts +0 -29
- package/dist/solid/create-retry-listener.d.ts +0 -7
- package/dist/solid/create-retry.d.ts +0 -8
- package/dist/solid/create-transform-file.d.ts +0 -45
- package/dist/solid/create-transform-metadata.d.ts +0 -30
- package/dist/solid/create-tus-upload.d.ts +0 -56
- package/dist/solid/create-upload.d.ts +0 -70
- package/dist/svelte/create-abort-all.d.ts +0 -8
- package/dist/svelte/create-abort-batch.d.ts +0 -8
- package/dist/svelte/create-abort-item.d.ts +0 -8
- package/dist/svelte/create-all-abort-listener.d.ts +0 -7
- package/dist/svelte/create-batch-cancelled-listener.d.ts +0 -7
- package/dist/svelte/create-batch-delete-files.d.ts +0 -29
- package/dist/svelte/create-batch-error-listener.d.ts +0 -7
- package/dist/svelte/create-batch-finalize-listener.d.ts +0 -7
- package/dist/svelte/create-batch-finish-listener.d.ts +0 -7
- package/dist/svelte/create-batch-progress-listener.d.ts +0 -7
- package/dist/svelte/create-batch-retry.d.ts +0 -8
- package/dist/svelte/create-batch-start-listener.d.ts +0 -7
- package/dist/svelte/create-batch-upload.d.ts +0 -23
- package/dist/svelte/create-chunked-rest-upload.d.ts +0 -56
- package/dist/svelte/create-delete-file.d.ts +0 -26
- package/dist/svelte/create-file-input.d.ts +0 -19
- package/dist/svelte/create-get-file-list.d.ts +0 -43
- package/dist/svelte/create-get-file-meta.d.ts +0 -26
- package/dist/svelte/create-get-file.d.ts +0 -41
- package/dist/svelte/create-head-file.d.ts +0 -46
- package/dist/svelte/create-multipart-upload.d.ts +0 -36
- package/dist/svelte/create-paste-upload.d.ts +0 -11
- package/dist/svelte/create-patch-chunk.d.ts +0 -26
- package/dist/svelte/create-put-file.d.ts +0 -29
- package/dist/svelte/create-retry-listener.d.ts +0 -7
- package/dist/svelte/create-retry.d.ts +0 -8
- package/dist/svelte/create-transform-file.d.ts +0 -45
- package/dist/svelte/create-transform-metadata.d.ts +0 -30
- package/dist/svelte/create-tus-upload.d.ts +0 -56
- package/dist/svelte/create-upload.d.ts +0 -68
- package/dist/vue/use-abort-all.d.ts +0 -16
- package/dist/vue/use-abort-batch.d.ts +0 -16
- package/dist/vue/use-abort-item.d.ts +0 -16
- package/dist/vue/use-all-abort-listener.d.ts +0 -14
- package/dist/vue/use-batch-cancelled-listener.d.ts +0 -14
- package/dist/vue/use-batch-delete-files.d.ts +0 -29
- package/dist/vue/use-batch-error-listener.d.ts +0 -14
- package/dist/vue/use-batch-finalize-listener.d.ts +0 -15
- package/dist/vue/use-batch-finish-listener.d.ts +0 -14
- package/dist/vue/use-batch-progress-listener.d.ts +0 -14
- package/dist/vue/use-batch-retry.d.ts +0 -16
- package/dist/vue/use-batch-start-listener.d.ts +0 -14
- package/dist/vue/use-batch-upload.d.ts +0 -43
- package/dist/vue/use-chunked-rest-upload.d.ts +0 -56
- package/dist/vue/use-delete-file.d.ts +0 -22
- package/dist/vue/use-file-input.d.ts +0 -33
- package/dist/vue/use-get-file-list.d.ts +0 -43
- package/dist/vue/use-get-file-meta.d.ts +0 -26
- package/dist/vue/use-get-file.d.ts +0 -35
- package/dist/vue/use-head-file.d.ts +0 -46
- package/dist/vue/use-multipart-upload.d.ts +0 -36
- package/dist/vue/use-paste-upload.d.ts +0 -21
- package/dist/vue/use-patch-chunk.d.ts +0 -26
- package/dist/vue/use-put-file.d.ts +0 -29
- package/dist/vue/use-retry-listener.d.ts +0 -15
- package/dist/vue/use-retry.d.ts +0 -16
- package/dist/vue/use-transform-file.d.ts +0 -45
- package/dist/vue/use-transform-metadata.d.ts +0 -30
- package/dist/vue/use-tus-upload.d.ts +0 -56
- package/dist/vue/use-upload.d.ts +0 -68
package/dist/solid/index.d.ts
CHANGED
|
@@ -1,60 +1,690 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
1
|
+
import { c as UploadItem, B as BatchState, U as UploadResult, F as FileMeta, g as UploadMethod } from "../packem_shared/uploader.d-DsC50BbX.js";
|
|
2
|
+
import { Accessor } from 'solid-js';
|
|
3
|
+
import { QueryClient } from '@tanstack/solid-query';
|
|
4
|
+
interface CreateAbortAllOptions {
|
|
5
|
+
endpoint: string;
|
|
6
|
+
metadata?: Record<string, string>;
|
|
7
|
+
}
|
|
8
|
+
interface CreateAbortAllReturn {
|
|
9
|
+
abortAll: () => void;
|
|
10
|
+
}
|
|
11
|
+
declare const createAbortAll: (options: CreateAbortAllOptions) => CreateAbortAllReturn;
|
|
12
|
+
interface CreateAbortBatchOptions {
|
|
13
|
+
endpoint: string;
|
|
14
|
+
metadata?: Record<string, string>;
|
|
15
|
+
}
|
|
16
|
+
interface CreateAbortBatchReturn {
|
|
17
|
+
abortBatch: (batchId: string) => void;
|
|
18
|
+
}
|
|
19
|
+
declare const createAbortBatch: (options: CreateAbortBatchOptions) => CreateAbortBatchReturn;
|
|
20
|
+
interface CreateAbortItemOptions {
|
|
21
|
+
endpoint: string;
|
|
22
|
+
metadata?: Record<string, string>;
|
|
23
|
+
}
|
|
24
|
+
interface CreateAbortItemReturn {
|
|
25
|
+
abortItem: (id: string) => void;
|
|
26
|
+
}
|
|
27
|
+
declare const createAbortItem: (options: CreateAbortItemOptions) => CreateAbortItemReturn;
|
|
28
|
+
interface CreateAllAbortListenerOptions {
|
|
29
|
+
endpoint: string;
|
|
30
|
+
metadata?: Record<string, string>;
|
|
31
|
+
onAbort: (item: UploadItem) => void;
|
|
32
|
+
}
|
|
33
|
+
declare const createAllAbortListener: (options: CreateAllAbortListenerOptions) => void;
|
|
34
|
+
interface CreateBatchCancelledListenerOptions {
|
|
35
|
+
endpoint: string;
|
|
36
|
+
metadata?: Record<string, string>;
|
|
37
|
+
onBatchCancelled: (batch: BatchState) => void;
|
|
38
|
+
}
|
|
39
|
+
declare const createBatchCancelledListener: (options: CreateBatchCancelledListenerOptions) => void;
|
|
40
|
+
interface BatchDeleteResult {
|
|
41
|
+
/** Number of files that failed to delete */
|
|
42
|
+
failed?: number;
|
|
43
|
+
/** Number of files successfully deleted */
|
|
44
|
+
successful?: number;
|
|
45
|
+
}
|
|
46
|
+
interface CreateBatchDeleteFilesOptions {
|
|
47
|
+
/** Base endpoint URL for file operations */
|
|
48
|
+
endpoint: string;
|
|
49
|
+
}
|
|
50
|
+
interface CreateBatchDeleteFilesReturn {
|
|
51
|
+
/** Delete multiple files by IDs */
|
|
52
|
+
batchDeleteFiles: (ids: string[]) => Promise<BatchDeleteResult>;
|
|
53
|
+
/** Last request error, if any */
|
|
54
|
+
error: Accessor<Error | undefined>;
|
|
55
|
+
/** Whether a request is currently in progress */
|
|
56
|
+
isLoading: Accessor<boolean>;
|
|
57
|
+
/** Reset mutation state */
|
|
58
|
+
reset: () => void;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Solid.js primitive for batch deleting files using TanStack Query.
|
|
62
|
+
* Supports both query parameter and JSON body methods.
|
|
63
|
+
* Automatically invalidates related queries.
|
|
64
|
+
* @param options Hook configuration options
|
|
65
|
+
* @returns Batch file deletion functions and state signals
|
|
66
|
+
*/
|
|
67
|
+
declare const createBatchDeleteFiles: (options: CreateBatchDeleteFilesOptions) => CreateBatchDeleteFilesReturn;
|
|
68
|
+
interface CreateBatchErrorListenerOptions {
|
|
69
|
+
endpoint: string;
|
|
70
|
+
metadata?: Record<string, string>;
|
|
71
|
+
onBatchError: (batch: BatchState) => void;
|
|
72
|
+
}
|
|
73
|
+
declare const createBatchErrorListener: (options: CreateBatchErrorListenerOptions) => void;
|
|
74
|
+
interface CreateBatchFinalizeListenerOptions {
|
|
75
|
+
endpoint: string;
|
|
76
|
+
metadata?: Record<string, string>;
|
|
77
|
+
onBatchFinalize: (batch: BatchState) => void;
|
|
78
|
+
}
|
|
79
|
+
declare const createBatchFinalizeListener: (options: CreateBatchFinalizeListenerOptions) => void;
|
|
80
|
+
interface CreateBatchFinishListenerOptions {
|
|
81
|
+
endpoint: string;
|
|
82
|
+
metadata?: Record<string, string>;
|
|
83
|
+
onBatchFinish: (batch: BatchState) => void;
|
|
84
|
+
}
|
|
85
|
+
declare const createBatchFinishListener: (options: CreateBatchFinishListenerOptions) => void;
|
|
86
|
+
interface CreateBatchProgressListenerOptions {
|
|
87
|
+
endpoint: string;
|
|
88
|
+
metadata?: Record<string, string>;
|
|
89
|
+
onBatchProgress: (batch: BatchState) => void;
|
|
90
|
+
}
|
|
91
|
+
declare const createBatchProgressListener: (options: CreateBatchProgressListenerOptions) => void;
|
|
92
|
+
interface CreateBatchRetryOptions {
|
|
93
|
+
endpoint: string;
|
|
94
|
+
metadata?: Record<string, string>;
|
|
95
|
+
}
|
|
96
|
+
interface CreateBatchRetryReturn {
|
|
97
|
+
retryBatch: (batchId: string) => void;
|
|
98
|
+
}
|
|
99
|
+
declare const createBatchRetry: (options: CreateBatchRetryOptions) => CreateBatchRetryReturn;
|
|
100
|
+
interface CreateBatchStartListenerOptions {
|
|
101
|
+
endpoint: string;
|
|
102
|
+
metadata?: Record<string, string>;
|
|
103
|
+
onBatchStart: (batch: BatchState) => void;
|
|
104
|
+
}
|
|
105
|
+
declare const createBatchStartListener: (options: CreateBatchStartListenerOptions) => void;
|
|
106
|
+
interface CreateBatchUploadOptions {
|
|
107
|
+
/** Upload endpoint URL */
|
|
108
|
+
endpoint: string;
|
|
109
|
+
/** Additional metadata to include with the upload */
|
|
110
|
+
metadata?: Record<string, string>;
|
|
111
|
+
/** Callback when batch fails */
|
|
112
|
+
onError?: (error: Error, batchId: string) => void;
|
|
113
|
+
/** Callback when batch progress updates */
|
|
114
|
+
onProgress?: (progress: number, batchId: string) => void;
|
|
115
|
+
/** Callback when batch starts */
|
|
116
|
+
onStart?: (batchId: string) => void;
|
|
117
|
+
/** Callback when batch completes successfully */
|
|
118
|
+
onSuccess?: (results: UploadResult[], batchId: string) => void;
|
|
119
|
+
}
|
|
120
|
+
interface CreateBatchUploadReturn {
|
|
121
|
+
/** Abort a specific batch */
|
|
122
|
+
abortBatch: (batchId: string) => void;
|
|
123
|
+
/** Number of completed items in current batch */
|
|
124
|
+
completedCount: Accessor<number>;
|
|
125
|
+
/** Last batch error, if any */
|
|
126
|
+
error: Accessor<Error | undefined>;
|
|
127
|
+
/** Number of failed items in current batch */
|
|
128
|
+
errorCount: Accessor<number>;
|
|
129
|
+
/** Whether a batch is currently uploading */
|
|
130
|
+
isUploading: Accessor<boolean>;
|
|
131
|
+
/** All upload items in current batch */
|
|
132
|
+
items: Accessor<UploadItem[]>;
|
|
133
|
+
/** Current batch progress (0-100) */
|
|
134
|
+
progress: Accessor<number>;
|
|
135
|
+
/** Reset batch state */
|
|
136
|
+
reset: () => void;
|
|
137
|
+
/** Upload multiple files as a batch */
|
|
138
|
+
uploadBatch: (files: File[]) => string[];
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Solid.js primitive for batch file uploads using multipart/form-data.
|
|
142
|
+
* @param options Upload configuration options
|
|
143
|
+
* @returns Batch upload functions and state signals
|
|
144
|
+
*/
|
|
145
|
+
declare const createBatchUpload: (options: CreateBatchUploadOptions) => CreateBatchUploadReturn;
|
|
146
|
+
interface CreateChunkedRestUploadOptions {
|
|
147
|
+
/** Chunk size for chunked REST uploads (default: 5MB) */
|
|
148
|
+
chunkSize?: number;
|
|
149
|
+
/** Chunked REST upload endpoint URL */
|
|
150
|
+
endpoint: string;
|
|
151
|
+
/** Maximum number of retry attempts */
|
|
152
|
+
maxRetries?: number;
|
|
153
|
+
/** Additional metadata to include with the upload */
|
|
154
|
+
metadata?: Record<string, string>;
|
|
155
|
+
/** Callback when upload fails */
|
|
156
|
+
onError?: (error: Error) => void;
|
|
157
|
+
/** Callback when upload is paused */
|
|
158
|
+
onPause?: () => void;
|
|
159
|
+
/** Callback when upload progress updates */
|
|
160
|
+
onProgress?: (progress: number, offset: number) => void;
|
|
161
|
+
/** Callback when upload is resumed */
|
|
162
|
+
onResume?: () => void;
|
|
163
|
+
/** Callback when upload starts */
|
|
164
|
+
onStart?: () => void;
|
|
165
|
+
/** Callback when upload completes successfully */
|
|
166
|
+
onSuccess?: (file: UploadResult) => void;
|
|
167
|
+
/** Enable automatic retry on failure */
|
|
168
|
+
retry?: boolean;
|
|
169
|
+
}
|
|
170
|
+
interface CreateChunkedRestUploadReturn {
|
|
171
|
+
/** Abort the current upload */
|
|
172
|
+
abort: () => void;
|
|
173
|
+
/** Last upload error, if any */
|
|
174
|
+
error: Accessor<Error | undefined>;
|
|
175
|
+
/** Whether the upload is paused */
|
|
176
|
+
isPaused: Accessor<boolean>;
|
|
177
|
+
/** Whether an upload is currently in progress */
|
|
178
|
+
isUploading: Accessor<boolean>;
|
|
179
|
+
/** Current upload offset (bytes uploaded) */
|
|
180
|
+
offset: Accessor<number>;
|
|
181
|
+
/** Pause the current upload */
|
|
182
|
+
pause: () => void;
|
|
183
|
+
/** Current upload progress (0-100) */
|
|
184
|
+
progress: Accessor<number>;
|
|
185
|
+
/** Reset upload state */
|
|
186
|
+
reset: () => void;
|
|
187
|
+
/** Last upload result, if any */
|
|
188
|
+
result: Accessor<UploadResult | undefined>;
|
|
189
|
+
/** Resume a paused upload */
|
|
190
|
+
resume: () => Promise<void>;
|
|
191
|
+
/** Upload a file using chunked REST protocol */
|
|
192
|
+
upload: (file: File) => Promise<UploadResult>;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Solid.js primitive for chunked REST file uploads.
|
|
196
|
+
* @param options Upload configuration options
|
|
197
|
+
* @returns Upload functions and state signals
|
|
198
|
+
*/
|
|
199
|
+
declare const createChunkedRestUpload: (options: CreateChunkedRestUploadOptions) => CreateChunkedRestUploadReturn;
|
|
200
|
+
interface CreateDeleteFileOptions {
|
|
201
|
+
/** Base endpoint URL for file operations */
|
|
202
|
+
endpoint: string;
|
|
203
|
+
}
|
|
204
|
+
interface CreateDeleteFileReturn {
|
|
205
|
+
/** Delete a file by ID */
|
|
206
|
+
deleteFile: (id: string) => Promise<void>;
|
|
207
|
+
/** Last request error, if any */
|
|
208
|
+
error: Accessor<Error | undefined>;
|
|
209
|
+
/** Whether a request is currently in progress */
|
|
210
|
+
isLoading: Accessor<boolean>;
|
|
211
|
+
/** Reset mutation state */
|
|
212
|
+
reset: () => void;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Solid.js primitive for deleting a single file using TanStack Query.
|
|
216
|
+
* Automatically invalidates related queries.
|
|
217
|
+
* @param options Hook configuration options
|
|
218
|
+
* @returns File deletion functions and state signals
|
|
219
|
+
*/
|
|
220
|
+
declare const createDeleteFile: (options: CreateDeleteFileOptions) => CreateDeleteFileReturn;
|
|
221
|
+
interface CreateFileInputOptions {
|
|
222
|
+
accept?: string;
|
|
223
|
+
multiple?: boolean;
|
|
224
|
+
onFilesSelected?: (files: File[]) => void;
|
|
225
|
+
}
|
|
226
|
+
interface CreateFileInputReturn {
|
|
227
|
+
files: Accessor<File[]>;
|
|
228
|
+
handleDragLeave: (event: DragEvent) => void;
|
|
229
|
+
handleDragOver: (event: DragEvent) => void;
|
|
230
|
+
handleDrop: (event: DragEvent) => void;
|
|
231
|
+
handleFileChange: (event: Event) => void;
|
|
232
|
+
inputRef: {
|
|
233
|
+
current: HTMLInputElement | undefined;
|
|
234
|
+
};
|
|
235
|
+
isDragging: Accessor<boolean>;
|
|
236
|
+
openFileDialog: () => void;
|
|
237
|
+
reset: () => void;
|
|
238
|
+
}
|
|
239
|
+
declare const createFileInput: (options?: CreateFileInputOptions) => CreateFileInputReturn;
|
|
240
|
+
interface CreateGetFileOptions {
|
|
241
|
+
/** Whether to enable the query */
|
|
242
|
+
enabled?: Accessor<boolean> | boolean;
|
|
243
|
+
/** Base endpoint URL for file operations */
|
|
244
|
+
endpoint: string;
|
|
245
|
+
/** File ID to fetch */
|
|
246
|
+
id: Accessor<string> | string;
|
|
247
|
+
/** Callback when request fails */
|
|
248
|
+
onError?: (error: Error) => void;
|
|
249
|
+
/** Callback when request succeeds */
|
|
250
|
+
onSuccess?: (data: Blob, meta: FileMeta | undefined) => void;
|
|
251
|
+
/** Optional QueryClient to use */
|
|
252
|
+
queryClient?: QueryClient;
|
|
253
|
+
/** Transformation parameters for media files */
|
|
254
|
+
transform?: Accessor<Record<string, string | number | boolean> | undefined> | Record<string, string | number | boolean>;
|
|
255
|
+
}
|
|
256
|
+
interface CreateGetFileReturn {
|
|
257
|
+
/** File data as Blob */
|
|
258
|
+
data: Accessor<Blob | undefined>;
|
|
259
|
+
/** Last request error, if any */
|
|
260
|
+
error: Accessor<Error | undefined>;
|
|
261
|
+
/** Whether a request is currently in progress */
|
|
262
|
+
isLoading: Accessor<boolean>;
|
|
263
|
+
/** File metadata from response headers */
|
|
264
|
+
meta: Accessor<FileMeta | undefined>;
|
|
265
|
+
/** Refetch the file */
|
|
266
|
+
refetch: () => void;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Solid.js primitive for fetching/downloading files using TanStack Query.
|
|
270
|
+
* Supports optional transformation parameters for media files.
|
|
271
|
+
* @param options Hook configuration options
|
|
272
|
+
* @returns File fetching functions and state signals
|
|
273
|
+
*/
|
|
274
|
+
declare const createGetFile: (options: CreateGetFileOptions) => CreateGetFileReturn;
|
|
275
|
+
interface FileListResponse {
|
|
276
|
+
data: FileMeta[];
|
|
277
|
+
meta?: {
|
|
278
|
+
firstPage?: number;
|
|
279
|
+
firstPageUrl?: string;
|
|
280
|
+
lastPage?: number;
|
|
281
|
+
lastPageUrl?: string;
|
|
282
|
+
nextPageUrl?: string;
|
|
283
|
+
page?: number;
|
|
284
|
+
perPage?: number;
|
|
285
|
+
previousPageUrl?: string;
|
|
286
|
+
total?: number;
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
interface CreateGetFileListOptions {
|
|
290
|
+
/** Whether to enable the query */
|
|
291
|
+
enabled?: Accessor<boolean> | boolean;
|
|
292
|
+
/** Base endpoint URL for file operations */
|
|
293
|
+
endpoint: string;
|
|
294
|
+
/** Maximum number of elements to retrieve */
|
|
295
|
+
limit?: Accessor<number> | number;
|
|
296
|
+
/** Page number for pagination */
|
|
297
|
+
page?: Accessor<number> | number;
|
|
298
|
+
/** Optional QueryClient to use */
|
|
299
|
+
queryClient?: QueryClient;
|
|
300
|
+
}
|
|
301
|
+
interface CreateGetFileListReturn {
|
|
302
|
+
/** File list data */
|
|
303
|
+
data: Accessor<FileListResponse | undefined>;
|
|
304
|
+
/** Last request error, if any */
|
|
305
|
+
error: Accessor<Error | undefined>;
|
|
306
|
+
/** Whether a request is currently in progress */
|
|
307
|
+
isLoading: Accessor<boolean>;
|
|
308
|
+
/** Refetch the file list */
|
|
309
|
+
refetch: () => void;
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Solid.js primitive for fetching a list of files using TanStack Query.
|
|
313
|
+
* Supports pagination via query parameters.
|
|
314
|
+
* @param options Hook configuration options
|
|
315
|
+
* @returns File list fetching functions and state signals
|
|
316
|
+
*/
|
|
317
|
+
declare const createGetFileList: (options: CreateGetFileListOptions) => CreateGetFileListReturn;
|
|
318
|
+
interface CreateGetFileMetaOptions {
|
|
319
|
+
/** Whether to enable the query */
|
|
320
|
+
enabled?: Accessor<boolean> | boolean;
|
|
321
|
+
/** Base endpoint URL for file operations */
|
|
322
|
+
endpoint: string;
|
|
323
|
+
/** File ID to fetch metadata for */
|
|
324
|
+
id: Accessor<string> | string;
|
|
325
|
+
/** Optional QueryClient to use */
|
|
326
|
+
queryClient?: QueryClient;
|
|
327
|
+
}
|
|
328
|
+
interface CreateGetFileMetaReturn {
|
|
329
|
+
/** File metadata */
|
|
330
|
+
data: Accessor<FileMeta | undefined>;
|
|
331
|
+
/** Last request error, if any */
|
|
332
|
+
error: Accessor<Error | undefined>;
|
|
333
|
+
/** Whether a request is currently in progress */
|
|
334
|
+
isLoading: Accessor<boolean>;
|
|
335
|
+
/** Refetch the file metadata */
|
|
336
|
+
refetch: () => void;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Solid.js primitive for fetching file metadata using TanStack Query.
|
|
340
|
+
* @param options Hook configuration options
|
|
341
|
+
* @returns File metadata fetching functions and state signals
|
|
342
|
+
*/
|
|
343
|
+
declare const createGetFileMeta: (options: CreateGetFileMetaOptions) => CreateGetFileMetaReturn;
|
|
344
|
+
interface FileHeadMetadata {
|
|
345
|
+
/** Whether this is a chunked upload session */
|
|
346
|
+
chunkedUpload?: boolean;
|
|
347
|
+
/** Content length in bytes */
|
|
348
|
+
contentLength?: number;
|
|
349
|
+
/** Content type */
|
|
350
|
+
contentType?: string;
|
|
351
|
+
/** Entity tag for caching */
|
|
352
|
+
etag?: string;
|
|
353
|
+
/** Last modified date */
|
|
354
|
+
lastModified?: string;
|
|
355
|
+
/** Received chunk offsets (chunked uploads) */
|
|
356
|
+
receivedChunks?: number[];
|
|
357
|
+
/** Whether upload is complete (chunked uploads) */
|
|
358
|
+
uploadComplete?: boolean;
|
|
359
|
+
/** Upload expiration date */
|
|
360
|
+
uploadExpires?: string;
|
|
361
|
+
/** Upload offset for chunked uploads */
|
|
362
|
+
uploadOffset?: number;
|
|
363
|
+
}
|
|
364
|
+
interface CreateHeadFileOptions {
|
|
365
|
+
/** Whether to enable the query */
|
|
366
|
+
enabled?: Accessor<boolean> | boolean;
|
|
367
|
+
/** Base endpoint URL for file operations */
|
|
368
|
+
endpoint: string;
|
|
369
|
+
/** File ID to fetch metadata for */
|
|
370
|
+
id: Accessor<string> | string;
|
|
371
|
+
}
|
|
372
|
+
interface CreateHeadFileReturn {
|
|
373
|
+
/** File metadata from HEAD request */
|
|
374
|
+
data: Accessor<FileHeadMetadata | undefined>;
|
|
375
|
+
/** Last request error, if any */
|
|
376
|
+
error: Accessor<Error | undefined>;
|
|
377
|
+
/** Whether a request is currently in progress */
|
|
378
|
+
isLoading: Accessor<boolean>;
|
|
379
|
+
/** Refetch the file metadata */
|
|
380
|
+
refetch: () => void;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Solid.js primitive for fetching file metadata via HEAD request using TanStack Query.
|
|
384
|
+
* Useful for checking upload progress and file status without downloading.
|
|
385
|
+
* @param options Hook configuration options
|
|
386
|
+
* @returns File HEAD request functions and state signals
|
|
387
|
+
*/
|
|
388
|
+
declare const createHeadFile: (options: CreateHeadFileOptions) => CreateHeadFileReturn;
|
|
389
|
+
interface CreateMultipartUploadOptions {
|
|
390
|
+
/** Upload endpoint URL */
|
|
391
|
+
endpoint: string;
|
|
392
|
+
/** Additional metadata to include with the upload */
|
|
393
|
+
metadata?: Record<string, string>;
|
|
394
|
+
/** Callback when upload fails */
|
|
395
|
+
onError?: (error: Error) => void;
|
|
396
|
+
/** Callback when upload progress updates */
|
|
397
|
+
onProgress?: (progress: number) => void;
|
|
398
|
+
/** Callback when upload starts */
|
|
399
|
+
onStart?: () => void;
|
|
400
|
+
/** Callback when upload completes successfully */
|
|
401
|
+
onSuccess?: (file: UploadResult) => void;
|
|
402
|
+
}
|
|
403
|
+
interface CreateMultipartUploadReturn {
|
|
404
|
+
/** Last upload error, if any */
|
|
405
|
+
error: Accessor<Error | undefined>;
|
|
406
|
+
/** Whether an upload is currently in progress */
|
|
407
|
+
isUploading: Accessor<boolean>;
|
|
408
|
+
/** Current upload progress (0-100) */
|
|
409
|
+
progress: Accessor<number>;
|
|
410
|
+
/** Reset upload state */
|
|
411
|
+
reset: () => void;
|
|
412
|
+
/** Last upload result, if any */
|
|
413
|
+
result: Accessor<UploadResult | undefined>;
|
|
414
|
+
/** Upload a file using multipart/form-data */
|
|
415
|
+
upload: (file: File) => Promise<UploadResult>;
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Solid.js primitive for multipart/form-data file uploads using rpldy uploader core.
|
|
419
|
+
* @param options Upload configuration options
|
|
420
|
+
* @returns Upload functions and state signals
|
|
421
|
+
*/
|
|
422
|
+
declare const createMultipartUpload: (options: CreateMultipartUploadOptions) => CreateMultipartUploadReturn;
|
|
423
|
+
interface CreatePasteUploadOptions {
|
|
424
|
+
filter?: (file: File) => boolean;
|
|
425
|
+
onFilesPasted?: (files: File[]) => void;
|
|
426
|
+
}
|
|
427
|
+
interface CreatePasteUploadReturn {
|
|
428
|
+
handlePaste: (event: ClipboardEvent) => void;
|
|
429
|
+
pastedFiles: Accessor<File[]>;
|
|
430
|
+
reset: () => void;
|
|
431
|
+
}
|
|
432
|
+
declare const createPasteUpload: (options?: CreatePasteUploadOptions) => CreatePasteUploadReturn;
|
|
433
|
+
interface CreatePatchChunkOptions {
|
|
434
|
+
/** Base endpoint URL for file operations */
|
|
435
|
+
endpoint: string;
|
|
436
|
+
}
|
|
437
|
+
interface CreatePatchChunkReturn {
|
|
438
|
+
/** Last upload result, if any */
|
|
439
|
+
data: Accessor<UploadResult | undefined>;
|
|
440
|
+
/** Last request error, if any */
|
|
441
|
+
error: Accessor<Error | undefined>;
|
|
442
|
+
/** Whether a request is currently in progress */
|
|
443
|
+
isLoading: Accessor<boolean>;
|
|
444
|
+
/** Upload a chunk for chunked uploads */
|
|
445
|
+
patchChunk: (id: string, chunk: Blob, offset: number, checksum?: string) => Promise<UploadResult>;
|
|
446
|
+
/** Reset mutation state */
|
|
447
|
+
reset: () => void;
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Solid.js primitive for uploading chunks in chunked uploads using TanStack Query.
|
|
451
|
+
* Requires X-Chunk-Offset header and chunk data.
|
|
452
|
+
* Automatically invalidates related queries when upload is complete.
|
|
453
|
+
* @param options Hook configuration options
|
|
454
|
+
* @returns Chunk upload functions and state signals
|
|
455
|
+
*/
|
|
456
|
+
declare const createPatchChunk: (options: CreatePatchChunkOptions) => CreatePatchChunkReturn;
|
|
457
|
+
interface CreatePutFileOptions {
|
|
458
|
+
/** Base endpoint URL for file operations */
|
|
459
|
+
endpoint: string;
|
|
460
|
+
/** Callback when upload progress updates */
|
|
461
|
+
onProgress?: (progress: number) => void;
|
|
462
|
+
}
|
|
463
|
+
interface CreatePutFileReturn {
|
|
464
|
+
/** Last upload result, if any */
|
|
465
|
+
data: Accessor<UploadResult | undefined>;
|
|
466
|
+
/** Last request error, if any */
|
|
467
|
+
error: Accessor<Error | undefined>;
|
|
468
|
+
/** Whether a request is currently in progress */
|
|
469
|
+
isLoading: Accessor<boolean>;
|
|
470
|
+
/** Current upload progress (0-100) */
|
|
471
|
+
progress: Accessor<number>;
|
|
472
|
+
/** Create or update a file by ID */
|
|
473
|
+
putFile: (id: string, file: File | Blob) => Promise<UploadResult>;
|
|
474
|
+
/** Reset mutation state */
|
|
475
|
+
reset: () => void;
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Solid.js primitive for creating or updating files via PUT request using TanStack Query.
|
|
479
|
+
* Automatically invalidates related queries.
|
|
480
|
+
* @param options Hook configuration options
|
|
481
|
+
* @returns File PUT functions and state signals
|
|
482
|
+
*/
|
|
483
|
+
declare const createPutFile: (options: CreatePutFileOptions) => CreatePutFileReturn;
|
|
484
|
+
interface CreateRetryOptions {
|
|
485
|
+
endpoint: string;
|
|
486
|
+
metadata?: Record<string, string>;
|
|
487
|
+
}
|
|
488
|
+
interface CreateRetryReturn {
|
|
489
|
+
retryItem: (id: string) => void;
|
|
490
|
+
}
|
|
491
|
+
declare const createRetry: (options: CreateRetryOptions) => CreateRetryReturn;
|
|
492
|
+
interface CreateRetryListenerOptions {
|
|
493
|
+
endpoint: string;
|
|
494
|
+
metadata?: Record<string, string>;
|
|
495
|
+
onRetry: (item: UploadItem) => void;
|
|
496
|
+
}
|
|
497
|
+
declare const createRetryListener: (options: CreateRetryListenerOptions) => void;
|
|
498
|
+
interface TransformOptions {
|
|
499
|
+
/** Additional transformation parameters */
|
|
500
|
+
[key: string]: string | number | boolean | undefined;
|
|
501
|
+
/** Resize fit mode */
|
|
502
|
+
fit?: "cover" | "contain" | "fill" | "inside" | "outside";
|
|
503
|
+
/** Output format (jpeg, png, webp, etc.) */
|
|
504
|
+
format?: string;
|
|
505
|
+
/** Desired height in pixels */
|
|
506
|
+
height?: number;
|
|
507
|
+
/** Quality setting (0-100) */
|
|
508
|
+
quality?: number;
|
|
509
|
+
/** Desired width in pixels */
|
|
510
|
+
width?: number;
|
|
511
|
+
}
|
|
512
|
+
interface CreateTransformFileOptions {
|
|
513
|
+
/** Whether to enable the query */
|
|
514
|
+
enabled?: Accessor<boolean> | boolean;
|
|
515
|
+
/** Base endpoint URL for transform operations */
|
|
516
|
+
endpoint: string;
|
|
517
|
+
/** File ID to transform */
|
|
518
|
+
id: Accessor<string> | string;
|
|
519
|
+
/** Transformation parameters */
|
|
520
|
+
transform: Accessor<TransformOptions> | TransformOptions;
|
|
521
|
+
}
|
|
522
|
+
interface CreateTransformFileReturn {
|
|
523
|
+
/** Transformed file data as Blob */
|
|
524
|
+
data: Accessor<Blob | undefined>;
|
|
525
|
+
/** Last request error, if any */
|
|
526
|
+
error: Accessor<Error | undefined>;
|
|
527
|
+
/** Whether a request is currently in progress */
|
|
528
|
+
isLoading: Accessor<boolean>;
|
|
529
|
+
/** File metadata from response headers */
|
|
530
|
+
meta: Accessor<FileMeta | undefined>;
|
|
531
|
+
/** Refetch the transformed file */
|
|
532
|
+
refetch: () => void;
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* Solid.js primitive for fetching transformed files using TanStack Query.
|
|
536
|
+
* Supports image, video, and audio transformation parameters.
|
|
537
|
+
* @param options Hook configuration options
|
|
538
|
+
* @returns Transform file fetching functions and state signals
|
|
539
|
+
*/
|
|
540
|
+
declare const createTransformFile: (options: CreateTransformFileOptions) => CreateTransformFileReturn;
|
|
541
|
+
interface TransformMetadata {
|
|
542
|
+
/** Available transformation formats */
|
|
543
|
+
formats?: string[];
|
|
544
|
+
/** Supported transformation parameters */
|
|
545
|
+
parameters?: string[];
|
|
546
|
+
}
|
|
547
|
+
interface CreateTransformMetadataOptions {
|
|
548
|
+
/** Whether to enable the query */
|
|
549
|
+
enabled?: Accessor<boolean> | boolean;
|
|
550
|
+
/** Base endpoint URL for transform operations */
|
|
551
|
+
endpoint: string;
|
|
552
|
+
}
|
|
553
|
+
interface CreateTransformMetadataReturn {
|
|
554
|
+
/** Transform metadata */
|
|
555
|
+
data: Accessor<TransformMetadata | undefined>;
|
|
556
|
+
/** Last request error, if any */
|
|
557
|
+
error: Accessor<Error | undefined>;
|
|
558
|
+
/** Whether a request is currently in progress */
|
|
559
|
+
isLoading: Accessor<boolean>;
|
|
560
|
+
/** Refetch the transform metadata */
|
|
561
|
+
refetch: () => void;
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* Solid.js primitive for fetching transformation metadata using TanStack Query.
|
|
565
|
+
* Returns available formats and transformation parameters.
|
|
566
|
+
* @param options Hook configuration options
|
|
567
|
+
* @returns Transform metadata fetching functions and state signals
|
|
568
|
+
*/
|
|
569
|
+
declare const createTransformMetadata: (options: CreateTransformMetadataOptions) => CreateTransformMetadataReturn;
|
|
570
|
+
interface CreateTusUploadOptions {
|
|
571
|
+
/** Chunk size for TUS uploads (default: 1MB) */
|
|
572
|
+
chunkSize?: number;
|
|
573
|
+
/** TUS upload endpoint URL */
|
|
574
|
+
endpoint: string;
|
|
575
|
+
/** Maximum number of retry attempts */
|
|
576
|
+
maxRetries?: number;
|
|
577
|
+
/** Additional metadata to include with the upload */
|
|
578
|
+
metadata?: Record<string, string>;
|
|
579
|
+
/** Callback when upload fails */
|
|
580
|
+
onError?: (error: Error) => void;
|
|
581
|
+
/** Callback when upload is paused */
|
|
582
|
+
onPause?: () => void;
|
|
583
|
+
/** Callback when upload progress updates */
|
|
584
|
+
onProgress?: (progress: number) => void;
|
|
585
|
+
/** Callback when upload is resumed */
|
|
586
|
+
onResume?: () => void;
|
|
587
|
+
/** Callback when upload starts */
|
|
588
|
+
onStart?: () => void;
|
|
589
|
+
/** Callback when upload completes successfully */
|
|
590
|
+
onSuccess?: (file: UploadResult) => void;
|
|
591
|
+
/** Enable automatic retry on failure */
|
|
592
|
+
retry?: boolean;
|
|
593
|
+
}
|
|
594
|
+
interface CreateTusUploadReturn {
|
|
595
|
+
/** Abort the current upload */
|
|
596
|
+
abort: () => void;
|
|
597
|
+
/** Last upload error, if any */
|
|
598
|
+
error: Accessor<Error | undefined>;
|
|
599
|
+
/** Whether the upload is paused */
|
|
600
|
+
isPaused: Accessor<boolean>;
|
|
601
|
+
/** Whether an upload is currently in progress */
|
|
602
|
+
isUploading: Accessor<boolean>;
|
|
603
|
+
/** Current upload offset (bytes uploaded) */
|
|
604
|
+
offset: Accessor<number>;
|
|
605
|
+
/** Pause the current upload */
|
|
606
|
+
pause: () => void;
|
|
607
|
+
/** Current upload progress (0-100) */
|
|
608
|
+
progress: Accessor<number>;
|
|
609
|
+
/** Reset upload state */
|
|
610
|
+
reset: () => void;
|
|
611
|
+
/** Last upload result, if any */
|
|
612
|
+
result: Accessor<UploadResult | undefined>;
|
|
613
|
+
/** Resume a paused upload */
|
|
614
|
+
resume: () => Promise<void>;
|
|
615
|
+
/** Upload a file using TUS protocol */
|
|
616
|
+
upload: (file: File) => Promise<UploadResult>;
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* Solid.js primitive for TUS resumable file uploads.
|
|
620
|
+
* @param options Upload configuration options
|
|
621
|
+
* @returns Upload functions and state signals
|
|
622
|
+
*/
|
|
623
|
+
declare const createTusUpload: (options: CreateTusUploadOptions) => CreateTusUploadReturn;
|
|
624
|
+
interface CreateUploadOptions {
|
|
625
|
+
/** Chunk size for TUS and chunked REST uploads (default: 1MB for TUS, 5MB for chunked REST) */
|
|
626
|
+
chunkSize?: number;
|
|
627
|
+
/** Chunked REST upload endpoint URL */
|
|
628
|
+
endpointChunkedRest?: string;
|
|
629
|
+
/** Multipart upload endpoint URL */
|
|
630
|
+
endpointMultipart?: string;
|
|
631
|
+
/** TUS upload endpoint URL */
|
|
632
|
+
endpointTus?: string;
|
|
633
|
+
/** Maximum number of retry attempts (TUS and chunked REST only) */
|
|
634
|
+
maxRetries?: number;
|
|
635
|
+
/** Additional metadata to include with the upload */
|
|
636
|
+
metadata?: Record<string, string>;
|
|
637
|
+
/** Upload method to use: 'multipart', 'tus', 'chunked-rest', or 'auto'. If undefined, auto-detected based on provided endpoints */
|
|
638
|
+
method?: UploadMethod;
|
|
639
|
+
/** Callback when upload fails */
|
|
640
|
+
onError?: (error: Error) => void;
|
|
641
|
+
/** Callback when upload is paused (TUS and chunked REST only) */
|
|
642
|
+
onPause?: () => void;
|
|
643
|
+
/** Callback when upload progress updates */
|
|
644
|
+
onProgress?: (progress: number) => void;
|
|
645
|
+
/** Callback when upload is resumed (TUS and chunked REST only) */
|
|
646
|
+
onResume?: () => void;
|
|
647
|
+
/** Callback when upload starts */
|
|
648
|
+
onStart?: () => void;
|
|
649
|
+
/** Callback when upload completes successfully */
|
|
650
|
+
onSuccess?: (file: UploadResult) => void;
|
|
651
|
+
/** Enable automatic retry on failure (TUS and chunked REST only) */
|
|
652
|
+
retry?: boolean;
|
|
653
|
+
/** File size threshold for auto-selecting TUS (default: 10MB) */
|
|
654
|
+
tusThreshold?: number;
|
|
655
|
+
}
|
|
656
|
+
interface CreateUploadReturn {
|
|
657
|
+
/** Abort the current upload */
|
|
658
|
+
abort: () => void;
|
|
659
|
+
/** Current upload method being used */
|
|
660
|
+
currentMethod: Accessor<UploadMethod>;
|
|
661
|
+
/** Last upload error, if any */
|
|
662
|
+
error: Accessor<Error | undefined>;
|
|
663
|
+
/** Whether the upload is paused (TUS and chunked REST only) */
|
|
664
|
+
isPaused: Accessor<boolean | undefined>;
|
|
665
|
+
/** Whether an upload is currently in progress */
|
|
666
|
+
isUploading: Accessor<boolean>;
|
|
667
|
+
/** Current upload offset in bytes (TUS and chunked REST only) */
|
|
668
|
+
offset: Accessor<number | undefined>;
|
|
669
|
+
/** Pause the current upload (TUS and chunked REST only) */
|
|
670
|
+
pause: Accessor<(() => void) | undefined>;
|
|
671
|
+
/** Current upload progress (0-100) */
|
|
672
|
+
progress: Accessor<number>;
|
|
673
|
+
/** Reset upload state */
|
|
674
|
+
reset: () => void;
|
|
675
|
+
/** Last upload result, if any */
|
|
676
|
+
result: Accessor<UploadResult | undefined>;
|
|
677
|
+
/** Resume a paused upload (TUS and chunked REST only) */
|
|
678
|
+
resume: Accessor<(() => Promise<void>) | undefined>;
|
|
679
|
+
/** Upload a file using the configured method */
|
|
680
|
+
upload: (file: File) => Promise<UploadResult>;
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* Solid.js primitive for file uploads with automatic method selection.
|
|
684
|
+
* Uses custom uploader implementations for multipart, TUS, and chunked REST.
|
|
685
|
+
* Automatically chooses between methods based on file size and method preference.
|
|
686
|
+
* @param options Upload configuration options
|
|
687
|
+
* @returns Upload functions and state signals
|
|
688
|
+
*/
|
|
689
|
+
declare const createUpload: (options: CreateUploadOptions) => CreateUploadReturn;
|
|
690
|
+
export { type BatchDeleteResult, type CreateAbortAllOptions, type CreateAbortAllReturn, type CreateAbortBatchOptions, type CreateAbortBatchReturn, type CreateAbortItemOptions, type CreateAbortItemReturn, type CreateAllAbortListenerOptions, type CreateBatchCancelledListenerOptions, type CreateBatchDeleteFilesOptions, type CreateBatchDeleteFilesReturn, type CreateBatchErrorListenerOptions, type CreateBatchFinalizeListenerOptions, type CreateBatchFinishListenerOptions, type CreateBatchProgressListenerOptions, type CreateBatchRetryOptions, type CreateBatchRetryReturn, type CreateBatchStartListenerOptions, type CreateBatchUploadOptions, type CreateBatchUploadReturn, type CreateChunkedRestUploadOptions, type CreateChunkedRestUploadReturn, type CreateDeleteFileOptions, type CreateDeleteFileReturn, type CreateFileInputOptions, type CreateFileInputReturn, type CreateGetFileListOptions, type CreateGetFileListReturn, type CreateGetFileMetaOptions, type CreateGetFileMetaReturn, type CreateGetFileOptions, type CreateGetFileReturn, type CreateHeadFileOptions, type CreateHeadFileReturn, type CreateMultipartUploadOptions, type CreateMultipartUploadReturn, type CreatePasteUploadOptions, type CreatePasteUploadReturn, type CreatePatchChunkOptions, type CreatePatchChunkReturn, type CreatePutFileOptions, type CreatePutFileReturn, type CreateRetryListenerOptions, type CreateRetryOptions, type CreateRetryReturn, type CreateTransformFileOptions, type CreateTransformFileReturn, type CreateTransformMetadataOptions, type CreateTransformMetadataReturn, type CreateTusUploadOptions, type CreateTusUploadReturn, type CreateUploadOptions, type CreateUploadReturn, type FileHeadMetadata, type FileListResponse, type TransformMetadata, type TransformOptions, createAbortAll, createAbortBatch, createAbortItem, createAllAbortListener, createBatchCancelledListener, createBatchDeleteFiles, createBatchErrorListener, createBatchFinalizeListener, createBatchFinishListener, createBatchProgressListener, createBatchRetry, createBatchStartListener, createBatchUpload, createChunkedRestUpload, createDeleteFile, createFileInput, createGetFile, createGetFileList, createGetFileMeta, createHeadFile, createMultipartUpload, createPasteUpload, createPatchChunk, createPutFile, createRetry, createRetryListener, createTransformFile, createTransformMetadata, createTusUpload, createUpload };
|