api.ts 289 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Immich
  5. * Immich API
  6. *
  7. * The version of the OpenAPI document: 1.40.0
  8. *
  9. *
  10. * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
  11. * https://openapi-generator.tech
  12. * Do not edit the class manually.
  13. */
  14. import { Configuration } from './configuration';
  15. import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
  16. // Some imports not used depending on template conditions
  17. // @ts-ignore
  18. import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
  19. // @ts-ignore
  20. import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
  21. /**
  22. *
  23. * @export
  24. * @interface APIKeyCreateDto
  25. */
  26. export interface APIKeyCreateDto {
  27. /**
  28. *
  29. * @type {string}
  30. * @memberof APIKeyCreateDto
  31. */
  32. 'name'?: string;
  33. }
  34. /**
  35. *
  36. * @export
  37. * @interface APIKeyCreateResponseDto
  38. */
  39. export interface APIKeyCreateResponseDto {
  40. /**
  41. *
  42. * @type {string}
  43. * @memberof APIKeyCreateResponseDto
  44. */
  45. 'secret': string;
  46. /**
  47. *
  48. * @type {APIKeyResponseDto}
  49. * @memberof APIKeyCreateResponseDto
  50. */
  51. 'apiKey': APIKeyResponseDto;
  52. }
  53. /**
  54. *
  55. * @export
  56. * @interface APIKeyResponseDto
  57. */
  58. export interface APIKeyResponseDto {
  59. /**
  60. *
  61. * @type {number}
  62. * @memberof APIKeyResponseDto
  63. */
  64. 'id': number;
  65. /**
  66. *
  67. * @type {string}
  68. * @memberof APIKeyResponseDto
  69. */
  70. 'name': string;
  71. /**
  72. *
  73. * @type {string}
  74. * @memberof APIKeyResponseDto
  75. */
  76. 'createdAt': string;
  77. /**
  78. *
  79. * @type {string}
  80. * @memberof APIKeyResponseDto
  81. */
  82. 'updatedAt': string;
  83. }
  84. /**
  85. *
  86. * @export
  87. * @interface APIKeyUpdateDto
  88. */
  89. export interface APIKeyUpdateDto {
  90. /**
  91. *
  92. * @type {string}
  93. * @memberof APIKeyUpdateDto
  94. */
  95. 'name': string;
  96. }
  97. /**
  98. *
  99. * @export
  100. * @interface AddAssetsDto
  101. */
  102. export interface AddAssetsDto {
  103. /**
  104. *
  105. * @type {Array<string>}
  106. * @memberof AddAssetsDto
  107. */
  108. 'assetIds': Array<string>;
  109. }
  110. /**
  111. *
  112. * @export
  113. * @interface AddAssetsResponseDto
  114. */
  115. export interface AddAssetsResponseDto {
  116. /**
  117. *
  118. * @type {number}
  119. * @memberof AddAssetsResponseDto
  120. */
  121. 'successfullyAdded': number;
  122. /**
  123. *
  124. * @type {Array<string>}
  125. * @memberof AddAssetsResponseDto
  126. */
  127. 'alreadyInAlbum': Array<string>;
  128. /**
  129. *
  130. * @type {AlbumResponseDto}
  131. * @memberof AddAssetsResponseDto
  132. */
  133. 'album'?: AlbumResponseDto;
  134. }
  135. /**
  136. *
  137. * @export
  138. * @interface AddUsersDto
  139. */
  140. export interface AddUsersDto {
  141. /**
  142. *
  143. * @type {Array<string>}
  144. * @memberof AddUsersDto
  145. */
  146. 'sharedUserIds': Array<string>;
  147. }
  148. /**
  149. *
  150. * @export
  151. * @interface AdminSignupResponseDto
  152. */
  153. export interface AdminSignupResponseDto {
  154. /**
  155. *
  156. * @type {string}
  157. * @memberof AdminSignupResponseDto
  158. */
  159. 'id': string;
  160. /**
  161. *
  162. * @type {string}
  163. * @memberof AdminSignupResponseDto
  164. */
  165. 'email': string;
  166. /**
  167. *
  168. * @type {string}
  169. * @memberof AdminSignupResponseDto
  170. */
  171. 'firstName': string;
  172. /**
  173. *
  174. * @type {string}
  175. * @memberof AdminSignupResponseDto
  176. */
  177. 'lastName': string;
  178. /**
  179. *
  180. * @type {string}
  181. * @memberof AdminSignupResponseDto
  182. */
  183. 'createdAt': string;
  184. }
  185. /**
  186. *
  187. * @export
  188. * @interface AlbumCountResponseDto
  189. */
  190. export interface AlbumCountResponseDto {
  191. /**
  192. *
  193. * @type {number}
  194. * @memberof AlbumCountResponseDto
  195. */
  196. 'owned': number;
  197. /**
  198. *
  199. * @type {number}
  200. * @memberof AlbumCountResponseDto
  201. */
  202. 'shared': number;
  203. /**
  204. *
  205. * @type {number}
  206. * @memberof AlbumCountResponseDto
  207. */
  208. 'sharing': number;
  209. }
  210. /**
  211. *
  212. * @export
  213. * @interface AlbumResponseDto
  214. */
  215. export interface AlbumResponseDto {
  216. /**
  217. *
  218. * @type {number}
  219. * @memberof AlbumResponseDto
  220. */
  221. 'assetCount': number;
  222. /**
  223. *
  224. * @type {string}
  225. * @memberof AlbumResponseDto
  226. */
  227. 'id': string;
  228. /**
  229. *
  230. * @type {string}
  231. * @memberof AlbumResponseDto
  232. */
  233. 'ownerId': string;
  234. /**
  235. *
  236. * @type {string}
  237. * @memberof AlbumResponseDto
  238. */
  239. 'albumName': string;
  240. /**
  241. *
  242. * @type {string}
  243. * @memberof AlbumResponseDto
  244. */
  245. 'createdAt': string;
  246. /**
  247. *
  248. * @type {string}
  249. * @memberof AlbumResponseDto
  250. */
  251. 'albumThumbnailAssetId': string | null;
  252. /**
  253. *
  254. * @type {boolean}
  255. * @memberof AlbumResponseDto
  256. */
  257. 'shared': boolean;
  258. /**
  259. *
  260. * @type {Array<UserResponseDto>}
  261. * @memberof AlbumResponseDto
  262. */
  263. 'sharedUsers': Array<UserResponseDto>;
  264. /**
  265. *
  266. * @type {Array<AssetResponseDto>}
  267. * @memberof AlbumResponseDto
  268. */
  269. 'assets': Array<AssetResponseDto>;
  270. }
  271. /**
  272. *
  273. * @export
  274. * @interface AllJobStatusResponseDto
  275. */
  276. export interface AllJobStatusResponseDto {
  277. /**
  278. *
  279. * @type {JobCounts}
  280. * @memberof AllJobStatusResponseDto
  281. */
  282. 'thumbnailGenerationQueueCount': JobCounts;
  283. /**
  284. *
  285. * @type {JobCounts}
  286. * @memberof AllJobStatusResponseDto
  287. */
  288. 'metadataExtractionQueueCount': JobCounts;
  289. /**
  290. *
  291. * @type {JobCounts}
  292. * @memberof AllJobStatusResponseDto
  293. */
  294. 'videoConversionQueueCount': JobCounts;
  295. /**
  296. *
  297. * @type {JobCounts}
  298. * @memberof AllJobStatusResponseDto
  299. */
  300. 'machineLearningQueueCount': JobCounts;
  301. /**
  302. *
  303. * @type {JobCounts}
  304. * @memberof AllJobStatusResponseDto
  305. */
  306. 'storageMigrationQueueCount': JobCounts;
  307. /**
  308. *
  309. * @type {boolean}
  310. * @memberof AllJobStatusResponseDto
  311. */
  312. 'isThumbnailGenerationActive': boolean;
  313. /**
  314. *
  315. * @type {boolean}
  316. * @memberof AllJobStatusResponseDto
  317. */
  318. 'isMetadataExtractionActive': boolean;
  319. /**
  320. *
  321. * @type {boolean}
  322. * @memberof AllJobStatusResponseDto
  323. */
  324. 'isVideoConversionActive': boolean;
  325. /**
  326. *
  327. * @type {boolean}
  328. * @memberof AllJobStatusResponseDto
  329. */
  330. 'isMachineLearningActive': boolean;
  331. /**
  332. *
  333. * @type {boolean}
  334. * @memberof AllJobStatusResponseDto
  335. */
  336. 'isStorageMigrationActive': boolean;
  337. }
  338. /**
  339. *
  340. * @export
  341. * @interface AssetCountByTimeBucket
  342. */
  343. export interface AssetCountByTimeBucket {
  344. /**
  345. *
  346. * @type {string}
  347. * @memberof AssetCountByTimeBucket
  348. */
  349. 'timeBucket': string;
  350. /**
  351. *
  352. * @type {number}
  353. * @memberof AssetCountByTimeBucket
  354. */
  355. 'count': number;
  356. }
  357. /**
  358. *
  359. * @export
  360. * @interface AssetCountByTimeBucketResponseDto
  361. */
  362. export interface AssetCountByTimeBucketResponseDto {
  363. /**
  364. *
  365. * @type {number}
  366. * @memberof AssetCountByTimeBucketResponseDto
  367. */
  368. 'totalCount': number;
  369. /**
  370. *
  371. * @type {Array<AssetCountByTimeBucket>}
  372. * @memberof AssetCountByTimeBucketResponseDto
  373. */
  374. 'buckets': Array<AssetCountByTimeBucket>;
  375. }
  376. /**
  377. *
  378. * @export
  379. * @interface AssetCountByUserIdResponseDto
  380. */
  381. export interface AssetCountByUserIdResponseDto {
  382. /**
  383. *
  384. * @type {number}
  385. * @memberof AssetCountByUserIdResponseDto
  386. */
  387. 'audio': number;
  388. /**
  389. *
  390. * @type {number}
  391. * @memberof AssetCountByUserIdResponseDto
  392. */
  393. 'photos': number;
  394. /**
  395. *
  396. * @type {number}
  397. * @memberof AssetCountByUserIdResponseDto
  398. */
  399. 'videos': number;
  400. /**
  401. *
  402. * @type {number}
  403. * @memberof AssetCountByUserIdResponseDto
  404. */
  405. 'other': number;
  406. /**
  407. *
  408. * @type {number}
  409. * @memberof AssetCountByUserIdResponseDto
  410. */
  411. 'total': number;
  412. }
  413. /**
  414. *
  415. * @export
  416. * @interface AssetFileUploadResponseDto
  417. */
  418. export interface AssetFileUploadResponseDto {
  419. /**
  420. *
  421. * @type {string}
  422. * @memberof AssetFileUploadResponseDto
  423. */
  424. 'id': string;
  425. }
  426. /**
  427. *
  428. * @export
  429. * @interface AssetResponseDto
  430. */
  431. export interface AssetResponseDto {
  432. /**
  433. *
  434. * @type {AssetTypeEnum}
  435. * @memberof AssetResponseDto
  436. */
  437. 'type': AssetTypeEnum;
  438. /**
  439. *
  440. * @type {string}
  441. * @memberof AssetResponseDto
  442. */
  443. 'id': string;
  444. /**
  445. *
  446. * @type {string}
  447. * @memberof AssetResponseDto
  448. */
  449. 'deviceAssetId': string;
  450. /**
  451. *
  452. * @type {string}
  453. * @memberof AssetResponseDto
  454. */
  455. 'ownerId': string;
  456. /**
  457. *
  458. * @type {string}
  459. * @memberof AssetResponseDto
  460. */
  461. 'deviceId': string;
  462. /**
  463. *
  464. * @type {string}
  465. * @memberof AssetResponseDto
  466. */
  467. 'originalPath': string;
  468. /**
  469. *
  470. * @type {string}
  471. * @memberof AssetResponseDto
  472. */
  473. 'resizePath': string | null;
  474. /**
  475. *
  476. * @type {string}
  477. * @memberof AssetResponseDto
  478. */
  479. 'createdAt': string;
  480. /**
  481. *
  482. * @type {string}
  483. * @memberof AssetResponseDto
  484. */
  485. 'modifiedAt': string;
  486. /**
  487. *
  488. * @type {boolean}
  489. * @memberof AssetResponseDto
  490. */
  491. 'isFavorite': boolean;
  492. /**
  493. *
  494. * @type {string}
  495. * @memberof AssetResponseDto
  496. */
  497. 'mimeType': string | null;
  498. /**
  499. *
  500. * @type {string}
  501. * @memberof AssetResponseDto
  502. */
  503. 'duration': string;
  504. /**
  505. *
  506. * @type {string}
  507. * @memberof AssetResponseDto
  508. */
  509. 'webpPath': string | null;
  510. /**
  511. *
  512. * @type {string}
  513. * @memberof AssetResponseDto
  514. */
  515. 'encodedVideoPath'?: string | null;
  516. /**
  517. *
  518. * @type {ExifResponseDto}
  519. * @memberof AssetResponseDto
  520. */
  521. 'exifInfo'?: ExifResponseDto;
  522. /**
  523. *
  524. * @type {SmartInfoResponseDto}
  525. * @memberof AssetResponseDto
  526. */
  527. 'smartInfo'?: SmartInfoResponseDto;
  528. /**
  529. *
  530. * @type {string}
  531. * @memberof AssetResponseDto
  532. */
  533. 'livePhotoVideoId'?: string | null;
  534. /**
  535. *
  536. * @type {Array<TagResponseDto>}
  537. * @memberof AssetResponseDto
  538. */
  539. 'tags': Array<TagResponseDto>;
  540. }
  541. /**
  542. *
  543. * @export
  544. * @enum {string}
  545. */
  546. export const AssetTypeEnum = {
  547. Image: 'IMAGE',
  548. Video: 'VIDEO',
  549. Audio: 'AUDIO',
  550. Other: 'OTHER'
  551. } as const;
  552. export type AssetTypeEnum = typeof AssetTypeEnum[keyof typeof AssetTypeEnum];
  553. /**
  554. *
  555. * @export
  556. * @interface ChangePasswordDto
  557. */
  558. export interface ChangePasswordDto {
  559. /**
  560. *
  561. * @type {string}
  562. * @memberof ChangePasswordDto
  563. */
  564. 'password': string;
  565. /**
  566. *
  567. * @type {string}
  568. * @memberof ChangePasswordDto
  569. */
  570. 'newPassword': string;
  571. }
  572. /**
  573. *
  574. * @export
  575. * @interface CheckDuplicateAssetDto
  576. */
  577. export interface CheckDuplicateAssetDto {
  578. /**
  579. *
  580. * @type {string}
  581. * @memberof CheckDuplicateAssetDto
  582. */
  583. 'deviceAssetId': string;
  584. /**
  585. *
  586. * @type {string}
  587. * @memberof CheckDuplicateAssetDto
  588. */
  589. 'deviceId': string;
  590. }
  591. /**
  592. *
  593. * @export
  594. * @interface CheckDuplicateAssetResponseDto
  595. */
  596. export interface CheckDuplicateAssetResponseDto {
  597. /**
  598. *
  599. * @type {boolean}
  600. * @memberof CheckDuplicateAssetResponseDto
  601. */
  602. 'isExist': boolean;
  603. /**
  604. *
  605. * @type {string}
  606. * @memberof CheckDuplicateAssetResponseDto
  607. */
  608. 'id'?: string;
  609. }
  610. /**
  611. *
  612. * @export
  613. * @interface CheckExistingAssetsDto
  614. */
  615. export interface CheckExistingAssetsDto {
  616. /**
  617. *
  618. * @type {Array<string>}
  619. * @memberof CheckExistingAssetsDto
  620. */
  621. 'deviceAssetIds': Array<string>;
  622. /**
  623. *
  624. * @type {string}
  625. * @memberof CheckExistingAssetsDto
  626. */
  627. 'deviceId': string;
  628. }
  629. /**
  630. *
  631. * @export
  632. * @interface CheckExistingAssetsResponseDto
  633. */
  634. export interface CheckExistingAssetsResponseDto {
  635. /**
  636. *
  637. * @type {Array<string>}
  638. * @memberof CheckExistingAssetsResponseDto
  639. */
  640. 'existingIds': Array<string>;
  641. }
  642. /**
  643. *
  644. * @export
  645. * @interface CreateAlbumDto
  646. */
  647. export interface CreateAlbumDto {
  648. /**
  649. *
  650. * @type {string}
  651. * @memberof CreateAlbumDto
  652. */
  653. 'albumName': string;
  654. /**
  655. *
  656. * @type {Array<string>}
  657. * @memberof CreateAlbumDto
  658. */
  659. 'sharedWithUserIds'?: Array<string>;
  660. /**
  661. *
  662. * @type {Array<string>}
  663. * @memberof CreateAlbumDto
  664. */
  665. 'assetIds'?: Array<string>;
  666. }
  667. /**
  668. *
  669. * @export
  670. * @interface CreateAlbumShareLinkDto
  671. */
  672. export interface CreateAlbumShareLinkDto {
  673. /**
  674. *
  675. * @type {string}
  676. * @memberof CreateAlbumShareLinkDto
  677. */
  678. 'albumId': string;
  679. /**
  680. *
  681. * @type {string}
  682. * @memberof CreateAlbumShareLinkDto
  683. */
  684. 'expiredAt'?: string;
  685. /**
  686. *
  687. * @type {boolean}
  688. * @memberof CreateAlbumShareLinkDto
  689. */
  690. 'allowUpload'?: boolean;
  691. /**
  692. *
  693. * @type {string}
  694. * @memberof CreateAlbumShareLinkDto
  695. */
  696. 'description'?: string;
  697. }
  698. /**
  699. *
  700. * @export
  701. * @interface CreateProfileImageResponseDto
  702. */
  703. export interface CreateProfileImageResponseDto {
  704. /**
  705. *
  706. * @type {string}
  707. * @memberof CreateProfileImageResponseDto
  708. */
  709. 'userId': string;
  710. /**
  711. *
  712. * @type {string}
  713. * @memberof CreateProfileImageResponseDto
  714. */
  715. 'profileImagePath': string;
  716. }
  717. /**
  718. *
  719. * @export
  720. * @interface CreateTagDto
  721. */
  722. export interface CreateTagDto {
  723. /**
  724. *
  725. * @type {TagTypeEnum}
  726. * @memberof CreateTagDto
  727. */
  728. 'type': TagTypeEnum;
  729. /**
  730. *
  731. * @type {string}
  732. * @memberof CreateTagDto
  733. */
  734. 'name': string;
  735. }
  736. /**
  737. *
  738. * @export
  739. * @interface CreateUserDto
  740. */
  741. export interface CreateUserDto {
  742. /**
  743. *
  744. * @type {string}
  745. * @memberof CreateUserDto
  746. */
  747. 'email': string;
  748. /**
  749. *
  750. * @type {string}
  751. * @memberof CreateUserDto
  752. */
  753. 'password': string;
  754. /**
  755. *
  756. * @type {string}
  757. * @memberof CreateUserDto
  758. */
  759. 'firstName': string;
  760. /**
  761. *
  762. * @type {string}
  763. * @memberof CreateUserDto
  764. */
  765. 'lastName': string;
  766. }
  767. /**
  768. *
  769. * @export
  770. * @interface CuratedLocationsResponseDto
  771. */
  772. export interface CuratedLocationsResponseDto {
  773. /**
  774. *
  775. * @type {string}
  776. * @memberof CuratedLocationsResponseDto
  777. */
  778. 'id': string;
  779. /**
  780. *
  781. * @type {string}
  782. * @memberof CuratedLocationsResponseDto
  783. */
  784. 'city': string;
  785. /**
  786. *
  787. * @type {string}
  788. * @memberof CuratedLocationsResponseDto
  789. */
  790. 'resizePath': string;
  791. /**
  792. *
  793. * @type {string}
  794. * @memberof CuratedLocationsResponseDto
  795. */
  796. 'deviceAssetId': string;
  797. /**
  798. *
  799. * @type {string}
  800. * @memberof CuratedLocationsResponseDto
  801. */
  802. 'deviceId': string;
  803. }
  804. /**
  805. *
  806. * @export
  807. * @interface CuratedObjectsResponseDto
  808. */
  809. export interface CuratedObjectsResponseDto {
  810. /**
  811. *
  812. * @type {string}
  813. * @memberof CuratedObjectsResponseDto
  814. */
  815. 'id': string;
  816. /**
  817. *
  818. * @type {string}
  819. * @memberof CuratedObjectsResponseDto
  820. */
  821. 'object': string;
  822. /**
  823. *
  824. * @type {string}
  825. * @memberof CuratedObjectsResponseDto
  826. */
  827. 'resizePath': string;
  828. /**
  829. *
  830. * @type {string}
  831. * @memberof CuratedObjectsResponseDto
  832. */
  833. 'deviceAssetId': string;
  834. /**
  835. *
  836. * @type {string}
  837. * @memberof CuratedObjectsResponseDto
  838. */
  839. 'deviceId': string;
  840. }
  841. /**
  842. *
  843. * @export
  844. * @interface DeleteAssetDto
  845. */
  846. export interface DeleteAssetDto {
  847. /**
  848. *
  849. * @type {Array<string>}
  850. * @memberof DeleteAssetDto
  851. */
  852. 'ids': Array<string>;
  853. }
  854. /**
  855. *
  856. * @export
  857. * @interface DeleteAssetResponseDto
  858. */
  859. export interface DeleteAssetResponseDto {
  860. /**
  861. *
  862. * @type {DeleteAssetStatus}
  863. * @memberof DeleteAssetResponseDto
  864. */
  865. 'status': DeleteAssetStatus;
  866. /**
  867. *
  868. * @type {string}
  869. * @memberof DeleteAssetResponseDto
  870. */
  871. 'id': string;
  872. }
  873. /**
  874. *
  875. * @export
  876. * @enum {string}
  877. */
  878. export const DeleteAssetStatus = {
  879. Success: 'SUCCESS',
  880. Failed: 'FAILED'
  881. } as const;
  882. export type DeleteAssetStatus = typeof DeleteAssetStatus[keyof typeof DeleteAssetStatus];
  883. /**
  884. *
  885. * @export
  886. * @interface DeviceInfoResponseDto
  887. */
  888. export interface DeviceInfoResponseDto {
  889. /**
  890. *
  891. * @type {number}
  892. * @memberof DeviceInfoResponseDto
  893. */
  894. 'id': number;
  895. /**
  896. *
  897. * @type {DeviceTypeEnum}
  898. * @memberof DeviceInfoResponseDto
  899. */
  900. 'deviceType': DeviceTypeEnum;
  901. /**
  902. *
  903. * @type {string}
  904. * @memberof DeviceInfoResponseDto
  905. */
  906. 'userId': string;
  907. /**
  908. *
  909. * @type {string}
  910. * @memberof DeviceInfoResponseDto
  911. */
  912. 'deviceId': string;
  913. /**
  914. *
  915. * @type {string}
  916. * @memberof DeviceInfoResponseDto
  917. */
  918. 'createdAt': string;
  919. /**
  920. *
  921. * @type {boolean}
  922. * @memberof DeviceInfoResponseDto
  923. */
  924. 'isAutoBackup': boolean;
  925. }
  926. /**
  927. *
  928. * @export
  929. * @enum {string}
  930. */
  931. export const DeviceTypeEnum = {
  932. Ios: 'IOS',
  933. Android: 'ANDROID',
  934. Web: 'WEB'
  935. } as const;
  936. export type DeviceTypeEnum = typeof DeviceTypeEnum[keyof typeof DeviceTypeEnum];
  937. /**
  938. *
  939. * @export
  940. * @interface DownloadFilesDto
  941. */
  942. export interface DownloadFilesDto {
  943. /**
  944. *
  945. * @type {Array<string>}
  946. * @memberof DownloadFilesDto
  947. */
  948. 'assetIds': Array<string>;
  949. }
  950. /**
  951. *
  952. * @export
  953. * @interface EditSharedLinkDto
  954. */
  955. export interface EditSharedLinkDto {
  956. /**
  957. *
  958. * @type {string}
  959. * @memberof EditSharedLinkDto
  960. */
  961. 'description'?: string;
  962. /**
  963. *
  964. * @type {string}
  965. * @memberof EditSharedLinkDto
  966. */
  967. 'expiredAt'?: string;
  968. /**
  969. *
  970. * @type {boolean}
  971. * @memberof EditSharedLinkDto
  972. */
  973. 'allowUpload'?: boolean;
  974. /**
  975. *
  976. * @type {boolean}
  977. * @memberof EditSharedLinkDto
  978. */
  979. 'isEditExpireTime'?: boolean;
  980. }
  981. /**
  982. *
  983. * @export
  984. * @interface ExifResponseDto
  985. */
  986. export interface ExifResponseDto {
  987. /**
  988. *
  989. * @type {number}
  990. * @memberof ExifResponseDto
  991. */
  992. 'id'?: number | null;
  993. /**
  994. *
  995. * @type {number}
  996. * @memberof ExifResponseDto
  997. */
  998. 'fileSizeInByte'?: number | null;
  999. /**
  1000. *
  1001. * @type {string}
  1002. * @memberof ExifResponseDto
  1003. */
  1004. 'make'?: string | null;
  1005. /**
  1006. *
  1007. * @type {string}
  1008. * @memberof ExifResponseDto
  1009. */
  1010. 'model'?: string | null;
  1011. /**
  1012. *
  1013. * @type {string}
  1014. * @memberof ExifResponseDto
  1015. */
  1016. 'imageName'?: string | null;
  1017. /**
  1018. *
  1019. * @type {number}
  1020. * @memberof ExifResponseDto
  1021. */
  1022. 'exifImageWidth'?: number | null;
  1023. /**
  1024. *
  1025. * @type {number}
  1026. * @memberof ExifResponseDto
  1027. */
  1028. 'exifImageHeight'?: number | null;
  1029. /**
  1030. *
  1031. * @type {string}
  1032. * @memberof ExifResponseDto
  1033. */
  1034. 'orientation'?: string | null;
  1035. /**
  1036. *
  1037. * @type {string}
  1038. * @memberof ExifResponseDto
  1039. */
  1040. 'dateTimeOriginal'?: string | null;
  1041. /**
  1042. *
  1043. * @type {string}
  1044. * @memberof ExifResponseDto
  1045. */
  1046. 'modifyDate'?: string | null;
  1047. /**
  1048. *
  1049. * @type {string}
  1050. * @memberof ExifResponseDto
  1051. */
  1052. 'lensModel'?: string | null;
  1053. /**
  1054. *
  1055. * @type {number}
  1056. * @memberof ExifResponseDto
  1057. */
  1058. 'fNumber'?: number | null;
  1059. /**
  1060. *
  1061. * @type {number}
  1062. * @memberof ExifResponseDto
  1063. */
  1064. 'focalLength'?: number | null;
  1065. /**
  1066. *
  1067. * @type {number}
  1068. * @memberof ExifResponseDto
  1069. */
  1070. 'iso'?: number | null;
  1071. /**
  1072. *
  1073. * @type {number}
  1074. * @memberof ExifResponseDto
  1075. */
  1076. 'exposureTime'?: number | null;
  1077. /**
  1078. *
  1079. * @type {number}
  1080. * @memberof ExifResponseDto
  1081. */
  1082. 'latitude'?: number | null;
  1083. /**
  1084. *
  1085. * @type {number}
  1086. * @memberof ExifResponseDto
  1087. */
  1088. 'longitude'?: number | null;
  1089. /**
  1090. *
  1091. * @type {string}
  1092. * @memberof ExifResponseDto
  1093. */
  1094. 'city'?: string | null;
  1095. /**
  1096. *
  1097. * @type {string}
  1098. * @memberof ExifResponseDto
  1099. */
  1100. 'state'?: string | null;
  1101. /**
  1102. *
  1103. * @type {string}
  1104. * @memberof ExifResponseDto
  1105. */
  1106. 'country'?: string | null;
  1107. }
  1108. /**
  1109. *
  1110. * @export
  1111. * @interface GetAssetByTimeBucketDto
  1112. */
  1113. export interface GetAssetByTimeBucketDto {
  1114. /**
  1115. *
  1116. * @type {Array<string>}
  1117. * @memberof GetAssetByTimeBucketDto
  1118. */
  1119. 'timeBucket': Array<string>;
  1120. }
  1121. /**
  1122. *
  1123. * @export
  1124. * @interface GetAssetCountByTimeBucketDto
  1125. */
  1126. export interface GetAssetCountByTimeBucketDto {
  1127. /**
  1128. *
  1129. * @type {TimeGroupEnum}
  1130. * @memberof GetAssetCountByTimeBucketDto
  1131. */
  1132. 'timeGroup': TimeGroupEnum;
  1133. }
  1134. /**
  1135. *
  1136. * @export
  1137. * @enum {string}
  1138. */
  1139. export const JobCommand = {
  1140. Start: 'start',
  1141. Stop: 'stop'
  1142. } as const;
  1143. export type JobCommand = typeof JobCommand[keyof typeof JobCommand];
  1144. /**
  1145. *
  1146. * @export
  1147. * @interface JobCommandDto
  1148. */
  1149. export interface JobCommandDto {
  1150. /**
  1151. *
  1152. * @type {JobCommand}
  1153. * @memberof JobCommandDto
  1154. */
  1155. 'command': JobCommand;
  1156. }
  1157. /**
  1158. *
  1159. * @export
  1160. * @interface JobCounts
  1161. */
  1162. export interface JobCounts {
  1163. /**
  1164. *
  1165. * @type {number}
  1166. * @memberof JobCounts
  1167. */
  1168. 'active': number;
  1169. /**
  1170. *
  1171. * @type {number}
  1172. * @memberof JobCounts
  1173. */
  1174. 'completed': number;
  1175. /**
  1176. *
  1177. * @type {number}
  1178. * @memberof JobCounts
  1179. */
  1180. 'failed': number;
  1181. /**
  1182. *
  1183. * @type {number}
  1184. * @memberof JobCounts
  1185. */
  1186. 'delayed': number;
  1187. /**
  1188. *
  1189. * @type {number}
  1190. * @memberof JobCounts
  1191. */
  1192. 'waiting': number;
  1193. }
  1194. /**
  1195. *
  1196. * @export
  1197. * @enum {string}
  1198. */
  1199. export const JobId = {
  1200. ThumbnailGeneration: 'thumbnail-generation',
  1201. MetadataExtraction: 'metadata-extraction',
  1202. VideoConversion: 'video-conversion',
  1203. MachineLearning: 'machine-learning',
  1204. StorageTemplateMigration: 'storage-template-migration'
  1205. } as const;
  1206. export type JobId = typeof JobId[keyof typeof JobId];
  1207. /**
  1208. *
  1209. * @export
  1210. * @interface JobStatusResponseDto
  1211. */
  1212. export interface JobStatusResponseDto {
  1213. /**
  1214. *
  1215. * @type {boolean}
  1216. * @memberof JobStatusResponseDto
  1217. */
  1218. 'isActive': boolean;
  1219. /**
  1220. *
  1221. * @type {object}
  1222. * @memberof JobStatusResponseDto
  1223. */
  1224. 'queueCount': object;
  1225. }
  1226. /**
  1227. *
  1228. * @export
  1229. * @interface LoginCredentialDto
  1230. */
  1231. export interface LoginCredentialDto {
  1232. /**
  1233. *
  1234. * @type {string}
  1235. * @memberof LoginCredentialDto
  1236. */
  1237. 'email': string;
  1238. /**
  1239. *
  1240. * @type {string}
  1241. * @memberof LoginCredentialDto
  1242. */
  1243. 'password': string;
  1244. }
  1245. /**
  1246. *
  1247. * @export
  1248. * @interface LoginResponseDto
  1249. */
  1250. export interface LoginResponseDto {
  1251. /**
  1252. *
  1253. * @type {string}
  1254. * @memberof LoginResponseDto
  1255. */
  1256. 'accessToken': string;
  1257. /**
  1258. *
  1259. * @type {string}
  1260. * @memberof LoginResponseDto
  1261. */
  1262. 'userId': string;
  1263. /**
  1264. *
  1265. * @type {string}
  1266. * @memberof LoginResponseDto
  1267. */
  1268. 'userEmail': string;
  1269. /**
  1270. *
  1271. * @type {string}
  1272. * @memberof LoginResponseDto
  1273. */
  1274. 'firstName': string;
  1275. /**
  1276. *
  1277. * @type {string}
  1278. * @memberof LoginResponseDto
  1279. */
  1280. 'lastName': string;
  1281. /**
  1282. *
  1283. * @type {string}
  1284. * @memberof LoginResponseDto
  1285. */
  1286. 'profileImagePath': string;
  1287. /**
  1288. *
  1289. * @type {boolean}
  1290. * @memberof LoginResponseDto
  1291. */
  1292. 'isAdmin': boolean;
  1293. /**
  1294. *
  1295. * @type {boolean}
  1296. * @memberof LoginResponseDto
  1297. */
  1298. 'shouldChangePassword': boolean;
  1299. }
  1300. /**
  1301. *
  1302. * @export
  1303. * @interface LogoutResponseDto
  1304. */
  1305. export interface LogoutResponseDto {
  1306. /**
  1307. *
  1308. * @type {boolean}
  1309. * @memberof LogoutResponseDto
  1310. */
  1311. 'successful': boolean;
  1312. /**
  1313. *
  1314. * @type {string}
  1315. * @memberof LogoutResponseDto
  1316. */
  1317. 'redirectUri': string;
  1318. }
  1319. /**
  1320. *
  1321. * @export
  1322. * @interface OAuthCallbackDto
  1323. */
  1324. export interface OAuthCallbackDto {
  1325. /**
  1326. *
  1327. * @type {string}
  1328. * @memberof OAuthCallbackDto
  1329. */
  1330. 'url': string;
  1331. }
  1332. /**
  1333. *
  1334. * @export
  1335. * @interface OAuthConfigDto
  1336. */
  1337. export interface OAuthConfigDto {
  1338. /**
  1339. *
  1340. * @type {string}
  1341. * @memberof OAuthConfigDto
  1342. */
  1343. 'redirectUri': string;
  1344. }
  1345. /**
  1346. *
  1347. * @export
  1348. * @interface OAuthConfigResponseDto
  1349. */
  1350. export interface OAuthConfigResponseDto {
  1351. /**
  1352. *
  1353. * @type {boolean}
  1354. * @memberof OAuthConfigResponseDto
  1355. */
  1356. 'enabled': boolean;
  1357. /**
  1358. *
  1359. * @type {boolean}
  1360. * @memberof OAuthConfigResponseDto
  1361. */
  1362. 'passwordLoginEnabled': boolean;
  1363. /**
  1364. *
  1365. * @type {string}
  1366. * @memberof OAuthConfigResponseDto
  1367. */
  1368. 'url'?: string;
  1369. /**
  1370. *
  1371. * @type {string}
  1372. * @memberof OAuthConfigResponseDto
  1373. */
  1374. 'buttonText'?: string;
  1375. /**
  1376. *
  1377. * @type {boolean}
  1378. * @memberof OAuthConfigResponseDto
  1379. */
  1380. 'autoLaunch'?: boolean;
  1381. }
  1382. /**
  1383. *
  1384. * @export
  1385. * @interface RemoveAssetsDto
  1386. */
  1387. export interface RemoveAssetsDto {
  1388. /**
  1389. *
  1390. * @type {Array<string>}
  1391. * @memberof RemoveAssetsDto
  1392. */
  1393. 'assetIds': Array<string>;
  1394. }
  1395. /**
  1396. *
  1397. * @export
  1398. * @interface SearchAssetDto
  1399. */
  1400. export interface SearchAssetDto {
  1401. /**
  1402. *
  1403. * @type {string}
  1404. * @memberof SearchAssetDto
  1405. */
  1406. 'searchTerm': string;
  1407. }
  1408. /**
  1409. *
  1410. * @export
  1411. * @interface ServerInfoResponseDto
  1412. */
  1413. export interface ServerInfoResponseDto {
  1414. /**
  1415. *
  1416. * @type {number}
  1417. * @memberof ServerInfoResponseDto
  1418. */
  1419. 'diskSizeRaw': number;
  1420. /**
  1421. *
  1422. * @type {number}
  1423. * @memberof ServerInfoResponseDto
  1424. */
  1425. 'diskUseRaw': number;
  1426. /**
  1427. *
  1428. * @type {number}
  1429. * @memberof ServerInfoResponseDto
  1430. */
  1431. 'diskAvailableRaw': number;
  1432. /**
  1433. *
  1434. * @type {number}
  1435. * @memberof ServerInfoResponseDto
  1436. */
  1437. 'diskUsagePercentage': number;
  1438. /**
  1439. *
  1440. * @type {string}
  1441. * @memberof ServerInfoResponseDto
  1442. */
  1443. 'diskSize': string;
  1444. /**
  1445. *
  1446. * @type {string}
  1447. * @memberof ServerInfoResponseDto
  1448. */
  1449. 'diskUse': string;
  1450. /**
  1451. *
  1452. * @type {string}
  1453. * @memberof ServerInfoResponseDto
  1454. */
  1455. 'diskAvailable': string;
  1456. }
  1457. /**
  1458. *
  1459. * @export
  1460. * @interface ServerPingResponse
  1461. */
  1462. export interface ServerPingResponse {
  1463. /**
  1464. *
  1465. * @type {string}
  1466. * @memberof ServerPingResponse
  1467. */
  1468. 'res': string;
  1469. }
  1470. /**
  1471. *
  1472. * @export
  1473. * @interface ServerStatsResponseDto
  1474. */
  1475. export interface ServerStatsResponseDto {
  1476. /**
  1477. *
  1478. * @type {number}
  1479. * @memberof ServerStatsResponseDto
  1480. */
  1481. 'photos': number;
  1482. /**
  1483. *
  1484. * @type {number}
  1485. * @memberof ServerStatsResponseDto
  1486. */
  1487. 'videos': number;
  1488. /**
  1489. *
  1490. * @type {number}
  1491. * @memberof ServerStatsResponseDto
  1492. */
  1493. 'objects': number;
  1494. /**
  1495. *
  1496. * @type {number}
  1497. * @memberof ServerStatsResponseDto
  1498. */
  1499. 'usageRaw': number;
  1500. /**
  1501. *
  1502. * @type {string}
  1503. * @memberof ServerStatsResponseDto
  1504. */
  1505. 'usage': string;
  1506. /**
  1507. *
  1508. * @type {Array<UsageByUserDto>}
  1509. * @memberof ServerStatsResponseDto
  1510. */
  1511. 'usageByUser': Array<UsageByUserDto>;
  1512. }
  1513. /**
  1514. *
  1515. * @export
  1516. * @interface ServerVersionReponseDto
  1517. */
  1518. export interface ServerVersionReponseDto {
  1519. /**
  1520. *
  1521. * @type {number}
  1522. * @memberof ServerVersionReponseDto
  1523. */
  1524. 'major': number;
  1525. /**
  1526. *
  1527. * @type {number}
  1528. * @memberof ServerVersionReponseDto
  1529. */
  1530. 'minor': number;
  1531. /**
  1532. *
  1533. * @type {number}
  1534. * @memberof ServerVersionReponseDto
  1535. */
  1536. 'patch': number;
  1537. /**
  1538. *
  1539. * @type {number}
  1540. * @memberof ServerVersionReponseDto
  1541. */
  1542. 'build': number;
  1543. }
  1544. /**
  1545. *
  1546. * @export
  1547. * @interface SharedLinkResponseDto
  1548. */
  1549. export interface SharedLinkResponseDto {
  1550. /**
  1551. *
  1552. * @type {SharedLinkType}
  1553. * @memberof SharedLinkResponseDto
  1554. */
  1555. 'type': SharedLinkType;
  1556. /**
  1557. *
  1558. * @type {string}
  1559. * @memberof SharedLinkResponseDto
  1560. */
  1561. 'id': string;
  1562. /**
  1563. *
  1564. * @type {string}
  1565. * @memberof SharedLinkResponseDto
  1566. */
  1567. 'description'?: string;
  1568. /**
  1569. *
  1570. * @type {string}
  1571. * @memberof SharedLinkResponseDto
  1572. */
  1573. 'userId': string;
  1574. /**
  1575. *
  1576. * @type {string}
  1577. * @memberof SharedLinkResponseDto
  1578. */
  1579. 'key': string;
  1580. /**
  1581. *
  1582. * @type {string}
  1583. * @memberof SharedLinkResponseDto
  1584. */
  1585. 'createdAt': string;
  1586. /**
  1587. *
  1588. * @type {string}
  1589. * @memberof SharedLinkResponseDto
  1590. */
  1591. 'expiresAt': string | null;
  1592. /**
  1593. *
  1594. * @type {Array<AssetResponseDto>}
  1595. * @memberof SharedLinkResponseDto
  1596. */
  1597. 'assets': Array<AssetResponseDto>;
  1598. /**
  1599. *
  1600. * @type {AlbumResponseDto}
  1601. * @memberof SharedLinkResponseDto
  1602. */
  1603. 'album'?: AlbumResponseDto;
  1604. /**
  1605. *
  1606. * @type {boolean}
  1607. * @memberof SharedLinkResponseDto
  1608. */
  1609. 'allowUpload': boolean;
  1610. }
  1611. /**
  1612. *
  1613. * @export
  1614. * @enum {string}
  1615. */
  1616. export const SharedLinkType = {
  1617. Album: 'ALBUM',
  1618. Individual: 'INDIVIDUAL'
  1619. } as const;
  1620. export type SharedLinkType = typeof SharedLinkType[keyof typeof SharedLinkType];
  1621. /**
  1622. *
  1623. * @export
  1624. * @interface SignUpDto
  1625. */
  1626. export interface SignUpDto {
  1627. /**
  1628. *
  1629. * @type {string}
  1630. * @memberof SignUpDto
  1631. */
  1632. 'email': string;
  1633. /**
  1634. *
  1635. * @type {string}
  1636. * @memberof SignUpDto
  1637. */
  1638. 'password': string;
  1639. /**
  1640. *
  1641. * @type {string}
  1642. * @memberof SignUpDto
  1643. */
  1644. 'firstName': string;
  1645. /**
  1646. *
  1647. * @type {string}
  1648. * @memberof SignUpDto
  1649. */
  1650. 'lastName': string;
  1651. }
  1652. /**
  1653. *
  1654. * @export
  1655. * @interface SmartInfoResponseDto
  1656. */
  1657. export interface SmartInfoResponseDto {
  1658. /**
  1659. *
  1660. * @type {string}
  1661. * @memberof SmartInfoResponseDto
  1662. */
  1663. 'id'?: string;
  1664. /**
  1665. *
  1666. * @type {Array<string>}
  1667. * @memberof SmartInfoResponseDto
  1668. */
  1669. 'tags'?: Array<string> | null;
  1670. /**
  1671. *
  1672. * @type {Array<string>}
  1673. * @memberof SmartInfoResponseDto
  1674. */
  1675. 'objects'?: Array<string> | null;
  1676. }
  1677. /**
  1678. *
  1679. * @export
  1680. * @interface SystemConfigDto
  1681. */
  1682. export interface SystemConfigDto {
  1683. /**
  1684. *
  1685. * @type {SystemConfigFFmpegDto}
  1686. * @memberof SystemConfigDto
  1687. */
  1688. 'ffmpeg': SystemConfigFFmpegDto;
  1689. /**
  1690. *
  1691. * @type {SystemConfigOAuthDto}
  1692. * @memberof SystemConfigDto
  1693. */
  1694. 'oauth': SystemConfigOAuthDto;
  1695. /**
  1696. *
  1697. * @type {SystemConfigPasswordLoginDto}
  1698. * @memberof SystemConfigDto
  1699. */
  1700. 'passwordLogin': SystemConfigPasswordLoginDto;
  1701. /**
  1702. *
  1703. * @type {SystemConfigStorageTemplateDto}
  1704. * @memberof SystemConfigDto
  1705. */
  1706. 'storageTemplate': SystemConfigStorageTemplateDto;
  1707. }
  1708. /**
  1709. *
  1710. * @export
  1711. * @interface SystemConfigFFmpegDto
  1712. */
  1713. export interface SystemConfigFFmpegDto {
  1714. /**
  1715. *
  1716. * @type {string}
  1717. * @memberof SystemConfigFFmpegDto
  1718. */
  1719. 'crf': string;
  1720. /**
  1721. *
  1722. * @type {string}
  1723. * @memberof SystemConfigFFmpegDto
  1724. */
  1725. 'preset': string;
  1726. /**
  1727. *
  1728. * @type {string}
  1729. * @memberof SystemConfigFFmpegDto
  1730. */
  1731. 'targetVideoCodec': string;
  1732. /**
  1733. *
  1734. * @type {string}
  1735. * @memberof SystemConfigFFmpegDto
  1736. */
  1737. 'targetAudioCodec': string;
  1738. /**
  1739. *
  1740. * @type {string}
  1741. * @memberof SystemConfigFFmpegDto
  1742. */
  1743. 'targetScaling': string;
  1744. }
  1745. /**
  1746. *
  1747. * @export
  1748. * @interface SystemConfigOAuthDto
  1749. */
  1750. export interface SystemConfigOAuthDto {
  1751. /**
  1752. *
  1753. * @type {boolean}
  1754. * @memberof SystemConfigOAuthDto
  1755. */
  1756. 'enabled': boolean;
  1757. /**
  1758. *
  1759. * @type {string}
  1760. * @memberof SystemConfigOAuthDto
  1761. */
  1762. 'issuerUrl': string;
  1763. /**
  1764. *
  1765. * @type {string}
  1766. * @memberof SystemConfigOAuthDto
  1767. */
  1768. 'clientId': string;
  1769. /**
  1770. *
  1771. * @type {string}
  1772. * @memberof SystemConfigOAuthDto
  1773. */
  1774. 'clientSecret': string;
  1775. /**
  1776. *
  1777. * @type {string}
  1778. * @memberof SystemConfigOAuthDto
  1779. */
  1780. 'scope': string;
  1781. /**
  1782. *
  1783. * @type {string}
  1784. * @memberof SystemConfigOAuthDto
  1785. */
  1786. 'buttonText': string;
  1787. /**
  1788. *
  1789. * @type {boolean}
  1790. * @memberof SystemConfigOAuthDto
  1791. */
  1792. 'autoRegister': boolean;
  1793. /**
  1794. *
  1795. * @type {boolean}
  1796. * @memberof SystemConfigOAuthDto
  1797. */
  1798. 'autoLaunch': boolean;
  1799. /**
  1800. *
  1801. * @type {boolean}
  1802. * @memberof SystemConfigOAuthDto
  1803. */
  1804. 'mobileOverrideEnabled': boolean;
  1805. /**
  1806. *
  1807. * @type {string}
  1808. * @memberof SystemConfigOAuthDto
  1809. */
  1810. 'mobileRedirectUri': string;
  1811. }
  1812. /**
  1813. *
  1814. * @export
  1815. * @interface SystemConfigPasswordLoginDto
  1816. */
  1817. export interface SystemConfigPasswordLoginDto {
  1818. /**
  1819. *
  1820. * @type {boolean}
  1821. * @memberof SystemConfigPasswordLoginDto
  1822. */
  1823. 'enabled': boolean;
  1824. }
  1825. /**
  1826. *
  1827. * @export
  1828. * @interface SystemConfigStorageTemplateDto
  1829. */
  1830. export interface SystemConfigStorageTemplateDto {
  1831. /**
  1832. *
  1833. * @type {string}
  1834. * @memberof SystemConfigStorageTemplateDto
  1835. */
  1836. 'template': string;
  1837. }
  1838. /**
  1839. *
  1840. * @export
  1841. * @interface SystemConfigTemplateStorageOptionDto
  1842. */
  1843. export interface SystemConfigTemplateStorageOptionDto {
  1844. /**
  1845. *
  1846. * @type {Array<string>}
  1847. * @memberof SystemConfigTemplateStorageOptionDto
  1848. */
  1849. 'yearOptions': Array<string>;
  1850. /**
  1851. *
  1852. * @type {Array<string>}
  1853. * @memberof SystemConfigTemplateStorageOptionDto
  1854. */
  1855. 'monthOptions': Array<string>;
  1856. /**
  1857. *
  1858. * @type {Array<string>}
  1859. * @memberof SystemConfigTemplateStorageOptionDto
  1860. */
  1861. 'dayOptions': Array<string>;
  1862. /**
  1863. *
  1864. * @type {Array<string>}
  1865. * @memberof SystemConfigTemplateStorageOptionDto
  1866. */
  1867. 'hourOptions': Array<string>;
  1868. /**
  1869. *
  1870. * @type {Array<string>}
  1871. * @memberof SystemConfigTemplateStorageOptionDto
  1872. */
  1873. 'minuteOptions': Array<string>;
  1874. /**
  1875. *
  1876. * @type {Array<string>}
  1877. * @memberof SystemConfigTemplateStorageOptionDto
  1878. */
  1879. 'secondOptions': Array<string>;
  1880. /**
  1881. *
  1882. * @type {Array<string>}
  1883. * @memberof SystemConfigTemplateStorageOptionDto
  1884. */
  1885. 'presetOptions': Array<string>;
  1886. }
  1887. /**
  1888. *
  1889. * @export
  1890. * @interface TagResponseDto
  1891. */
  1892. export interface TagResponseDto {
  1893. /**
  1894. *
  1895. * @type {string}
  1896. * @memberof TagResponseDto
  1897. */
  1898. 'id': string;
  1899. /**
  1900. *
  1901. * @type {TagTypeEnum}
  1902. * @memberof TagResponseDto
  1903. */
  1904. 'type': TagTypeEnum;
  1905. /**
  1906. *
  1907. * @type {string}
  1908. * @memberof TagResponseDto
  1909. */
  1910. 'name': string;
  1911. /**
  1912. *
  1913. * @type {string}
  1914. * @memberof TagResponseDto
  1915. */
  1916. 'userId': string;
  1917. /**
  1918. *
  1919. * @type {string}
  1920. * @memberof TagResponseDto
  1921. */
  1922. 'renameTagId'?: string | null;
  1923. }
  1924. /**
  1925. *
  1926. * @export
  1927. * @enum {string}
  1928. */
  1929. export const TagTypeEnum = {
  1930. Object: 'OBJECT',
  1931. Face: 'FACE',
  1932. Custom: 'CUSTOM'
  1933. } as const;
  1934. export type TagTypeEnum = typeof TagTypeEnum[keyof typeof TagTypeEnum];
  1935. /**
  1936. *
  1937. * @export
  1938. * @enum {string}
  1939. */
  1940. export const ThumbnailFormat = {
  1941. Jpeg: 'JPEG',
  1942. Webp: 'WEBP'
  1943. } as const;
  1944. export type ThumbnailFormat = typeof ThumbnailFormat[keyof typeof ThumbnailFormat];
  1945. /**
  1946. *
  1947. * @export
  1948. * @enum {string}
  1949. */
  1950. export const TimeGroupEnum = {
  1951. Day: 'day',
  1952. Month: 'month'
  1953. } as const;
  1954. export type TimeGroupEnum = typeof TimeGroupEnum[keyof typeof TimeGroupEnum];
  1955. /**
  1956. *
  1957. * @export
  1958. * @interface UpdateAlbumDto
  1959. */
  1960. export interface UpdateAlbumDto {
  1961. /**
  1962. *
  1963. * @type {string}
  1964. * @memberof UpdateAlbumDto
  1965. */
  1966. 'albumName'?: string;
  1967. /**
  1968. *
  1969. * @type {string}
  1970. * @memberof UpdateAlbumDto
  1971. */
  1972. 'albumThumbnailAssetId'?: string;
  1973. }
  1974. /**
  1975. *
  1976. * @export
  1977. * @interface UpdateAssetDto
  1978. */
  1979. export interface UpdateAssetDto {
  1980. /**
  1981. *
  1982. * @type {Array<string>}
  1983. * @memberof UpdateAssetDto
  1984. */
  1985. 'tagIds'?: Array<string>;
  1986. /**
  1987. *
  1988. * @type {boolean}
  1989. * @memberof UpdateAssetDto
  1990. */
  1991. 'isFavorite'?: boolean;
  1992. }
  1993. /**
  1994. *
  1995. * @export
  1996. * @interface UpdateTagDto
  1997. */
  1998. export interface UpdateTagDto {
  1999. /**
  2000. *
  2001. * @type {string}
  2002. * @memberof UpdateTagDto
  2003. */
  2004. 'name'?: string;
  2005. /**
  2006. *
  2007. * @type {string}
  2008. * @memberof UpdateTagDto
  2009. */
  2010. 'renameTagId'?: string;
  2011. }
  2012. /**
  2013. *
  2014. * @export
  2015. * @interface UpdateUserDto
  2016. */
  2017. export interface UpdateUserDto {
  2018. /**
  2019. *
  2020. * @type {string}
  2021. * @memberof UpdateUserDto
  2022. */
  2023. 'id': string;
  2024. /**
  2025. *
  2026. * @type {string}
  2027. * @memberof UpdateUserDto
  2028. */
  2029. 'email'?: string;
  2030. /**
  2031. *
  2032. * @type {string}
  2033. * @memberof UpdateUserDto
  2034. */
  2035. 'password'?: string;
  2036. /**
  2037. *
  2038. * @type {string}
  2039. * @memberof UpdateUserDto
  2040. */
  2041. 'firstName'?: string;
  2042. /**
  2043. *
  2044. * @type {string}
  2045. * @memberof UpdateUserDto
  2046. */
  2047. 'lastName'?: string;
  2048. /**
  2049. *
  2050. * @type {boolean}
  2051. * @memberof UpdateUserDto
  2052. */
  2053. 'isAdmin'?: boolean;
  2054. /**
  2055. *
  2056. * @type {boolean}
  2057. * @memberof UpdateUserDto
  2058. */
  2059. 'shouldChangePassword'?: boolean;
  2060. /**
  2061. *
  2062. * @type {string}
  2063. * @memberof UpdateUserDto
  2064. */
  2065. 'profileImagePath'?: string;
  2066. }
  2067. /**
  2068. *
  2069. * @export
  2070. * @interface UpsertDeviceInfoDto
  2071. */
  2072. export interface UpsertDeviceInfoDto {
  2073. /**
  2074. *
  2075. * @type {DeviceTypeEnum}
  2076. * @memberof UpsertDeviceInfoDto
  2077. */
  2078. 'deviceType': DeviceTypeEnum;
  2079. /**
  2080. *
  2081. * @type {string}
  2082. * @memberof UpsertDeviceInfoDto
  2083. */
  2084. 'deviceId': string;
  2085. /**
  2086. *
  2087. * @type {boolean}
  2088. * @memberof UpsertDeviceInfoDto
  2089. */
  2090. 'isAutoBackup'?: boolean;
  2091. }
  2092. /**
  2093. *
  2094. * @export
  2095. * @interface UsageByUserDto
  2096. */
  2097. export interface UsageByUserDto {
  2098. /**
  2099. *
  2100. * @type {string}
  2101. * @memberof UsageByUserDto
  2102. */
  2103. 'userId': string;
  2104. /**
  2105. *
  2106. * @type {number}
  2107. * @memberof UsageByUserDto
  2108. */
  2109. 'videos': number;
  2110. /**
  2111. *
  2112. * @type {number}
  2113. * @memberof UsageByUserDto
  2114. */
  2115. 'photos': number;
  2116. /**
  2117. *
  2118. * @type {number}
  2119. * @memberof UsageByUserDto
  2120. */
  2121. 'usageRaw': number;
  2122. /**
  2123. *
  2124. * @type {string}
  2125. * @memberof UsageByUserDto
  2126. */
  2127. 'usage': string;
  2128. }
  2129. /**
  2130. *
  2131. * @export
  2132. * @interface UserCountResponseDto
  2133. */
  2134. export interface UserCountResponseDto {
  2135. /**
  2136. *
  2137. * @type {number}
  2138. * @memberof UserCountResponseDto
  2139. */
  2140. 'userCount': number;
  2141. }
  2142. /**
  2143. *
  2144. * @export
  2145. * @interface UserResponseDto
  2146. */
  2147. export interface UserResponseDto {
  2148. /**
  2149. *
  2150. * @type {string}
  2151. * @memberof UserResponseDto
  2152. */
  2153. 'id': string;
  2154. /**
  2155. *
  2156. * @type {string}
  2157. * @memberof UserResponseDto
  2158. */
  2159. 'email': string;
  2160. /**
  2161. *
  2162. * @type {string}
  2163. * @memberof UserResponseDto
  2164. */
  2165. 'firstName': string;
  2166. /**
  2167. *
  2168. * @type {string}
  2169. * @memberof UserResponseDto
  2170. */
  2171. 'lastName': string;
  2172. /**
  2173. *
  2174. * @type {string}
  2175. * @memberof UserResponseDto
  2176. */
  2177. 'createdAt': string;
  2178. /**
  2179. *
  2180. * @type {string}
  2181. * @memberof UserResponseDto
  2182. */
  2183. 'profileImagePath': string;
  2184. /**
  2185. *
  2186. * @type {boolean}
  2187. * @memberof UserResponseDto
  2188. */
  2189. 'shouldChangePassword': boolean;
  2190. /**
  2191. *
  2192. * @type {boolean}
  2193. * @memberof UserResponseDto
  2194. */
  2195. 'isAdmin': boolean;
  2196. /**
  2197. *
  2198. * @type {string}
  2199. * @memberof UserResponseDto
  2200. */
  2201. 'deletedAt'?: string;
  2202. /**
  2203. *
  2204. * @type {string}
  2205. * @memberof UserResponseDto
  2206. */
  2207. 'oauthId': string;
  2208. }
  2209. /**
  2210. *
  2211. * @export
  2212. * @interface ValidateAccessTokenResponseDto
  2213. */
  2214. export interface ValidateAccessTokenResponseDto {
  2215. /**
  2216. *
  2217. * @type {boolean}
  2218. * @memberof ValidateAccessTokenResponseDto
  2219. */
  2220. 'authStatus': boolean;
  2221. }
  2222. /**
  2223. * APIKeyApi - axios parameter creator
  2224. * @export
  2225. */
  2226. export const APIKeyApiAxiosParamCreator = function (configuration?: Configuration) {
  2227. return {
  2228. /**
  2229. *
  2230. * @param {APIKeyCreateDto} aPIKeyCreateDto
  2231. * @param {*} [options] Override http request option.
  2232. * @throws {RequiredError}
  2233. */
  2234. createKey: async (aPIKeyCreateDto: APIKeyCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2235. // verify required parameter 'aPIKeyCreateDto' is not null or undefined
  2236. assertParamExists('createKey', 'aPIKeyCreateDto', aPIKeyCreateDto)
  2237. const localVarPath = `/api-key`;
  2238. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2239. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2240. let baseOptions;
  2241. if (configuration) {
  2242. baseOptions = configuration.baseOptions;
  2243. }
  2244. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  2245. const localVarHeaderParameter = {} as any;
  2246. const localVarQueryParameter = {} as any;
  2247. localVarHeaderParameter['Content-Type'] = 'application/json';
  2248. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2249. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2250. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2251. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyCreateDto, localVarRequestOptions, configuration)
  2252. return {
  2253. url: toPathString(localVarUrlObj),
  2254. options: localVarRequestOptions,
  2255. };
  2256. },
  2257. /**
  2258. *
  2259. * @param {number} id
  2260. * @param {*} [options] Override http request option.
  2261. * @throws {RequiredError}
  2262. */
  2263. deleteKey: async (id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2264. // verify required parameter 'id' is not null or undefined
  2265. assertParamExists('deleteKey', 'id', id)
  2266. const localVarPath = `/api-key/{id}`
  2267. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  2268. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2269. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2270. let baseOptions;
  2271. if (configuration) {
  2272. baseOptions = configuration.baseOptions;
  2273. }
  2274. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  2275. const localVarHeaderParameter = {} as any;
  2276. const localVarQueryParameter = {} as any;
  2277. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2278. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2279. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2280. return {
  2281. url: toPathString(localVarUrlObj),
  2282. options: localVarRequestOptions,
  2283. };
  2284. },
  2285. /**
  2286. *
  2287. * @param {number} id
  2288. * @param {*} [options] Override http request option.
  2289. * @throws {RequiredError}
  2290. */
  2291. getKey: async (id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2292. // verify required parameter 'id' is not null or undefined
  2293. assertParamExists('getKey', 'id', id)
  2294. const localVarPath = `/api-key/{id}`
  2295. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  2296. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2297. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2298. let baseOptions;
  2299. if (configuration) {
  2300. baseOptions = configuration.baseOptions;
  2301. }
  2302. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  2303. const localVarHeaderParameter = {} as any;
  2304. const localVarQueryParameter = {} as any;
  2305. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2306. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2307. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2308. return {
  2309. url: toPathString(localVarUrlObj),
  2310. options: localVarRequestOptions,
  2311. };
  2312. },
  2313. /**
  2314. *
  2315. * @param {*} [options] Override http request option.
  2316. * @throws {RequiredError}
  2317. */
  2318. getKeys: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2319. const localVarPath = `/api-key`;
  2320. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2321. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2322. let baseOptions;
  2323. if (configuration) {
  2324. baseOptions = configuration.baseOptions;
  2325. }
  2326. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  2327. const localVarHeaderParameter = {} as any;
  2328. const localVarQueryParameter = {} as any;
  2329. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2330. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2331. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2332. return {
  2333. url: toPathString(localVarUrlObj),
  2334. options: localVarRequestOptions,
  2335. };
  2336. },
  2337. /**
  2338. *
  2339. * @param {number} id
  2340. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  2341. * @param {*} [options] Override http request option.
  2342. * @throws {RequiredError}
  2343. */
  2344. updateKey: async (id: number, aPIKeyUpdateDto: APIKeyUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2345. // verify required parameter 'id' is not null or undefined
  2346. assertParamExists('updateKey', 'id', id)
  2347. // verify required parameter 'aPIKeyUpdateDto' is not null or undefined
  2348. assertParamExists('updateKey', 'aPIKeyUpdateDto', aPIKeyUpdateDto)
  2349. const localVarPath = `/api-key/{id}`
  2350. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  2351. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2352. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2353. let baseOptions;
  2354. if (configuration) {
  2355. baseOptions = configuration.baseOptions;
  2356. }
  2357. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  2358. const localVarHeaderParameter = {} as any;
  2359. const localVarQueryParameter = {} as any;
  2360. localVarHeaderParameter['Content-Type'] = 'application/json';
  2361. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2362. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2363. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2364. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyUpdateDto, localVarRequestOptions, configuration)
  2365. return {
  2366. url: toPathString(localVarUrlObj),
  2367. options: localVarRequestOptions,
  2368. };
  2369. },
  2370. }
  2371. };
  2372. /**
  2373. * APIKeyApi - functional programming interface
  2374. * @export
  2375. */
  2376. export const APIKeyApiFp = function(configuration?: Configuration) {
  2377. const localVarAxiosParamCreator = APIKeyApiAxiosParamCreator(configuration)
  2378. return {
  2379. /**
  2380. *
  2381. * @param {APIKeyCreateDto} aPIKeyCreateDto
  2382. * @param {*} [options] Override http request option.
  2383. * @throws {RequiredError}
  2384. */
  2385. async createKey(aPIKeyCreateDto: APIKeyCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyCreateResponseDto>> {
  2386. const localVarAxiosArgs = await localVarAxiosParamCreator.createKey(aPIKeyCreateDto, options);
  2387. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2388. },
  2389. /**
  2390. *
  2391. * @param {number} id
  2392. * @param {*} [options] Override http request option.
  2393. * @throws {RequiredError}
  2394. */
  2395. async deleteKey(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  2396. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteKey(id, options);
  2397. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2398. },
  2399. /**
  2400. *
  2401. * @param {number} id
  2402. * @param {*} [options] Override http request option.
  2403. * @throws {RequiredError}
  2404. */
  2405. async getKey(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  2406. const localVarAxiosArgs = await localVarAxiosParamCreator.getKey(id, options);
  2407. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2408. },
  2409. /**
  2410. *
  2411. * @param {*} [options] Override http request option.
  2412. * @throws {RequiredError}
  2413. */
  2414. async getKeys(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<APIKeyResponseDto>>> {
  2415. const localVarAxiosArgs = await localVarAxiosParamCreator.getKeys(options);
  2416. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2417. },
  2418. /**
  2419. *
  2420. * @param {number} id
  2421. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  2422. * @param {*} [options] Override http request option.
  2423. * @throws {RequiredError}
  2424. */
  2425. async updateKey(id: number, aPIKeyUpdateDto: APIKeyUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  2426. const localVarAxiosArgs = await localVarAxiosParamCreator.updateKey(id, aPIKeyUpdateDto, options);
  2427. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2428. },
  2429. }
  2430. };
  2431. /**
  2432. * APIKeyApi - factory interface
  2433. * @export
  2434. */
  2435. export const APIKeyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  2436. const localVarFp = APIKeyApiFp(configuration)
  2437. return {
  2438. /**
  2439. *
  2440. * @param {APIKeyCreateDto} aPIKeyCreateDto
  2441. * @param {*} [options] Override http request option.
  2442. * @throws {RequiredError}
  2443. */
  2444. createKey(aPIKeyCreateDto: APIKeyCreateDto, options?: any): AxiosPromise<APIKeyCreateResponseDto> {
  2445. return localVarFp.createKey(aPIKeyCreateDto, options).then((request) => request(axios, basePath));
  2446. },
  2447. /**
  2448. *
  2449. * @param {number} id
  2450. * @param {*} [options] Override http request option.
  2451. * @throws {RequiredError}
  2452. */
  2453. deleteKey(id: number, options?: any): AxiosPromise<void> {
  2454. return localVarFp.deleteKey(id, options).then((request) => request(axios, basePath));
  2455. },
  2456. /**
  2457. *
  2458. * @param {number} id
  2459. * @param {*} [options] Override http request option.
  2460. * @throws {RequiredError}
  2461. */
  2462. getKey(id: number, options?: any): AxiosPromise<APIKeyResponseDto> {
  2463. return localVarFp.getKey(id, options).then((request) => request(axios, basePath));
  2464. },
  2465. /**
  2466. *
  2467. * @param {*} [options] Override http request option.
  2468. * @throws {RequiredError}
  2469. */
  2470. getKeys(options?: any): AxiosPromise<Array<APIKeyResponseDto>> {
  2471. return localVarFp.getKeys(options).then((request) => request(axios, basePath));
  2472. },
  2473. /**
  2474. *
  2475. * @param {number} id
  2476. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  2477. * @param {*} [options] Override http request option.
  2478. * @throws {RequiredError}
  2479. */
  2480. updateKey(id: number, aPIKeyUpdateDto: APIKeyUpdateDto, options?: any): AxiosPromise<APIKeyResponseDto> {
  2481. return localVarFp.updateKey(id, aPIKeyUpdateDto, options).then((request) => request(axios, basePath));
  2482. },
  2483. };
  2484. };
  2485. /**
  2486. * APIKeyApi - object-oriented interface
  2487. * @export
  2488. * @class APIKeyApi
  2489. * @extends {BaseAPI}
  2490. */
  2491. export class APIKeyApi extends BaseAPI {
  2492. /**
  2493. *
  2494. * @param {APIKeyCreateDto} aPIKeyCreateDto
  2495. * @param {*} [options] Override http request option.
  2496. * @throws {RequiredError}
  2497. * @memberof APIKeyApi
  2498. */
  2499. public createKey(aPIKeyCreateDto: APIKeyCreateDto, options?: AxiosRequestConfig) {
  2500. return APIKeyApiFp(this.configuration).createKey(aPIKeyCreateDto, options).then((request) => request(this.axios, this.basePath));
  2501. }
  2502. /**
  2503. *
  2504. * @param {number} id
  2505. * @param {*} [options] Override http request option.
  2506. * @throws {RequiredError}
  2507. * @memberof APIKeyApi
  2508. */
  2509. public deleteKey(id: number, options?: AxiosRequestConfig) {
  2510. return APIKeyApiFp(this.configuration).deleteKey(id, options).then((request) => request(this.axios, this.basePath));
  2511. }
  2512. /**
  2513. *
  2514. * @param {number} id
  2515. * @param {*} [options] Override http request option.
  2516. * @throws {RequiredError}
  2517. * @memberof APIKeyApi
  2518. */
  2519. public getKey(id: number, options?: AxiosRequestConfig) {
  2520. return APIKeyApiFp(this.configuration).getKey(id, options).then((request) => request(this.axios, this.basePath));
  2521. }
  2522. /**
  2523. *
  2524. * @param {*} [options] Override http request option.
  2525. * @throws {RequiredError}
  2526. * @memberof APIKeyApi
  2527. */
  2528. public getKeys(options?: AxiosRequestConfig) {
  2529. return APIKeyApiFp(this.configuration).getKeys(options).then((request) => request(this.axios, this.basePath));
  2530. }
  2531. /**
  2532. *
  2533. * @param {number} id
  2534. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  2535. * @param {*} [options] Override http request option.
  2536. * @throws {RequiredError}
  2537. * @memberof APIKeyApi
  2538. */
  2539. public updateKey(id: number, aPIKeyUpdateDto: APIKeyUpdateDto, options?: AxiosRequestConfig) {
  2540. return APIKeyApiFp(this.configuration).updateKey(id, aPIKeyUpdateDto, options).then((request) => request(this.axios, this.basePath));
  2541. }
  2542. }
  2543. /**
  2544. * AlbumApi - axios parameter creator
  2545. * @export
  2546. */
  2547. export const AlbumApiAxiosParamCreator = function (configuration?: Configuration) {
  2548. return {
  2549. /**
  2550. *
  2551. * @param {string} albumId
  2552. * @param {AddAssetsDto} addAssetsDto
  2553. * @param {*} [options] Override http request option.
  2554. * @throws {RequiredError}
  2555. */
  2556. addAssetsToAlbum: async (albumId: string, addAssetsDto: AddAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2557. // verify required parameter 'albumId' is not null or undefined
  2558. assertParamExists('addAssetsToAlbum', 'albumId', albumId)
  2559. // verify required parameter 'addAssetsDto' is not null or undefined
  2560. assertParamExists('addAssetsToAlbum', 'addAssetsDto', addAssetsDto)
  2561. const localVarPath = `/album/{albumId}/assets`
  2562. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  2563. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2564. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2565. let baseOptions;
  2566. if (configuration) {
  2567. baseOptions = configuration.baseOptions;
  2568. }
  2569. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  2570. const localVarHeaderParameter = {} as any;
  2571. const localVarQueryParameter = {} as any;
  2572. // authentication bearer required
  2573. // http bearer authentication required
  2574. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2575. localVarHeaderParameter['Content-Type'] = 'application/json';
  2576. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2577. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2578. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2579. localVarRequestOptions.data = serializeDataIfNeeded(addAssetsDto, localVarRequestOptions, configuration)
  2580. return {
  2581. url: toPathString(localVarUrlObj),
  2582. options: localVarRequestOptions,
  2583. };
  2584. },
  2585. /**
  2586. *
  2587. * @param {string} albumId
  2588. * @param {AddUsersDto} addUsersDto
  2589. * @param {*} [options] Override http request option.
  2590. * @throws {RequiredError}
  2591. */
  2592. addUsersToAlbum: async (albumId: string, addUsersDto: AddUsersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2593. // verify required parameter 'albumId' is not null or undefined
  2594. assertParamExists('addUsersToAlbum', 'albumId', albumId)
  2595. // verify required parameter 'addUsersDto' is not null or undefined
  2596. assertParamExists('addUsersToAlbum', 'addUsersDto', addUsersDto)
  2597. const localVarPath = `/album/{albumId}/users`
  2598. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  2599. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2600. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2601. let baseOptions;
  2602. if (configuration) {
  2603. baseOptions = configuration.baseOptions;
  2604. }
  2605. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  2606. const localVarHeaderParameter = {} as any;
  2607. const localVarQueryParameter = {} as any;
  2608. // authentication bearer required
  2609. // http bearer authentication required
  2610. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2611. localVarHeaderParameter['Content-Type'] = 'application/json';
  2612. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2613. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2614. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2615. localVarRequestOptions.data = serializeDataIfNeeded(addUsersDto, localVarRequestOptions, configuration)
  2616. return {
  2617. url: toPathString(localVarUrlObj),
  2618. options: localVarRequestOptions,
  2619. };
  2620. },
  2621. /**
  2622. *
  2623. * @param {CreateAlbumDto} createAlbumDto
  2624. * @param {*} [options] Override http request option.
  2625. * @throws {RequiredError}
  2626. */
  2627. createAlbum: async (createAlbumDto: CreateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2628. // verify required parameter 'createAlbumDto' is not null or undefined
  2629. assertParamExists('createAlbum', 'createAlbumDto', createAlbumDto)
  2630. const localVarPath = `/album`;
  2631. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2632. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2633. let baseOptions;
  2634. if (configuration) {
  2635. baseOptions = configuration.baseOptions;
  2636. }
  2637. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  2638. const localVarHeaderParameter = {} as any;
  2639. const localVarQueryParameter = {} as any;
  2640. // authentication bearer required
  2641. // http bearer authentication required
  2642. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2643. localVarHeaderParameter['Content-Type'] = 'application/json';
  2644. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2645. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2646. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2647. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumDto, localVarRequestOptions, configuration)
  2648. return {
  2649. url: toPathString(localVarUrlObj),
  2650. options: localVarRequestOptions,
  2651. };
  2652. },
  2653. /**
  2654. *
  2655. * @param {CreateAlbumShareLinkDto} createAlbumShareLinkDto
  2656. * @param {*} [options] Override http request option.
  2657. * @throws {RequiredError}
  2658. */
  2659. createAlbumSharedLink: async (createAlbumShareLinkDto: CreateAlbumShareLinkDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2660. // verify required parameter 'createAlbumShareLinkDto' is not null or undefined
  2661. assertParamExists('createAlbumSharedLink', 'createAlbumShareLinkDto', createAlbumShareLinkDto)
  2662. const localVarPath = `/album/create-shared-link`;
  2663. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2664. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2665. let baseOptions;
  2666. if (configuration) {
  2667. baseOptions = configuration.baseOptions;
  2668. }
  2669. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  2670. const localVarHeaderParameter = {} as any;
  2671. const localVarQueryParameter = {} as any;
  2672. // authentication bearer required
  2673. // http bearer authentication required
  2674. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2675. localVarHeaderParameter['Content-Type'] = 'application/json';
  2676. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2677. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2678. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2679. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumShareLinkDto, localVarRequestOptions, configuration)
  2680. return {
  2681. url: toPathString(localVarUrlObj),
  2682. options: localVarRequestOptions,
  2683. };
  2684. },
  2685. /**
  2686. *
  2687. * @param {string} albumId
  2688. * @param {*} [options] Override http request option.
  2689. * @throws {RequiredError}
  2690. */
  2691. deleteAlbum: async (albumId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2692. // verify required parameter 'albumId' is not null or undefined
  2693. assertParamExists('deleteAlbum', 'albumId', albumId)
  2694. const localVarPath = `/album/{albumId}`
  2695. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  2696. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2697. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2698. let baseOptions;
  2699. if (configuration) {
  2700. baseOptions = configuration.baseOptions;
  2701. }
  2702. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  2703. const localVarHeaderParameter = {} as any;
  2704. const localVarQueryParameter = {} as any;
  2705. // authentication bearer required
  2706. // http bearer authentication required
  2707. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2708. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2709. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2710. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2711. return {
  2712. url: toPathString(localVarUrlObj),
  2713. options: localVarRequestOptions,
  2714. };
  2715. },
  2716. /**
  2717. *
  2718. * @param {string} albumId
  2719. * @param {number} [skip]
  2720. * @param {*} [options] Override http request option.
  2721. * @throws {RequiredError}
  2722. */
  2723. downloadArchive: async (albumId: string, skip?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2724. // verify required parameter 'albumId' is not null or undefined
  2725. assertParamExists('downloadArchive', 'albumId', albumId)
  2726. const localVarPath = `/album/{albumId}/download`
  2727. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  2728. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2729. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2730. let baseOptions;
  2731. if (configuration) {
  2732. baseOptions = configuration.baseOptions;
  2733. }
  2734. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  2735. const localVarHeaderParameter = {} as any;
  2736. const localVarQueryParameter = {} as any;
  2737. // authentication bearer required
  2738. // http bearer authentication required
  2739. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2740. if (skip !== undefined) {
  2741. localVarQueryParameter['skip'] = skip;
  2742. }
  2743. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2744. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2745. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2746. return {
  2747. url: toPathString(localVarUrlObj),
  2748. options: localVarRequestOptions,
  2749. };
  2750. },
  2751. /**
  2752. *
  2753. * @param {*} [options] Override http request option.
  2754. * @throws {RequiredError}
  2755. */
  2756. getAlbumCountByUserId: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2757. const localVarPath = `/album/count-by-user-id`;
  2758. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2759. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2760. let baseOptions;
  2761. if (configuration) {
  2762. baseOptions = configuration.baseOptions;
  2763. }
  2764. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  2765. const localVarHeaderParameter = {} as any;
  2766. const localVarQueryParameter = {} as any;
  2767. // authentication bearer required
  2768. // http bearer authentication required
  2769. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2770. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2771. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2772. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2773. return {
  2774. url: toPathString(localVarUrlObj),
  2775. options: localVarRequestOptions,
  2776. };
  2777. },
  2778. /**
  2779. *
  2780. * @param {string} albumId
  2781. * @param {*} [options] Override http request option.
  2782. * @throws {RequiredError}
  2783. */
  2784. getAlbumInfo: async (albumId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2785. // verify required parameter 'albumId' is not null or undefined
  2786. assertParamExists('getAlbumInfo', 'albumId', albumId)
  2787. const localVarPath = `/album/{albumId}`
  2788. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  2789. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2790. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2791. let baseOptions;
  2792. if (configuration) {
  2793. baseOptions = configuration.baseOptions;
  2794. }
  2795. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  2796. const localVarHeaderParameter = {} as any;
  2797. const localVarQueryParameter = {} as any;
  2798. // authentication bearer required
  2799. // http bearer authentication required
  2800. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2801. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2802. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2803. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2804. return {
  2805. url: toPathString(localVarUrlObj),
  2806. options: localVarRequestOptions,
  2807. };
  2808. },
  2809. /**
  2810. *
  2811. * @param {boolean} [shared]
  2812. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  2813. * @param {*} [options] Override http request option.
  2814. * @throws {RequiredError}
  2815. */
  2816. getAllAlbums: async (shared?: boolean, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2817. const localVarPath = `/album`;
  2818. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2819. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2820. let baseOptions;
  2821. if (configuration) {
  2822. baseOptions = configuration.baseOptions;
  2823. }
  2824. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  2825. const localVarHeaderParameter = {} as any;
  2826. const localVarQueryParameter = {} as any;
  2827. // authentication bearer required
  2828. // http bearer authentication required
  2829. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2830. if (shared !== undefined) {
  2831. localVarQueryParameter['shared'] = shared;
  2832. }
  2833. if (assetId !== undefined) {
  2834. localVarQueryParameter['assetId'] = assetId;
  2835. }
  2836. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2837. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2838. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2839. return {
  2840. url: toPathString(localVarUrlObj),
  2841. options: localVarRequestOptions,
  2842. };
  2843. },
  2844. /**
  2845. *
  2846. * @param {string} albumId
  2847. * @param {RemoveAssetsDto} removeAssetsDto
  2848. * @param {*} [options] Override http request option.
  2849. * @throws {RequiredError}
  2850. */
  2851. removeAssetFromAlbum: async (albumId: string, removeAssetsDto: RemoveAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2852. // verify required parameter 'albumId' is not null or undefined
  2853. assertParamExists('removeAssetFromAlbum', 'albumId', albumId)
  2854. // verify required parameter 'removeAssetsDto' is not null or undefined
  2855. assertParamExists('removeAssetFromAlbum', 'removeAssetsDto', removeAssetsDto)
  2856. const localVarPath = `/album/{albumId}/assets`
  2857. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  2858. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2859. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2860. let baseOptions;
  2861. if (configuration) {
  2862. baseOptions = configuration.baseOptions;
  2863. }
  2864. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  2865. const localVarHeaderParameter = {} as any;
  2866. const localVarQueryParameter = {} as any;
  2867. // authentication bearer required
  2868. // http bearer authentication required
  2869. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2870. localVarHeaderParameter['Content-Type'] = 'application/json';
  2871. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2872. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2873. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2874. localVarRequestOptions.data = serializeDataIfNeeded(removeAssetsDto, localVarRequestOptions, configuration)
  2875. return {
  2876. url: toPathString(localVarUrlObj),
  2877. options: localVarRequestOptions,
  2878. };
  2879. },
  2880. /**
  2881. *
  2882. * @param {string} albumId
  2883. * @param {string} userId
  2884. * @param {*} [options] Override http request option.
  2885. * @throws {RequiredError}
  2886. */
  2887. removeUserFromAlbum: async (albumId: string, userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2888. // verify required parameter 'albumId' is not null or undefined
  2889. assertParamExists('removeUserFromAlbum', 'albumId', albumId)
  2890. // verify required parameter 'userId' is not null or undefined
  2891. assertParamExists('removeUserFromAlbum', 'userId', userId)
  2892. const localVarPath = `/album/{albumId}/user/{userId}`
  2893. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)))
  2894. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  2895. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2896. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2897. let baseOptions;
  2898. if (configuration) {
  2899. baseOptions = configuration.baseOptions;
  2900. }
  2901. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  2902. const localVarHeaderParameter = {} as any;
  2903. const localVarQueryParameter = {} as any;
  2904. // authentication bearer required
  2905. // http bearer authentication required
  2906. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2907. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2908. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2909. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2910. return {
  2911. url: toPathString(localVarUrlObj),
  2912. options: localVarRequestOptions,
  2913. };
  2914. },
  2915. /**
  2916. *
  2917. * @param {string} albumId
  2918. * @param {UpdateAlbumDto} updateAlbumDto
  2919. * @param {*} [options] Override http request option.
  2920. * @throws {RequiredError}
  2921. */
  2922. updateAlbumInfo: async (albumId: string, updateAlbumDto: UpdateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2923. // verify required parameter 'albumId' is not null or undefined
  2924. assertParamExists('updateAlbumInfo', 'albumId', albumId)
  2925. // verify required parameter 'updateAlbumDto' is not null or undefined
  2926. assertParamExists('updateAlbumInfo', 'updateAlbumDto', updateAlbumDto)
  2927. const localVarPath = `/album/{albumId}`
  2928. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  2929. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2930. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2931. let baseOptions;
  2932. if (configuration) {
  2933. baseOptions = configuration.baseOptions;
  2934. }
  2935. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  2936. const localVarHeaderParameter = {} as any;
  2937. const localVarQueryParameter = {} as any;
  2938. // authentication bearer required
  2939. // http bearer authentication required
  2940. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2941. localVarHeaderParameter['Content-Type'] = 'application/json';
  2942. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2943. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2944. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2945. localVarRequestOptions.data = serializeDataIfNeeded(updateAlbumDto, localVarRequestOptions, configuration)
  2946. return {
  2947. url: toPathString(localVarUrlObj),
  2948. options: localVarRequestOptions,
  2949. };
  2950. },
  2951. }
  2952. };
  2953. /**
  2954. * AlbumApi - functional programming interface
  2955. * @export
  2956. */
  2957. export const AlbumApiFp = function(configuration?: Configuration) {
  2958. const localVarAxiosParamCreator = AlbumApiAxiosParamCreator(configuration)
  2959. return {
  2960. /**
  2961. *
  2962. * @param {string} albumId
  2963. * @param {AddAssetsDto} addAssetsDto
  2964. * @param {*} [options] Override http request option.
  2965. * @throws {RequiredError}
  2966. */
  2967. async addAssetsToAlbum(albumId: string, addAssetsDto: AddAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddAssetsResponseDto>> {
  2968. const localVarAxiosArgs = await localVarAxiosParamCreator.addAssetsToAlbum(albumId, addAssetsDto, options);
  2969. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2970. },
  2971. /**
  2972. *
  2973. * @param {string} albumId
  2974. * @param {AddUsersDto} addUsersDto
  2975. * @param {*} [options] Override http request option.
  2976. * @throws {RequiredError}
  2977. */
  2978. async addUsersToAlbum(albumId: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  2979. const localVarAxiosArgs = await localVarAxiosParamCreator.addUsersToAlbum(albumId, addUsersDto, options);
  2980. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2981. },
  2982. /**
  2983. *
  2984. * @param {CreateAlbumDto} createAlbumDto
  2985. * @param {*} [options] Override http request option.
  2986. * @throws {RequiredError}
  2987. */
  2988. async createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  2989. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbum(createAlbumDto, options);
  2990. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2991. },
  2992. /**
  2993. *
  2994. * @param {CreateAlbumShareLinkDto} createAlbumShareLinkDto
  2995. * @param {*} [options] Override http request option.
  2996. * @throws {RequiredError}
  2997. */
  2998. async createAlbumSharedLink(createAlbumShareLinkDto: CreateAlbumShareLinkDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  2999. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbumSharedLink(createAlbumShareLinkDto, options);
  3000. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3001. },
  3002. /**
  3003. *
  3004. * @param {string} albumId
  3005. * @param {*} [options] Override http request option.
  3006. * @throws {RequiredError}
  3007. */
  3008. async deleteAlbum(albumId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  3009. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlbum(albumId, options);
  3010. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3011. },
  3012. /**
  3013. *
  3014. * @param {string} albumId
  3015. * @param {number} [skip]
  3016. * @param {*} [options] Override http request option.
  3017. * @throws {RequiredError}
  3018. */
  3019. async downloadArchive(albumId: string, skip?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  3020. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadArchive(albumId, skip, options);
  3021. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3022. },
  3023. /**
  3024. *
  3025. * @param {*} [options] Override http request option.
  3026. * @throws {RequiredError}
  3027. */
  3028. async getAlbumCountByUserId(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumCountResponseDto>> {
  3029. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumCountByUserId(options);
  3030. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3031. },
  3032. /**
  3033. *
  3034. * @param {string} albumId
  3035. * @param {*} [options] Override http request option.
  3036. * @throws {RequiredError}
  3037. */
  3038. async getAlbumInfo(albumId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  3039. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(albumId, options);
  3040. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3041. },
  3042. /**
  3043. *
  3044. * @param {boolean} [shared]
  3045. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  3046. * @param {*} [options] Override http request option.
  3047. * @throws {RequiredError}
  3048. */
  3049. async getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AlbumResponseDto>>> {
  3050. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAlbums(shared, assetId, options);
  3051. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3052. },
  3053. /**
  3054. *
  3055. * @param {string} albumId
  3056. * @param {RemoveAssetsDto} removeAssetsDto
  3057. * @param {*} [options] Override http request option.
  3058. * @throws {RequiredError}
  3059. */
  3060. async removeAssetFromAlbum(albumId: string, removeAssetsDto: RemoveAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  3061. const localVarAxiosArgs = await localVarAxiosParamCreator.removeAssetFromAlbum(albumId, removeAssetsDto, options);
  3062. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3063. },
  3064. /**
  3065. *
  3066. * @param {string} albumId
  3067. * @param {string} userId
  3068. * @param {*} [options] Override http request option.
  3069. * @throws {RequiredError}
  3070. */
  3071. async removeUserFromAlbum(albumId: string, userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  3072. const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromAlbum(albumId, userId, options);
  3073. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3074. },
  3075. /**
  3076. *
  3077. * @param {string} albumId
  3078. * @param {UpdateAlbumDto} updateAlbumDto
  3079. * @param {*} [options] Override http request option.
  3080. * @throws {RequiredError}
  3081. */
  3082. async updateAlbumInfo(albumId: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  3083. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAlbumInfo(albumId, updateAlbumDto, options);
  3084. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3085. },
  3086. }
  3087. };
  3088. /**
  3089. * AlbumApi - factory interface
  3090. * @export
  3091. */
  3092. export const AlbumApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  3093. const localVarFp = AlbumApiFp(configuration)
  3094. return {
  3095. /**
  3096. *
  3097. * @param {string} albumId
  3098. * @param {AddAssetsDto} addAssetsDto
  3099. * @param {*} [options] Override http request option.
  3100. * @throws {RequiredError}
  3101. */
  3102. addAssetsToAlbum(albumId: string, addAssetsDto: AddAssetsDto, options?: any): AxiosPromise<AddAssetsResponseDto> {
  3103. return localVarFp.addAssetsToAlbum(albumId, addAssetsDto, options).then((request) => request(axios, basePath));
  3104. },
  3105. /**
  3106. *
  3107. * @param {string} albumId
  3108. * @param {AddUsersDto} addUsersDto
  3109. * @param {*} [options] Override http request option.
  3110. * @throws {RequiredError}
  3111. */
  3112. addUsersToAlbum(albumId: string, addUsersDto: AddUsersDto, options?: any): AxiosPromise<AlbumResponseDto> {
  3113. return localVarFp.addUsersToAlbum(albumId, addUsersDto, options).then((request) => request(axios, basePath));
  3114. },
  3115. /**
  3116. *
  3117. * @param {CreateAlbumDto} createAlbumDto
  3118. * @param {*} [options] Override http request option.
  3119. * @throws {RequiredError}
  3120. */
  3121. createAlbum(createAlbumDto: CreateAlbumDto, options?: any): AxiosPromise<AlbumResponseDto> {
  3122. return localVarFp.createAlbum(createAlbumDto, options).then((request) => request(axios, basePath));
  3123. },
  3124. /**
  3125. *
  3126. * @param {CreateAlbumShareLinkDto} createAlbumShareLinkDto
  3127. * @param {*} [options] Override http request option.
  3128. * @throws {RequiredError}
  3129. */
  3130. createAlbumSharedLink(createAlbumShareLinkDto: CreateAlbumShareLinkDto, options?: any): AxiosPromise<SharedLinkResponseDto> {
  3131. return localVarFp.createAlbumSharedLink(createAlbumShareLinkDto, options).then((request) => request(axios, basePath));
  3132. },
  3133. /**
  3134. *
  3135. * @param {string} albumId
  3136. * @param {*} [options] Override http request option.
  3137. * @throws {RequiredError}
  3138. */
  3139. deleteAlbum(albumId: string, options?: any): AxiosPromise<void> {
  3140. return localVarFp.deleteAlbum(albumId, options).then((request) => request(axios, basePath));
  3141. },
  3142. /**
  3143. *
  3144. * @param {string} albumId
  3145. * @param {number} [skip]
  3146. * @param {*} [options] Override http request option.
  3147. * @throws {RequiredError}
  3148. */
  3149. downloadArchive(albumId: string, skip?: number, options?: any): AxiosPromise<object> {
  3150. return localVarFp.downloadArchive(albumId, skip, options).then((request) => request(axios, basePath));
  3151. },
  3152. /**
  3153. *
  3154. * @param {*} [options] Override http request option.
  3155. * @throws {RequiredError}
  3156. */
  3157. getAlbumCountByUserId(options?: any): AxiosPromise<AlbumCountResponseDto> {
  3158. return localVarFp.getAlbumCountByUserId(options).then((request) => request(axios, basePath));
  3159. },
  3160. /**
  3161. *
  3162. * @param {string} albumId
  3163. * @param {*} [options] Override http request option.
  3164. * @throws {RequiredError}
  3165. */
  3166. getAlbumInfo(albumId: string, options?: any): AxiosPromise<AlbumResponseDto> {
  3167. return localVarFp.getAlbumInfo(albumId, options).then((request) => request(axios, basePath));
  3168. },
  3169. /**
  3170. *
  3171. * @param {boolean} [shared]
  3172. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  3173. * @param {*} [options] Override http request option.
  3174. * @throws {RequiredError}
  3175. */
  3176. getAllAlbums(shared?: boolean, assetId?: string, options?: any): AxiosPromise<Array<AlbumResponseDto>> {
  3177. return localVarFp.getAllAlbums(shared, assetId, options).then((request) => request(axios, basePath));
  3178. },
  3179. /**
  3180. *
  3181. * @param {string} albumId
  3182. * @param {RemoveAssetsDto} removeAssetsDto
  3183. * @param {*} [options] Override http request option.
  3184. * @throws {RequiredError}
  3185. */
  3186. removeAssetFromAlbum(albumId: string, removeAssetsDto: RemoveAssetsDto, options?: any): AxiosPromise<AlbumResponseDto> {
  3187. return localVarFp.removeAssetFromAlbum(albumId, removeAssetsDto, options).then((request) => request(axios, basePath));
  3188. },
  3189. /**
  3190. *
  3191. * @param {string} albumId
  3192. * @param {string} userId
  3193. * @param {*} [options] Override http request option.
  3194. * @throws {RequiredError}
  3195. */
  3196. removeUserFromAlbum(albumId: string, userId: string, options?: any): AxiosPromise<void> {
  3197. return localVarFp.removeUserFromAlbum(albumId, userId, options).then((request) => request(axios, basePath));
  3198. },
  3199. /**
  3200. *
  3201. * @param {string} albumId
  3202. * @param {UpdateAlbumDto} updateAlbumDto
  3203. * @param {*} [options] Override http request option.
  3204. * @throws {RequiredError}
  3205. */
  3206. updateAlbumInfo(albumId: string, updateAlbumDto: UpdateAlbumDto, options?: any): AxiosPromise<AlbumResponseDto> {
  3207. return localVarFp.updateAlbumInfo(albumId, updateAlbumDto, options).then((request) => request(axios, basePath));
  3208. },
  3209. };
  3210. };
  3211. /**
  3212. * AlbumApi - object-oriented interface
  3213. * @export
  3214. * @class AlbumApi
  3215. * @extends {BaseAPI}
  3216. */
  3217. export class AlbumApi extends BaseAPI {
  3218. /**
  3219. *
  3220. * @param {string} albumId
  3221. * @param {AddAssetsDto} addAssetsDto
  3222. * @param {*} [options] Override http request option.
  3223. * @throws {RequiredError}
  3224. * @memberof AlbumApi
  3225. */
  3226. public addAssetsToAlbum(albumId: string, addAssetsDto: AddAssetsDto, options?: AxiosRequestConfig) {
  3227. return AlbumApiFp(this.configuration).addAssetsToAlbum(albumId, addAssetsDto, options).then((request) => request(this.axios, this.basePath));
  3228. }
  3229. /**
  3230. *
  3231. * @param {string} albumId
  3232. * @param {AddUsersDto} addUsersDto
  3233. * @param {*} [options] Override http request option.
  3234. * @throws {RequiredError}
  3235. * @memberof AlbumApi
  3236. */
  3237. public addUsersToAlbum(albumId: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig) {
  3238. return AlbumApiFp(this.configuration).addUsersToAlbum(albumId, addUsersDto, options).then((request) => request(this.axios, this.basePath));
  3239. }
  3240. /**
  3241. *
  3242. * @param {CreateAlbumDto} createAlbumDto
  3243. * @param {*} [options] Override http request option.
  3244. * @throws {RequiredError}
  3245. * @memberof AlbumApi
  3246. */
  3247. public createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig) {
  3248. return AlbumApiFp(this.configuration).createAlbum(createAlbumDto, options).then((request) => request(this.axios, this.basePath));
  3249. }
  3250. /**
  3251. *
  3252. * @param {CreateAlbumShareLinkDto} createAlbumShareLinkDto
  3253. * @param {*} [options] Override http request option.
  3254. * @throws {RequiredError}
  3255. * @memberof AlbumApi
  3256. */
  3257. public createAlbumSharedLink(createAlbumShareLinkDto: CreateAlbumShareLinkDto, options?: AxiosRequestConfig) {
  3258. return AlbumApiFp(this.configuration).createAlbumSharedLink(createAlbumShareLinkDto, options).then((request) => request(this.axios, this.basePath));
  3259. }
  3260. /**
  3261. *
  3262. * @param {string} albumId
  3263. * @param {*} [options] Override http request option.
  3264. * @throws {RequiredError}
  3265. * @memberof AlbumApi
  3266. */
  3267. public deleteAlbum(albumId: string, options?: AxiosRequestConfig) {
  3268. return AlbumApiFp(this.configuration).deleteAlbum(albumId, options).then((request) => request(this.axios, this.basePath));
  3269. }
  3270. /**
  3271. *
  3272. * @param {string} albumId
  3273. * @param {number} [skip]
  3274. * @param {*} [options] Override http request option.
  3275. * @throws {RequiredError}
  3276. * @memberof AlbumApi
  3277. */
  3278. public downloadArchive(albumId: string, skip?: number, options?: AxiosRequestConfig) {
  3279. return AlbumApiFp(this.configuration).downloadArchive(albumId, skip, options).then((request) => request(this.axios, this.basePath));
  3280. }
  3281. /**
  3282. *
  3283. * @param {*} [options] Override http request option.
  3284. * @throws {RequiredError}
  3285. * @memberof AlbumApi
  3286. */
  3287. public getAlbumCountByUserId(options?: AxiosRequestConfig) {
  3288. return AlbumApiFp(this.configuration).getAlbumCountByUserId(options).then((request) => request(this.axios, this.basePath));
  3289. }
  3290. /**
  3291. *
  3292. * @param {string} albumId
  3293. * @param {*} [options] Override http request option.
  3294. * @throws {RequiredError}
  3295. * @memberof AlbumApi
  3296. */
  3297. public getAlbumInfo(albumId: string, options?: AxiosRequestConfig) {
  3298. return AlbumApiFp(this.configuration).getAlbumInfo(albumId, options).then((request) => request(this.axios, this.basePath));
  3299. }
  3300. /**
  3301. *
  3302. * @param {boolean} [shared]
  3303. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  3304. * @param {*} [options] Override http request option.
  3305. * @throws {RequiredError}
  3306. * @memberof AlbumApi
  3307. */
  3308. public getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig) {
  3309. return AlbumApiFp(this.configuration).getAllAlbums(shared, assetId, options).then((request) => request(this.axios, this.basePath));
  3310. }
  3311. /**
  3312. *
  3313. * @param {string} albumId
  3314. * @param {RemoveAssetsDto} removeAssetsDto
  3315. * @param {*} [options] Override http request option.
  3316. * @throws {RequiredError}
  3317. * @memberof AlbumApi
  3318. */
  3319. public removeAssetFromAlbum(albumId: string, removeAssetsDto: RemoveAssetsDto, options?: AxiosRequestConfig) {
  3320. return AlbumApiFp(this.configuration).removeAssetFromAlbum(albumId, removeAssetsDto, options).then((request) => request(this.axios, this.basePath));
  3321. }
  3322. /**
  3323. *
  3324. * @param {string} albumId
  3325. * @param {string} userId
  3326. * @param {*} [options] Override http request option.
  3327. * @throws {RequiredError}
  3328. * @memberof AlbumApi
  3329. */
  3330. public removeUserFromAlbum(albumId: string, userId: string, options?: AxiosRequestConfig) {
  3331. return AlbumApiFp(this.configuration).removeUserFromAlbum(albumId, userId, options).then((request) => request(this.axios, this.basePath));
  3332. }
  3333. /**
  3334. *
  3335. * @param {string} albumId
  3336. * @param {UpdateAlbumDto} updateAlbumDto
  3337. * @param {*} [options] Override http request option.
  3338. * @throws {RequiredError}
  3339. * @memberof AlbumApi
  3340. */
  3341. public updateAlbumInfo(albumId: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig) {
  3342. return AlbumApiFp(this.configuration).updateAlbumInfo(albumId, updateAlbumDto, options).then((request) => request(this.axios, this.basePath));
  3343. }
  3344. }
  3345. /**
  3346. * AssetApi - axios parameter creator
  3347. * @export
  3348. */
  3349. export const AssetApiAxiosParamCreator = function (configuration?: Configuration) {
  3350. return {
  3351. /**
  3352. * Check duplicated asset before uploading - for Web upload used
  3353. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  3354. * @param {*} [options] Override http request option.
  3355. * @throws {RequiredError}
  3356. */
  3357. checkDuplicateAsset: async (checkDuplicateAssetDto: CheckDuplicateAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3358. // verify required parameter 'checkDuplicateAssetDto' is not null or undefined
  3359. assertParamExists('checkDuplicateAsset', 'checkDuplicateAssetDto', checkDuplicateAssetDto)
  3360. const localVarPath = `/asset/check`;
  3361. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3362. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3363. let baseOptions;
  3364. if (configuration) {
  3365. baseOptions = configuration.baseOptions;
  3366. }
  3367. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3368. const localVarHeaderParameter = {} as any;
  3369. const localVarQueryParameter = {} as any;
  3370. // authentication bearer required
  3371. // http bearer authentication required
  3372. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3373. localVarHeaderParameter['Content-Type'] = 'application/json';
  3374. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3375. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3376. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3377. localVarRequestOptions.data = serializeDataIfNeeded(checkDuplicateAssetDto, localVarRequestOptions, configuration)
  3378. return {
  3379. url: toPathString(localVarUrlObj),
  3380. options: localVarRequestOptions,
  3381. };
  3382. },
  3383. /**
  3384. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  3385. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  3386. * @param {*} [options] Override http request option.
  3387. * @throws {RequiredError}
  3388. */
  3389. checkExistingAssets: async (checkExistingAssetsDto: CheckExistingAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3390. // verify required parameter 'checkExistingAssetsDto' is not null or undefined
  3391. assertParamExists('checkExistingAssets', 'checkExistingAssetsDto', checkExistingAssetsDto)
  3392. const localVarPath = `/asset/exist`;
  3393. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3394. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3395. let baseOptions;
  3396. if (configuration) {
  3397. baseOptions = configuration.baseOptions;
  3398. }
  3399. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3400. const localVarHeaderParameter = {} as any;
  3401. const localVarQueryParameter = {} as any;
  3402. // authentication bearer required
  3403. // http bearer authentication required
  3404. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3405. localVarHeaderParameter['Content-Type'] = 'application/json';
  3406. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3407. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3408. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3409. localVarRequestOptions.data = serializeDataIfNeeded(checkExistingAssetsDto, localVarRequestOptions, configuration)
  3410. return {
  3411. url: toPathString(localVarUrlObj),
  3412. options: localVarRequestOptions,
  3413. };
  3414. },
  3415. /**
  3416. *
  3417. * @param {DeleteAssetDto} deleteAssetDto
  3418. * @param {*} [options] Override http request option.
  3419. * @throws {RequiredError}
  3420. */
  3421. deleteAsset: async (deleteAssetDto: DeleteAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3422. // verify required parameter 'deleteAssetDto' is not null or undefined
  3423. assertParamExists('deleteAsset', 'deleteAssetDto', deleteAssetDto)
  3424. const localVarPath = `/asset`;
  3425. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3426. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3427. let baseOptions;
  3428. if (configuration) {
  3429. baseOptions = configuration.baseOptions;
  3430. }
  3431. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  3432. const localVarHeaderParameter = {} as any;
  3433. const localVarQueryParameter = {} as any;
  3434. // authentication bearer required
  3435. // http bearer authentication required
  3436. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3437. localVarHeaderParameter['Content-Type'] = 'application/json';
  3438. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3439. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3440. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3441. localVarRequestOptions.data = serializeDataIfNeeded(deleteAssetDto, localVarRequestOptions, configuration)
  3442. return {
  3443. url: toPathString(localVarUrlObj),
  3444. options: localVarRequestOptions,
  3445. };
  3446. },
  3447. /**
  3448. *
  3449. * @param {string} assetId
  3450. * @param {boolean} [isThumb]
  3451. * @param {boolean} [isWeb]
  3452. * @param {*} [options] Override http request option.
  3453. * @throws {RequiredError}
  3454. */
  3455. downloadFile: async (assetId: string, isThumb?: boolean, isWeb?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3456. // verify required parameter 'assetId' is not null or undefined
  3457. assertParamExists('downloadFile', 'assetId', assetId)
  3458. const localVarPath = `/asset/download/{assetId}`
  3459. .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
  3460. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3461. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3462. let baseOptions;
  3463. if (configuration) {
  3464. baseOptions = configuration.baseOptions;
  3465. }
  3466. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3467. const localVarHeaderParameter = {} as any;
  3468. const localVarQueryParameter = {} as any;
  3469. // authentication bearer required
  3470. // http bearer authentication required
  3471. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3472. if (isThumb !== undefined) {
  3473. localVarQueryParameter['isThumb'] = isThumb;
  3474. }
  3475. if (isWeb !== undefined) {
  3476. localVarQueryParameter['isWeb'] = isWeb;
  3477. }
  3478. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3479. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3480. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3481. return {
  3482. url: toPathString(localVarUrlObj),
  3483. options: localVarRequestOptions,
  3484. };
  3485. },
  3486. /**
  3487. *
  3488. * @param {DownloadFilesDto} downloadFilesDto
  3489. * @param {*} [options] Override http request option.
  3490. * @throws {RequiredError}
  3491. */
  3492. downloadFiles: async (downloadFilesDto: DownloadFilesDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3493. // verify required parameter 'downloadFilesDto' is not null or undefined
  3494. assertParamExists('downloadFiles', 'downloadFilesDto', downloadFilesDto)
  3495. const localVarPath = `/asset/download-files`;
  3496. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3497. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3498. let baseOptions;
  3499. if (configuration) {
  3500. baseOptions = configuration.baseOptions;
  3501. }
  3502. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3503. const localVarHeaderParameter = {} as any;
  3504. const localVarQueryParameter = {} as any;
  3505. // authentication bearer required
  3506. // http bearer authentication required
  3507. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3508. localVarHeaderParameter['Content-Type'] = 'application/json';
  3509. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3510. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3511. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3512. localVarRequestOptions.data = serializeDataIfNeeded(downloadFilesDto, localVarRequestOptions, configuration)
  3513. return {
  3514. url: toPathString(localVarUrlObj),
  3515. options: localVarRequestOptions,
  3516. };
  3517. },
  3518. /**
  3519. *
  3520. * @param {number} [skip]
  3521. * @param {*} [options] Override http request option.
  3522. * @throws {RequiredError}
  3523. */
  3524. downloadLibrary: async (skip?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3525. const localVarPath = `/asset/download-library`;
  3526. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3527. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3528. let baseOptions;
  3529. if (configuration) {
  3530. baseOptions = configuration.baseOptions;
  3531. }
  3532. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3533. const localVarHeaderParameter = {} as any;
  3534. const localVarQueryParameter = {} as any;
  3535. // authentication bearer required
  3536. // http bearer authentication required
  3537. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3538. if (skip !== undefined) {
  3539. localVarQueryParameter['skip'] = skip;
  3540. }
  3541. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3542. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3543. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3544. return {
  3545. url: toPathString(localVarUrlObj),
  3546. options: localVarRequestOptions,
  3547. };
  3548. },
  3549. /**
  3550. * Get all AssetEntity belong to the user
  3551. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  3552. * @param {*} [options] Override http request option.
  3553. * @throws {RequiredError}
  3554. */
  3555. getAllAssets: async (ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3556. const localVarPath = `/asset`;
  3557. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3558. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3559. let baseOptions;
  3560. if (configuration) {
  3561. baseOptions = configuration.baseOptions;
  3562. }
  3563. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3564. const localVarHeaderParameter = {} as any;
  3565. const localVarQueryParameter = {} as any;
  3566. // authentication bearer required
  3567. // http bearer authentication required
  3568. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3569. if (ifNoneMatch !== undefined && ifNoneMatch !== null) {
  3570. localVarHeaderParameter['if-none-match'] = String(ifNoneMatch);
  3571. }
  3572. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3573. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3574. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3575. return {
  3576. url: toPathString(localVarUrlObj),
  3577. options: localVarRequestOptions,
  3578. };
  3579. },
  3580. /**
  3581. * Get a single asset\'s information
  3582. * @param {string} assetId
  3583. * @param {*} [options] Override http request option.
  3584. * @throws {RequiredError}
  3585. */
  3586. getAssetById: async (assetId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3587. // verify required parameter 'assetId' is not null or undefined
  3588. assertParamExists('getAssetById', 'assetId', assetId)
  3589. const localVarPath = `/asset/assetById/{assetId}`
  3590. .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
  3591. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3592. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3593. let baseOptions;
  3594. if (configuration) {
  3595. baseOptions = configuration.baseOptions;
  3596. }
  3597. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3598. const localVarHeaderParameter = {} as any;
  3599. const localVarQueryParameter = {} as any;
  3600. // authentication bearer required
  3601. // http bearer authentication required
  3602. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3603. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3604. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3605. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3606. return {
  3607. url: toPathString(localVarUrlObj),
  3608. options: localVarRequestOptions,
  3609. };
  3610. },
  3611. /**
  3612. *
  3613. * @param {GetAssetByTimeBucketDto} getAssetByTimeBucketDto
  3614. * @param {*} [options] Override http request option.
  3615. * @throws {RequiredError}
  3616. */
  3617. getAssetByTimeBucket: async (getAssetByTimeBucketDto: GetAssetByTimeBucketDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3618. // verify required parameter 'getAssetByTimeBucketDto' is not null or undefined
  3619. assertParamExists('getAssetByTimeBucket', 'getAssetByTimeBucketDto', getAssetByTimeBucketDto)
  3620. const localVarPath = `/asset/time-bucket`;
  3621. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3622. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3623. let baseOptions;
  3624. if (configuration) {
  3625. baseOptions = configuration.baseOptions;
  3626. }
  3627. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3628. const localVarHeaderParameter = {} as any;
  3629. const localVarQueryParameter = {} as any;
  3630. // authentication bearer required
  3631. // http bearer authentication required
  3632. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3633. localVarHeaderParameter['Content-Type'] = 'application/json';
  3634. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3635. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3636. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3637. localVarRequestOptions.data = serializeDataIfNeeded(getAssetByTimeBucketDto, localVarRequestOptions, configuration)
  3638. return {
  3639. url: toPathString(localVarUrlObj),
  3640. options: localVarRequestOptions,
  3641. };
  3642. },
  3643. /**
  3644. *
  3645. * @param {GetAssetCountByTimeBucketDto} getAssetCountByTimeBucketDto
  3646. * @param {*} [options] Override http request option.
  3647. * @throws {RequiredError}
  3648. */
  3649. getAssetCountByTimeBucket: async (getAssetCountByTimeBucketDto: GetAssetCountByTimeBucketDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3650. // verify required parameter 'getAssetCountByTimeBucketDto' is not null or undefined
  3651. assertParamExists('getAssetCountByTimeBucket', 'getAssetCountByTimeBucketDto', getAssetCountByTimeBucketDto)
  3652. const localVarPath = `/asset/count-by-time-bucket`;
  3653. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3654. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3655. let baseOptions;
  3656. if (configuration) {
  3657. baseOptions = configuration.baseOptions;
  3658. }
  3659. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3660. const localVarHeaderParameter = {} as any;
  3661. const localVarQueryParameter = {} as any;
  3662. // authentication bearer required
  3663. // http bearer authentication required
  3664. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3665. localVarHeaderParameter['Content-Type'] = 'application/json';
  3666. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3667. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3668. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3669. localVarRequestOptions.data = serializeDataIfNeeded(getAssetCountByTimeBucketDto, localVarRequestOptions, configuration)
  3670. return {
  3671. url: toPathString(localVarUrlObj),
  3672. options: localVarRequestOptions,
  3673. };
  3674. },
  3675. /**
  3676. *
  3677. * @param {*} [options] Override http request option.
  3678. * @throws {RequiredError}
  3679. */
  3680. getAssetCountByUserId: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3681. const localVarPath = `/asset/count-by-user-id`;
  3682. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3683. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3684. let baseOptions;
  3685. if (configuration) {
  3686. baseOptions = configuration.baseOptions;
  3687. }
  3688. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3689. const localVarHeaderParameter = {} as any;
  3690. const localVarQueryParameter = {} as any;
  3691. // authentication bearer required
  3692. // http bearer authentication required
  3693. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3694. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3695. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3696. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3697. return {
  3698. url: toPathString(localVarUrlObj),
  3699. options: localVarRequestOptions,
  3700. };
  3701. },
  3702. /**
  3703. *
  3704. * @param {*} [options] Override http request option.
  3705. * @throws {RequiredError}
  3706. */
  3707. getAssetSearchTerms: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3708. const localVarPath = `/asset/search-terms`;
  3709. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3710. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3711. let baseOptions;
  3712. if (configuration) {
  3713. baseOptions = configuration.baseOptions;
  3714. }
  3715. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3716. const localVarHeaderParameter = {} as any;
  3717. const localVarQueryParameter = {} as any;
  3718. // authentication bearer required
  3719. // http bearer authentication required
  3720. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3721. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3722. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3723. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3724. return {
  3725. url: toPathString(localVarUrlObj),
  3726. options: localVarRequestOptions,
  3727. };
  3728. },
  3729. /**
  3730. *
  3731. * @param {string} assetId
  3732. * @param {ThumbnailFormat} [format]
  3733. * @param {*} [options] Override http request option.
  3734. * @throws {RequiredError}
  3735. */
  3736. getAssetThumbnail: async (assetId: string, format?: ThumbnailFormat, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3737. // verify required parameter 'assetId' is not null or undefined
  3738. assertParamExists('getAssetThumbnail', 'assetId', assetId)
  3739. const localVarPath = `/asset/thumbnail/{assetId}`
  3740. .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
  3741. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3742. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3743. let baseOptions;
  3744. if (configuration) {
  3745. baseOptions = configuration.baseOptions;
  3746. }
  3747. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3748. const localVarHeaderParameter = {} as any;
  3749. const localVarQueryParameter = {} as any;
  3750. // authentication bearer required
  3751. // http bearer authentication required
  3752. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3753. if (format !== undefined) {
  3754. localVarQueryParameter['format'] = format;
  3755. }
  3756. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3757. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3758. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3759. return {
  3760. url: toPathString(localVarUrlObj),
  3761. options: localVarRequestOptions,
  3762. };
  3763. },
  3764. /**
  3765. *
  3766. * @param {*} [options] Override http request option.
  3767. * @throws {RequiredError}
  3768. */
  3769. getCuratedLocations: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3770. const localVarPath = `/asset/curated-locations`;
  3771. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3772. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3773. let baseOptions;
  3774. if (configuration) {
  3775. baseOptions = configuration.baseOptions;
  3776. }
  3777. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3778. const localVarHeaderParameter = {} as any;
  3779. const localVarQueryParameter = {} as any;
  3780. // authentication bearer required
  3781. // http bearer authentication required
  3782. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3783. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3784. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3785. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3786. return {
  3787. url: toPathString(localVarUrlObj),
  3788. options: localVarRequestOptions,
  3789. };
  3790. },
  3791. /**
  3792. *
  3793. * @param {*} [options] Override http request option.
  3794. * @throws {RequiredError}
  3795. */
  3796. getCuratedObjects: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3797. const localVarPath = `/asset/curated-objects`;
  3798. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3799. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3800. let baseOptions;
  3801. if (configuration) {
  3802. baseOptions = configuration.baseOptions;
  3803. }
  3804. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3805. const localVarHeaderParameter = {} as any;
  3806. const localVarQueryParameter = {} as any;
  3807. // authentication bearer required
  3808. // http bearer authentication required
  3809. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3810. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3811. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3812. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3813. return {
  3814. url: toPathString(localVarUrlObj),
  3815. options: localVarRequestOptions,
  3816. };
  3817. },
  3818. /**
  3819. * Get all asset of a device that are in the database, ID only.
  3820. * @param {string} deviceId
  3821. * @param {*} [options] Override http request option.
  3822. * @throws {RequiredError}
  3823. */
  3824. getUserAssetsByDeviceId: async (deviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3825. // verify required parameter 'deviceId' is not null or undefined
  3826. assertParamExists('getUserAssetsByDeviceId', 'deviceId', deviceId)
  3827. const localVarPath = `/asset/{deviceId}`
  3828. .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId)));
  3829. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3830. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3831. let baseOptions;
  3832. if (configuration) {
  3833. baseOptions = configuration.baseOptions;
  3834. }
  3835. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3836. const localVarHeaderParameter = {} as any;
  3837. const localVarQueryParameter = {} as any;
  3838. // authentication bearer required
  3839. // http bearer authentication required
  3840. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3841. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3842. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3843. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3844. return {
  3845. url: toPathString(localVarUrlObj),
  3846. options: localVarRequestOptions,
  3847. };
  3848. },
  3849. /**
  3850. *
  3851. * @param {SearchAssetDto} searchAssetDto
  3852. * @param {*} [options] Override http request option.
  3853. * @throws {RequiredError}
  3854. */
  3855. searchAsset: async (searchAssetDto: SearchAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3856. // verify required parameter 'searchAssetDto' is not null or undefined
  3857. assertParamExists('searchAsset', 'searchAssetDto', searchAssetDto)
  3858. const localVarPath = `/asset/search`;
  3859. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3860. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3861. let baseOptions;
  3862. if (configuration) {
  3863. baseOptions = configuration.baseOptions;
  3864. }
  3865. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3866. const localVarHeaderParameter = {} as any;
  3867. const localVarQueryParameter = {} as any;
  3868. // authentication bearer required
  3869. // http bearer authentication required
  3870. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3871. localVarHeaderParameter['Content-Type'] = 'application/json';
  3872. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3873. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3874. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3875. localVarRequestOptions.data = serializeDataIfNeeded(searchAssetDto, localVarRequestOptions, configuration)
  3876. return {
  3877. url: toPathString(localVarUrlObj),
  3878. options: localVarRequestOptions,
  3879. };
  3880. },
  3881. /**
  3882. *
  3883. * @param {string} assetId
  3884. * @param {boolean} [isThumb]
  3885. * @param {boolean} [isWeb]
  3886. * @param {*} [options] Override http request option.
  3887. * @throws {RequiredError}
  3888. */
  3889. serveFile: async (assetId: string, isThumb?: boolean, isWeb?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3890. // verify required parameter 'assetId' is not null or undefined
  3891. assertParamExists('serveFile', 'assetId', assetId)
  3892. const localVarPath = `/asset/file/{assetId}`
  3893. .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
  3894. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3895. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3896. let baseOptions;
  3897. if (configuration) {
  3898. baseOptions = configuration.baseOptions;
  3899. }
  3900. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  3901. const localVarHeaderParameter = {} as any;
  3902. const localVarQueryParameter = {} as any;
  3903. // authentication bearer required
  3904. // http bearer authentication required
  3905. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3906. if (isThumb !== undefined) {
  3907. localVarQueryParameter['isThumb'] = isThumb;
  3908. }
  3909. if (isWeb !== undefined) {
  3910. localVarQueryParameter['isWeb'] = isWeb;
  3911. }
  3912. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3913. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3914. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3915. return {
  3916. url: toPathString(localVarUrlObj),
  3917. options: localVarRequestOptions,
  3918. };
  3919. },
  3920. /**
  3921. * Update an asset
  3922. * @param {string} assetId
  3923. * @param {UpdateAssetDto} updateAssetDto
  3924. * @param {*} [options] Override http request option.
  3925. * @throws {RequiredError}
  3926. */
  3927. updateAsset: async (assetId: string, updateAssetDto: UpdateAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3928. // verify required parameter 'assetId' is not null or undefined
  3929. assertParamExists('updateAsset', 'assetId', assetId)
  3930. // verify required parameter 'updateAssetDto' is not null or undefined
  3931. assertParamExists('updateAsset', 'updateAssetDto', updateAssetDto)
  3932. const localVarPath = `/asset/{assetId}`
  3933. .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
  3934. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3935. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3936. let baseOptions;
  3937. if (configuration) {
  3938. baseOptions = configuration.baseOptions;
  3939. }
  3940. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  3941. const localVarHeaderParameter = {} as any;
  3942. const localVarQueryParameter = {} as any;
  3943. // authentication bearer required
  3944. // http bearer authentication required
  3945. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3946. localVarHeaderParameter['Content-Type'] = 'application/json';
  3947. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3948. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3949. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3950. localVarRequestOptions.data = serializeDataIfNeeded(updateAssetDto, localVarRequestOptions, configuration)
  3951. return {
  3952. url: toPathString(localVarUrlObj),
  3953. options: localVarRequestOptions,
  3954. };
  3955. },
  3956. /**
  3957. *
  3958. * @param {any} assetData
  3959. * @param {*} [options] Override http request option.
  3960. * @throws {RequiredError}
  3961. */
  3962. uploadFile: async (assetData: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3963. // verify required parameter 'assetData' is not null or undefined
  3964. assertParamExists('uploadFile', 'assetData', assetData)
  3965. const localVarPath = `/asset/upload`;
  3966. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3967. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3968. let baseOptions;
  3969. if (configuration) {
  3970. baseOptions = configuration.baseOptions;
  3971. }
  3972. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3973. const localVarHeaderParameter = {} as any;
  3974. const localVarQueryParameter = {} as any;
  3975. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  3976. // authentication bearer required
  3977. // http bearer authentication required
  3978. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3979. if (assetData !== undefined) {
  3980. localVarFormParams.append('assetData', assetData as any);
  3981. }
  3982. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  3983. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3984. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3985. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3986. localVarRequestOptions.data = localVarFormParams;
  3987. return {
  3988. url: toPathString(localVarUrlObj),
  3989. options: localVarRequestOptions,
  3990. };
  3991. },
  3992. }
  3993. };
  3994. /**
  3995. * AssetApi - functional programming interface
  3996. * @export
  3997. */
  3998. export const AssetApiFp = function(configuration?: Configuration) {
  3999. const localVarAxiosParamCreator = AssetApiAxiosParamCreator(configuration)
  4000. return {
  4001. /**
  4002. * Check duplicated asset before uploading - for Web upload used
  4003. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  4004. * @param {*} [options] Override http request option.
  4005. * @throws {RequiredError}
  4006. */
  4007. async checkDuplicateAsset(checkDuplicateAssetDto: CheckDuplicateAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckDuplicateAssetResponseDto>> {
  4008. const localVarAxiosArgs = await localVarAxiosParamCreator.checkDuplicateAsset(checkDuplicateAssetDto, options);
  4009. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4010. },
  4011. /**
  4012. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  4013. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  4014. * @param {*} [options] Override http request option.
  4015. * @throws {RequiredError}
  4016. */
  4017. async checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckExistingAssetsResponseDto>> {
  4018. const localVarAxiosArgs = await localVarAxiosParamCreator.checkExistingAssets(checkExistingAssetsDto, options);
  4019. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4020. },
  4021. /**
  4022. *
  4023. * @param {DeleteAssetDto} deleteAssetDto
  4024. * @param {*} [options] Override http request option.
  4025. * @throws {RequiredError}
  4026. */
  4027. async deleteAsset(deleteAssetDto: DeleteAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DeleteAssetResponseDto>>> {
  4028. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAsset(deleteAssetDto, options);
  4029. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4030. },
  4031. /**
  4032. *
  4033. * @param {string} assetId
  4034. * @param {boolean} [isThumb]
  4035. * @param {boolean} [isWeb]
  4036. * @param {*} [options] Override http request option.
  4037. * @throws {RequiredError}
  4038. */
  4039. async downloadFile(assetId: string, isThumb?: boolean, isWeb?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  4040. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(assetId, isThumb, isWeb, options);
  4041. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4042. },
  4043. /**
  4044. *
  4045. * @param {DownloadFilesDto} downloadFilesDto
  4046. * @param {*} [options] Override http request option.
  4047. * @throws {RequiredError}
  4048. */
  4049. async downloadFiles(downloadFilesDto: DownloadFilesDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  4050. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFiles(downloadFilesDto, options);
  4051. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4052. },
  4053. /**
  4054. *
  4055. * @param {number} [skip]
  4056. * @param {*} [options] Override http request option.
  4057. * @throws {RequiredError}
  4058. */
  4059. async downloadLibrary(skip?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  4060. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadLibrary(skip, options);
  4061. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4062. },
  4063. /**
  4064. * Get all AssetEntity belong to the user
  4065. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  4066. * @param {*} [options] Override http request option.
  4067. * @throws {RequiredError}
  4068. */
  4069. async getAllAssets(ifNoneMatch?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  4070. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(ifNoneMatch, options);
  4071. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4072. },
  4073. /**
  4074. * Get a single asset\'s information
  4075. * @param {string} assetId
  4076. * @param {*} [options] Override http request option.
  4077. * @throws {RequiredError}
  4078. */
  4079. async getAssetById(assetId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  4080. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetById(assetId, options);
  4081. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4082. },
  4083. /**
  4084. *
  4085. * @param {GetAssetByTimeBucketDto} getAssetByTimeBucketDto
  4086. * @param {*} [options] Override http request option.
  4087. * @throws {RequiredError}
  4088. */
  4089. async getAssetByTimeBucket(getAssetByTimeBucketDto: GetAssetByTimeBucketDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  4090. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetByTimeBucket(getAssetByTimeBucketDto, options);
  4091. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4092. },
  4093. /**
  4094. *
  4095. * @param {GetAssetCountByTimeBucketDto} getAssetCountByTimeBucketDto
  4096. * @param {*} [options] Override http request option.
  4097. * @throws {RequiredError}
  4098. */
  4099. async getAssetCountByTimeBucket(getAssetCountByTimeBucketDto: GetAssetCountByTimeBucketDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetCountByTimeBucketResponseDto>> {
  4100. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetCountByTimeBucket(getAssetCountByTimeBucketDto, options);
  4101. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4102. },
  4103. /**
  4104. *
  4105. * @param {*} [options] Override http request option.
  4106. * @throws {RequiredError}
  4107. */
  4108. async getAssetCountByUserId(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetCountByUserIdResponseDto>> {
  4109. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetCountByUserId(options);
  4110. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4111. },
  4112. /**
  4113. *
  4114. * @param {*} [options] Override http request option.
  4115. * @throws {RequiredError}
  4116. */
  4117. async getAssetSearchTerms(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  4118. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetSearchTerms(options);
  4119. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4120. },
  4121. /**
  4122. *
  4123. * @param {string} assetId
  4124. * @param {ThumbnailFormat} [format]
  4125. * @param {*} [options] Override http request option.
  4126. * @throws {RequiredError}
  4127. */
  4128. async getAssetThumbnail(assetId: string, format?: ThumbnailFormat, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  4129. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetThumbnail(assetId, format, options);
  4130. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4131. },
  4132. /**
  4133. *
  4134. * @param {*} [options] Override http request option.
  4135. * @throws {RequiredError}
  4136. */
  4137. async getCuratedLocations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedLocationsResponseDto>>> {
  4138. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedLocations(options);
  4139. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4140. },
  4141. /**
  4142. *
  4143. * @param {*} [options] Override http request option.
  4144. * @throws {RequiredError}
  4145. */
  4146. async getCuratedObjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedObjectsResponseDto>>> {
  4147. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedObjects(options);
  4148. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4149. },
  4150. /**
  4151. * Get all asset of a device that are in the database, ID only.
  4152. * @param {string} deviceId
  4153. * @param {*} [options] Override http request option.
  4154. * @throws {RequiredError}
  4155. */
  4156. async getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  4157. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAssetsByDeviceId(deviceId, options);
  4158. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4159. },
  4160. /**
  4161. *
  4162. * @param {SearchAssetDto} searchAssetDto
  4163. * @param {*} [options] Override http request option.
  4164. * @throws {RequiredError}
  4165. */
  4166. async searchAsset(searchAssetDto: SearchAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  4167. const localVarAxiosArgs = await localVarAxiosParamCreator.searchAsset(searchAssetDto, options);
  4168. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4169. },
  4170. /**
  4171. *
  4172. * @param {string} assetId
  4173. * @param {boolean} [isThumb]
  4174. * @param {boolean} [isWeb]
  4175. * @param {*} [options] Override http request option.
  4176. * @throws {RequiredError}
  4177. */
  4178. async serveFile(assetId: string, isThumb?: boolean, isWeb?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  4179. const localVarAxiosArgs = await localVarAxiosParamCreator.serveFile(assetId, isThumb, isWeb, options);
  4180. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4181. },
  4182. /**
  4183. * Update an asset
  4184. * @param {string} assetId
  4185. * @param {UpdateAssetDto} updateAssetDto
  4186. * @param {*} [options] Override http request option.
  4187. * @throws {RequiredError}
  4188. */
  4189. async updateAsset(assetId: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  4190. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAsset(assetId, updateAssetDto, options);
  4191. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4192. },
  4193. /**
  4194. *
  4195. * @param {any} assetData
  4196. * @param {*} [options] Override http request option.
  4197. * @throws {RequiredError}
  4198. */
  4199. async uploadFile(assetData: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  4200. const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetData, options);
  4201. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4202. },
  4203. }
  4204. };
  4205. /**
  4206. * AssetApi - factory interface
  4207. * @export
  4208. */
  4209. export const AssetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4210. const localVarFp = AssetApiFp(configuration)
  4211. return {
  4212. /**
  4213. * Check duplicated asset before uploading - for Web upload used
  4214. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  4215. * @param {*} [options] Override http request option.
  4216. * @throws {RequiredError}
  4217. */
  4218. checkDuplicateAsset(checkDuplicateAssetDto: CheckDuplicateAssetDto, options?: any): AxiosPromise<CheckDuplicateAssetResponseDto> {
  4219. return localVarFp.checkDuplicateAsset(checkDuplicateAssetDto, options).then((request) => request(axios, basePath));
  4220. },
  4221. /**
  4222. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  4223. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  4224. * @param {*} [options] Override http request option.
  4225. * @throws {RequiredError}
  4226. */
  4227. checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: any): AxiosPromise<CheckExistingAssetsResponseDto> {
  4228. return localVarFp.checkExistingAssets(checkExistingAssetsDto, options).then((request) => request(axios, basePath));
  4229. },
  4230. /**
  4231. *
  4232. * @param {DeleteAssetDto} deleteAssetDto
  4233. * @param {*} [options] Override http request option.
  4234. * @throws {RequiredError}
  4235. */
  4236. deleteAsset(deleteAssetDto: DeleteAssetDto, options?: any): AxiosPromise<Array<DeleteAssetResponseDto>> {
  4237. return localVarFp.deleteAsset(deleteAssetDto, options).then((request) => request(axios, basePath));
  4238. },
  4239. /**
  4240. *
  4241. * @param {string} assetId
  4242. * @param {boolean} [isThumb]
  4243. * @param {boolean} [isWeb]
  4244. * @param {*} [options] Override http request option.
  4245. * @throws {RequiredError}
  4246. */
  4247. downloadFile(assetId: string, isThumb?: boolean, isWeb?: boolean, options?: any): AxiosPromise<object> {
  4248. return localVarFp.downloadFile(assetId, isThumb, isWeb, options).then((request) => request(axios, basePath));
  4249. },
  4250. /**
  4251. *
  4252. * @param {DownloadFilesDto} downloadFilesDto
  4253. * @param {*} [options] Override http request option.
  4254. * @throws {RequiredError}
  4255. */
  4256. downloadFiles(downloadFilesDto: DownloadFilesDto, options?: any): AxiosPromise<object> {
  4257. return localVarFp.downloadFiles(downloadFilesDto, options).then((request) => request(axios, basePath));
  4258. },
  4259. /**
  4260. *
  4261. * @param {number} [skip]
  4262. * @param {*} [options] Override http request option.
  4263. * @throws {RequiredError}
  4264. */
  4265. downloadLibrary(skip?: number, options?: any): AxiosPromise<object> {
  4266. return localVarFp.downloadLibrary(skip, options).then((request) => request(axios, basePath));
  4267. },
  4268. /**
  4269. * Get all AssetEntity belong to the user
  4270. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  4271. * @param {*} [options] Override http request option.
  4272. * @throws {RequiredError}
  4273. */
  4274. getAllAssets(ifNoneMatch?: string, options?: any): AxiosPromise<Array<AssetResponseDto>> {
  4275. return localVarFp.getAllAssets(ifNoneMatch, options).then((request) => request(axios, basePath));
  4276. },
  4277. /**
  4278. * Get a single asset\'s information
  4279. * @param {string} assetId
  4280. * @param {*} [options] Override http request option.
  4281. * @throws {RequiredError}
  4282. */
  4283. getAssetById(assetId: string, options?: any): AxiosPromise<AssetResponseDto> {
  4284. return localVarFp.getAssetById(assetId, options).then((request) => request(axios, basePath));
  4285. },
  4286. /**
  4287. *
  4288. * @param {GetAssetByTimeBucketDto} getAssetByTimeBucketDto
  4289. * @param {*} [options] Override http request option.
  4290. * @throws {RequiredError}
  4291. */
  4292. getAssetByTimeBucket(getAssetByTimeBucketDto: GetAssetByTimeBucketDto, options?: any): AxiosPromise<Array<AssetResponseDto>> {
  4293. return localVarFp.getAssetByTimeBucket(getAssetByTimeBucketDto, options).then((request) => request(axios, basePath));
  4294. },
  4295. /**
  4296. *
  4297. * @param {GetAssetCountByTimeBucketDto} getAssetCountByTimeBucketDto
  4298. * @param {*} [options] Override http request option.
  4299. * @throws {RequiredError}
  4300. */
  4301. getAssetCountByTimeBucket(getAssetCountByTimeBucketDto: GetAssetCountByTimeBucketDto, options?: any): AxiosPromise<AssetCountByTimeBucketResponseDto> {
  4302. return localVarFp.getAssetCountByTimeBucket(getAssetCountByTimeBucketDto, options).then((request) => request(axios, basePath));
  4303. },
  4304. /**
  4305. *
  4306. * @param {*} [options] Override http request option.
  4307. * @throws {RequiredError}
  4308. */
  4309. getAssetCountByUserId(options?: any): AxiosPromise<AssetCountByUserIdResponseDto> {
  4310. return localVarFp.getAssetCountByUserId(options).then((request) => request(axios, basePath));
  4311. },
  4312. /**
  4313. *
  4314. * @param {*} [options] Override http request option.
  4315. * @throws {RequiredError}
  4316. */
  4317. getAssetSearchTerms(options?: any): AxiosPromise<Array<string>> {
  4318. return localVarFp.getAssetSearchTerms(options).then((request) => request(axios, basePath));
  4319. },
  4320. /**
  4321. *
  4322. * @param {string} assetId
  4323. * @param {ThumbnailFormat} [format]
  4324. * @param {*} [options] Override http request option.
  4325. * @throws {RequiredError}
  4326. */
  4327. getAssetThumbnail(assetId: string, format?: ThumbnailFormat, options?: any): AxiosPromise<object> {
  4328. return localVarFp.getAssetThumbnail(assetId, format, options).then((request) => request(axios, basePath));
  4329. },
  4330. /**
  4331. *
  4332. * @param {*} [options] Override http request option.
  4333. * @throws {RequiredError}
  4334. */
  4335. getCuratedLocations(options?: any): AxiosPromise<Array<CuratedLocationsResponseDto>> {
  4336. return localVarFp.getCuratedLocations(options).then((request) => request(axios, basePath));
  4337. },
  4338. /**
  4339. *
  4340. * @param {*} [options] Override http request option.
  4341. * @throws {RequiredError}
  4342. */
  4343. getCuratedObjects(options?: any): AxiosPromise<Array<CuratedObjectsResponseDto>> {
  4344. return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
  4345. },
  4346. /**
  4347. * Get all asset of a device that are in the database, ID only.
  4348. * @param {string} deviceId
  4349. * @param {*} [options] Override http request option.
  4350. * @throws {RequiredError}
  4351. */
  4352. getUserAssetsByDeviceId(deviceId: string, options?: any): AxiosPromise<Array<string>> {
  4353. return localVarFp.getUserAssetsByDeviceId(deviceId, options).then((request) => request(axios, basePath));
  4354. },
  4355. /**
  4356. *
  4357. * @param {SearchAssetDto} searchAssetDto
  4358. * @param {*} [options] Override http request option.
  4359. * @throws {RequiredError}
  4360. */
  4361. searchAsset(searchAssetDto: SearchAssetDto, options?: any): AxiosPromise<Array<AssetResponseDto>> {
  4362. return localVarFp.searchAsset(searchAssetDto, options).then((request) => request(axios, basePath));
  4363. },
  4364. /**
  4365. *
  4366. * @param {string} assetId
  4367. * @param {boolean} [isThumb]
  4368. * @param {boolean} [isWeb]
  4369. * @param {*} [options] Override http request option.
  4370. * @throws {RequiredError}
  4371. */
  4372. serveFile(assetId: string, isThumb?: boolean, isWeb?: boolean, options?: any): AxiosPromise<object> {
  4373. return localVarFp.serveFile(assetId, isThumb, isWeb, options).then((request) => request(axios, basePath));
  4374. },
  4375. /**
  4376. * Update an asset
  4377. * @param {string} assetId
  4378. * @param {UpdateAssetDto} updateAssetDto
  4379. * @param {*} [options] Override http request option.
  4380. * @throws {RequiredError}
  4381. */
  4382. updateAsset(assetId: string, updateAssetDto: UpdateAssetDto, options?: any): AxiosPromise<AssetResponseDto> {
  4383. return localVarFp.updateAsset(assetId, updateAssetDto, options).then((request) => request(axios, basePath));
  4384. },
  4385. /**
  4386. *
  4387. * @param {any} assetData
  4388. * @param {*} [options] Override http request option.
  4389. * @throws {RequiredError}
  4390. */
  4391. uploadFile(assetData: any, options?: any): AxiosPromise<AssetFileUploadResponseDto> {
  4392. return localVarFp.uploadFile(assetData, options).then((request) => request(axios, basePath));
  4393. },
  4394. };
  4395. };
  4396. /**
  4397. * AssetApi - object-oriented interface
  4398. * @export
  4399. * @class AssetApi
  4400. * @extends {BaseAPI}
  4401. */
  4402. export class AssetApi extends BaseAPI {
  4403. /**
  4404. * Check duplicated asset before uploading - for Web upload used
  4405. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  4406. * @param {*} [options] Override http request option.
  4407. * @throws {RequiredError}
  4408. * @memberof AssetApi
  4409. */
  4410. public checkDuplicateAsset(checkDuplicateAssetDto: CheckDuplicateAssetDto, options?: AxiosRequestConfig) {
  4411. return AssetApiFp(this.configuration).checkDuplicateAsset(checkDuplicateAssetDto, options).then((request) => request(this.axios, this.basePath));
  4412. }
  4413. /**
  4414. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  4415. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  4416. * @param {*} [options] Override http request option.
  4417. * @throws {RequiredError}
  4418. * @memberof AssetApi
  4419. */
  4420. public checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig) {
  4421. return AssetApiFp(this.configuration).checkExistingAssets(checkExistingAssetsDto, options).then((request) => request(this.axios, this.basePath));
  4422. }
  4423. /**
  4424. *
  4425. * @param {DeleteAssetDto} deleteAssetDto
  4426. * @param {*} [options] Override http request option.
  4427. * @throws {RequiredError}
  4428. * @memberof AssetApi
  4429. */
  4430. public deleteAsset(deleteAssetDto: DeleteAssetDto, options?: AxiosRequestConfig) {
  4431. return AssetApiFp(this.configuration).deleteAsset(deleteAssetDto, options).then((request) => request(this.axios, this.basePath));
  4432. }
  4433. /**
  4434. *
  4435. * @param {string} assetId
  4436. * @param {boolean} [isThumb]
  4437. * @param {boolean} [isWeb]
  4438. * @param {*} [options] Override http request option.
  4439. * @throws {RequiredError}
  4440. * @memberof AssetApi
  4441. */
  4442. public downloadFile(assetId: string, isThumb?: boolean, isWeb?: boolean, options?: AxiosRequestConfig) {
  4443. return AssetApiFp(this.configuration).downloadFile(assetId, isThumb, isWeb, options).then((request) => request(this.axios, this.basePath));
  4444. }
  4445. /**
  4446. *
  4447. * @param {DownloadFilesDto} downloadFilesDto
  4448. * @param {*} [options] Override http request option.
  4449. * @throws {RequiredError}
  4450. * @memberof AssetApi
  4451. */
  4452. public downloadFiles(downloadFilesDto: DownloadFilesDto, options?: AxiosRequestConfig) {
  4453. return AssetApiFp(this.configuration).downloadFiles(downloadFilesDto, options).then((request) => request(this.axios, this.basePath));
  4454. }
  4455. /**
  4456. *
  4457. * @param {number} [skip]
  4458. * @param {*} [options] Override http request option.
  4459. * @throws {RequiredError}
  4460. * @memberof AssetApi
  4461. */
  4462. public downloadLibrary(skip?: number, options?: AxiosRequestConfig) {
  4463. return AssetApiFp(this.configuration).downloadLibrary(skip, options).then((request) => request(this.axios, this.basePath));
  4464. }
  4465. /**
  4466. * Get all AssetEntity belong to the user
  4467. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  4468. * @param {*} [options] Override http request option.
  4469. * @throws {RequiredError}
  4470. * @memberof AssetApi
  4471. */
  4472. public getAllAssets(ifNoneMatch?: string, options?: AxiosRequestConfig) {
  4473. return AssetApiFp(this.configuration).getAllAssets(ifNoneMatch, options).then((request) => request(this.axios, this.basePath));
  4474. }
  4475. /**
  4476. * Get a single asset\'s information
  4477. * @param {string} assetId
  4478. * @param {*} [options] Override http request option.
  4479. * @throws {RequiredError}
  4480. * @memberof AssetApi
  4481. */
  4482. public getAssetById(assetId: string, options?: AxiosRequestConfig) {
  4483. return AssetApiFp(this.configuration).getAssetById(assetId, options).then((request) => request(this.axios, this.basePath));
  4484. }
  4485. /**
  4486. *
  4487. * @param {GetAssetByTimeBucketDto} getAssetByTimeBucketDto
  4488. * @param {*} [options] Override http request option.
  4489. * @throws {RequiredError}
  4490. * @memberof AssetApi
  4491. */
  4492. public getAssetByTimeBucket(getAssetByTimeBucketDto: GetAssetByTimeBucketDto, options?: AxiosRequestConfig) {
  4493. return AssetApiFp(this.configuration).getAssetByTimeBucket(getAssetByTimeBucketDto, options).then((request) => request(this.axios, this.basePath));
  4494. }
  4495. /**
  4496. *
  4497. * @param {GetAssetCountByTimeBucketDto} getAssetCountByTimeBucketDto
  4498. * @param {*} [options] Override http request option.
  4499. * @throws {RequiredError}
  4500. * @memberof AssetApi
  4501. */
  4502. public getAssetCountByTimeBucket(getAssetCountByTimeBucketDto: GetAssetCountByTimeBucketDto, options?: AxiosRequestConfig) {
  4503. return AssetApiFp(this.configuration).getAssetCountByTimeBucket(getAssetCountByTimeBucketDto, options).then((request) => request(this.axios, this.basePath));
  4504. }
  4505. /**
  4506. *
  4507. * @param {*} [options] Override http request option.
  4508. * @throws {RequiredError}
  4509. * @memberof AssetApi
  4510. */
  4511. public getAssetCountByUserId(options?: AxiosRequestConfig) {
  4512. return AssetApiFp(this.configuration).getAssetCountByUserId(options).then((request) => request(this.axios, this.basePath));
  4513. }
  4514. /**
  4515. *
  4516. * @param {*} [options] Override http request option.
  4517. * @throws {RequiredError}
  4518. * @memberof AssetApi
  4519. */
  4520. public getAssetSearchTerms(options?: AxiosRequestConfig) {
  4521. return AssetApiFp(this.configuration).getAssetSearchTerms(options).then((request) => request(this.axios, this.basePath));
  4522. }
  4523. /**
  4524. *
  4525. * @param {string} assetId
  4526. * @param {ThumbnailFormat} [format]
  4527. * @param {*} [options] Override http request option.
  4528. * @throws {RequiredError}
  4529. * @memberof AssetApi
  4530. */
  4531. public getAssetThumbnail(assetId: string, format?: ThumbnailFormat, options?: AxiosRequestConfig) {
  4532. return AssetApiFp(this.configuration).getAssetThumbnail(assetId, format, options).then((request) => request(this.axios, this.basePath));
  4533. }
  4534. /**
  4535. *
  4536. * @param {*} [options] Override http request option.
  4537. * @throws {RequiredError}
  4538. * @memberof AssetApi
  4539. */
  4540. public getCuratedLocations(options?: AxiosRequestConfig) {
  4541. return AssetApiFp(this.configuration).getCuratedLocations(options).then((request) => request(this.axios, this.basePath));
  4542. }
  4543. /**
  4544. *
  4545. * @param {*} [options] Override http request option.
  4546. * @throws {RequiredError}
  4547. * @memberof AssetApi
  4548. */
  4549. public getCuratedObjects(options?: AxiosRequestConfig) {
  4550. return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
  4551. }
  4552. /**
  4553. * Get all asset of a device that are in the database, ID only.
  4554. * @param {string} deviceId
  4555. * @param {*} [options] Override http request option.
  4556. * @throws {RequiredError}
  4557. * @memberof AssetApi
  4558. */
  4559. public getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig) {
  4560. return AssetApiFp(this.configuration).getUserAssetsByDeviceId(deviceId, options).then((request) => request(this.axios, this.basePath));
  4561. }
  4562. /**
  4563. *
  4564. * @param {SearchAssetDto} searchAssetDto
  4565. * @param {*} [options] Override http request option.
  4566. * @throws {RequiredError}
  4567. * @memberof AssetApi
  4568. */
  4569. public searchAsset(searchAssetDto: SearchAssetDto, options?: AxiosRequestConfig) {
  4570. return AssetApiFp(this.configuration).searchAsset(searchAssetDto, options).then((request) => request(this.axios, this.basePath));
  4571. }
  4572. /**
  4573. *
  4574. * @param {string} assetId
  4575. * @param {boolean} [isThumb]
  4576. * @param {boolean} [isWeb]
  4577. * @param {*} [options] Override http request option.
  4578. * @throws {RequiredError}
  4579. * @memberof AssetApi
  4580. */
  4581. public serveFile(assetId: string, isThumb?: boolean, isWeb?: boolean, options?: AxiosRequestConfig) {
  4582. return AssetApiFp(this.configuration).serveFile(assetId, isThumb, isWeb, options).then((request) => request(this.axios, this.basePath));
  4583. }
  4584. /**
  4585. * Update an asset
  4586. * @param {string} assetId
  4587. * @param {UpdateAssetDto} updateAssetDto
  4588. * @param {*} [options] Override http request option.
  4589. * @throws {RequiredError}
  4590. * @memberof AssetApi
  4591. */
  4592. public updateAsset(assetId: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig) {
  4593. return AssetApiFp(this.configuration).updateAsset(assetId, updateAssetDto, options).then((request) => request(this.axios, this.basePath));
  4594. }
  4595. /**
  4596. *
  4597. * @param {any} assetData
  4598. * @param {*} [options] Override http request option.
  4599. * @throws {RequiredError}
  4600. * @memberof AssetApi
  4601. */
  4602. public uploadFile(assetData: any, options?: AxiosRequestConfig) {
  4603. return AssetApiFp(this.configuration).uploadFile(assetData, options).then((request) => request(this.axios, this.basePath));
  4604. }
  4605. }
  4606. /**
  4607. * AuthenticationApi - axios parameter creator
  4608. * @export
  4609. */
  4610. export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
  4611. return {
  4612. /**
  4613. *
  4614. * @param {SignUpDto} signUpDto
  4615. * @param {*} [options] Override http request option.
  4616. * @throws {RequiredError}
  4617. */
  4618. adminSignUp: async (signUpDto: SignUpDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4619. // verify required parameter 'signUpDto' is not null or undefined
  4620. assertParamExists('adminSignUp', 'signUpDto', signUpDto)
  4621. const localVarPath = `/auth/admin-sign-up`;
  4622. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4623. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4624. let baseOptions;
  4625. if (configuration) {
  4626. baseOptions = configuration.baseOptions;
  4627. }
  4628. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4629. const localVarHeaderParameter = {} as any;
  4630. const localVarQueryParameter = {} as any;
  4631. localVarHeaderParameter['Content-Type'] = 'application/json';
  4632. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4633. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4634. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4635. localVarRequestOptions.data = serializeDataIfNeeded(signUpDto, localVarRequestOptions, configuration)
  4636. return {
  4637. url: toPathString(localVarUrlObj),
  4638. options: localVarRequestOptions,
  4639. };
  4640. },
  4641. /**
  4642. *
  4643. * @param {ChangePasswordDto} changePasswordDto
  4644. * @param {*} [options] Override http request option.
  4645. * @throws {RequiredError}
  4646. */
  4647. changePassword: async (changePasswordDto: ChangePasswordDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4648. // verify required parameter 'changePasswordDto' is not null or undefined
  4649. assertParamExists('changePassword', 'changePasswordDto', changePasswordDto)
  4650. const localVarPath = `/auth/change-password`;
  4651. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4652. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4653. let baseOptions;
  4654. if (configuration) {
  4655. baseOptions = configuration.baseOptions;
  4656. }
  4657. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4658. const localVarHeaderParameter = {} as any;
  4659. const localVarQueryParameter = {} as any;
  4660. // authentication bearer required
  4661. // http bearer authentication required
  4662. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4663. localVarHeaderParameter['Content-Type'] = 'application/json';
  4664. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4665. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4666. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4667. localVarRequestOptions.data = serializeDataIfNeeded(changePasswordDto, localVarRequestOptions, configuration)
  4668. return {
  4669. url: toPathString(localVarUrlObj),
  4670. options: localVarRequestOptions,
  4671. };
  4672. },
  4673. /**
  4674. *
  4675. * @param {LoginCredentialDto} loginCredentialDto
  4676. * @param {*} [options] Override http request option.
  4677. * @throws {RequiredError}
  4678. */
  4679. login: async (loginCredentialDto: LoginCredentialDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4680. // verify required parameter 'loginCredentialDto' is not null or undefined
  4681. assertParamExists('login', 'loginCredentialDto', loginCredentialDto)
  4682. const localVarPath = `/auth/login`;
  4683. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4684. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4685. let baseOptions;
  4686. if (configuration) {
  4687. baseOptions = configuration.baseOptions;
  4688. }
  4689. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4690. const localVarHeaderParameter = {} as any;
  4691. const localVarQueryParameter = {} as any;
  4692. localVarHeaderParameter['Content-Type'] = 'application/json';
  4693. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4694. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4695. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4696. localVarRequestOptions.data = serializeDataIfNeeded(loginCredentialDto, localVarRequestOptions, configuration)
  4697. return {
  4698. url: toPathString(localVarUrlObj),
  4699. options: localVarRequestOptions,
  4700. };
  4701. },
  4702. /**
  4703. *
  4704. * @param {*} [options] Override http request option.
  4705. * @throws {RequiredError}
  4706. */
  4707. logout: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4708. const localVarPath = `/auth/logout`;
  4709. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4710. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4711. let baseOptions;
  4712. if (configuration) {
  4713. baseOptions = configuration.baseOptions;
  4714. }
  4715. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4716. const localVarHeaderParameter = {} as any;
  4717. const localVarQueryParameter = {} as any;
  4718. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4719. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4720. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4721. return {
  4722. url: toPathString(localVarUrlObj),
  4723. options: localVarRequestOptions,
  4724. };
  4725. },
  4726. /**
  4727. *
  4728. * @param {*} [options] Override http request option.
  4729. * @throws {RequiredError}
  4730. */
  4731. validateAccessToken: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4732. const localVarPath = `/auth/validateToken`;
  4733. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4734. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4735. let baseOptions;
  4736. if (configuration) {
  4737. baseOptions = configuration.baseOptions;
  4738. }
  4739. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4740. const localVarHeaderParameter = {} as any;
  4741. const localVarQueryParameter = {} as any;
  4742. // authentication bearer required
  4743. // http bearer authentication required
  4744. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4745. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4746. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4747. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4748. return {
  4749. url: toPathString(localVarUrlObj),
  4750. options: localVarRequestOptions,
  4751. };
  4752. },
  4753. }
  4754. };
  4755. /**
  4756. * AuthenticationApi - functional programming interface
  4757. * @export
  4758. */
  4759. export const AuthenticationApiFp = function(configuration?: Configuration) {
  4760. const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
  4761. return {
  4762. /**
  4763. *
  4764. * @param {SignUpDto} signUpDto
  4765. * @param {*} [options] Override http request option.
  4766. * @throws {RequiredError}
  4767. */
  4768. async adminSignUp(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminSignupResponseDto>> {
  4769. const localVarAxiosArgs = await localVarAxiosParamCreator.adminSignUp(signUpDto, options);
  4770. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4771. },
  4772. /**
  4773. *
  4774. * @param {ChangePasswordDto} changePasswordDto
  4775. * @param {*} [options] Override http request option.
  4776. * @throws {RequiredError}
  4777. */
  4778. async changePassword(changePasswordDto: ChangePasswordDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  4779. const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(changePasswordDto, options);
  4780. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4781. },
  4782. /**
  4783. *
  4784. * @param {LoginCredentialDto} loginCredentialDto
  4785. * @param {*} [options] Override http request option.
  4786. * @throws {RequiredError}
  4787. */
  4788. async login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  4789. const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginCredentialDto, options);
  4790. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4791. },
  4792. /**
  4793. *
  4794. * @param {*} [options] Override http request option.
  4795. * @throws {RequiredError}
  4796. */
  4797. async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogoutResponseDto>> {
  4798. const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options);
  4799. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4800. },
  4801. /**
  4802. *
  4803. * @param {*} [options] Override http request option.
  4804. * @throws {RequiredError}
  4805. */
  4806. async validateAccessToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccessTokenResponseDto>> {
  4807. const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccessToken(options);
  4808. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4809. },
  4810. }
  4811. };
  4812. /**
  4813. * AuthenticationApi - factory interface
  4814. * @export
  4815. */
  4816. export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4817. const localVarFp = AuthenticationApiFp(configuration)
  4818. return {
  4819. /**
  4820. *
  4821. * @param {SignUpDto} signUpDto
  4822. * @param {*} [options] Override http request option.
  4823. * @throws {RequiredError}
  4824. */
  4825. adminSignUp(signUpDto: SignUpDto, options?: any): AxiosPromise<AdminSignupResponseDto> {
  4826. return localVarFp.adminSignUp(signUpDto, options).then((request) => request(axios, basePath));
  4827. },
  4828. /**
  4829. *
  4830. * @param {ChangePasswordDto} changePasswordDto
  4831. * @param {*} [options] Override http request option.
  4832. * @throws {RequiredError}
  4833. */
  4834. changePassword(changePasswordDto: ChangePasswordDto, options?: any): AxiosPromise<UserResponseDto> {
  4835. return localVarFp.changePassword(changePasswordDto, options).then((request) => request(axios, basePath));
  4836. },
  4837. /**
  4838. *
  4839. * @param {LoginCredentialDto} loginCredentialDto
  4840. * @param {*} [options] Override http request option.
  4841. * @throws {RequiredError}
  4842. */
  4843. login(loginCredentialDto: LoginCredentialDto, options?: any): AxiosPromise<LoginResponseDto> {
  4844. return localVarFp.login(loginCredentialDto, options).then((request) => request(axios, basePath));
  4845. },
  4846. /**
  4847. *
  4848. * @param {*} [options] Override http request option.
  4849. * @throws {RequiredError}
  4850. */
  4851. logout(options?: any): AxiosPromise<LogoutResponseDto> {
  4852. return localVarFp.logout(options).then((request) => request(axios, basePath));
  4853. },
  4854. /**
  4855. *
  4856. * @param {*} [options] Override http request option.
  4857. * @throws {RequiredError}
  4858. */
  4859. validateAccessToken(options?: any): AxiosPromise<ValidateAccessTokenResponseDto> {
  4860. return localVarFp.validateAccessToken(options).then((request) => request(axios, basePath));
  4861. },
  4862. };
  4863. };
  4864. /**
  4865. * AuthenticationApi - object-oriented interface
  4866. * @export
  4867. * @class AuthenticationApi
  4868. * @extends {BaseAPI}
  4869. */
  4870. export class AuthenticationApi extends BaseAPI {
  4871. /**
  4872. *
  4873. * @param {SignUpDto} signUpDto
  4874. * @param {*} [options] Override http request option.
  4875. * @throws {RequiredError}
  4876. * @memberof AuthenticationApi
  4877. */
  4878. public adminSignUp(signUpDto: SignUpDto, options?: AxiosRequestConfig) {
  4879. return AuthenticationApiFp(this.configuration).adminSignUp(signUpDto, options).then((request) => request(this.axios, this.basePath));
  4880. }
  4881. /**
  4882. *
  4883. * @param {ChangePasswordDto} changePasswordDto
  4884. * @param {*} [options] Override http request option.
  4885. * @throws {RequiredError}
  4886. * @memberof AuthenticationApi
  4887. */
  4888. public changePassword(changePasswordDto: ChangePasswordDto, options?: AxiosRequestConfig) {
  4889. return AuthenticationApiFp(this.configuration).changePassword(changePasswordDto, options).then((request) => request(this.axios, this.basePath));
  4890. }
  4891. /**
  4892. *
  4893. * @param {LoginCredentialDto} loginCredentialDto
  4894. * @param {*} [options] Override http request option.
  4895. * @throws {RequiredError}
  4896. * @memberof AuthenticationApi
  4897. */
  4898. public login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig) {
  4899. return AuthenticationApiFp(this.configuration).login(loginCredentialDto, options).then((request) => request(this.axios, this.basePath));
  4900. }
  4901. /**
  4902. *
  4903. * @param {*} [options] Override http request option.
  4904. * @throws {RequiredError}
  4905. * @memberof AuthenticationApi
  4906. */
  4907. public logout(options?: AxiosRequestConfig) {
  4908. return AuthenticationApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath));
  4909. }
  4910. /**
  4911. *
  4912. * @param {*} [options] Override http request option.
  4913. * @throws {RequiredError}
  4914. * @memberof AuthenticationApi
  4915. */
  4916. public validateAccessToken(options?: AxiosRequestConfig) {
  4917. return AuthenticationApiFp(this.configuration).validateAccessToken(options).then((request) => request(this.axios, this.basePath));
  4918. }
  4919. }
  4920. /**
  4921. * DeviceInfoApi - axios parameter creator
  4922. * @export
  4923. */
  4924. export const DeviceInfoApiAxiosParamCreator = function (configuration?: Configuration) {
  4925. return {
  4926. /**
  4927. * @deprecated
  4928. * @param {UpsertDeviceInfoDto} upsertDeviceInfoDto
  4929. * @param {*} [options] Override http request option.
  4930. * @throws {RequiredError}
  4931. */
  4932. createDeviceInfo: async (upsertDeviceInfoDto: UpsertDeviceInfoDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4933. // verify required parameter 'upsertDeviceInfoDto' is not null or undefined
  4934. assertParamExists('createDeviceInfo', 'upsertDeviceInfoDto', upsertDeviceInfoDto)
  4935. const localVarPath = `/device-info`;
  4936. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4937. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4938. let baseOptions;
  4939. if (configuration) {
  4940. baseOptions = configuration.baseOptions;
  4941. }
  4942. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4943. const localVarHeaderParameter = {} as any;
  4944. const localVarQueryParameter = {} as any;
  4945. // authentication bearer required
  4946. // http bearer authentication required
  4947. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4948. localVarHeaderParameter['Content-Type'] = 'application/json';
  4949. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4950. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4951. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4952. localVarRequestOptions.data = serializeDataIfNeeded(upsertDeviceInfoDto, localVarRequestOptions, configuration)
  4953. return {
  4954. url: toPathString(localVarUrlObj),
  4955. options: localVarRequestOptions,
  4956. };
  4957. },
  4958. /**
  4959. * @deprecated
  4960. * @param {UpsertDeviceInfoDto} upsertDeviceInfoDto
  4961. * @param {*} [options] Override http request option.
  4962. * @throws {RequiredError}
  4963. */
  4964. updateDeviceInfo: async (upsertDeviceInfoDto: UpsertDeviceInfoDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4965. // verify required parameter 'upsertDeviceInfoDto' is not null or undefined
  4966. assertParamExists('updateDeviceInfo', 'upsertDeviceInfoDto', upsertDeviceInfoDto)
  4967. const localVarPath = `/device-info`;
  4968. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4969. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4970. let baseOptions;
  4971. if (configuration) {
  4972. baseOptions = configuration.baseOptions;
  4973. }
  4974. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  4975. const localVarHeaderParameter = {} as any;
  4976. const localVarQueryParameter = {} as any;
  4977. // authentication bearer required
  4978. // http bearer authentication required
  4979. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4980. localVarHeaderParameter['Content-Type'] = 'application/json';
  4981. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4982. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4983. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4984. localVarRequestOptions.data = serializeDataIfNeeded(upsertDeviceInfoDto, localVarRequestOptions, configuration)
  4985. return {
  4986. url: toPathString(localVarUrlObj),
  4987. options: localVarRequestOptions,
  4988. };
  4989. },
  4990. /**
  4991. *
  4992. * @param {UpsertDeviceInfoDto} upsertDeviceInfoDto
  4993. * @param {*} [options] Override http request option.
  4994. * @throws {RequiredError}
  4995. */
  4996. upsertDeviceInfo: async (upsertDeviceInfoDto: UpsertDeviceInfoDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4997. // verify required parameter 'upsertDeviceInfoDto' is not null or undefined
  4998. assertParamExists('upsertDeviceInfo', 'upsertDeviceInfoDto', upsertDeviceInfoDto)
  4999. const localVarPath = `/device-info`;
  5000. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5001. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5002. let baseOptions;
  5003. if (configuration) {
  5004. baseOptions = configuration.baseOptions;
  5005. }
  5006. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  5007. const localVarHeaderParameter = {} as any;
  5008. const localVarQueryParameter = {} as any;
  5009. // authentication bearer required
  5010. // http bearer authentication required
  5011. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5012. localVarHeaderParameter['Content-Type'] = 'application/json';
  5013. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5014. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5015. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5016. localVarRequestOptions.data = serializeDataIfNeeded(upsertDeviceInfoDto, localVarRequestOptions, configuration)
  5017. return {
  5018. url: toPathString(localVarUrlObj),
  5019. options: localVarRequestOptions,
  5020. };
  5021. },
  5022. }
  5023. };
  5024. /**
  5025. * DeviceInfoApi - functional programming interface
  5026. * @export
  5027. */
  5028. export const DeviceInfoApiFp = function(configuration?: Configuration) {
  5029. const localVarAxiosParamCreator = DeviceInfoApiAxiosParamCreator(configuration)
  5030. return {
  5031. /**
  5032. * @deprecated
  5033. * @param {UpsertDeviceInfoDto} upsertDeviceInfoDto
  5034. * @param {*} [options] Override http request option.
  5035. * @throws {RequiredError}
  5036. */
  5037. async createDeviceInfo(upsertDeviceInfoDto: UpsertDeviceInfoDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeviceInfoResponseDto>> {
  5038. const localVarAxiosArgs = await localVarAxiosParamCreator.createDeviceInfo(upsertDeviceInfoDto, options);
  5039. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5040. },
  5041. /**
  5042. * @deprecated
  5043. * @param {UpsertDeviceInfoDto} upsertDeviceInfoDto
  5044. * @param {*} [options] Override http request option.
  5045. * @throws {RequiredError}
  5046. */
  5047. async updateDeviceInfo(upsertDeviceInfoDto: UpsertDeviceInfoDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeviceInfoResponseDto>> {
  5048. const localVarAxiosArgs = await localVarAxiosParamCreator.updateDeviceInfo(upsertDeviceInfoDto, options);
  5049. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5050. },
  5051. /**
  5052. *
  5053. * @param {UpsertDeviceInfoDto} upsertDeviceInfoDto
  5054. * @param {*} [options] Override http request option.
  5055. * @throws {RequiredError}
  5056. */
  5057. async upsertDeviceInfo(upsertDeviceInfoDto: UpsertDeviceInfoDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeviceInfoResponseDto>> {
  5058. const localVarAxiosArgs = await localVarAxiosParamCreator.upsertDeviceInfo(upsertDeviceInfoDto, options);
  5059. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5060. },
  5061. }
  5062. };
  5063. /**
  5064. * DeviceInfoApi - factory interface
  5065. * @export
  5066. */
  5067. export const DeviceInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5068. const localVarFp = DeviceInfoApiFp(configuration)
  5069. return {
  5070. /**
  5071. * @deprecated
  5072. * @param {UpsertDeviceInfoDto} upsertDeviceInfoDto
  5073. * @param {*} [options] Override http request option.
  5074. * @throws {RequiredError}
  5075. */
  5076. createDeviceInfo(upsertDeviceInfoDto: UpsertDeviceInfoDto, options?: any): AxiosPromise<DeviceInfoResponseDto> {
  5077. return localVarFp.createDeviceInfo(upsertDeviceInfoDto, options).then((request) => request(axios, basePath));
  5078. },
  5079. /**
  5080. * @deprecated
  5081. * @param {UpsertDeviceInfoDto} upsertDeviceInfoDto
  5082. * @param {*} [options] Override http request option.
  5083. * @throws {RequiredError}
  5084. */
  5085. updateDeviceInfo(upsertDeviceInfoDto: UpsertDeviceInfoDto, options?: any): AxiosPromise<DeviceInfoResponseDto> {
  5086. return localVarFp.updateDeviceInfo(upsertDeviceInfoDto, options).then((request) => request(axios, basePath));
  5087. },
  5088. /**
  5089. *
  5090. * @param {UpsertDeviceInfoDto} upsertDeviceInfoDto
  5091. * @param {*} [options] Override http request option.
  5092. * @throws {RequiredError}
  5093. */
  5094. upsertDeviceInfo(upsertDeviceInfoDto: UpsertDeviceInfoDto, options?: any): AxiosPromise<DeviceInfoResponseDto> {
  5095. return localVarFp.upsertDeviceInfo(upsertDeviceInfoDto, options).then((request) => request(axios, basePath));
  5096. },
  5097. };
  5098. };
  5099. /**
  5100. * DeviceInfoApi - object-oriented interface
  5101. * @export
  5102. * @class DeviceInfoApi
  5103. * @extends {BaseAPI}
  5104. */
  5105. export class DeviceInfoApi extends BaseAPI {
  5106. /**
  5107. * @deprecated
  5108. * @param {UpsertDeviceInfoDto} upsertDeviceInfoDto
  5109. * @param {*} [options] Override http request option.
  5110. * @throws {RequiredError}
  5111. * @memberof DeviceInfoApi
  5112. */
  5113. public createDeviceInfo(upsertDeviceInfoDto: UpsertDeviceInfoDto, options?: AxiosRequestConfig) {
  5114. return DeviceInfoApiFp(this.configuration).createDeviceInfo(upsertDeviceInfoDto, options).then((request) => request(this.axios, this.basePath));
  5115. }
  5116. /**
  5117. * @deprecated
  5118. * @param {UpsertDeviceInfoDto} upsertDeviceInfoDto
  5119. * @param {*} [options] Override http request option.
  5120. * @throws {RequiredError}
  5121. * @memberof DeviceInfoApi
  5122. */
  5123. public updateDeviceInfo(upsertDeviceInfoDto: UpsertDeviceInfoDto, options?: AxiosRequestConfig) {
  5124. return DeviceInfoApiFp(this.configuration).updateDeviceInfo(upsertDeviceInfoDto, options).then((request) => request(this.axios, this.basePath));
  5125. }
  5126. /**
  5127. *
  5128. * @param {UpsertDeviceInfoDto} upsertDeviceInfoDto
  5129. * @param {*} [options] Override http request option.
  5130. * @throws {RequiredError}
  5131. * @memberof DeviceInfoApi
  5132. */
  5133. public upsertDeviceInfo(upsertDeviceInfoDto: UpsertDeviceInfoDto, options?: AxiosRequestConfig) {
  5134. return DeviceInfoApiFp(this.configuration).upsertDeviceInfo(upsertDeviceInfoDto, options).then((request) => request(this.axios, this.basePath));
  5135. }
  5136. }
  5137. /**
  5138. * JobApi - axios parameter creator
  5139. * @export
  5140. */
  5141. export const JobApiAxiosParamCreator = function (configuration?: Configuration) {
  5142. return {
  5143. /**
  5144. *
  5145. * @param {*} [options] Override http request option.
  5146. * @throws {RequiredError}
  5147. */
  5148. getAllJobsStatus: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5149. const localVarPath = `/jobs`;
  5150. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5151. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5152. let baseOptions;
  5153. if (configuration) {
  5154. baseOptions = configuration.baseOptions;
  5155. }
  5156. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5157. const localVarHeaderParameter = {} as any;
  5158. const localVarQueryParameter = {} as any;
  5159. // authentication bearer required
  5160. // http bearer authentication required
  5161. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5162. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5163. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5164. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5165. return {
  5166. url: toPathString(localVarUrlObj),
  5167. options: localVarRequestOptions,
  5168. };
  5169. },
  5170. /**
  5171. *
  5172. * @param {JobId} jobId
  5173. * @param {*} [options] Override http request option.
  5174. * @throws {RequiredError}
  5175. */
  5176. getJobStatus: async (jobId: JobId, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5177. // verify required parameter 'jobId' is not null or undefined
  5178. assertParamExists('getJobStatus', 'jobId', jobId)
  5179. const localVarPath = `/jobs/{jobId}`
  5180. .replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
  5181. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5182. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5183. let baseOptions;
  5184. if (configuration) {
  5185. baseOptions = configuration.baseOptions;
  5186. }
  5187. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5188. const localVarHeaderParameter = {} as any;
  5189. const localVarQueryParameter = {} as any;
  5190. // authentication bearer required
  5191. // http bearer authentication required
  5192. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5193. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5194. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5195. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5196. return {
  5197. url: toPathString(localVarUrlObj),
  5198. options: localVarRequestOptions,
  5199. };
  5200. },
  5201. /**
  5202. *
  5203. * @param {JobId} jobId
  5204. * @param {JobCommandDto} jobCommandDto
  5205. * @param {*} [options] Override http request option.
  5206. * @throws {RequiredError}
  5207. */
  5208. sendJobCommand: async (jobId: JobId, jobCommandDto: JobCommandDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5209. // verify required parameter 'jobId' is not null or undefined
  5210. assertParamExists('sendJobCommand', 'jobId', jobId)
  5211. // verify required parameter 'jobCommandDto' is not null or undefined
  5212. assertParamExists('sendJobCommand', 'jobCommandDto', jobCommandDto)
  5213. const localVarPath = `/jobs/{jobId}`
  5214. .replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
  5215. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5216. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5217. let baseOptions;
  5218. if (configuration) {
  5219. baseOptions = configuration.baseOptions;
  5220. }
  5221. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  5222. const localVarHeaderParameter = {} as any;
  5223. const localVarQueryParameter = {} as any;
  5224. // authentication bearer required
  5225. // http bearer authentication required
  5226. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5227. localVarHeaderParameter['Content-Type'] = 'application/json';
  5228. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5229. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5230. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5231. localVarRequestOptions.data = serializeDataIfNeeded(jobCommandDto, localVarRequestOptions, configuration)
  5232. return {
  5233. url: toPathString(localVarUrlObj),
  5234. options: localVarRequestOptions,
  5235. };
  5236. },
  5237. }
  5238. };
  5239. /**
  5240. * JobApi - functional programming interface
  5241. * @export
  5242. */
  5243. export const JobApiFp = function(configuration?: Configuration) {
  5244. const localVarAxiosParamCreator = JobApiAxiosParamCreator(configuration)
  5245. return {
  5246. /**
  5247. *
  5248. * @param {*} [options] Override http request option.
  5249. * @throws {RequiredError}
  5250. */
  5251. async getAllJobsStatus(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllJobStatusResponseDto>> {
  5252. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllJobsStatus(options);
  5253. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5254. },
  5255. /**
  5256. *
  5257. * @param {JobId} jobId
  5258. * @param {*} [options] Override http request option.
  5259. * @throws {RequiredError}
  5260. */
  5261. async getJobStatus(jobId: JobId, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobStatusResponseDto>> {
  5262. const localVarAxiosArgs = await localVarAxiosParamCreator.getJobStatus(jobId, options);
  5263. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5264. },
  5265. /**
  5266. *
  5267. * @param {JobId} jobId
  5268. * @param {JobCommandDto} jobCommandDto
  5269. * @param {*} [options] Override http request option.
  5270. * @throws {RequiredError}
  5271. */
  5272. async sendJobCommand(jobId: JobId, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<number>> {
  5273. const localVarAxiosArgs = await localVarAxiosParamCreator.sendJobCommand(jobId, jobCommandDto, options);
  5274. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5275. },
  5276. }
  5277. };
  5278. /**
  5279. * JobApi - factory interface
  5280. * @export
  5281. */
  5282. export const JobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5283. const localVarFp = JobApiFp(configuration)
  5284. return {
  5285. /**
  5286. *
  5287. * @param {*} [options] Override http request option.
  5288. * @throws {RequiredError}
  5289. */
  5290. getAllJobsStatus(options?: any): AxiosPromise<AllJobStatusResponseDto> {
  5291. return localVarFp.getAllJobsStatus(options).then((request) => request(axios, basePath));
  5292. },
  5293. /**
  5294. *
  5295. * @param {JobId} jobId
  5296. * @param {*} [options] Override http request option.
  5297. * @throws {RequiredError}
  5298. */
  5299. getJobStatus(jobId: JobId, options?: any): AxiosPromise<JobStatusResponseDto> {
  5300. return localVarFp.getJobStatus(jobId, options).then((request) => request(axios, basePath));
  5301. },
  5302. /**
  5303. *
  5304. * @param {JobId} jobId
  5305. * @param {JobCommandDto} jobCommandDto
  5306. * @param {*} [options] Override http request option.
  5307. * @throws {RequiredError}
  5308. */
  5309. sendJobCommand(jobId: JobId, jobCommandDto: JobCommandDto, options?: any): AxiosPromise<number> {
  5310. return localVarFp.sendJobCommand(jobId, jobCommandDto, options).then((request) => request(axios, basePath));
  5311. },
  5312. };
  5313. };
  5314. /**
  5315. * JobApi - object-oriented interface
  5316. * @export
  5317. * @class JobApi
  5318. * @extends {BaseAPI}
  5319. */
  5320. export class JobApi extends BaseAPI {
  5321. /**
  5322. *
  5323. * @param {*} [options] Override http request option.
  5324. * @throws {RequiredError}
  5325. * @memberof JobApi
  5326. */
  5327. public getAllJobsStatus(options?: AxiosRequestConfig) {
  5328. return JobApiFp(this.configuration).getAllJobsStatus(options).then((request) => request(this.axios, this.basePath));
  5329. }
  5330. /**
  5331. *
  5332. * @param {JobId} jobId
  5333. * @param {*} [options] Override http request option.
  5334. * @throws {RequiredError}
  5335. * @memberof JobApi
  5336. */
  5337. public getJobStatus(jobId: JobId, options?: AxiosRequestConfig) {
  5338. return JobApiFp(this.configuration).getJobStatus(jobId, options).then((request) => request(this.axios, this.basePath));
  5339. }
  5340. /**
  5341. *
  5342. * @param {JobId} jobId
  5343. * @param {JobCommandDto} jobCommandDto
  5344. * @param {*} [options] Override http request option.
  5345. * @throws {RequiredError}
  5346. * @memberof JobApi
  5347. */
  5348. public sendJobCommand(jobId: JobId, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig) {
  5349. return JobApiFp(this.configuration).sendJobCommand(jobId, jobCommandDto, options).then((request) => request(this.axios, this.basePath));
  5350. }
  5351. }
  5352. /**
  5353. * OAuthApi - axios parameter creator
  5354. * @export
  5355. */
  5356. export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
  5357. return {
  5358. /**
  5359. *
  5360. * @param {OAuthCallbackDto} oAuthCallbackDto
  5361. * @param {*} [options] Override http request option.
  5362. * @throws {RequiredError}
  5363. */
  5364. callback: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5365. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  5366. assertParamExists('callback', 'oAuthCallbackDto', oAuthCallbackDto)
  5367. const localVarPath = `/oauth/callback`;
  5368. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5369. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5370. let baseOptions;
  5371. if (configuration) {
  5372. baseOptions = configuration.baseOptions;
  5373. }
  5374. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5375. const localVarHeaderParameter = {} as any;
  5376. const localVarQueryParameter = {} as any;
  5377. localVarHeaderParameter['Content-Type'] = 'application/json';
  5378. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5379. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5380. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5381. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  5382. return {
  5383. url: toPathString(localVarUrlObj),
  5384. options: localVarRequestOptions,
  5385. };
  5386. },
  5387. /**
  5388. *
  5389. * @param {OAuthConfigDto} oAuthConfigDto
  5390. * @param {*} [options] Override http request option.
  5391. * @throws {RequiredError}
  5392. */
  5393. generateConfig: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5394. // verify required parameter 'oAuthConfigDto' is not null or undefined
  5395. assertParamExists('generateConfig', 'oAuthConfigDto', oAuthConfigDto)
  5396. const localVarPath = `/oauth/config`;
  5397. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5398. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5399. let baseOptions;
  5400. if (configuration) {
  5401. baseOptions = configuration.baseOptions;
  5402. }
  5403. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5404. const localVarHeaderParameter = {} as any;
  5405. const localVarQueryParameter = {} as any;
  5406. localVarHeaderParameter['Content-Type'] = 'application/json';
  5407. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5408. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5409. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5410. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  5411. return {
  5412. url: toPathString(localVarUrlObj),
  5413. options: localVarRequestOptions,
  5414. };
  5415. },
  5416. /**
  5417. *
  5418. * @param {OAuthCallbackDto} oAuthCallbackDto
  5419. * @param {*} [options] Override http request option.
  5420. * @throws {RequiredError}
  5421. */
  5422. link: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5423. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  5424. assertParamExists('link', 'oAuthCallbackDto', oAuthCallbackDto)
  5425. const localVarPath = `/oauth/link`;
  5426. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5427. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5428. let baseOptions;
  5429. if (configuration) {
  5430. baseOptions = configuration.baseOptions;
  5431. }
  5432. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5433. const localVarHeaderParameter = {} as any;
  5434. const localVarQueryParameter = {} as any;
  5435. localVarHeaderParameter['Content-Type'] = 'application/json';
  5436. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5437. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5438. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5439. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  5440. return {
  5441. url: toPathString(localVarUrlObj),
  5442. options: localVarRequestOptions,
  5443. };
  5444. },
  5445. /**
  5446. *
  5447. * @param {*} [options] Override http request option.
  5448. * @throws {RequiredError}
  5449. */
  5450. mobileRedirect: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5451. const localVarPath = `/oauth/mobile-redirect`;
  5452. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5453. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5454. let baseOptions;
  5455. if (configuration) {
  5456. baseOptions = configuration.baseOptions;
  5457. }
  5458. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5459. const localVarHeaderParameter = {} as any;
  5460. const localVarQueryParameter = {} as any;
  5461. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5462. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5463. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5464. return {
  5465. url: toPathString(localVarUrlObj),
  5466. options: localVarRequestOptions,
  5467. };
  5468. },
  5469. /**
  5470. *
  5471. * @param {*} [options] Override http request option.
  5472. * @throws {RequiredError}
  5473. */
  5474. unlink: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5475. const localVarPath = `/oauth/unlink`;
  5476. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5477. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5478. let baseOptions;
  5479. if (configuration) {
  5480. baseOptions = configuration.baseOptions;
  5481. }
  5482. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5483. const localVarHeaderParameter = {} as any;
  5484. const localVarQueryParameter = {} as any;
  5485. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5486. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5487. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5488. return {
  5489. url: toPathString(localVarUrlObj),
  5490. options: localVarRequestOptions,
  5491. };
  5492. },
  5493. }
  5494. };
  5495. /**
  5496. * OAuthApi - functional programming interface
  5497. * @export
  5498. */
  5499. export const OAuthApiFp = function(configuration?: Configuration) {
  5500. const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
  5501. return {
  5502. /**
  5503. *
  5504. * @param {OAuthCallbackDto} oAuthCallbackDto
  5505. * @param {*} [options] Override http request option.
  5506. * @throws {RequiredError}
  5507. */
  5508. async callback(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  5509. const localVarAxiosArgs = await localVarAxiosParamCreator.callback(oAuthCallbackDto, options);
  5510. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5511. },
  5512. /**
  5513. *
  5514. * @param {OAuthConfigDto} oAuthConfigDto
  5515. * @param {*} [options] Override http request option.
  5516. * @throws {RequiredError}
  5517. */
  5518. async generateConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthConfigResponseDto>> {
  5519. const localVarAxiosArgs = await localVarAxiosParamCreator.generateConfig(oAuthConfigDto, options);
  5520. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5521. },
  5522. /**
  5523. *
  5524. * @param {OAuthCallbackDto} oAuthCallbackDto
  5525. * @param {*} [options] Override http request option.
  5526. * @throws {RequiredError}
  5527. */
  5528. async link(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  5529. const localVarAxiosArgs = await localVarAxiosParamCreator.link(oAuthCallbackDto, options);
  5530. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5531. },
  5532. /**
  5533. *
  5534. * @param {*} [options] Override http request option.
  5535. * @throws {RequiredError}
  5536. */
  5537. async mobileRedirect(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5538. const localVarAxiosArgs = await localVarAxiosParamCreator.mobileRedirect(options);
  5539. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5540. },
  5541. /**
  5542. *
  5543. * @param {*} [options] Override http request option.
  5544. * @throws {RequiredError}
  5545. */
  5546. async unlink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  5547. const localVarAxiosArgs = await localVarAxiosParamCreator.unlink(options);
  5548. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5549. },
  5550. }
  5551. };
  5552. /**
  5553. * OAuthApi - factory interface
  5554. * @export
  5555. */
  5556. export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5557. const localVarFp = OAuthApiFp(configuration)
  5558. return {
  5559. /**
  5560. *
  5561. * @param {OAuthCallbackDto} oAuthCallbackDto
  5562. * @param {*} [options] Override http request option.
  5563. * @throws {RequiredError}
  5564. */
  5565. callback(oAuthCallbackDto: OAuthCallbackDto, options?: any): AxiosPromise<LoginResponseDto> {
  5566. return localVarFp.callback(oAuthCallbackDto, options).then((request) => request(axios, basePath));
  5567. },
  5568. /**
  5569. *
  5570. * @param {OAuthConfigDto} oAuthConfigDto
  5571. * @param {*} [options] Override http request option.
  5572. * @throws {RequiredError}
  5573. */
  5574. generateConfig(oAuthConfigDto: OAuthConfigDto, options?: any): AxiosPromise<OAuthConfigResponseDto> {
  5575. return localVarFp.generateConfig(oAuthConfigDto, options).then((request) => request(axios, basePath));
  5576. },
  5577. /**
  5578. *
  5579. * @param {OAuthCallbackDto} oAuthCallbackDto
  5580. * @param {*} [options] Override http request option.
  5581. * @throws {RequiredError}
  5582. */
  5583. link(oAuthCallbackDto: OAuthCallbackDto, options?: any): AxiosPromise<UserResponseDto> {
  5584. return localVarFp.link(oAuthCallbackDto, options).then((request) => request(axios, basePath));
  5585. },
  5586. /**
  5587. *
  5588. * @param {*} [options] Override http request option.
  5589. * @throws {RequiredError}
  5590. */
  5591. mobileRedirect(options?: any): AxiosPromise<void> {
  5592. return localVarFp.mobileRedirect(options).then((request) => request(axios, basePath));
  5593. },
  5594. /**
  5595. *
  5596. * @param {*} [options] Override http request option.
  5597. * @throws {RequiredError}
  5598. */
  5599. unlink(options?: any): AxiosPromise<UserResponseDto> {
  5600. return localVarFp.unlink(options).then((request) => request(axios, basePath));
  5601. },
  5602. };
  5603. };
  5604. /**
  5605. * OAuthApi - object-oriented interface
  5606. * @export
  5607. * @class OAuthApi
  5608. * @extends {BaseAPI}
  5609. */
  5610. export class OAuthApi extends BaseAPI {
  5611. /**
  5612. *
  5613. * @param {OAuthCallbackDto} oAuthCallbackDto
  5614. * @param {*} [options] Override http request option.
  5615. * @throws {RequiredError}
  5616. * @memberof OAuthApi
  5617. */
  5618. public callback(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig) {
  5619. return OAuthApiFp(this.configuration).callback(oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  5620. }
  5621. /**
  5622. *
  5623. * @param {OAuthConfigDto} oAuthConfigDto
  5624. * @param {*} [options] Override http request option.
  5625. * @throws {RequiredError}
  5626. * @memberof OAuthApi
  5627. */
  5628. public generateConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig) {
  5629. return OAuthApiFp(this.configuration).generateConfig(oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  5630. }
  5631. /**
  5632. *
  5633. * @param {OAuthCallbackDto} oAuthCallbackDto
  5634. * @param {*} [options] Override http request option.
  5635. * @throws {RequiredError}
  5636. * @memberof OAuthApi
  5637. */
  5638. public link(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig) {
  5639. return OAuthApiFp(this.configuration).link(oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  5640. }
  5641. /**
  5642. *
  5643. * @param {*} [options] Override http request option.
  5644. * @throws {RequiredError}
  5645. * @memberof OAuthApi
  5646. */
  5647. public mobileRedirect(options?: AxiosRequestConfig) {
  5648. return OAuthApiFp(this.configuration).mobileRedirect(options).then((request) => request(this.axios, this.basePath));
  5649. }
  5650. /**
  5651. *
  5652. * @param {*} [options] Override http request option.
  5653. * @throws {RequiredError}
  5654. * @memberof OAuthApi
  5655. */
  5656. public unlink(options?: AxiosRequestConfig) {
  5657. return OAuthApiFp(this.configuration).unlink(options).then((request) => request(this.axios, this.basePath));
  5658. }
  5659. }
  5660. /**
  5661. * ServerInfoApi - axios parameter creator
  5662. * @export
  5663. */
  5664. export const ServerInfoApiAxiosParamCreator = function (configuration?: Configuration) {
  5665. return {
  5666. /**
  5667. *
  5668. * @param {*} [options] Override http request option.
  5669. * @throws {RequiredError}
  5670. */
  5671. getServerInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5672. const localVarPath = `/server-info`;
  5673. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5674. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5675. let baseOptions;
  5676. if (configuration) {
  5677. baseOptions = configuration.baseOptions;
  5678. }
  5679. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5680. const localVarHeaderParameter = {} as any;
  5681. const localVarQueryParameter = {} as any;
  5682. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5683. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5684. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5685. return {
  5686. url: toPathString(localVarUrlObj),
  5687. options: localVarRequestOptions,
  5688. };
  5689. },
  5690. /**
  5691. *
  5692. * @param {*} [options] Override http request option.
  5693. * @throws {RequiredError}
  5694. */
  5695. getServerVersion: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5696. const localVarPath = `/server-info/version`;
  5697. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5698. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5699. let baseOptions;
  5700. if (configuration) {
  5701. baseOptions = configuration.baseOptions;
  5702. }
  5703. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5704. const localVarHeaderParameter = {} as any;
  5705. const localVarQueryParameter = {} as any;
  5706. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5707. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5708. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5709. return {
  5710. url: toPathString(localVarUrlObj),
  5711. options: localVarRequestOptions,
  5712. };
  5713. },
  5714. /**
  5715. *
  5716. * @param {*} [options] Override http request option.
  5717. * @throws {RequiredError}
  5718. */
  5719. getStats: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5720. const localVarPath = `/server-info/stats`;
  5721. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5722. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5723. let baseOptions;
  5724. if (configuration) {
  5725. baseOptions = configuration.baseOptions;
  5726. }
  5727. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5728. const localVarHeaderParameter = {} as any;
  5729. const localVarQueryParameter = {} as any;
  5730. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5731. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5732. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5733. return {
  5734. url: toPathString(localVarUrlObj),
  5735. options: localVarRequestOptions,
  5736. };
  5737. },
  5738. /**
  5739. *
  5740. * @param {*} [options] Override http request option.
  5741. * @throws {RequiredError}
  5742. */
  5743. pingServer: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5744. const localVarPath = `/server-info/ping`;
  5745. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5746. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5747. let baseOptions;
  5748. if (configuration) {
  5749. baseOptions = configuration.baseOptions;
  5750. }
  5751. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5752. const localVarHeaderParameter = {} as any;
  5753. const localVarQueryParameter = {} as any;
  5754. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5755. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5756. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5757. return {
  5758. url: toPathString(localVarUrlObj),
  5759. options: localVarRequestOptions,
  5760. };
  5761. },
  5762. }
  5763. };
  5764. /**
  5765. * ServerInfoApi - functional programming interface
  5766. * @export
  5767. */
  5768. export const ServerInfoApiFp = function(configuration?: Configuration) {
  5769. const localVarAxiosParamCreator = ServerInfoApiAxiosParamCreator(configuration)
  5770. return {
  5771. /**
  5772. *
  5773. * @param {*} [options] Override http request option.
  5774. * @throws {RequiredError}
  5775. */
  5776. async getServerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerInfoResponseDto>> {
  5777. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerInfo(options);
  5778. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5779. },
  5780. /**
  5781. *
  5782. * @param {*} [options] Override http request option.
  5783. * @throws {RequiredError}
  5784. */
  5785. async getServerVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerVersionReponseDto>> {
  5786. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerVersion(options);
  5787. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5788. },
  5789. /**
  5790. *
  5791. * @param {*} [options] Override http request option.
  5792. * @throws {RequiredError}
  5793. */
  5794. async getStats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatsResponseDto>> {
  5795. const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(options);
  5796. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5797. },
  5798. /**
  5799. *
  5800. * @param {*} [options] Override http request option.
  5801. * @throws {RequiredError}
  5802. */
  5803. async pingServer(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerPingResponse>> {
  5804. const localVarAxiosArgs = await localVarAxiosParamCreator.pingServer(options);
  5805. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5806. },
  5807. }
  5808. };
  5809. /**
  5810. * ServerInfoApi - factory interface
  5811. * @export
  5812. */
  5813. export const ServerInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5814. const localVarFp = ServerInfoApiFp(configuration)
  5815. return {
  5816. /**
  5817. *
  5818. * @param {*} [options] Override http request option.
  5819. * @throws {RequiredError}
  5820. */
  5821. getServerInfo(options?: any): AxiosPromise<ServerInfoResponseDto> {
  5822. return localVarFp.getServerInfo(options).then((request) => request(axios, basePath));
  5823. },
  5824. /**
  5825. *
  5826. * @param {*} [options] Override http request option.
  5827. * @throws {RequiredError}
  5828. */
  5829. getServerVersion(options?: any): AxiosPromise<ServerVersionReponseDto> {
  5830. return localVarFp.getServerVersion(options).then((request) => request(axios, basePath));
  5831. },
  5832. /**
  5833. *
  5834. * @param {*} [options] Override http request option.
  5835. * @throws {RequiredError}
  5836. */
  5837. getStats(options?: any): AxiosPromise<ServerStatsResponseDto> {
  5838. return localVarFp.getStats(options).then((request) => request(axios, basePath));
  5839. },
  5840. /**
  5841. *
  5842. * @param {*} [options] Override http request option.
  5843. * @throws {RequiredError}
  5844. */
  5845. pingServer(options?: any): AxiosPromise<ServerPingResponse> {
  5846. return localVarFp.pingServer(options).then((request) => request(axios, basePath));
  5847. },
  5848. };
  5849. };
  5850. /**
  5851. * ServerInfoApi - object-oriented interface
  5852. * @export
  5853. * @class ServerInfoApi
  5854. * @extends {BaseAPI}
  5855. */
  5856. export class ServerInfoApi extends BaseAPI {
  5857. /**
  5858. *
  5859. * @param {*} [options] Override http request option.
  5860. * @throws {RequiredError}
  5861. * @memberof ServerInfoApi
  5862. */
  5863. public getServerInfo(options?: AxiosRequestConfig) {
  5864. return ServerInfoApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
  5865. }
  5866. /**
  5867. *
  5868. * @param {*} [options] Override http request option.
  5869. * @throws {RequiredError}
  5870. * @memberof ServerInfoApi
  5871. */
  5872. public getServerVersion(options?: AxiosRequestConfig) {
  5873. return ServerInfoApiFp(this.configuration).getServerVersion(options).then((request) => request(this.axios, this.basePath));
  5874. }
  5875. /**
  5876. *
  5877. * @param {*} [options] Override http request option.
  5878. * @throws {RequiredError}
  5879. * @memberof ServerInfoApi
  5880. */
  5881. public getStats(options?: AxiosRequestConfig) {
  5882. return ServerInfoApiFp(this.configuration).getStats(options).then((request) => request(this.axios, this.basePath));
  5883. }
  5884. /**
  5885. *
  5886. * @param {*} [options] Override http request option.
  5887. * @throws {RequiredError}
  5888. * @memberof ServerInfoApi
  5889. */
  5890. public pingServer(options?: AxiosRequestConfig) {
  5891. return ServerInfoApiFp(this.configuration).pingServer(options).then((request) => request(this.axios, this.basePath));
  5892. }
  5893. }
  5894. /**
  5895. * ShareApi - axios parameter creator
  5896. * @export
  5897. */
  5898. export const ShareApiAxiosParamCreator = function (configuration?: Configuration) {
  5899. return {
  5900. /**
  5901. *
  5902. * @param {string} id
  5903. * @param {EditSharedLinkDto} editSharedLinkDto
  5904. * @param {*} [options] Override http request option.
  5905. * @throws {RequiredError}
  5906. */
  5907. editSharedLink: async (id: string, editSharedLinkDto: EditSharedLinkDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5908. // verify required parameter 'id' is not null or undefined
  5909. assertParamExists('editSharedLink', 'id', id)
  5910. // verify required parameter 'editSharedLinkDto' is not null or undefined
  5911. assertParamExists('editSharedLink', 'editSharedLinkDto', editSharedLinkDto)
  5912. const localVarPath = `/share/{id}`
  5913. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5914. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5915. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5916. let baseOptions;
  5917. if (configuration) {
  5918. baseOptions = configuration.baseOptions;
  5919. }
  5920. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  5921. const localVarHeaderParameter = {} as any;
  5922. const localVarQueryParameter = {} as any;
  5923. localVarHeaderParameter['Content-Type'] = 'application/json';
  5924. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5925. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5926. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5927. localVarRequestOptions.data = serializeDataIfNeeded(editSharedLinkDto, localVarRequestOptions, configuration)
  5928. return {
  5929. url: toPathString(localVarUrlObj),
  5930. options: localVarRequestOptions,
  5931. };
  5932. },
  5933. /**
  5934. *
  5935. * @param {*} [options] Override http request option.
  5936. * @throws {RequiredError}
  5937. */
  5938. getAllSharedLinks: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5939. const localVarPath = `/share`;
  5940. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5941. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5942. let baseOptions;
  5943. if (configuration) {
  5944. baseOptions = configuration.baseOptions;
  5945. }
  5946. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5947. const localVarHeaderParameter = {} as any;
  5948. const localVarQueryParameter = {} as any;
  5949. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5950. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5951. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5952. return {
  5953. url: toPathString(localVarUrlObj),
  5954. options: localVarRequestOptions,
  5955. };
  5956. },
  5957. /**
  5958. *
  5959. * @param {*} [options] Override http request option.
  5960. * @throws {RequiredError}
  5961. */
  5962. getMySharedLink: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5963. const localVarPath = `/share/me`;
  5964. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5965. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5966. let baseOptions;
  5967. if (configuration) {
  5968. baseOptions = configuration.baseOptions;
  5969. }
  5970. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5971. const localVarHeaderParameter = {} as any;
  5972. const localVarQueryParameter = {} as any;
  5973. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5974. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5975. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5976. return {
  5977. url: toPathString(localVarUrlObj),
  5978. options: localVarRequestOptions,
  5979. };
  5980. },
  5981. /**
  5982. *
  5983. * @param {string} id
  5984. * @param {*} [options] Override http request option.
  5985. * @throws {RequiredError}
  5986. */
  5987. getSharedLinkById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5988. // verify required parameter 'id' is not null or undefined
  5989. assertParamExists('getSharedLinkById', 'id', id)
  5990. const localVarPath = `/share/{id}`
  5991. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5992. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5993. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5994. let baseOptions;
  5995. if (configuration) {
  5996. baseOptions = configuration.baseOptions;
  5997. }
  5998. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5999. const localVarHeaderParameter = {} as any;
  6000. const localVarQueryParameter = {} as any;
  6001. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6002. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6003. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6004. return {
  6005. url: toPathString(localVarUrlObj),
  6006. options: localVarRequestOptions,
  6007. };
  6008. },
  6009. /**
  6010. *
  6011. * @param {string} id
  6012. * @param {*} [options] Override http request option.
  6013. * @throws {RequiredError}
  6014. */
  6015. removeSharedLink: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6016. // verify required parameter 'id' is not null or undefined
  6017. assertParamExists('removeSharedLink', 'id', id)
  6018. const localVarPath = `/share/{id}`
  6019. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6020. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6021. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6022. let baseOptions;
  6023. if (configuration) {
  6024. baseOptions = configuration.baseOptions;
  6025. }
  6026. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  6027. const localVarHeaderParameter = {} as any;
  6028. const localVarQueryParameter = {} as any;
  6029. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6030. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6031. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6032. return {
  6033. url: toPathString(localVarUrlObj),
  6034. options: localVarRequestOptions,
  6035. };
  6036. },
  6037. }
  6038. };
  6039. /**
  6040. * ShareApi - functional programming interface
  6041. * @export
  6042. */
  6043. export const ShareApiFp = function(configuration?: Configuration) {
  6044. const localVarAxiosParamCreator = ShareApiAxiosParamCreator(configuration)
  6045. return {
  6046. /**
  6047. *
  6048. * @param {string} id
  6049. * @param {EditSharedLinkDto} editSharedLinkDto
  6050. * @param {*} [options] Override http request option.
  6051. * @throws {RequiredError}
  6052. */
  6053. async editSharedLink(id: string, editSharedLinkDto: EditSharedLinkDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  6054. const localVarAxiosArgs = await localVarAxiosParamCreator.editSharedLink(id, editSharedLinkDto, options);
  6055. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6056. },
  6057. /**
  6058. *
  6059. * @param {*} [options] Override http request option.
  6060. * @throws {RequiredError}
  6061. */
  6062. async getAllSharedLinks(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SharedLinkResponseDto>>> {
  6063. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSharedLinks(options);
  6064. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6065. },
  6066. /**
  6067. *
  6068. * @param {*} [options] Override http request option.
  6069. * @throws {RequiredError}
  6070. */
  6071. async getMySharedLink(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  6072. const localVarAxiosArgs = await localVarAxiosParamCreator.getMySharedLink(options);
  6073. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6074. },
  6075. /**
  6076. *
  6077. * @param {string} id
  6078. * @param {*} [options] Override http request option.
  6079. * @throws {RequiredError}
  6080. */
  6081. async getSharedLinkById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  6082. const localVarAxiosArgs = await localVarAxiosParamCreator.getSharedLinkById(id, options);
  6083. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6084. },
  6085. /**
  6086. *
  6087. * @param {string} id
  6088. * @param {*} [options] Override http request option.
  6089. * @throws {RequiredError}
  6090. */
  6091. async removeSharedLink(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
  6092. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLink(id, options);
  6093. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6094. },
  6095. }
  6096. };
  6097. /**
  6098. * ShareApi - factory interface
  6099. * @export
  6100. */
  6101. export const ShareApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  6102. const localVarFp = ShareApiFp(configuration)
  6103. return {
  6104. /**
  6105. *
  6106. * @param {string} id
  6107. * @param {EditSharedLinkDto} editSharedLinkDto
  6108. * @param {*} [options] Override http request option.
  6109. * @throws {RequiredError}
  6110. */
  6111. editSharedLink(id: string, editSharedLinkDto: EditSharedLinkDto, options?: any): AxiosPromise<SharedLinkResponseDto> {
  6112. return localVarFp.editSharedLink(id, editSharedLinkDto, options).then((request) => request(axios, basePath));
  6113. },
  6114. /**
  6115. *
  6116. * @param {*} [options] Override http request option.
  6117. * @throws {RequiredError}
  6118. */
  6119. getAllSharedLinks(options?: any): AxiosPromise<Array<SharedLinkResponseDto>> {
  6120. return localVarFp.getAllSharedLinks(options).then((request) => request(axios, basePath));
  6121. },
  6122. /**
  6123. *
  6124. * @param {*} [options] Override http request option.
  6125. * @throws {RequiredError}
  6126. */
  6127. getMySharedLink(options?: any): AxiosPromise<SharedLinkResponseDto> {
  6128. return localVarFp.getMySharedLink(options).then((request) => request(axios, basePath));
  6129. },
  6130. /**
  6131. *
  6132. * @param {string} id
  6133. * @param {*} [options] Override http request option.
  6134. * @throws {RequiredError}
  6135. */
  6136. getSharedLinkById(id: string, options?: any): AxiosPromise<SharedLinkResponseDto> {
  6137. return localVarFp.getSharedLinkById(id, options).then((request) => request(axios, basePath));
  6138. },
  6139. /**
  6140. *
  6141. * @param {string} id
  6142. * @param {*} [options] Override http request option.
  6143. * @throws {RequiredError}
  6144. */
  6145. removeSharedLink(id: string, options?: any): AxiosPromise<string> {
  6146. return localVarFp.removeSharedLink(id, options).then((request) => request(axios, basePath));
  6147. },
  6148. };
  6149. };
  6150. /**
  6151. * ShareApi - object-oriented interface
  6152. * @export
  6153. * @class ShareApi
  6154. * @extends {BaseAPI}
  6155. */
  6156. export class ShareApi extends BaseAPI {
  6157. /**
  6158. *
  6159. * @param {string} id
  6160. * @param {EditSharedLinkDto} editSharedLinkDto
  6161. * @param {*} [options] Override http request option.
  6162. * @throws {RequiredError}
  6163. * @memberof ShareApi
  6164. */
  6165. public editSharedLink(id: string, editSharedLinkDto: EditSharedLinkDto, options?: AxiosRequestConfig) {
  6166. return ShareApiFp(this.configuration).editSharedLink(id, editSharedLinkDto, options).then((request) => request(this.axios, this.basePath));
  6167. }
  6168. /**
  6169. *
  6170. * @param {*} [options] Override http request option.
  6171. * @throws {RequiredError}
  6172. * @memberof ShareApi
  6173. */
  6174. public getAllSharedLinks(options?: AxiosRequestConfig) {
  6175. return ShareApiFp(this.configuration).getAllSharedLinks(options).then((request) => request(this.axios, this.basePath));
  6176. }
  6177. /**
  6178. *
  6179. * @param {*} [options] Override http request option.
  6180. * @throws {RequiredError}
  6181. * @memberof ShareApi
  6182. */
  6183. public getMySharedLink(options?: AxiosRequestConfig) {
  6184. return ShareApiFp(this.configuration).getMySharedLink(options).then((request) => request(this.axios, this.basePath));
  6185. }
  6186. /**
  6187. *
  6188. * @param {string} id
  6189. * @param {*} [options] Override http request option.
  6190. * @throws {RequiredError}
  6191. * @memberof ShareApi
  6192. */
  6193. public getSharedLinkById(id: string, options?: AxiosRequestConfig) {
  6194. return ShareApiFp(this.configuration).getSharedLinkById(id, options).then((request) => request(this.axios, this.basePath));
  6195. }
  6196. /**
  6197. *
  6198. * @param {string} id
  6199. * @param {*} [options] Override http request option.
  6200. * @throws {RequiredError}
  6201. * @memberof ShareApi
  6202. */
  6203. public removeSharedLink(id: string, options?: AxiosRequestConfig) {
  6204. return ShareApiFp(this.configuration).removeSharedLink(id, options).then((request) => request(this.axios, this.basePath));
  6205. }
  6206. }
  6207. /**
  6208. * SystemConfigApi - axios parameter creator
  6209. * @export
  6210. */
  6211. export const SystemConfigApiAxiosParamCreator = function (configuration?: Configuration) {
  6212. return {
  6213. /**
  6214. *
  6215. * @param {*} [options] Override http request option.
  6216. * @throws {RequiredError}
  6217. */
  6218. getConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6219. const localVarPath = `/system-config`;
  6220. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6221. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6222. let baseOptions;
  6223. if (configuration) {
  6224. baseOptions = configuration.baseOptions;
  6225. }
  6226. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6227. const localVarHeaderParameter = {} as any;
  6228. const localVarQueryParameter = {} as any;
  6229. // authentication bearer required
  6230. // http bearer authentication required
  6231. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6232. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6233. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6234. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6235. return {
  6236. url: toPathString(localVarUrlObj),
  6237. options: localVarRequestOptions,
  6238. };
  6239. },
  6240. /**
  6241. *
  6242. * @param {*} [options] Override http request option.
  6243. * @throws {RequiredError}
  6244. */
  6245. getDefaults: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6246. const localVarPath = `/system-config/defaults`;
  6247. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6248. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6249. let baseOptions;
  6250. if (configuration) {
  6251. baseOptions = configuration.baseOptions;
  6252. }
  6253. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6254. const localVarHeaderParameter = {} as any;
  6255. const localVarQueryParameter = {} as any;
  6256. // authentication bearer required
  6257. // http bearer authentication required
  6258. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6259. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6260. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6261. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6262. return {
  6263. url: toPathString(localVarUrlObj),
  6264. options: localVarRequestOptions,
  6265. };
  6266. },
  6267. /**
  6268. *
  6269. * @param {*} [options] Override http request option.
  6270. * @throws {RequiredError}
  6271. */
  6272. getStorageTemplateOptions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6273. const localVarPath = `/system-config/storage-template-options`;
  6274. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6275. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6276. let baseOptions;
  6277. if (configuration) {
  6278. baseOptions = configuration.baseOptions;
  6279. }
  6280. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6281. const localVarHeaderParameter = {} as any;
  6282. const localVarQueryParameter = {} as any;
  6283. // authentication bearer required
  6284. // http bearer authentication required
  6285. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6286. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6287. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6288. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6289. return {
  6290. url: toPathString(localVarUrlObj),
  6291. options: localVarRequestOptions,
  6292. };
  6293. },
  6294. /**
  6295. *
  6296. * @param {SystemConfigDto} systemConfigDto
  6297. * @param {*} [options] Override http request option.
  6298. * @throws {RequiredError}
  6299. */
  6300. updateConfig: async (systemConfigDto: SystemConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6301. // verify required parameter 'systemConfigDto' is not null or undefined
  6302. assertParamExists('updateConfig', 'systemConfigDto', systemConfigDto)
  6303. const localVarPath = `/system-config`;
  6304. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6305. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6306. let baseOptions;
  6307. if (configuration) {
  6308. baseOptions = configuration.baseOptions;
  6309. }
  6310. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  6311. const localVarHeaderParameter = {} as any;
  6312. const localVarQueryParameter = {} as any;
  6313. // authentication bearer required
  6314. // http bearer authentication required
  6315. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6316. localVarHeaderParameter['Content-Type'] = 'application/json';
  6317. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6318. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6319. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6320. localVarRequestOptions.data = serializeDataIfNeeded(systemConfigDto, localVarRequestOptions, configuration)
  6321. return {
  6322. url: toPathString(localVarUrlObj),
  6323. options: localVarRequestOptions,
  6324. };
  6325. },
  6326. }
  6327. };
  6328. /**
  6329. * SystemConfigApi - functional programming interface
  6330. * @export
  6331. */
  6332. export const SystemConfigApiFp = function(configuration?: Configuration) {
  6333. const localVarAxiosParamCreator = SystemConfigApiAxiosParamCreator(configuration)
  6334. return {
  6335. /**
  6336. *
  6337. * @param {*} [options] Override http request option.
  6338. * @throws {RequiredError}
  6339. */
  6340. async getConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  6341. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfig(options);
  6342. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6343. },
  6344. /**
  6345. *
  6346. * @param {*} [options] Override http request option.
  6347. * @throws {RequiredError}
  6348. */
  6349. async getDefaults(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  6350. const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaults(options);
  6351. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6352. },
  6353. /**
  6354. *
  6355. * @param {*} [options] Override http request option.
  6356. * @throws {RequiredError}
  6357. */
  6358. async getStorageTemplateOptions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigTemplateStorageOptionDto>> {
  6359. const localVarAxiosArgs = await localVarAxiosParamCreator.getStorageTemplateOptions(options);
  6360. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6361. },
  6362. /**
  6363. *
  6364. * @param {SystemConfigDto} systemConfigDto
  6365. * @param {*} [options] Override http request option.
  6366. * @throws {RequiredError}
  6367. */
  6368. async updateConfig(systemConfigDto: SystemConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  6369. const localVarAxiosArgs = await localVarAxiosParamCreator.updateConfig(systemConfigDto, options);
  6370. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6371. },
  6372. }
  6373. };
  6374. /**
  6375. * SystemConfigApi - factory interface
  6376. * @export
  6377. */
  6378. export const SystemConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  6379. const localVarFp = SystemConfigApiFp(configuration)
  6380. return {
  6381. /**
  6382. *
  6383. * @param {*} [options] Override http request option.
  6384. * @throws {RequiredError}
  6385. */
  6386. getConfig(options?: any): AxiosPromise<SystemConfigDto> {
  6387. return localVarFp.getConfig(options).then((request) => request(axios, basePath));
  6388. },
  6389. /**
  6390. *
  6391. * @param {*} [options] Override http request option.
  6392. * @throws {RequiredError}
  6393. */
  6394. getDefaults(options?: any): AxiosPromise<SystemConfigDto> {
  6395. return localVarFp.getDefaults(options).then((request) => request(axios, basePath));
  6396. },
  6397. /**
  6398. *
  6399. * @param {*} [options] Override http request option.
  6400. * @throws {RequiredError}
  6401. */
  6402. getStorageTemplateOptions(options?: any): AxiosPromise<SystemConfigTemplateStorageOptionDto> {
  6403. return localVarFp.getStorageTemplateOptions(options).then((request) => request(axios, basePath));
  6404. },
  6405. /**
  6406. *
  6407. * @param {SystemConfigDto} systemConfigDto
  6408. * @param {*} [options] Override http request option.
  6409. * @throws {RequiredError}
  6410. */
  6411. updateConfig(systemConfigDto: SystemConfigDto, options?: any): AxiosPromise<SystemConfigDto> {
  6412. return localVarFp.updateConfig(systemConfigDto, options).then((request) => request(axios, basePath));
  6413. },
  6414. };
  6415. };
  6416. /**
  6417. * SystemConfigApi - object-oriented interface
  6418. * @export
  6419. * @class SystemConfigApi
  6420. * @extends {BaseAPI}
  6421. */
  6422. export class SystemConfigApi extends BaseAPI {
  6423. /**
  6424. *
  6425. * @param {*} [options] Override http request option.
  6426. * @throws {RequiredError}
  6427. * @memberof SystemConfigApi
  6428. */
  6429. public getConfig(options?: AxiosRequestConfig) {
  6430. return SystemConfigApiFp(this.configuration).getConfig(options).then((request) => request(this.axios, this.basePath));
  6431. }
  6432. /**
  6433. *
  6434. * @param {*} [options] Override http request option.
  6435. * @throws {RequiredError}
  6436. * @memberof SystemConfigApi
  6437. */
  6438. public getDefaults(options?: AxiosRequestConfig) {
  6439. return SystemConfigApiFp(this.configuration).getDefaults(options).then((request) => request(this.axios, this.basePath));
  6440. }
  6441. /**
  6442. *
  6443. * @param {*} [options] Override http request option.
  6444. * @throws {RequiredError}
  6445. * @memberof SystemConfigApi
  6446. */
  6447. public getStorageTemplateOptions(options?: AxiosRequestConfig) {
  6448. return SystemConfigApiFp(this.configuration).getStorageTemplateOptions(options).then((request) => request(this.axios, this.basePath));
  6449. }
  6450. /**
  6451. *
  6452. * @param {SystemConfigDto} systemConfigDto
  6453. * @param {*} [options] Override http request option.
  6454. * @throws {RequiredError}
  6455. * @memberof SystemConfigApi
  6456. */
  6457. public updateConfig(systemConfigDto: SystemConfigDto, options?: AxiosRequestConfig) {
  6458. return SystemConfigApiFp(this.configuration).updateConfig(systemConfigDto, options).then((request) => request(this.axios, this.basePath));
  6459. }
  6460. }
  6461. /**
  6462. * TagApi - axios parameter creator
  6463. * @export
  6464. */
  6465. export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
  6466. return {
  6467. /**
  6468. *
  6469. * @param {string} id
  6470. * @param {*} [options] Override http request option.
  6471. * @throws {RequiredError}
  6472. */
  6473. _delete: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6474. // verify required parameter 'id' is not null or undefined
  6475. assertParamExists('_delete', 'id', id)
  6476. const localVarPath = `/tag/{id}`
  6477. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6478. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6479. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6480. let baseOptions;
  6481. if (configuration) {
  6482. baseOptions = configuration.baseOptions;
  6483. }
  6484. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  6485. const localVarHeaderParameter = {} as any;
  6486. const localVarQueryParameter = {} as any;
  6487. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6488. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6489. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6490. return {
  6491. url: toPathString(localVarUrlObj),
  6492. options: localVarRequestOptions,
  6493. };
  6494. },
  6495. /**
  6496. *
  6497. * @param {CreateTagDto} createTagDto
  6498. * @param {*} [options] Override http request option.
  6499. * @throws {RequiredError}
  6500. */
  6501. create: async (createTagDto: CreateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6502. // verify required parameter 'createTagDto' is not null or undefined
  6503. assertParamExists('create', 'createTagDto', createTagDto)
  6504. const localVarPath = `/tag`;
  6505. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6506. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6507. let baseOptions;
  6508. if (configuration) {
  6509. baseOptions = configuration.baseOptions;
  6510. }
  6511. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6512. const localVarHeaderParameter = {} as any;
  6513. const localVarQueryParameter = {} as any;
  6514. localVarHeaderParameter['Content-Type'] = 'application/json';
  6515. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6516. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6517. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6518. localVarRequestOptions.data = serializeDataIfNeeded(createTagDto, localVarRequestOptions, configuration)
  6519. return {
  6520. url: toPathString(localVarUrlObj),
  6521. options: localVarRequestOptions,
  6522. };
  6523. },
  6524. /**
  6525. *
  6526. * @param {*} [options] Override http request option.
  6527. * @throws {RequiredError}
  6528. */
  6529. findAll: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6530. const localVarPath = `/tag`;
  6531. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6532. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6533. let baseOptions;
  6534. if (configuration) {
  6535. baseOptions = configuration.baseOptions;
  6536. }
  6537. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6538. const localVarHeaderParameter = {} as any;
  6539. const localVarQueryParameter = {} as any;
  6540. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6541. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6542. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6543. return {
  6544. url: toPathString(localVarUrlObj),
  6545. options: localVarRequestOptions,
  6546. };
  6547. },
  6548. /**
  6549. *
  6550. * @param {string} id
  6551. * @param {*} [options] Override http request option.
  6552. * @throws {RequiredError}
  6553. */
  6554. findOne: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6555. // verify required parameter 'id' is not null or undefined
  6556. assertParamExists('findOne', 'id', id)
  6557. const localVarPath = `/tag/{id}`
  6558. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6559. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6560. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6561. let baseOptions;
  6562. if (configuration) {
  6563. baseOptions = configuration.baseOptions;
  6564. }
  6565. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6566. const localVarHeaderParameter = {} as any;
  6567. const localVarQueryParameter = {} as any;
  6568. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6569. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6570. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6571. return {
  6572. url: toPathString(localVarUrlObj),
  6573. options: localVarRequestOptions,
  6574. };
  6575. },
  6576. /**
  6577. *
  6578. * @param {string} id
  6579. * @param {UpdateTagDto} updateTagDto
  6580. * @param {*} [options] Override http request option.
  6581. * @throws {RequiredError}
  6582. */
  6583. update: async (id: string, updateTagDto: UpdateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6584. // verify required parameter 'id' is not null or undefined
  6585. assertParamExists('update', 'id', id)
  6586. // verify required parameter 'updateTagDto' is not null or undefined
  6587. assertParamExists('update', 'updateTagDto', updateTagDto)
  6588. const localVarPath = `/tag/{id}`
  6589. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6590. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6591. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6592. let baseOptions;
  6593. if (configuration) {
  6594. baseOptions = configuration.baseOptions;
  6595. }
  6596. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  6597. const localVarHeaderParameter = {} as any;
  6598. const localVarQueryParameter = {} as any;
  6599. localVarHeaderParameter['Content-Type'] = 'application/json';
  6600. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6601. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6602. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6603. localVarRequestOptions.data = serializeDataIfNeeded(updateTagDto, localVarRequestOptions, configuration)
  6604. return {
  6605. url: toPathString(localVarUrlObj),
  6606. options: localVarRequestOptions,
  6607. };
  6608. },
  6609. }
  6610. };
  6611. /**
  6612. * TagApi - functional programming interface
  6613. * @export
  6614. */
  6615. export const TagApiFp = function(configuration?: Configuration) {
  6616. const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
  6617. return {
  6618. /**
  6619. *
  6620. * @param {string} id
  6621. * @param {*} [options] Override http request option.
  6622. * @throws {RequiredError}
  6623. */
  6624. async _delete(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  6625. const localVarAxiosArgs = await localVarAxiosParamCreator._delete(id, options);
  6626. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6627. },
  6628. /**
  6629. *
  6630. * @param {CreateTagDto} createTagDto
  6631. * @param {*} [options] Override http request option.
  6632. * @throws {RequiredError}
  6633. */
  6634. async create(createTagDto: CreateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  6635. const localVarAxiosArgs = await localVarAxiosParamCreator.create(createTagDto, options);
  6636. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6637. },
  6638. /**
  6639. *
  6640. * @param {*} [options] Override http request option.
  6641. * @throws {RequiredError}
  6642. */
  6643. async findAll(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagResponseDto>>> {
  6644. const localVarAxiosArgs = await localVarAxiosParamCreator.findAll(options);
  6645. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6646. },
  6647. /**
  6648. *
  6649. * @param {string} id
  6650. * @param {*} [options] Override http request option.
  6651. * @throws {RequiredError}
  6652. */
  6653. async findOne(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  6654. const localVarAxiosArgs = await localVarAxiosParamCreator.findOne(id, options);
  6655. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6656. },
  6657. /**
  6658. *
  6659. * @param {string} id
  6660. * @param {UpdateTagDto} updateTagDto
  6661. * @param {*} [options] Override http request option.
  6662. * @throws {RequiredError}
  6663. */
  6664. async update(id: string, updateTagDto: UpdateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  6665. const localVarAxiosArgs = await localVarAxiosParamCreator.update(id, updateTagDto, options);
  6666. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  6667. },
  6668. }
  6669. };
  6670. /**
  6671. * TagApi - factory interface
  6672. * @export
  6673. */
  6674. export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  6675. const localVarFp = TagApiFp(configuration)
  6676. return {
  6677. /**
  6678. *
  6679. * @param {string} id
  6680. * @param {*} [options] Override http request option.
  6681. * @throws {RequiredError}
  6682. */
  6683. _delete(id: string, options?: any): AxiosPromise<void> {
  6684. return localVarFp._delete(id, options).then((request) => request(axios, basePath));
  6685. },
  6686. /**
  6687. *
  6688. * @param {CreateTagDto} createTagDto
  6689. * @param {*} [options] Override http request option.
  6690. * @throws {RequiredError}
  6691. */
  6692. create(createTagDto: CreateTagDto, options?: any): AxiosPromise<TagResponseDto> {
  6693. return localVarFp.create(createTagDto, options).then((request) => request(axios, basePath));
  6694. },
  6695. /**
  6696. *
  6697. * @param {*} [options] Override http request option.
  6698. * @throws {RequiredError}
  6699. */
  6700. findAll(options?: any): AxiosPromise<Array<TagResponseDto>> {
  6701. return localVarFp.findAll(options).then((request) => request(axios, basePath));
  6702. },
  6703. /**
  6704. *
  6705. * @param {string} id
  6706. * @param {*} [options] Override http request option.
  6707. * @throws {RequiredError}
  6708. */
  6709. findOne(id: string, options?: any): AxiosPromise<TagResponseDto> {
  6710. return localVarFp.findOne(id, options).then((request) => request(axios, basePath));
  6711. },
  6712. /**
  6713. *
  6714. * @param {string} id
  6715. * @param {UpdateTagDto} updateTagDto
  6716. * @param {*} [options] Override http request option.
  6717. * @throws {RequiredError}
  6718. */
  6719. update(id: string, updateTagDto: UpdateTagDto, options?: any): AxiosPromise<TagResponseDto> {
  6720. return localVarFp.update(id, updateTagDto, options).then((request) => request(axios, basePath));
  6721. },
  6722. };
  6723. };
  6724. /**
  6725. * TagApi - object-oriented interface
  6726. * @export
  6727. * @class TagApi
  6728. * @extends {BaseAPI}
  6729. */
  6730. export class TagApi extends BaseAPI {
  6731. /**
  6732. *
  6733. * @param {string} id
  6734. * @param {*} [options] Override http request option.
  6735. * @throws {RequiredError}
  6736. * @memberof TagApi
  6737. */
  6738. public _delete(id: string, options?: AxiosRequestConfig) {
  6739. return TagApiFp(this.configuration)._delete(id, options).then((request) => request(this.axios, this.basePath));
  6740. }
  6741. /**
  6742. *
  6743. * @param {CreateTagDto} createTagDto
  6744. * @param {*} [options] Override http request option.
  6745. * @throws {RequiredError}
  6746. * @memberof TagApi
  6747. */
  6748. public create(createTagDto: CreateTagDto, options?: AxiosRequestConfig) {
  6749. return TagApiFp(this.configuration).create(createTagDto, options).then((request) => request(this.axios, this.basePath));
  6750. }
  6751. /**
  6752. *
  6753. * @param {*} [options] Override http request option.
  6754. * @throws {RequiredError}
  6755. * @memberof TagApi
  6756. */
  6757. public findAll(options?: AxiosRequestConfig) {
  6758. return TagApiFp(this.configuration).findAll(options).then((request) => request(this.axios, this.basePath));
  6759. }
  6760. /**
  6761. *
  6762. * @param {string} id
  6763. * @param {*} [options] Override http request option.
  6764. * @throws {RequiredError}
  6765. * @memberof TagApi
  6766. */
  6767. public findOne(id: string, options?: AxiosRequestConfig) {
  6768. return TagApiFp(this.configuration).findOne(id, options).then((request) => request(this.axios, this.basePath));
  6769. }
  6770. /**
  6771. *
  6772. * @param {string} id
  6773. * @param {UpdateTagDto} updateTagDto
  6774. * @param {*} [options] Override http request option.
  6775. * @throws {RequiredError}
  6776. * @memberof TagApi
  6777. */
  6778. public update(id: string, updateTagDto: UpdateTagDto, options?: AxiosRequestConfig) {
  6779. return TagApiFp(this.configuration).update(id, updateTagDto, options).then((request) => request(this.axios, this.basePath));
  6780. }
  6781. }
  6782. /**
  6783. * UserApi - axios parameter creator
  6784. * @export
  6785. */
  6786. export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
  6787. return {
  6788. /**
  6789. *
  6790. * @param {any} file
  6791. * @param {*} [options] Override http request option.
  6792. * @throws {RequiredError}
  6793. */
  6794. createProfileImage: async (file: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6795. // verify required parameter 'file' is not null or undefined
  6796. assertParamExists('createProfileImage', 'file', file)
  6797. const localVarPath = `/user/profile-image`;
  6798. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6799. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6800. let baseOptions;
  6801. if (configuration) {
  6802. baseOptions = configuration.baseOptions;
  6803. }
  6804. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6805. const localVarHeaderParameter = {} as any;
  6806. const localVarQueryParameter = {} as any;
  6807. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  6808. // authentication bearer required
  6809. // http bearer authentication required
  6810. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6811. if (file !== undefined) {
  6812. localVarFormParams.append('file', file as any);
  6813. }
  6814. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  6815. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6816. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6817. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6818. localVarRequestOptions.data = localVarFormParams;
  6819. return {
  6820. url: toPathString(localVarUrlObj),
  6821. options: localVarRequestOptions,
  6822. };
  6823. },
  6824. /**
  6825. *
  6826. * @param {CreateUserDto} createUserDto
  6827. * @param {*} [options] Override http request option.
  6828. * @throws {RequiredError}
  6829. */
  6830. createUser: async (createUserDto: CreateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6831. // verify required parameter 'createUserDto' is not null or undefined
  6832. assertParamExists('createUser', 'createUserDto', createUserDto)
  6833. const localVarPath = `/user`;
  6834. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6835. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6836. let baseOptions;
  6837. if (configuration) {
  6838. baseOptions = configuration.baseOptions;
  6839. }
  6840. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6841. const localVarHeaderParameter = {} as any;
  6842. const localVarQueryParameter = {} as any;
  6843. // authentication bearer required
  6844. // http bearer authentication required
  6845. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6846. localVarHeaderParameter['Content-Type'] = 'application/json';
  6847. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6848. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6849. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6850. localVarRequestOptions.data = serializeDataIfNeeded(createUserDto, localVarRequestOptions, configuration)
  6851. return {
  6852. url: toPathString(localVarUrlObj),
  6853. options: localVarRequestOptions,
  6854. };
  6855. },
  6856. /**
  6857. *
  6858. * @param {string} userId
  6859. * @param {*} [options] Override http request option.
  6860. * @throws {RequiredError}
  6861. */
  6862. deleteUser: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6863. // verify required parameter 'userId' is not null or undefined
  6864. assertParamExists('deleteUser', 'userId', userId)
  6865. const localVarPath = `/user/{userId}`
  6866. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  6867. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6868. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6869. let baseOptions;
  6870. if (configuration) {
  6871. baseOptions = configuration.baseOptions;
  6872. }
  6873. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  6874. const localVarHeaderParameter = {} as any;
  6875. const localVarQueryParameter = {} as any;
  6876. // authentication bearer required
  6877. // http bearer authentication required
  6878. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6879. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6880. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6881. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6882. return {
  6883. url: toPathString(localVarUrlObj),
  6884. options: localVarRequestOptions,
  6885. };
  6886. },
  6887. /**
  6888. *
  6889. * @param {boolean} isAll
  6890. * @param {*} [options] Override http request option.
  6891. * @throws {RequiredError}
  6892. */
  6893. getAllUsers: async (isAll: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6894. // verify required parameter 'isAll' is not null or undefined
  6895. assertParamExists('getAllUsers', 'isAll', isAll)
  6896. const localVarPath = `/user`;
  6897. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6898. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6899. let baseOptions;
  6900. if (configuration) {
  6901. baseOptions = configuration.baseOptions;
  6902. }
  6903. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6904. const localVarHeaderParameter = {} as any;
  6905. const localVarQueryParameter = {} as any;
  6906. // authentication bearer required
  6907. // http bearer authentication required
  6908. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6909. if (isAll !== undefined) {
  6910. localVarQueryParameter['isAll'] = isAll;
  6911. }
  6912. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6913. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6914. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6915. return {
  6916. url: toPathString(localVarUrlObj),
  6917. options: localVarRequestOptions,
  6918. };
  6919. },
  6920. /**
  6921. *
  6922. * @param {*} [options] Override http request option.
  6923. * @throws {RequiredError}
  6924. */
  6925. getMyUserInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6926. const localVarPath = `/user/me`;
  6927. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6928. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6929. let baseOptions;
  6930. if (configuration) {
  6931. baseOptions = configuration.baseOptions;
  6932. }
  6933. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6934. const localVarHeaderParameter = {} as any;
  6935. const localVarQueryParameter = {} as any;
  6936. // authentication bearer required
  6937. // http bearer authentication required
  6938. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6939. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6940. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6941. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6942. return {
  6943. url: toPathString(localVarUrlObj),
  6944. options: localVarRequestOptions,
  6945. };
  6946. },
  6947. /**
  6948. *
  6949. * @param {string} userId
  6950. * @param {*} [options] Override http request option.
  6951. * @throws {RequiredError}
  6952. */
  6953. getProfileImage: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6954. // verify required parameter 'userId' is not null or undefined
  6955. assertParamExists('getProfileImage', 'userId', userId)
  6956. const localVarPath = `/user/profile-image/{userId}`
  6957. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  6958. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6959. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6960. let baseOptions;
  6961. if (configuration) {
  6962. baseOptions = configuration.baseOptions;
  6963. }
  6964. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6965. const localVarHeaderParameter = {} as any;
  6966. const localVarQueryParameter = {} as any;
  6967. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6968. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6969. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6970. return {
  6971. url: toPathString(localVarUrlObj),
  6972. options: localVarRequestOptions,
  6973. };
  6974. },
  6975. /**
  6976. *
  6977. * @param {string} userId
  6978. * @param {*} [options] Override http request option.
  6979. * @throws {RequiredError}
  6980. */
  6981. getUserById: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6982. // verify required parameter 'userId' is not null or undefined
  6983. assertParamExists('getUserById', 'userId', userId)
  6984. const localVarPath = `/user/info/{userId}`
  6985. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  6986. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6987. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6988. let baseOptions;
  6989. if (configuration) {
  6990. baseOptions = configuration.baseOptions;
  6991. }
  6992. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6993. const localVarHeaderParameter = {} as any;
  6994. const localVarQueryParameter = {} as any;
  6995. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6996. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6997. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6998. return {
  6999. url: toPathString(localVarUrlObj),
  7000. options: localVarRequestOptions,
  7001. };
  7002. },
  7003. /**
  7004. *
  7005. * @param {boolean} [admin]
  7006. * @param {*} [options] Override http request option.
  7007. * @throws {RequiredError}
  7008. */
  7009. getUserCount: async (admin?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7010. const localVarPath = `/user/count`;
  7011. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7012. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7013. let baseOptions;
  7014. if (configuration) {
  7015. baseOptions = configuration.baseOptions;
  7016. }
  7017. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7018. const localVarHeaderParameter = {} as any;
  7019. const localVarQueryParameter = {} as any;
  7020. if (admin !== undefined) {
  7021. localVarQueryParameter['admin'] = admin;
  7022. }
  7023. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7024. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7025. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7026. return {
  7027. url: toPathString(localVarUrlObj),
  7028. options: localVarRequestOptions,
  7029. };
  7030. },
  7031. /**
  7032. *
  7033. * @param {string} userId
  7034. * @param {*} [options] Override http request option.
  7035. * @throws {RequiredError}
  7036. */
  7037. restoreUser: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7038. // verify required parameter 'userId' is not null or undefined
  7039. assertParamExists('restoreUser', 'userId', userId)
  7040. const localVarPath = `/user/{userId}/restore`
  7041. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  7042. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7043. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7044. let baseOptions;
  7045. if (configuration) {
  7046. baseOptions = configuration.baseOptions;
  7047. }
  7048. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7049. const localVarHeaderParameter = {} as any;
  7050. const localVarQueryParameter = {} as any;
  7051. // authentication bearer required
  7052. // http bearer authentication required
  7053. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7054. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7055. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7056. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7057. return {
  7058. url: toPathString(localVarUrlObj),
  7059. options: localVarRequestOptions,
  7060. };
  7061. },
  7062. /**
  7063. *
  7064. * @param {UpdateUserDto} updateUserDto
  7065. * @param {*} [options] Override http request option.
  7066. * @throws {RequiredError}
  7067. */
  7068. updateUser: async (updateUserDto: UpdateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7069. // verify required parameter 'updateUserDto' is not null or undefined
  7070. assertParamExists('updateUser', 'updateUserDto', updateUserDto)
  7071. const localVarPath = `/user`;
  7072. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7073. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7074. let baseOptions;
  7075. if (configuration) {
  7076. baseOptions = configuration.baseOptions;
  7077. }
  7078. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7079. const localVarHeaderParameter = {} as any;
  7080. const localVarQueryParameter = {} as any;
  7081. // authentication bearer required
  7082. // http bearer authentication required
  7083. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7084. localVarHeaderParameter['Content-Type'] = 'application/json';
  7085. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7086. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7087. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7088. localVarRequestOptions.data = serializeDataIfNeeded(updateUserDto, localVarRequestOptions, configuration)
  7089. return {
  7090. url: toPathString(localVarUrlObj),
  7091. options: localVarRequestOptions,
  7092. };
  7093. },
  7094. }
  7095. };
  7096. /**
  7097. * UserApi - functional programming interface
  7098. * @export
  7099. */
  7100. export const UserApiFp = function(configuration?: Configuration) {
  7101. const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
  7102. return {
  7103. /**
  7104. *
  7105. * @param {any} file
  7106. * @param {*} [options] Override http request option.
  7107. * @throws {RequiredError}
  7108. */
  7109. async createProfileImage(file: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProfileImageResponseDto>> {
  7110. const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileImage(file, options);
  7111. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7112. },
  7113. /**
  7114. *
  7115. * @param {CreateUserDto} createUserDto
  7116. * @param {*} [options] Override http request option.
  7117. * @throws {RequiredError}
  7118. */
  7119. async createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  7120. const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserDto, options);
  7121. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7122. },
  7123. /**
  7124. *
  7125. * @param {string} userId
  7126. * @param {*} [options] Override http request option.
  7127. * @throws {RequiredError}
  7128. */
  7129. async deleteUser(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  7130. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(userId, options);
  7131. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7132. },
  7133. /**
  7134. *
  7135. * @param {boolean} isAll
  7136. * @param {*} [options] Override http request option.
  7137. * @throws {RequiredError}
  7138. */
  7139. async getAllUsers(isAll: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  7140. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(isAll, options);
  7141. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7142. },
  7143. /**
  7144. *
  7145. * @param {*} [options] Override http request option.
  7146. * @throws {RequiredError}
  7147. */
  7148. async getMyUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  7149. const localVarAxiosArgs = await localVarAxiosParamCreator.getMyUserInfo(options);
  7150. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7151. },
  7152. /**
  7153. *
  7154. * @param {string} userId
  7155. * @param {*} [options] Override http request option.
  7156. * @throws {RequiredError}
  7157. */
  7158. async getProfileImage(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  7159. const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileImage(userId, options);
  7160. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7161. },
  7162. /**
  7163. *
  7164. * @param {string} userId
  7165. * @param {*} [options] Override http request option.
  7166. * @throws {RequiredError}
  7167. */
  7168. async getUserById(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  7169. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(userId, options);
  7170. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7171. },
  7172. /**
  7173. *
  7174. * @param {boolean} [admin]
  7175. * @param {*} [options] Override http request option.
  7176. * @throws {RequiredError}
  7177. */
  7178. async getUserCount(admin?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserCountResponseDto>> {
  7179. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserCount(admin, options);
  7180. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7181. },
  7182. /**
  7183. *
  7184. * @param {string} userId
  7185. * @param {*} [options] Override http request option.
  7186. * @throws {RequiredError}
  7187. */
  7188. async restoreUser(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  7189. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreUser(userId, options);
  7190. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7191. },
  7192. /**
  7193. *
  7194. * @param {UpdateUserDto} updateUserDto
  7195. * @param {*} [options] Override http request option.
  7196. * @throws {RequiredError}
  7197. */
  7198. async updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  7199. const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(updateUserDto, options);
  7200. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7201. },
  7202. }
  7203. };
  7204. /**
  7205. * UserApi - factory interface
  7206. * @export
  7207. */
  7208. export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7209. const localVarFp = UserApiFp(configuration)
  7210. return {
  7211. /**
  7212. *
  7213. * @param {any} file
  7214. * @param {*} [options] Override http request option.
  7215. * @throws {RequiredError}
  7216. */
  7217. createProfileImage(file: any, options?: any): AxiosPromise<CreateProfileImageResponseDto> {
  7218. return localVarFp.createProfileImage(file, options).then((request) => request(axios, basePath));
  7219. },
  7220. /**
  7221. *
  7222. * @param {CreateUserDto} createUserDto
  7223. * @param {*} [options] Override http request option.
  7224. * @throws {RequiredError}
  7225. */
  7226. createUser(createUserDto: CreateUserDto, options?: any): AxiosPromise<UserResponseDto> {
  7227. return localVarFp.createUser(createUserDto, options).then((request) => request(axios, basePath));
  7228. },
  7229. /**
  7230. *
  7231. * @param {string} userId
  7232. * @param {*} [options] Override http request option.
  7233. * @throws {RequiredError}
  7234. */
  7235. deleteUser(userId: string, options?: any): AxiosPromise<UserResponseDto> {
  7236. return localVarFp.deleteUser(userId, options).then((request) => request(axios, basePath));
  7237. },
  7238. /**
  7239. *
  7240. * @param {boolean} isAll
  7241. * @param {*} [options] Override http request option.
  7242. * @throws {RequiredError}
  7243. */
  7244. getAllUsers(isAll: boolean, options?: any): AxiosPromise<Array<UserResponseDto>> {
  7245. return localVarFp.getAllUsers(isAll, options).then((request) => request(axios, basePath));
  7246. },
  7247. /**
  7248. *
  7249. * @param {*} [options] Override http request option.
  7250. * @throws {RequiredError}
  7251. */
  7252. getMyUserInfo(options?: any): AxiosPromise<UserResponseDto> {
  7253. return localVarFp.getMyUserInfo(options).then((request) => request(axios, basePath));
  7254. },
  7255. /**
  7256. *
  7257. * @param {string} userId
  7258. * @param {*} [options] Override http request option.
  7259. * @throws {RequiredError}
  7260. */
  7261. getProfileImage(userId: string, options?: any): AxiosPromise<object> {
  7262. return localVarFp.getProfileImage(userId, options).then((request) => request(axios, basePath));
  7263. },
  7264. /**
  7265. *
  7266. * @param {string} userId
  7267. * @param {*} [options] Override http request option.
  7268. * @throws {RequiredError}
  7269. */
  7270. getUserById(userId: string, options?: any): AxiosPromise<UserResponseDto> {
  7271. return localVarFp.getUserById(userId, options).then((request) => request(axios, basePath));
  7272. },
  7273. /**
  7274. *
  7275. * @param {boolean} [admin]
  7276. * @param {*} [options] Override http request option.
  7277. * @throws {RequiredError}
  7278. */
  7279. getUserCount(admin?: boolean, options?: any): AxiosPromise<UserCountResponseDto> {
  7280. return localVarFp.getUserCount(admin, options).then((request) => request(axios, basePath));
  7281. },
  7282. /**
  7283. *
  7284. * @param {string} userId
  7285. * @param {*} [options] Override http request option.
  7286. * @throws {RequiredError}
  7287. */
  7288. restoreUser(userId: string, options?: any): AxiosPromise<UserResponseDto> {
  7289. return localVarFp.restoreUser(userId, options).then((request) => request(axios, basePath));
  7290. },
  7291. /**
  7292. *
  7293. * @param {UpdateUserDto} updateUserDto
  7294. * @param {*} [options] Override http request option.
  7295. * @throws {RequiredError}
  7296. */
  7297. updateUser(updateUserDto: UpdateUserDto, options?: any): AxiosPromise<UserResponseDto> {
  7298. return localVarFp.updateUser(updateUserDto, options).then((request) => request(axios, basePath));
  7299. },
  7300. };
  7301. };
  7302. /**
  7303. * UserApi - object-oriented interface
  7304. * @export
  7305. * @class UserApi
  7306. * @extends {BaseAPI}
  7307. */
  7308. export class UserApi extends BaseAPI {
  7309. /**
  7310. *
  7311. * @param {any} file
  7312. * @param {*} [options] Override http request option.
  7313. * @throws {RequiredError}
  7314. * @memberof UserApi
  7315. */
  7316. public createProfileImage(file: any, options?: AxiosRequestConfig) {
  7317. return UserApiFp(this.configuration).createProfileImage(file, options).then((request) => request(this.axios, this.basePath));
  7318. }
  7319. /**
  7320. *
  7321. * @param {CreateUserDto} createUserDto
  7322. * @param {*} [options] Override http request option.
  7323. * @throws {RequiredError}
  7324. * @memberof UserApi
  7325. */
  7326. public createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig) {
  7327. return UserApiFp(this.configuration).createUser(createUserDto, options).then((request) => request(this.axios, this.basePath));
  7328. }
  7329. /**
  7330. *
  7331. * @param {string} userId
  7332. * @param {*} [options] Override http request option.
  7333. * @throws {RequiredError}
  7334. * @memberof UserApi
  7335. */
  7336. public deleteUser(userId: string, options?: AxiosRequestConfig) {
  7337. return UserApiFp(this.configuration).deleteUser(userId, options).then((request) => request(this.axios, this.basePath));
  7338. }
  7339. /**
  7340. *
  7341. * @param {boolean} isAll
  7342. * @param {*} [options] Override http request option.
  7343. * @throws {RequiredError}
  7344. * @memberof UserApi
  7345. */
  7346. public getAllUsers(isAll: boolean, options?: AxiosRequestConfig) {
  7347. return UserApiFp(this.configuration).getAllUsers(isAll, options).then((request) => request(this.axios, this.basePath));
  7348. }
  7349. /**
  7350. *
  7351. * @param {*} [options] Override http request option.
  7352. * @throws {RequiredError}
  7353. * @memberof UserApi
  7354. */
  7355. public getMyUserInfo(options?: AxiosRequestConfig) {
  7356. return UserApiFp(this.configuration).getMyUserInfo(options).then((request) => request(this.axios, this.basePath));
  7357. }
  7358. /**
  7359. *
  7360. * @param {string} userId
  7361. * @param {*} [options] Override http request option.
  7362. * @throws {RequiredError}
  7363. * @memberof UserApi
  7364. */
  7365. public getProfileImage(userId: string, options?: AxiosRequestConfig) {
  7366. return UserApiFp(this.configuration).getProfileImage(userId, options).then((request) => request(this.axios, this.basePath));
  7367. }
  7368. /**
  7369. *
  7370. * @param {string} userId
  7371. * @param {*} [options] Override http request option.
  7372. * @throws {RequiredError}
  7373. * @memberof UserApi
  7374. */
  7375. public getUserById(userId: string, options?: AxiosRequestConfig) {
  7376. return UserApiFp(this.configuration).getUserById(userId, options).then((request) => request(this.axios, this.basePath));
  7377. }
  7378. /**
  7379. *
  7380. * @param {boolean} [admin]
  7381. * @param {*} [options] Override http request option.
  7382. * @throws {RequiredError}
  7383. * @memberof UserApi
  7384. */
  7385. public getUserCount(admin?: boolean, options?: AxiosRequestConfig) {
  7386. return UserApiFp(this.configuration).getUserCount(admin, options).then((request) => request(this.axios, this.basePath));
  7387. }
  7388. /**
  7389. *
  7390. * @param {string} userId
  7391. * @param {*} [options] Override http request option.
  7392. * @throws {RequiredError}
  7393. * @memberof UserApi
  7394. */
  7395. public restoreUser(userId: string, options?: AxiosRequestConfig) {
  7396. return UserApiFp(this.configuration).restoreUser(userId, options).then((request) => request(this.axios, this.basePath));
  7397. }
  7398. /**
  7399. *
  7400. * @param {UpdateUserDto} updateUserDto
  7401. * @param {*} [options] Override http request option.
  7402. * @throws {RequiredError}
  7403. * @memberof UserApi
  7404. */
  7405. public updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig) {
  7406. return UserApiFp(this.configuration).updateUser(updateUserDto, options).then((request) => request(this.axios, this.basePath));
  7407. }
  7408. }