Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aspose-barcode-cloud-node

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aspose-barcode-cloud-node - npm Package Compare versions

Comparing version 20.10.0 to 20.11.1

2

dist/aspose-barcode-cloud-node.cjs.production.min.js

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,a=(e=require("request"))&&"object"==typeof e&&"default"in e?e.default:e;let t=["string","boolean","double","integer","long","float","number","any"];class o{static findCorrectType(e,a){if(null==e)return a;if(-1!==t.indexOf(a.toLowerCase()))return a;if("Date"===a)return a;if(be[a])return a;if(!ye[a])return a;let o=ye[a].discriminator;return null==o?a:e[o]?e[o]:a}static serialize(e,a){if(null==e)return e;if(-1!==t.indexOf(a.toLowerCase()))return e;if(0===a.lastIndexOf("Array<",0)){let t=a.replace("Array<","");t=t.substring(0,t.length-1);let r=[];for(let a in e)r.push(o.serialize(e[a],t));return r}if("Date"===a)return e.toString();if(be[a])return be[a][e];if(!ye[a])return e;let r=ye[a].getAttributeTypeMap(),i={};for(let a in r){let t=r[a];i[t.baseName]=o.serialize(e[t.name],t.type)}return i}static deserialize(e,a){if(a=o.findCorrectType(e,a),null==e)return e;if(-1!==t.indexOf(a.toLowerCase()))return e;if(0===a.lastIndexOf("Array<",0)){let t=a.replace("Array<","");t=t.substring(0,t.length-1);let r=[];for(let a in e)r.push(o.deserialize(e[a],t));return r}if("Date"===a)return new Date(e);if(be[a])return e;if(!ye[a])return e;"string"==typeof e&&(e=JSON.parse(e));let r=new ye[a],i=ye[a].getAttributeTypeMap();for(const a of i){const t=a.baseName.replace(/^(.)/,e=>e.toLowerCase()),i=o.deserialize(e[t],a.type);r[a.name]=i}return r}}class r{static getAttributeTypeMap(){return r.attributeTypeMap}}r.attributeTypeMap=[{name:"code",baseName:"Code",type:"string"},{name:"message",baseName:"Message",type:"string"},{name:"description",baseName:"Description",type:"string"},{name:"dateTime",baseName:"DateTime",type:"Date"},{name:"innerError",baseName:"InnerError",type:"ApiError"}];class i{static getAttributeTypeMap(){return i.attributeTypeMap}}i.attributeTypeMap=[{name:"requestId",baseName:"RequestId",type:"string"},{name:"error",baseName:"Error",type:"ApiError"}];class s{static getAttributeTypeMap(){return s.attributeTypeMap}}var n,d,l,p,c,u,m,b,y,g,h,C,S,P,f,M,T,N,w,x,D,A,E,v,z,I,R;s.attributeTypeMap=[{name:"encodingTable",baseName:"EncodingTable",type:"CustomerInformationInterpretingType"},{name:"shortBarHeight",baseName:"ShortBarHeight",type:"number"}],(n=exports.AutoSizeMode||(exports.AutoSizeMode={})).None="None",n.Nearest="Nearest",n.Interpolation="Interpolation",(d=exports.AvailableGraphicsUnit||(exports.AvailableGraphicsUnit={})).Pixel="Pixel",d.Point="Point",d.Inch="Inch",d.Millimeter="Millimeter";class B{static getAttributeTypeMap(){return B.attributeTypeMap}}B.attributeTypeMap=[{name:"aspectRatio",baseName:"AspectRatio",type:"number"},{name:"errorLevel",baseName:"ErrorLevel",type:"number"},{name:"symbolMode",baseName:"SymbolMode",type:"AztecSymbolMode"},{name:"textEncoding",baseName:"TextEncoding",type:"string"}],(l=exports.AztecSymbolMode||(exports.AztecSymbolMode={})).Auto="Auto",l.Compact="Compact",l.FullRange="FullRange",l.Rune="Rune";class F{static getAttributeTypeMap(){return F.attributeTypeMap}}F.attributeTypeMap=[{name:"barcodeValue",baseName:"BarcodeValue",type:"string"},{name:"type",baseName:"Type",type:"string"},{name:"region",baseName:"Region",type:"Array<RegionPoint>"},{name:"checksum",baseName:"Checksum",type:"string"}];class V{static getAttributeTypeMap(){return V.attributeTypeMap}}V.attributeTypeMap=[{name:"barcodes",baseName:"Barcodes",type:"Array<BarcodeResponse>"}],(p=exports.BorderDashStyle||(exports.BorderDashStyle={})).Solid="Solid",p.Dash="Dash",p.Dot="Dot",p.DashDot="DashDot",p.DashDotDot="DashDotDot";class O{static getAttributeTypeMap(){return O.attributeTypeMap}}O.attributeTypeMap=[{name:"text",baseName:"Text",type:"string"},{name:"alignment",baseName:"Alignment",type:"TextAlignment"},{name:"color",baseName:"Color",type:"string"},{name:"visible",baseName:"Visible",type:"boolean"},{name:"font",baseName:"Font",type:"FontParams"},{name:"padding",baseName:"Padding",type:"Padding"}],(c=exports.ChecksumValidation||(exports.ChecksumValidation={})).Default="Default",c.On="On",c.Off="Off",(u=exports.CodabarChecksumMode||(exports.CodabarChecksumMode={})).Mod10="Mod10",u.Mod16="Mod16";class L{static getAttributeTypeMap(){return L.attributeTypeMap}}L.attributeTypeMap=[{name:"checksumMode",baseName:"ChecksumMode",type:"CodabarChecksumMode"},{name:"startSymbol",baseName:"StartSymbol",type:"CodabarSymbol"},{name:"stopSymbol",baseName:"StopSymbol",type:"CodabarSymbol"}],(m=exports.CodabarSymbol||(exports.CodabarSymbol={})).A="A",m.B="B",m.C="C",m.D="D";class _{static getAttributeTypeMap(){return _.attributeTypeMap}}_.attributeTypeMap=[{name:"aspectRatio",baseName:"AspectRatio",type:"number"},{name:"columns",baseName:"Columns",type:"number"},{name:"rows",baseName:"Rows",type:"number"}];class U{static getAttributeTypeMap(){return U.attributeTypeMap}}U.attributeTypeMap=[{name:"aspectRatio",baseName:"AspectRatio",type:"number"},{name:"quietZoneLeftCoef",baseName:"QuietZoneLeftCoef",type:"number"},{name:"quietZoneRightCoef",baseName:"QuietZoneRightCoef",type:"number"}],(b=exports.CodeLocation||(exports.CodeLocation={})).Below="Below",b.Above="Above",b.None="None";class k{static getAttributeTypeMap(){return k.attributeTypeMap}}k.attributeTypeMap=[{name:"supplementSpace",baseName:"SupplementSpace",type:"number"}],(y=exports.CustomerInformationInterpretingType||(exports.CustomerInformationInterpretingType={})).CTable="CTable",y.NTable="NTable",y.Other="Other";class q{static getAttributeTypeMap(){return q.attributeTypeMap}}q.attributeTypeMap=[{name:"aspectRatio",baseName:"AspectRatio",type:"number"},{name:"columns",baseName:"Columns",type:"number"},{name:"rows",baseName:"Rows",type:"number"}],(g=exports.DataMatrixEccType||(exports.DataMatrixEccType={})).EccAuto="EccAuto",g.Ecc000="Ecc000",g.Ecc050="Ecc050",g.Ecc080="Ecc080",g.Ecc100="Ecc100",g.Ecc140="Ecc140",g.Ecc200="Ecc200",(h=exports.DataMatrixEncodeMode||(exports.DataMatrixEncodeMode={})).Auto="Auto",h.ASCII="ASCII",h.Full="Full",h.Custom="Custom",h.C40="C40",h.Text="Text",h.EDIFACT="EDIFACT",h.ANSIX12="ANSIX12";class Q{static getAttributeTypeMap(){return Q.attributeTypeMap}}Q.attributeTypeMap=[{name:"aspectRatio",baseName:"AspectRatio",type:"number"},{name:"textEncoding",baseName:"TextEncoding",type:"string"},{name:"columns",baseName:"Columns",type:"number"},{name:"dataMatrixEcc",baseName:"DataMatrixEcc",type:"DataMatrixEccType"},{name:"dataMatrixEncodeMode",baseName:"DataMatrixEncodeMode",type:"DataMatrixEncodeMode"},{name:"rows",baseName:"Rows",type:"number"}],(C=exports.DecodeBarcodeType||(exports.DecodeBarcodeType={})).All="all",C.AustraliaPost="AustraliaPost",C.Aztec="Aztec",C.ISBN="ISBN",C.Codabar="Codabar",C.Code11="Code11",C.Code128="Code128",C.GS1Code128="GS1Code128",C.Code39Extended="Code39Extended",C.Code39Standard="Code39Standard",C.Code93Extended="Code93Extended",C.Code93Standard="Code93Standard",C.DataMatrix="DataMatrix",C.DeutschePostIdentcode="DeutschePostIdentcode",C.DeutschePostLeitcode="DeutschePostLeitcode",C.EAN13="EAN13",C.EAN14="EAN14",C.EAN8="EAN8",C.IATA2of5="IATA2of5",C.Interleaved2of5="Interleaved2of5",C.ISSN="ISSN",C.ISMN="ISMN",C.ItalianPost25="ItalianPost25",C.ITF14="ITF14",C.ITF6="ITF6",C.MacroPdf417="MacroPdf417",C.Matrix2of5="Matrix2of5",C.MSI="MSI",C.OneCode="OneCode",C.OPC="OPC",C.PatchCode="PatchCode",C.Pdf417="Pdf417",C.MicroPdf417="MicroPdf417",C.Planet="Planet",C.Postnet="Postnet",C.PZN="PZN",C.QR="QR",C.MicroQR="MicroQR",C.RM4SCC="RM4SCC",C.SCC14="SCC14",C.SSCC18="SSCC18",C.Standard2of5="Standard2of5",C.Supplement="Supplement",C.UPCA="UPCA",C.UPCE="UPCE",C.VIN="VIN",C.Pharmacode="Pharmacode",C.GS1DataMatrix="GS1DataMatrix",C.DatabarOmniDirectional="DatabarOmniDirectional",C.DatabarTruncated="DatabarTruncated",C.DatabarLimited="DatabarLimited",C.DatabarExpanded="DatabarExpanded",C.SwissPostParcel="SwissPostParcel",C.AustralianPosteParcel="AustralianPosteParcel",C.Code16K="Code16K",C.DatabarStackedOmniDirectional="DatabarStackedOmniDirectional",C.DatabarStacked="DatabarStacked",C.DatabarExpandedStacked="DatabarExpandedStacked",C.CompactPdf417="CompactPdf417",C.GS1QR="GS1QR",C.MaxiCode="MaxiCode",C.MicrE13B="MicrE13B",C.Code32="Code32",C.DataLogic2of5="DataLogic2of5",C.DotCode="DotCode",C.DutchKIX="DutchKIX",C.CodablockF="CodablockF";class G{static getAttributeTypeMap(){return G.attributeTypeMap}}G.attributeTypeMap=[{name:"usedSize",baseName:"UsedSize",type:"number"},{name:"totalSize",baseName:"TotalSize",type:"number"}];class H{static getAttributeTypeMap(){return H.attributeTypeMap}}H.attributeTypeMap=[{name:"aspectRatio",baseName:"AspectRatio",type:"number"},{name:"dotCodeMask",baseName:"DotCodeMask",type:"number"}],(S=exports.ECIEncodings||(exports.ECIEncodings={})).NONE="NONE",S.ISO88591="ISO_8859_1",S.ISO88592="ISO_8859_2",S.ISO88593="ISO_8859_3",S.ISO88594="ISO_8859_4",S.ISO88595="ISO_8859_5",S.ISO88596="ISO_8859_6",S.ISO88597="ISO_8859_7",S.ISO88598="ISO_8859_8",S.ISO88599="ISO_8859_9",S.ISO885910="ISO_8859_10",S.ISO885911="ISO_8859_11",S.ISO885913="ISO_8859_13",S.ISO885914="ISO_8859_14",S.ISO885915="ISO_8859_15",S.ISO885916="ISO_8859_16",S.ShiftJIS="Shift_JIS",S.Win1250="Win1250",S.Win1251="Win1251",S.Win1252="Win1252",S.Win1256="Win1256",S.UTF16BE="UTF16BE",S.UTF8="UTF8",S.USASCII="US_ASCII",S.Big5="Big5",S.GB18030="GB18030",S.EUCKR="EUC_KR",(P=exports.EnableChecksum||(exports.EnableChecksum={})).Default="Default",P.Yes="Yes",P.No="No",(f=exports.EncodeBarcodeType||(exports.EncodeBarcodeType={})).Codabar="Codabar",f.Code11="Code11",f.Code39Standard="Code39Standard",f.Code39Extended="Code39Extended",f.Code93Standard="Code93Standard",f.Code93Extended="Code93Extended",f.Code128="Code128",f.GS1Code128="GS1Code128",f.EAN8="EAN8",f.EAN13="EAN13",f.EAN14="EAN14",f.SCC14="SCC14",f.SSCC18="SSCC18",f.UPCA="UPCA",f.UPCE="UPCE",f.ISBN="ISBN",f.ISSN="ISSN",f.ISMN="ISMN",f.Standard2of5="Standard2of5",f.Interleaved2of5="Interleaved2of5",f.Matrix2of5="Matrix2of5",f.ItalianPost25="ItalianPost25",f.IATA2of5="IATA2of5",f.ITF14="ITF14",f.ITF6="ITF6",f.MSI="MSI",f.VIN="VIN",f.DeutschePostIdentcode="DeutschePostIdentcode",f.DeutschePostLeitcode="DeutschePostLeitcode",f.OPC="OPC",f.PZN="PZN",f.Code16K="Code16K",f.Pharmacode="Pharmacode",f.DataMatrix="DataMatrix",f.QR="QR",f.Aztec="Aztec",f.Pdf417="Pdf417",f.MacroPdf417="MacroPdf417",f.AustraliaPost="AustraliaPost",f.Postnet="Postnet",f.Planet="Planet",f.OneCode="OneCode",f.RM4SCC="RM4SCC",f.DatabarOmniDirectional="DatabarOmniDirectional",f.DatabarTruncated="DatabarTruncated",f.DatabarLimited="DatabarLimited",f.DatabarExpanded="DatabarExpanded",f.SingaporePost="SingaporePost",f.GS1DataMatrix="GS1DataMatrix",f.AustralianPosteParcel="AustralianPosteParcel",f.SwissPostParcel="SwissPostParcel",f.PatchCode="PatchCode",f.DatabarExpandedStacked="DatabarExpandedStacked",f.DatabarStacked="DatabarStacked",f.DatabarStackedOmniDirectional="DatabarStackedOmniDirectional",f.MicroPdf417="MicroPdf417",f.GS1QR="GS1QR",f.MaxiCode="MaxiCode",f.Code32="Code32",f.DataLogic2of5="DataLogic2of5",f.DotCode="DotCode",f.DutchKIX="DutchKIX",f.UpcaGs1Code128Coupon="UpcaGs1Code128Coupon",f.UpcaGs1DatabarCoupon="UpcaGs1DatabarCoupon",f.CodablockF="CodablockF",f.GS1CodablockF="GS1CodablockF";class W{static getAttributeTypeMap(){return W.attributeTypeMap}}W.attributeTypeMap=[{name:"requestId",baseName:"RequestId",type:"string"},{name:"date",baseName:"Date",type:"Date"}];class j{static getAttributeTypeMap(){return j.attributeTypeMap}}j.attributeTypeMap=[{name:"value",baseName:"Value",type:"Array<FileVersion>"}];class K{static getAttributeTypeMap(){return K.attributeTypeMap}}K.attributeTypeMap=[{name:"value",baseName:"Value",type:"Array<StorageFile>"}];class X{static getAttributeTypeMap(){return X.attributeTypeMap}}X.attributeTypeMap=[{name:"uploaded",baseName:"Uploaded",type:"Array<string>"},{name:"errors",baseName:"Errors",type:"Array<Error>"}],(M=exports.FontMode||(exports.FontMode={})).Auto="Auto",M.Manual="Manual";class Y{static getAttributeTypeMap(){return Y.attributeTypeMap}}Y.attributeTypeMap=[{name:"family",baseName:"Family",type:"string"},{name:"size",baseName:"Size",type:"number"},{name:"style",baseName:"Style",type:"FontStyle"}],(T=exports.FontStyle||(exports.FontStyle={})).Regular="Regular",T.Bold="Bold",T.Italic="Italic",T.Underline="Underline",T.Strikeout="Strikeout";class Z{static getAttributeTypeMap(){return Z.attributeTypeMap}}Z.attributeTypeMap=[{name:"typeOfBarcode",baseName:"TypeOfBarcode",type:"EncodeBarcodeType"},{name:"text",baseName:"Text",type:"string"},{name:"twoDDisplayText",baseName:"TwoDDisplayText",type:"string"},{name:"textLocation",baseName:"TextLocation",type:"CodeLocation"},{name:"textAlignment",baseName:"TextAlignment",type:"TextAlignment"},{name:"textColor",baseName:"TextColor",type:"string"},{name:"font",baseName:"Font",type:"FontParams"},{name:"fontSizeMode",baseName:"FontSizeMode",type:"FontMode"},{name:"resolution",baseName:"Resolution",type:"number"},{name:"resolutionX",baseName:"ResolutionX",type:"number"},{name:"resolutionY",baseName:"ResolutionY",type:"number"},{name:"dimensionX",baseName:"DimensionX",type:"number"},{name:"textSpace",baseName:"TextSpace",type:"number"},{name:"units",baseName:"Units",type:"AvailableGraphicsUnit"},{name:"sizeMode",baseName:"SizeMode",type:"AutoSizeMode"},{name:"barHeight",baseName:"BarHeight",type:"number"},{name:"imageHeight",baseName:"ImageHeight",type:"number"},{name:"imageWidth",baseName:"ImageWidth",type:"number"},{name:"rotationAngle",baseName:"RotationAngle",type:"number"},{name:"padding",baseName:"Padding",type:"Padding"},{name:"captionAbove",baseName:"CaptionAbove",type:"CaptionParams"},{name:"captionBelow",baseName:"CaptionBelow",type:"CaptionParams"},{name:"backColor",baseName:"BackColor",type:"string"},{name:"barColor",baseName:"BarColor",type:"string"},{name:"borderColor",baseName:"BorderColor",type:"string"},{name:"borderWidth",baseName:"BorderWidth",type:"number"},{name:"borderDashStyle",baseName:"BorderDashStyle",type:"BorderDashStyle"},{name:"borderVisible",baseName:"BorderVisible",type:"boolean"},{name:"enableChecksum",baseName:"EnableChecksum",type:"EnableChecksum"},{name:"enableEscape",baseName:"EnableEscape",type:"boolean"},{name:"filledBars",baseName:"FilledBars",type:"boolean"},{name:"alwaysShowChecksum",baseName:"AlwaysShowChecksum",type:"boolean"},{name:"wideNarrowRatio",baseName:"WideNarrowRatio",type:"number"},{name:"validateText",baseName:"ValidateText",type:"boolean"},{name:"supplementData",baseName:"SupplementData",type:"string"},{name:"supplementSpace",baseName:"SupplementSpace",type:"number"},{name:"barWidthReduction",baseName:"BarWidthReduction",type:"number"},{name:"australianPost",baseName:"AustralianPost",type:"AustralianPostParams"},{name:"aztec",baseName:"Aztec",type:"AztecParams"},{name:"codabar",baseName:"Codabar",type:"CodabarParams"},{name:"codablock",baseName:"Codablock",type:"CodablockParams"},{name:"code16K",baseName:"Code16K",type:"Code16KParams"},{name:"coupon",baseName:"Coupon",type:"CouponParams"},{name:"dataBar",baseName:"DataBar",type:"DataBarParams"},{name:"dataMatrix",baseName:"DataMatrix",type:"DataMatrixParams"},{name:"dotCode",baseName:"DotCode",type:"DotCodeParams"},{name:"ITF",baseName:"ITF",type:"ITFParams"},{name:"maxiCode",baseName:"MaxiCode",type:"MaxiCodeParams"},{name:"pdf417",baseName:"Pdf417",type:"Pdf417Params"},{name:"postal",baseName:"Postal",type:"PostalParams"},{name:"QR",baseName:"QR",type:"QrParams"},{name:"patchCode",baseName:"PatchCode",type:"PatchCodeParams"}];class J{static getAttributeTypeMap(){return J.attributeTypeMap}}J.attributeTypeMap=[{name:"barcodeBuilders",baseName:"BarcodeBuilders",type:"Array<GeneratorParams>"},{name:"xStep",baseName:"XStep",type:"number"},{name:"yStep",baseName:"YStep",type:"number"}],(N=exports.ITF14BorderType||(exports.ITF14BorderType={})).None="None",N.Frame="Frame",N.Bar="Bar",N.FrameOut="FrameOut",N.BarOut="BarOut";class ${static getAttributeTypeMap(){return $.attributeTypeMap}}$.attributeTypeMap=[{name:"borderThickness",baseName:"BorderThickness",type:"number"},{name:"borderType",baseName:"BorderType",type:"ITF14BorderType"},{name:"quietZoneCoef",baseName:"QuietZoneCoef",type:"number"}];class ee{static getAttributeTypeMap(){return ee.attributeTypeMap}}ee.attributeTypeMap=[{name:"aspectRatio",baseName:"AspectRatio",type:"number"},{name:"encodeMode",baseName:"EncodeMode",type:"number"}];class ae{static getAttributeTypeMap(){return ae.attributeTypeMap}}ae.attributeTypeMap=[{name:"code",baseName:"Code",type:"string"},{name:"message",baseName:"Message",type:"string"},{name:"description",baseName:"Description",type:"string"},{name:"innerError",baseName:"InnerError",type:"ErrorDetails"}];class te{static getAttributeTypeMap(){return te.attributeTypeMap}}te.attributeTypeMap=[{name:"exists",baseName:"Exists",type:"boolean"},{name:"isFolder",baseName:"IsFolder",type:"boolean"}];class oe{static getAttributeTypeMap(){return oe.attributeTypeMap}}oe.attributeTypeMap=[{name:"left",baseName:"Left",type:"number"},{name:"right",baseName:"Right",type:"number"},{name:"top",baseName:"Top",type:"number"},{name:"bottom",baseName:"Bottom",type:"number"}];class re{static getAttributeTypeMap(){return re.attributeTypeMap}}re.attributeTypeMap=[{name:"extraBarcodeText",baseName:"ExtraBarcodeText",type:"string"},{name:"patchFormat",baseName:"PatchFormat",type:"PatchFormat"}],(w=exports.PatchFormat||(exports.PatchFormat={})).PatchOnly="PatchOnly",w.A4="A4",w.A4LANDSCAPE="A4_LANDSCAPE",w.USLetter="US_Letter",w.USLetterLANDSCAPE="US_Letter_LANDSCAPE",(x=exports.Pdf417CompactionMode||(exports.Pdf417CompactionMode={})).Auto="Auto",x.Text="Text",x.Numeric="Numeric",x.Binary="Binary",(D=exports.Pdf417ErrorLevel||(exports.Pdf417ErrorLevel={})).Level0="Level0",D.Level1="Level1",D.Level2="Level2",D.Level3="Level3",D.Level4="Level4",D.Level5="Level5",D.Level6="Level6",D.Level7="Level7",D.Level8="Level8";class ie{static getAttributeTypeMap(){return ie.attributeTypeMap}}ie.attributeTypeMap=[{name:"aspectRatio",baseName:"AspectRatio",type:"number"},{name:"textEncoding",baseName:"TextEncoding",type:"string"},{name:"columns",baseName:"Columns",type:"number"},{name:"compactionMode",baseName:"CompactionMode",type:"Pdf417CompactionMode"},{name:"errorLevel",baseName:"ErrorLevel",type:"Pdf417ErrorLevel"},{name:"macroFileID",baseName:"MacroFileID",type:"number"},{name:"macroSegmentID",baseName:"MacroSegmentID",type:"number"},{name:"macroSegmentsCount",baseName:"MacroSegmentsCount",type:"number"},{name:"rows",baseName:"Rows",type:"number"},{name:"truncate",baseName:"Truncate",type:"boolean"},{name:"pdf417ECIEncoding",baseName:"Pdf417ECIEncoding",type:"ECIEncodings"},{name:"isReaderInitialization",baseName:"IsReaderInitialization",type:"boolean"}];class se{static getAttributeTypeMap(){return se.attributeTypeMap}}se.attributeTypeMap=[{name:"shortBarHeight",baseName:"ShortBarHeight",type:"number"}],(A=exports.PresetType||(exports.PresetType={})).HighPerformance="HighPerformance",A.NormalQuality="NormalQuality",A.HighQualityDetection="HighQualityDetection",A.MaxQualityDetection="MaxQualityDetection",A.HighQuality="HighQuality",A.MaxBarCodes="MaxBarCodes",(E=exports.QREncodeMode||(exports.QREncodeMode={})).Auto="Auto",E.Bytes="Bytes",E.Utf8BOM="Utf8BOM",E.Utf16BEBOM="Utf16BEBOM",E.ECIEncoding="ECIEncoding",E.ExtendedCodetext="ExtendedCodetext",(v=exports.QREncodeType||(exports.QREncodeType={})).Auto="Auto",v.ForceQR="ForceQR",v.ForceMicroQR="ForceMicroQR",(z=exports.QRErrorLevel||(exports.QRErrorLevel={})).LevelL="LevelL",z.LevelM="LevelM",z.LevelQ="LevelQ",z.LevelH="LevelH",(I=exports.QRVersion||(exports.QRVersion={})).Auto="Auto",I.Version01="Version01",I.Version02="Version02",I.Version03="Version03",I.Version04="Version04",I.Version05="Version05",I.Version06="Version06",I.Version07="Version07",I.Version08="Version08",I.Version09="Version09",I.Version10="Version10",I.Version11="Version11",I.Version12="Version12",I.Version13="Version13",I.Version14="Version14",I.Version15="Version15",I.Version16="Version16",I.Version17="Version17",I.Version18="Version18",I.Version19="Version19",I.Version20="Version20",I.Version21="Version21",I.Version22="Version22",I.Version23="Version23",I.Version24="Version24",I.Version25="Version25",I.Version26="Version26",I.Version27="Version27",I.Version28="Version28",I.Version29="Version29",I.Version30="Version30",I.Version31="Version31",I.Version32="Version32",I.Version33="Version33",I.Version34="Version34",I.Version35="Version35",I.Version36="Version36",I.Version37="Version37",I.Version38="Version38",I.Version39="Version39",I.Version40="Version40",I.VersionM1="VersionM1",I.VersionM2="VersionM2",I.VersionM3="VersionM3",I.VersionM4="VersionM4";class ne{static getAttributeTypeMap(){return ne.attributeTypeMap}}ne.attributeTypeMap=[{name:"aspectRatio",baseName:"AspectRatio",type:"number"},{name:"textEncoding",baseName:"TextEncoding",type:"string"},{name:"encodeType",baseName:"EncodeType",type:"QREncodeType"},{name:"eCIEncoding",baseName:"ECIEncoding",type:"ECIEncodings"},{name:"encodeMode",baseName:"EncodeMode",type:"QREncodeMode"},{name:"errorLevel",baseName:"ErrorLevel",type:"QRErrorLevel"},{name:"version",baseName:"Version",type:"QRVersion"}];class de{static getAttributeTypeMap(){return de.attributeTypeMap}}de.attributeTypeMap=[{name:"type",baseName:"Type",type:"DecodeBarcodeType"},{name:"checksumValidation",baseName:"ChecksumValidation",type:"ChecksumValidation"},{name:"detectEncoding",baseName:"DetectEncoding",type:"boolean"},{name:"preset",baseName:"Preset",type:"PresetType"},{name:"rectX",baseName:"RectX",type:"number"},{name:"rectY",baseName:"RectY",type:"number"},{name:"rectWidth",baseName:"RectWidth",type:"number"},{name:"rectHeight",baseName:"RectHeight",type:"number"},{name:"stripFNC",baseName:"StripFNC",type:"boolean"},{name:"timeout",baseName:"Timeout",type:"number"},{name:"medianSmoothingWindowSize",baseName:"MedianSmoothingWindowSize",type:"number"},{name:"allowMedianSmoothing",baseName:"AllowMedianSmoothing",type:"boolean"},{name:"allowComplexBackground",baseName:"AllowComplexBackground",type:"boolean"},{name:"allowDatamatrixIndustrialBarcodes",baseName:"AllowDatamatrixIndustrialBarcodes",type:"boolean"},{name:"allowDecreasedImage",baseName:"AllowDecreasedImage",type:"boolean"},{name:"allowDetectScanGap",baseName:"AllowDetectScanGap",type:"boolean"},{name:"allowIncorrectBarcodes",baseName:"AllowIncorrectBarcodes",type:"boolean"},{name:"allowInvertImage",baseName:"AllowInvertImage",type:"boolean"},{name:"allowMicroWhiteSpotsRemoving",baseName:"AllowMicroWhiteSpotsRemoving",type:"boolean"},{name:"allowOneDFastBarcodesDetector",baseName:"AllowOneDFastBarcodesDetector",type:"boolean"},{name:"allowOneDWipedBarsRestoration",baseName:"AllowOneDWipedBarsRestoration",type:"boolean"},{name:"allowQRMicroQrRestoration",baseName:"AllowQRMicroQrRestoration",type:"boolean"},{name:"allowRegularImage",baseName:"AllowRegularImage",type:"boolean"},{name:"allowSaltAndPepperFiltering",baseName:"AllowSaltAndPepperFiltering",type:"boolean"},{name:"allowWhiteSpotsRemoving",baseName:"AllowWhiteSpotsRemoving",type:"boolean"},{name:"regionLikelihoodThresholdPercent",baseName:"RegionLikelihoodThresholdPercent",type:"number"},{name:"scanWindowSizes",baseName:"ScanWindowSizes",type:"Array<number>"},{name:"similarity",baseName:"Similarity",type:"number"},{name:"skipDiagonalSearch",baseName:"SkipDiagonalSearch",type:"boolean"},{name:"readTinyBarcodes",baseName:"ReadTinyBarcodes",type:"boolean"},{name:"australianPostEncodingTable",baseName:"AustralianPostEncodingTable",type:"CustomerInformationInterpretingType"}];class le{static getAttributeTypeMap(){return le.attributeTypeMap}}le.attributeTypeMap=[{name:"X",baseName:"X",type:"number"},{name:"Y",baseName:"Y",type:"number"}];class pe{static getAttributeTypeMap(){return pe.attributeTypeMap}}pe.attributeTypeMap=[{name:"fileSize",baseName:"FileSize",type:"number"},{name:"imageWidth",baseName:"ImageWidth",type:"number"},{name:"imageHeight",baseName:"ImageHeight",type:"number"}];class ce{static getAttributeTypeMap(){return ce.attributeTypeMap}}ce.attributeTypeMap=[{name:"exists",baseName:"Exists",type:"boolean"}];class ue{static getAttributeTypeMap(){return ue.attributeTypeMap}}ue.attributeTypeMap=[{name:"name",baseName:"Name",type:"string"},{name:"isFolder",baseName:"IsFolder",type:"boolean"},{name:"modifiedDate",baseName:"ModifiedDate",type:"Date"},{name:"size",baseName:"Size",type:"number"},{name:"path",baseName:"Path",type:"string"}],(R=exports.TextAlignment||(exports.TextAlignment={})).Left="Left",R.Center="Center",R.Right="Right";class me{static getAttributeTypeMap(){return me.attributeTypeMap}}me.attributeTypeMap=[{name:"name",baseName:"Name",type:"string"},{name:"isFolder",baseName:"IsFolder",type:"boolean"},{name:"modifiedDate",baseName:"ModifiedDate",type:"Date"},{name:"size",baseName:"Size",type:"number"},{name:"path",baseName:"Path",type:"string"},{name:"versionId",baseName:"VersionId",type:"string"},{name:"isLatest",baseName:"IsLatest",type:"boolean"}];let be={AutoSizeMode:exports.AutoSizeMode,AvailableGraphicsUnit:exports.AvailableGraphicsUnit,AztecSymbolMode:exports.AztecSymbolMode,BorderDashStyle:exports.BorderDashStyle,ChecksumValidation:exports.ChecksumValidation,CodabarChecksumMode:exports.CodabarChecksumMode,CodabarSymbol:exports.CodabarSymbol,CodeLocation:exports.CodeLocation,CustomerInformationInterpretingType:exports.CustomerInformationInterpretingType,DataMatrixEccType:exports.DataMatrixEccType,DataMatrixEncodeMode:exports.DataMatrixEncodeMode,DecodeBarcodeType:exports.DecodeBarcodeType,ECIEncodings:exports.ECIEncodings,EnableChecksum:exports.EnableChecksum,EncodeBarcodeType:exports.EncodeBarcodeType,FontMode:exports.FontMode,FontStyle:exports.FontStyle,ITF14BorderType:exports.ITF14BorderType,PatchFormat:exports.PatchFormat,Pdf417CompactionMode:exports.Pdf417CompactionMode,Pdf417ErrorLevel:exports.Pdf417ErrorLevel,PresetType:exports.PresetType,QREncodeMode:exports.QREncodeMode,QREncodeType:exports.QREncodeType,QRErrorLevel:exports.QRErrorLevel,QRVersion:exports.QRVersion,TextAlignment:exports.TextAlignment},ye={ApiError:r,ApiErrorResponse:i,AustralianPostParams:s,AztecParams:B,BarcodeResponse:F,BarcodeResponseList:V,CaptionParams:O,CodabarParams:L,CodablockParams:_,Code16KParams:U,CouponParams:k,DataBarParams:q,DataMatrixParams:Q,DiscUsage:G,DotCodeParams:H,ErrorDetails:W,FileVersions:j,FilesList:K,FilesUploadResult:X,FontParams:Y,GeneratorParams:Z,GeneratorParamsList:J,ITFParams:$,MaxiCodeParams:ee,ModelError:ae,ObjectExist:te,Padding:oe,PatchCodeParams:re,Pdf417Params:ie,PostalParams:se,QrParams:ne,ReaderParams:de,RegionPoint:le,ResultImageInfo:pe,StorageExist:ce,StorageFile:ue,FileVersion:me};class ge{constructor(e){this._configuration=e,e.accessToken&&(this._accessToken=e.accessToken)}async applyToRequest(e){return null==this._accessToken&&await this.requestToken(),e&&e.headers&&(e.headers.Authorization="Bearer "+this._accessToken),Promise.resolve()}async applyUnauthorized(){if(!this._configuration.appSID||!this._configuration.appKey)throw new Error("Required 'appSID' or 'appKey' not specified in configuration.");await this.requestToken()}requestToken(){const e={method:"POST",json:!0,uri:this._configuration.baseUrl+"/connect/token",form:{grant_type:"client_credentials",client_id:this._configuration.appSID,client_secret:this._configuration.appKey}};return new Promise((t,o)=>{const r=this;a(e,(e,a)=>{e?o(e):a.statusCode&&a.statusCode>=200&&a.statusCode<=299?(r._accessToken=a.body.access_token,t()):o(a.body)})})}}var he;(he=exports.ApiVersion||(exports.ApiVersion={})).v1="v1",he.v2="v1.1",he.v3="v3.0",exports.ApiError=r,exports.ApiErrorResponse=i,exports.AustralianPostParams=s,exports.AztecParams=B,exports.BarcodeApi=class{constructor(e){this.defaultHeaders={},this._configuration=e}async getBarcodeGenerate(e,t,r,i,s,n,d,l,p,c,u,m,b,y,g,h,C,S,P,f,M,T,N,w,x,D,A,E,v,z,I,R,B,F){const V=this._configuration.getApiBaseUrl()+"/barcode/generate";let O={},L=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter type was null or undefined when calling getBarcodeGenerate.");if(null==t)throw new Error("Required parameter text was null or undefined when calling getBarcodeGenerate.");void 0!==e&&(O.Type=o.serialize(e,"'Codabar' | 'Code11' | 'Code39Standard' | 'Code39Extended' | 'Code93Standard' | 'Code93Extended' | 'Code128' | 'GS1Code128' | 'EAN8' | 'EAN13' | 'EAN14' | 'SCC14' | 'SSCC18' | 'UPCA' | 'UPCE' | 'ISBN' | 'ISSN' | 'ISMN' | 'Standard2of5' | 'Interleaved2of5' | 'Matrix2of5' | 'ItalianPost25' | 'IATA2of5' | 'ITF14' | 'ITF6' | 'MSI' | 'VIN' | 'DeutschePostIdentcode' | 'DeutschePostLeitcode' | 'OPC' | 'PZN' | 'Code16K' | 'Pharmacode' | 'DataMatrix' | 'QR' | 'Aztec' | 'Pdf417' | 'MacroPdf417' | 'AustraliaPost' | 'Postnet' | 'Planet' | 'OneCode' | 'RM4SCC' | 'DatabarOmniDirectional' | 'DatabarTruncated' | 'DatabarLimited' | 'DatabarExpanded' | 'SingaporePost' | 'GS1DataMatrix' | 'AustralianPosteParcel' | 'SwissPostParcel' | 'PatchCode' | 'DatabarExpandedStacked' | 'DatabarStacked' | 'DatabarStackedOmniDirectional' | 'MicroPdf417' | 'GS1QR' | 'MaxiCode' | 'Code32' | 'DataLogic2of5' | 'DotCode' | 'DutchKIX' | 'UpcaGs1Code128Coupon' | 'UpcaGs1DatabarCoupon' | 'CodablockF' | 'GS1CodablockF'")),void 0!==t&&(O.Text=o.serialize(t,"string")),void 0!==r&&(O.TwoDDisplayText=o.serialize(r,"string")),void 0!==i&&(O.TextLocation=o.serialize(i,"'Below' | 'Above' | 'None'")),void 0!==s&&(O.TextAlignment=o.serialize(s,"'Left' | 'Center' | 'Right'")),void 0!==n&&(O.TextColor=o.serialize(n,"string")),void 0!==d&&(O.FontSizeMode=o.serialize(d,"'Auto' | 'Manual'")),void 0!==l&&(O.Resolution=o.serialize(l,"number")),void 0!==p&&(O.ResolutionX=o.serialize(p,"number")),void 0!==c&&(O.ResolutionY=o.serialize(c,"number")),void 0!==u&&(O.DimensionX=o.serialize(u,"number")),void 0!==m&&(O.TextSpace=o.serialize(m,"number")),void 0!==b&&(O.Units=o.serialize(b,"'Pixel' | 'Point' | 'Inch' | 'Millimeter'")),void 0!==y&&(O.SizeMode=o.serialize(y,"'None' | 'Nearest' | 'Interpolation'")),void 0!==g&&(O.BarHeight=o.serialize(g,"number")),void 0!==h&&(O.ImageHeight=o.serialize(h,"number")),void 0!==C&&(O.ImageWidth=o.serialize(C,"number")),void 0!==S&&(O.RotationAngle=o.serialize(S,"number")),void 0!==P&&(O.BackColor=o.serialize(P,"string")),void 0!==f&&(O.BarColor=o.serialize(f,"string")),void 0!==M&&(O.BorderColor=o.serialize(M,"string")),void 0!==T&&(O.BorderWidth=o.serialize(T,"number")),void 0!==N&&(O.BorderDashStyle=o.serialize(N,"'Solid' | 'Dash' | 'Dot' | 'DashDot' | 'DashDotDot'")),void 0!==w&&(O.BorderVisible=o.serialize(w,"boolean")),void 0!==x&&(O.EnableChecksum=o.serialize(x,"'Default' | 'Yes' | 'No'")),void 0!==D&&(O.EnableEscape=o.serialize(D,"boolean")),void 0!==A&&(O.FilledBars=o.serialize(A,"boolean")),void 0!==E&&(O.AlwaysShowChecksum=o.serialize(E,"boolean")),void 0!==v&&(O.WideNarrowRatio=o.serialize(v,"number")),void 0!==z&&(O.ValidateText=o.serialize(z,"boolean")),void 0!==I&&(O.SupplementData=o.serialize(I,"string")),void 0!==R&&(O.SupplementSpace=o.serialize(R,"number")),void 0!==B&&(O.BarWidthReduction=o.serialize(B,"number")),void 0!==F&&(O.format=o.serialize(F,"string"));let _={method:"GET",qs:O,headers:L,uri:V,encoding:null};return await this._configuration.authentication.applyToRequest(_),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"Buffer")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(_,(e,a,t)=>r(e,a,t,!0))})}async getBarcodeRecognize(e,t,r,i,s,n,d,l,p,c,u,m,b,y,g,h,C,S,P,f,M,T,N,w,x,D,A,E,v,z,I,R,B,F,V){const O=this._configuration.getApiBaseUrl()+"/barcode/{name}/recognize".replace("{name}",String(e));let L={},_=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter name was null or undefined when calling getBarcodeRecognize.");void 0!==t&&(L.Type=o.serialize(t,"'all' | 'AustraliaPost' | 'Aztec' | 'ISBN' | 'Codabar' | 'Code11' | 'Code128' | 'GS1Code128' | 'Code39Extended' | 'Code39Standard' | 'Code93Extended' | 'Code93Standard' | 'DataMatrix' | 'DeutschePostIdentcode' | 'DeutschePostLeitcode' | 'EAN13' | 'EAN14' | 'EAN8' | 'IATA2of5' | 'Interleaved2of5' | 'ISSN' | 'ISMN' | 'ItalianPost25' | 'ITF14' | 'ITF6' | 'MacroPdf417' | 'Matrix2of5' | 'MSI' | 'OneCode' | 'OPC' | 'PatchCode' | 'Pdf417' | 'MicroPdf417' | 'Planet' | 'Postnet' | 'PZN' | 'QR' | 'MicroQR' | 'RM4SCC' | 'SCC14' | 'SSCC18' | 'Standard2of5' | 'Supplement' | 'UPCA' | 'UPCE' | 'VIN' | 'Pharmacode' | 'GS1DataMatrix' | 'DatabarOmniDirectional' | 'DatabarTruncated' | 'DatabarLimited' | 'DatabarExpanded' | 'SwissPostParcel' | 'AustralianPosteParcel' | 'Code16K' | 'DatabarStackedOmniDirectional' | 'DatabarStacked' | 'DatabarExpandedStacked' | 'CompactPdf417' | 'GS1QR' | 'MaxiCode' | 'MicrE13B' | 'Code32' | 'DataLogic2of5' | 'DotCode' | 'DutchKIX' | 'CodablockF'")),void 0!==r&&(L.ChecksumValidation=o.serialize(r,"'Default' | 'On' | 'Off'")),void 0!==i&&(L.DetectEncoding=o.serialize(i,"boolean")),void 0!==s&&(L.Preset=o.serialize(s,"'HighPerformance' | 'NormalQuality' | 'HighQualityDetection' | 'MaxQualityDetection' | 'HighQuality' | 'MaxBarCodes'")),void 0!==n&&(L.RectX=o.serialize(n,"number")),void 0!==d&&(L.RectY=o.serialize(d,"number")),void 0!==l&&(L.RectWidth=o.serialize(l,"number")),void 0!==p&&(L.RectHeight=o.serialize(p,"number")),void 0!==c&&(L.StripFNC=o.serialize(c,"boolean")),void 0!==u&&(L.Timeout=o.serialize(u,"number")),void 0!==m&&(L.MedianSmoothingWindowSize=o.serialize(m,"number")),void 0!==b&&(L.AllowMedianSmoothing=o.serialize(b,"boolean")),void 0!==y&&(L.AllowComplexBackground=o.serialize(y,"boolean")),void 0!==g&&(L.AllowDatamatrixIndustrialBarcodes=o.serialize(g,"boolean")),void 0!==h&&(L.AllowDecreasedImage=o.serialize(h,"boolean")),void 0!==C&&(L.AllowDetectScanGap=o.serialize(C,"boolean")),void 0!==S&&(L.AllowIncorrectBarcodes=o.serialize(S,"boolean")),void 0!==P&&(L.AllowInvertImage=o.serialize(P,"boolean")),void 0!==f&&(L.AllowMicroWhiteSpotsRemoving=o.serialize(f,"boolean")),void 0!==M&&(L.AllowOneDFastBarcodesDetector=o.serialize(M,"boolean")),void 0!==T&&(L.AllowOneDWipedBarsRestoration=o.serialize(T,"boolean")),void 0!==N&&(L.AllowQRMicroQrRestoration=o.serialize(N,"boolean")),void 0!==w&&(L.AllowRegularImage=o.serialize(w,"boolean")),void 0!==x&&(L.AllowSaltAndPepperFiltering=o.serialize(x,"boolean")),void 0!==D&&(L.AllowWhiteSpotsRemoving=o.serialize(D,"boolean")),void 0!==A&&(L.RegionLikelihoodThresholdPercent=o.serialize(A,"number")),void 0!==E&&(L.ScanWindowSizes=o.serialize(E,"Array<number>")),void 0!==v&&(L.Similarity=o.serialize(v,"number")),void 0!==z&&(L.SkipDiagonalSearch=o.serialize(z,"boolean")),void 0!==I&&(L.ReadTinyBarcodes=o.serialize(I,"boolean")),void 0!==R&&(L.AustralianPostEncodingTable=o.serialize(R,"'CTable' | 'NTable' | 'Other'")),void 0!==B&&(L.RectangleRegion=o.serialize(B,"string")),void 0!==F&&(L.storage=o.serialize(F,"string")),void 0!==V&&(L.folder=o.serialize(V,"string"));let U={method:"GET",qs:L,headers:_,uri:O};return await this._configuration.authentication.applyToRequest(U),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"BarcodeResponseList")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(U,(e,a,t)=>r(e,a,t,!0))})}async postBarcodeRecognizeFromUrlOrContent(e,t,r,i,s,n,d,l,p,c,u,m,b,y,g,h,C,S,P,f,M,T,N,w,x,D,A,E,v,z,I,R,B,F){const V=this._configuration.getApiBaseUrl()+"/barcode/recognize";let O={},L=Object.assign({},this.defaultHeaders);void 0!==e&&(O.Type=o.serialize(e,"'all' | 'AustraliaPost' | 'Aztec' | 'ISBN' | 'Codabar' | 'Code11' | 'Code128' | 'GS1Code128' | 'Code39Extended' | 'Code39Standard' | 'Code93Extended' | 'Code93Standard' | 'DataMatrix' | 'DeutschePostIdentcode' | 'DeutschePostLeitcode' | 'EAN13' | 'EAN14' | 'EAN8' | 'IATA2of5' | 'Interleaved2of5' | 'ISSN' | 'ISMN' | 'ItalianPost25' | 'ITF14' | 'ITF6' | 'MacroPdf417' | 'Matrix2of5' | 'MSI' | 'OneCode' | 'OPC' | 'PatchCode' | 'Pdf417' | 'MicroPdf417' | 'Planet' | 'Postnet' | 'PZN' | 'QR' | 'MicroQR' | 'RM4SCC' | 'SCC14' | 'SSCC18' | 'Standard2of5' | 'Supplement' | 'UPCA' | 'UPCE' | 'VIN' | 'Pharmacode' | 'GS1DataMatrix' | 'DatabarOmniDirectional' | 'DatabarTruncated' | 'DatabarLimited' | 'DatabarExpanded' | 'SwissPostParcel' | 'AustralianPosteParcel' | 'Code16K' | 'DatabarStackedOmniDirectional' | 'DatabarStacked' | 'DatabarExpandedStacked' | 'CompactPdf417' | 'GS1QR' | 'MaxiCode' | 'MicrE13B' | 'Code32' | 'DataLogic2of5' | 'DotCode' | 'DutchKIX' | 'CodablockF'")),void 0!==t&&(O.ChecksumValidation=o.serialize(t,"'Default' | 'On' | 'Off'")),void 0!==r&&(O.DetectEncoding=o.serialize(r,"boolean")),void 0!==i&&(O.Preset=o.serialize(i,"'HighPerformance' | 'NormalQuality' | 'HighQualityDetection' | 'MaxQualityDetection' | 'HighQuality' | 'MaxBarCodes'")),void 0!==s&&(O.RectX=o.serialize(s,"number")),void 0!==n&&(O.RectY=o.serialize(n,"number")),void 0!==d&&(O.RectWidth=o.serialize(d,"number")),void 0!==l&&(O.RectHeight=o.serialize(l,"number")),void 0!==p&&(O.StripFNC=o.serialize(p,"boolean")),void 0!==c&&(O.Timeout=o.serialize(c,"number")),void 0!==u&&(O.MedianSmoothingWindowSize=o.serialize(u,"number")),void 0!==m&&(O.AllowMedianSmoothing=o.serialize(m,"boolean")),void 0!==b&&(O.AllowComplexBackground=o.serialize(b,"boolean")),void 0!==y&&(O.AllowDatamatrixIndustrialBarcodes=o.serialize(y,"boolean")),void 0!==g&&(O.AllowDecreasedImage=o.serialize(g,"boolean")),void 0!==h&&(O.AllowDetectScanGap=o.serialize(h,"boolean")),void 0!==C&&(O.AllowIncorrectBarcodes=o.serialize(C,"boolean")),void 0!==S&&(O.AllowInvertImage=o.serialize(S,"boolean")),void 0!==P&&(O.AllowMicroWhiteSpotsRemoving=o.serialize(P,"boolean")),void 0!==f&&(O.AllowOneDFastBarcodesDetector=o.serialize(f,"boolean")),void 0!==M&&(O.AllowOneDWipedBarsRestoration=o.serialize(M,"boolean")),void 0!==T&&(O.AllowQRMicroQrRestoration=o.serialize(T,"boolean")),void 0!==N&&(O.AllowRegularImage=o.serialize(N,"boolean")),void 0!==w&&(O.AllowSaltAndPepperFiltering=o.serialize(w,"boolean")),void 0!==x&&(O.AllowWhiteSpotsRemoving=o.serialize(x,"boolean")),void 0!==D&&(O.RegionLikelihoodThresholdPercent=o.serialize(D,"number")),void 0!==A&&(O.ScanWindowSizes=o.serialize(A,"Array<number>")),void 0!==E&&(O.Similarity=o.serialize(E,"number")),void 0!==v&&(O.SkipDiagonalSearch=o.serialize(v,"boolean")),void 0!==z&&(O.ReadTinyBarcodes=o.serialize(z,"boolean")),void 0!==I&&(O.AustralianPostEncodingTable=o.serialize(I,"'CTable' | 'NTable' | 'Other'")),void 0!==R&&(O.RectangleRegion=o.serialize(R,"string")),void 0!==B&&(O.url=o.serialize(B,"string"));let _={method:"POST",qs:O,headers:L,uri:V,body:F};return await this._configuration.authentication.applyToRequest(_),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"BarcodeResponseList")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(_,(e,a,t)=>r(e,a,t,!0))})}async postGenerateMultiple(e,t){const r=this._configuration.getApiBaseUrl()+"/barcode/generateMultiple";let i={},s=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter generatorParamsList was null or undefined when calling postGenerateMultiple.");void 0!==t&&(i.format=o.serialize(t,"string"));let n={method:"POST",qs:i,headers:s,uri:r,body:o.serialize(e,"GeneratorParamsList"),json:!0,encoding:null};return await this._configuration.authentication.applyToRequest(n),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"Buffer")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(n,(e,a,t)=>r(e,a,t,!0))})}async putBarcodeGenerateFile(e,t,r,i,s,n,d,l,p,c,u,m,b,y,g,h,C,S,P,f,M,T,N,w,x,D,A,E,v,z,I,R,B,F,V,O,L){const _=this._configuration.getApiBaseUrl()+"/barcode/{name}/generate".replace("{name}",String(e));let U={},k=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter name was null or undefined when calling putBarcodeGenerateFile.");if(null==t)throw new Error("Required parameter type was null or undefined when calling putBarcodeGenerateFile.");if(null==r)throw new Error("Required parameter text was null or undefined when calling putBarcodeGenerateFile.");void 0!==t&&(U.Type=o.serialize(t,"'Codabar' | 'Code11' | 'Code39Standard' | 'Code39Extended' | 'Code93Standard' | 'Code93Extended' | 'Code128' | 'GS1Code128' | 'EAN8' | 'EAN13' | 'EAN14' | 'SCC14' | 'SSCC18' | 'UPCA' | 'UPCE' | 'ISBN' | 'ISSN' | 'ISMN' | 'Standard2of5' | 'Interleaved2of5' | 'Matrix2of5' | 'ItalianPost25' | 'IATA2of5' | 'ITF14' | 'ITF6' | 'MSI' | 'VIN' | 'DeutschePostIdentcode' | 'DeutschePostLeitcode' | 'OPC' | 'PZN' | 'Code16K' | 'Pharmacode' | 'DataMatrix' | 'QR' | 'Aztec' | 'Pdf417' | 'MacroPdf417' | 'AustraliaPost' | 'Postnet' | 'Planet' | 'OneCode' | 'RM4SCC' | 'DatabarOmniDirectional' | 'DatabarTruncated' | 'DatabarLimited' | 'DatabarExpanded' | 'SingaporePost' | 'GS1DataMatrix' | 'AustralianPosteParcel' | 'SwissPostParcel' | 'PatchCode' | 'DatabarExpandedStacked' | 'DatabarStacked' | 'DatabarStackedOmniDirectional' | 'MicroPdf417' | 'GS1QR' | 'MaxiCode' | 'Code32' | 'DataLogic2of5' | 'DotCode' | 'DutchKIX' | 'UpcaGs1Code128Coupon' | 'UpcaGs1DatabarCoupon' | 'CodablockF' | 'GS1CodablockF'")),void 0!==r&&(U.Text=o.serialize(r,"string")),void 0!==i&&(U.TwoDDisplayText=o.serialize(i,"string")),void 0!==s&&(U.TextLocation=o.serialize(s,"'Below' | 'Above' | 'None'")),void 0!==n&&(U.TextAlignment=o.serialize(n,"'Left' | 'Center' | 'Right'")),void 0!==d&&(U.TextColor=o.serialize(d,"string")),void 0!==l&&(U.FontSizeMode=o.serialize(l,"'Auto' | 'Manual'")),void 0!==p&&(U.Resolution=o.serialize(p,"number")),void 0!==c&&(U.ResolutionX=o.serialize(c,"number")),void 0!==u&&(U.ResolutionY=o.serialize(u,"number")),void 0!==m&&(U.DimensionX=o.serialize(m,"number")),void 0!==b&&(U.TextSpace=o.serialize(b,"number")),void 0!==y&&(U.Units=o.serialize(y,"'Pixel' | 'Point' | 'Inch' | 'Millimeter'")),void 0!==g&&(U.SizeMode=o.serialize(g,"'None' | 'Nearest' | 'Interpolation'")),void 0!==h&&(U.BarHeight=o.serialize(h,"number")),void 0!==C&&(U.ImageHeight=o.serialize(C,"number")),void 0!==S&&(U.ImageWidth=o.serialize(S,"number")),void 0!==P&&(U.RotationAngle=o.serialize(P,"number")),void 0!==f&&(U.BackColor=o.serialize(f,"string")),void 0!==M&&(U.BarColor=o.serialize(M,"string")),void 0!==T&&(U.BorderColor=o.serialize(T,"string")),void 0!==N&&(U.BorderWidth=o.serialize(N,"number")),void 0!==w&&(U.BorderDashStyle=o.serialize(w,"'Solid' | 'Dash' | 'Dot' | 'DashDot' | 'DashDotDot'")),void 0!==x&&(U.BorderVisible=o.serialize(x,"boolean")),void 0!==D&&(U.EnableChecksum=o.serialize(D,"'Default' | 'Yes' | 'No'")),void 0!==A&&(U.EnableEscape=o.serialize(A,"boolean")),void 0!==E&&(U.FilledBars=o.serialize(E,"boolean")),void 0!==v&&(U.AlwaysShowChecksum=o.serialize(v,"boolean")),void 0!==z&&(U.WideNarrowRatio=o.serialize(z,"number")),void 0!==I&&(U.ValidateText=o.serialize(I,"boolean")),void 0!==R&&(U.SupplementData=o.serialize(R,"string")),void 0!==B&&(U.SupplementSpace=o.serialize(B,"number")),void 0!==F&&(U.BarWidthReduction=o.serialize(F,"number")),void 0!==V&&(U.storage=o.serialize(V,"string")),void 0!==O&&(U.folder=o.serialize(O,"string")),void 0!==L&&(U.format=o.serialize(L,"string"));let q={method:"PUT",qs:U,headers:k,uri:_};return await this._configuration.authentication.applyToRequest(q),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"ResultImageInfo")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(q,(e,a,t)=>r(e,a,t,!0))})}async putBarcodeRecognizeFromBody(e,t,r,i,s){const n=this._configuration.getApiBaseUrl()+"/barcode/{name}/recognize".replace("{name}",String(e));let d={},l=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter name was null or undefined when calling putBarcodeRecognizeFromBody.");if(null==t)throw new Error("Required parameter readerParams was null or undefined when calling putBarcodeRecognizeFromBody.");void 0!==r&&(d.type=o.serialize(r,"'all' | 'AustraliaPost' | 'Aztec' | 'ISBN' | 'Codabar' | 'Code11' | 'Code128' | 'GS1Code128' | 'Code39Extended' | 'Code39Standard' | 'Code93Extended' | 'Code93Standard' | 'DataMatrix' | 'DeutschePostIdentcode' | 'DeutschePostLeitcode' | 'EAN13' | 'EAN14' | 'EAN8' | 'IATA2of5' | 'Interleaved2of5' | 'ISSN' | 'ISMN' | 'ItalianPost25' | 'ITF14' | 'ITF6' | 'MacroPdf417' | 'Matrix2of5' | 'MSI' | 'OneCode' | 'OPC' | 'PatchCode' | 'Pdf417' | 'MicroPdf417' | 'Planet' | 'Postnet' | 'PZN' | 'QR' | 'MicroQR' | 'RM4SCC' | 'SCC14' | 'SSCC18' | 'Standard2of5' | 'Supplement' | 'UPCA' | 'UPCE' | 'VIN' | 'Pharmacode' | 'GS1DataMatrix' | 'DatabarOmniDirectional' | 'DatabarTruncated' | 'DatabarLimited' | 'DatabarExpanded' | 'SwissPostParcel' | 'AustralianPosteParcel' | 'Code16K' | 'DatabarStackedOmniDirectional' | 'DatabarStacked' | 'DatabarExpandedStacked' | 'CompactPdf417' | 'GS1QR' | 'MaxiCode' | 'MicrE13B' | 'Code32' | 'DataLogic2of5' | 'DotCode' | 'DutchKIX' | 'CodablockF'")),void 0!==i&&(d.storage=o.serialize(i,"string")),void 0!==s&&(d.folder=o.serialize(s,"string"));let p={method:"PUT",qs:d,headers:l,uri:n,body:o.serialize(t,"ReaderParams"),json:!0};return await this._configuration.authentication.applyToRequest(p),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"BarcodeResponseList")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(p,(e,a,t)=>r(e,a,t,!0))})}async putGenerateMultiple(e,t,r,i,s){const n=this._configuration.getApiBaseUrl()+"/barcode/{name}/generateMultiple".replace("{name}",String(e));let d={},l=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter name was null or undefined when calling putGenerateMultiple.");if(null==t)throw new Error("Required parameter generatorParamsList was null or undefined when calling putGenerateMultiple.");void 0!==r&&(d.format=o.serialize(r,"string")),void 0!==i&&(d.folder=o.serialize(i,"string")),void 0!==s&&(d.storage=o.serialize(s,"string"));let p={method:"PUT",qs:d,headers:l,uri:n,body:o.serialize(t,"GeneratorParamsList"),json:!0};return await this._configuration.authentication.applyToRequest(p),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"ResultImageInfo")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(p,(e,a,t)=>r(e,a,t,!0))})}},exports.BarcodeResponse=F,exports.BarcodeResponseList=V,exports.CaptionParams=O,exports.CodabarParams=L,exports.CodablockParams=_,exports.Code16KParams=U,exports.Configuration=class{constructor(e,a,t,o){this.version=exports.ApiVersion.v3,this.appSID=e,this.appKey=a,this.baseUrl=t||"https://api.aspose.cloud",this.accessToken=o||"",this.authentication=new ge(this)}getApiBaseUrl(){return this.baseUrl+"/"+this.version}},exports.CouponParams=k,exports.DataBarParams=q,exports.DataMatrixParams=Q,exports.DiscUsage=G,exports.DotCodeParams=H,exports.ErrorDetails=W,exports.FileApi=class{constructor(e){this.defaultHeaders={},this._configuration=e}async copyFile(e,t,r,i,s){const n=this._configuration.getApiBaseUrl()+"/barcode/storage/file/copy/{srcPath}".replace("{srcPath}",String(e));let d={},l=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter srcPath was null or undefined when calling copyFile.");if(null==t)throw new Error("Required parameter destPath was null or undefined when calling copyFile.");void 0!==t&&(d.destPath=o.serialize(t,"string")),void 0!==r&&(d.srcStorageName=o.serialize(r,"string")),void 0!==i&&(d.destStorageName=o.serialize(i,"string")),void 0!==s&&(d.versionId=o.serialize(s,"string"));let p={method:"PUT",qs:d,headers:l,uri:n};return await this._configuration.authentication.applyToRequest(p),await new Promise((e,t)=>{const o=async(a,r,i,s)=>{a?t(a):r.statusCode&&r.statusCode>=200&&r.statusCode<=299?e({response:r}):s&&r.statusCode&&401===r.statusCode?(await this._configuration.authentication.applyUnauthorized(),await o(a,r,i,!1)):t({response:r,body:i})};a(p,(e,a,t)=>o(e,a,t,!0))})}async deleteFile(e,t,r){const i=this._configuration.getApiBaseUrl()+"/barcode/storage/file/{path}".replace("{path}",String(e));let s={},n=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter path was null or undefined when calling deleteFile.");void 0!==t&&(s.storageName=o.serialize(t,"string")),void 0!==r&&(s.versionId=o.serialize(r,"string"));let d={method:"DELETE",qs:s,headers:n,uri:i};return await this._configuration.authentication.applyToRequest(d),await new Promise((e,t)=>{const o=async(a,r,i,s)=>{a?t(a):r.statusCode&&r.statusCode>=200&&r.statusCode<=299?e({response:r}):s&&r.statusCode&&401===r.statusCode?(await this._configuration.authentication.applyUnauthorized(),await o(a,r,i,!1)):t({response:r,body:i})};a(d,(e,a,t)=>o(e,a,t,!0))})}async downloadFile(e,t,r){const i=this._configuration.getApiBaseUrl()+"/barcode/storage/file/{path}".replace("{path}",String(e));let s={},n=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter path was null or undefined when calling downloadFile.");void 0!==t&&(s.storageName=o.serialize(t,"string")),void 0!==r&&(s.versionId=o.serialize(r,"string"));let d={method:"GET",qs:s,headers:n,uri:i,encoding:null};return await this._configuration.authentication.applyToRequest(d),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"Buffer")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(d,(e,a,t)=>r(e,a,t,!0))})}async moveFile(e,t,r,i,s){const n=this._configuration.getApiBaseUrl()+"/barcode/storage/file/move/{srcPath}".replace("{srcPath}",String(e));let d={},l=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter srcPath was null or undefined when calling moveFile.");if(null==t)throw new Error("Required parameter destPath was null or undefined when calling moveFile.");void 0!==t&&(d.destPath=o.serialize(t,"string")),void 0!==r&&(d.srcStorageName=o.serialize(r,"string")),void 0!==i&&(d.destStorageName=o.serialize(i,"string")),void 0!==s&&(d.versionId=o.serialize(s,"string"));let p={method:"PUT",qs:d,headers:l,uri:n};return await this._configuration.authentication.applyToRequest(p),await new Promise((e,t)=>{const o=async(a,r,i,s)=>{a?t(a):r.statusCode&&r.statusCode>=200&&r.statusCode<=299?e({response:r}):s&&r.statusCode&&401===r.statusCode?(await this._configuration.authentication.applyUnauthorized(),await o(a,r,i,!1)):t({response:r,body:i})};a(p,(e,a,t)=>o(e,a,t,!0))})}async uploadFile(e,t,r){const i=this._configuration.getApiBaseUrl()+"/barcode/storage/file/{path}".replace("{path}",String(e));let s={},n=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter path was null or undefined when calling uploadFile.");if(null==t)throw new Error("Required parameter file was null or undefined when calling uploadFile.");void 0!==r&&(s.storageName=o.serialize(r,"string"));let d={method:"PUT",qs:s,headers:n,uri:i,body:t};return await this._configuration.authentication.applyToRequest(d),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"FilesUploadResult")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(d,(e,a,t)=>r(e,a,t,!0))})}},exports.FileVersion=me,exports.FileVersions=j,exports.FilesList=K,exports.FilesUploadResult=X,exports.FolderApi=class{constructor(e){this.defaultHeaders={},this._configuration=e}async copyFolder(e,t,r,i){const s=this._configuration.getApiBaseUrl()+"/barcode/storage/folder/copy/{srcPath}".replace("{srcPath}",String(e));let n={},d=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter srcPath was null or undefined when calling copyFolder.");if(null==t)throw new Error("Required parameter destPath was null or undefined when calling copyFolder.");void 0!==t&&(n.destPath=o.serialize(t,"string")),void 0!==r&&(n.srcStorageName=o.serialize(r,"string")),void 0!==i&&(n.destStorageName=o.serialize(i,"string"));let l={method:"PUT",qs:n,headers:d,uri:s};return await this._configuration.authentication.applyToRequest(l),await new Promise((e,t)=>{const o=async(a,r,i,s)=>{a?t(a):r.statusCode&&r.statusCode>=200&&r.statusCode<=299?e({response:r}):s&&r.statusCode&&401===r.statusCode?(await this._configuration.authentication.applyUnauthorized(),await o(a,r,i,!1)):t({response:r,body:i})};a(l,(e,a,t)=>o(e,a,t,!0))})}async createFolder(e,t){const r=this._configuration.getApiBaseUrl()+"/barcode/storage/folder/{path}".replace("{path}",String(e));let i={},s=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter path was null or undefined when calling createFolder.");void 0!==t&&(i.storageName=o.serialize(t,"string"));let n={method:"PUT",qs:i,headers:s,uri:r};return await this._configuration.authentication.applyToRequest(n),await new Promise((e,t)=>{const o=async(a,r,i,s)=>{a?t(a):r.statusCode&&r.statusCode>=200&&r.statusCode<=299?e({response:r}):s&&r.statusCode&&401===r.statusCode?(await this._configuration.authentication.applyUnauthorized(),await o(a,r,i,!1)):t({response:r,body:i})};a(n,(e,a,t)=>o(e,a,t,!0))})}async deleteFolder(e,t,r){const i=this._configuration.getApiBaseUrl()+"/barcode/storage/folder/{path}".replace("{path}",String(e));let s={},n=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter path was null or undefined when calling deleteFolder.");void 0!==t&&(s.storageName=o.serialize(t,"string")),void 0!==r&&(s.recursive=o.serialize(r,"boolean"));let d={method:"DELETE",qs:s,headers:n,uri:i};return await this._configuration.authentication.applyToRequest(d),await new Promise((e,t)=>{const o=async(a,r,i,s)=>{a?t(a):r.statusCode&&r.statusCode>=200&&r.statusCode<=299?e({response:r}):s&&r.statusCode&&401===r.statusCode?(await this._configuration.authentication.applyUnauthorized(),await o(a,r,i,!1)):t({response:r,body:i})};a(d,(e,a,t)=>o(e,a,t,!0))})}async getFilesList(e,t){const r=this._configuration.getApiBaseUrl()+"/barcode/storage/folder/{path}".replace("{path}",String(e));let i={},s=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter path was null or undefined when calling getFilesList.");void 0!==t&&(i.storageName=o.serialize(t,"string"));let n={method:"GET",qs:i,headers:s,uri:r};return await this._configuration.authentication.applyToRequest(n),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"FilesList")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(n,(e,a,t)=>r(e,a,t,!0))})}async moveFolder(e,t,r,i){const s=this._configuration.getApiBaseUrl()+"/barcode/storage/folder/move/{srcPath}".replace("{srcPath}",String(e));let n={},d=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter srcPath was null or undefined when calling moveFolder.");if(null==t)throw new Error("Required parameter destPath was null or undefined when calling moveFolder.");void 0!==t&&(n.destPath=o.serialize(t,"string")),void 0!==r&&(n.srcStorageName=o.serialize(r,"string")),void 0!==i&&(n.destStorageName=o.serialize(i,"string"));let l={method:"PUT",qs:n,headers:d,uri:s};return await this._configuration.authentication.applyToRequest(l),await new Promise((e,t)=>{const o=async(a,r,i,s)=>{a?t(a):r.statusCode&&r.statusCode>=200&&r.statusCode<=299?e({response:r}):s&&r.statusCode&&401===r.statusCode?(await this._configuration.authentication.applyUnauthorized(),await o(a,r,i,!1)):t({response:r,body:i})};a(l,(e,a,t)=>o(e,a,t,!0))})}},exports.FontParams=Y,exports.GeneratorParams=Z,exports.GeneratorParamsList=J,exports.ITFParams=$,exports.MaxiCodeParams=ee,exports.ModelError=ae,exports.ObjectExist=te,exports.Padding=oe,exports.PatchCodeParams=re,exports.Pdf417Params=ie,exports.PostalParams=se,exports.QrParams=ne,exports.ReaderParams=de,exports.RegionPoint=le,exports.ResultImageInfo=pe,exports.StorageApi=class{constructor(e){this.defaultHeaders={},this._configuration=e}async getDiscUsage(e){const t=this._configuration.getApiBaseUrl()+"/barcode/storage/disc";let r={},i=Object.assign({},this.defaultHeaders);void 0!==e&&(r.storageName=o.serialize(e,"string"));let s={method:"GET",qs:r,headers:i,uri:t};return await this._configuration.authentication.applyToRequest(s),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"DiscUsage")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(s,(e,a,t)=>r(e,a,t,!0))})}async getFileVersions(e,t){const r=this._configuration.getApiBaseUrl()+"/barcode/storage/version/{path}".replace("{path}",String(e));let i={},s=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter path was null or undefined when calling getFileVersions.");void 0!==t&&(i.storageName=o.serialize(t,"string"));let n={method:"GET",qs:i,headers:s,uri:r};return await this._configuration.authentication.applyToRequest(n),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"FileVersions")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(n,(e,a,t)=>r(e,a,t,!0))})}async objectExists(e,t,r){const i=this._configuration.getApiBaseUrl()+"/barcode/storage/exist/{path}".replace("{path}",String(e));let s={},n=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter path was null or undefined when calling objectExists.");void 0!==t&&(s.storageName=o.serialize(t,"string")),void 0!==r&&(s.versionId=o.serialize(r,"string"));let d={method:"GET",qs:s,headers:n,uri:i};return await this._configuration.authentication.applyToRequest(d),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"ObjectExist")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(d,(e,a,t)=>r(e,a,t,!0))})}async storageExists(e){const t=this._configuration.getApiBaseUrl()+"/barcode/storage/{storageName}/exist".replace("{storageName}",String(e));let r=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter storageName was null or undefined when calling storageExists.");let i={method:"GET",qs:{},headers:r,uri:t};return await this._configuration.authentication.applyToRequest(i),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"StorageExist")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(i,(e,a,t)=>r(e,a,t,!0))})}},exports.StorageExist=ce,exports.StorageFile=ue;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,a=(e=require("request"))&&"object"==typeof e&&"default"in e?e.default:e;let t=["string","boolean","double","integer","long","float","number","any"];class o{static findCorrectType(e,a){if(null==e)return a;if(-1!==t.indexOf(a.toLowerCase()))return a;if("Date"===a)return a;if(be[a])return a;if(!ye[a])return a;let o=ye[a].discriminator;return null==o?a:e[o]?e[o]:a}static serialize(e,a){if(null==e)return e;if(-1!==t.indexOf(a.toLowerCase()))return e;if(0===a.lastIndexOf("Array<",0)){let t=a.replace("Array<","");t=t.substring(0,t.length-1);let r=[];for(let a in e)r.push(o.serialize(e[a],t));return r}if("Date"===a)return e.toString();if(be[a])return be[a][e];if(!ye[a])return e;let r=ye[a].getAttributeTypeMap(),i={};for(let a in r){let t=r[a];i[t.baseName]=o.serialize(e[t.name],t.type)}return i}static deserialize(e,a){if(a=o.findCorrectType(e,a),null==e)return e;if(-1!==t.indexOf(a.toLowerCase()))return e;if(0===a.lastIndexOf("Array<",0)){let t=a.replace("Array<","");t=t.substring(0,t.length-1);let r=[];for(let a in e)r.push(o.deserialize(e[a],t));return r}if("Date"===a)return new Date(e);if(be[a])return e;if(!ye[a])return e;"string"==typeof e&&(e=JSON.parse(e));let r=new ye[a],i=ye[a].getAttributeTypeMap();for(const a of i){const t=a.baseName.replace(/^(.)/,e=>e.toLowerCase()),i=o.deserialize(e[t],a.type);r[a.name]=i}return r}}class r{static getAttributeTypeMap(){return r.attributeTypeMap}}r.attributeTypeMap=[{name:"code",baseName:"Code",type:"string"},{name:"message",baseName:"Message",type:"string"},{name:"description",baseName:"Description",type:"string"},{name:"dateTime",baseName:"DateTime",type:"Date"},{name:"innerError",baseName:"InnerError",type:"ApiError"}];class i{static getAttributeTypeMap(){return i.attributeTypeMap}}i.attributeTypeMap=[{name:"requestId",baseName:"RequestId",type:"string"},{name:"error",baseName:"Error",type:"ApiError"}];class s{static getAttributeTypeMap(){return s.attributeTypeMap}}var n,d,l,c,p,u,m,b,y,g,h,C,S,P,f,M,T,N,w,x,A,D,E,v,z,I,R;s.attributeTypeMap=[{name:"encodingTable",baseName:"EncodingTable",type:"CustomerInformationInterpretingType"},{name:"shortBarHeight",baseName:"ShortBarHeight",type:"number"}],(n=exports.AutoSizeMode||(exports.AutoSizeMode={})).None="None",n.Nearest="Nearest",n.Interpolation="Interpolation",(d=exports.AvailableGraphicsUnit||(exports.AvailableGraphicsUnit={})).Pixel="Pixel",d.Point="Point",d.Inch="Inch",d.Millimeter="Millimeter";class B{static getAttributeTypeMap(){return B.attributeTypeMap}}B.attributeTypeMap=[{name:"aspectRatio",baseName:"AspectRatio",type:"number"},{name:"errorLevel",baseName:"ErrorLevel",type:"number"},{name:"symbolMode",baseName:"SymbolMode",type:"AztecSymbolMode"},{name:"textEncoding",baseName:"TextEncoding",type:"string"}],(l=exports.AztecSymbolMode||(exports.AztecSymbolMode={})).Auto="Auto",l.Compact="Compact",l.FullRange="FullRange",l.Rune="Rune";class F{static getAttributeTypeMap(){return F.attributeTypeMap}}F.attributeTypeMap=[{name:"barcodeValue",baseName:"BarcodeValue",type:"string"},{name:"type",baseName:"Type",type:"string"},{name:"region",baseName:"Region",type:"Array<RegionPoint>"},{name:"checksum",baseName:"Checksum",type:"string"}];class V{static getAttributeTypeMap(){return V.attributeTypeMap}}V.attributeTypeMap=[{name:"barcodes",baseName:"Barcodes",type:"Array<BarcodeResponse>"}],(c=exports.BorderDashStyle||(exports.BorderDashStyle={})).Solid="Solid",c.Dash="Dash",c.Dot="Dot",c.DashDot="DashDot",c.DashDotDot="DashDotDot";class O{static getAttributeTypeMap(){return O.attributeTypeMap}}O.attributeTypeMap=[{name:"text",baseName:"Text",type:"string"},{name:"alignment",baseName:"Alignment",type:"TextAlignment"},{name:"color",baseName:"Color",type:"string"},{name:"visible",baseName:"Visible",type:"boolean"},{name:"font",baseName:"Font",type:"FontParams"},{name:"padding",baseName:"Padding",type:"Padding"}],(p=exports.ChecksumValidation||(exports.ChecksumValidation={})).Default="Default",p.On="On",p.Off="Off",(u=exports.CodabarChecksumMode||(exports.CodabarChecksumMode={})).Mod10="Mod10",u.Mod16="Mod16";class L{static getAttributeTypeMap(){return L.attributeTypeMap}}L.attributeTypeMap=[{name:"checksumMode",baseName:"ChecksumMode",type:"CodabarChecksumMode"},{name:"startSymbol",baseName:"StartSymbol",type:"CodabarSymbol"},{name:"stopSymbol",baseName:"StopSymbol",type:"CodabarSymbol"}],(m=exports.CodabarSymbol||(exports.CodabarSymbol={})).A="A",m.B="B",m.C="C",m.D="D";class _{static getAttributeTypeMap(){return _.attributeTypeMap}}_.attributeTypeMap=[{name:"aspectRatio",baseName:"AspectRatio",type:"number"},{name:"columns",baseName:"Columns",type:"number"},{name:"rows",baseName:"Rows",type:"number"}];class U{static getAttributeTypeMap(){return U.attributeTypeMap}}U.attributeTypeMap=[{name:"aspectRatio",baseName:"AspectRatio",type:"number"},{name:"quietZoneLeftCoef",baseName:"QuietZoneLeftCoef",type:"number"},{name:"quietZoneRightCoef",baseName:"QuietZoneRightCoef",type:"number"}],(b=exports.CodeLocation||(exports.CodeLocation={})).Below="Below",b.Above="Above",b.None="None";class k{static getAttributeTypeMap(){return k.attributeTypeMap}}k.attributeTypeMap=[{name:"supplementSpace",baseName:"SupplementSpace",type:"number"}],(y=exports.CustomerInformationInterpretingType||(exports.CustomerInformationInterpretingType={})).CTable="CTable",y.NTable="NTable",y.Other="Other";class q{static getAttributeTypeMap(){return q.attributeTypeMap}}q.attributeTypeMap=[{name:"aspectRatio",baseName:"AspectRatio",type:"number"},{name:"columns",baseName:"Columns",type:"number"},{name:"rows",baseName:"Rows",type:"number"}],(g=exports.DataMatrixEccType||(exports.DataMatrixEccType={})).EccAuto="EccAuto",g.Ecc000="Ecc000",g.Ecc050="Ecc050",g.Ecc080="Ecc080",g.Ecc100="Ecc100",g.Ecc140="Ecc140",g.Ecc200="Ecc200",(h=exports.DataMatrixEncodeMode||(exports.DataMatrixEncodeMode={})).Auto="Auto",h.ASCII="ASCII",h.Full="Full",h.Custom="Custom",h.C40="C40",h.Text="Text",h.EDIFACT="EDIFACT",h.ANSIX12="ANSIX12";class Q{static getAttributeTypeMap(){return Q.attributeTypeMap}}Q.attributeTypeMap=[{name:"aspectRatio",baseName:"AspectRatio",type:"number"},{name:"textEncoding",baseName:"TextEncoding",type:"string"},{name:"columns",baseName:"Columns",type:"number"},{name:"dataMatrixEcc",baseName:"DataMatrixEcc",type:"DataMatrixEccType"},{name:"dataMatrixEncodeMode",baseName:"DataMatrixEncodeMode",type:"DataMatrixEncodeMode"},{name:"rows",baseName:"Rows",type:"number"}],(C=exports.DecodeBarcodeType||(exports.DecodeBarcodeType={})).All="all",C.AustraliaPost="AustraliaPost",C.Aztec="Aztec",C.ISBN="ISBN",C.Codabar="Codabar",C.Code11="Code11",C.Code128="Code128",C.GS1Code128="GS1Code128",C.Code39Extended="Code39Extended",C.Code39Standard="Code39Standard",C.Code93Extended="Code93Extended",C.Code93Standard="Code93Standard",C.DataMatrix="DataMatrix",C.DeutschePostIdentcode="DeutschePostIdentcode",C.DeutschePostLeitcode="DeutschePostLeitcode",C.EAN13="EAN13",C.EAN14="EAN14",C.EAN8="EAN8",C.IATA2of5="IATA2of5",C.Interleaved2of5="Interleaved2of5",C.ISSN="ISSN",C.ISMN="ISMN",C.ItalianPost25="ItalianPost25",C.ITF14="ITF14",C.ITF6="ITF6",C.MacroPdf417="MacroPdf417",C.Matrix2of5="Matrix2of5",C.MSI="MSI",C.OneCode="OneCode",C.OPC="OPC",C.PatchCode="PatchCode",C.Pdf417="Pdf417",C.MicroPdf417="MicroPdf417",C.Planet="Planet",C.Postnet="Postnet",C.PZN="PZN",C.QR="QR",C.MicroQR="MicroQR",C.RM4SCC="RM4SCC",C.SCC14="SCC14",C.SSCC18="SSCC18",C.Standard2of5="Standard2of5",C.Supplement="Supplement",C.UPCA="UPCA",C.UPCE="UPCE",C.VIN="VIN",C.Pharmacode="Pharmacode",C.GS1DataMatrix="GS1DataMatrix",C.DatabarOmniDirectional="DatabarOmniDirectional",C.DatabarTruncated="DatabarTruncated",C.DatabarLimited="DatabarLimited",C.DatabarExpanded="DatabarExpanded",C.SwissPostParcel="SwissPostParcel",C.AustralianPosteParcel="AustralianPosteParcel",C.Code16K="Code16K",C.DatabarStackedOmniDirectional="DatabarStackedOmniDirectional",C.DatabarStacked="DatabarStacked",C.DatabarExpandedStacked="DatabarExpandedStacked",C.CompactPdf417="CompactPdf417",C.GS1QR="GS1QR",C.MaxiCode="MaxiCode",C.MicrE13B="MicrE13B",C.Code32="Code32",C.DataLogic2of5="DataLogic2of5",C.DotCode="DotCode",C.DutchKIX="DutchKIX",C.CodablockF="CodablockF";class G{static getAttributeTypeMap(){return G.attributeTypeMap}}G.attributeTypeMap=[{name:"usedSize",baseName:"UsedSize",type:"number"},{name:"totalSize",baseName:"TotalSize",type:"number"}];class H{static getAttributeTypeMap(){return H.attributeTypeMap}}H.attributeTypeMap=[{name:"aspectRatio",baseName:"AspectRatio",type:"number"},{name:"dotCodeMask",baseName:"DotCodeMask",type:"number"}],(S=exports.ECIEncodings||(exports.ECIEncodings={})).NONE="NONE",S.ISO88591="ISO_8859_1",S.ISO88592="ISO_8859_2",S.ISO88593="ISO_8859_3",S.ISO88594="ISO_8859_4",S.ISO88595="ISO_8859_5",S.ISO88596="ISO_8859_6",S.ISO88597="ISO_8859_7",S.ISO88598="ISO_8859_8",S.ISO88599="ISO_8859_9",S.ISO885910="ISO_8859_10",S.ISO885911="ISO_8859_11",S.ISO885913="ISO_8859_13",S.ISO885914="ISO_8859_14",S.ISO885915="ISO_8859_15",S.ISO885916="ISO_8859_16",S.ShiftJIS="Shift_JIS",S.Win1250="Win1250",S.Win1251="Win1251",S.Win1252="Win1252",S.Win1256="Win1256",S.UTF16BE="UTF16BE",S.UTF8="UTF8",S.USASCII="US_ASCII",S.Big5="Big5",S.GB18030="GB18030",S.EUCKR="EUC_KR",(P=exports.EnableChecksum||(exports.EnableChecksum={})).Default="Default",P.Yes="Yes",P.No="No",(f=exports.EncodeBarcodeType||(exports.EncodeBarcodeType={})).Codabar="Codabar",f.Code11="Code11",f.Code39Standard="Code39Standard",f.Code39Extended="Code39Extended",f.Code93Standard="Code93Standard",f.Code93Extended="Code93Extended",f.Code128="Code128",f.GS1Code128="GS1Code128",f.EAN8="EAN8",f.EAN13="EAN13",f.EAN14="EAN14",f.SCC14="SCC14",f.SSCC18="SSCC18",f.UPCA="UPCA",f.UPCE="UPCE",f.ISBN="ISBN",f.ISSN="ISSN",f.ISMN="ISMN",f.Standard2of5="Standard2of5",f.Interleaved2of5="Interleaved2of5",f.Matrix2of5="Matrix2of5",f.ItalianPost25="ItalianPost25",f.IATA2of5="IATA2of5",f.ITF14="ITF14",f.ITF6="ITF6",f.MSI="MSI",f.VIN="VIN",f.DeutschePostIdentcode="DeutschePostIdentcode",f.DeutschePostLeitcode="DeutschePostLeitcode",f.OPC="OPC",f.PZN="PZN",f.Code16K="Code16K",f.Pharmacode="Pharmacode",f.DataMatrix="DataMatrix",f.QR="QR",f.Aztec="Aztec",f.Pdf417="Pdf417",f.MacroPdf417="MacroPdf417",f.AustraliaPost="AustraliaPost",f.Postnet="Postnet",f.Planet="Planet",f.OneCode="OneCode",f.RM4SCC="RM4SCC",f.DatabarOmniDirectional="DatabarOmniDirectional",f.DatabarTruncated="DatabarTruncated",f.DatabarLimited="DatabarLimited",f.DatabarExpanded="DatabarExpanded",f.SingaporePost="SingaporePost",f.GS1DataMatrix="GS1DataMatrix",f.AustralianPosteParcel="AustralianPosteParcel",f.SwissPostParcel="SwissPostParcel",f.PatchCode="PatchCode",f.DatabarExpandedStacked="DatabarExpandedStacked",f.DatabarStacked="DatabarStacked",f.DatabarStackedOmniDirectional="DatabarStackedOmniDirectional",f.MicroPdf417="MicroPdf417",f.GS1QR="GS1QR",f.MaxiCode="MaxiCode",f.Code32="Code32",f.DataLogic2of5="DataLogic2of5",f.DotCode="DotCode",f.DutchKIX="DutchKIX",f.UpcaGs1Code128Coupon="UpcaGs1Code128Coupon",f.UpcaGs1DatabarCoupon="UpcaGs1DatabarCoupon",f.CodablockF="CodablockF",f.GS1CodablockF="GS1CodablockF";class W{static getAttributeTypeMap(){return W.attributeTypeMap}}W.attributeTypeMap=[{name:"requestId",baseName:"RequestId",type:"string"},{name:"date",baseName:"Date",type:"Date"}];class j{static getAttributeTypeMap(){return j.attributeTypeMap}}j.attributeTypeMap=[{name:"value",baseName:"Value",type:"Array<FileVersion>"}];class X{static getAttributeTypeMap(){return X.attributeTypeMap}}X.attributeTypeMap=[{name:"value",baseName:"Value",type:"Array<StorageFile>"}];class K{static getAttributeTypeMap(){return K.attributeTypeMap}}K.attributeTypeMap=[{name:"uploaded",baseName:"Uploaded",type:"Array<string>"},{name:"errors",baseName:"Errors",type:"Array<Error>"}],(M=exports.FontMode||(exports.FontMode={})).Auto="Auto",M.Manual="Manual";class Y{static getAttributeTypeMap(){return Y.attributeTypeMap}}Y.attributeTypeMap=[{name:"family",baseName:"Family",type:"string"},{name:"size",baseName:"Size",type:"number"},{name:"style",baseName:"Style",type:"FontStyle"}],(T=exports.FontStyle||(exports.FontStyle={})).Regular="Regular",T.Bold="Bold",T.Italic="Italic",T.Underline="Underline",T.Strikeout="Strikeout";class Z{static getAttributeTypeMap(){return Z.attributeTypeMap}}Z.attributeTypeMap=[{name:"typeOfBarcode",baseName:"TypeOfBarcode",type:"EncodeBarcodeType"},{name:"text",baseName:"Text",type:"string"},{name:"twoDDisplayText",baseName:"TwoDDisplayText",type:"string"},{name:"textLocation",baseName:"TextLocation",type:"CodeLocation"},{name:"textAlignment",baseName:"TextAlignment",type:"TextAlignment"},{name:"textColor",baseName:"TextColor",type:"string"},{name:"font",baseName:"Font",type:"FontParams"},{name:"fontSizeMode",baseName:"FontSizeMode",type:"FontMode"},{name:"resolution",baseName:"Resolution",type:"number"},{name:"resolutionX",baseName:"ResolutionX",type:"number"},{name:"resolutionY",baseName:"ResolutionY",type:"number"},{name:"dimensionX",baseName:"DimensionX",type:"number"},{name:"textSpace",baseName:"TextSpace",type:"number"},{name:"units",baseName:"Units",type:"AvailableGraphicsUnit"},{name:"sizeMode",baseName:"SizeMode",type:"AutoSizeMode"},{name:"barHeight",baseName:"BarHeight",type:"number"},{name:"imageHeight",baseName:"ImageHeight",type:"number"},{name:"imageWidth",baseName:"ImageWidth",type:"number"},{name:"rotationAngle",baseName:"RotationAngle",type:"number"},{name:"padding",baseName:"Padding",type:"Padding"},{name:"captionAbove",baseName:"CaptionAbove",type:"CaptionParams"},{name:"captionBelow",baseName:"CaptionBelow",type:"CaptionParams"},{name:"backColor",baseName:"BackColor",type:"string"},{name:"barColor",baseName:"BarColor",type:"string"},{name:"borderColor",baseName:"BorderColor",type:"string"},{name:"borderWidth",baseName:"BorderWidth",type:"number"},{name:"borderDashStyle",baseName:"BorderDashStyle",type:"BorderDashStyle"},{name:"borderVisible",baseName:"BorderVisible",type:"boolean"},{name:"enableChecksum",baseName:"EnableChecksum",type:"EnableChecksum"},{name:"enableEscape",baseName:"EnableEscape",type:"boolean"},{name:"filledBars",baseName:"FilledBars",type:"boolean"},{name:"alwaysShowChecksum",baseName:"AlwaysShowChecksum",type:"boolean"},{name:"wideNarrowRatio",baseName:"WideNarrowRatio",type:"number"},{name:"validateText",baseName:"ValidateText",type:"boolean"},{name:"supplementData",baseName:"SupplementData",type:"string"},{name:"supplementSpace",baseName:"SupplementSpace",type:"number"},{name:"barWidthReduction",baseName:"BarWidthReduction",type:"number"},{name:"australianPost",baseName:"AustralianPost",type:"AustralianPostParams"},{name:"aztec",baseName:"Aztec",type:"AztecParams"},{name:"codabar",baseName:"Codabar",type:"CodabarParams"},{name:"codablock",baseName:"Codablock",type:"CodablockParams"},{name:"code16K",baseName:"Code16K",type:"Code16KParams"},{name:"coupon",baseName:"Coupon",type:"CouponParams"},{name:"dataBar",baseName:"DataBar",type:"DataBarParams"},{name:"dataMatrix",baseName:"DataMatrix",type:"DataMatrixParams"},{name:"dotCode",baseName:"DotCode",type:"DotCodeParams"},{name:"ITF",baseName:"ITF",type:"ITFParams"},{name:"maxiCode",baseName:"MaxiCode",type:"MaxiCodeParams"},{name:"pdf417",baseName:"Pdf417",type:"Pdf417Params"},{name:"postal",baseName:"Postal",type:"PostalParams"},{name:"QR",baseName:"QR",type:"QrParams"},{name:"patchCode",baseName:"PatchCode",type:"PatchCodeParams"}];class J{static getAttributeTypeMap(){return J.attributeTypeMap}}J.attributeTypeMap=[{name:"barcodeBuilders",baseName:"BarcodeBuilders",type:"Array<GeneratorParams>"},{name:"xStep",baseName:"XStep",type:"number"},{name:"yStep",baseName:"YStep",type:"number"}],(N=exports.ITF14BorderType||(exports.ITF14BorderType={})).None="None",N.Frame="Frame",N.Bar="Bar",N.FrameOut="FrameOut",N.BarOut="BarOut";class ${static getAttributeTypeMap(){return $.attributeTypeMap}}$.attributeTypeMap=[{name:"borderThickness",baseName:"BorderThickness",type:"number"},{name:"borderType",baseName:"BorderType",type:"ITF14BorderType"},{name:"quietZoneCoef",baseName:"QuietZoneCoef",type:"number"}];class ee{static getAttributeTypeMap(){return ee.attributeTypeMap}}ee.attributeTypeMap=[{name:"aspectRatio",baseName:"AspectRatio",type:"number"},{name:"encodeMode",baseName:"EncodeMode",type:"number"}];class ae{static getAttributeTypeMap(){return ae.attributeTypeMap}}ae.attributeTypeMap=[{name:"code",baseName:"Code",type:"string"},{name:"message",baseName:"Message",type:"string"},{name:"description",baseName:"Description",type:"string"},{name:"innerError",baseName:"InnerError",type:"ErrorDetails"}];class te{static getAttributeTypeMap(){return te.attributeTypeMap}}te.attributeTypeMap=[{name:"exists",baseName:"Exists",type:"boolean"},{name:"isFolder",baseName:"IsFolder",type:"boolean"}];class oe{static getAttributeTypeMap(){return oe.attributeTypeMap}}oe.attributeTypeMap=[{name:"left",baseName:"Left",type:"number"},{name:"right",baseName:"Right",type:"number"},{name:"top",baseName:"Top",type:"number"},{name:"bottom",baseName:"Bottom",type:"number"}];class re{static getAttributeTypeMap(){return re.attributeTypeMap}}re.attributeTypeMap=[{name:"extraBarcodeText",baseName:"ExtraBarcodeText",type:"string"},{name:"patchFormat",baseName:"PatchFormat",type:"PatchFormat"}],(w=exports.PatchFormat||(exports.PatchFormat={})).PatchOnly="PatchOnly",w.A4="A4",w.A4LANDSCAPE="A4_LANDSCAPE",w.USLetter="US_Letter",w.USLetterLANDSCAPE="US_Letter_LANDSCAPE",(x=exports.Pdf417CompactionMode||(exports.Pdf417CompactionMode={})).Auto="Auto",x.Text="Text",x.Numeric="Numeric",x.Binary="Binary",(A=exports.Pdf417ErrorLevel||(exports.Pdf417ErrorLevel={})).Level0="Level0",A.Level1="Level1",A.Level2="Level2",A.Level3="Level3",A.Level4="Level4",A.Level5="Level5",A.Level6="Level6",A.Level7="Level7",A.Level8="Level8";class ie{static getAttributeTypeMap(){return ie.attributeTypeMap}}ie.attributeTypeMap=[{name:"aspectRatio",baseName:"AspectRatio",type:"number"},{name:"textEncoding",baseName:"TextEncoding",type:"string"},{name:"columns",baseName:"Columns",type:"number"},{name:"compactionMode",baseName:"CompactionMode",type:"Pdf417CompactionMode"},{name:"errorLevel",baseName:"ErrorLevel",type:"Pdf417ErrorLevel"},{name:"macroFileID",baseName:"MacroFileID",type:"number"},{name:"macroSegmentID",baseName:"MacroSegmentID",type:"number"},{name:"macroSegmentsCount",baseName:"MacroSegmentsCount",type:"number"},{name:"rows",baseName:"Rows",type:"number"},{name:"truncate",baseName:"Truncate",type:"boolean"},{name:"pdf417ECIEncoding",baseName:"Pdf417ECIEncoding",type:"ECIEncodings"},{name:"isReaderInitialization",baseName:"IsReaderInitialization",type:"boolean"}];class se{static getAttributeTypeMap(){return se.attributeTypeMap}}se.attributeTypeMap=[{name:"shortBarHeight",baseName:"ShortBarHeight",type:"number"}],(D=exports.PresetType||(exports.PresetType={})).HighPerformance="HighPerformance",D.NormalQuality="NormalQuality",D.HighQualityDetection="HighQualityDetection",D.MaxQualityDetection="MaxQualityDetection",D.HighQuality="HighQuality",D.MaxBarCodes="MaxBarCodes",(E=exports.QREncodeMode||(exports.QREncodeMode={})).Auto="Auto",E.Bytes="Bytes",E.Utf8BOM="Utf8BOM",E.Utf16BEBOM="Utf16BEBOM",E.ECIEncoding="ECIEncoding",E.ExtendedCodetext="ExtendedCodetext",(v=exports.QREncodeType||(exports.QREncodeType={})).Auto="Auto",v.ForceQR="ForceQR",v.ForceMicroQR="ForceMicroQR",(z=exports.QRErrorLevel||(exports.QRErrorLevel={})).LevelL="LevelL",z.LevelM="LevelM",z.LevelQ="LevelQ",z.LevelH="LevelH",(I=exports.QRVersion||(exports.QRVersion={})).Auto="Auto",I.Version01="Version01",I.Version02="Version02",I.Version03="Version03",I.Version04="Version04",I.Version05="Version05",I.Version06="Version06",I.Version07="Version07",I.Version08="Version08",I.Version09="Version09",I.Version10="Version10",I.Version11="Version11",I.Version12="Version12",I.Version13="Version13",I.Version14="Version14",I.Version15="Version15",I.Version16="Version16",I.Version17="Version17",I.Version18="Version18",I.Version19="Version19",I.Version20="Version20",I.Version21="Version21",I.Version22="Version22",I.Version23="Version23",I.Version24="Version24",I.Version25="Version25",I.Version26="Version26",I.Version27="Version27",I.Version28="Version28",I.Version29="Version29",I.Version30="Version30",I.Version31="Version31",I.Version32="Version32",I.Version33="Version33",I.Version34="Version34",I.Version35="Version35",I.Version36="Version36",I.Version37="Version37",I.Version38="Version38",I.Version39="Version39",I.Version40="Version40",I.VersionM1="VersionM1",I.VersionM2="VersionM2",I.VersionM3="VersionM3",I.VersionM4="VersionM4";class ne{static getAttributeTypeMap(){return ne.attributeTypeMap}}ne.attributeTypeMap=[{name:"aspectRatio",baseName:"AspectRatio",type:"number"},{name:"textEncoding",baseName:"TextEncoding",type:"string"},{name:"encodeType",baseName:"EncodeType",type:"QREncodeType"},{name:"eCIEncoding",baseName:"ECIEncoding",type:"ECIEncodings"},{name:"encodeMode",baseName:"EncodeMode",type:"QREncodeMode"},{name:"errorLevel",baseName:"ErrorLevel",type:"QRErrorLevel"},{name:"version",baseName:"Version",type:"QRVersion"}];class de{static getAttributeTypeMap(){return de.attributeTypeMap}}de.attributeTypeMap=[{name:"type",baseName:"Type",type:"DecodeBarcodeType"},{name:"checksumValidation",baseName:"ChecksumValidation",type:"ChecksumValidation"},{name:"detectEncoding",baseName:"DetectEncoding",type:"boolean"},{name:"preset",baseName:"Preset",type:"PresetType"},{name:"rectX",baseName:"RectX",type:"number"},{name:"rectY",baseName:"RectY",type:"number"},{name:"rectWidth",baseName:"RectWidth",type:"number"},{name:"rectHeight",baseName:"RectHeight",type:"number"},{name:"stripFNC",baseName:"StripFNC",type:"boolean"},{name:"timeout",baseName:"Timeout",type:"number"},{name:"medianSmoothingWindowSize",baseName:"MedianSmoothingWindowSize",type:"number"},{name:"allowMedianSmoothing",baseName:"AllowMedianSmoothing",type:"boolean"},{name:"allowComplexBackground",baseName:"AllowComplexBackground",type:"boolean"},{name:"allowDatamatrixIndustrialBarcodes",baseName:"AllowDatamatrixIndustrialBarcodes",type:"boolean"},{name:"allowDecreasedImage",baseName:"AllowDecreasedImage",type:"boolean"},{name:"allowDetectScanGap",baseName:"AllowDetectScanGap",type:"boolean"},{name:"allowIncorrectBarcodes",baseName:"AllowIncorrectBarcodes",type:"boolean"},{name:"allowInvertImage",baseName:"AllowInvertImage",type:"boolean"},{name:"allowMicroWhiteSpotsRemoving",baseName:"AllowMicroWhiteSpotsRemoving",type:"boolean"},{name:"allowOneDFastBarcodesDetector",baseName:"AllowOneDFastBarcodesDetector",type:"boolean"},{name:"allowOneDWipedBarsRestoration",baseName:"AllowOneDWipedBarsRestoration",type:"boolean"},{name:"allowQRMicroQrRestoration",baseName:"AllowQRMicroQrRestoration",type:"boolean"},{name:"allowRegularImage",baseName:"AllowRegularImage",type:"boolean"},{name:"allowSaltAndPepperFiltering",baseName:"AllowSaltAndPepperFiltering",type:"boolean"},{name:"allowWhiteSpotsRemoving",baseName:"AllowWhiteSpotsRemoving",type:"boolean"},{name:"regionLikelihoodThresholdPercent",baseName:"RegionLikelihoodThresholdPercent",type:"number"},{name:"scanWindowSizes",baseName:"ScanWindowSizes",type:"Array<number>"},{name:"similarity",baseName:"Similarity",type:"number"},{name:"skipDiagonalSearch",baseName:"SkipDiagonalSearch",type:"boolean"},{name:"readTinyBarcodes",baseName:"ReadTinyBarcodes",type:"boolean"},{name:"australianPostEncodingTable",baseName:"AustralianPostEncodingTable",type:"CustomerInformationInterpretingType"}];class le{static getAttributeTypeMap(){return le.attributeTypeMap}}le.attributeTypeMap=[{name:"X",baseName:"X",type:"number"},{name:"Y",baseName:"Y",type:"number"}];class ce{static getAttributeTypeMap(){return ce.attributeTypeMap}}ce.attributeTypeMap=[{name:"fileSize",baseName:"FileSize",type:"number"},{name:"imageWidth",baseName:"ImageWidth",type:"number"},{name:"imageHeight",baseName:"ImageHeight",type:"number"}];class pe{static getAttributeTypeMap(){return pe.attributeTypeMap}}pe.attributeTypeMap=[{name:"exists",baseName:"Exists",type:"boolean"}];class ue{static getAttributeTypeMap(){return ue.attributeTypeMap}}ue.attributeTypeMap=[{name:"name",baseName:"Name",type:"string"},{name:"isFolder",baseName:"IsFolder",type:"boolean"},{name:"modifiedDate",baseName:"ModifiedDate",type:"Date"},{name:"size",baseName:"Size",type:"number"},{name:"path",baseName:"Path",type:"string"}],(R=exports.TextAlignment||(exports.TextAlignment={})).Left="Left",R.Center="Center",R.Right="Right";class me{static getAttributeTypeMap(){return me.attributeTypeMap}}me.attributeTypeMap=[{name:"name",baseName:"Name",type:"string"},{name:"isFolder",baseName:"IsFolder",type:"boolean"},{name:"modifiedDate",baseName:"ModifiedDate",type:"Date"},{name:"size",baseName:"Size",type:"number"},{name:"path",baseName:"Path",type:"string"},{name:"versionId",baseName:"VersionId",type:"string"},{name:"isLatest",baseName:"IsLatest",type:"boolean"}];let be={AutoSizeMode:exports.AutoSizeMode,AvailableGraphicsUnit:exports.AvailableGraphicsUnit,AztecSymbolMode:exports.AztecSymbolMode,BorderDashStyle:exports.BorderDashStyle,ChecksumValidation:exports.ChecksumValidation,CodabarChecksumMode:exports.CodabarChecksumMode,CodabarSymbol:exports.CodabarSymbol,CodeLocation:exports.CodeLocation,CustomerInformationInterpretingType:exports.CustomerInformationInterpretingType,DataMatrixEccType:exports.DataMatrixEccType,DataMatrixEncodeMode:exports.DataMatrixEncodeMode,DecodeBarcodeType:exports.DecodeBarcodeType,ECIEncodings:exports.ECIEncodings,EnableChecksum:exports.EnableChecksum,EncodeBarcodeType:exports.EncodeBarcodeType,FontMode:exports.FontMode,FontStyle:exports.FontStyle,ITF14BorderType:exports.ITF14BorderType,PatchFormat:exports.PatchFormat,Pdf417CompactionMode:exports.Pdf417CompactionMode,Pdf417ErrorLevel:exports.Pdf417ErrorLevel,PresetType:exports.PresetType,QREncodeMode:exports.QREncodeMode,QREncodeType:exports.QREncodeType,QRErrorLevel:exports.QRErrorLevel,QRVersion:exports.QRVersion,TextAlignment:exports.TextAlignment},ye={ApiError:r,ApiErrorResponse:i,AustralianPostParams:s,AztecParams:B,BarcodeResponse:F,BarcodeResponseList:V,CaptionParams:O,CodabarParams:L,CodablockParams:_,Code16KParams:U,CouponParams:k,DataBarParams:q,DataMatrixParams:Q,DiscUsage:G,DotCodeParams:H,ErrorDetails:W,FileVersions:j,FilesList:X,FilesUploadResult:K,FontParams:Y,GeneratorParams:Z,GeneratorParamsList:J,ITFParams:$,MaxiCodeParams:ee,ModelError:ae,ObjectExist:te,Padding:oe,PatchCodeParams:re,Pdf417Params:ie,PostalParams:se,QrParams:ne,ReaderParams:de,RegionPoint:le,ResultImageInfo:ce,StorageExist:pe,StorageFile:ue,FileVersion:me};class ge{constructor(e){this._configuration=e,e.accessToken&&(this._accessToken=e.accessToken)}async applyToRequest(e){return null==this._accessToken&&await this.requestToken(),e&&e.headers&&(e.headers.Authorization="Bearer "+this._accessToken),Promise.resolve()}async applyUnauthorized(){if(!this._configuration.clientId||!this._configuration.clientSecret)throw new Error("Required 'clientId' or 'clientSecret' not specified in configuration.");await this.requestToken()}requestToken(){const e={method:"POST",json:!0,uri:this._configuration.baseUrl+"/connect/token",form:{grant_type:"client_credentials",client_id:this._configuration.clientId,client_secret:this._configuration.clientSecret}};return new Promise((t,o)=>{const r=this;a(e,(e,a)=>{e?o(e):a.statusCode&&a.statusCode>=200&&a.statusCode<=299?(r._accessToken=a.body.access_token,t()):o(a.body)})})}}var he;(he=exports.ApiVersion||(exports.ApiVersion={})).v1="v1",he.v2="v1.1",he.v3="v3.0",exports.ApiError=r,exports.ApiErrorResponse=i,exports.AustralianPostParams=s,exports.AztecParams=B,exports.BarcodeApi=class{constructor(e){this.defaultHeaders={},this._configuration=e}async getBarcodeGenerate(e,t,r,i,s,n,d,l,c,p,u,m,b,y,g,h,C,S,P,f,M,T,N,w,x,A,D,E,v,z,I,R,B,F){const V=this._configuration.getApiBaseUrl()+"/barcode/generate";let O={},L=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter type was null or undefined when calling getBarcodeGenerate.");if(null==t)throw new Error("Required parameter text was null or undefined when calling getBarcodeGenerate.");void 0!==e&&(O.Type=o.serialize(e,"'Codabar' | 'Code11' | 'Code39Standard' | 'Code39Extended' | 'Code93Standard' | 'Code93Extended' | 'Code128' | 'GS1Code128' | 'EAN8' | 'EAN13' | 'EAN14' | 'SCC14' | 'SSCC18' | 'UPCA' | 'UPCE' | 'ISBN' | 'ISSN' | 'ISMN' | 'Standard2of5' | 'Interleaved2of5' | 'Matrix2of5' | 'ItalianPost25' | 'IATA2of5' | 'ITF14' | 'ITF6' | 'MSI' | 'VIN' | 'DeutschePostIdentcode' | 'DeutschePostLeitcode' | 'OPC' | 'PZN' | 'Code16K' | 'Pharmacode' | 'DataMatrix' | 'QR' | 'Aztec' | 'Pdf417' | 'MacroPdf417' | 'AustraliaPost' | 'Postnet' | 'Planet' | 'OneCode' | 'RM4SCC' | 'DatabarOmniDirectional' | 'DatabarTruncated' | 'DatabarLimited' | 'DatabarExpanded' | 'SingaporePost' | 'GS1DataMatrix' | 'AustralianPosteParcel' | 'SwissPostParcel' | 'PatchCode' | 'DatabarExpandedStacked' | 'DatabarStacked' | 'DatabarStackedOmniDirectional' | 'MicroPdf417' | 'GS1QR' | 'MaxiCode' | 'Code32' | 'DataLogic2of5' | 'DotCode' | 'DutchKIX' | 'UpcaGs1Code128Coupon' | 'UpcaGs1DatabarCoupon' | 'CodablockF' | 'GS1CodablockF'")),void 0!==t&&(O.Text=o.serialize(t,"string")),void 0!==r&&(O.TwoDDisplayText=o.serialize(r,"string")),void 0!==i&&(O.TextLocation=o.serialize(i,"'Below' | 'Above' | 'None'")),void 0!==s&&(O.TextAlignment=o.serialize(s,"'Left' | 'Center' | 'Right'")),void 0!==n&&(O.TextColor=o.serialize(n,"string")),void 0!==d&&(O.FontSizeMode=o.serialize(d,"'Auto' | 'Manual'")),void 0!==l&&(O.Resolution=o.serialize(l,"number")),void 0!==c&&(O.ResolutionX=o.serialize(c,"number")),void 0!==p&&(O.ResolutionY=o.serialize(p,"number")),void 0!==u&&(O.DimensionX=o.serialize(u,"number")),void 0!==m&&(O.TextSpace=o.serialize(m,"number")),void 0!==b&&(O.Units=o.serialize(b,"'Pixel' | 'Point' | 'Inch' | 'Millimeter'")),void 0!==y&&(O.SizeMode=o.serialize(y,"'None' | 'Nearest' | 'Interpolation'")),void 0!==g&&(O.BarHeight=o.serialize(g,"number")),void 0!==h&&(O.ImageHeight=o.serialize(h,"number")),void 0!==C&&(O.ImageWidth=o.serialize(C,"number")),void 0!==S&&(O.RotationAngle=o.serialize(S,"number")),void 0!==P&&(O.BackColor=o.serialize(P,"string")),void 0!==f&&(O.BarColor=o.serialize(f,"string")),void 0!==M&&(O.BorderColor=o.serialize(M,"string")),void 0!==T&&(O.BorderWidth=o.serialize(T,"number")),void 0!==N&&(O.BorderDashStyle=o.serialize(N,"'Solid' | 'Dash' | 'Dot' | 'DashDot' | 'DashDotDot'")),void 0!==w&&(O.BorderVisible=o.serialize(w,"boolean")),void 0!==x&&(O.EnableChecksum=o.serialize(x,"'Default' | 'Yes' | 'No'")),void 0!==A&&(O.EnableEscape=o.serialize(A,"boolean")),void 0!==D&&(O.FilledBars=o.serialize(D,"boolean")),void 0!==E&&(O.AlwaysShowChecksum=o.serialize(E,"boolean")),void 0!==v&&(O.WideNarrowRatio=o.serialize(v,"number")),void 0!==z&&(O.ValidateText=o.serialize(z,"boolean")),void 0!==I&&(O.SupplementData=o.serialize(I,"string")),void 0!==R&&(O.SupplementSpace=o.serialize(R,"number")),void 0!==B&&(O.BarWidthReduction=o.serialize(B,"number")),void 0!==F&&(O.format=o.serialize(F,"string"));let _={method:"GET",qs:O,headers:L,uri:V,encoding:null};return await this._configuration.authentication.applyToRequest(_),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"Buffer")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(_,(e,a,t)=>r(e,a,t,!0))})}async getBarcodeRecognize(e,t,r,i,s,n,d,l,c,p,u,m,b,y,g,h,C,S,P,f,M,T,N,w,x,A,D,E,v,z,I,R,B,F,V){const O=this._configuration.getApiBaseUrl()+"/barcode/{name}/recognize".replace("{name}",String(e));let L={},_=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter name was null or undefined when calling getBarcodeRecognize.");void 0!==t&&(L.Type=o.serialize(t,"'all' | 'AustraliaPost' | 'Aztec' | 'ISBN' | 'Codabar' | 'Code11' | 'Code128' | 'GS1Code128' | 'Code39Extended' | 'Code39Standard' | 'Code93Extended' | 'Code93Standard' | 'DataMatrix' | 'DeutschePostIdentcode' | 'DeutschePostLeitcode' | 'EAN13' | 'EAN14' | 'EAN8' | 'IATA2of5' | 'Interleaved2of5' | 'ISSN' | 'ISMN' | 'ItalianPost25' | 'ITF14' | 'ITF6' | 'MacroPdf417' | 'Matrix2of5' | 'MSI' | 'OneCode' | 'OPC' | 'PatchCode' | 'Pdf417' | 'MicroPdf417' | 'Planet' | 'Postnet' | 'PZN' | 'QR' | 'MicroQR' | 'RM4SCC' | 'SCC14' | 'SSCC18' | 'Standard2of5' | 'Supplement' | 'UPCA' | 'UPCE' | 'VIN' | 'Pharmacode' | 'GS1DataMatrix' | 'DatabarOmniDirectional' | 'DatabarTruncated' | 'DatabarLimited' | 'DatabarExpanded' | 'SwissPostParcel' | 'AustralianPosteParcel' | 'Code16K' | 'DatabarStackedOmniDirectional' | 'DatabarStacked' | 'DatabarExpandedStacked' | 'CompactPdf417' | 'GS1QR' | 'MaxiCode' | 'MicrE13B' | 'Code32' | 'DataLogic2of5' | 'DotCode' | 'DutchKIX' | 'CodablockF'")),void 0!==r&&(L.ChecksumValidation=o.serialize(r,"'Default' | 'On' | 'Off'")),void 0!==i&&(L.DetectEncoding=o.serialize(i,"boolean")),void 0!==s&&(L.Preset=o.serialize(s,"'HighPerformance' | 'NormalQuality' | 'HighQualityDetection' | 'MaxQualityDetection' | 'HighQuality' | 'MaxBarCodes'")),void 0!==n&&(L.RectX=o.serialize(n,"number")),void 0!==d&&(L.RectY=o.serialize(d,"number")),void 0!==l&&(L.RectWidth=o.serialize(l,"number")),void 0!==c&&(L.RectHeight=o.serialize(c,"number")),void 0!==p&&(L.StripFNC=o.serialize(p,"boolean")),void 0!==u&&(L.Timeout=o.serialize(u,"number")),void 0!==m&&(L.MedianSmoothingWindowSize=o.serialize(m,"number")),void 0!==b&&(L.AllowMedianSmoothing=o.serialize(b,"boolean")),void 0!==y&&(L.AllowComplexBackground=o.serialize(y,"boolean")),void 0!==g&&(L.AllowDatamatrixIndustrialBarcodes=o.serialize(g,"boolean")),void 0!==h&&(L.AllowDecreasedImage=o.serialize(h,"boolean")),void 0!==C&&(L.AllowDetectScanGap=o.serialize(C,"boolean")),void 0!==S&&(L.AllowIncorrectBarcodes=o.serialize(S,"boolean")),void 0!==P&&(L.AllowInvertImage=o.serialize(P,"boolean")),void 0!==f&&(L.AllowMicroWhiteSpotsRemoving=o.serialize(f,"boolean")),void 0!==M&&(L.AllowOneDFastBarcodesDetector=o.serialize(M,"boolean")),void 0!==T&&(L.AllowOneDWipedBarsRestoration=o.serialize(T,"boolean")),void 0!==N&&(L.AllowQRMicroQrRestoration=o.serialize(N,"boolean")),void 0!==w&&(L.AllowRegularImage=o.serialize(w,"boolean")),void 0!==x&&(L.AllowSaltAndPepperFiltering=o.serialize(x,"boolean")),void 0!==A&&(L.AllowWhiteSpotsRemoving=o.serialize(A,"boolean")),void 0!==D&&(L.RegionLikelihoodThresholdPercent=o.serialize(D,"number")),void 0!==E&&(L.ScanWindowSizes=o.serialize(E,"Array<number>")),void 0!==v&&(L.Similarity=o.serialize(v,"number")),void 0!==z&&(L.SkipDiagonalSearch=o.serialize(z,"boolean")),void 0!==I&&(L.ReadTinyBarcodes=o.serialize(I,"boolean")),void 0!==R&&(L.AustralianPostEncodingTable=o.serialize(R,"'CTable' | 'NTable' | 'Other'")),void 0!==B&&(L.RectangleRegion=o.serialize(B,"string")),void 0!==F&&(L.storage=o.serialize(F,"string")),void 0!==V&&(L.folder=o.serialize(V,"string"));let U={method:"GET",qs:L,headers:_,uri:O};return await this._configuration.authentication.applyToRequest(U),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"BarcodeResponseList")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(U,(e,a,t)=>r(e,a,t,!0))})}async postBarcodeRecognizeFromUrlOrContent(e,t,r,i,s,n,d,l,c,p,u,m,b,y,g,h,C,S,P,f,M,T,N,w,x,A,D,E,v,z,I,R,B,F){const V=this._configuration.getApiBaseUrl()+"/barcode/recognize";let O={},L=Object.assign({},this.defaultHeaders);void 0!==e&&(O.Type=o.serialize(e,"'all' | 'AustraliaPost' | 'Aztec' | 'ISBN' | 'Codabar' | 'Code11' | 'Code128' | 'GS1Code128' | 'Code39Extended' | 'Code39Standard' | 'Code93Extended' | 'Code93Standard' | 'DataMatrix' | 'DeutschePostIdentcode' | 'DeutschePostLeitcode' | 'EAN13' | 'EAN14' | 'EAN8' | 'IATA2of5' | 'Interleaved2of5' | 'ISSN' | 'ISMN' | 'ItalianPost25' | 'ITF14' | 'ITF6' | 'MacroPdf417' | 'Matrix2of5' | 'MSI' | 'OneCode' | 'OPC' | 'PatchCode' | 'Pdf417' | 'MicroPdf417' | 'Planet' | 'Postnet' | 'PZN' | 'QR' | 'MicroQR' | 'RM4SCC' | 'SCC14' | 'SSCC18' | 'Standard2of5' | 'Supplement' | 'UPCA' | 'UPCE' | 'VIN' | 'Pharmacode' | 'GS1DataMatrix' | 'DatabarOmniDirectional' | 'DatabarTruncated' | 'DatabarLimited' | 'DatabarExpanded' | 'SwissPostParcel' | 'AustralianPosteParcel' | 'Code16K' | 'DatabarStackedOmniDirectional' | 'DatabarStacked' | 'DatabarExpandedStacked' | 'CompactPdf417' | 'GS1QR' | 'MaxiCode' | 'MicrE13B' | 'Code32' | 'DataLogic2of5' | 'DotCode' | 'DutchKIX' | 'CodablockF'")),void 0!==t&&(O.ChecksumValidation=o.serialize(t,"'Default' | 'On' | 'Off'")),void 0!==r&&(O.DetectEncoding=o.serialize(r,"boolean")),void 0!==i&&(O.Preset=o.serialize(i,"'HighPerformance' | 'NormalQuality' | 'HighQualityDetection' | 'MaxQualityDetection' | 'HighQuality' | 'MaxBarCodes'")),void 0!==s&&(O.RectX=o.serialize(s,"number")),void 0!==n&&(O.RectY=o.serialize(n,"number")),void 0!==d&&(O.RectWidth=o.serialize(d,"number")),void 0!==l&&(O.RectHeight=o.serialize(l,"number")),void 0!==c&&(O.StripFNC=o.serialize(c,"boolean")),void 0!==p&&(O.Timeout=o.serialize(p,"number")),void 0!==u&&(O.MedianSmoothingWindowSize=o.serialize(u,"number")),void 0!==m&&(O.AllowMedianSmoothing=o.serialize(m,"boolean")),void 0!==b&&(O.AllowComplexBackground=o.serialize(b,"boolean")),void 0!==y&&(O.AllowDatamatrixIndustrialBarcodes=o.serialize(y,"boolean")),void 0!==g&&(O.AllowDecreasedImage=o.serialize(g,"boolean")),void 0!==h&&(O.AllowDetectScanGap=o.serialize(h,"boolean")),void 0!==C&&(O.AllowIncorrectBarcodes=o.serialize(C,"boolean")),void 0!==S&&(O.AllowInvertImage=o.serialize(S,"boolean")),void 0!==P&&(O.AllowMicroWhiteSpotsRemoving=o.serialize(P,"boolean")),void 0!==f&&(O.AllowOneDFastBarcodesDetector=o.serialize(f,"boolean")),void 0!==M&&(O.AllowOneDWipedBarsRestoration=o.serialize(M,"boolean")),void 0!==T&&(O.AllowQRMicroQrRestoration=o.serialize(T,"boolean")),void 0!==N&&(O.AllowRegularImage=o.serialize(N,"boolean")),void 0!==w&&(O.AllowSaltAndPepperFiltering=o.serialize(w,"boolean")),void 0!==x&&(O.AllowWhiteSpotsRemoving=o.serialize(x,"boolean")),void 0!==A&&(O.RegionLikelihoodThresholdPercent=o.serialize(A,"number")),void 0!==D&&(O.ScanWindowSizes=o.serialize(D,"Array<number>")),void 0!==E&&(O.Similarity=o.serialize(E,"number")),void 0!==v&&(O.SkipDiagonalSearch=o.serialize(v,"boolean")),void 0!==z&&(O.ReadTinyBarcodes=o.serialize(z,"boolean")),void 0!==I&&(O.AustralianPostEncodingTable=o.serialize(I,"'CTable' | 'NTable' | 'Other'")),void 0!==R&&(O.RectangleRegion=o.serialize(R,"string")),void 0!==B&&(O.url=o.serialize(B,"string"));let _={method:"POST",qs:O,headers:L,uri:V,body:F};return await this._configuration.authentication.applyToRequest(_),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"BarcodeResponseList")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(_,(e,a,t)=>r(e,a,t,!0))})}async postGenerateMultiple(e,t){const r=this._configuration.getApiBaseUrl()+"/barcode/generateMultiple";let i={},s=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter generatorParamsList was null or undefined when calling postGenerateMultiple.");void 0!==t&&(i.format=o.serialize(t,"string"));let n={method:"POST",qs:i,headers:s,uri:r,body:o.serialize(e,"GeneratorParamsList"),json:!0,encoding:null};return await this._configuration.authentication.applyToRequest(n),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"Buffer")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(n,(e,a,t)=>r(e,a,t,!0))})}async putBarcodeGenerateFile(e,t,r,i,s,n,d,l,c,p,u,m,b,y,g,h,C,S,P,f,M,T,N,w,x,A,D,E,v,z,I,R,B,F,V,O,L){const _=this._configuration.getApiBaseUrl()+"/barcode/{name}/generate".replace("{name}",String(e));let U={},k=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter name was null or undefined when calling putBarcodeGenerateFile.");if(null==t)throw new Error("Required parameter type was null or undefined when calling putBarcodeGenerateFile.");if(null==r)throw new Error("Required parameter text was null or undefined when calling putBarcodeGenerateFile.");void 0!==t&&(U.Type=o.serialize(t,"'Codabar' | 'Code11' | 'Code39Standard' | 'Code39Extended' | 'Code93Standard' | 'Code93Extended' | 'Code128' | 'GS1Code128' | 'EAN8' | 'EAN13' | 'EAN14' | 'SCC14' | 'SSCC18' | 'UPCA' | 'UPCE' | 'ISBN' | 'ISSN' | 'ISMN' | 'Standard2of5' | 'Interleaved2of5' | 'Matrix2of5' | 'ItalianPost25' | 'IATA2of5' | 'ITF14' | 'ITF6' | 'MSI' | 'VIN' | 'DeutschePostIdentcode' | 'DeutschePostLeitcode' | 'OPC' | 'PZN' | 'Code16K' | 'Pharmacode' | 'DataMatrix' | 'QR' | 'Aztec' | 'Pdf417' | 'MacroPdf417' | 'AustraliaPost' | 'Postnet' | 'Planet' | 'OneCode' | 'RM4SCC' | 'DatabarOmniDirectional' | 'DatabarTruncated' | 'DatabarLimited' | 'DatabarExpanded' | 'SingaporePost' | 'GS1DataMatrix' | 'AustralianPosteParcel' | 'SwissPostParcel' | 'PatchCode' | 'DatabarExpandedStacked' | 'DatabarStacked' | 'DatabarStackedOmniDirectional' | 'MicroPdf417' | 'GS1QR' | 'MaxiCode' | 'Code32' | 'DataLogic2of5' | 'DotCode' | 'DutchKIX' | 'UpcaGs1Code128Coupon' | 'UpcaGs1DatabarCoupon' | 'CodablockF' | 'GS1CodablockF'")),void 0!==r&&(U.Text=o.serialize(r,"string")),void 0!==i&&(U.TwoDDisplayText=o.serialize(i,"string")),void 0!==s&&(U.TextLocation=o.serialize(s,"'Below' | 'Above' | 'None'")),void 0!==n&&(U.TextAlignment=o.serialize(n,"'Left' | 'Center' | 'Right'")),void 0!==d&&(U.TextColor=o.serialize(d,"string")),void 0!==l&&(U.FontSizeMode=o.serialize(l,"'Auto' | 'Manual'")),void 0!==c&&(U.Resolution=o.serialize(c,"number")),void 0!==p&&(U.ResolutionX=o.serialize(p,"number")),void 0!==u&&(U.ResolutionY=o.serialize(u,"number")),void 0!==m&&(U.DimensionX=o.serialize(m,"number")),void 0!==b&&(U.TextSpace=o.serialize(b,"number")),void 0!==y&&(U.Units=o.serialize(y,"'Pixel' | 'Point' | 'Inch' | 'Millimeter'")),void 0!==g&&(U.SizeMode=o.serialize(g,"'None' | 'Nearest' | 'Interpolation'")),void 0!==h&&(U.BarHeight=o.serialize(h,"number")),void 0!==C&&(U.ImageHeight=o.serialize(C,"number")),void 0!==S&&(U.ImageWidth=o.serialize(S,"number")),void 0!==P&&(U.RotationAngle=o.serialize(P,"number")),void 0!==f&&(U.BackColor=o.serialize(f,"string")),void 0!==M&&(U.BarColor=o.serialize(M,"string")),void 0!==T&&(U.BorderColor=o.serialize(T,"string")),void 0!==N&&(U.BorderWidth=o.serialize(N,"number")),void 0!==w&&(U.BorderDashStyle=o.serialize(w,"'Solid' | 'Dash' | 'Dot' | 'DashDot' | 'DashDotDot'")),void 0!==x&&(U.BorderVisible=o.serialize(x,"boolean")),void 0!==A&&(U.EnableChecksum=o.serialize(A,"'Default' | 'Yes' | 'No'")),void 0!==D&&(U.EnableEscape=o.serialize(D,"boolean")),void 0!==E&&(U.FilledBars=o.serialize(E,"boolean")),void 0!==v&&(U.AlwaysShowChecksum=o.serialize(v,"boolean")),void 0!==z&&(U.WideNarrowRatio=o.serialize(z,"number")),void 0!==I&&(U.ValidateText=o.serialize(I,"boolean")),void 0!==R&&(U.SupplementData=o.serialize(R,"string")),void 0!==B&&(U.SupplementSpace=o.serialize(B,"number")),void 0!==F&&(U.BarWidthReduction=o.serialize(F,"number")),void 0!==V&&(U.storage=o.serialize(V,"string")),void 0!==O&&(U.folder=o.serialize(O,"string")),void 0!==L&&(U.format=o.serialize(L,"string"));let q={method:"PUT",qs:U,headers:k,uri:_};return await this._configuration.authentication.applyToRequest(q),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"ResultImageInfo")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(q,(e,a,t)=>r(e,a,t,!0))})}async putBarcodeRecognizeFromBody(e,t,r,i,s){const n=this._configuration.getApiBaseUrl()+"/barcode/{name}/recognize".replace("{name}",String(e));let d={},l=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter name was null or undefined when calling putBarcodeRecognizeFromBody.");if(null==t)throw new Error("Required parameter readerParams was null or undefined when calling putBarcodeRecognizeFromBody.");void 0!==r&&(d.type=o.serialize(r,"'all' | 'AustraliaPost' | 'Aztec' | 'ISBN' | 'Codabar' | 'Code11' | 'Code128' | 'GS1Code128' | 'Code39Extended' | 'Code39Standard' | 'Code93Extended' | 'Code93Standard' | 'DataMatrix' | 'DeutschePostIdentcode' | 'DeutschePostLeitcode' | 'EAN13' | 'EAN14' | 'EAN8' | 'IATA2of5' | 'Interleaved2of5' | 'ISSN' | 'ISMN' | 'ItalianPost25' | 'ITF14' | 'ITF6' | 'MacroPdf417' | 'Matrix2of5' | 'MSI' | 'OneCode' | 'OPC' | 'PatchCode' | 'Pdf417' | 'MicroPdf417' | 'Planet' | 'Postnet' | 'PZN' | 'QR' | 'MicroQR' | 'RM4SCC' | 'SCC14' | 'SSCC18' | 'Standard2of5' | 'Supplement' | 'UPCA' | 'UPCE' | 'VIN' | 'Pharmacode' | 'GS1DataMatrix' | 'DatabarOmniDirectional' | 'DatabarTruncated' | 'DatabarLimited' | 'DatabarExpanded' | 'SwissPostParcel' | 'AustralianPosteParcel' | 'Code16K' | 'DatabarStackedOmniDirectional' | 'DatabarStacked' | 'DatabarExpandedStacked' | 'CompactPdf417' | 'GS1QR' | 'MaxiCode' | 'MicrE13B' | 'Code32' | 'DataLogic2of5' | 'DotCode' | 'DutchKIX' | 'CodablockF'")),void 0!==i&&(d.storage=o.serialize(i,"string")),void 0!==s&&(d.folder=o.serialize(s,"string"));let c={method:"PUT",qs:d,headers:l,uri:n,body:o.serialize(t,"ReaderParams"),json:!0};return await this._configuration.authentication.applyToRequest(c),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"BarcodeResponseList")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(c,(e,a,t)=>r(e,a,t,!0))})}async putGenerateMultiple(e,t,r,i,s){const n=this._configuration.getApiBaseUrl()+"/barcode/{name}/generateMultiple".replace("{name}",String(e));let d={},l=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter name was null or undefined when calling putGenerateMultiple.");if(null==t)throw new Error("Required parameter generatorParamsList was null or undefined when calling putGenerateMultiple.");void 0!==r&&(d.format=o.serialize(r,"string")),void 0!==i&&(d.folder=o.serialize(i,"string")),void 0!==s&&(d.storage=o.serialize(s,"string"));let c={method:"PUT",qs:d,headers:l,uri:n,body:o.serialize(t,"GeneratorParamsList"),json:!0};return await this._configuration.authentication.applyToRequest(c),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"ResultImageInfo")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(c,(e,a,t)=>r(e,a,t,!0))})}},exports.BarcodeResponse=F,exports.BarcodeResponseList=V,exports.CaptionParams=O,exports.CodabarParams=L,exports.CodablockParams=_,exports.Code16KParams=U,exports.Configuration=class{constructor(e,a,t,o){this.version=exports.ApiVersion.v3,this.clientId=e,this.clientSecret=a,this.baseUrl=t||"https://api.aspose.cloud",this.accessToken=o||"",this.authentication=new ge(this)}getApiBaseUrl(){return this.baseUrl+"/"+this.version}},exports.CouponParams=k,exports.DataBarParams=q,exports.DataMatrixParams=Q,exports.DiscUsage=G,exports.DotCodeParams=H,exports.ErrorDetails=W,exports.FileApi=class{constructor(e){this.defaultHeaders={},this._configuration=e}async copyFile(e,t,r,i,s){const n=this._configuration.getApiBaseUrl()+"/barcode/storage/file/copy/{srcPath}".replace("{srcPath}",String(e));let d={},l=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter srcPath was null or undefined when calling copyFile.");if(null==t)throw new Error("Required parameter destPath was null or undefined when calling copyFile.");void 0!==t&&(d.destPath=o.serialize(t,"string")),void 0!==r&&(d.srcStorageName=o.serialize(r,"string")),void 0!==i&&(d.destStorageName=o.serialize(i,"string")),void 0!==s&&(d.versionId=o.serialize(s,"string"));let c={method:"PUT",qs:d,headers:l,uri:n};return await this._configuration.authentication.applyToRequest(c),await new Promise((e,t)=>{const o=async(a,r,i,s)=>{a?t(a):r.statusCode&&r.statusCode>=200&&r.statusCode<=299?e({response:r}):s&&r.statusCode&&401===r.statusCode?(await this._configuration.authentication.applyUnauthorized(),await o(a,r,i,!1)):t({response:r,body:i})};a(c,(e,a,t)=>o(e,a,t,!0))})}async deleteFile(e,t,r){const i=this._configuration.getApiBaseUrl()+"/barcode/storage/file/{path}".replace("{path}",String(e));let s={},n=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter path was null or undefined when calling deleteFile.");void 0!==t&&(s.storageName=o.serialize(t,"string")),void 0!==r&&(s.versionId=o.serialize(r,"string"));let d={method:"DELETE",qs:s,headers:n,uri:i};return await this._configuration.authentication.applyToRequest(d),await new Promise((e,t)=>{const o=async(a,r,i,s)=>{a?t(a):r.statusCode&&r.statusCode>=200&&r.statusCode<=299?e({response:r}):s&&r.statusCode&&401===r.statusCode?(await this._configuration.authentication.applyUnauthorized(),await o(a,r,i,!1)):t({response:r,body:i})};a(d,(e,a,t)=>o(e,a,t,!0))})}async downloadFile(e,t,r){const i=this._configuration.getApiBaseUrl()+"/barcode/storage/file/{path}".replace("{path}",String(e));let s={},n=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter path was null or undefined when calling downloadFile.");void 0!==t&&(s.storageName=o.serialize(t,"string")),void 0!==r&&(s.versionId=o.serialize(r,"string"));let d={method:"GET",qs:s,headers:n,uri:i,encoding:null};return await this._configuration.authentication.applyToRequest(d),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"Buffer")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(d,(e,a,t)=>r(e,a,t,!0))})}async moveFile(e,t,r,i,s){const n=this._configuration.getApiBaseUrl()+"/barcode/storage/file/move/{srcPath}".replace("{srcPath}",String(e));let d={},l=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter srcPath was null or undefined when calling moveFile.");if(null==t)throw new Error("Required parameter destPath was null or undefined when calling moveFile.");void 0!==t&&(d.destPath=o.serialize(t,"string")),void 0!==r&&(d.srcStorageName=o.serialize(r,"string")),void 0!==i&&(d.destStorageName=o.serialize(i,"string")),void 0!==s&&(d.versionId=o.serialize(s,"string"));let c={method:"PUT",qs:d,headers:l,uri:n};return await this._configuration.authentication.applyToRequest(c),await new Promise((e,t)=>{const o=async(a,r,i,s)=>{a?t(a):r.statusCode&&r.statusCode>=200&&r.statusCode<=299?e({response:r}):s&&r.statusCode&&401===r.statusCode?(await this._configuration.authentication.applyUnauthorized(),await o(a,r,i,!1)):t({response:r,body:i})};a(c,(e,a,t)=>o(e,a,t,!0))})}async uploadFile(e,t,r){const i=this._configuration.getApiBaseUrl()+"/barcode/storage/file/{path}".replace("{path}",String(e));let s={},n=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter path was null or undefined when calling uploadFile.");if(null==t)throw new Error("Required parameter file was null or undefined when calling uploadFile.");void 0!==r&&(s.storageName=o.serialize(r,"string"));let d={method:"PUT",qs:s,headers:n,uri:i,body:t};return await this._configuration.authentication.applyToRequest(d),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"FilesUploadResult")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(d,(e,a,t)=>r(e,a,t,!0))})}},exports.FileVersion=me,exports.FileVersions=j,exports.FilesList=X,exports.FilesUploadResult=K,exports.FolderApi=class{constructor(e){this.defaultHeaders={},this._configuration=e}async copyFolder(e,t,r,i){const s=this._configuration.getApiBaseUrl()+"/barcode/storage/folder/copy/{srcPath}".replace("{srcPath}",String(e));let n={},d=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter srcPath was null or undefined when calling copyFolder.");if(null==t)throw new Error("Required parameter destPath was null or undefined when calling copyFolder.");void 0!==t&&(n.destPath=o.serialize(t,"string")),void 0!==r&&(n.srcStorageName=o.serialize(r,"string")),void 0!==i&&(n.destStorageName=o.serialize(i,"string"));let l={method:"PUT",qs:n,headers:d,uri:s};return await this._configuration.authentication.applyToRequest(l),await new Promise((e,t)=>{const o=async(a,r,i,s)=>{a?t(a):r.statusCode&&r.statusCode>=200&&r.statusCode<=299?e({response:r}):s&&r.statusCode&&401===r.statusCode?(await this._configuration.authentication.applyUnauthorized(),await o(a,r,i,!1)):t({response:r,body:i})};a(l,(e,a,t)=>o(e,a,t,!0))})}async createFolder(e,t){const r=this._configuration.getApiBaseUrl()+"/barcode/storage/folder/{path}".replace("{path}",String(e));let i={},s=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter path was null or undefined when calling createFolder.");void 0!==t&&(i.storageName=o.serialize(t,"string"));let n={method:"PUT",qs:i,headers:s,uri:r};return await this._configuration.authentication.applyToRequest(n),await new Promise((e,t)=>{const o=async(a,r,i,s)=>{a?t(a):r.statusCode&&r.statusCode>=200&&r.statusCode<=299?e({response:r}):s&&r.statusCode&&401===r.statusCode?(await this._configuration.authentication.applyUnauthorized(),await o(a,r,i,!1)):t({response:r,body:i})};a(n,(e,a,t)=>o(e,a,t,!0))})}async deleteFolder(e,t,r){const i=this._configuration.getApiBaseUrl()+"/barcode/storage/folder/{path}".replace("{path}",String(e));let s={},n=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter path was null or undefined when calling deleteFolder.");void 0!==t&&(s.storageName=o.serialize(t,"string")),void 0!==r&&(s.recursive=o.serialize(r,"boolean"));let d={method:"DELETE",qs:s,headers:n,uri:i};return await this._configuration.authentication.applyToRequest(d),await new Promise((e,t)=>{const o=async(a,r,i,s)=>{a?t(a):r.statusCode&&r.statusCode>=200&&r.statusCode<=299?e({response:r}):s&&r.statusCode&&401===r.statusCode?(await this._configuration.authentication.applyUnauthorized(),await o(a,r,i,!1)):t({response:r,body:i})};a(d,(e,a,t)=>o(e,a,t,!0))})}async getFilesList(e,t){const r=this._configuration.getApiBaseUrl()+"/barcode/storage/folder/{path}".replace("{path}",String(e));let i={},s=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter path was null or undefined when calling getFilesList.");void 0!==t&&(i.storageName=o.serialize(t,"string"));let n={method:"GET",qs:i,headers:s,uri:r};return await this._configuration.authentication.applyToRequest(n),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"FilesList")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(n,(e,a,t)=>r(e,a,t,!0))})}async moveFolder(e,t,r,i){const s=this._configuration.getApiBaseUrl()+"/barcode/storage/folder/move/{srcPath}".replace("{srcPath}",String(e));let n={},d=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter srcPath was null or undefined when calling moveFolder.");if(null==t)throw new Error("Required parameter destPath was null or undefined when calling moveFolder.");void 0!==t&&(n.destPath=o.serialize(t,"string")),void 0!==r&&(n.srcStorageName=o.serialize(r,"string")),void 0!==i&&(n.destStorageName=o.serialize(i,"string"));let l={method:"PUT",qs:n,headers:d,uri:s};return await this._configuration.authentication.applyToRequest(l),await new Promise((e,t)=>{const o=async(a,r,i,s)=>{a?t(a):r.statusCode&&r.statusCode>=200&&r.statusCode<=299?e({response:r}):s&&r.statusCode&&401===r.statusCode?(await this._configuration.authentication.applyUnauthorized(),await o(a,r,i,!1)):t({response:r,body:i})};a(l,(e,a,t)=>o(e,a,t,!0))})}},exports.FontParams=Y,exports.GeneratorParams=Z,exports.GeneratorParamsList=J,exports.ITFParams=$,exports.MaxiCodeParams=ee,exports.ModelError=ae,exports.ObjectExist=te,exports.Padding=oe,exports.PatchCodeParams=re,exports.Pdf417Params=ie,exports.PostalParams=se,exports.QrParams=ne,exports.ReaderParams=de,exports.RegionPoint=le,exports.ResultImageInfo=ce,exports.StorageApi=class{constructor(e){this.defaultHeaders={},this._configuration=e}async getDiscUsage(e){const t=this._configuration.getApiBaseUrl()+"/barcode/storage/disc";let r={},i=Object.assign({},this.defaultHeaders);void 0!==e&&(r.storageName=o.serialize(e,"string"));let s={method:"GET",qs:r,headers:i,uri:t};return await this._configuration.authentication.applyToRequest(s),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"DiscUsage")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(s,(e,a,t)=>r(e,a,t,!0))})}async getFileVersions(e,t){const r=this._configuration.getApiBaseUrl()+"/barcode/storage/version/{path}".replace("{path}",String(e));let i={},s=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter path was null or undefined when calling getFileVersions.");void 0!==t&&(i.storageName=o.serialize(t,"string"));let n={method:"GET",qs:i,headers:s,uri:r};return await this._configuration.authentication.applyToRequest(n),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"FileVersions")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(n,(e,a,t)=>r(e,a,t,!0))})}async objectExists(e,t,r){const i=this._configuration.getApiBaseUrl()+"/barcode/storage/exist/{path}".replace("{path}",String(e));let s={},n=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter path was null or undefined when calling objectExists.");void 0!==t&&(s.storageName=o.serialize(t,"string")),void 0!==r&&(s.versionId=o.serialize(r,"string"));let d={method:"GET",qs:s,headers:n,uri:i};return await this._configuration.authentication.applyToRequest(d),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"ObjectExist")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(d,(e,a,t)=>r(e,a,t,!0))})}async storageExists(e){const t=this._configuration.getApiBaseUrl()+"/barcode/storage/{storageName}/exist".replace("{storageName}",String(e));let r=Object.assign({},this.defaultHeaders);if(null==e)throw new Error("Required parameter storageName was null or undefined when calling storageExists.");let i={method:"GET",qs:{},headers:r,uri:t};return await this._configuration.authentication.applyToRequest(i),await new Promise((e,t)=>{const r=async(a,i,s,n)=>{a?t(a):i.statusCode&&i.statusCode>=200&&i.statusCode<=299?e({response:i,body:o.deserialize(s,"StorageExist")}):n&&i.statusCode&&401===i.statusCode?(await this._configuration.authentication.applyUnauthorized(),await r(a,i,s,!1)):t({response:i,body:s})};a(i,(e,a,t)=>r(e,a,t,!0))})}},exports.StorageExist=pe,exports.StorageFile=ue;
//# sourceMappingURL=aspose-barcode-cloud-node.cjs.production.min.js.map

@@ -13,9 +13,9 @@ import { Authentication } from './Authentication';

/**
* App SID.
* Client Id.
*/
appSID: string;
clientId: string;
/**
* App key.
* Client Secret.
*/
appKey: string;
clientSecret: string;
/**

@@ -27,3 +27,3 @@ * Base Url.

readonly accessToken: string;
constructor(appSID: string, appKey: string, baseUrl?: string, accessToken?: string);
constructor(clientId: string, clientSecret: string, baseUrl?: string, accessToken?: string);
/**

@@ -30,0 +30,0 @@ * Returns api base url

{
"name": "aspose-barcode-cloud-node",
"version": "20.10.0",
"version": "20.11.1",
"description": "Aspose.BarCode Cloud SDK for Node.js",

@@ -32,3 +32,3 @@ "homepage": "https://products.aspose.cloud/barcode/nodejs",

"prepare": "tsdx build --target=node",
"clear": "rm dist/* || DEL /S /Q dist",
"clean": "rm dist/* ; rm built/* || true",
"check-updates": "ncu -u"

@@ -46,3 +46,3 @@ },

"@types/uuid": "^8.3.0",
"npm-check-updates": "^9.2.3",
"npm-check-updates": "^10.0.0",
"tsdx": "^0.14.1",

@@ -49,0 +49,0 @@ "tslib": "^2.0.3",

# Aspose.BarCode Cloud SDK for Node.js
+ API version: 3.0
+ Package version: 20.10.0
+ Package version: 20.11.1

@@ -10,3 +10,3 @@ Aspose.BarCode for Cloud is a REST API for Linear, 2D and postal barcode generation and recognition in the cloud. API recognizes and generates barcode images in a variety of formats. Barcode REST API allows to specify barcode image attributes like image width, height, border style and output image format in order to customize the generation process. Developers can also specify the barcode type and text attributes such as text location and font styles in order to suit the application requirements.

To use these SDKs, you will need App SID and App Key which can be looked up at [Aspose Cloud Dashboard](https://dashboard.aspose.cloud/#/apps) (free registration in Aspose Cloud is required for this).
To use these SDKs, you will need Client Id and Client Secret which can be looked up at [Aspose Cloud Dashboard](https://dashboard.aspose.cloud/applications) (free registration in Aspose Cloud is required for this).

@@ -34,4 +34,4 @@ ## How to use the SDK

const config = new Barcode.Configuration(
'App SID from https://dashboard.aspose.cloud/#/apps',
'App Key from https://dashboard.aspose.cloud/#/apps'
'Client Id from https://dashboard.aspose.cloud/applications',
'Client Secret from https://dashboard.aspose.cloud/applications'
);

@@ -38,0 +38,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc