api.ts 295 KB

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