@chilkat/react-native 11.6.1
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 +6 -0
- package/ChilkatRN.podspec +44 -0
- package/LICENSE +254 -0
- package/README.md +67 -0
- package/android/CMakeLists.txt +60 -0
- package/android/build.gradle +148 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/cpp/cpp-adapter.cpp +12 -0
- package/android/src/main/java/com/margelo/nitro/chilkat/ChilkatRNPackage.java +33 -0
- package/chilkat-checksums.json +9 -0
- package/cpp/HybridAi.cpp +660 -0
- package/cpp/HybridAi.hpp +159 -0
- package/cpp/HybridAsn.cpp +403 -0
- package/cpp/HybridAsn.hpp +105 -0
- package/cpp/HybridAuthAws.cpp +188 -0
- package/cpp/HybridAuthAws.hpp +55 -0
- package/cpp/HybridAuthAzureSAS.cpp +142 -0
- package/cpp/HybridAuthAzureSAS.hpp +47 -0
- package/cpp/HybridAuthAzureStorage.cpp +144 -0
- package/cpp/HybridAuthAzureStorage.hpp +47 -0
- package/cpp/HybridAuthGoogle.cpp +215 -0
- package/cpp/HybridAuthGoogle.hpp +67 -0
- package/cpp/HybridBinData.cpp +439 -0
- package/cpp/HybridBinData.hpp +112 -0
- package/cpp/HybridBz2.cpp +177 -0
- package/cpp/HybridBz2.hpp +58 -0
- package/cpp/HybridCache.cpp +314 -0
- package/cpp/HybridCache.hpp +82 -0
- package/cpp/HybridCert.cpp +840 -0
- package/cpp/HybridCert.hpp +196 -0
- package/cpp/HybridCertChain.cpp +149 -0
- package/cpp/HybridCertChain.hpp +50 -0
- package/cpp/HybridCertStore.cpp +276 -0
- package/cpp/HybridCertStore.hpp +78 -0
- package/cpp/HybridCharset.cpp +333 -0
- package/cpp/HybridCharset.hpp +83 -0
- package/cpp/HybridCkDateTime.cpp +384 -0
- package/cpp/HybridCkDateTime.hpp +105 -0
- package/cpp/HybridCodeSign.cpp +156 -0
- package/cpp/HybridCodeSign.hpp +55 -0
- package/cpp/HybridCompression.cpp +422 -0
- package/cpp/HybridCompression.hpp +100 -0
- package/cpp/HybridCrypt2.cpp +1517 -0
- package/cpp/HybridCrypt2.hpp +320 -0
- package/cpp/HybridCsr.cpp +292 -0
- package/cpp/HybridCsr.hpp +77 -0
- package/cpp/HybridCsv.cpp +382 -0
- package/cpp/HybridCsv.hpp +101 -0
- package/cpp/HybridDh.cpp +137 -0
- package/cpp/HybridDh.hpp +47 -0
- package/cpp/HybridDirTree.cpp +167 -0
- package/cpp/HybridDirTree.hpp +53 -0
- package/cpp/HybridDkim.cpp +249 -0
- package/cpp/HybridDkim.hpp +74 -0
- package/cpp/HybridDns.cpp +193 -0
- package/cpp/HybridDns.hpp +64 -0
- package/cpp/HybridDsa.cpp +453 -0
- package/cpp/HybridDsa.hpp +112 -0
- package/cpp/HybridDtObj.cpp +172 -0
- package/cpp/HybridDtObj.hpp +57 -0
- package/cpp/HybridEcc.cpp +195 -0
- package/cpp/HybridEcc.hpp +55 -0
- package/cpp/HybridEdDSA.cpp +147 -0
- package/cpp/HybridEdDSA.hpp +47 -0
- package/cpp/HybridEmail.cpp +1911 -0
- package/cpp/HybridEmail.hpp +419 -0
- package/cpp/HybridEmailBundle.cpp +204 -0
- package/cpp/HybridEmailBundle.hpp +64 -0
- package/cpp/HybridFileAccess.cpp +631 -0
- package/cpp/HybridFileAccess.hpp +149 -0
- package/cpp/HybridFtp2.cpp +2308 -0
- package/cpp/HybridFtp2.hpp +462 -0
- package/cpp/HybridGlobal.cpp +221 -0
- package/cpp/HybridGlobal.hpp +68 -0
- package/cpp/HybridGzip.cpp +440 -0
- package/cpp/HybridGzip.hpp +105 -0
- package/cpp/HybridHashtable.cpp +211 -0
- package/cpp/HybridHashtable.hpp +64 -0
- package/cpp/HybridHtmlToText.cpp +136 -0
- package/cpp/HybridHtmlToText.hpp +47 -0
- package/cpp/HybridHtmlToXml.cpp +218 -0
- package/cpp/HybridHtmlToXml.hpp +65 -0
- package/cpp/HybridHttp.cpp +2067 -0
- package/cpp/HybridHttp.hpp +416 -0
- package/cpp/HybridHttpCurl.cpp +337 -0
- package/cpp/HybridHttpCurl.hpp +93 -0
- package/cpp/HybridHttpRequest.cpp +455 -0
- package/cpp/HybridHttpRequest.hpp +109 -0
- package/cpp/HybridHttpResponse.cpp +340 -0
- package/cpp/HybridHttpResponse.hpp +86 -0
- package/cpp/HybridImap.cpp +1818 -0
- package/cpp/HybridImap.hpp +363 -0
- package/cpp/HybridJavaKeyStore.cpp +387 -0
- package/cpp/HybridJavaKeyStore.hpp +98 -0
- package/cpp/HybridJs.cpp +154 -0
- package/cpp/HybridJs.hpp +54 -0
- package/cpp/HybridJsonArray.cpp +441 -0
- package/cpp/HybridJsonArray.hpp +120 -0
- package/cpp/HybridJsonObject.cpp +1125 -0
- package/cpp/HybridJsonObject.hpp +260 -0
- package/cpp/HybridJwe.cpp +294 -0
- package/cpp/HybridJwe.hpp +82 -0
- package/cpp/HybridJws.cpp +290 -0
- package/cpp/HybridJws.hpp +82 -0
- package/cpp/HybridJwt.cpp +198 -0
- package/cpp/HybridJwt.hpp +57 -0
- package/cpp/HybridLog.cpp +212 -0
- package/cpp/HybridLog.hpp +63 -0
- package/cpp/HybridMailMan.cpp +1853 -0
- package/cpp/HybridMailMan.hpp +386 -0
- package/cpp/HybridMailboxes.cpp +165 -0
- package/cpp/HybridMailboxes.hpp +54 -0
- package/cpp/HybridMcp.cpp +322 -0
- package/cpp/HybridMcp.hpp +85 -0
- package/cpp/HybridMessageSet.cpp +162 -0
- package/cpp/HybridMessageSet.hpp +54 -0
- package/cpp/HybridMht.cpp +700 -0
- package/cpp/HybridMht.hpp +165 -0
- package/cpp/HybridMime.cpp +1119 -0
- package/cpp/HybridMime.hpp +266 -0
- package/cpp/HybridNtlm.cpp +333 -0
- package/cpp/HybridNtlm.hpp +83 -0
- package/cpp/HybridOAuth1.cpp +307 -0
- package/cpp/HybridOAuth1.hpp +78 -0
- package/cpp/HybridOAuth2.cpp +515 -0
- package/cpp/HybridOAuth2.hpp +127 -0
- package/cpp/HybridPdf.cpp +370 -0
- package/cpp/HybridPdf.hpp +103 -0
- package/cpp/HybridPem.cpp +327 -0
- package/cpp/HybridPem.hpp +88 -0
- package/cpp/HybridPfx.cpp +343 -0
- package/cpp/HybridPfx.hpp +87 -0
- package/cpp/HybridPkcs11.cpp +318 -0
- package/cpp/HybridPkcs11.hpp +88 -0
- package/cpp/HybridPrivateKey.cpp +464 -0
- package/cpp/HybridPrivateKey.hpp +117 -0
- package/cpp/HybridPrng.cpp +192 -0
- package/cpp/HybridPrng.hpp +57 -0
- package/cpp/HybridPublicKey.cpp +238 -0
- package/cpp/HybridPublicKey.hpp +68 -0
- package/cpp/HybridRest.cpp +993 -0
- package/cpp/HybridRest.hpp +214 -0
- package/cpp/HybridRsa.cpp +348 -0
- package/cpp/HybridRsa.hpp +90 -0
- package/cpp/HybridSCard.cpp +328 -0
- package/cpp/HybridSCard.hpp +91 -0
- package/cpp/HybridSFtp.cpp +1889 -0
- package/cpp/HybridSFtp.hpp +366 -0
- package/cpp/HybridSFtpDir.cpp +119 -0
- package/cpp/HybridSFtpDir.hpp +43 -0
- package/cpp/HybridSFtpFile.cpp +203 -0
- package/cpp/HybridSFtpFile.hpp +60 -0
- package/cpp/HybridScMinidriver.cpp +341 -0
- package/cpp/HybridScMinidriver.hpp +88 -0
- package/cpp/HybridScp.cpp +398 -0
- package/cpp/HybridScp.hpp +96 -0
- package/cpp/HybridSecrets.cpp +328 -0
- package/cpp/HybridSecrets.hpp +84 -0
- package/cpp/HybridSecureString.cpp +175 -0
- package/cpp/HybridSecureString.hpp +55 -0
- package/cpp/HybridServerSentEvent.cpp +112 -0
- package/cpp/HybridServerSentEvent.hpp +41 -0
- package/cpp/HybridSocket.cpp +1567 -0
- package/cpp/HybridSocket.hpp +336 -0
- package/cpp/HybridSpider.cpp +543 -0
- package/cpp/HybridSpider.hpp +138 -0
- package/cpp/HybridSsh.cpp +1330 -0
- package/cpp/HybridSsh.hpp +282 -0
- package/cpp/HybridSshKey.cpp +310 -0
- package/cpp/HybridSshKey.hpp +83 -0
- package/cpp/HybridSshTunnel.cpp +687 -0
- package/cpp/HybridSshTunnel.hpp +159 -0
- package/cpp/HybridStream.cpp +496 -0
- package/cpp/HybridStream.hpp +123 -0
- package/cpp/HybridStringArray.cpp +368 -0
- package/cpp/HybridStringArray.hpp +99 -0
- package/cpp/HybridStringBuilder.cpp +739 -0
- package/cpp/HybridStringBuilder.hpp +178 -0
- package/cpp/HybridStringTable.cpp +218 -0
- package/cpp/HybridStringTable.hpp +66 -0
- package/cpp/HybridTar.cpp +547 -0
- package/cpp/HybridTar.hpp +134 -0
- package/cpp/HybridTrustedRoots.cpp +178 -0
- package/cpp/HybridTrustedRoots.hpp +61 -0
- package/cpp/HybridUnixCompress.cpp +191 -0
- package/cpp/HybridUnixCompress.hpp +60 -0
- package/cpp/HybridUpload.cpp +427 -0
- package/cpp/HybridUpload.hpp +114 -0
- package/cpp/HybridUrl.cpp +152 -0
- package/cpp/HybridUrl.hpp +48 -0
- package/cpp/HybridWebSocket.cpp +378 -0
- package/cpp/HybridWebSocket.hpp +103 -0
- package/cpp/HybridXml.cpp +1527 -0
- package/cpp/HybridXml.hpp +340 -0
- package/cpp/HybridXmlCertVault.cpp +215 -0
- package/cpp/HybridXmlCertVault.hpp +63 -0
- package/cpp/HybridXmlDSig.cpp +328 -0
- package/cpp/HybridXmlDSig.hpp +88 -0
- package/cpp/HybridXmlDSigGen.cpp +549 -0
- package/cpp/HybridXmlDSigGen.hpp +126 -0
- package/cpp/HybridXmp.cpp +329 -0
- package/cpp/HybridXmp.hpp +86 -0
- package/cpp/HybridZip.cpp +1000 -0
- package/cpp/HybridZip.hpp +226 -0
- package/cpp/HybridZipCrc.cpp +162 -0
- package/cpp/HybridZipCrc.hpp +57 -0
- package/cpp/HybridZipEntry.cpp +395 -0
- package/cpp/HybridZipEntry.hpp +102 -0
- package/cpp/runtime/AsyncCall.hpp +96 -0
- package/cpp/runtime/Bytes.hpp +49 -0
- package/cpp/runtime/ChilkatError.hpp +66 -0
- package/cpp/runtime/ChilkatObject.hpp +219 -0
- package/cpp/runtime/ProgLang.hpp +9 -0
- package/cpp/runtime/ProgressAdapter.hpp +43 -0
- package/nitro.json +113 -0
- package/nitrogen/generated/.gitattributes +1 -0
- package/nitrogen/generated/android/ChilkatRN+autolinking.cmake +179 -0
- package/nitrogen/generated/android/ChilkatRN+autolinking.gradle +27 -0
- package/nitrogen/generated/android/ChilkatRNOnLoad.cpp +1029 -0
- package/nitrogen/generated/android/ChilkatRNOnLoad.hpp +34 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/chilkat/ChilkatRNOnLoad.kt +35 -0
- package/nitrogen/generated/ios/ChilkatRN+autolinking.rb +62 -0
- package/nitrogen/generated/ios/ChilkatRN-Swift-Cxx-Bridge.cpp +17 -0
- package/nitrogen/generated/ios/ChilkatRN-Swift-Cxx-Bridge.hpp +27 -0
- package/nitrogen/generated/ios/ChilkatRN-Swift-Cxx-Umbrella.hpp +38 -0
- package/nitrogen/generated/ios/ChilkatRNAutolinking.mm +1015 -0
- package/nitrogen/generated/ios/ChilkatRNAutolinking.swift +16 -0
- package/nitrogen/generated/shared/c++/HybridAiSpec.cpp +114 -0
- package/nitrogen/generated/shared/c++/HybridAiSpec.hpp +175 -0
- package/nitrogen/generated/shared/c++/HybridAsnSpec.cpp +70 -0
- package/nitrogen/generated/shared/c++/HybridAsnSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridAuthAwsSpec.cpp +49 -0
- package/nitrogen/generated/shared/c++/HybridAuthAwsSpec.hpp +89 -0
- package/nitrogen/generated/shared/c++/HybridAuthAzureSASSpec.cpp +38 -0
- package/nitrogen/generated/shared/c++/HybridAuthAzureSASSpec.hpp +78 -0
- package/nitrogen/generated/shared/c++/HybridAuthAzureStorageSpec.cpp +41 -0
- package/nitrogen/generated/shared/c++/HybridAuthAzureStorageSpec.hpp +81 -0
- package/nitrogen/generated/shared/c++/HybridAuthGoogleSpec.cpp +56 -0
- package/nitrogen/generated/shared/c++/HybridAuthGoogleSpec.hpp +108 -0
- package/nitrogen/generated/shared/c++/HybridBinDataSpec.cpp +69 -0
- package/nitrogen/generated/shared/c++/HybridBinDataSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridBz2Spec.cpp +47 -0
- package/nitrogen/generated/shared/c++/HybridBz2Spec.hpp +93 -0
- package/nitrogen/generated/shared/c++/HybridCacheSpec.cpp +57 -0
- package/nitrogen/generated/shared/c++/HybridCacheSpec.hpp +106 -0
- package/nitrogen/generated/shared/c++/HybridCertChainSpec.cpp +40 -0
- package/nitrogen/generated/shared/c++/HybridCertChainSpec.hpp +89 -0
- package/nitrogen/generated/shared/c++/HybridCertSpec.cpp +138 -0
- package/nitrogen/generated/shared/c++/HybridCertSpec.hpp +205 -0
- package/nitrogen/generated/shared/c++/HybridCertStoreSpec.cpp +55 -0
- package/nitrogen/generated/shared/c++/HybridCertStoreSpec.hpp +104 -0
- package/nitrogen/generated/shared/c++/HybridCharsetSpec.cpp +61 -0
- package/nitrogen/generated/shared/c++/HybridCharsetSpec.hpp +101 -0
- package/nitrogen/generated/shared/c++/HybridCkDateTimeSpec.cpp +66 -0
- package/nitrogen/generated/shared/c++/HybridCkDateTimeSpec.hpp +115 -0
- package/nitrogen/generated/shared/c++/HybridCodeSignSpec.cpp +44 -0
- package/nitrogen/generated/shared/c++/HybridCodeSignSpec.hpp +93 -0
- package/nitrogen/generated/shared/c++/HybridCompressionSpec.cpp +79 -0
- package/nitrogen/generated/shared/c++/HybridCompressionSpec.hpp +134 -0
- package/nitrogen/generated/shared/c++/HybridCrypt2Spec.cpp +215 -0
- package/nitrogen/generated/shared/c++/HybridCrypt2Spec.hpp +283 -0
- package/nitrogen/generated/shared/c++/HybridCsrSpec.cpp +61 -0
- package/nitrogen/generated/shared/c++/HybridCsrSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridCsvSpec.cpp +72 -0
- package/nitrogen/generated/shared/c++/HybridCsvSpec.hpp +121 -0
- package/nitrogen/generated/shared/c++/HybridDhSpec.cpp +37 -0
- package/nitrogen/generated/shared/c++/HybridDhSpec.hpp +77 -0
- package/nitrogen/generated/shared/c++/HybridDirTreeSpec.cpp +46 -0
- package/nitrogen/generated/shared/c++/HybridDirTreeSpec.hpp +86 -0
- package/nitrogen/generated/shared/c++/HybridDkimSpec.cpp +60 -0
- package/nitrogen/generated/shared/c++/HybridDkimSpec.hpp +109 -0
- package/nitrogen/generated/shared/c++/HybridDnsSpec.cpp +51 -0
- package/nitrogen/generated/shared/c++/HybridDnsSpec.hpp +97 -0
- package/nitrogen/generated/shared/c++/HybridDsaSpec.cpp +73 -0
- package/nitrogen/generated/shared/c++/HybridDsaSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridDtObjSpec.cpp +50 -0
- package/nitrogen/generated/shared/c++/HybridDtObjSpec.hpp +90 -0
- package/nitrogen/generated/shared/c++/HybridEccSpec.cpp +41 -0
- package/nitrogen/generated/shared/c++/HybridEccSpec.hpp +96 -0
- package/nitrogen/generated/shared/c++/HybridEdDSASpec.cpp +38 -0
- package/nitrogen/generated/shared/c++/HybridEdDSASpec.hpp +90 -0
- package/nitrogen/generated/shared/c++/HybridEmailBundleSpec.cpp +45 -0
- package/nitrogen/generated/shared/c++/HybridEmailBundleSpec.hpp +91 -0
- package/nitrogen/generated/shared/c++/HybridEmailSpec.cpp +259 -0
- package/nitrogen/generated/shared/c++/HybridEmailSpec.hpp +326 -0
- package/nitrogen/generated/shared/c++/HybridFileAccessSpec.cpp +90 -0
- package/nitrogen/generated/shared/c++/HybridFileAccessSpec.hpp +140 -0
- package/nitrogen/generated/shared/c++/HybridFtp2Spec.cpp +367 -0
- package/nitrogen/generated/shared/c++/HybridFtp2Spec.hpp +434 -0
- package/nitrogen/generated/shared/c++/HybridGlobalSpec.cpp +59 -0
- package/nitrogen/generated/shared/c++/HybridGlobalSpec.hpp +99 -0
- package/nitrogen/generated/shared/c++/HybridGzipSpec.cpp +79 -0
- package/nitrogen/generated/shared/c++/HybridGzipSpec.hpp +134 -0
- package/nitrogen/generated/shared/c++/HybridHashtableSpec.cpp +45 -0
- package/nitrogen/generated/shared/c++/HybridHashtableSpec.hpp +91 -0
- package/nitrogen/generated/shared/c++/HybridHtmlToTextSpec.cpp +40 -0
- package/nitrogen/generated/shared/c++/HybridHtmlToTextSpec.hpp +83 -0
- package/nitrogen/generated/shared/c++/HybridHtmlToXmlSpec.cpp +49 -0
- package/nitrogen/generated/shared/c++/HybridHtmlToXmlSpec.hpp +95 -0
- package/nitrogen/generated/shared/c++/HybridHttpCurlSpec.cpp +67 -0
- package/nitrogen/generated/shared/c++/HybridHttpCurlSpec.hpp +125 -0
- package/nitrogen/generated/shared/c++/HybridHttpRequestSpec.cpp +76 -0
- package/nitrogen/generated/shared/c++/HybridHttpRequestSpec.hpp +122 -0
- package/nitrogen/generated/shared/c++/HybridHttpResponseSpec.cpp +64 -0
- package/nitrogen/generated/shared/c++/HybridHttpResponseSpec.hpp +119 -0
- package/nitrogen/generated/shared/c++/HybridHttpSpec.cpp +334 -0
- package/nitrogen/generated/shared/c++/HybridHttpSpec.hpp +407 -0
- package/nitrogen/generated/shared/c++/HybridImapSpec.cpp +275 -0
- package/nitrogen/generated/shared/c++/HybridImapSpec.hpp +360 -0
- package/nitrogen/generated/shared/c++/HybridJavaKeyStoreSpec.cpp +65 -0
- package/nitrogen/generated/shared/c++/HybridJavaKeyStoreSpec.hpp +132 -0
- package/nitrogen/generated/shared/c++/HybridJsSpec.cpp +43 -0
- package/nitrogen/generated/shared/c++/HybridJsSpec.hpp +92 -0
- package/nitrogen/generated/shared/c++/HybridJsonArraySpec.cpp +76 -0
- package/nitrogen/generated/shared/c++/HybridJsonArraySpec.hpp +131 -0
- package/nitrogen/generated/shared/c++/HybridJsonObjectSpec.cpp +154 -0
- package/nitrogen/generated/shared/c++/HybridJsonObjectSpec.hpp +218 -0
- package/nitrogen/generated/shared/c++/HybridJweSpec.cpp +57 -0
- package/nitrogen/generated/shared/c++/HybridJweSpec.hpp +112 -0
- package/nitrogen/generated/shared/c++/HybridJwsSpec.cpp +57 -0
- package/nitrogen/generated/shared/c++/HybridJwsSpec.hpp +115 -0
- package/nitrogen/generated/shared/c++/HybridJwtSpec.cpp +43 -0
- package/nitrogen/generated/shared/c++/HybridJwtSpec.hpp +92 -0
- package/nitrogen/generated/shared/c++/HybridLogSpec.cpp +44 -0
- package/nitrogen/generated/shared/c++/HybridLogSpec.hpp +85 -0
- package/nitrogen/generated/shared/c++/HybridMailManSpec.cpp +311 -0
- package/nitrogen/generated/shared/c++/HybridMailManSpec.hpp +396 -0
- package/nitrogen/generated/shared/c++/HybridMailboxesSpec.cpp +40 -0
- package/nitrogen/generated/shared/c++/HybridMailboxesSpec.hpp +80 -0
- package/nitrogen/generated/shared/c++/HybridMcpSpec.cpp +68 -0
- package/nitrogen/generated/shared/c++/HybridMcpSpec.hpp +117 -0
- package/nitrogen/generated/shared/c++/HybridMessageSetSpec.cpp +41 -0
- package/nitrogen/generated/shared/c++/HybridMessageSetSpec.hpp +84 -0
- package/nitrogen/generated/shared/c++/HybridMhtSpec.cpp +138 -0
- package/nitrogen/generated/shared/c++/HybridMhtSpec.hpp +181 -0
- package/nitrogen/generated/shared/c++/HybridMimeSpec.cpp +169 -0
- package/nitrogen/generated/shared/c++/HybridMimeSpec.hpp +233 -0
- package/nitrogen/generated/shared/c++/HybridNtlmSpec.cpp +69 -0
- package/nitrogen/generated/shared/c++/HybridNtlmSpec.hpp +109 -0
- package/nitrogen/generated/shared/c++/HybridOAuth1Spec.cpp +67 -0
- package/nitrogen/generated/shared/c++/HybridOAuth1Spec.hpp +110 -0
- package/nitrogen/generated/shared/c++/HybridOAuth2Spec.cpp +107 -0
- package/nitrogen/generated/shared/c++/HybridOAuth2Spec.hpp +156 -0
- package/nitrogen/generated/shared/c++/HybridPdfSpec.cpp +73 -0
- package/nitrogen/generated/shared/c++/HybridPdfSpec.hpp +134 -0
- package/nitrogen/generated/shared/c++/HybridPemSpec.cpp +63 -0
- package/nitrogen/generated/shared/c++/HybridPemSpec.hpp +124 -0
- package/nitrogen/generated/shared/c++/HybridPfxSpec.cpp +61 -0
- package/nitrogen/generated/shared/c++/HybridPfxSpec.hpp +122 -0
- package/nitrogen/generated/shared/c++/HybridPkcs11Spec.cpp +60 -0
- package/nitrogen/generated/shared/c++/HybridPkcs11Spec.hpp +115 -0
- package/nitrogen/generated/shared/c++/HybridPrivateKeySpec.cpp +76 -0
- package/nitrogen/generated/shared/c++/HybridPrivateKeySpec.hpp +131 -0
- package/nitrogen/generated/shared/c++/HybridPrngSpec.cpp +42 -0
- package/nitrogen/generated/shared/c++/HybridPrngSpec.hpp +85 -0
- package/nitrogen/generated/shared/c++/HybridPublicKeySpec.cpp +48 -0
- package/nitrogen/generated/shared/c++/HybridPublicKeySpec.hpp +91 -0
- package/nitrogen/generated/shared/c++/HybridRestSpec.cpp +150 -0
- package/nitrogen/generated/shared/c++/HybridRestSpec.hpp +229 -0
- package/nitrogen/generated/shared/c++/HybridRsaSpec.cpp +68 -0
- package/nitrogen/generated/shared/c++/HybridRsaSpec.hpp +120 -0
- package/nitrogen/generated/shared/c++/HybridSCardSpec.cpp +64 -0
- package/nitrogen/generated/shared/c++/HybridSCardSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridSFtpDirSpec.cpp +35 -0
- package/nitrogen/generated/shared/c++/HybridSFtpDirSpec.hpp +78 -0
- package/nitrogen/generated/shared/c++/HybridSFtpFileSpec.cpp +57 -0
- package/nitrogen/generated/shared/c++/HybridSFtpFileSpec.hpp +98 -0
- package/nitrogen/generated/shared/c++/HybridSFtpSpec.cpp +284 -0
- package/nitrogen/generated/shared/c++/HybridSFtpSpec.hpp +354 -0
- package/nitrogen/generated/shared/c++/HybridScMinidriverSpec.cpp +61 -0
- package/nitrogen/generated/shared/c++/HybridScMinidriverSpec.hpp +119 -0
- package/nitrogen/generated/shared/c++/HybridScpSpec.cpp +78 -0
- package/nitrogen/generated/shared/c++/HybridScpSpec.hpp +127 -0
- package/nitrogen/generated/shared/c++/HybridSecretsSpec.cpp +65 -0
- package/nitrogen/generated/shared/c++/HybridSecretsSpec.hpp +120 -0
- package/nitrogen/generated/shared/c++/HybridSecureStringSpec.cpp +42 -0
- package/nitrogen/generated/shared/c++/HybridSecureStringSpec.hpp +88 -0
- package/nitrogen/generated/shared/c++/HybridServerSentEventSpec.cpp +35 -0
- package/nitrogen/generated/shared/c++/HybridServerSentEventSpec.hpp +75 -0
- package/nitrogen/generated/shared/c++/HybridSocketSpec.cpp +262 -0
- package/nitrogen/generated/shared/c++/HybridSocketSpec.hpp +327 -0
- package/nitrogen/generated/shared/c++/HybridSpiderSpec.cpp +110 -0
- package/nitrogen/generated/shared/c++/HybridSpiderSpec.hpp +153 -0
- package/nitrogen/generated/shared/c++/HybridSshKeySpec.cpp +59 -0
- package/nitrogen/generated/shared/c++/HybridSshKeySpec.hpp +102 -0
- package/nitrogen/generated/shared/c++/HybridSshSpec.cpp +215 -0
- package/nitrogen/generated/shared/c++/HybridSshSpec.hpp +276 -0
- package/nitrogen/generated/shared/c++/HybridSshTunnelSpec.cpp +136 -0
- package/nitrogen/generated/shared/c++/HybridSshTunnelSpec.hpp +191 -0
- package/nitrogen/generated/shared/c++/HybridStreamSpec.cpp +100 -0
- package/nitrogen/generated/shared/c++/HybridStreamSpec.hpp +150 -0
- package/nitrogen/generated/shared/c++/HybridStringArraySpec.cpp +66 -0
- package/nitrogen/generated/shared/c++/HybridStringArraySpec.hpp +109 -0
- package/nitrogen/generated/shared/c++/HybridStringBuilderSpec.cpp +104 -0
- package/nitrogen/generated/shared/c++/HybridStringBuilderSpec.hpp +156 -0
- package/nitrogen/generated/shared/c++/HybridStringTableSpec.cpp +46 -0
- package/nitrogen/generated/shared/c++/HybridStringTableSpec.hpp +89 -0
- package/nitrogen/generated/shared/c++/HybridTarSpec.cpp +110 -0
- package/nitrogen/generated/shared/c++/HybridTarSpec.hpp +156 -0
- package/nitrogen/generated/shared/c++/HybridTrustedRootsSpec.cpp +48 -0
- package/nitrogen/generated/shared/c++/HybridTrustedRootsSpec.hpp +97 -0
- package/nitrogen/generated/shared/c++/HybridUnixCompressSpec.cpp +48 -0
- package/nitrogen/generated/shared/c++/HybridUnixCompressSpec.hpp +91 -0
- package/nitrogen/generated/shared/c++/HybridUploadSpec.cpp +98 -0
- package/nitrogen/generated/shared/c++/HybridUploadSpec.hpp +141 -0
- package/nitrogen/generated/shared/c++/HybridUrlSpec.cpp +42 -0
- package/nitrogen/generated/shared/c++/HybridUrlSpec.hpp +82 -0
- package/nitrogen/generated/shared/c++/HybridWebSocketSpec.cpp +80 -0
- package/nitrogen/generated/shared/c++/HybridWebSocketSpec.hpp +135 -0
- package/nitrogen/generated/shared/c++/HybridXmlCertVaultSpec.cpp +45 -0
- package/nitrogen/generated/shared/c++/HybridXmlCertVaultSpec.hpp +94 -0
- package/nitrogen/generated/shared/c++/HybridXmlDSigGenSpec.cpp +99 -0
- package/nitrogen/generated/shared/c++/HybridXmlDSigGenSpec.hpp +163 -0
- package/nitrogen/generated/shared/c++/HybridXmlDSigSpec.cpp +62 -0
- package/nitrogen/generated/shared/c++/HybridXmlDSigSpec.hpp +126 -0
- package/nitrogen/generated/shared/c++/HybridXmlSpec.cpp +203 -0
- package/nitrogen/generated/shared/c++/HybridXmlSpec.hpp +253 -0
- package/nitrogen/generated/shared/c++/HybridXmpSpec.cpp +58 -0
- package/nitrogen/generated/shared/c++/HybridXmpSpec.hpp +104 -0
- package/nitrogen/generated/shared/c++/HybridZipCrcSpec.cpp +43 -0
- package/nitrogen/generated/shared/c++/HybridZipCrcSpec.hpp +92 -0
- package/nitrogen/generated/shared/c++/HybridZipEntrySpec.cpp +82 -0
- package/nitrogen/generated/shared/c++/HybridZipEntrySpec.hpp +137 -0
- package/nitrogen/generated/shared/c++/HybridZipSpec.cpp +176 -0
- package/nitrogen/generated/shared/c++/HybridZipSpec.hpp +231 -0
- package/package.json +46 -0
- package/react-native.config.js +9 -0
- package/scripts/fetch-chilkat.js +184 -0
- package/src/index.ts +306 -0
- package/src/runtime/chilkat.ts +25 -0
- package/src/specs/Ai.nitro.ts +1288 -0
- package/src/specs/Asn.nitro.ts +509 -0
- package/src/specs/AuthAws.nitro.ts +234 -0
- package/src/specs/AuthAzureSAS.nitro.ts +205 -0
- package/src/specs/AuthAzureStorage.nitro.ts +172 -0
- package/src/specs/AuthGoogle.nitro.ts +291 -0
- package/src/specs/BinData.nitro.ts +470 -0
- package/src/specs/Bz2.nitro.ts +269 -0
- package/src/specs/Cache.nitro.ts +483 -0
- package/src/specs/Cert.nitro.ts +1279 -0
- package/src/specs/CertChain.nitro.ts +312 -0
- package/src/specs/CertStore.nitro.ts +430 -0
- package/src/specs/Charset.nitro.ts +518 -0
- package/src/specs/CkDateTime.nitro.ts +492 -0
- package/src/specs/CodeSign.nitro.ts +307 -0
- package/src/specs/Compression.nitro.ts +654 -0
- package/src/specs/Crypt2.nitro.ts +2387 -0
- package/src/specs/Csr.nitro.ts +461 -0
- package/src/specs/Csv.nitro.ts +670 -0
- package/src/specs/Dh.nitro.ts +343 -0
- package/src/specs/DirTree.nitro.ts +332 -0
- package/src/specs/Dkim.nitro.ts +595 -0
- package/src/specs/Dns.nitro.ts +271 -0
- package/src/specs/Dsa.nitro.ts +653 -0
- package/src/specs/DtObj.nitro.ts +198 -0
- package/src/specs/Ecc.nitro.ts +375 -0
- package/src/specs/EdDSA.nitro.ts +273 -0
- package/src/specs/Email.nitro.ts +2921 -0
- package/src/specs/EmailBundle.nitro.ts +334 -0
- package/src/specs/FileAccess.nitro.ts +836 -0
- package/src/specs/Ftp2.nitro.ts +3943 -0
- package/src/specs/Global.nitro.ts +319 -0
- package/src/specs/Gzip.nitro.ts +646 -0
- package/src/specs/Hashtable.nitro.ts +356 -0
- package/src/specs/HtmlToText.nitro.ts +238 -0
- package/src/specs/HtmlToXml.nitro.ts +323 -0
- package/src/specs/Http.nitro.ts +3095 -0
- package/src/specs/HttpCurl.nitro.ts +550 -0
- package/src/specs/HttpRequest.nitro.ts +522 -0
- package/src/specs/HttpResponse.nitro.ts +424 -0
- package/src/specs/Imap.nitro.ts +2991 -0
- package/src/specs/JavaKeyStore.nitro.ts +619 -0
- package/src/specs/Js.nitro.ts +263 -0
- package/src/specs/JsonArray.nitro.ts +681 -0
- package/src/specs/JsonObject.nitro.ts +1454 -0
- package/src/specs/Jwe.nitro.ts +756 -0
- package/src/specs/Jws.nitro.ts +733 -0
- package/src/specs/Jwt.nitro.ts +380 -0
- package/src/specs/Log.nitro.ts +258 -0
- package/src/specs/MailMan.nitro.ts +3571 -0
- package/src/specs/Mailboxes.nitro.ts +251 -0
- package/src/specs/Mcp.nitro.ts +491 -0
- package/src/specs/MessageSet.nitro.ts +320 -0
- package/src/specs/Mht.nitro.ts +1684 -0
- package/src/specs/Mime.nitro.ts +1745 -0
- package/src/specs/Ntlm.nitro.ts +556 -0
- package/src/specs/OAuth1.nitro.ts +331 -0
- package/src/specs/OAuth2.nitro.ts +1023 -0
- package/src/specs/Pdf.nitro.ts +740 -0
- package/src/specs/Pem.nitro.ts +484 -0
- package/src/specs/Pfx.nitro.ts +1003 -0
- package/src/specs/Pkcs11.nitro.ts +559 -0
- package/src/specs/PrivateKey.nitro.ts +994 -0
- package/src/specs/Prng.nitro.ts +348 -0
- package/src/specs/PublicKey.nitro.ts +610 -0
- package/src/specs/Rest.nitro.ts +1972 -0
- package/src/specs/Rsa.nitro.ts +453 -0
- package/src/specs/SCard.nitro.ts +739 -0
- package/src/specs/SFtp.nitro.ts +3138 -0
- package/src/specs/SFtpDir.nitro.ts +213 -0
- package/src/specs/SFtpFile.nitro.ts +452 -0
- package/src/specs/ScMinidriver.nitro.ts +443 -0
- package/src/specs/Scp.nitro.ts +708 -0
- package/src/specs/Secrets.nitro.ts +470 -0
- package/src/specs/SecureString.nitro.ts +231 -0
- package/src/specs/ServerSentEvent.nitro.ts +183 -0
- package/src/specs/Socket.nitro.ts +3335 -0
- package/src/specs/Spider.nitro.ts +609 -0
- package/src/specs/Ssh.nitro.ts +2842 -0
- package/src/specs/SshKey.nitro.ts +740 -0
- package/src/specs/SshTunnel.nitro.ts +1243 -0
- package/src/specs/Stream.nitro.ts +737 -0
- package/src/specs/StringArray.nitro.ts +396 -0
- package/src/specs/StringBuilder.nitro.ts +920 -0
- package/src/specs/StringTable.nitro.ts +271 -0
- package/src/specs/Tar.nitro.ts +804 -0
- package/src/specs/TrustedRoots.nitro.ts +360 -0
- package/src/specs/UnixCompress.nitro.ts +293 -0
- package/src/specs/Upload.nitro.ts +623 -0
- package/src/specs/Url.nitro.ts +246 -0
- package/src/specs/WebSocket.nitro.ts +840 -0
- package/src/specs/Xml.nitro.ts +1988 -0
- package/src/specs/XmlCertVault.nitro.ts +259 -0
- package/src/specs/XmlDSig.nitro.ts +464 -0
- package/src/specs/XmlDSigGen.nitro.ts +978 -0
- package/src/specs/Xmp.nitro.ts +364 -0
- package/src/specs/Zip.nitro.ts +1611 -0
- package/src/specs/ZipCrc.nitro.ts +229 -0
- package/src/specs/ZipEntry.nitro.ts +782 -0
|
@@ -0,0 +1,1611 @@
|
|
|
1
|
+
// Generated by ReactNativeNs.RnGenerator -- do not edit.
|
|
2
|
+
import type { HybridObject } from 'react-native-nitro-modules'
|
|
3
|
+
import type { BinData } from './BinData.nitro'
|
|
4
|
+
import type { StringArray } from './StringArray.nitro'
|
|
5
|
+
import type { StringBuilder } from './StringBuilder.nitro'
|
|
6
|
+
import type { ZipEntry } from './ZipEntry.nitro'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Create, read, modify, encrypt, and extract ZIP archives.
|
|
10
|
+
*
|
|
11
|
+
* `Zip` provides a comprehensive API for working with ZIP
|
|
12
|
+
* archives from files, memory, `BinData`, embedded resources, and
|
|
13
|
+
* Windows self-extracting EXEs. It can create new archives, open existing ZIPs,
|
|
14
|
+
* add files or in-memory data, inspect entries, extract selectively, and write
|
|
15
|
+
* the final archive to disk or memory.
|
|
16
|
+
*
|
|
17
|
+
* **Create ZIP archives**
|
|
18
|
+
*
|
|
19
|
+
* Add files, directories, strings, byte arrays, `BinData`, and
|
|
20
|
+
* `StringBuilder` content.
|
|
21
|
+
*
|
|
22
|
+
* **Open ZIPs from many sources**
|
|
23
|
+
*
|
|
24
|
+
* Open archives from disk, memory, `BinData`, embedded Windows
|
|
25
|
+
* resources, or Chilkat-created self-extracting EXEs.
|
|
26
|
+
*
|
|
27
|
+
* **Control stored paths**
|
|
28
|
+
*
|
|
29
|
+
* Use options such as `AppendFromDir`, `DiscardPaths`,
|
|
30
|
+
* `PathPrefix`, and `saveExtraPath`.
|
|
31
|
+
*
|
|
32
|
+
* **Extract selectively**
|
|
33
|
+
*
|
|
34
|
+
* Extract all files, matching entries, newer files, or flatten all output
|
|
35
|
+
* into a single directory.
|
|
36
|
+
*
|
|
37
|
+
* **Encryption support**
|
|
38
|
+
*
|
|
39
|
+
* Work with WinZip-compatible AES encryption and legacy Zip 2.0 password
|
|
40
|
+
* protection.
|
|
41
|
+
*
|
|
42
|
+
* **Large archive support**
|
|
43
|
+
*
|
|
44
|
+
* ZIP64 is used automatically when older ZIP limits are exceeded.
|
|
45
|
+
*
|
|
46
|
+
* **Important:**
|
|
47
|
+
* Many methods update the in-memory ZIP object first. The archive is not
|
|
48
|
+
* written until a method such as `WriteZip`,
|
|
49
|
+
* `WriteZipAndClose`, `WriteBd`, or
|
|
50
|
+
* `WriteToMemory` is called.
|
|
51
|
+
*
|
|
52
|
+
* For an extended overview, see
|
|
53
|
+
* [Zip Class Overview](https://www.chilkatsoft.com/zip_class_overview.asp).
|
|
54
|
+
*
|
|
55
|
+
* Each `Zip` instance owns a native Chilkat object. It is released when the JavaScript object is
|
|
56
|
+
* garbage collected, or immediately by `dispose()`; any use after `dispose()` throws.
|
|
57
|
+
* Create one with `new Zip()`.
|
|
58
|
+
*
|
|
59
|
+
* Methods that can take a while (network, files, compression, key generation) also have an
|
|
60
|
+
* `...Async` form returning a `Promise`; it runs on a native worker thread so the UI keeps
|
|
61
|
+
* rendering. While such a call is pending, every other call on this object throws, except
|
|
62
|
+
* {@link Zip.abort} and assigning {@link Zip.onPercentDone} / {@link Zip.onProgressInfo}.
|
|
63
|
+
*/
|
|
64
|
+
export interface Zip extends HybridObject<{ ios: 'c++', android: 'c++' }> {
|
|
65
|
+
// ---- Properties ----
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Provides HTML-formatted information about the last called method or property. If a method call
|
|
69
|
+
* fails or behaves unexpectedly, check this property for details. Note that information is
|
|
70
|
+
* available regardless of the method call's success.
|
|
71
|
+
*
|
|
72
|
+
* This property is read-only.
|
|
73
|
+
*/
|
|
74
|
+
readonly lastErrorHtml: string
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Provides plain text information about the last called method or property. If a method call
|
|
78
|
+
* fails or behaves unexpectedly, check this property for details. Note that information is
|
|
79
|
+
* available regardless of the method call's success.
|
|
80
|
+
*
|
|
81
|
+
* This property is read-only.
|
|
82
|
+
*/
|
|
83
|
+
readonly lastErrorText: string
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Provides XML-formatted information about the last called method or property. If a method call
|
|
87
|
+
* fails or behaves unexpectedly, check this property for details. Note that information is
|
|
88
|
+
* available regardless of the method call's success.
|
|
89
|
+
*
|
|
90
|
+
* This property is read-only.
|
|
91
|
+
*/
|
|
92
|
+
readonly lastErrorXml: string
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Version of the component/library, such as "10.1.0"
|
|
96
|
+
*
|
|
97
|
+
* This property is read-only.
|
|
98
|
+
*/
|
|
99
|
+
readonly version: string
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* If set to a file path, this property logs the LastErrorText of each Chilkat method or property
|
|
103
|
+
* call to the specified file. This logging helps identify the context and history of Chilkat
|
|
104
|
+
* calls leading up to any crash or hang, aiding in debugging.
|
|
105
|
+
*
|
|
106
|
+
* Enabling the VerboseLogging property provides more detailed information.
|
|
107
|
+
*
|
|
108
|
+
* This property is mainly used for debugging rare instances where a Chilkat method call causes a
|
|
109
|
+
* hang or crash, which should generally not happen.
|
|
110
|
+
*
|
|
111
|
+
* Possible causes of hangs include:
|
|
112
|
+
*
|
|
113
|
+
* - A timeout property set to 0, indicating an infinite timeout.
|
|
114
|
+
*
|
|
115
|
+
* - A hang occurring within an event callback in the application code.
|
|
116
|
+
*
|
|
117
|
+
* - An internal bug in the Chilkat code causing the hang.
|
|
118
|
+
*/
|
|
119
|
+
debugLogFilePath: string
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* If set to `true`, then the contents of LastErrorText (or LastErrorXml, or LastErrorHtml) may
|
|
123
|
+
* contain more verbose information. The default value is `false`. Verbose logging should only be
|
|
124
|
+
* used for debugging. The potentially large quantity of logged information may adversely affect
|
|
125
|
+
* peformance.
|
|
126
|
+
*/
|
|
127
|
+
verboseLogging: boolean
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Indicates the success or failure of the most recent method call: `true` means success, `false`
|
|
131
|
+
* means failure. This property remains unchanged by property setters or getters. This method is
|
|
132
|
+
* present to address challenges in checking for null or Nothing returns in certain programming
|
|
133
|
+
* languages. Note: This property does not apply to methods that return integer values or to
|
|
134
|
+
* boolean-returning methods where the boolean does not indicate success or failure.
|
|
135
|
+
*/
|
|
136
|
+
lastMethodSuccess: boolean
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Stops the currently executing operation when set to `_TRUE_`.
|
|
140
|
+
*
|
|
141
|
+
* - Used to cancel long-running operations such as compression or extraction.
|
|
142
|
+
*
|
|
143
|
+
* - Can be triggered from another thread.
|
|
144
|
+
*
|
|
145
|
+
* - Automatically resets to `_FALSE_` after the operation stops.
|
|
146
|
+
*/
|
|
147
|
+
abortCurrent: boolean
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Specifies a base directory when adding files to the ZIP.
|
|
151
|
+
*
|
|
152
|
+
* - This portion of the path is **not included** in stored ZIP entry paths.
|
|
153
|
+
*
|
|
154
|
+
* - Useful for controlling relative paths inside the archive.
|
|
155
|
+
*
|
|
156
|
+
* For example, to add all files under `c:/abc/123/myAppDir`, this property could be set to
|
|
157
|
+
* `c:/abc/123`, and `myAppDir/*` would be passed to `AppendFiles`.
|
|
158
|
+
*
|
|
159
|
+
* The path stored in the ZIP would begin with `myAppDir/`.
|
|
160
|
+
*/
|
|
161
|
+
appendFromDir: string
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* `(Windows only, for creating self-extracting EXE's)`
|
|
165
|
+
*
|
|
166
|
+
* Specifies the name of an executable inside a self-extracting EXE that runs automatically after
|
|
167
|
+
* extraction.
|
|
168
|
+
*/
|
|
169
|
+
autoRun: string
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* `(Windows only, for creating self-extracting EXE's)`
|
|
173
|
+
*
|
|
174
|
+
* Command-line arguments passed to the `AutoRun` executable.
|
|
175
|
+
*/
|
|
176
|
+
autoRunParams: string
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* `(Windows only, for creating self-extracting EXE's)`
|
|
180
|
+
*
|
|
181
|
+
* If `_TRUE_`, the EXE being created will automatically select and create a temporary directory
|
|
182
|
+
* for unzipping.
|
|
183
|
+
*
|
|
184
|
+
* This property is often used together with `AutoRun` to create a self-extracting EXE that
|
|
185
|
+
* automatically unzips to a temporary directory and runs a setup program, such as `setup.exe`,
|
|
186
|
+
* without user interaction.
|
|
187
|
+
*
|
|
188
|
+
* **Note:** To create a self-extracting EXE with no user interaction, set the following
|
|
189
|
+
* properties:
|
|
190
|
+
*
|
|
191
|
+
* `ExeSilentProgress = _FALSE_`
|
|
192
|
+
*
|
|
193
|
+
* `ExeNoInterface = _TRUE_`
|
|
194
|
+
*
|
|
195
|
+
* `ExeFinishNotifier = _FALSE_`
|
|
196
|
+
*
|
|
197
|
+
* The default value is `_FALSE_`.
|
|
198
|
+
*/
|
|
199
|
+
autoTemp: boolean
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Controls whether filename matching is case-sensitive.
|
|
203
|
+
*
|
|
204
|
+
* - Affects methods such as `EntryMatching` and `UnzipMatching`.
|
|
205
|
+
*
|
|
206
|
+
* - Default: `_FALSE_`
|
|
207
|
+
*/
|
|
208
|
+
caseSensitive: boolean
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* `(Windows only)`
|
|
212
|
+
*
|
|
213
|
+
* If `_TRUE_`, clears the Windows archive attribute after files are successfully added to the
|
|
214
|
+
* ZIP.
|
|
215
|
+
*
|
|
216
|
+
* The archive attribute indicates that a file has changed since the last backup.
|
|
217
|
+
*
|
|
218
|
+
* The default value is `_FALSE_`.
|
|
219
|
+
*/
|
|
220
|
+
clearArchiveAttribute: boolean
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* If `_TRUE_`, removes the read-only attribute from extracted files.
|
|
224
|
+
*
|
|
225
|
+
* If `_FALSE_`, the read-only attribute remains unchanged.
|
|
226
|
+
*
|
|
227
|
+
* The default value is `_FALSE_`.
|
|
228
|
+
*/
|
|
229
|
+
clearReadOnlyAttr: boolean
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Sets or retrieves the global ZIP file comment.
|
|
233
|
+
*
|
|
234
|
+
* The default value is the empty string.
|
|
235
|
+
*/
|
|
236
|
+
comment: string
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Password used to extract encrypted ZIP archives.
|
|
240
|
+
*
|
|
241
|
+
* - Required to unzip encrypted entries.
|
|
242
|
+
*
|
|
243
|
+
* - Encrypted ZIP files may still be opened without a password, but their contents cannot be
|
|
244
|
+
* extracted until the correct password is provided.
|
|
245
|
+
*
|
|
246
|
+
* The default value is the empty string.
|
|
247
|
+
*/
|
|
248
|
+
decryptPassword: string
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* If `_TRUE_`, removes all directory path information when adding files.
|
|
252
|
+
*
|
|
253
|
+
* Only filenames are stored in the ZIP.
|
|
254
|
+
*
|
|
255
|
+
* The default value is `_FALSE_`.
|
|
256
|
+
*/
|
|
257
|
+
discardPaths: boolean
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Specifies the AES encryption key length.
|
|
261
|
+
*
|
|
262
|
+
* - Valid values: `128`, `192`, or `256`
|
|
263
|
+
*
|
|
264
|
+
* The default value is `128`.
|
|
265
|
+
*/
|
|
266
|
+
encryptKeyLength: number
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Password used when creating encrypted ZIP archives.
|
|
270
|
+
*
|
|
271
|
+
* The default value is the empty string.
|
|
272
|
+
*/
|
|
273
|
+
encryptPassword: string
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Specifies encryption mode:
|
|
277
|
+
*
|
|
278
|
+
* - `0` → No encryption
|
|
279
|
+
*
|
|
280
|
+
* - `4` → WinZip-compatible AES encryption
|
|
281
|
+
*
|
|
282
|
+
* **Important:** `Encryption` and `PasswordProtect` are mutually exclusive.
|
|
283
|
+
*
|
|
284
|
+
* If `PasswordProtect = _TRUE_`, then `Encryption` should be `0`.
|
|
285
|
+
*
|
|
286
|
+
* The default value is `0`.
|
|
287
|
+
*/
|
|
288
|
+
encryption: number
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* `(Windows only, for creating self-extracting EXE's)`
|
|
292
|
+
*
|
|
293
|
+
* Default extraction directory shown in the self-extracting EXE user interface.
|
|
294
|
+
*
|
|
295
|
+
* The default value is the empty string.
|
|
296
|
+
*/
|
|
297
|
+
exeDefaultDir: string
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* `(Windows only, for creating self-extracting EXE's)`
|
|
301
|
+
*
|
|
302
|
+
* If `_TRUE_`, displays a completion dialog after extraction finishes.
|
|
303
|
+
*
|
|
304
|
+
* The default value is `_FALSE_`.
|
|
305
|
+
*/
|
|
306
|
+
exeFinishNotifier: boolean
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* `(Windows only, for creating self-extracting EXE's)`
|
|
310
|
+
*
|
|
311
|
+
* Path to an `.ico` file used as the EXE icon.
|
|
312
|
+
*
|
|
313
|
+
* This feature is only available when the application creating the EXE is 32-bit.
|
|
314
|
+
*
|
|
315
|
+
* The default value is the empty string.
|
|
316
|
+
*/
|
|
317
|
+
exeIconFile: string
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* `(Windows only, for creating self-extracting EXE's)`
|
|
321
|
+
*
|
|
322
|
+
* If `_TRUE_`, runs the self-extracting EXE without displaying the main user interface.
|
|
323
|
+
*
|
|
324
|
+
* The default value is `_FALSE_`.
|
|
325
|
+
*/
|
|
326
|
+
exeNoInterface: boolean
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* `(Windows only, for creating self-extracting EXE's)`
|
|
330
|
+
*
|
|
331
|
+
* Controls whether a progress dialog is shown during extraction.
|
|
332
|
+
*
|
|
333
|
+
* If `ExeNoInterface = _FALSE_`, the progress bar appears within the main dialog and this
|
|
334
|
+
* property has no effect.
|
|
335
|
+
*
|
|
336
|
+
* The default value is `_FALSE_`.
|
|
337
|
+
*/
|
|
338
|
+
exeSilentProgress: boolean
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* `(Windows only, for creating self-extracting EXE's)`
|
|
342
|
+
*
|
|
343
|
+
* Title displayed in the self-extracting EXE dialog.
|
|
344
|
+
*
|
|
345
|
+
* The default value is the empty string.
|
|
346
|
+
*/
|
|
347
|
+
exeTitle: string
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* `(Windows only, for creating self-extracting EXE's)`
|
|
351
|
+
*
|
|
352
|
+
* Caption text displayed in the self-extracting EXE dialog.
|
|
353
|
+
*
|
|
354
|
+
* The default value is the empty string.
|
|
355
|
+
*/
|
|
356
|
+
exeUnzipCaption: string
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* `(Windows only, for creating self-extracting EXE's)`
|
|
360
|
+
*
|
|
361
|
+
* Specifies a predefined extraction directory.
|
|
362
|
+
*
|
|
363
|
+
* - Supports environment variables such as `%TEMP%`.
|
|
364
|
+
*
|
|
365
|
+
* - UNC paths are not supported.
|
|
366
|
+
*
|
|
367
|
+
* The default value is the empty string.
|
|
368
|
+
*/
|
|
369
|
+
exeUnzipDir: string
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* If `_TRUE_`, waits for the AutoRun executable to finish before exiting.
|
|
373
|
+
*
|
|
374
|
+
* If `_FALSE_`, the self-extracting EXE may exit before the AutoRun executable completes.
|
|
375
|
+
*
|
|
376
|
+
* The default value is `_TRUE_`.
|
|
377
|
+
*/
|
|
378
|
+
exeWaitForSetup: boolean
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Allows for an XML config document to be used to specify all possible options for
|
|
382
|
+
* self-extracting EXEs. This property is a string containing the XML config document.
|
|
383
|
+
*
|
|
384
|
+
* The XML should have this format:
|
|
385
|
+
*
|
|
386
|
+
* \<SfxConfig\>
|
|
387
|
+
*
|
|
388
|
+
* \<ErrPwdTitle\>Title for incorrect password dialog\</ErrPwdTitle\>
|
|
389
|
+
*
|
|
390
|
+
* \<ErrPwdCaption\>Caption for incorrect password dialog\</ErrPwdCaption\>
|
|
391
|
+
*
|
|
392
|
+
* \<FinOkBtn\>Text on finish notifier button\</FinOkBtn\>
|
|
393
|
+
*
|
|
394
|
+
* \<PwdOkBtn\>Text on password challenge dialog's "OK" button.\</PwdOkBtn\>
|
|
395
|
+
*
|
|
396
|
+
* \<PwdCancelBtn\>Text on password challenge dialog's Cancel button.\</PwdCancelBtn\>
|
|
397
|
+
*
|
|
398
|
+
* \<ErrInvalidPassword\>Incorrect password error message.\</ErrInvalidPassword\>
|
|
399
|
+
*
|
|
400
|
+
* \<MainUnzipBtn\>Text on main dialog's unzip button.
|
|
401
|
+
* **Note:** The `MainUnzipLabel` must also be set for this to take effect.\</MainUnzipBtn\>
|
|
402
|
+
*
|
|
403
|
+
* \<MainCloseBtn\>Text on main dialog's quit/exit button.
|
|
404
|
+
* **Note:** The `MainUnzipLabel` must also be set for this to take effect.\</MainCloseBtn\>
|
|
405
|
+
*
|
|
406
|
+
* \<MainBrowseBtn\>Text on main dialog's browse-for-directory button.
|
|
407
|
+
* **Note:** The `MainUnzipLabel` must also be set for this to take effect.\</MainBrowseBtn\>
|
|
408
|
+
*
|
|
409
|
+
* \<MainUnzipLabel\>Caption displayed in main dialog.\</MainUnzipLabel\>
|
|
410
|
+
*
|
|
411
|
+
* \<AutoTemp\>0 or 1 (Maps to the `AutoTemp` property)\</AutoTemp\>
|
|
412
|
+
*
|
|
413
|
+
* \<Cleanup\>0 or 1 (If 1, extracted files are deleted after the `SetupExe` is run.)\</Cleanup\>
|
|
414
|
+
*
|
|
415
|
+
* \<Debug\>0 or 1 (If 1, the EXE will not extract any files.)\</Debug\>
|
|
416
|
+
*
|
|
417
|
+
* \<Verbose\>0 or 1 (If 1, verbose information is written to the log.)\</Verbose\>
|
|
418
|
+
*
|
|
419
|
+
* \<ShowFin\>0 or 1 (Maps to the `ExeFinishNotifier` property)\</ShowFin\>
|
|
420
|
+
*
|
|
421
|
+
* \<ShowMain\>0 or 1 (Maps to the `ExeNoInterface` property)\</ShowMain\>
|
|
422
|
+
*
|
|
423
|
+
* \<ShowProgress\>0 or 1 (Maps to the `ExeSilentProgress` property)\</ShowProgress\>
|
|
424
|
+
*
|
|
425
|
+
* \<WaitForSetup\>0 or 1 (Maps to the `ExeWaitForSetup` property)\</WaitForSetup\>
|
|
426
|
+
*
|
|
427
|
+
* \<Encryption\>0 or 1 (1 = Yes, 0 = No)\</Encryption\>
|
|
428
|
+
*
|
|
429
|
+
* \<KeyLength\>128|192|256\</KeyLength\>
|
|
430
|
+
*
|
|
431
|
+
* \<SetupExe\>EXE to run after extracting. (Maps to the `AutoRun` property)\</SetupExe\>
|
|
432
|
+
*
|
|
433
|
+
* \<UnzipDir\>Pre-defined unzip directory. (Maps to the `ExeUnzipDir` property. UNC paths, such
|
|
434
|
+
* as \\\\servername\\path, are not supported.)\</UnzipDir\>
|
|
435
|
+
*
|
|
436
|
+
* \<DefaultDir\>Default unzip directory to appear in the main dialog. (Maps to the
|
|
437
|
+
* `ExeDefaultDir` property)\</DefaultDir\>
|
|
438
|
+
*
|
|
439
|
+
* \<IconFile\>Icon file to be used (Maps to the `ExeIconFile` property)\</IconFile\>
|
|
440
|
+
*
|
|
441
|
+
* \<MainTitle\>Maps to the `ExeTitle` property.\</MainTitle\>
|
|
442
|
+
*
|
|
443
|
+
* \<MainCaption\>Maps to the `ExeUnzipCaption` property.\</MainCaption\>
|
|
444
|
+
*
|
|
445
|
+
* \<FinTitle\>Title for the finish notifier dialog.\</FinTitle\>
|
|
446
|
+
*
|
|
447
|
+
* \<FinCaption\>Caption for the finish notifier dialog.\</FinCaption\>
|
|
448
|
+
*
|
|
449
|
+
* \<ProgressTitle\>Title for the progress dialog.\</ProgressTitle\>
|
|
450
|
+
*
|
|
451
|
+
* \<ProgressCaption\>Caption for the progress dialog.\</ProgressCaption\>
|
|
452
|
+
*
|
|
453
|
+
* \<PwTitle\>Title for the password challenge dialog.\</PwTitle\>
|
|
454
|
+
*
|
|
455
|
+
* \<PwCaption\>Caption for the password challenge dialog.\</PwCaption\>
|
|
456
|
+
*
|
|
457
|
+
* \</SfxConfig\>
|
|
458
|
+
*
|
|
459
|
+
* A self-extracting EXE can be run from the command line with the
|
|
460
|
+
* `-log {logFilePath}` option to create a log with information for debugging.
|
|
461
|
+
*/
|
|
462
|
+
exeXmlConfig: string
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Number of files in the ZIP, excluding directory entries.
|
|
466
|
+
*
|
|
467
|
+
* This property is read-only.
|
|
468
|
+
*/
|
|
469
|
+
readonly fileCount: number
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Path of the ZIP file to be written or overwritten.
|
|
473
|
+
*
|
|
474
|
+
* The default value is the empty string.
|
|
475
|
+
*/
|
|
476
|
+
fileName: string
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Indicates whether minor ZIP format problems were detected when opening the ZIP archive.
|
|
480
|
+
*
|
|
481
|
+
* This property is read-only.
|
|
482
|
+
*/
|
|
483
|
+
readonly hasZipFormatErrors: boolean
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Interval, in milliseconds, between abort-check callbacks.
|
|
487
|
+
*
|
|
488
|
+
* If set to `0`, abort callbacks are disabled.
|
|
489
|
+
*
|
|
490
|
+
* The default value is `0`.
|
|
491
|
+
*/
|
|
492
|
+
heartbeatMs: number
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* If `_TRUE_`, files that cannot be read, written, or created due to filesystem permission errors
|
|
496
|
+
* are skipped.
|
|
497
|
+
*
|
|
498
|
+
* If `_FALSE_`, any access-denied error causes the ZIP operation to fail.
|
|
499
|
+
*
|
|
500
|
+
* The default value is `_TRUE_`.
|
|
501
|
+
*/
|
|
502
|
+
ignoreAccessDenied: boolean
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Total number of entries in the ZIP, including both files and directories.
|
|
506
|
+
*
|
|
507
|
+
* This property is read-only.
|
|
508
|
+
*/
|
|
509
|
+
readonly numEntries: number
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* Specifies the OEM code page used for ZIP filename encoding.
|
|
513
|
+
*
|
|
514
|
+
* Defaults to the OEM code page of the current computer.
|
|
515
|
+
*/
|
|
516
|
+
oemCodePage: number
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* If `_TRUE_`, existing files are overwritten during extraction.
|
|
520
|
+
*
|
|
521
|
+
* The default value is `_TRUE_`.
|
|
522
|
+
*/
|
|
523
|
+
overwriteExisting: boolean
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Indicates whether the ZIP uses legacy Zip 2.0 password protection.
|
|
527
|
+
*
|
|
528
|
+
* This property is set automatically when a ZIP archive is opened by any of the `Open*` methods,
|
|
529
|
+
* such as `OpenZip`, `OpenFromMemory`, `OpenBd`, and related methods.
|
|
530
|
+
*
|
|
531
|
+
* **Important:** `PasswordProtect` and `Encryption` are mutually exclusive.
|
|
532
|
+
*
|
|
533
|
+
* If `PasswordProtect = _TRUE_`, then `Encryption` should be `0`.
|
|
534
|
+
*
|
|
535
|
+
* The default value is `_FALSE_`.
|
|
536
|
+
*/
|
|
537
|
+
passwordProtect: boolean
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* Gets or sets a path prefix that is prepended to ZIP entry paths for
|
|
541
|
+
* files appended from the local filesystem.
|
|
542
|
+
*
|
|
543
|
+
* This is useful when you want all extracted files to appear under a specific subdirectory.
|
|
544
|
+
*
|
|
545
|
+
* This property affects only the following methods:
|
|
546
|
+
*
|
|
547
|
+
* -
|
|
548
|
+
* `AppendFiles`
|
|
549
|
+
*
|
|
550
|
+
* -
|
|
551
|
+
* `AppendFilesEx`
|
|
552
|
+
*
|
|
553
|
+
* -
|
|
554
|
+
* `AddFile`
|
|
555
|
+
*
|
|
556
|
+
* -
|
|
557
|
+
* `AppendOneFileOrDir`
|
|
558
|
+
*
|
|
559
|
+
* The `PathPrefix` value is prepended to the stored ZIP
|
|
560
|
+
* path for each appended filesystem file.
|
|
561
|
+
*
|
|
562
|
+
* For example, set PathPrefix to subdir/ so that files are stored in the ZIP with subdir/
|
|
563
|
+
* prepended to their paths. When extracted, the files will be placed under the subdir directory.
|
|
564
|
+
*
|
|
565
|
+
* This property does not affect entries added entirely from memory,
|
|
566
|
+
* such as entries added using:
|
|
567
|
+
*
|
|
568
|
+
* -
|
|
569
|
+
* `AddString`
|
|
570
|
+
*
|
|
571
|
+
* -
|
|
572
|
+
* `AddData`
|
|
573
|
+
*
|
|
574
|
+
* -
|
|
575
|
+
* `AddBd`
|
|
576
|
+
*
|
|
577
|
+
* -
|
|
578
|
+
* `AddSb`
|
|
579
|
+
*
|
|
580
|
+
* For in-memory entries, the ZIP entry path is determined solely by
|
|
581
|
+
* the filename/path argument passed to the method.
|
|
582
|
+
*
|
|
583
|
+
* The default value is the empty string.
|
|
584
|
+
*/
|
|
585
|
+
pathPrefix: string
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* Controls the granularity of PercentDone event callbacks.
|
|
589
|
+
*
|
|
590
|
+
* This property is only applicable in programming environments that support event callbacks.
|
|
591
|
+
*
|
|
592
|
+
* The value specifies what should be considered `100%` complete for progress reporting purposes.
|
|
593
|
+
*
|
|
594
|
+
* - A value of `100` provides whole-percent progress updates.
|
|
595
|
+
*
|
|
596
|
+
* - A value of `1000` provides tenth-percent granularity.
|
|
597
|
+
*
|
|
598
|
+
* - For example, with a scale of `1000`, a PercentDone callback value of `453` represents `45.3%`
|
|
599
|
+
* complete.
|
|
600
|
+
*
|
|
601
|
+
* Increasing this value allows for more frequent and finer-grained progress callbacks during
|
|
602
|
+
* long-running operations.
|
|
603
|
+
*
|
|
604
|
+
* The value is automatically clamped to the range:
|
|
605
|
+
*
|
|
606
|
+
* - Minimum: `10`
|
|
607
|
+
*
|
|
608
|
+
* - Maximum: `100000`
|
|
609
|
+
*
|
|
610
|
+
* The default value is `100`.
|
|
611
|
+
*/
|
|
612
|
+
percentDoneScale: number
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Directory used for temporary files during ZIP operations.
|
|
616
|
+
*
|
|
617
|
+
* When overwriting an existing ZIP file, a temporary file is used to avoid corrupting the
|
|
618
|
+
* original ZIP if an error occurs.
|
|
619
|
+
*
|
|
620
|
+
* The default value depends on the runtime environment.
|
|
621
|
+
*/
|
|
622
|
+
tempDir: string
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* If `_TRUE_`, creates ZIPX archives using the most appropriate compression method for each file.
|
|
626
|
+
*
|
|
627
|
+
* The default value is `_FALSE_`.
|
|
628
|
+
*/
|
|
629
|
+
zipx: boolean
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Default compression algorithm used when creating ZIPX archives.
|
|
633
|
+
*
|
|
634
|
+
* - Possible values include:
|
|
635
|
+
*
|
|
636
|
+
* - `deflate`
|
|
637
|
+
*
|
|
638
|
+
* - `ppmd`
|
|
639
|
+
*
|
|
640
|
+
* - `lzma`
|
|
641
|
+
*
|
|
642
|
+
* - `bzip2`
|
|
643
|
+
*
|
|
644
|
+
* - `deflate64`
|
|
645
|
+
*
|
|
646
|
+
* The default value is `deflate`.
|
|
647
|
+
*/
|
|
648
|
+
zipxDefaultAlg: string
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* Specifies the character encoding used to convert the decrypt password into its binary byte
|
|
652
|
+
* representation for legacy password-protected ZIP archives that use Zip 2.0 encryption.
|
|
653
|
+
*
|
|
654
|
+
* The default value is `ansi`.
|
|
655
|
+
*
|
|
656
|
+
* Other possible values include:
|
|
657
|
+
*
|
|
658
|
+
* - `cp850`
|
|
659
|
+
*
|
|
660
|
+
* - `cp437`
|
|
661
|
+
*
|
|
662
|
+
* - Any supported Windows or OEM code page listed at the link below.
|
|
663
|
+
*
|
|
664
|
+
* This property applies only to older Zip 2.0 password protection and is not used for
|
|
665
|
+
* AES-encrypted ZIP archives.
|
|
666
|
+
*/
|
|
667
|
+
pwdProtCharset: string
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Advanced options for uncommon scenarios.
|
|
671
|
+
*
|
|
672
|
+
* - `ForceZip64` → Forces ZIP64 format even when not required.
|
|
673
|
+
*
|
|
674
|
+
* The default value is the empty string.
|
|
675
|
+
*/
|
|
676
|
+
uncommonOptions: string
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Prevents extraction of files larger than the specified uncompressed size.
|
|
680
|
+
*
|
|
681
|
+
* A value of `0` means no size limit.
|
|
682
|
+
*
|
|
683
|
+
* The default value is `0`.
|
|
684
|
+
*/
|
|
685
|
+
maxUncompressSize: number
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Minimum last-modified timestamp for files processed during add or extract operations.
|
|
689
|
+
*
|
|
690
|
+
* Supports ISO 8601 date/time formats, including:
|
|
691
|
+
*
|
|
692
|
+
* - `YYYY-MM-DD`
|
|
693
|
+
* Example: `2024-07-31`
|
|
694
|
+
*
|
|
695
|
+
* - `YYYY-MM-DDTHH:MM:SS±HH:MM`
|
|
696
|
+
* Example: `2024-07-31T12:34:56+02:00`
|
|
697
|
+
*
|
|
698
|
+
* - `YYYY-MM-DDTHH:MM:SSZ`
|
|
699
|
+
* Example: `2024-07-31T12:34:56Z`
|
|
700
|
+
*
|
|
701
|
+
* The default value is the empty string, meaning no minimum date restriction.
|
|
702
|
+
*/
|
|
703
|
+
minDate: string
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Maximum last-modified timestamp for files processed during add or extract operations.
|
|
707
|
+
*
|
|
708
|
+
* Files having modification timestamps later than this value are skipped.
|
|
709
|
+
*
|
|
710
|
+
* Supports ISO 8601 date/time formats, including:
|
|
711
|
+
*
|
|
712
|
+
* - `YYYY-MM-DD`
|
|
713
|
+
* Example: `2024-07-31`
|
|
714
|
+
*
|
|
715
|
+
* - `YYYY-MM-DDTHH:MM:SS±HH:MM`
|
|
716
|
+
* Example: `2024-07-31T12:34:56+02:00`
|
|
717
|
+
*
|
|
718
|
+
* - `YYYY-MM-DDTHH:MM:SSZ`
|
|
719
|
+
* Example: `2024-07-31T12:34:56Z`
|
|
720
|
+
*
|
|
721
|
+
* The default value is the empty string, meaning no maximum date restriction.
|
|
722
|
+
*/
|
|
723
|
+
maxDate: string
|
|
724
|
+
|
|
725
|
+
// ---- Methods ----
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Adds a file extension to the internal "no-compression" list.
|
|
729
|
+
*
|
|
730
|
+
* Files having these extensions are stored without compression because they are already
|
|
731
|
+
* compressed or because compression would provide little benefit.
|
|
732
|
+
*
|
|
733
|
+
* For example:
|
|
734
|
+
*
|
|
735
|
+
* - `.zip`
|
|
736
|
+
*
|
|
737
|
+
* - `.jpg`
|
|
738
|
+
*
|
|
739
|
+
* - `.png`
|
|
740
|
+
*
|
|
741
|
+
* - `.gz`
|
|
742
|
+
*
|
|
743
|
+
* The extension may be specified with or without the leading dot.
|
|
744
|
+
*
|
|
745
|
+
* Additional extensions remain active for the lifetime of the Zip object unless removed with
|
|
746
|
+
* `RemoveNoCompressExtension`.
|
|
747
|
+
*/
|
|
748
|
+
addNoCompressExtension(fileExtension: string): void
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* Adds one or more files matching a wildcard pattern.
|
|
752
|
+
*
|
|
753
|
+
* - The wildcard character `*` matches zero or more characters.
|
|
754
|
+
*
|
|
755
|
+
* - If `recurse = _TRUE_`, subdirectories are processed recursively.
|
|
756
|
+
*
|
|
757
|
+
* - If `recurse = _FALSE_`, only the current directory is searched.
|
|
758
|
+
*
|
|
759
|
+
* For example:
|
|
760
|
+
*
|
|
761
|
+
* `AppendFiles("c:/temp/*.txt", _FALSE_)`
|
|
762
|
+
*
|
|
763
|
+
* This method only updates the in-memory ZIP object. The ZIP file itself is not written until a
|
|
764
|
+
* `Write*` method is called.
|
|
765
|
+
*
|
|
766
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
767
|
+
* {@link Zip.appendFilesAsync}.
|
|
768
|
+
*
|
|
769
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
770
|
+
* {@link Zip.lastErrorText}.
|
|
771
|
+
*/
|
|
772
|
+
appendFiles(filePattern: string, recurse: boolean): void
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Asynchronous form of {@link Zip.appendFiles}: the same call on a native worker thread,
|
|
776
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
777
|
+
* except {@link Zip.abort} (which cancels it) and the {@link Zip.onPercentDone} /
|
|
778
|
+
* {@link Zip.onProgressInfo} callbacks, which report progress while it runs.
|
|
779
|
+
*
|
|
780
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
781
|
+
* {@link Zip.lastErrorText}.
|
|
782
|
+
*/
|
|
783
|
+
appendFilesAsync(filePattern: string, recurse: boolean): Promise<void>
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* Advanced version of `AppendFiles` with additional filtering and path options.
|
|
787
|
+
*
|
|
788
|
+
* - `saveExtraPath` controls whether the extra leading path information from the `filePattern` is
|
|
789
|
+
* preserved in the ZIP.
|
|
790
|
+
*
|
|
791
|
+
* - `archiveOnly` applies only on Windows and limits processing to files having the archive
|
|
792
|
+
* attribute set.
|
|
793
|
+
*
|
|
794
|
+
* - `includeHidden` controls whether hidden files are included.
|
|
795
|
+
*
|
|
796
|
+
* - `includeSystem` controls whether files with the System attribute are included.
|
|
797
|
+
*
|
|
798
|
+
* This method adds references to files in the in-memory ZIP object. No ZIP file is written until
|
|
799
|
+
* a `Write*` method is called.
|
|
800
|
+
*
|
|
801
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
802
|
+
* {@link Zip.appendFilesExAsync}.
|
|
803
|
+
*
|
|
804
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
805
|
+
* {@link Zip.lastErrorText}.
|
|
806
|
+
*/
|
|
807
|
+
appendFilesEx(filePattern: string, recurse: boolean, saveExtraPath: boolean, archiveOnly: boolean, includeHidden: boolean, includeSystem: boolean): void
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* Asynchronous form of {@link Zip.appendFilesEx}: the same call on a native worker thread,
|
|
811
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
812
|
+
* except {@link Zip.abort} (which cancels it) and the {@link Zip.onPercentDone} /
|
|
813
|
+
* {@link Zip.onProgressInfo} callbacks, which report progress while it runs.
|
|
814
|
+
*
|
|
815
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
816
|
+
* {@link Zip.lastErrorText}.
|
|
817
|
+
*/
|
|
818
|
+
appendFilesExAsync(filePattern: string, recurse: boolean, saveExtraPath: boolean, archiveOnly: boolean, includeHidden: boolean, includeSystem: boolean): Promise<void>
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* **Note:** This method is currently not working and will be fixed in v11.5.0
|
|
822
|
+
*
|
|
823
|
+
* Adds all entries from another existing ZIP archive into the current ZIP object.
|
|
824
|
+
*
|
|
825
|
+
* The `zipPath` argument specifies the path of a ZIP file located in the local filesystem.
|
|
826
|
+
*
|
|
827
|
+
* All entries from the specified ZIP archive are appended to the current in-memory ZIP object.
|
|
828
|
+
*
|
|
829
|
+
* The ZIP archive itself is not rewritten until a `Write*` method is called.
|
|
830
|
+
*
|
|
831
|
+
* This method is useful for merging the contents of multiple ZIP archives into a single ZIP.
|
|
832
|
+
*
|
|
833
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
834
|
+
* {@link Zip.lastErrorText}.
|
|
835
|
+
*/
|
|
836
|
+
appendZip(zipPath: string): void
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* Closes the currently open ZIP archive and clears all entries from the Zip object.
|
|
840
|
+
*
|
|
841
|
+
* This method has the same effect as calling `NewZip` without specifying a filename.
|
|
842
|
+
*/
|
|
843
|
+
closeZip(): void
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
* Removes a ZIP entry from the current ZIP object.
|
|
847
|
+
*
|
|
848
|
+
* The ZIP file itself is not rewritten until a `Write*` method is called.
|
|
849
|
+
*
|
|
850
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
851
|
+
* {@link Zip.lastErrorText}.
|
|
852
|
+
*/
|
|
853
|
+
deleteEntry(entry: ZipEntry): void
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* Adds a directory name to the exclusion list used by recursive append operations.
|
|
857
|
+
*
|
|
858
|
+
* - All directories having the specified name are skipped.
|
|
859
|
+
*
|
|
860
|
+
* - The comparison is case-insensitive.
|
|
861
|
+
*
|
|
862
|
+
* - Call multiple times to exclude multiple directory names.
|
|
863
|
+
*
|
|
864
|
+
* This affects methods such as `AppendFiles` and `AppendFilesEx`.
|
|
865
|
+
*/
|
|
866
|
+
excludeDir(dirName: string): void
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* Extracts files from a Chilkat-created self-extracting EXE.
|
|
870
|
+
*
|
|
871
|
+
* - Files are extracted into `dirPath`.
|
|
872
|
+
*
|
|
873
|
+
* - Subdirectories are automatically created as needed.
|
|
874
|
+
*
|
|
875
|
+
* - If the EXE is encrypted, `DecryptPassword` must be set before extraction.
|
|
876
|
+
*
|
|
877
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
878
|
+
* {@link Zip.extractExeAsync}.
|
|
879
|
+
*
|
|
880
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
881
|
+
* {@link Zip.lastErrorText}.
|
|
882
|
+
*/
|
|
883
|
+
extractExe(exePath: string, dirPath: string): void
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* Asynchronous form of {@link Zip.extractExe}: the same call on a native worker thread,
|
|
887
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
888
|
+
* except {@link Zip.abort} (which cancels it) and the {@link Zip.onPercentDone} /
|
|
889
|
+
* {@link Zip.onProgressInfo} callbacks, which report progress while it runs.
|
|
890
|
+
*
|
|
891
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
892
|
+
* {@link Zip.lastErrorText}.
|
|
893
|
+
*/
|
|
894
|
+
extractExeAsync(exePath: string, dirPath: string): Promise<void>
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* Returns the ZIP directory structure as an XML document.
|
|
898
|
+
*
|
|
899
|
+
* The returned XML contains information about the entries currently contained within the ZIP
|
|
900
|
+
* archive, including files and directories.
|
|
901
|
+
*
|
|
902
|
+
* This method is useful for inspecting ZIP contents without extracting files.
|
|
903
|
+
*
|
|
904
|
+
* Returns the XML document as a string.
|
|
905
|
+
*
|
|
906
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
907
|
+
* {@link Zip.lastErrorText}.
|
|
908
|
+
*/
|
|
909
|
+
getDirectoryAsXML(): string
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* `(Windows only, for creating self-extracting EXE's)`
|
|
913
|
+
*
|
|
914
|
+
* Returns the value of a configuration parameter embedded within a self-extracting EXE.
|
|
915
|
+
*
|
|
916
|
+
* The `name` argument should be one of the XML tag names described in the `ExeXmlConfig` property
|
|
917
|
+
* documentation.
|
|
918
|
+
*
|
|
919
|
+
* For example:
|
|
920
|
+
*
|
|
921
|
+
* - `MainTitle`
|
|
922
|
+
*
|
|
923
|
+
* - `MainCaption`
|
|
924
|
+
*
|
|
925
|
+
* - `SetupExe`
|
|
926
|
+
*
|
|
927
|
+
* Returns the parameter value as a string.
|
|
928
|
+
*
|
|
929
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
930
|
+
* {@link Zip.lastErrorText}.
|
|
931
|
+
*/
|
|
932
|
+
getExeConfigParam(name: string): string
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* Checks whether a file extension is contained in the internal "no-compression" extension list.
|
|
936
|
+
*
|
|
937
|
+
* Files having extensions in this list are stored without compression because they are typically
|
|
938
|
+
* already compressed.
|
|
939
|
+
*
|
|
940
|
+
* The extension may be specified with or without the leading dot.
|
|
941
|
+
*
|
|
942
|
+
* For example, both of the following are valid:
|
|
943
|
+
*
|
|
944
|
+
* - `.jpg`
|
|
945
|
+
*
|
|
946
|
+
* - `jpg`
|
|
947
|
+
*
|
|
948
|
+
* Returns `_TRUE_` if the extension exists in the list, otherwise returns `_FALSE_`.
|
|
949
|
+
*/
|
|
950
|
+
isNoCompressExtension(fileExtension: string): boolean
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* Checks whether a ZIP archive uses legacy Zip 2.0 password protection.
|
|
954
|
+
*
|
|
955
|
+
* The `zipPath` argument specifies the path of a ZIP file in the local filesystem.
|
|
956
|
+
*
|
|
957
|
+
* This method checks only for traditional Zip 2.0 password protection.
|
|
958
|
+
*
|
|
959
|
+
* Returns `_TRUE_` if the ZIP archive is password protected, otherwise returns `_FALSE_`.
|
|
960
|
+
*/
|
|
961
|
+
isPasswordProtected(zipPath: string): boolean
|
|
962
|
+
|
|
963
|
+
/**
|
|
964
|
+
* Initializes a new empty ZIP archive.
|
|
965
|
+
*
|
|
966
|
+
* - If another ZIP archive is currently open, it is closed.
|
|
967
|
+
*
|
|
968
|
+
* - All existing in-memory ZIP entries are discarded.
|
|
969
|
+
*
|
|
970
|
+
* - The `FileName` property is set to `zipPath`.
|
|
971
|
+
*
|
|
972
|
+
* No ZIP file is actually created until a `Write*` method is called.
|
|
973
|
+
*
|
|
974
|
+
* This method resets the Zip object to a clean empty state.
|
|
975
|
+
*
|
|
976
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
977
|
+
* {@link Zip.lastErrorText}.
|
|
978
|
+
*/
|
|
979
|
+
newZip(zipPath: string): void
|
|
980
|
+
|
|
981
|
+
/**
|
|
982
|
+
* `(Windows only)`
|
|
983
|
+
*
|
|
984
|
+
* Opens a ZIP archive embedded as a resource within a Windows executable.
|
|
985
|
+
*
|
|
986
|
+
* - `exeFilename` specifies the EXE file path.
|
|
987
|
+
*
|
|
988
|
+
* - `resourceName` specifies the embedded resource name containing the ZIP data.
|
|
989
|
+
*
|
|
990
|
+
* This method is useful when ZIP archives are packaged within Windows applications.
|
|
991
|
+
*
|
|
992
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
993
|
+
* {@link Zip.lastErrorText}.
|
|
994
|
+
*/
|
|
995
|
+
openEmbedded(exeFilename: string, resourceName: string): void
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* Opens a ZIP archive from the local filesystem.
|
|
999
|
+
*
|
|
1000
|
+
* The `zipPath` argument specifies the path of the ZIP file to open.
|
|
1001
|
+
*
|
|
1002
|
+
* Encrypted ZIP archives may be opened without providing a password, but encrypted entries cannot
|
|
1003
|
+
* be extracted until the correct password is provided using `DecryptPassword`.
|
|
1004
|
+
*
|
|
1005
|
+
* When the ZIP archive is opened:
|
|
1006
|
+
*
|
|
1007
|
+
* - `PasswordProtect` is automatically set if legacy Zip 2.0 encryption is detected.
|
|
1008
|
+
*
|
|
1009
|
+
* - `Encryption` is automatically set if strong encryption is detected.
|
|
1010
|
+
*
|
|
1011
|
+
* - `Encryption = 4` indicates WinZip-compatible AES encryption.
|
|
1012
|
+
*
|
|
1013
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
1014
|
+
* {@link Zip.openZipAsync}.
|
|
1015
|
+
*
|
|
1016
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1017
|
+
* {@link Zip.lastErrorText}.
|
|
1018
|
+
*/
|
|
1019
|
+
openZip(zipPath: string): void
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* Asynchronous form of {@link Zip.openZip}: the same call on a native worker thread,
|
|
1023
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
1024
|
+
* except {@link Zip.abort} (which cancels it) and the {@link Zip.onPercentDone} /
|
|
1025
|
+
* {@link Zip.onProgressInfo} callbacks, which report progress while it runs.
|
|
1026
|
+
*
|
|
1027
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
1028
|
+
* {@link Zip.lastErrorText}.
|
|
1029
|
+
*/
|
|
1030
|
+
openZipAsync(zipPath: string): Promise<void>
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* Efficiently appends additional entries to an existing ZIP archive.
|
|
1034
|
+
*
|
|
1035
|
+
* The `zipPath` argument specifies the path of an existing ZIP archive in the local filesystem.
|
|
1036
|
+
*
|
|
1037
|
+
* This method avoids rewriting existing entries.
|
|
1038
|
+
*
|
|
1039
|
+
* - Existing ZIP entries remain unchanged.
|
|
1040
|
+
*
|
|
1041
|
+
* - New entries are appended to the end of the ZIP archive.
|
|
1042
|
+
*
|
|
1043
|
+
* - The ZIP central directory is updated accordingly.
|
|
1044
|
+
*
|
|
1045
|
+
* This method is typically faster than rebuilding the entire ZIP archive.
|
|
1046
|
+
*
|
|
1047
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
1048
|
+
* {@link Zip.quickAppendAsync}.
|
|
1049
|
+
*
|
|
1050
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1051
|
+
* {@link Zip.lastErrorText}.
|
|
1052
|
+
*/
|
|
1053
|
+
quickAppend(zipPath: string): void
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* Asynchronous form of {@link Zip.quickAppend}: the same call on a native worker thread,
|
|
1057
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
1058
|
+
* except {@link Zip.abort} (which cancels it) and the {@link Zip.onPercentDone} /
|
|
1059
|
+
* {@link Zip.onProgressInfo} callbacks, which report progress while it runs.
|
|
1060
|
+
*
|
|
1061
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
1062
|
+
* {@link Zip.lastErrorText}.
|
|
1063
|
+
*/
|
|
1064
|
+
quickAppendAsync(zipPath: string): Promise<void>
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* Removes a file extension from the internal "no-compression" extension list.
|
|
1068
|
+
*
|
|
1069
|
+
* After removal, files having this extension may be compressed normally.
|
|
1070
|
+
*
|
|
1071
|
+
* The extension may be specified with or without the leading dot.
|
|
1072
|
+
*/
|
|
1073
|
+
removeNoCompressExtension(fileExtension: string): void
|
|
1074
|
+
|
|
1075
|
+
/**
|
|
1076
|
+
* Sets the compression level for all file and data entries currently contained within the ZIP
|
|
1077
|
+
* object.
|
|
1078
|
+
*
|
|
1079
|
+
* - `0` → No compression
|
|
1080
|
+
*
|
|
1081
|
+
* - `9` → Maximum compression
|
|
1082
|
+
*
|
|
1083
|
+
* The default compression level is `6`.
|
|
1084
|
+
*
|
|
1085
|
+
* **Important:** This method should be called after files or data entries have already been added
|
|
1086
|
+
* to the ZIP object.
|
|
1087
|
+
*
|
|
1088
|
+
* The compression level cannot be changed for mapped entries originating from an already-open ZIP
|
|
1089
|
+
* archive.
|
|
1090
|
+
*/
|
|
1091
|
+
setCompressionLevel(level: number): void
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* Specifies a collection of wildcard exclusion patterns used when adding files to the ZIP
|
|
1095
|
+
* archive.
|
|
1096
|
+
*
|
|
1097
|
+
* Each pattern may use the wildcard character `*` to match zero or more characters.
|
|
1098
|
+
*
|
|
1099
|
+
* Files matching any exclusion pattern are skipped.
|
|
1100
|
+
*/
|
|
1101
|
+
setExclusions(excludePatterns: StringArray): void
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* `(Windows only, for creating self-extracting EXE's)`
|
|
1105
|
+
*
|
|
1106
|
+
* Sets a configuration parameter embedded within a self-extracting EXE created by `WriteExe` or
|
|
1107
|
+
* `WriteExe2`.
|
|
1108
|
+
*
|
|
1109
|
+
* The `paramName` should be one of the XML configuration tag names described in the
|
|
1110
|
+
* `ExeXmlConfig` property documentation.
|
|
1111
|
+
*
|
|
1112
|
+
* For example:
|
|
1113
|
+
*
|
|
1114
|
+
* `SetExeConfigParam("MainUnzipBtn","Extract")`
|
|
1115
|
+
*
|
|
1116
|
+
* This changes the text displayed on the self-extractor's main unzip button.
|
|
1117
|
+
*/
|
|
1118
|
+
setExeConfigParam(paramName: string, paramValue: string): void
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* Extracts all files and directories from the ZIP archive.
|
|
1122
|
+
*
|
|
1123
|
+
* - `dirPath` specifies the destination directory.
|
|
1124
|
+
*
|
|
1125
|
+
* - Subdirectories are automatically created as needed.
|
|
1126
|
+
*
|
|
1127
|
+
* Returns the number of files extracted.
|
|
1128
|
+
*
|
|
1129
|
+
* Returns `-1` if a failure occurs.
|
|
1130
|
+
*
|
|
1131
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
1132
|
+
* {@link Zip.unzipAsync}.
|
|
1133
|
+
*/
|
|
1134
|
+
unzip(dirPath: string): number
|
|
1135
|
+
|
|
1136
|
+
/**
|
|
1137
|
+
* Asynchronous form of {@link Zip.unzip}: the same call on a native worker thread,
|
|
1138
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
1139
|
+
* except {@link Zip.abort} (which cancels it) and the {@link Zip.onPercentDone} /
|
|
1140
|
+
* {@link Zip.onProgressInfo} callbacks, which report progress while it runs.
|
|
1141
|
+
*/
|
|
1142
|
+
unzipAsync(dirPath: string): Promise<number>
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* Extracts all files into a single directory.
|
|
1146
|
+
*
|
|
1147
|
+
* All directory path information stored within the ZIP archive is ignored.
|
|
1148
|
+
*
|
|
1149
|
+
* If multiple files have the same filename, later extracted files overwrite earlier ones.
|
|
1150
|
+
*
|
|
1151
|
+
* Returns the number of files extracted, or `-1` on failure.
|
|
1152
|
+
*
|
|
1153
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
1154
|
+
* {@link Zip.unzipIntoAsync}.
|
|
1155
|
+
*/
|
|
1156
|
+
unzipInto(dirPath: string): number
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* Asynchronous form of {@link Zip.unzipInto}: the same call on a native worker thread,
|
|
1160
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
1161
|
+
* except {@link Zip.abort} (which cancels it) and the {@link Zip.onPercentDone} /
|
|
1162
|
+
* {@link Zip.onProgressInfo} callbacks, which report progress while it runs.
|
|
1163
|
+
*/
|
|
1164
|
+
unzipIntoAsync(dirPath: string): Promise<number>
|
|
1165
|
+
|
|
1166
|
+
/**
|
|
1167
|
+
* Extracts only entries whose stored paths match a wildcard pattern.
|
|
1168
|
+
*
|
|
1169
|
+
* - The wildcard character `*` matches zero or more characters.
|
|
1170
|
+
*
|
|
1171
|
+
* - If no wildcard is used, an exact filename match is required.
|
|
1172
|
+
*
|
|
1173
|
+
* Subdirectories are automatically created as needed.
|
|
1174
|
+
*
|
|
1175
|
+
* Returns the number of files extracted, or `-1` on failure.
|
|
1176
|
+
*
|
|
1177
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
1178
|
+
* {@link Zip.unzipMatchingAsync}.
|
|
1179
|
+
*/
|
|
1180
|
+
unzipMatching(dirPath: string, pattern: string, verbose: boolean): number
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* Asynchronous form of {@link Zip.unzipMatching}: the same call on a native worker thread,
|
|
1184
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
1185
|
+
* except {@link Zip.abort} (which cancels it) and the {@link Zip.onPercentDone} /
|
|
1186
|
+
* {@link Zip.onProgressInfo} callbacks, which report progress while it runs.
|
|
1187
|
+
*/
|
|
1188
|
+
unzipMatchingAsync(dirPath: string, pattern: string, verbose: boolean): Promise<number>
|
|
1189
|
+
|
|
1190
|
+
/**
|
|
1191
|
+
* Extracts matching entries into a single directory while ignoring all stored ZIP path
|
|
1192
|
+
* information.
|
|
1193
|
+
*
|
|
1194
|
+
* Matching behavior is identical to `UnzipMatching`.
|
|
1195
|
+
*
|
|
1196
|
+
* If duplicate filenames occur, later extracted files overwrite earlier ones.
|
|
1197
|
+
*
|
|
1198
|
+
* Returns the number of files extracted, or `-1` on failure.
|
|
1199
|
+
*
|
|
1200
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
1201
|
+
* {@link Zip.unzipMatchingIntoAsync}.
|
|
1202
|
+
*/
|
|
1203
|
+
unzipMatchingInto(dirPath: string, pattern: string, verbose: boolean): number
|
|
1204
|
+
|
|
1205
|
+
/**
|
|
1206
|
+
* Asynchronous form of {@link Zip.unzipMatchingInto}: the same call on a native worker thread,
|
|
1207
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
1208
|
+
* except {@link Zip.abort} (which cancels it) and the {@link Zip.onPercentDone} /
|
|
1209
|
+
* {@link Zip.onProgressInfo} callbacks, which report progress while it runs.
|
|
1210
|
+
*/
|
|
1211
|
+
unzipMatchingIntoAsync(dirPath: string, pattern: string, verbose: boolean): Promise<number>
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
* Extracts only files that:
|
|
1215
|
+
*
|
|
1216
|
+
* - Do not already exist
|
|
1217
|
+
*
|
|
1218
|
+
* - Or have older modification timestamps than the ZIP entry
|
|
1219
|
+
*
|
|
1220
|
+
* Subdirectories are automatically created as needed.
|
|
1221
|
+
*
|
|
1222
|
+
* Returns the number of files extracted, or `-1` on failure.
|
|
1223
|
+
*
|
|
1224
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
1225
|
+
* {@link Zip.unzipNewerAsync}.
|
|
1226
|
+
*/
|
|
1227
|
+
unzipNewer(dirPath: string): number
|
|
1228
|
+
|
|
1229
|
+
/**
|
|
1230
|
+
* Asynchronous form of {@link Zip.unzipNewer}: the same call on a native worker thread,
|
|
1231
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
1232
|
+
* except {@link Zip.abort} (which cancels it) and the {@link Zip.onPercentDone} /
|
|
1233
|
+
* {@link Zip.onProgressInfo} callbacks, which report progress while it runs.
|
|
1234
|
+
*/
|
|
1235
|
+
unzipNewerAsync(dirPath: string): Promise<number>
|
|
1236
|
+
|
|
1237
|
+
/**
|
|
1238
|
+
* Verifies that the current `DecryptPassword` value is correct for the currently opened ZIP
|
|
1239
|
+
* archive.
|
|
1240
|
+
*
|
|
1241
|
+
* This method allows password validation before attempting extraction.
|
|
1242
|
+
*
|
|
1243
|
+
* Returns `_TRUE_` if the password is valid, otherwise returns `_FALSE_`.
|
|
1244
|
+
*/
|
|
1245
|
+
verifyPassword(): boolean
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* `(Windows only, for creating self-extracting EXE's)`
|
|
1249
|
+
*
|
|
1250
|
+
* Creates a Windows self-extracting executable (EXE).
|
|
1251
|
+
*
|
|
1252
|
+
* The generated EXE contains both the extraction logic and the ZIP archive data.
|
|
1253
|
+
*
|
|
1254
|
+
* There are no limitations on:
|
|
1255
|
+
*
|
|
1256
|
+
* - Total ZIP size
|
|
1257
|
+
*
|
|
1258
|
+
* - Individual file size
|
|
1259
|
+
*
|
|
1260
|
+
* - Number of files
|
|
1261
|
+
*
|
|
1262
|
+
* The generated EXE supports the following command-line arguments:
|
|
1263
|
+
*
|
|
1264
|
+
* - `-log logFileName`
|
|
1265
|
+
*
|
|
1266
|
+
* - `-unzipDir unzipDirectoryPath`
|
|
1267
|
+
*
|
|
1268
|
+
* - `-pwd password`
|
|
1269
|
+
*
|
|
1270
|
+
* - `-ap autoRunParams`
|
|
1271
|
+
*
|
|
1272
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
1273
|
+
* {@link Zip.writeExeAsync}.
|
|
1274
|
+
*
|
|
1275
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1276
|
+
* {@link Zip.lastErrorText}.
|
|
1277
|
+
*/
|
|
1278
|
+
writeExe(exeFilename: string): void
|
|
1279
|
+
|
|
1280
|
+
/**
|
|
1281
|
+
* Asynchronous form of {@link Zip.writeExe}: the same call on a native worker thread,
|
|
1282
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
1283
|
+
* except {@link Zip.abort} (which cancels it) and the {@link Zip.onPercentDone} /
|
|
1284
|
+
* {@link Zip.onProgressInfo} callbacks, which report progress while it runs.
|
|
1285
|
+
*
|
|
1286
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
1287
|
+
* {@link Zip.lastErrorText}.
|
|
1288
|
+
*/
|
|
1289
|
+
writeExeAsync(exeFilename: string): Promise<void>
|
|
1290
|
+
|
|
1291
|
+
/**
|
|
1292
|
+
* (Relevant only when running on a Microsoft Windows operating system.) Writes a self-extracting
|
|
1293
|
+
* MS-Windows EXE with no limitations on total file size and no limitations on the size of any one
|
|
1294
|
+
* file contained within.
|
|
1295
|
+
*
|
|
1296
|
+
* The 1st argument is the pre-existing EXE housing that is to be used. Essentially,
|
|
1297
|
+
* the self-extracting EXE is a concatenation of the EXE housing and the compressed/encrypted
|
|
1298
|
+
* data.
|
|
1299
|
+
* The 2nd argument is the name of the EXE to create or overwrite.
|
|
1300
|
+
*
|
|
1301
|
+
* A housing for use with WriteExe2 can be found here:
|
|
1302
|
+
* <https://www.chilkatsoft.com/d2/SaExtract.zip>
|
|
1303
|
+
*
|
|
1304
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
1305
|
+
* {@link Zip.writeExe2Async}.
|
|
1306
|
+
*
|
|
1307
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1308
|
+
* {@link Zip.lastErrorText}.
|
|
1309
|
+
*/
|
|
1310
|
+
writeExe2(exePath: string, destExePath: string, bAesEncrypt: boolean, keyLength: number, password: string): void
|
|
1311
|
+
|
|
1312
|
+
/**
|
|
1313
|
+
* Asynchronous form of {@link Zip.writeExe2}: the same call on a native worker thread,
|
|
1314
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
1315
|
+
* except {@link Zip.abort} (which cancels it) and the {@link Zip.onPercentDone} /
|
|
1316
|
+
* {@link Zip.onProgressInfo} callbacks, which report progress while it runs.
|
|
1317
|
+
*
|
|
1318
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
1319
|
+
* {@link Zip.lastErrorText}.
|
|
1320
|
+
*/
|
|
1321
|
+
writeExe2Async(exePath: string, destExePath: string, bAesEncrypt: boolean, keyLength: number, password: string): Promise<void>
|
|
1322
|
+
|
|
1323
|
+
/**
|
|
1324
|
+
* Saves the Zip to a file and implictly re-opens it so further operations can continue. Use
|
|
1325
|
+
* WriteZipAndClose to write and close the Zip. There is no limitation on the size of files that
|
|
1326
|
+
* may be contained within a .zip, the total number of files in a .zip, or the total size of a
|
|
1327
|
+
* .zip. If necessary, WriteZip will use the ZIP64 file format extensions when 4GB or file count
|
|
1328
|
+
* limitations of the old zip file format are exceeded.
|
|
1329
|
+
*
|
|
1330
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
1331
|
+
* {@link Zip.writeZipAsync}.
|
|
1332
|
+
*
|
|
1333
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1334
|
+
* {@link Zip.lastErrorText}.
|
|
1335
|
+
*/
|
|
1336
|
+
writeZip(): void
|
|
1337
|
+
|
|
1338
|
+
/**
|
|
1339
|
+
* Asynchronous form of {@link Zip.writeZip}: the same call on a native worker thread,
|
|
1340
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
1341
|
+
* except {@link Zip.abort} (which cancels it) and the {@link Zip.onPercentDone} /
|
|
1342
|
+
* {@link Zip.onProgressInfo} callbacks, which report progress while it runs.
|
|
1343
|
+
*
|
|
1344
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
1345
|
+
* {@link Zip.lastErrorText}.
|
|
1346
|
+
*/
|
|
1347
|
+
writeZipAsync(): Promise<void>
|
|
1348
|
+
|
|
1349
|
+
/**
|
|
1350
|
+
* Saves the Zip to a file and closes it. On return, the Zip object will be in the state as if
|
|
1351
|
+
* NewZip had been called. There is no limitation on the size of files that may be contained
|
|
1352
|
+
* within a .zip, the total number of files in a .zip, or the total size of a .zip. If necessary,
|
|
1353
|
+
* WriteZip will use the ZIP64 file format extensions when 4GB or file count limitations of the
|
|
1354
|
+
* old zip file format are exceeded.
|
|
1355
|
+
*
|
|
1356
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
1357
|
+
* {@link Zip.writeZipAndCloseAsync}.
|
|
1358
|
+
*
|
|
1359
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1360
|
+
* {@link Zip.lastErrorText}.
|
|
1361
|
+
*/
|
|
1362
|
+
writeZipAndClose(): void
|
|
1363
|
+
|
|
1364
|
+
/**
|
|
1365
|
+
* Asynchronous form of {@link Zip.writeZipAndClose}: the same call on a native worker thread,
|
|
1366
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
1367
|
+
* except {@link Zip.abort} (which cancels it) and the {@link Zip.onPercentDone} /
|
|
1368
|
+
* {@link Zip.onProgressInfo} callbacks, which report progress while it runs.
|
|
1369
|
+
*
|
|
1370
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
1371
|
+
* {@link Zip.lastErrorText}.
|
|
1372
|
+
*/
|
|
1373
|
+
writeZipAndCloseAsync(): Promise<void>
|
|
1374
|
+
|
|
1375
|
+
/**
|
|
1376
|
+
* Writes the ZIP archive to a `BinData` object instead of a filesystem file.
|
|
1377
|
+
*
|
|
1378
|
+
* The generated ZIP archive exists entirely in memory.
|
|
1379
|
+
*
|
|
1380
|
+
* The ZIP data written by this method may later be opened using `OpenBd`.
|
|
1381
|
+
*
|
|
1382
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
1383
|
+
* {@link Zip.writeBdAsync}.
|
|
1384
|
+
*
|
|
1385
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1386
|
+
* {@link Zip.lastErrorText}.
|
|
1387
|
+
*/
|
|
1388
|
+
writeBd(binData: BinData): void
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* Asynchronous form of {@link Zip.writeBd}: the same call on a native worker thread,
|
|
1392
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
1393
|
+
* except {@link Zip.abort} (which cancels it) and the {@link Zip.onPercentDone} /
|
|
1394
|
+
* {@link Zip.onProgressInfo} callbacks, which report progress while it runs.
|
|
1395
|
+
*
|
|
1396
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
1397
|
+
* {@link Zip.lastErrorText}.
|
|
1398
|
+
*/
|
|
1399
|
+
writeBdAsync(binData: BinData): Promise<void>
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* Opens a ZIP archive contained entirely within a `BinData` object.
|
|
1403
|
+
*
|
|
1404
|
+
* This method allows ZIP archives to be processed entirely in memory without requiring a
|
|
1405
|
+
* filesystem file.
|
|
1406
|
+
*
|
|
1407
|
+
* When a ZIP archive is opened:
|
|
1408
|
+
*
|
|
1409
|
+
* - `PasswordProtect` is automatically set if legacy Zip 2.0 encryption is detected.
|
|
1410
|
+
*
|
|
1411
|
+
* - `Encryption` is automatically set if strong encryption is detected.
|
|
1412
|
+
*
|
|
1413
|
+
* - A value of `4` for `Encryption` indicates WinZip-compatible AES encryption.
|
|
1414
|
+
*
|
|
1415
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1416
|
+
* {@link Zip.lastErrorText}.
|
|
1417
|
+
*/
|
|
1418
|
+
openBd(binData: BinData): void
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* Returns the largest uncompressed file size contained within the ZIP archive.
|
|
1422
|
+
*
|
|
1423
|
+
* The size is returned as a string rather than an integer because the value may exceed the range
|
|
1424
|
+
* of a 32-bit integer.
|
|
1425
|
+
*
|
|
1426
|
+
* This method is useful when:
|
|
1427
|
+
*
|
|
1428
|
+
* - Checking for extremely large files before extraction
|
|
1429
|
+
*
|
|
1430
|
+
* - Estimating required disk space
|
|
1431
|
+
*
|
|
1432
|
+
* - Detecting unusually large compressed entries
|
|
1433
|
+
*
|
|
1434
|
+
* Returns the size as a decimal string.
|
|
1435
|
+
*
|
|
1436
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1437
|
+
* {@link Zip.lastErrorText}.
|
|
1438
|
+
*/
|
|
1439
|
+
getMaxUncompressedSize(): string
|
|
1440
|
+
|
|
1441
|
+
/**
|
|
1442
|
+
* Adds the contents of a `BinData` object as a new entry in the ZIP archive.
|
|
1443
|
+
*
|
|
1444
|
+
* - `pathInZip` specifies the filename and optional directory path stored within the ZIP.
|
|
1445
|
+
*
|
|
1446
|
+
* - The bytes contained in `bd` become the contents of the ZIP entry.
|
|
1447
|
+
*
|
|
1448
|
+
* - The entry is added to the in-memory ZIP object and is not written to disk until `WriteZip`,
|
|
1449
|
+
* `WriteZipAndClose`, `WriteBd`, or `WriteToMemory` is called.
|
|
1450
|
+
*
|
|
1451
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1452
|
+
* {@link Zip.lastErrorText}.
|
|
1453
|
+
*/
|
|
1454
|
+
addBd(pathInZip: string, bd: BinData): void
|
|
1455
|
+
|
|
1456
|
+
/**
|
|
1457
|
+
* Adds encoded binary data as a ZIP entry.
|
|
1458
|
+
*
|
|
1459
|
+
* - `encoding` specifies how `data` is encoded.
|
|
1460
|
+
*
|
|
1461
|
+
* - Common encodings include `base64` and `hex`.
|
|
1462
|
+
*
|
|
1463
|
+
* - The decoded binary bytes become the contents of the ZIP entry.
|
|
1464
|
+
*
|
|
1465
|
+
* This method is useful when binary data already exists in textual encoded form.
|
|
1466
|
+
*
|
|
1467
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1468
|
+
* {@link Zip.lastErrorText}.
|
|
1469
|
+
*/
|
|
1470
|
+
addEncoded(pathInZip: string, encoding: string, data: string): void
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* Adds an empty file or directory entry to the ZIP archive.
|
|
1474
|
+
*
|
|
1475
|
+
* - If `isDir = _TRUE_`, an empty directory entry is created.
|
|
1476
|
+
*
|
|
1477
|
+
* - If `isDir = _FALSE_`, an empty file entry is created.
|
|
1478
|
+
*
|
|
1479
|
+
* - `pathInZip` specifies the path stored in the ZIP archive.
|
|
1480
|
+
*
|
|
1481
|
+
* This method is useful when directory structure entries must exist even if no files are present.
|
|
1482
|
+
*
|
|
1483
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1484
|
+
* {@link Zip.lastErrorText}.
|
|
1485
|
+
*/
|
|
1486
|
+
addEmpty(isDir: boolean, pathInZip: string): void
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* Adds a string as a text file entry in the ZIP archive.
|
|
1490
|
+
*
|
|
1491
|
+
* - The string is converted to bytes using the specified `charset`.
|
|
1492
|
+
*
|
|
1493
|
+
* - `pathInZip` specifies the path stored within the ZIP archive.
|
|
1494
|
+
*
|
|
1495
|
+
* This method is useful for dynamically generating text files directly in memory.
|
|
1496
|
+
*
|
|
1497
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1498
|
+
* {@link Zip.lastErrorText}.
|
|
1499
|
+
*/
|
|
1500
|
+
addString(pathInZip: string, content: string, charset: string): void
|
|
1501
|
+
|
|
1502
|
+
/**
|
|
1503
|
+
* Adds the contents of a `StringBuilder` object as a text entry in the ZIP archive.
|
|
1504
|
+
*
|
|
1505
|
+
* - The text is converted to bytes using the specified `charset`.
|
|
1506
|
+
*
|
|
1507
|
+
* - `pathInZip` specifies the filename stored in the ZIP.
|
|
1508
|
+
*
|
|
1509
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1510
|
+
* {@link Zip.lastErrorText}.
|
|
1511
|
+
*/
|
|
1512
|
+
addSb(pathInZip: string, sb: StringBuilder, charset: string): void
|
|
1513
|
+
|
|
1514
|
+
/**
|
|
1515
|
+
* Adds a file or directory from the local filesystem to the ZIP archive.
|
|
1516
|
+
*
|
|
1517
|
+
* - If `localPath` is an absolute path and `saveExtraPath = _TRUE_`, the stored ZIP path includes
|
|
1518
|
+
* the relative directory structure.
|
|
1519
|
+
*
|
|
1520
|
+
* - If `saveExtraPath = _FALSE_`, only the filename is stored.
|
|
1521
|
+
*
|
|
1522
|
+
* - If `localPath` is already relative, the relative path is stored as-is regardless of
|
|
1523
|
+
* `saveExtraPath`.
|
|
1524
|
+
*
|
|
1525
|
+
* This method adds a reference to the file or directory in the local filesystem. The file data is
|
|
1526
|
+
* not immediately read or compressed.
|
|
1527
|
+
*
|
|
1528
|
+
* The actual file contents are consumed only when a `Write*` method is called, such as:
|
|
1529
|
+
*
|
|
1530
|
+
* - `WriteZip`
|
|
1531
|
+
*
|
|
1532
|
+
* - `WriteZipAndClose`
|
|
1533
|
+
*
|
|
1534
|
+
* - `WriteBd`
|
|
1535
|
+
*
|
|
1536
|
+
* - `WriteToMemory`
|
|
1537
|
+
*
|
|
1538
|
+
* This allows files and data entries to be accumulated in the in-memory ZIP object prior to
|
|
1539
|
+
* writing the final ZIP archive.
|
|
1540
|
+
*
|
|
1541
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1542
|
+
* {@link Zip.lastErrorText}.
|
|
1543
|
+
*/
|
|
1544
|
+
addFile(localPath: string, saveExtraPath: boolean): void
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* Retrieves the ZIP entry at the specified zero-based index.
|
|
1548
|
+
*
|
|
1549
|
+
* - The first entry is at index `0`.
|
|
1550
|
+
*
|
|
1551
|
+
* - The matching entry is returned in the supplied `ZipEntry` object.
|
|
1552
|
+
*
|
|
1553
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1554
|
+
* {@link Zip.lastErrorText}.
|
|
1555
|
+
*/
|
|
1556
|
+
entryAt(index: number, entry: ZipEntry): void
|
|
1557
|
+
|
|
1558
|
+
/**
|
|
1559
|
+
* Finds the first ZIP entry whose stored path matches a wildcard pattern.
|
|
1560
|
+
*
|
|
1561
|
+
* - The wildcard character `*` matches zero or more characters.
|
|
1562
|
+
*
|
|
1563
|
+
* - The comparison is performed against the full stored ZIP path.
|
|
1564
|
+
*
|
|
1565
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1566
|
+
* {@link Zip.lastErrorText}.
|
|
1567
|
+
*/
|
|
1568
|
+
entryMatching(pattern: string, entry: ZipEntry): void
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* Finds a ZIP entry whose stored path exactly matches `pathInZip`.
|
|
1572
|
+
*
|
|
1573
|
+
* The matching entry is returned in the supplied `ZipEntry` object.
|
|
1574
|
+
*/
|
|
1575
|
+
entryOf(pathInZip: string, entry: ZipEntry): boolean
|
|
1576
|
+
|
|
1577
|
+
/**
|
|
1578
|
+
* Finds a ZIP entry by its unique EntryID.
|
|
1579
|
+
*
|
|
1580
|
+
* The matching entry is returned in the supplied `ZipEntry` object.
|
|
1581
|
+
*
|
|
1582
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1583
|
+
* {@link Zip.lastErrorText}.
|
|
1584
|
+
*/
|
|
1585
|
+
entryById(id: number, entry: ZipEntry): void
|
|
1586
|
+
|
|
1587
|
+
// ---- Events (ReactNativeGen_DESIGN.md §6) ----
|
|
1588
|
+
|
|
1589
|
+
/**
|
|
1590
|
+
* Called with the percent completed (0..100) while a long-running method runs, when Chilkat
|
|
1591
|
+
* can measure progress. Runs on the JavaScript thread, so it is only useful with the
|
|
1592
|
+
* `...Async` methods (during a synchronous call the thread is busy and the events arrive
|
|
1593
|
+
* after it returns). Assign `undefined` to remove.
|
|
1594
|
+
*/
|
|
1595
|
+
onPercentDone?: (pctDone: number) => void
|
|
1596
|
+
|
|
1597
|
+
/**
|
|
1598
|
+
* Called with a name/value pair of progress information while a long-running method runs
|
|
1599
|
+
* (what is reported depends on the class and method). Runs on the JavaScript thread; see
|
|
1600
|
+
* {@link Zip.onPercentDone}. Assign `undefined` to remove.
|
|
1601
|
+
*/
|
|
1602
|
+
onProgressInfo?: (name: string, value: string) => void
|
|
1603
|
+
|
|
1604
|
+
/**
|
|
1605
|
+
* Requests that the pending `...Async` call on this object stop at its next progress check.
|
|
1606
|
+
* The promise then rejects with Chilkat's abort error. Chilkat checks at least every
|
|
1607
|
+
* `heartbeatMs` milliseconds on the classes that have that property, so set it (e.g. 250)
|
|
1608
|
+
* for a responsive cancel. Harmless when nothing is pending.
|
|
1609
|
+
*/
|
|
1610
|
+
abort(): void
|
|
1611
|
+
}
|