update to 15.3 (#42822)

* fix bugs with types

* fixed type errors

* more type errors fixed

* fixed errors and added missing type definitions

* fix all typos and added all missing ones

* change inappropriate names

* Updated names to be more accurate.

* adds EnumDWT_ConvertMode to make compatible with the old enum

* update to 14.2

* add v13

* delete v13 for test not pass

* remove base64

* fixed conflict

* add back GetLicenseInfo

* change header version to 14.2

* Added definitions for new APIs as well as APIs whose definitions were missing before. Also adding APIs for addons

* remove unused file

* adding types for barcode reader and changing the copyright year

* comment change, TS to 3.2.2

* adds more definitions to dwt barcode reader

* rollback

* update

* update index.d.ts

* Update Dynamsoft.d.ts

It's ok

* Update index.d.ts

1. update 2017 -> 2019
2. update parameters

* Update index.d.ts

rollback

* Update index.d.ts

rollback

* Update addon.pdf.ts

rollback

* Update index.d.ts

rollback

* Update index.d.ts

rollback

* Update index.d.ts

rollback

* Update index.d.ts

rollback

* Update index.d.ts

no changes but whites

* Update index.d.ts

TypeScript Version can be 3.2
2017 => 2019

* Update index.d.ts

rollback

* update

* Update index.d.ts

start new request

* Update index.d.ts

delete this file

* Update

delete this file

* a

a

* rollback

* update

* remove package.json

* add current version to v13

* 1) update to version 14.3.1
2) change index.d.ts declare Dynamsoft

* update comments

* remove WebTWAIN.d.ts

* change v13 tsconfig.json

* change to v14.3.1

* change to v14.3.1

* change to version 14.3

* change to version 14.3

* update

* update

* Update index.d.ts

* Update index.d.ts

* Update tsconfig.json

* Update tsconfig.json

* update

* update

* aa

* a

* a

* update

* remove dwt.d.ts

* remove v12

* update1

* update

* update

* a

* a

* a

* a

* a

* a

* a

* a

* d

* a

* a

* b

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* d

* change to v15

* add enums

* remove enums

* Updating to v15.0.2

* roll back to 1 previous version

* add back v15 APIs

* fix errors

* fix errors attempt 2

* update to 15.1

* upgrade to v15.2
add tag image

* fixed a few bugs

* fix grammar errors

* update a definition

* Fixed bug 'missing whitespace'

* update 15.3

* remove

remove

* remove blank line

remove blank line

Co-authored-by: Tom Kent <Tom-Dynamsoft@users.noreply.github.com>
Co-authored-by: Xiao Ling <lingxiao1002@gmail.com>
This commit is contained in:
Andrew Casey 2020-03-04 10:41:32 -08:00 committed by GitHub
parent 48a4e9f3ce
commit 04aa80e248
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 17 additions and 43 deletions

View File

@ -6,7 +6,7 @@
* Product: Dynamsoft Web Twain
* Web Site: http://www.dynamsoft.com
*
* Copyright 2019, Dynamsoft Corporation
* Copyright 2020, Dynamsoft Corporation
* Author: Dynamsoft Support Team
*/
@ -2653,18 +2653,6 @@ interface WebTwain {
*/
FTPDownload(FTPServer: string, FTPRemoteFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean;
/**
* Directly download a file from the FTP server to local disk without loading it into Dynamic Web TWAIN.
* @method WebTwain#FTPDownloadDirectly
* @param {string} FTPServer the name of the FTP server.
* @param {string} FTPRemoteFile the name of the file to be downloaded. It should be the relative path of the file on the FTP server.
* @param {string} localFile specify a full path to store the file.
* @param {function} optionalAsyncSuccessFunc optional. The function to call when the download succeeds. Please refer to the function prototype OnSuccess.
* @param {function} optionalAsyncFailureFunc optional. The function to call when the download fails. Please refer to the function prototype OnFailure.
* @return {boolean}
*/
FTPDownloadDirectly(FTPServer: string, FTPRemoteFile: string, localFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean;
/**
* Downloads an image from the FTP server.
* @method WebTwain#FTPDownloadEx
@ -2689,18 +2677,6 @@ interface WebTwain {
*/
FTPUpload(FTPServer: string, sImageIndex: number, FTPRemoteFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean;
/**
* Directly upload a specific file to the FTP server without loading it into Dynamic Web TWAIN.
* @method WebTwain#FTPUploadDirectly
* @param {string} FTPServer the name of the FTP server.
* @param {string} localFile specify the the full path of a local file.
* @param {string} FTPRemoteFile the name of the file to be created on the FTP server. It should be a relative path on the FTP server.
* @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnSuccess.
* @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnFailure.
* @return {boolean}
*/
FTPUploadDirectly(FTPServer: string, localFile: string, FTPRemoteFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean;
/**
* Uploads the image of a specified index in the buffer to the FTP server as a specified image format.
* @method WebTwain#FTPUploadEx
@ -2765,14 +2741,6 @@ interface WebTwain {
*/
FeedPage(): boolean;
/**
* Check whether a certain file exists on the local disk.
* @method WebTwain#FileExists
* @param {string} localFile specifies the absolute path of the local file.
* @return {boolean}
*/
FileExists(localFile: string): boolean;
/**
* Flips the image of a specified index in buffer.
* @method WebTwain#Flip
@ -3821,6 +3789,12 @@ interface WebTwain {
FilterImagesByTag(tagName: string): boolean;
SelectAllImages(): boolean;
Invert(sImageIndex: number): boolean;
ConvertToBW(sImageIndex: number): boolean;
/*ignored
checkErrorString
first

View File

@ -8,7 +8,7 @@ This package contains type definitions for DWT and its add-ons(http://www.dynams
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dwt
Additional Details
* Last updated: 28 Jun 2019 12:00:21 GMT
* Last updated: 07 Jan 2020 09:05:12 GMT
* Dependencies: none
* Global values: dynamsoft, Dynamsoft, EnumDWT_BorderStyle, EnumDWT_Cap, EnumDWT_CapBitOrder, EnumDWT_CapBitdepthReduction, EnumDWT_CapFeederAlignment, EnumDWT_CapFeederOrder, EnumDWT_CapFilterType, EnumDWT_CapFlash, EnumDWT_CapFlipRotation, EnumDWT_CapImageFilter, EnumDWT_CapLanguage, EnumDWT_CapLightPath, EnumDWT_CapLightSource, EnumDWT_CapNoiseFilter, EnumDWT_CapORientation, EnumDWT_CapOverscan, EnumDWT_CapPixelFlavor, EnumDWT_CapPlanarChunky, EnumDWT_CapPrinter, EnumDWT_CapPrinterMode, EnumDWT_CapSupportedSizes, EnumDWT_CapType, EnumDWT_CapValueType, EnumDWT_ConverMode, EnumDWT_ConvertMode, EnumDWT_DUPLEX, EnumDWT_DataSourceStatus, EnumDWT_Error, EnumDWT_FileFormat, EnumDWT_FitWindowType, EnumDWT_ImageType, EnumDWT_InitMsg, EnumDWT_InterpolationMethod, EnumDWT_Language, EnumDWT_MagType, EnumDWT_MessageType, EnumDWT_MouseShape, EnumDWT_PDFCompressionType, EnumDWT_PixelType, EnumDWT_PlatformType, EnumDWT_ShowMode, EnumDWT_TIFFCompressionType, EnumDWT_TransferMode, EnumDWT_UnitType, EnumDWT_UploadDataFormat, etc.

View File

@ -6,7 +6,7 @@
* Product: Dynamsoft Web Twain
* Web Site: http://www.dynamsoft.com
*
* Copyright 2019, Dynamsoft Corporation
* Copyright 2020, Dynamsoft Corporation
* Author: Dynamsoft Support Team
*/

View File

@ -6,7 +6,7 @@
* Product: Dynamsoft Web Twain
* Web Site: http://www.dynamsoft.com
*
* Copyright 2019, Dynamsoft Corporation
* Copyright 2020, Dynamsoft Corporation
* Author: Dynamsoft Support Team
*/

View File

@ -6,7 +6,7 @@
* Product: Dynamsoft Web Twain
* Web Site: http://www.dynamsoft.com
*
* Copyright 2019, Dynamsoft Corporation
* Copyright 2020, Dynamsoft Corporation
* Author: Dynamsoft Support Team
*/

View File

@ -6,7 +6,7 @@
* Product: Dynamsoft Web Twain
* Web Site: http://www.dynamsoft.com
*
* Copyright 2019, Dynamsoft Corporation
* Copyright 2020, Dynamsoft Corporation
* Author: Dynamsoft Support Team
*/

2
types/dwt/dbr.d.ts vendored
View File

@ -6,7 +6,7 @@
* Product: Dynamsoft Web Twain
* Web Site: http://www.dynamsoft.com
*
* Copyright 2019, Dynamsoft Corporation
* Copyright 2020, Dynamsoft Corporation
* Author: Dynamsoft Support Team
*/

View File

@ -1,4 +1,4 @@
// Type definitions for dwt 15.2
// Type definitions for dwt 15.3
// Project: https://www.dynamsoft.com/products/webtwain_overview.aspx
// Definitions by: Xiao Ling <https://github.com/yushulx>
// Josh Hall <https://github.com/jbh>
@ -21,9 +21,9 @@
* Product: Dynamsoft Web Twain
* Web Site: http://www.dynamsoft.com
*
* Copyright 2019, Dynamsoft Corporation
* Copyright 2020, Dynamsoft Corporation
* Author: Dynamsoft Support Team
* Version: 15.2
* Version: 15.3
*/
declare const Dynamsoft: DynamsoftStatic;

2
types/dwt/mbc.d.ts vendored
View File

@ -6,7 +6,7 @@
* Product: Dynamsoft Web Twain
* Web Site: http://www.dynamsoft.com
*
* Copyright 2019, Dynamsoft Corporation
* Copyright 2020, Dynamsoft Corporation
* Author: Dynamsoft Support Team
*/