api.ts 211 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Immich
  5. * Immich API
  6. *
  7. * The version of the OpenAPI document: 1.17.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 AddAssetsDto
  25. */
  26. export interface AddAssetsDto {
  27. /**
  28. *
  29. * @type {Array<string>}
  30. * @memberof AddAssetsDto
  31. */
  32. 'assetIds': Array<string>;
  33. }
  34. /**
  35. *
  36. * @export
  37. * @interface AddAssetsResponseDto
  38. */
  39. export interface AddAssetsResponseDto {
  40. /**
  41. *
  42. * @type {number}
  43. * @memberof AddAssetsResponseDto
  44. */
  45. 'successfullyAdded': number;
  46. /**
  47. *
  48. * @type {Array<string>}
  49. * @memberof AddAssetsResponseDto
  50. */
  51. 'alreadyInAlbum': Array<string>;
  52. /**
  53. *
  54. * @type {AlbumResponseDto}
  55. * @memberof AddAssetsResponseDto
  56. */
  57. 'album'?: AlbumResponseDto;
  58. }
  59. /**
  60. *
  61. * @export
  62. * @interface AddUsersDto
  63. */
  64. export interface AddUsersDto {
  65. /**
  66. *
  67. * @type {Array<string>}
  68. * @memberof AddUsersDto
  69. */
  70. 'sharedUserIds': Array<string>;
  71. }
  72. /**
  73. *
  74. * @export
  75. * @interface AdminSignupResponseDto
  76. */
  77. export interface AdminSignupResponseDto {
  78. /**
  79. *
  80. * @type {string}
  81. * @memberof AdminSignupResponseDto
  82. */
  83. 'id': string;
  84. /**
  85. *
  86. * @type {string}
  87. * @memberof AdminSignupResponseDto
  88. */
  89. 'email': string;
  90. /**
  91. *
  92. * @type {string}
  93. * @memberof AdminSignupResponseDto
  94. */
  95. 'firstName': string;
  96. /**
  97. *
  98. * @type {string}
  99. * @memberof AdminSignupResponseDto
  100. */
  101. 'lastName': string;
  102. /**
  103. *
  104. * @type {string}
  105. * @memberof AdminSignupResponseDto
  106. */
  107. 'createdAt': string;
  108. }
  109. /**
  110. *
  111. * @export
  112. * @interface AlbumCountResponseDto
  113. */
  114. export interface AlbumCountResponseDto {
  115. /**
  116. *
  117. * @type {number}
  118. * @memberof AlbumCountResponseDto
  119. */
  120. 'owned': number;
  121. /**
  122. *
  123. * @type {number}
  124. * @memberof AlbumCountResponseDto
  125. */
  126. 'shared': number;
  127. /**
  128. *
  129. * @type {number}
  130. * @memberof AlbumCountResponseDto
  131. */
  132. 'sharing': number;
  133. }
  134. /**
  135. *
  136. * @export
  137. * @interface AlbumResponseDto
  138. */
  139. export interface AlbumResponseDto {
  140. /**
  141. *
  142. * @type {number}
  143. * @memberof AlbumResponseDto
  144. */
  145. 'assetCount': number;
  146. /**
  147. *
  148. * @type {string}
  149. * @memberof AlbumResponseDto
  150. */
  151. 'id': string;
  152. /**
  153. *
  154. * @type {string}
  155. * @memberof AlbumResponseDto
  156. */
  157. 'ownerId': string;
  158. /**
  159. *
  160. * @type {string}
  161. * @memberof AlbumResponseDto
  162. */
  163. 'albumName': string;
  164. /**
  165. *
  166. * @type {string}
  167. * @memberof AlbumResponseDto
  168. */
  169. 'createdAt': string;
  170. /**
  171. *
  172. * @type {string}
  173. * @memberof AlbumResponseDto
  174. */
  175. 'albumThumbnailAssetId': string | null;
  176. /**
  177. *
  178. * @type {boolean}
  179. * @memberof AlbumResponseDto
  180. */
  181. 'shared': boolean;
  182. /**
  183. *
  184. * @type {Array<UserResponseDto>}
  185. * @memberof AlbumResponseDto
  186. */
  187. 'sharedUsers': Array<UserResponseDto>;
  188. /**
  189. *
  190. * @type {Array<AssetResponseDto>}
  191. * @memberof AlbumResponseDto
  192. */
  193. 'assets': Array<AssetResponseDto>;
  194. }
  195. /**
  196. *
  197. * @export
  198. * @interface AllJobStatusResponseDto
  199. */
  200. export interface AllJobStatusResponseDto {
  201. /**
  202. *
  203. * @type {JobCounts}
  204. * @memberof AllJobStatusResponseDto
  205. */
  206. 'thumbnailGenerationQueueCount': JobCounts;
  207. /**
  208. *
  209. * @type {JobCounts}
  210. * @memberof AllJobStatusResponseDto
  211. */
  212. 'metadataExtractionQueueCount': JobCounts;
  213. /**
  214. *
  215. * @type {JobCounts}
  216. * @memberof AllJobStatusResponseDto
  217. */
  218. 'videoConversionQueueCount': JobCounts;
  219. /**
  220. *
  221. * @type {JobCounts}
  222. * @memberof AllJobStatusResponseDto
  223. */
  224. 'machineLearningQueueCount': JobCounts;
  225. /**
  226. *
  227. * @type {boolean}
  228. * @memberof AllJobStatusResponseDto
  229. */
  230. 'isThumbnailGenerationActive': boolean;
  231. /**
  232. *
  233. * @type {boolean}
  234. * @memberof AllJobStatusResponseDto
  235. */
  236. 'isMetadataExtractionActive': boolean;
  237. /**
  238. *
  239. * @type {boolean}
  240. * @memberof AllJobStatusResponseDto
  241. */
  242. 'isVideoConversionActive': boolean;
  243. /**
  244. *
  245. * @type {boolean}
  246. * @memberof AllJobStatusResponseDto
  247. */
  248. 'isMachineLearningActive': boolean;
  249. }
  250. /**
  251. *
  252. * @export
  253. * @interface AssetCountByTimeBucket
  254. */
  255. export interface AssetCountByTimeBucket {
  256. /**
  257. *
  258. * @type {string}
  259. * @memberof AssetCountByTimeBucket
  260. */
  261. 'timeBucket': string;
  262. /**
  263. *
  264. * @type {number}
  265. * @memberof AssetCountByTimeBucket
  266. */
  267. 'count': number;
  268. }
  269. /**
  270. *
  271. * @export
  272. * @interface AssetCountByTimeBucketResponseDto
  273. */
  274. export interface AssetCountByTimeBucketResponseDto {
  275. /**
  276. *
  277. * @type {number}
  278. * @memberof AssetCountByTimeBucketResponseDto
  279. */
  280. 'totalCount': number;
  281. /**
  282. *
  283. * @type {Array<AssetCountByTimeBucket>}
  284. * @memberof AssetCountByTimeBucketResponseDto
  285. */
  286. 'buckets': Array<AssetCountByTimeBucket>;
  287. }
  288. /**
  289. *
  290. * @export
  291. * @interface AssetCountByUserIdResponseDto
  292. */
  293. export interface AssetCountByUserIdResponseDto {
  294. /**
  295. *
  296. * @type {number}
  297. * @memberof AssetCountByUserIdResponseDto
  298. */
  299. 'audio': number;
  300. /**
  301. *
  302. * @type {number}
  303. * @memberof AssetCountByUserIdResponseDto
  304. */
  305. 'photos': number;
  306. /**
  307. *
  308. * @type {number}
  309. * @memberof AssetCountByUserIdResponseDto
  310. */
  311. 'videos': number;
  312. /**
  313. *
  314. * @type {number}
  315. * @memberof AssetCountByUserIdResponseDto
  316. */
  317. 'other': number;
  318. /**
  319. *
  320. * @type {number}
  321. * @memberof AssetCountByUserIdResponseDto
  322. */
  323. 'total': number;
  324. }
  325. /**
  326. *
  327. * @export
  328. * @interface AssetFileUploadResponseDto
  329. */
  330. export interface AssetFileUploadResponseDto {
  331. /**
  332. *
  333. * @type {string}
  334. * @memberof AssetFileUploadResponseDto
  335. */
  336. 'id': string;
  337. }
  338. /**
  339. *
  340. * @export
  341. * @interface AssetResponseDto
  342. */
  343. export interface AssetResponseDto {
  344. /**
  345. *
  346. * @type {AssetTypeEnum}
  347. * @memberof AssetResponseDto
  348. */
  349. 'type': AssetTypeEnum;
  350. /**
  351. *
  352. * @type {string}
  353. * @memberof AssetResponseDto
  354. */
  355. 'id': string;
  356. /**
  357. *
  358. * @type {string}
  359. * @memberof AssetResponseDto
  360. */
  361. 'deviceAssetId': string;
  362. /**
  363. *
  364. * @type {string}
  365. * @memberof AssetResponseDto
  366. */
  367. 'ownerId': string;
  368. /**
  369. *
  370. * @type {string}
  371. * @memberof AssetResponseDto
  372. */
  373. 'deviceId': string;
  374. /**
  375. *
  376. * @type {string}
  377. * @memberof AssetResponseDto
  378. */
  379. 'originalPath': string;
  380. /**
  381. *
  382. * @type {string}
  383. * @memberof AssetResponseDto
  384. */
  385. 'resizePath': string | null;
  386. /**
  387. *
  388. * @type {string}
  389. * @memberof AssetResponseDto
  390. */
  391. 'createdAt': string;
  392. /**
  393. *
  394. * @type {string}
  395. * @memberof AssetResponseDto
  396. */
  397. 'modifiedAt': string;
  398. /**
  399. *
  400. * @type {boolean}
  401. * @memberof AssetResponseDto
  402. */
  403. 'isFavorite': boolean;
  404. /**
  405. *
  406. * @type {string}
  407. * @memberof AssetResponseDto
  408. */
  409. 'mimeType': string | null;
  410. /**
  411. *
  412. * @type {string}
  413. * @memberof AssetResponseDto
  414. */
  415. 'duration': string;
  416. /**
  417. *
  418. * @type {string}
  419. * @memberof AssetResponseDto
  420. */
  421. 'webpPath': string | null;
  422. /**
  423. *
  424. * @type {string}
  425. * @memberof AssetResponseDto
  426. */
  427. 'encodedVideoPath': string | null;
  428. /**
  429. *
  430. * @type {ExifResponseDto}
  431. * @memberof AssetResponseDto
  432. */
  433. 'exifInfo'?: ExifResponseDto;
  434. /**
  435. *
  436. * @type {SmartInfoResponseDto}
  437. * @memberof AssetResponseDto
  438. */
  439. 'smartInfo'?: SmartInfoResponseDto;
  440. }
  441. /**
  442. *
  443. * @export
  444. * @enum {string}
  445. */
  446. export const AssetTypeEnum = {
  447. Image: 'IMAGE',
  448. Video: 'VIDEO',
  449. Audio: 'AUDIO',
  450. Other: 'OTHER'
  451. } as const;
  452. export type AssetTypeEnum = typeof AssetTypeEnum[keyof typeof AssetTypeEnum];
  453. /**
  454. *
  455. * @export
  456. * @interface CheckDuplicateAssetDto
  457. */
  458. export interface CheckDuplicateAssetDto {
  459. /**
  460. *
  461. * @type {string}
  462. * @memberof CheckDuplicateAssetDto
  463. */
  464. 'deviceAssetId': string;
  465. /**
  466. *
  467. * @type {string}
  468. * @memberof CheckDuplicateAssetDto
  469. */
  470. 'deviceId': string;
  471. }
  472. /**
  473. *
  474. * @export
  475. * @interface CheckDuplicateAssetResponseDto
  476. */
  477. export interface CheckDuplicateAssetResponseDto {
  478. /**
  479. *
  480. * @type {boolean}
  481. * @memberof CheckDuplicateAssetResponseDto
  482. */
  483. 'isExist': boolean;
  484. /**
  485. *
  486. * @type {string}
  487. * @memberof CheckDuplicateAssetResponseDto
  488. */
  489. 'id'?: string;
  490. }
  491. /**
  492. *
  493. * @export
  494. * @interface CheckExistingAssetsDto
  495. */
  496. export interface CheckExistingAssetsDto {
  497. /**
  498. *
  499. * @type {Array<string>}
  500. * @memberof CheckExistingAssetsDto
  501. */
  502. 'deviceAssetIds': Array<string>;
  503. /**
  504. *
  505. * @type {string}
  506. * @memberof CheckExistingAssetsDto
  507. */
  508. 'deviceId': string;
  509. }
  510. /**
  511. *
  512. * @export
  513. * @interface CheckExistingAssetsResponseDto
  514. */
  515. export interface CheckExistingAssetsResponseDto {
  516. /**
  517. *
  518. * @type {Array<string>}
  519. * @memberof CheckExistingAssetsResponseDto
  520. */
  521. 'existingIds': Array<string>;
  522. }
  523. /**
  524. *
  525. * @export
  526. * @interface CreateAlbumDto
  527. */
  528. export interface CreateAlbumDto {
  529. /**
  530. *
  531. * @type {string}
  532. * @memberof CreateAlbumDto
  533. */
  534. 'albumName': string;
  535. /**
  536. *
  537. * @type {Array<string>}
  538. * @memberof CreateAlbumDto
  539. */
  540. 'sharedWithUserIds'?: Array<string>;
  541. /**
  542. *
  543. * @type {Array<string>}
  544. * @memberof CreateAlbumDto
  545. */
  546. 'assetIds'?: Array<string>;
  547. }
  548. /**
  549. *
  550. * @export
  551. * @interface CreateDeviceInfoDto
  552. */
  553. export interface CreateDeviceInfoDto {
  554. /**
  555. *
  556. * @type {DeviceTypeEnum}
  557. * @memberof CreateDeviceInfoDto
  558. */
  559. 'deviceType': DeviceTypeEnum;
  560. /**
  561. *
  562. * @type {string}
  563. * @memberof CreateDeviceInfoDto
  564. */
  565. 'deviceId': string;
  566. /**
  567. *
  568. * @type {boolean}
  569. * @memberof CreateDeviceInfoDto
  570. */
  571. 'isAutoBackup'?: boolean;
  572. }
  573. /**
  574. *
  575. * @export
  576. * @interface CreateProfileImageResponseDto
  577. */
  578. export interface CreateProfileImageResponseDto {
  579. /**
  580. *
  581. * @type {string}
  582. * @memberof CreateProfileImageResponseDto
  583. */
  584. 'userId': string;
  585. /**
  586. *
  587. * @type {string}
  588. * @memberof CreateProfileImageResponseDto
  589. */
  590. 'profileImagePath': string;
  591. }
  592. /**
  593. *
  594. * @export
  595. * @interface CreateUserDto
  596. */
  597. export interface CreateUserDto {
  598. /**
  599. *
  600. * @type {string}
  601. * @memberof CreateUserDto
  602. */
  603. 'email': string;
  604. /**
  605. *
  606. * @type {string}
  607. * @memberof CreateUserDto
  608. */
  609. 'password': string;
  610. /**
  611. *
  612. * @type {string}
  613. * @memberof CreateUserDto
  614. */
  615. 'firstName': string;
  616. /**
  617. *
  618. * @type {string}
  619. * @memberof CreateUserDto
  620. */
  621. 'lastName': string;
  622. }
  623. /**
  624. *
  625. * @export
  626. * @interface CuratedLocationsResponseDto
  627. */
  628. export interface CuratedLocationsResponseDto {
  629. /**
  630. *
  631. * @type {string}
  632. * @memberof CuratedLocationsResponseDto
  633. */
  634. 'id': string;
  635. /**
  636. *
  637. * @type {string}
  638. * @memberof CuratedLocationsResponseDto
  639. */
  640. 'city': string;
  641. /**
  642. *
  643. * @type {string}
  644. * @memberof CuratedLocationsResponseDto
  645. */
  646. 'resizePath': string;
  647. /**
  648. *
  649. * @type {string}
  650. * @memberof CuratedLocationsResponseDto
  651. */
  652. 'deviceAssetId': string;
  653. /**
  654. *
  655. * @type {string}
  656. * @memberof CuratedLocationsResponseDto
  657. */
  658. 'deviceId': string;
  659. }
  660. /**
  661. *
  662. * @export
  663. * @interface CuratedObjectsResponseDto
  664. */
  665. export interface CuratedObjectsResponseDto {
  666. /**
  667. *
  668. * @type {string}
  669. * @memberof CuratedObjectsResponseDto
  670. */
  671. 'id': string;
  672. /**
  673. *
  674. * @type {string}
  675. * @memberof CuratedObjectsResponseDto
  676. */
  677. 'object': string;
  678. /**
  679. *
  680. * @type {string}
  681. * @memberof CuratedObjectsResponseDto
  682. */
  683. 'resizePath': string;
  684. /**
  685. *
  686. * @type {string}
  687. * @memberof CuratedObjectsResponseDto
  688. */
  689. 'deviceAssetId': string;
  690. /**
  691. *
  692. * @type {string}
  693. * @memberof CuratedObjectsResponseDto
  694. */
  695. 'deviceId': string;
  696. }
  697. /**
  698. *
  699. * @export
  700. * @interface DeleteAssetDto
  701. */
  702. export interface DeleteAssetDto {
  703. /**
  704. *
  705. * @type {Array<string>}
  706. * @memberof DeleteAssetDto
  707. */
  708. 'ids': Array<string>;
  709. }
  710. /**
  711. *
  712. * @export
  713. * @interface DeleteAssetResponseDto
  714. */
  715. export interface DeleteAssetResponseDto {
  716. /**
  717. *
  718. * @type {DeleteAssetStatus}
  719. * @memberof DeleteAssetResponseDto
  720. */
  721. 'status': DeleteAssetStatus;
  722. /**
  723. *
  724. * @type {string}
  725. * @memberof DeleteAssetResponseDto
  726. */
  727. 'id': string;
  728. }
  729. /**
  730. *
  731. * @export
  732. * @enum {string}
  733. */
  734. export const DeleteAssetStatus = {
  735. Success: 'SUCCESS',
  736. Failed: 'FAILED'
  737. } as const;
  738. export type DeleteAssetStatus = typeof DeleteAssetStatus[keyof typeof DeleteAssetStatus];
  739. /**
  740. *
  741. * @export
  742. * @interface DeviceInfoResponseDto
  743. */
  744. export interface DeviceInfoResponseDto {
  745. /**
  746. *
  747. * @type {number}
  748. * @memberof DeviceInfoResponseDto
  749. */
  750. 'id': number;
  751. /**
  752. *
  753. * @type {DeviceTypeEnum}
  754. * @memberof DeviceInfoResponseDto
  755. */
  756. 'deviceType': DeviceTypeEnum;
  757. /**
  758. *
  759. * @type {string}
  760. * @memberof DeviceInfoResponseDto
  761. */
  762. 'userId': string;
  763. /**
  764. *
  765. * @type {string}
  766. * @memberof DeviceInfoResponseDto
  767. */
  768. 'deviceId': string;
  769. /**
  770. *
  771. * @type {string}
  772. * @memberof DeviceInfoResponseDto
  773. */
  774. 'createdAt': string;
  775. /**
  776. *
  777. * @type {boolean}
  778. * @memberof DeviceInfoResponseDto
  779. */
  780. 'isAutoBackup': boolean;
  781. }
  782. /**
  783. *
  784. * @export
  785. * @enum {string}
  786. */
  787. export const DeviceTypeEnum = {
  788. Ios: 'IOS',
  789. Android: 'ANDROID',
  790. Web: 'WEB'
  791. } as const;
  792. export type DeviceTypeEnum = typeof DeviceTypeEnum[keyof typeof DeviceTypeEnum];
  793. /**
  794. *
  795. * @export
  796. * @interface ExifResponseDto
  797. */
  798. export interface ExifResponseDto {
  799. /**
  800. *
  801. * @type {number}
  802. * @memberof ExifResponseDto
  803. */
  804. 'id'?: number | null;
  805. /**
  806. *
  807. * @type {number}
  808. * @memberof ExifResponseDto
  809. */
  810. 'fileSizeInByte'?: number | null;
  811. /**
  812. *
  813. * @type {string}
  814. * @memberof ExifResponseDto
  815. */
  816. 'make'?: string | null;
  817. /**
  818. *
  819. * @type {string}
  820. * @memberof ExifResponseDto
  821. */
  822. 'model'?: string | null;
  823. /**
  824. *
  825. * @type {string}
  826. * @memberof ExifResponseDto
  827. */
  828. 'imageName'?: string | null;
  829. /**
  830. *
  831. * @type {number}
  832. * @memberof ExifResponseDto
  833. */
  834. 'exifImageWidth'?: number | null;
  835. /**
  836. *
  837. * @type {number}
  838. * @memberof ExifResponseDto
  839. */
  840. 'exifImageHeight'?: number | null;
  841. /**
  842. *
  843. * @type {string}
  844. * @memberof ExifResponseDto
  845. */
  846. 'orientation'?: string | null;
  847. /**
  848. *
  849. * @type {string}
  850. * @memberof ExifResponseDto
  851. */
  852. 'dateTimeOriginal'?: string | null;
  853. /**
  854. *
  855. * @type {string}
  856. * @memberof ExifResponseDto
  857. */
  858. 'modifyDate'?: string | null;
  859. /**
  860. *
  861. * @type {string}
  862. * @memberof ExifResponseDto
  863. */
  864. 'lensModel'?: string | null;
  865. /**
  866. *
  867. * @type {number}
  868. * @memberof ExifResponseDto
  869. */
  870. 'fNumber'?: number | null;
  871. /**
  872. *
  873. * @type {number}
  874. * @memberof ExifResponseDto
  875. */
  876. 'focalLength'?: number | null;
  877. /**
  878. *
  879. * @type {number}
  880. * @memberof ExifResponseDto
  881. */
  882. 'iso'?: number | null;
  883. /**
  884. *
  885. * @type {number}
  886. * @memberof ExifResponseDto
  887. */
  888. 'exposureTime'?: number | null;
  889. /**
  890. *
  891. * @type {number}
  892. * @memberof ExifResponseDto
  893. */
  894. 'latitude'?: number | null;
  895. /**
  896. *
  897. * @type {number}
  898. * @memberof ExifResponseDto
  899. */
  900. 'longitude'?: number | null;
  901. /**
  902. *
  903. * @type {string}
  904. * @memberof ExifResponseDto
  905. */
  906. 'city'?: string | null;
  907. /**
  908. *
  909. * @type {string}
  910. * @memberof ExifResponseDto
  911. */
  912. 'state'?: string | null;
  913. /**
  914. *
  915. * @type {string}
  916. * @memberof ExifResponseDto
  917. */
  918. 'country'?: string | null;
  919. }
  920. /**
  921. *
  922. * @export
  923. * @interface GetAssetByTimeBucketDto
  924. */
  925. export interface GetAssetByTimeBucketDto {
  926. /**
  927. *
  928. * @type {Array<string>}
  929. * @memberof GetAssetByTimeBucketDto
  930. */
  931. 'timeBucket': Array<string>;
  932. }
  933. /**
  934. *
  935. * @export
  936. * @interface GetAssetCountByTimeBucketDto
  937. */
  938. export interface GetAssetCountByTimeBucketDto {
  939. /**
  940. *
  941. * @type {TimeGroupEnum}
  942. * @memberof GetAssetCountByTimeBucketDto
  943. */
  944. 'timeGroup': TimeGroupEnum;
  945. }
  946. /**
  947. *
  948. * @export
  949. * @enum {string}
  950. */
  951. export const JobCommand = {
  952. Start: 'start',
  953. Stop: 'stop'
  954. } as const;
  955. export type JobCommand = typeof JobCommand[keyof typeof JobCommand];
  956. /**
  957. *
  958. * @export
  959. * @interface JobCommandDto
  960. */
  961. export interface JobCommandDto {
  962. /**
  963. *
  964. * @type {JobCommand}
  965. * @memberof JobCommandDto
  966. */
  967. 'command': JobCommand;
  968. }
  969. /**
  970. *
  971. * @export
  972. * @interface JobCounts
  973. */
  974. export interface JobCounts {
  975. /**
  976. *
  977. * @type {number}
  978. * @memberof JobCounts
  979. */
  980. 'active': number;
  981. /**
  982. *
  983. * @type {number}
  984. * @memberof JobCounts
  985. */
  986. 'completed': number;
  987. /**
  988. *
  989. * @type {number}
  990. * @memberof JobCounts
  991. */
  992. 'failed': number;
  993. /**
  994. *
  995. * @type {number}
  996. * @memberof JobCounts
  997. */
  998. 'delayed': number;
  999. /**
  1000. *
  1001. * @type {number}
  1002. * @memberof JobCounts
  1003. */
  1004. 'waiting': number;
  1005. }
  1006. /**
  1007. *
  1008. * @export
  1009. * @enum {string}
  1010. */
  1011. export const JobId = {
  1012. ThumbnailGeneration: 'thumbnail-generation',
  1013. MetadataExtraction: 'metadata-extraction',
  1014. VideoConversion: 'video-conversion',
  1015. MachineLearning: 'machine-learning'
  1016. } as const;
  1017. export type JobId = typeof JobId[keyof typeof JobId];
  1018. /**
  1019. *
  1020. * @export
  1021. * @interface JobStatusResponseDto
  1022. */
  1023. export interface JobStatusResponseDto {
  1024. /**
  1025. *
  1026. * @type {boolean}
  1027. * @memberof JobStatusResponseDto
  1028. */
  1029. 'isActive': boolean;
  1030. /**
  1031. *
  1032. * @type {object}
  1033. * @memberof JobStatusResponseDto
  1034. */
  1035. 'queueCount': object;
  1036. }
  1037. /**
  1038. *
  1039. * @export
  1040. * @interface LoginCredentialDto
  1041. */
  1042. export interface LoginCredentialDto {
  1043. /**
  1044. *
  1045. * @type {string}
  1046. * @memberof LoginCredentialDto
  1047. */
  1048. 'email': string;
  1049. /**
  1050. *
  1051. * @type {string}
  1052. * @memberof LoginCredentialDto
  1053. */
  1054. 'password': string;
  1055. }
  1056. /**
  1057. *
  1058. * @export
  1059. * @interface LoginResponseDto
  1060. */
  1061. export interface LoginResponseDto {
  1062. /**
  1063. *
  1064. * @type {string}
  1065. * @memberof LoginResponseDto
  1066. */
  1067. 'accessToken': string;
  1068. /**
  1069. *
  1070. * @type {string}
  1071. * @memberof LoginResponseDto
  1072. */
  1073. 'userId': string;
  1074. /**
  1075. *
  1076. * @type {string}
  1077. * @memberof LoginResponseDto
  1078. */
  1079. 'userEmail': string;
  1080. /**
  1081. *
  1082. * @type {string}
  1083. * @memberof LoginResponseDto
  1084. */
  1085. 'firstName': string;
  1086. /**
  1087. *
  1088. * @type {string}
  1089. * @memberof LoginResponseDto
  1090. */
  1091. 'lastName': string;
  1092. /**
  1093. *
  1094. * @type {string}
  1095. * @memberof LoginResponseDto
  1096. */
  1097. 'profileImagePath': string;
  1098. /**
  1099. *
  1100. * @type {boolean}
  1101. * @memberof LoginResponseDto
  1102. */
  1103. 'isAdmin': boolean;
  1104. /**
  1105. *
  1106. * @type {boolean}
  1107. * @memberof LoginResponseDto
  1108. */
  1109. 'shouldChangePassword': boolean;
  1110. }
  1111. /**
  1112. *
  1113. * @export
  1114. * @interface LogoutResponseDto
  1115. */
  1116. export interface LogoutResponseDto {
  1117. /**
  1118. *
  1119. * @type {boolean}
  1120. * @memberof LogoutResponseDto
  1121. */
  1122. 'successful': boolean;
  1123. /**
  1124. *
  1125. * @type {string}
  1126. * @memberof LogoutResponseDto
  1127. */
  1128. 'redirectUri': string;
  1129. }
  1130. /**
  1131. *
  1132. * @export
  1133. * @interface OAuthCallbackDto
  1134. */
  1135. export interface OAuthCallbackDto {
  1136. /**
  1137. *
  1138. * @type {string}
  1139. * @memberof OAuthCallbackDto
  1140. */
  1141. 'url': string;
  1142. }
  1143. /**
  1144. *
  1145. * @export
  1146. * @interface OAuthConfigDto
  1147. */
  1148. export interface OAuthConfigDto {
  1149. /**
  1150. *
  1151. * @type {string}
  1152. * @memberof OAuthConfigDto
  1153. */
  1154. 'redirectUri': string;
  1155. }
  1156. /**
  1157. *
  1158. * @export
  1159. * @interface OAuthConfigResponseDto
  1160. */
  1161. export interface OAuthConfigResponseDto {
  1162. /**
  1163. *
  1164. * @type {boolean}
  1165. * @memberof OAuthConfigResponseDto
  1166. */
  1167. 'enabled': boolean;
  1168. /**
  1169. *
  1170. * @type {string}
  1171. * @memberof OAuthConfigResponseDto
  1172. */
  1173. 'url'?: string;
  1174. /**
  1175. *
  1176. * @type {string}
  1177. * @memberof OAuthConfigResponseDto
  1178. */
  1179. 'buttonText'?: string;
  1180. }
  1181. /**
  1182. *
  1183. * @export
  1184. * @interface RemoveAssetsDto
  1185. */
  1186. export interface RemoveAssetsDto {
  1187. /**
  1188. *
  1189. * @type {Array<string>}
  1190. * @memberof RemoveAssetsDto
  1191. */
  1192. 'assetIds': Array<string>;
  1193. }
  1194. /**
  1195. *
  1196. * @export
  1197. * @interface SearchAssetDto
  1198. */
  1199. export interface SearchAssetDto {
  1200. /**
  1201. *
  1202. * @type {string}
  1203. * @memberof SearchAssetDto
  1204. */
  1205. 'searchTerm': string;
  1206. }
  1207. /**
  1208. *
  1209. * @export
  1210. * @interface ServerInfoResponseDto
  1211. */
  1212. export interface ServerInfoResponseDto {
  1213. /**
  1214. *
  1215. * @type {number}
  1216. * @memberof ServerInfoResponseDto
  1217. */
  1218. 'diskSizeRaw': number;
  1219. /**
  1220. *
  1221. * @type {number}
  1222. * @memberof ServerInfoResponseDto
  1223. */
  1224. 'diskUseRaw': number;
  1225. /**
  1226. *
  1227. * @type {number}
  1228. * @memberof ServerInfoResponseDto
  1229. */
  1230. 'diskAvailableRaw': number;
  1231. /**
  1232. *
  1233. * @type {number}
  1234. * @memberof ServerInfoResponseDto
  1235. */
  1236. 'diskUsagePercentage': number;
  1237. /**
  1238. *
  1239. * @type {string}
  1240. * @memberof ServerInfoResponseDto
  1241. */
  1242. 'diskSize': string;
  1243. /**
  1244. *
  1245. * @type {string}
  1246. * @memberof ServerInfoResponseDto
  1247. */
  1248. 'diskUse': string;
  1249. /**
  1250. *
  1251. * @type {string}
  1252. * @memberof ServerInfoResponseDto
  1253. */
  1254. 'diskAvailable': string;
  1255. }
  1256. /**
  1257. *
  1258. * @export
  1259. * @interface ServerPingResponse
  1260. */
  1261. export interface ServerPingResponse {
  1262. /**
  1263. *
  1264. * @type {string}
  1265. * @memberof ServerPingResponse
  1266. */
  1267. 'res': string;
  1268. }
  1269. /**
  1270. *
  1271. * @export
  1272. * @interface ServerStatsResponseDto
  1273. */
  1274. export interface ServerStatsResponseDto {
  1275. /**
  1276. *
  1277. * @type {number}
  1278. * @memberof ServerStatsResponseDto
  1279. */
  1280. 'photos': number;
  1281. /**
  1282. *
  1283. * @type {number}
  1284. * @memberof ServerStatsResponseDto
  1285. */
  1286. 'videos': number;
  1287. /**
  1288. *
  1289. * @type {number}
  1290. * @memberof ServerStatsResponseDto
  1291. */
  1292. 'objects': number;
  1293. /**
  1294. *
  1295. * @type {number}
  1296. * @memberof ServerStatsResponseDto
  1297. */
  1298. 'usageRaw': number;
  1299. /**
  1300. *
  1301. * @type {string}
  1302. * @memberof ServerStatsResponseDto
  1303. */
  1304. 'usage': string;
  1305. /**
  1306. *
  1307. * @type {Array<UsageByUserDto>}
  1308. * @memberof ServerStatsResponseDto
  1309. */
  1310. 'usageByUser': Array<UsageByUserDto>;
  1311. }
  1312. /**
  1313. *
  1314. * @export
  1315. * @interface ServerVersionReponseDto
  1316. */
  1317. export interface ServerVersionReponseDto {
  1318. /**
  1319. *
  1320. * @type {number}
  1321. * @memberof ServerVersionReponseDto
  1322. */
  1323. 'major': number;
  1324. /**
  1325. *
  1326. * @type {number}
  1327. * @memberof ServerVersionReponseDto
  1328. */
  1329. 'minor': number;
  1330. /**
  1331. *
  1332. * @type {number}
  1333. * @memberof ServerVersionReponseDto
  1334. */
  1335. 'patch': number;
  1336. /**
  1337. *
  1338. * @type {number}
  1339. * @memberof ServerVersionReponseDto
  1340. */
  1341. 'build': number;
  1342. }
  1343. /**
  1344. *
  1345. * @export
  1346. * @interface SignUpDto
  1347. */
  1348. export interface SignUpDto {
  1349. /**
  1350. *
  1351. * @type {string}
  1352. * @memberof SignUpDto
  1353. */
  1354. 'email': string;
  1355. /**
  1356. *
  1357. * @type {string}
  1358. * @memberof SignUpDto
  1359. */
  1360. 'password': string;
  1361. /**
  1362. *
  1363. * @type {string}
  1364. * @memberof SignUpDto
  1365. */
  1366. 'firstName': string;
  1367. /**
  1368. *
  1369. * @type {string}
  1370. * @memberof SignUpDto
  1371. */
  1372. 'lastName': string;
  1373. }
  1374. /**
  1375. *
  1376. * @export
  1377. * @interface SmartInfoResponseDto
  1378. */
  1379. export interface SmartInfoResponseDto {
  1380. /**
  1381. *
  1382. * @type {string}
  1383. * @memberof SmartInfoResponseDto
  1384. */
  1385. 'id'?: string;
  1386. /**
  1387. *
  1388. * @type {Array<string>}
  1389. * @memberof SmartInfoResponseDto
  1390. */
  1391. 'tags'?: Array<string> | null;
  1392. /**
  1393. *
  1394. * @type {Array<string>}
  1395. * @memberof SmartInfoResponseDto
  1396. */
  1397. 'objects'?: Array<string> | null;
  1398. }
  1399. /**
  1400. *
  1401. * @export
  1402. * @enum {string}
  1403. */
  1404. export const SystemConfigKey = {
  1405. Crf: 'ffmpeg_crf',
  1406. Preset: 'ffmpeg_preset',
  1407. TargetVideoCodec: 'ffmpeg_target_video_codec',
  1408. TargetAudioCodec: 'ffmpeg_target_audio_codec',
  1409. TargetScaling: 'ffmpeg_target_scaling'
  1410. } as const;
  1411. export type SystemConfigKey = typeof SystemConfigKey[keyof typeof SystemConfigKey];
  1412. /**
  1413. *
  1414. * @export
  1415. * @interface SystemConfigResponseDto
  1416. */
  1417. export interface SystemConfigResponseDto {
  1418. /**
  1419. *
  1420. * @type {Array<SystemConfigResponseItem>}
  1421. * @memberof SystemConfigResponseDto
  1422. */
  1423. 'config': Array<SystemConfigResponseItem>;
  1424. }
  1425. /**
  1426. *
  1427. * @export
  1428. * @interface SystemConfigResponseItem
  1429. */
  1430. export interface SystemConfigResponseItem {
  1431. /**
  1432. *
  1433. * @type {string}
  1434. * @memberof SystemConfigResponseItem
  1435. */
  1436. 'name': string;
  1437. /**
  1438. *
  1439. * @type {SystemConfigKey}
  1440. * @memberof SystemConfigResponseItem
  1441. */
  1442. 'key': SystemConfigKey;
  1443. /**
  1444. *
  1445. * @type {string}
  1446. * @memberof SystemConfigResponseItem
  1447. */
  1448. 'value': string;
  1449. /**
  1450. *
  1451. * @type {string}
  1452. * @memberof SystemConfigResponseItem
  1453. */
  1454. 'defaultValue': string;
  1455. }
  1456. /**
  1457. *
  1458. * @export
  1459. * @enum {string}
  1460. */
  1461. export const ThumbnailFormat = {
  1462. Jpeg: 'JPEG',
  1463. Webp: 'WEBP'
  1464. } as const;
  1465. export type ThumbnailFormat = typeof ThumbnailFormat[keyof typeof ThumbnailFormat];
  1466. /**
  1467. *
  1468. * @export
  1469. * @enum {string}
  1470. */
  1471. export const TimeGroupEnum = {
  1472. Day: 'day',
  1473. Month: 'month'
  1474. } as const;
  1475. export type TimeGroupEnum = typeof TimeGroupEnum[keyof typeof TimeGroupEnum];
  1476. /**
  1477. *
  1478. * @export
  1479. * @interface UpdateAlbumDto
  1480. */
  1481. export interface UpdateAlbumDto {
  1482. /**
  1483. *
  1484. * @type {string}
  1485. * @memberof UpdateAlbumDto
  1486. */
  1487. 'albumName'?: string;
  1488. /**
  1489. *
  1490. * @type {string}
  1491. * @memberof UpdateAlbumDto
  1492. */
  1493. 'albumThumbnailAssetId'?: string;
  1494. }
  1495. /**
  1496. *
  1497. * @export
  1498. * @interface UpdateAssetDto
  1499. */
  1500. export interface UpdateAssetDto {
  1501. /**
  1502. *
  1503. * @type {boolean}
  1504. * @memberof UpdateAssetDto
  1505. */
  1506. 'isFavorite': boolean;
  1507. }
  1508. /**
  1509. *
  1510. * @export
  1511. * @interface UpdateDeviceInfoDto
  1512. */
  1513. export interface UpdateDeviceInfoDto {
  1514. /**
  1515. *
  1516. * @type {DeviceTypeEnum}
  1517. * @memberof UpdateDeviceInfoDto
  1518. */
  1519. 'deviceType': DeviceTypeEnum;
  1520. /**
  1521. *
  1522. * @type {string}
  1523. * @memberof UpdateDeviceInfoDto
  1524. */
  1525. 'deviceId': string;
  1526. /**
  1527. *
  1528. * @type {boolean}
  1529. * @memberof UpdateDeviceInfoDto
  1530. */
  1531. 'isAutoBackup'?: boolean;
  1532. }
  1533. /**
  1534. *
  1535. * @export
  1536. * @interface UpdateUserDto
  1537. */
  1538. export interface UpdateUserDto {
  1539. /**
  1540. *
  1541. * @type {string}
  1542. * @memberof UpdateUserDto
  1543. */
  1544. 'id': string;
  1545. /**
  1546. *
  1547. * @type {string}
  1548. * @memberof UpdateUserDto
  1549. */
  1550. 'password'?: string;
  1551. /**
  1552. *
  1553. * @type {string}
  1554. * @memberof UpdateUserDto
  1555. */
  1556. 'firstName'?: string;
  1557. /**
  1558. *
  1559. * @type {string}
  1560. * @memberof UpdateUserDto
  1561. */
  1562. 'lastName'?: string;
  1563. /**
  1564. *
  1565. * @type {boolean}
  1566. * @memberof UpdateUserDto
  1567. */
  1568. 'isAdmin'?: boolean;
  1569. /**
  1570. *
  1571. * @type {boolean}
  1572. * @memberof UpdateUserDto
  1573. */
  1574. 'shouldChangePassword'?: boolean;
  1575. /**
  1576. *
  1577. * @type {string}
  1578. * @memberof UpdateUserDto
  1579. */
  1580. 'profileImagePath'?: string;
  1581. }
  1582. /**
  1583. *
  1584. * @export
  1585. * @interface UsageByUserDto
  1586. */
  1587. export interface UsageByUserDto {
  1588. /**
  1589. *
  1590. * @type {string}
  1591. * @memberof UsageByUserDto
  1592. */
  1593. 'userId': string;
  1594. /**
  1595. *
  1596. * @type {number}
  1597. * @memberof UsageByUserDto
  1598. */
  1599. 'objects': number;
  1600. /**
  1601. *
  1602. * @type {number}
  1603. * @memberof UsageByUserDto
  1604. */
  1605. 'videos': number;
  1606. /**
  1607. *
  1608. * @type {number}
  1609. * @memberof UsageByUserDto
  1610. */
  1611. 'photos': number;
  1612. /**
  1613. *
  1614. * @type {number}
  1615. * @memberof UsageByUserDto
  1616. */
  1617. 'usageRaw': number;
  1618. /**
  1619. *
  1620. * @type {string}
  1621. * @memberof UsageByUserDto
  1622. */
  1623. 'usage': string;
  1624. }
  1625. /**
  1626. *
  1627. * @export
  1628. * @interface UserCountResponseDto
  1629. */
  1630. export interface UserCountResponseDto {
  1631. /**
  1632. *
  1633. * @type {number}
  1634. * @memberof UserCountResponseDto
  1635. */
  1636. 'userCount': number;
  1637. }
  1638. /**
  1639. *
  1640. * @export
  1641. * @interface UserResponseDto
  1642. */
  1643. export interface UserResponseDto {
  1644. /**
  1645. *
  1646. * @type {string}
  1647. * @memberof UserResponseDto
  1648. */
  1649. 'id': string;
  1650. /**
  1651. *
  1652. * @type {string}
  1653. * @memberof UserResponseDto
  1654. */
  1655. 'email': string;
  1656. /**
  1657. *
  1658. * @type {string}
  1659. * @memberof UserResponseDto
  1660. */
  1661. 'firstName': string;
  1662. /**
  1663. *
  1664. * @type {string}
  1665. * @memberof UserResponseDto
  1666. */
  1667. 'lastName': string;
  1668. /**
  1669. *
  1670. * @type {string}
  1671. * @memberof UserResponseDto
  1672. */
  1673. 'createdAt': string;
  1674. /**
  1675. *
  1676. * @type {string}
  1677. * @memberof UserResponseDto
  1678. */
  1679. 'profileImagePath': string;
  1680. /**
  1681. *
  1682. * @type {boolean}
  1683. * @memberof UserResponseDto
  1684. */
  1685. 'shouldChangePassword': boolean;
  1686. /**
  1687. *
  1688. * @type {boolean}
  1689. * @memberof UserResponseDto
  1690. */
  1691. 'isAdmin': boolean;
  1692. /**
  1693. *
  1694. * @type {string}
  1695. * @memberof UserResponseDto
  1696. */
  1697. 'deletedAt': string | null;
  1698. }
  1699. /**
  1700. *
  1701. * @export
  1702. * @interface ValidateAccessTokenResponseDto
  1703. */
  1704. export interface ValidateAccessTokenResponseDto {
  1705. /**
  1706. *
  1707. * @type {boolean}
  1708. * @memberof ValidateAccessTokenResponseDto
  1709. */
  1710. 'authStatus': boolean;
  1711. }
  1712. /**
  1713. * AlbumApi - axios parameter creator
  1714. * @export
  1715. */
  1716. export const AlbumApiAxiosParamCreator = function (configuration?: Configuration) {
  1717. return {
  1718. /**
  1719. *
  1720. * @param {string} albumId
  1721. * @param {AddAssetsDto} addAssetsDto
  1722. * @param {*} [options] Override http request option.
  1723. * @throws {RequiredError}
  1724. */
  1725. addAssetsToAlbum: async (albumId: string, addAssetsDto: AddAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  1726. // verify required parameter 'albumId' is not null or undefined
  1727. assertParamExists('addAssetsToAlbum', 'albumId', albumId)
  1728. // verify required parameter 'addAssetsDto' is not null or undefined
  1729. assertParamExists('addAssetsToAlbum', 'addAssetsDto', addAssetsDto)
  1730. const localVarPath = `/album/{albumId}/assets`
  1731. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  1732. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  1733. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  1734. let baseOptions;
  1735. if (configuration) {
  1736. baseOptions = configuration.baseOptions;
  1737. }
  1738. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  1739. const localVarHeaderParameter = {} as any;
  1740. const localVarQueryParameter = {} as any;
  1741. // authentication bearer required
  1742. // http bearer authentication required
  1743. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  1744. localVarHeaderParameter['Content-Type'] = 'application/json';
  1745. setSearchParams(localVarUrlObj, localVarQueryParameter);
  1746. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  1747. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  1748. localVarRequestOptions.data = serializeDataIfNeeded(addAssetsDto, localVarRequestOptions, configuration)
  1749. return {
  1750. url: toPathString(localVarUrlObj),
  1751. options: localVarRequestOptions,
  1752. };
  1753. },
  1754. /**
  1755. *
  1756. * @param {string} albumId
  1757. * @param {AddUsersDto} addUsersDto
  1758. * @param {*} [options] Override http request option.
  1759. * @throws {RequiredError}
  1760. */
  1761. addUsersToAlbum: async (albumId: string, addUsersDto: AddUsersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  1762. // verify required parameter 'albumId' is not null or undefined
  1763. assertParamExists('addUsersToAlbum', 'albumId', albumId)
  1764. // verify required parameter 'addUsersDto' is not null or undefined
  1765. assertParamExists('addUsersToAlbum', 'addUsersDto', addUsersDto)
  1766. const localVarPath = `/album/{albumId}/users`
  1767. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  1768. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  1769. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  1770. let baseOptions;
  1771. if (configuration) {
  1772. baseOptions = configuration.baseOptions;
  1773. }
  1774. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  1775. const localVarHeaderParameter = {} as any;
  1776. const localVarQueryParameter = {} as any;
  1777. // authentication bearer required
  1778. // http bearer authentication required
  1779. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  1780. localVarHeaderParameter['Content-Type'] = 'application/json';
  1781. setSearchParams(localVarUrlObj, localVarQueryParameter);
  1782. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  1783. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  1784. localVarRequestOptions.data = serializeDataIfNeeded(addUsersDto, localVarRequestOptions, configuration)
  1785. return {
  1786. url: toPathString(localVarUrlObj),
  1787. options: localVarRequestOptions,
  1788. };
  1789. },
  1790. /**
  1791. *
  1792. * @param {CreateAlbumDto} createAlbumDto
  1793. * @param {*} [options] Override http request option.
  1794. * @throws {RequiredError}
  1795. */
  1796. createAlbum: async (createAlbumDto: CreateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  1797. // verify required parameter 'createAlbumDto' is not null or undefined
  1798. assertParamExists('createAlbum', 'createAlbumDto', createAlbumDto)
  1799. const localVarPath = `/album`;
  1800. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  1801. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  1802. let baseOptions;
  1803. if (configuration) {
  1804. baseOptions = configuration.baseOptions;
  1805. }
  1806. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  1807. const localVarHeaderParameter = {} as any;
  1808. const localVarQueryParameter = {} as any;
  1809. // authentication bearer required
  1810. // http bearer authentication required
  1811. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  1812. localVarHeaderParameter['Content-Type'] = 'application/json';
  1813. setSearchParams(localVarUrlObj, localVarQueryParameter);
  1814. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  1815. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  1816. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumDto, localVarRequestOptions, configuration)
  1817. return {
  1818. url: toPathString(localVarUrlObj),
  1819. options: localVarRequestOptions,
  1820. };
  1821. },
  1822. /**
  1823. *
  1824. * @param {string} albumId
  1825. * @param {*} [options] Override http request option.
  1826. * @throws {RequiredError}
  1827. */
  1828. deleteAlbum: async (albumId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  1829. // verify required parameter 'albumId' is not null or undefined
  1830. assertParamExists('deleteAlbum', 'albumId', albumId)
  1831. const localVarPath = `/album/{albumId}`
  1832. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  1833. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  1834. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  1835. let baseOptions;
  1836. if (configuration) {
  1837. baseOptions = configuration.baseOptions;
  1838. }
  1839. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  1840. const localVarHeaderParameter = {} as any;
  1841. const localVarQueryParameter = {} as any;
  1842. // authentication bearer required
  1843. // http bearer authentication required
  1844. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  1845. setSearchParams(localVarUrlObj, localVarQueryParameter);
  1846. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  1847. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  1848. return {
  1849. url: toPathString(localVarUrlObj),
  1850. options: localVarRequestOptions,
  1851. };
  1852. },
  1853. /**
  1854. *
  1855. * @param {string} albumId
  1856. * @param {number} [skip]
  1857. * @param {*} [options] Override http request option.
  1858. * @throws {RequiredError}
  1859. */
  1860. downloadArchive: async (albumId: string, skip?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  1861. // verify required parameter 'albumId' is not null or undefined
  1862. assertParamExists('downloadArchive', 'albumId', albumId)
  1863. const localVarPath = `/album/{albumId}/download`
  1864. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  1865. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  1866. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  1867. let baseOptions;
  1868. if (configuration) {
  1869. baseOptions = configuration.baseOptions;
  1870. }
  1871. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  1872. const localVarHeaderParameter = {} as any;
  1873. const localVarQueryParameter = {} as any;
  1874. // authentication bearer required
  1875. // http bearer authentication required
  1876. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  1877. if (skip !== undefined) {
  1878. localVarQueryParameter['skip'] = skip;
  1879. }
  1880. setSearchParams(localVarUrlObj, localVarQueryParameter);
  1881. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  1882. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  1883. return {
  1884. url: toPathString(localVarUrlObj),
  1885. options: localVarRequestOptions,
  1886. };
  1887. },
  1888. /**
  1889. *
  1890. * @param {*} [options] Override http request option.
  1891. * @throws {RequiredError}
  1892. */
  1893. getAlbumCountByUserId: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  1894. const localVarPath = `/album/count-by-user-id`;
  1895. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  1896. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  1897. let baseOptions;
  1898. if (configuration) {
  1899. baseOptions = configuration.baseOptions;
  1900. }
  1901. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  1902. const localVarHeaderParameter = {} as any;
  1903. const localVarQueryParameter = {} as any;
  1904. // authentication bearer required
  1905. // http bearer authentication required
  1906. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  1907. setSearchParams(localVarUrlObj, localVarQueryParameter);
  1908. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  1909. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  1910. return {
  1911. url: toPathString(localVarUrlObj),
  1912. options: localVarRequestOptions,
  1913. };
  1914. },
  1915. /**
  1916. *
  1917. * @param {string} albumId
  1918. * @param {*} [options] Override http request option.
  1919. * @throws {RequiredError}
  1920. */
  1921. getAlbumInfo: async (albumId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  1922. // verify required parameter 'albumId' is not null or undefined
  1923. assertParamExists('getAlbumInfo', 'albumId', albumId)
  1924. const localVarPath = `/album/{albumId}`
  1925. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  1926. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  1927. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  1928. let baseOptions;
  1929. if (configuration) {
  1930. baseOptions = configuration.baseOptions;
  1931. }
  1932. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  1933. const localVarHeaderParameter = {} as any;
  1934. const localVarQueryParameter = {} as any;
  1935. // authentication bearer required
  1936. // http bearer authentication required
  1937. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  1938. setSearchParams(localVarUrlObj, localVarQueryParameter);
  1939. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  1940. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  1941. return {
  1942. url: toPathString(localVarUrlObj),
  1943. options: localVarRequestOptions,
  1944. };
  1945. },
  1946. /**
  1947. *
  1948. * @param {boolean} [shared]
  1949. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  1950. * @param {*} [options] Override http request option.
  1951. * @throws {RequiredError}
  1952. */
  1953. getAllAlbums: async (shared?: boolean, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  1954. const localVarPath = `/album`;
  1955. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  1956. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  1957. let baseOptions;
  1958. if (configuration) {
  1959. baseOptions = configuration.baseOptions;
  1960. }
  1961. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  1962. const localVarHeaderParameter = {} as any;
  1963. const localVarQueryParameter = {} as any;
  1964. // authentication bearer required
  1965. // http bearer authentication required
  1966. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  1967. if (shared !== undefined) {
  1968. localVarQueryParameter['shared'] = shared;
  1969. }
  1970. if (assetId !== undefined) {
  1971. localVarQueryParameter['assetId'] = assetId;
  1972. }
  1973. setSearchParams(localVarUrlObj, localVarQueryParameter);
  1974. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  1975. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  1976. return {
  1977. url: toPathString(localVarUrlObj),
  1978. options: localVarRequestOptions,
  1979. };
  1980. },
  1981. /**
  1982. *
  1983. * @param {string} albumId
  1984. * @param {RemoveAssetsDto} removeAssetsDto
  1985. * @param {*} [options] Override http request option.
  1986. * @throws {RequiredError}
  1987. */
  1988. removeAssetFromAlbum: async (albumId: string, removeAssetsDto: RemoveAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  1989. // verify required parameter 'albumId' is not null or undefined
  1990. assertParamExists('removeAssetFromAlbum', 'albumId', albumId)
  1991. // verify required parameter 'removeAssetsDto' is not null or undefined
  1992. assertParamExists('removeAssetFromAlbum', 'removeAssetsDto', removeAssetsDto)
  1993. const localVarPath = `/album/{albumId}/assets`
  1994. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  1995. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  1996. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  1997. let baseOptions;
  1998. if (configuration) {
  1999. baseOptions = configuration.baseOptions;
  2000. }
  2001. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  2002. const localVarHeaderParameter = {} as any;
  2003. const localVarQueryParameter = {} as any;
  2004. // authentication bearer required
  2005. // http bearer authentication required
  2006. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2007. localVarHeaderParameter['Content-Type'] = 'application/json';
  2008. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2009. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2010. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2011. localVarRequestOptions.data = serializeDataIfNeeded(removeAssetsDto, localVarRequestOptions, configuration)
  2012. return {
  2013. url: toPathString(localVarUrlObj),
  2014. options: localVarRequestOptions,
  2015. };
  2016. },
  2017. /**
  2018. *
  2019. * @param {string} albumId
  2020. * @param {string} userId
  2021. * @param {*} [options] Override http request option.
  2022. * @throws {RequiredError}
  2023. */
  2024. removeUserFromAlbum: async (albumId: string, userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2025. // verify required parameter 'albumId' is not null or undefined
  2026. assertParamExists('removeUserFromAlbum', 'albumId', albumId)
  2027. // verify required parameter 'userId' is not null or undefined
  2028. assertParamExists('removeUserFromAlbum', 'userId', userId)
  2029. const localVarPath = `/album/{albumId}/user/{userId}`
  2030. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)))
  2031. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  2032. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2033. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2034. let baseOptions;
  2035. if (configuration) {
  2036. baseOptions = configuration.baseOptions;
  2037. }
  2038. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  2039. const localVarHeaderParameter = {} as any;
  2040. const localVarQueryParameter = {} as any;
  2041. // authentication bearer required
  2042. // http bearer authentication required
  2043. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2044. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2045. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2046. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2047. return {
  2048. url: toPathString(localVarUrlObj),
  2049. options: localVarRequestOptions,
  2050. };
  2051. },
  2052. /**
  2053. *
  2054. * @param {string} albumId
  2055. * @param {UpdateAlbumDto} updateAlbumDto
  2056. * @param {*} [options] Override http request option.
  2057. * @throws {RequiredError}
  2058. */
  2059. updateAlbumInfo: async (albumId: string, updateAlbumDto: UpdateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2060. // verify required parameter 'albumId' is not null or undefined
  2061. assertParamExists('updateAlbumInfo', 'albumId', albumId)
  2062. // verify required parameter 'updateAlbumDto' is not null or undefined
  2063. assertParamExists('updateAlbumInfo', 'updateAlbumDto', updateAlbumDto)
  2064. const localVarPath = `/album/{albumId}`
  2065. .replace(`{${"albumId"}}`, encodeURIComponent(String(albumId)));
  2066. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2067. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2068. let baseOptions;
  2069. if (configuration) {
  2070. baseOptions = configuration.baseOptions;
  2071. }
  2072. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  2073. const localVarHeaderParameter = {} as any;
  2074. const localVarQueryParameter = {} as any;
  2075. // authentication bearer required
  2076. // http bearer authentication required
  2077. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2078. localVarHeaderParameter['Content-Type'] = 'application/json';
  2079. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2080. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2081. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2082. localVarRequestOptions.data = serializeDataIfNeeded(updateAlbumDto, localVarRequestOptions, configuration)
  2083. return {
  2084. url: toPathString(localVarUrlObj),
  2085. options: localVarRequestOptions,
  2086. };
  2087. },
  2088. }
  2089. };
  2090. /**
  2091. * AlbumApi - functional programming interface
  2092. * @export
  2093. */
  2094. export const AlbumApiFp = function(configuration?: Configuration) {
  2095. const localVarAxiosParamCreator = AlbumApiAxiosParamCreator(configuration)
  2096. return {
  2097. /**
  2098. *
  2099. * @param {string} albumId
  2100. * @param {AddAssetsDto} addAssetsDto
  2101. * @param {*} [options] Override http request option.
  2102. * @throws {RequiredError}
  2103. */
  2104. async addAssetsToAlbum(albumId: string, addAssetsDto: AddAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddAssetsResponseDto>> {
  2105. const localVarAxiosArgs = await localVarAxiosParamCreator.addAssetsToAlbum(albumId, addAssetsDto, options);
  2106. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2107. },
  2108. /**
  2109. *
  2110. * @param {string} albumId
  2111. * @param {AddUsersDto} addUsersDto
  2112. * @param {*} [options] Override http request option.
  2113. * @throws {RequiredError}
  2114. */
  2115. async addUsersToAlbum(albumId: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  2116. const localVarAxiosArgs = await localVarAxiosParamCreator.addUsersToAlbum(albumId, addUsersDto, options);
  2117. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2118. },
  2119. /**
  2120. *
  2121. * @param {CreateAlbumDto} createAlbumDto
  2122. * @param {*} [options] Override http request option.
  2123. * @throws {RequiredError}
  2124. */
  2125. async createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  2126. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbum(createAlbumDto, options);
  2127. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2128. },
  2129. /**
  2130. *
  2131. * @param {string} albumId
  2132. * @param {*} [options] Override http request option.
  2133. * @throws {RequiredError}
  2134. */
  2135. async deleteAlbum(albumId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  2136. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlbum(albumId, options);
  2137. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2138. },
  2139. /**
  2140. *
  2141. * @param {string} albumId
  2142. * @param {number} [skip]
  2143. * @param {*} [options] Override http request option.
  2144. * @throws {RequiredError}
  2145. */
  2146. async downloadArchive(albumId: string, skip?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  2147. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadArchive(albumId, skip, options);
  2148. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2149. },
  2150. /**
  2151. *
  2152. * @param {*} [options] Override http request option.
  2153. * @throws {RequiredError}
  2154. */
  2155. async getAlbumCountByUserId(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumCountResponseDto>> {
  2156. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumCountByUserId(options);
  2157. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2158. },
  2159. /**
  2160. *
  2161. * @param {string} albumId
  2162. * @param {*} [options] Override http request option.
  2163. * @throws {RequiredError}
  2164. */
  2165. async getAlbumInfo(albumId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  2166. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(albumId, options);
  2167. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2168. },
  2169. /**
  2170. *
  2171. * @param {boolean} [shared]
  2172. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  2173. * @param {*} [options] Override http request option.
  2174. * @throws {RequiredError}
  2175. */
  2176. async getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AlbumResponseDto>>> {
  2177. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAlbums(shared, assetId, options);
  2178. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2179. },
  2180. /**
  2181. *
  2182. * @param {string} albumId
  2183. * @param {RemoveAssetsDto} removeAssetsDto
  2184. * @param {*} [options] Override http request option.
  2185. * @throws {RequiredError}
  2186. */
  2187. async removeAssetFromAlbum(albumId: string, removeAssetsDto: RemoveAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  2188. const localVarAxiosArgs = await localVarAxiosParamCreator.removeAssetFromAlbum(albumId, removeAssetsDto, options);
  2189. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2190. },
  2191. /**
  2192. *
  2193. * @param {string} albumId
  2194. * @param {string} userId
  2195. * @param {*} [options] Override http request option.
  2196. * @throws {RequiredError}
  2197. */
  2198. async removeUserFromAlbum(albumId: string, userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  2199. const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromAlbum(albumId, userId, options);
  2200. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2201. },
  2202. /**
  2203. *
  2204. * @param {string} albumId
  2205. * @param {UpdateAlbumDto} updateAlbumDto
  2206. * @param {*} [options] Override http request option.
  2207. * @throws {RequiredError}
  2208. */
  2209. async updateAlbumInfo(albumId: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  2210. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAlbumInfo(albumId, updateAlbumDto, options);
  2211. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  2212. },
  2213. }
  2214. };
  2215. /**
  2216. * AlbumApi - factory interface
  2217. * @export
  2218. */
  2219. export const AlbumApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  2220. const localVarFp = AlbumApiFp(configuration)
  2221. return {
  2222. /**
  2223. *
  2224. * @param {string} albumId
  2225. * @param {AddAssetsDto} addAssetsDto
  2226. * @param {*} [options] Override http request option.
  2227. * @throws {RequiredError}
  2228. */
  2229. addAssetsToAlbum(albumId: string, addAssetsDto: AddAssetsDto, options?: any): AxiosPromise<AddAssetsResponseDto> {
  2230. return localVarFp.addAssetsToAlbum(albumId, addAssetsDto, options).then((request) => request(axios, basePath));
  2231. },
  2232. /**
  2233. *
  2234. * @param {string} albumId
  2235. * @param {AddUsersDto} addUsersDto
  2236. * @param {*} [options] Override http request option.
  2237. * @throws {RequiredError}
  2238. */
  2239. addUsersToAlbum(albumId: string, addUsersDto: AddUsersDto, options?: any): AxiosPromise<AlbumResponseDto> {
  2240. return localVarFp.addUsersToAlbum(albumId, addUsersDto, options).then((request) => request(axios, basePath));
  2241. },
  2242. /**
  2243. *
  2244. * @param {CreateAlbumDto} createAlbumDto
  2245. * @param {*} [options] Override http request option.
  2246. * @throws {RequiredError}
  2247. */
  2248. createAlbum(createAlbumDto: CreateAlbumDto, options?: any): AxiosPromise<AlbumResponseDto> {
  2249. return localVarFp.createAlbum(createAlbumDto, options).then((request) => request(axios, basePath));
  2250. },
  2251. /**
  2252. *
  2253. * @param {string} albumId
  2254. * @param {*} [options] Override http request option.
  2255. * @throws {RequiredError}
  2256. */
  2257. deleteAlbum(albumId: string, options?: any): AxiosPromise<void> {
  2258. return localVarFp.deleteAlbum(albumId, options).then((request) => request(axios, basePath));
  2259. },
  2260. /**
  2261. *
  2262. * @param {string} albumId
  2263. * @param {number} [skip]
  2264. * @param {*} [options] Override http request option.
  2265. * @throws {RequiredError}
  2266. */
  2267. downloadArchive(albumId: string, skip?: number, options?: any): AxiosPromise<object> {
  2268. return localVarFp.downloadArchive(albumId, skip, options).then((request) => request(axios, basePath));
  2269. },
  2270. /**
  2271. *
  2272. * @param {*} [options] Override http request option.
  2273. * @throws {RequiredError}
  2274. */
  2275. getAlbumCountByUserId(options?: any): AxiosPromise<AlbumCountResponseDto> {
  2276. return localVarFp.getAlbumCountByUserId(options).then((request) => request(axios, basePath));
  2277. },
  2278. /**
  2279. *
  2280. * @param {string} albumId
  2281. * @param {*} [options] Override http request option.
  2282. * @throws {RequiredError}
  2283. */
  2284. getAlbumInfo(albumId: string, options?: any): AxiosPromise<AlbumResponseDto> {
  2285. return localVarFp.getAlbumInfo(albumId, options).then((request) => request(axios, basePath));
  2286. },
  2287. /**
  2288. *
  2289. * @param {boolean} [shared]
  2290. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  2291. * @param {*} [options] Override http request option.
  2292. * @throws {RequiredError}
  2293. */
  2294. getAllAlbums(shared?: boolean, assetId?: string, options?: any): AxiosPromise<Array<AlbumResponseDto>> {
  2295. return localVarFp.getAllAlbums(shared, assetId, options).then((request) => request(axios, basePath));
  2296. },
  2297. /**
  2298. *
  2299. * @param {string} albumId
  2300. * @param {RemoveAssetsDto} removeAssetsDto
  2301. * @param {*} [options] Override http request option.
  2302. * @throws {RequiredError}
  2303. */
  2304. removeAssetFromAlbum(albumId: string, removeAssetsDto: RemoveAssetsDto, options?: any): AxiosPromise<AlbumResponseDto> {
  2305. return localVarFp.removeAssetFromAlbum(albumId, removeAssetsDto, options).then((request) => request(axios, basePath));
  2306. },
  2307. /**
  2308. *
  2309. * @param {string} albumId
  2310. * @param {string} userId
  2311. * @param {*} [options] Override http request option.
  2312. * @throws {RequiredError}
  2313. */
  2314. removeUserFromAlbum(albumId: string, userId: string, options?: any): AxiosPromise<void> {
  2315. return localVarFp.removeUserFromAlbum(albumId, userId, options).then((request) => request(axios, basePath));
  2316. },
  2317. /**
  2318. *
  2319. * @param {string} albumId
  2320. * @param {UpdateAlbumDto} updateAlbumDto
  2321. * @param {*} [options] Override http request option.
  2322. * @throws {RequiredError}
  2323. */
  2324. updateAlbumInfo(albumId: string, updateAlbumDto: UpdateAlbumDto, options?: any): AxiosPromise<AlbumResponseDto> {
  2325. return localVarFp.updateAlbumInfo(albumId, updateAlbumDto, options).then((request) => request(axios, basePath));
  2326. },
  2327. };
  2328. };
  2329. /**
  2330. * AlbumApi - object-oriented interface
  2331. * @export
  2332. * @class AlbumApi
  2333. * @extends {BaseAPI}
  2334. */
  2335. export class AlbumApi extends BaseAPI {
  2336. /**
  2337. *
  2338. * @param {string} albumId
  2339. * @param {AddAssetsDto} addAssetsDto
  2340. * @param {*} [options] Override http request option.
  2341. * @throws {RequiredError}
  2342. * @memberof AlbumApi
  2343. */
  2344. public addAssetsToAlbum(albumId: string, addAssetsDto: AddAssetsDto, options?: AxiosRequestConfig) {
  2345. return AlbumApiFp(this.configuration).addAssetsToAlbum(albumId, addAssetsDto, options).then((request) => request(this.axios, this.basePath));
  2346. }
  2347. /**
  2348. *
  2349. * @param {string} albumId
  2350. * @param {AddUsersDto} addUsersDto
  2351. * @param {*} [options] Override http request option.
  2352. * @throws {RequiredError}
  2353. * @memberof AlbumApi
  2354. */
  2355. public addUsersToAlbum(albumId: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig) {
  2356. return AlbumApiFp(this.configuration).addUsersToAlbum(albumId, addUsersDto, options).then((request) => request(this.axios, this.basePath));
  2357. }
  2358. /**
  2359. *
  2360. * @param {CreateAlbumDto} createAlbumDto
  2361. * @param {*} [options] Override http request option.
  2362. * @throws {RequiredError}
  2363. * @memberof AlbumApi
  2364. */
  2365. public createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig) {
  2366. return AlbumApiFp(this.configuration).createAlbum(createAlbumDto, options).then((request) => request(this.axios, this.basePath));
  2367. }
  2368. /**
  2369. *
  2370. * @param {string} albumId
  2371. * @param {*} [options] Override http request option.
  2372. * @throws {RequiredError}
  2373. * @memberof AlbumApi
  2374. */
  2375. public deleteAlbum(albumId: string, options?: AxiosRequestConfig) {
  2376. return AlbumApiFp(this.configuration).deleteAlbum(albumId, options).then((request) => request(this.axios, this.basePath));
  2377. }
  2378. /**
  2379. *
  2380. * @param {string} albumId
  2381. * @param {number} [skip]
  2382. * @param {*} [options] Override http request option.
  2383. * @throws {RequiredError}
  2384. * @memberof AlbumApi
  2385. */
  2386. public downloadArchive(albumId: string, skip?: number, options?: AxiosRequestConfig) {
  2387. return AlbumApiFp(this.configuration).downloadArchive(albumId, skip, options).then((request) => request(this.axios, this.basePath));
  2388. }
  2389. /**
  2390. *
  2391. * @param {*} [options] Override http request option.
  2392. * @throws {RequiredError}
  2393. * @memberof AlbumApi
  2394. */
  2395. public getAlbumCountByUserId(options?: AxiosRequestConfig) {
  2396. return AlbumApiFp(this.configuration).getAlbumCountByUserId(options).then((request) => request(this.axios, this.basePath));
  2397. }
  2398. /**
  2399. *
  2400. * @param {string} albumId
  2401. * @param {*} [options] Override http request option.
  2402. * @throws {RequiredError}
  2403. * @memberof AlbumApi
  2404. */
  2405. public getAlbumInfo(albumId: string, options?: AxiosRequestConfig) {
  2406. return AlbumApiFp(this.configuration).getAlbumInfo(albumId, options).then((request) => request(this.axios, this.basePath));
  2407. }
  2408. /**
  2409. *
  2410. * @param {boolean} [shared]
  2411. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  2412. * @param {*} [options] Override http request option.
  2413. * @throws {RequiredError}
  2414. * @memberof AlbumApi
  2415. */
  2416. public getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig) {
  2417. return AlbumApiFp(this.configuration).getAllAlbums(shared, assetId, options).then((request) => request(this.axios, this.basePath));
  2418. }
  2419. /**
  2420. *
  2421. * @param {string} albumId
  2422. * @param {RemoveAssetsDto} removeAssetsDto
  2423. * @param {*} [options] Override http request option.
  2424. * @throws {RequiredError}
  2425. * @memberof AlbumApi
  2426. */
  2427. public removeAssetFromAlbum(albumId: string, removeAssetsDto: RemoveAssetsDto, options?: AxiosRequestConfig) {
  2428. return AlbumApiFp(this.configuration).removeAssetFromAlbum(albumId, removeAssetsDto, options).then((request) => request(this.axios, this.basePath));
  2429. }
  2430. /**
  2431. *
  2432. * @param {string} albumId
  2433. * @param {string} userId
  2434. * @param {*} [options] Override http request option.
  2435. * @throws {RequiredError}
  2436. * @memberof AlbumApi
  2437. */
  2438. public removeUserFromAlbum(albumId: string, userId: string, options?: AxiosRequestConfig) {
  2439. return AlbumApiFp(this.configuration).removeUserFromAlbum(albumId, userId, options).then((request) => request(this.axios, this.basePath));
  2440. }
  2441. /**
  2442. *
  2443. * @param {string} albumId
  2444. * @param {UpdateAlbumDto} updateAlbumDto
  2445. * @param {*} [options] Override http request option.
  2446. * @throws {RequiredError}
  2447. * @memberof AlbumApi
  2448. */
  2449. public updateAlbumInfo(albumId: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig) {
  2450. return AlbumApiFp(this.configuration).updateAlbumInfo(albumId, updateAlbumDto, options).then((request) => request(this.axios, this.basePath));
  2451. }
  2452. }
  2453. /**
  2454. * AssetApi - axios parameter creator
  2455. * @export
  2456. */
  2457. export const AssetApiAxiosParamCreator = function (configuration?: Configuration) {
  2458. return {
  2459. /**
  2460. * Check duplicated asset before uploading - for Web upload used
  2461. * @summary
  2462. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  2463. * @param {*} [options] Override http request option.
  2464. * @throws {RequiredError}
  2465. */
  2466. checkDuplicateAsset: async (checkDuplicateAssetDto: CheckDuplicateAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2467. // verify required parameter 'checkDuplicateAssetDto' is not null or undefined
  2468. assertParamExists('checkDuplicateAsset', 'checkDuplicateAssetDto', checkDuplicateAssetDto)
  2469. const localVarPath = `/asset/check`;
  2470. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2471. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2472. let baseOptions;
  2473. if (configuration) {
  2474. baseOptions = configuration.baseOptions;
  2475. }
  2476. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  2477. const localVarHeaderParameter = {} as any;
  2478. const localVarQueryParameter = {} as any;
  2479. // authentication bearer required
  2480. // http bearer authentication required
  2481. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2482. localVarHeaderParameter['Content-Type'] = 'application/json';
  2483. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2484. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2485. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2486. localVarRequestOptions.data = serializeDataIfNeeded(checkDuplicateAssetDto, localVarRequestOptions, configuration)
  2487. return {
  2488. url: toPathString(localVarUrlObj),
  2489. options: localVarRequestOptions,
  2490. };
  2491. },
  2492. /**
  2493. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  2494. * @summary
  2495. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  2496. * @param {*} [options] Override http request option.
  2497. * @throws {RequiredError}
  2498. */
  2499. checkExistingAssets: async (checkExistingAssetsDto: CheckExistingAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2500. // verify required parameter 'checkExistingAssetsDto' is not null or undefined
  2501. assertParamExists('checkExistingAssets', 'checkExistingAssetsDto', checkExistingAssetsDto)
  2502. const localVarPath = `/asset/exist`;
  2503. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2504. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2505. let baseOptions;
  2506. if (configuration) {
  2507. baseOptions = configuration.baseOptions;
  2508. }
  2509. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  2510. const localVarHeaderParameter = {} as any;
  2511. const localVarQueryParameter = {} as any;
  2512. // authentication bearer required
  2513. // http bearer authentication required
  2514. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2515. localVarHeaderParameter['Content-Type'] = 'application/json';
  2516. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2517. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2518. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2519. localVarRequestOptions.data = serializeDataIfNeeded(checkExistingAssetsDto, localVarRequestOptions, configuration)
  2520. return {
  2521. url: toPathString(localVarUrlObj),
  2522. options: localVarRequestOptions,
  2523. };
  2524. },
  2525. /**
  2526. *
  2527. * @param {DeleteAssetDto} deleteAssetDto
  2528. * @param {*} [options] Override http request option.
  2529. * @throws {RequiredError}
  2530. */
  2531. deleteAsset: async (deleteAssetDto: DeleteAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2532. // verify required parameter 'deleteAssetDto' is not null or undefined
  2533. assertParamExists('deleteAsset', 'deleteAssetDto', deleteAssetDto)
  2534. const localVarPath = `/asset`;
  2535. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2536. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2537. let baseOptions;
  2538. if (configuration) {
  2539. baseOptions = configuration.baseOptions;
  2540. }
  2541. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  2542. const localVarHeaderParameter = {} as any;
  2543. const localVarQueryParameter = {} as any;
  2544. // authentication bearer required
  2545. // http bearer authentication required
  2546. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2547. localVarHeaderParameter['Content-Type'] = 'application/json';
  2548. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2549. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2550. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2551. localVarRequestOptions.data = serializeDataIfNeeded(deleteAssetDto, localVarRequestOptions, configuration)
  2552. return {
  2553. url: toPathString(localVarUrlObj),
  2554. options: localVarRequestOptions,
  2555. };
  2556. },
  2557. /**
  2558. *
  2559. * @param {string} aid
  2560. * @param {string} did
  2561. * @param {boolean} [isThumb]
  2562. * @param {boolean} [isWeb]
  2563. * @param {*} [options] Override http request option.
  2564. * @throws {RequiredError}
  2565. */
  2566. downloadFile: async (aid: string, did: string, isThumb?: boolean, isWeb?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2567. // verify required parameter 'aid' is not null or undefined
  2568. assertParamExists('downloadFile', 'aid', aid)
  2569. // verify required parameter 'did' is not null or undefined
  2570. assertParamExists('downloadFile', 'did', did)
  2571. const localVarPath = `/asset/download`;
  2572. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2573. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2574. let baseOptions;
  2575. if (configuration) {
  2576. baseOptions = configuration.baseOptions;
  2577. }
  2578. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  2579. const localVarHeaderParameter = {} as any;
  2580. const localVarQueryParameter = {} as any;
  2581. // authentication bearer required
  2582. // http bearer authentication required
  2583. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2584. if (aid !== undefined) {
  2585. localVarQueryParameter['aid'] = aid;
  2586. }
  2587. if (did !== undefined) {
  2588. localVarQueryParameter['did'] = did;
  2589. }
  2590. if (isThumb !== undefined) {
  2591. localVarQueryParameter['isThumb'] = isThumb;
  2592. }
  2593. if (isWeb !== undefined) {
  2594. localVarQueryParameter['isWeb'] = isWeb;
  2595. }
  2596. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2597. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2598. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2599. return {
  2600. url: toPathString(localVarUrlObj),
  2601. options: localVarRequestOptions,
  2602. };
  2603. },
  2604. /**
  2605. *
  2606. * @param {number} [skip]
  2607. * @param {*} [options] Override http request option.
  2608. * @throws {RequiredError}
  2609. */
  2610. downloadLibrary: async (skip?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2611. const localVarPath = `/asset/download-library`;
  2612. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2613. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2614. let baseOptions;
  2615. if (configuration) {
  2616. baseOptions = configuration.baseOptions;
  2617. }
  2618. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  2619. const localVarHeaderParameter = {} as any;
  2620. const localVarQueryParameter = {} as any;
  2621. // authentication bearer required
  2622. // http bearer authentication required
  2623. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2624. if (skip !== undefined) {
  2625. localVarQueryParameter['skip'] = skip;
  2626. }
  2627. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2628. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2629. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2630. return {
  2631. url: toPathString(localVarUrlObj),
  2632. options: localVarRequestOptions,
  2633. };
  2634. },
  2635. /**
  2636. * Get all AssetEntity belong to the user
  2637. * @summary
  2638. * @param {*} [options] Override http request option.
  2639. * @throws {RequiredError}
  2640. */
  2641. getAllAssets: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2642. const localVarPath = `/asset`;
  2643. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2644. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2645. let baseOptions;
  2646. if (configuration) {
  2647. baseOptions = configuration.baseOptions;
  2648. }
  2649. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  2650. const localVarHeaderParameter = {} as any;
  2651. const localVarQueryParameter = {} as any;
  2652. // authentication bearer required
  2653. // http bearer authentication required
  2654. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2655. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2656. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2657. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2658. return {
  2659. url: toPathString(localVarUrlObj),
  2660. options: localVarRequestOptions,
  2661. };
  2662. },
  2663. /**
  2664. * Get a single asset\'s information
  2665. * @summary
  2666. * @param {string} assetId
  2667. * @param {*} [options] Override http request option.
  2668. * @throws {RequiredError}
  2669. */
  2670. getAssetById: async (assetId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2671. // verify required parameter 'assetId' is not null or undefined
  2672. assertParamExists('getAssetById', 'assetId', assetId)
  2673. const localVarPath = `/asset/assetById/{assetId}`
  2674. .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
  2675. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2676. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2677. let baseOptions;
  2678. if (configuration) {
  2679. baseOptions = configuration.baseOptions;
  2680. }
  2681. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  2682. const localVarHeaderParameter = {} as any;
  2683. const localVarQueryParameter = {} as any;
  2684. // authentication bearer required
  2685. // http bearer authentication required
  2686. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2687. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2688. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2689. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2690. return {
  2691. url: toPathString(localVarUrlObj),
  2692. options: localVarRequestOptions,
  2693. };
  2694. },
  2695. /**
  2696. *
  2697. * @param {GetAssetByTimeBucketDto} getAssetByTimeBucketDto
  2698. * @param {*} [options] Override http request option.
  2699. * @throws {RequiredError}
  2700. */
  2701. getAssetByTimeBucket: async (getAssetByTimeBucketDto: GetAssetByTimeBucketDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2702. // verify required parameter 'getAssetByTimeBucketDto' is not null or undefined
  2703. assertParamExists('getAssetByTimeBucket', 'getAssetByTimeBucketDto', getAssetByTimeBucketDto)
  2704. const localVarPath = `/asset/time-bucket`;
  2705. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2706. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2707. let baseOptions;
  2708. if (configuration) {
  2709. baseOptions = configuration.baseOptions;
  2710. }
  2711. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  2712. const localVarHeaderParameter = {} as any;
  2713. const localVarQueryParameter = {} as any;
  2714. // authentication bearer required
  2715. // http bearer authentication required
  2716. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2717. localVarHeaderParameter['Content-Type'] = 'application/json';
  2718. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2719. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2720. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2721. localVarRequestOptions.data = serializeDataIfNeeded(getAssetByTimeBucketDto, localVarRequestOptions, configuration)
  2722. return {
  2723. url: toPathString(localVarUrlObj),
  2724. options: localVarRequestOptions,
  2725. };
  2726. },
  2727. /**
  2728. *
  2729. * @param {GetAssetCountByTimeBucketDto} getAssetCountByTimeBucketDto
  2730. * @param {*} [options] Override http request option.
  2731. * @throws {RequiredError}
  2732. */
  2733. getAssetCountByTimeBucket: async (getAssetCountByTimeBucketDto: GetAssetCountByTimeBucketDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2734. // verify required parameter 'getAssetCountByTimeBucketDto' is not null or undefined
  2735. assertParamExists('getAssetCountByTimeBucket', 'getAssetCountByTimeBucketDto', getAssetCountByTimeBucketDto)
  2736. const localVarPath = `/asset/count-by-time-bucket`;
  2737. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2738. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2739. let baseOptions;
  2740. if (configuration) {
  2741. baseOptions = configuration.baseOptions;
  2742. }
  2743. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  2744. const localVarHeaderParameter = {} as any;
  2745. const localVarQueryParameter = {} as any;
  2746. // authentication bearer required
  2747. // http bearer authentication required
  2748. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2749. localVarHeaderParameter['Content-Type'] = 'application/json';
  2750. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2751. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2752. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2753. localVarRequestOptions.data = serializeDataIfNeeded(getAssetCountByTimeBucketDto, localVarRequestOptions, configuration)
  2754. return {
  2755. url: toPathString(localVarUrlObj),
  2756. options: localVarRequestOptions,
  2757. };
  2758. },
  2759. /**
  2760. *
  2761. * @param {*} [options] Override http request option.
  2762. * @throws {RequiredError}
  2763. */
  2764. getAssetCountByUserId: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2765. const localVarPath = `/asset/count-by-user-id`;
  2766. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2767. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2768. let baseOptions;
  2769. if (configuration) {
  2770. baseOptions = configuration.baseOptions;
  2771. }
  2772. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  2773. const localVarHeaderParameter = {} as any;
  2774. const localVarQueryParameter = {} as any;
  2775. // authentication bearer required
  2776. // http bearer authentication required
  2777. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2778. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2779. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2780. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2781. return {
  2782. url: toPathString(localVarUrlObj),
  2783. options: localVarRequestOptions,
  2784. };
  2785. },
  2786. /**
  2787. *
  2788. * @param {*} [options] Override http request option.
  2789. * @throws {RequiredError}
  2790. */
  2791. getAssetSearchTerms: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2792. const localVarPath = `/asset/search-terms`;
  2793. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2794. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2795. let baseOptions;
  2796. if (configuration) {
  2797. baseOptions = configuration.baseOptions;
  2798. }
  2799. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  2800. const localVarHeaderParameter = {} as any;
  2801. const localVarQueryParameter = {} as any;
  2802. // authentication bearer required
  2803. // http bearer authentication required
  2804. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2805. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2806. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2807. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2808. return {
  2809. url: toPathString(localVarUrlObj),
  2810. options: localVarRequestOptions,
  2811. };
  2812. },
  2813. /**
  2814. *
  2815. * @param {string} assetId
  2816. * @param {ThumbnailFormat} [format]
  2817. * @param {*} [options] Override http request option.
  2818. * @throws {RequiredError}
  2819. */
  2820. getAssetThumbnail: async (assetId: string, format?: ThumbnailFormat, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2821. // verify required parameter 'assetId' is not null or undefined
  2822. assertParamExists('getAssetThumbnail', 'assetId', assetId)
  2823. const localVarPath = `/asset/thumbnail/{assetId}`
  2824. .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
  2825. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2826. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2827. let baseOptions;
  2828. if (configuration) {
  2829. baseOptions = configuration.baseOptions;
  2830. }
  2831. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  2832. const localVarHeaderParameter = {} as any;
  2833. const localVarQueryParameter = {} as any;
  2834. // authentication bearer required
  2835. // http bearer authentication required
  2836. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2837. if (format !== undefined) {
  2838. localVarQueryParameter['format'] = format;
  2839. }
  2840. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2841. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2842. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2843. return {
  2844. url: toPathString(localVarUrlObj),
  2845. options: localVarRequestOptions,
  2846. };
  2847. },
  2848. /**
  2849. *
  2850. * @param {*} [options] Override http request option.
  2851. * @throws {RequiredError}
  2852. */
  2853. getCuratedLocations: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2854. const localVarPath = `/asset/curated-locations`;
  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. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2868. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2869. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2870. return {
  2871. url: toPathString(localVarUrlObj),
  2872. options: localVarRequestOptions,
  2873. };
  2874. },
  2875. /**
  2876. *
  2877. * @param {*} [options] Override http request option.
  2878. * @throws {RequiredError}
  2879. */
  2880. getCuratedObjects: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2881. const localVarPath = `/asset/curated-objects`;
  2882. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2883. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2884. let baseOptions;
  2885. if (configuration) {
  2886. baseOptions = configuration.baseOptions;
  2887. }
  2888. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  2889. const localVarHeaderParameter = {} as any;
  2890. const localVarQueryParameter = {} as any;
  2891. // authentication bearer required
  2892. // http bearer authentication required
  2893. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2894. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2895. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2896. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2897. return {
  2898. url: toPathString(localVarUrlObj),
  2899. options: localVarRequestOptions,
  2900. };
  2901. },
  2902. /**
  2903. * Get all asset of a device that are in the database, ID only.
  2904. * @summary
  2905. * @param {string} deviceId
  2906. * @param {*} [options] Override http request option.
  2907. * @throws {RequiredError}
  2908. */
  2909. getUserAssetsByDeviceId: async (deviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2910. // verify required parameter 'deviceId' is not null or undefined
  2911. assertParamExists('getUserAssetsByDeviceId', 'deviceId', deviceId)
  2912. const localVarPath = `/asset/{deviceId}`
  2913. .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId)));
  2914. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2915. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2916. let baseOptions;
  2917. if (configuration) {
  2918. baseOptions = configuration.baseOptions;
  2919. }
  2920. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  2921. const localVarHeaderParameter = {} as any;
  2922. const localVarQueryParameter = {} as any;
  2923. // authentication bearer required
  2924. // http bearer authentication required
  2925. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2926. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2927. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2928. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2929. return {
  2930. url: toPathString(localVarUrlObj),
  2931. options: localVarRequestOptions,
  2932. };
  2933. },
  2934. /**
  2935. *
  2936. * @param {SearchAssetDto} searchAssetDto
  2937. * @param {*} [options] Override http request option.
  2938. * @throws {RequiredError}
  2939. */
  2940. searchAsset: async (searchAssetDto: SearchAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2941. // verify required parameter 'searchAssetDto' is not null or undefined
  2942. assertParamExists('searchAsset', 'searchAssetDto', searchAssetDto)
  2943. const localVarPath = `/asset/search`;
  2944. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2945. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2946. let baseOptions;
  2947. if (configuration) {
  2948. baseOptions = configuration.baseOptions;
  2949. }
  2950. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  2951. const localVarHeaderParameter = {} as any;
  2952. const localVarQueryParameter = {} as any;
  2953. // authentication bearer required
  2954. // http bearer authentication required
  2955. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2956. localVarHeaderParameter['Content-Type'] = 'application/json';
  2957. setSearchParams(localVarUrlObj, localVarQueryParameter);
  2958. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  2959. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  2960. localVarRequestOptions.data = serializeDataIfNeeded(searchAssetDto, localVarRequestOptions, configuration)
  2961. return {
  2962. url: toPathString(localVarUrlObj),
  2963. options: localVarRequestOptions,
  2964. };
  2965. },
  2966. /**
  2967. *
  2968. * @param {string} aid
  2969. * @param {string} did
  2970. * @param {boolean} [isThumb]
  2971. * @param {boolean} [isWeb]
  2972. * @param {*} [options] Override http request option.
  2973. * @throws {RequiredError}
  2974. */
  2975. serveFile: async (aid: string, did: string, isThumb?: boolean, isWeb?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  2976. // verify required parameter 'aid' is not null or undefined
  2977. assertParamExists('serveFile', 'aid', aid)
  2978. // verify required parameter 'did' is not null or undefined
  2979. assertParamExists('serveFile', 'did', did)
  2980. const localVarPath = `/asset/file`;
  2981. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  2982. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  2983. let baseOptions;
  2984. if (configuration) {
  2985. baseOptions = configuration.baseOptions;
  2986. }
  2987. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  2988. const localVarHeaderParameter = {} as any;
  2989. const localVarQueryParameter = {} as any;
  2990. // authentication bearer required
  2991. // http bearer authentication required
  2992. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  2993. if (aid !== undefined) {
  2994. localVarQueryParameter['aid'] = aid;
  2995. }
  2996. if (did !== undefined) {
  2997. localVarQueryParameter['did'] = did;
  2998. }
  2999. if (isThumb !== undefined) {
  3000. localVarQueryParameter['isThumb'] = isThumb;
  3001. }
  3002. if (isWeb !== undefined) {
  3003. localVarQueryParameter['isWeb'] = isWeb;
  3004. }
  3005. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3006. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3007. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3008. return {
  3009. url: toPathString(localVarUrlObj),
  3010. options: localVarRequestOptions,
  3011. };
  3012. },
  3013. /**
  3014. * Update an asset
  3015. * @summary
  3016. * @param {string} assetId
  3017. * @param {UpdateAssetDto} updateAssetDto
  3018. * @param {*} [options] Override http request option.
  3019. * @throws {RequiredError}
  3020. */
  3021. updateAssetById: async (assetId: string, updateAssetDto: UpdateAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3022. // verify required parameter 'assetId' is not null or undefined
  3023. assertParamExists('updateAssetById', 'assetId', assetId)
  3024. // verify required parameter 'updateAssetDto' is not null or undefined
  3025. assertParamExists('updateAssetById', 'updateAssetDto', updateAssetDto)
  3026. const localVarPath = `/asset/assetById/{assetId}`
  3027. .replace(`{${"assetId"}}`, encodeURIComponent(String(assetId)));
  3028. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3029. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3030. let baseOptions;
  3031. if (configuration) {
  3032. baseOptions = configuration.baseOptions;
  3033. }
  3034. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  3035. const localVarHeaderParameter = {} as any;
  3036. const localVarQueryParameter = {} as any;
  3037. // authentication bearer required
  3038. // http bearer authentication required
  3039. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3040. localVarHeaderParameter['Content-Type'] = 'application/json';
  3041. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3042. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3043. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3044. localVarRequestOptions.data = serializeDataIfNeeded(updateAssetDto, localVarRequestOptions, configuration)
  3045. return {
  3046. url: toPathString(localVarUrlObj),
  3047. options: localVarRequestOptions,
  3048. };
  3049. },
  3050. /**
  3051. *
  3052. * @param {any} assetData
  3053. * @param {*} [options] Override http request option.
  3054. * @throws {RequiredError}
  3055. */
  3056. uploadFile: async (assetData: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3057. // verify required parameter 'assetData' is not null or undefined
  3058. assertParamExists('uploadFile', 'assetData', assetData)
  3059. const localVarPath = `/asset/upload`;
  3060. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3061. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3062. let baseOptions;
  3063. if (configuration) {
  3064. baseOptions = configuration.baseOptions;
  3065. }
  3066. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3067. const localVarHeaderParameter = {} as any;
  3068. const localVarQueryParameter = {} as any;
  3069. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  3070. // authentication bearer required
  3071. // http bearer authentication required
  3072. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3073. if (assetData !== undefined) {
  3074. localVarFormParams.append('assetData', assetData as any);
  3075. }
  3076. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  3077. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3078. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3079. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3080. localVarRequestOptions.data = localVarFormParams;
  3081. return {
  3082. url: toPathString(localVarUrlObj),
  3083. options: localVarRequestOptions,
  3084. };
  3085. },
  3086. }
  3087. };
  3088. /**
  3089. * AssetApi - functional programming interface
  3090. * @export
  3091. */
  3092. export const AssetApiFp = function(configuration?: Configuration) {
  3093. const localVarAxiosParamCreator = AssetApiAxiosParamCreator(configuration)
  3094. return {
  3095. /**
  3096. * Check duplicated asset before uploading - for Web upload used
  3097. * @summary
  3098. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  3099. * @param {*} [options] Override http request option.
  3100. * @throws {RequiredError}
  3101. */
  3102. async checkDuplicateAsset(checkDuplicateAssetDto: CheckDuplicateAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckDuplicateAssetResponseDto>> {
  3103. const localVarAxiosArgs = await localVarAxiosParamCreator.checkDuplicateAsset(checkDuplicateAssetDto, options);
  3104. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3105. },
  3106. /**
  3107. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  3108. * @summary
  3109. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  3110. * @param {*} [options] Override http request option.
  3111. * @throws {RequiredError}
  3112. */
  3113. async checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckExistingAssetsResponseDto>> {
  3114. const localVarAxiosArgs = await localVarAxiosParamCreator.checkExistingAssets(checkExistingAssetsDto, options);
  3115. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3116. },
  3117. /**
  3118. *
  3119. * @param {DeleteAssetDto} deleteAssetDto
  3120. * @param {*} [options] Override http request option.
  3121. * @throws {RequiredError}
  3122. */
  3123. async deleteAsset(deleteAssetDto: DeleteAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DeleteAssetResponseDto>>> {
  3124. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAsset(deleteAssetDto, options);
  3125. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3126. },
  3127. /**
  3128. *
  3129. * @param {string} aid
  3130. * @param {string} did
  3131. * @param {boolean} [isThumb]
  3132. * @param {boolean} [isWeb]
  3133. * @param {*} [options] Override http request option.
  3134. * @throws {RequiredError}
  3135. */
  3136. async downloadFile(aid: string, did: string, isThumb?: boolean, isWeb?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  3137. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(aid, did, isThumb, isWeb, options);
  3138. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3139. },
  3140. /**
  3141. *
  3142. * @param {number} [skip]
  3143. * @param {*} [options] Override http request option.
  3144. * @throws {RequiredError}
  3145. */
  3146. async downloadLibrary(skip?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  3147. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadLibrary(skip, options);
  3148. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3149. },
  3150. /**
  3151. * Get all AssetEntity belong to the user
  3152. * @summary
  3153. * @param {*} [options] Override http request option.
  3154. * @throws {RequiredError}
  3155. */
  3156. async getAllAssets(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  3157. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(options);
  3158. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3159. },
  3160. /**
  3161. * Get a single asset\'s information
  3162. * @summary
  3163. * @param {string} assetId
  3164. * @param {*} [options] Override http request option.
  3165. * @throws {RequiredError}
  3166. */
  3167. async getAssetById(assetId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  3168. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetById(assetId, options);
  3169. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3170. },
  3171. /**
  3172. *
  3173. * @param {GetAssetByTimeBucketDto} getAssetByTimeBucketDto
  3174. * @param {*} [options] Override http request option.
  3175. * @throws {RequiredError}
  3176. */
  3177. async getAssetByTimeBucket(getAssetByTimeBucketDto: GetAssetByTimeBucketDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  3178. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetByTimeBucket(getAssetByTimeBucketDto, options);
  3179. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3180. },
  3181. /**
  3182. *
  3183. * @param {GetAssetCountByTimeBucketDto} getAssetCountByTimeBucketDto
  3184. * @param {*} [options] Override http request option.
  3185. * @throws {RequiredError}
  3186. */
  3187. async getAssetCountByTimeBucket(getAssetCountByTimeBucketDto: GetAssetCountByTimeBucketDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetCountByTimeBucketResponseDto>> {
  3188. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetCountByTimeBucket(getAssetCountByTimeBucketDto, options);
  3189. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3190. },
  3191. /**
  3192. *
  3193. * @param {*} [options] Override http request option.
  3194. * @throws {RequiredError}
  3195. */
  3196. async getAssetCountByUserId(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetCountByUserIdResponseDto>> {
  3197. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetCountByUserId(options);
  3198. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3199. },
  3200. /**
  3201. *
  3202. * @param {*} [options] Override http request option.
  3203. * @throws {RequiredError}
  3204. */
  3205. async getAssetSearchTerms(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  3206. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetSearchTerms(options);
  3207. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3208. },
  3209. /**
  3210. *
  3211. * @param {string} assetId
  3212. * @param {ThumbnailFormat} [format]
  3213. * @param {*} [options] Override http request option.
  3214. * @throws {RequiredError}
  3215. */
  3216. async getAssetThumbnail(assetId: string, format?: ThumbnailFormat, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  3217. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetThumbnail(assetId, format, options);
  3218. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3219. },
  3220. /**
  3221. *
  3222. * @param {*} [options] Override http request option.
  3223. * @throws {RequiredError}
  3224. */
  3225. async getCuratedLocations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedLocationsResponseDto>>> {
  3226. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedLocations(options);
  3227. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3228. },
  3229. /**
  3230. *
  3231. * @param {*} [options] Override http request option.
  3232. * @throws {RequiredError}
  3233. */
  3234. async getCuratedObjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedObjectsResponseDto>>> {
  3235. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedObjects(options);
  3236. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3237. },
  3238. /**
  3239. * Get all asset of a device that are in the database, ID only.
  3240. * @summary
  3241. * @param {string} deviceId
  3242. * @param {*} [options] Override http request option.
  3243. * @throws {RequiredError}
  3244. */
  3245. async getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  3246. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAssetsByDeviceId(deviceId, options);
  3247. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3248. },
  3249. /**
  3250. *
  3251. * @param {SearchAssetDto} searchAssetDto
  3252. * @param {*} [options] Override http request option.
  3253. * @throws {RequiredError}
  3254. */
  3255. async searchAsset(searchAssetDto: SearchAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  3256. const localVarAxiosArgs = await localVarAxiosParamCreator.searchAsset(searchAssetDto, options);
  3257. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3258. },
  3259. /**
  3260. *
  3261. * @param {string} aid
  3262. * @param {string} did
  3263. * @param {boolean} [isThumb]
  3264. * @param {boolean} [isWeb]
  3265. * @param {*} [options] Override http request option.
  3266. * @throws {RequiredError}
  3267. */
  3268. async serveFile(aid: string, did: string, isThumb?: boolean, isWeb?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  3269. const localVarAxiosArgs = await localVarAxiosParamCreator.serveFile(aid, did, isThumb, isWeb, options);
  3270. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3271. },
  3272. /**
  3273. * Update an asset
  3274. * @summary
  3275. * @param {string} assetId
  3276. * @param {UpdateAssetDto} updateAssetDto
  3277. * @param {*} [options] Override http request option.
  3278. * @throws {RequiredError}
  3279. */
  3280. async updateAssetById(assetId: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  3281. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAssetById(assetId, updateAssetDto, options);
  3282. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3283. },
  3284. /**
  3285. *
  3286. * @param {any} assetData
  3287. * @param {*} [options] Override http request option.
  3288. * @throws {RequiredError}
  3289. */
  3290. async uploadFile(assetData: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetFileUploadResponseDto>> {
  3291. const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetData, options);
  3292. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3293. },
  3294. }
  3295. };
  3296. /**
  3297. * AssetApi - factory interface
  3298. * @export
  3299. */
  3300. export const AssetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  3301. const localVarFp = AssetApiFp(configuration)
  3302. return {
  3303. /**
  3304. * Check duplicated asset before uploading - for Web upload used
  3305. * @summary
  3306. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  3307. * @param {*} [options] Override http request option.
  3308. * @throws {RequiredError}
  3309. */
  3310. checkDuplicateAsset(checkDuplicateAssetDto: CheckDuplicateAssetDto, options?: any): AxiosPromise<CheckDuplicateAssetResponseDto> {
  3311. return localVarFp.checkDuplicateAsset(checkDuplicateAssetDto, options).then((request) => request(axios, basePath));
  3312. },
  3313. /**
  3314. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  3315. * @summary
  3316. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  3317. * @param {*} [options] Override http request option.
  3318. * @throws {RequiredError}
  3319. */
  3320. checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: any): AxiosPromise<CheckExistingAssetsResponseDto> {
  3321. return localVarFp.checkExistingAssets(checkExistingAssetsDto, options).then((request) => request(axios, basePath));
  3322. },
  3323. /**
  3324. *
  3325. * @param {DeleteAssetDto} deleteAssetDto
  3326. * @param {*} [options] Override http request option.
  3327. * @throws {RequiredError}
  3328. */
  3329. deleteAsset(deleteAssetDto: DeleteAssetDto, options?: any): AxiosPromise<Array<DeleteAssetResponseDto>> {
  3330. return localVarFp.deleteAsset(deleteAssetDto, options).then((request) => request(axios, basePath));
  3331. },
  3332. /**
  3333. *
  3334. * @param {string} aid
  3335. * @param {string} did
  3336. * @param {boolean} [isThumb]
  3337. * @param {boolean} [isWeb]
  3338. * @param {*} [options] Override http request option.
  3339. * @throws {RequiredError}
  3340. */
  3341. downloadFile(aid: string, did: string, isThumb?: boolean, isWeb?: boolean, options?: any): AxiosPromise<object> {
  3342. return localVarFp.downloadFile(aid, did, isThumb, isWeb, options).then((request) => request(axios, basePath));
  3343. },
  3344. /**
  3345. *
  3346. * @param {number} [skip]
  3347. * @param {*} [options] Override http request option.
  3348. * @throws {RequiredError}
  3349. */
  3350. downloadLibrary(skip?: number, options?: any): AxiosPromise<object> {
  3351. return localVarFp.downloadLibrary(skip, options).then((request) => request(axios, basePath));
  3352. },
  3353. /**
  3354. * Get all AssetEntity belong to the user
  3355. * @summary
  3356. * @param {*} [options] Override http request option.
  3357. * @throws {RequiredError}
  3358. */
  3359. getAllAssets(options?: any): AxiosPromise<Array<AssetResponseDto>> {
  3360. return localVarFp.getAllAssets(options).then((request) => request(axios, basePath));
  3361. },
  3362. /**
  3363. * Get a single asset\'s information
  3364. * @summary
  3365. * @param {string} assetId
  3366. * @param {*} [options] Override http request option.
  3367. * @throws {RequiredError}
  3368. */
  3369. getAssetById(assetId: string, options?: any): AxiosPromise<AssetResponseDto> {
  3370. return localVarFp.getAssetById(assetId, options).then((request) => request(axios, basePath));
  3371. },
  3372. /**
  3373. *
  3374. * @param {GetAssetByTimeBucketDto} getAssetByTimeBucketDto
  3375. * @param {*} [options] Override http request option.
  3376. * @throws {RequiredError}
  3377. */
  3378. getAssetByTimeBucket(getAssetByTimeBucketDto: GetAssetByTimeBucketDto, options?: any): AxiosPromise<Array<AssetResponseDto>> {
  3379. return localVarFp.getAssetByTimeBucket(getAssetByTimeBucketDto, options).then((request) => request(axios, basePath));
  3380. },
  3381. /**
  3382. *
  3383. * @param {GetAssetCountByTimeBucketDto} getAssetCountByTimeBucketDto
  3384. * @param {*} [options] Override http request option.
  3385. * @throws {RequiredError}
  3386. */
  3387. getAssetCountByTimeBucket(getAssetCountByTimeBucketDto: GetAssetCountByTimeBucketDto, options?: any): AxiosPromise<AssetCountByTimeBucketResponseDto> {
  3388. return localVarFp.getAssetCountByTimeBucket(getAssetCountByTimeBucketDto, options).then((request) => request(axios, basePath));
  3389. },
  3390. /**
  3391. *
  3392. * @param {*} [options] Override http request option.
  3393. * @throws {RequiredError}
  3394. */
  3395. getAssetCountByUserId(options?: any): AxiosPromise<AssetCountByUserIdResponseDto> {
  3396. return localVarFp.getAssetCountByUserId(options).then((request) => request(axios, basePath));
  3397. },
  3398. /**
  3399. *
  3400. * @param {*} [options] Override http request option.
  3401. * @throws {RequiredError}
  3402. */
  3403. getAssetSearchTerms(options?: any): AxiosPromise<Array<string>> {
  3404. return localVarFp.getAssetSearchTerms(options).then((request) => request(axios, basePath));
  3405. },
  3406. /**
  3407. *
  3408. * @param {string} assetId
  3409. * @param {ThumbnailFormat} [format]
  3410. * @param {*} [options] Override http request option.
  3411. * @throws {RequiredError}
  3412. */
  3413. getAssetThumbnail(assetId: string, format?: ThumbnailFormat, options?: any): AxiosPromise<object> {
  3414. return localVarFp.getAssetThumbnail(assetId, format, options).then((request) => request(axios, basePath));
  3415. },
  3416. /**
  3417. *
  3418. * @param {*} [options] Override http request option.
  3419. * @throws {RequiredError}
  3420. */
  3421. getCuratedLocations(options?: any): AxiosPromise<Array<CuratedLocationsResponseDto>> {
  3422. return localVarFp.getCuratedLocations(options).then((request) => request(axios, basePath));
  3423. },
  3424. /**
  3425. *
  3426. * @param {*} [options] Override http request option.
  3427. * @throws {RequiredError}
  3428. */
  3429. getCuratedObjects(options?: any): AxiosPromise<Array<CuratedObjectsResponseDto>> {
  3430. return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
  3431. },
  3432. /**
  3433. * Get all asset of a device that are in the database, ID only.
  3434. * @summary
  3435. * @param {string} deviceId
  3436. * @param {*} [options] Override http request option.
  3437. * @throws {RequiredError}
  3438. */
  3439. getUserAssetsByDeviceId(deviceId: string, options?: any): AxiosPromise<Array<string>> {
  3440. return localVarFp.getUserAssetsByDeviceId(deviceId, options).then((request) => request(axios, basePath));
  3441. },
  3442. /**
  3443. *
  3444. * @param {SearchAssetDto} searchAssetDto
  3445. * @param {*} [options] Override http request option.
  3446. * @throws {RequiredError}
  3447. */
  3448. searchAsset(searchAssetDto: SearchAssetDto, options?: any): AxiosPromise<Array<AssetResponseDto>> {
  3449. return localVarFp.searchAsset(searchAssetDto, options).then((request) => request(axios, basePath));
  3450. },
  3451. /**
  3452. *
  3453. * @param {string} aid
  3454. * @param {string} did
  3455. * @param {boolean} [isThumb]
  3456. * @param {boolean} [isWeb]
  3457. * @param {*} [options] Override http request option.
  3458. * @throws {RequiredError}
  3459. */
  3460. serveFile(aid: string, did: string, isThumb?: boolean, isWeb?: boolean, options?: any): AxiosPromise<object> {
  3461. return localVarFp.serveFile(aid, did, isThumb, isWeb, options).then((request) => request(axios, basePath));
  3462. },
  3463. /**
  3464. * Update an asset
  3465. * @summary
  3466. * @param {string} assetId
  3467. * @param {UpdateAssetDto} updateAssetDto
  3468. * @param {*} [options] Override http request option.
  3469. * @throws {RequiredError}
  3470. */
  3471. updateAssetById(assetId: string, updateAssetDto: UpdateAssetDto, options?: any): AxiosPromise<AssetResponseDto> {
  3472. return localVarFp.updateAssetById(assetId, updateAssetDto, options).then((request) => request(axios, basePath));
  3473. },
  3474. /**
  3475. *
  3476. * @param {any} assetData
  3477. * @param {*} [options] Override http request option.
  3478. * @throws {RequiredError}
  3479. */
  3480. uploadFile(assetData: any, options?: any): AxiosPromise<AssetFileUploadResponseDto> {
  3481. return localVarFp.uploadFile(assetData, options).then((request) => request(axios, basePath));
  3482. },
  3483. };
  3484. };
  3485. /**
  3486. * AssetApi - object-oriented interface
  3487. * @export
  3488. * @class AssetApi
  3489. * @extends {BaseAPI}
  3490. */
  3491. export class AssetApi extends BaseAPI {
  3492. /**
  3493. * Check duplicated asset before uploading - for Web upload used
  3494. * @summary
  3495. * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
  3496. * @param {*} [options] Override http request option.
  3497. * @throws {RequiredError}
  3498. * @memberof AssetApi
  3499. */
  3500. public checkDuplicateAsset(checkDuplicateAssetDto: CheckDuplicateAssetDto, options?: AxiosRequestConfig) {
  3501. return AssetApiFp(this.configuration).checkDuplicateAsset(checkDuplicateAssetDto, options).then((request) => request(this.axios, this.basePath));
  3502. }
  3503. /**
  3504. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  3505. * @summary
  3506. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  3507. * @param {*} [options] Override http request option.
  3508. * @throws {RequiredError}
  3509. * @memberof AssetApi
  3510. */
  3511. public checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig) {
  3512. return AssetApiFp(this.configuration).checkExistingAssets(checkExistingAssetsDto, options).then((request) => request(this.axios, this.basePath));
  3513. }
  3514. /**
  3515. *
  3516. * @param {DeleteAssetDto} deleteAssetDto
  3517. * @param {*} [options] Override http request option.
  3518. * @throws {RequiredError}
  3519. * @memberof AssetApi
  3520. */
  3521. public deleteAsset(deleteAssetDto: DeleteAssetDto, options?: AxiosRequestConfig) {
  3522. return AssetApiFp(this.configuration).deleteAsset(deleteAssetDto, options).then((request) => request(this.axios, this.basePath));
  3523. }
  3524. /**
  3525. *
  3526. * @param {string} aid
  3527. * @param {string} did
  3528. * @param {boolean} [isThumb]
  3529. * @param {boolean} [isWeb]
  3530. * @param {*} [options] Override http request option.
  3531. * @throws {RequiredError}
  3532. * @memberof AssetApi
  3533. */
  3534. public downloadFile(aid: string, did: string, isThumb?: boolean, isWeb?: boolean, options?: AxiosRequestConfig) {
  3535. return AssetApiFp(this.configuration).downloadFile(aid, did, isThumb, isWeb, options).then((request) => request(this.axios, this.basePath));
  3536. }
  3537. /**
  3538. *
  3539. * @param {number} [skip]
  3540. * @param {*} [options] Override http request option.
  3541. * @throws {RequiredError}
  3542. * @memberof AssetApi
  3543. */
  3544. public downloadLibrary(skip?: number, options?: AxiosRequestConfig) {
  3545. return AssetApiFp(this.configuration).downloadLibrary(skip, options).then((request) => request(this.axios, this.basePath));
  3546. }
  3547. /**
  3548. * Get all AssetEntity belong to the user
  3549. * @summary
  3550. * @param {*} [options] Override http request option.
  3551. * @throws {RequiredError}
  3552. * @memberof AssetApi
  3553. */
  3554. public getAllAssets(options?: AxiosRequestConfig) {
  3555. return AssetApiFp(this.configuration).getAllAssets(options).then((request) => request(this.axios, this.basePath));
  3556. }
  3557. /**
  3558. * Get a single asset\'s information
  3559. * @summary
  3560. * @param {string} assetId
  3561. * @param {*} [options] Override http request option.
  3562. * @throws {RequiredError}
  3563. * @memberof AssetApi
  3564. */
  3565. public getAssetById(assetId: string, options?: AxiosRequestConfig) {
  3566. return AssetApiFp(this.configuration).getAssetById(assetId, options).then((request) => request(this.axios, this.basePath));
  3567. }
  3568. /**
  3569. *
  3570. * @param {GetAssetByTimeBucketDto} getAssetByTimeBucketDto
  3571. * @param {*} [options] Override http request option.
  3572. * @throws {RequiredError}
  3573. * @memberof AssetApi
  3574. */
  3575. public getAssetByTimeBucket(getAssetByTimeBucketDto: GetAssetByTimeBucketDto, options?: AxiosRequestConfig) {
  3576. return AssetApiFp(this.configuration).getAssetByTimeBucket(getAssetByTimeBucketDto, options).then((request) => request(this.axios, this.basePath));
  3577. }
  3578. /**
  3579. *
  3580. * @param {GetAssetCountByTimeBucketDto} getAssetCountByTimeBucketDto
  3581. * @param {*} [options] Override http request option.
  3582. * @throws {RequiredError}
  3583. * @memberof AssetApi
  3584. */
  3585. public getAssetCountByTimeBucket(getAssetCountByTimeBucketDto: GetAssetCountByTimeBucketDto, options?: AxiosRequestConfig) {
  3586. return AssetApiFp(this.configuration).getAssetCountByTimeBucket(getAssetCountByTimeBucketDto, options).then((request) => request(this.axios, this.basePath));
  3587. }
  3588. /**
  3589. *
  3590. * @param {*} [options] Override http request option.
  3591. * @throws {RequiredError}
  3592. * @memberof AssetApi
  3593. */
  3594. public getAssetCountByUserId(options?: AxiosRequestConfig) {
  3595. return AssetApiFp(this.configuration).getAssetCountByUserId(options).then((request) => request(this.axios, this.basePath));
  3596. }
  3597. /**
  3598. *
  3599. * @param {*} [options] Override http request option.
  3600. * @throws {RequiredError}
  3601. * @memberof AssetApi
  3602. */
  3603. public getAssetSearchTerms(options?: AxiosRequestConfig) {
  3604. return AssetApiFp(this.configuration).getAssetSearchTerms(options).then((request) => request(this.axios, this.basePath));
  3605. }
  3606. /**
  3607. *
  3608. * @param {string} assetId
  3609. * @param {ThumbnailFormat} [format]
  3610. * @param {*} [options] Override http request option.
  3611. * @throws {RequiredError}
  3612. * @memberof AssetApi
  3613. */
  3614. public getAssetThumbnail(assetId: string, format?: ThumbnailFormat, options?: AxiosRequestConfig) {
  3615. return AssetApiFp(this.configuration).getAssetThumbnail(assetId, format, options).then((request) => request(this.axios, this.basePath));
  3616. }
  3617. /**
  3618. *
  3619. * @param {*} [options] Override http request option.
  3620. * @throws {RequiredError}
  3621. * @memberof AssetApi
  3622. */
  3623. public getCuratedLocations(options?: AxiosRequestConfig) {
  3624. return AssetApiFp(this.configuration).getCuratedLocations(options).then((request) => request(this.axios, this.basePath));
  3625. }
  3626. /**
  3627. *
  3628. * @param {*} [options] Override http request option.
  3629. * @throws {RequiredError}
  3630. * @memberof AssetApi
  3631. */
  3632. public getCuratedObjects(options?: AxiosRequestConfig) {
  3633. return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
  3634. }
  3635. /**
  3636. * Get all asset of a device that are in the database, ID only.
  3637. * @summary
  3638. * @param {string} deviceId
  3639. * @param {*} [options] Override http request option.
  3640. * @throws {RequiredError}
  3641. * @memberof AssetApi
  3642. */
  3643. public getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig) {
  3644. return AssetApiFp(this.configuration).getUserAssetsByDeviceId(deviceId, options).then((request) => request(this.axios, this.basePath));
  3645. }
  3646. /**
  3647. *
  3648. * @param {SearchAssetDto} searchAssetDto
  3649. * @param {*} [options] Override http request option.
  3650. * @throws {RequiredError}
  3651. * @memberof AssetApi
  3652. */
  3653. public searchAsset(searchAssetDto: SearchAssetDto, options?: AxiosRequestConfig) {
  3654. return AssetApiFp(this.configuration).searchAsset(searchAssetDto, options).then((request) => request(this.axios, this.basePath));
  3655. }
  3656. /**
  3657. *
  3658. * @param {string} aid
  3659. * @param {string} did
  3660. * @param {boolean} [isThumb]
  3661. * @param {boolean} [isWeb]
  3662. * @param {*} [options] Override http request option.
  3663. * @throws {RequiredError}
  3664. * @memberof AssetApi
  3665. */
  3666. public serveFile(aid: string, did: string, isThumb?: boolean, isWeb?: boolean, options?: AxiosRequestConfig) {
  3667. return AssetApiFp(this.configuration).serveFile(aid, did, isThumb, isWeb, options).then((request) => request(this.axios, this.basePath));
  3668. }
  3669. /**
  3670. * Update an asset
  3671. * @summary
  3672. * @param {string} assetId
  3673. * @param {UpdateAssetDto} updateAssetDto
  3674. * @param {*} [options] Override http request option.
  3675. * @throws {RequiredError}
  3676. * @memberof AssetApi
  3677. */
  3678. public updateAssetById(assetId: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig) {
  3679. return AssetApiFp(this.configuration).updateAssetById(assetId, updateAssetDto, options).then((request) => request(this.axios, this.basePath));
  3680. }
  3681. /**
  3682. *
  3683. * @param {any} assetData
  3684. * @param {*} [options] Override http request option.
  3685. * @throws {RequiredError}
  3686. * @memberof AssetApi
  3687. */
  3688. public uploadFile(assetData: any, options?: AxiosRequestConfig) {
  3689. return AssetApiFp(this.configuration).uploadFile(assetData, options).then((request) => request(this.axios, this.basePath));
  3690. }
  3691. }
  3692. /**
  3693. * AuthenticationApi - axios parameter creator
  3694. * @export
  3695. */
  3696. export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
  3697. return {
  3698. /**
  3699. *
  3700. * @param {SignUpDto} signUpDto
  3701. * @param {*} [options] Override http request option.
  3702. * @throws {RequiredError}
  3703. */
  3704. adminSignUp: async (signUpDto: SignUpDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3705. // verify required parameter 'signUpDto' is not null or undefined
  3706. assertParamExists('adminSignUp', 'signUpDto', signUpDto)
  3707. const localVarPath = `/auth/admin-sign-up`;
  3708. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3709. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3710. let baseOptions;
  3711. if (configuration) {
  3712. baseOptions = configuration.baseOptions;
  3713. }
  3714. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3715. const localVarHeaderParameter = {} as any;
  3716. const localVarQueryParameter = {} as any;
  3717. localVarHeaderParameter['Content-Type'] = 'application/json';
  3718. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3719. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3720. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3721. localVarRequestOptions.data = serializeDataIfNeeded(signUpDto, localVarRequestOptions, configuration)
  3722. return {
  3723. url: toPathString(localVarUrlObj),
  3724. options: localVarRequestOptions,
  3725. };
  3726. },
  3727. /**
  3728. *
  3729. * @param {LoginCredentialDto} loginCredentialDto
  3730. * @param {*} [options] Override http request option.
  3731. * @throws {RequiredError}
  3732. */
  3733. login: async (loginCredentialDto: LoginCredentialDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3734. // verify required parameter 'loginCredentialDto' is not null or undefined
  3735. assertParamExists('login', 'loginCredentialDto', loginCredentialDto)
  3736. const localVarPath = `/auth/login`;
  3737. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3738. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3739. let baseOptions;
  3740. if (configuration) {
  3741. baseOptions = configuration.baseOptions;
  3742. }
  3743. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3744. const localVarHeaderParameter = {} as any;
  3745. const localVarQueryParameter = {} as any;
  3746. localVarHeaderParameter['Content-Type'] = 'application/json';
  3747. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3748. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3749. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3750. localVarRequestOptions.data = serializeDataIfNeeded(loginCredentialDto, localVarRequestOptions, configuration)
  3751. return {
  3752. url: toPathString(localVarUrlObj),
  3753. options: localVarRequestOptions,
  3754. };
  3755. },
  3756. /**
  3757. *
  3758. * @param {*} [options] Override http request option.
  3759. * @throws {RequiredError}
  3760. */
  3761. logout: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3762. const localVarPath = `/auth/logout`;
  3763. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3764. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3765. let baseOptions;
  3766. if (configuration) {
  3767. baseOptions = configuration.baseOptions;
  3768. }
  3769. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3770. const localVarHeaderParameter = {} as any;
  3771. const localVarQueryParameter = {} as any;
  3772. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3773. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3774. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3775. return {
  3776. url: toPathString(localVarUrlObj),
  3777. options: localVarRequestOptions,
  3778. };
  3779. },
  3780. /**
  3781. *
  3782. * @param {*} [options] Override http request option.
  3783. * @throws {RequiredError}
  3784. */
  3785. validateAccessToken: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3786. const localVarPath = `/auth/validateToken`;
  3787. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3788. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3789. let baseOptions;
  3790. if (configuration) {
  3791. baseOptions = configuration.baseOptions;
  3792. }
  3793. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3794. const localVarHeaderParameter = {} as any;
  3795. const localVarQueryParameter = {} as any;
  3796. // authentication bearer required
  3797. // http bearer authentication required
  3798. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3799. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3800. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3801. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3802. return {
  3803. url: toPathString(localVarUrlObj),
  3804. options: localVarRequestOptions,
  3805. };
  3806. },
  3807. }
  3808. };
  3809. /**
  3810. * AuthenticationApi - functional programming interface
  3811. * @export
  3812. */
  3813. export const AuthenticationApiFp = function(configuration?: Configuration) {
  3814. const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
  3815. return {
  3816. /**
  3817. *
  3818. * @param {SignUpDto} signUpDto
  3819. * @param {*} [options] Override http request option.
  3820. * @throws {RequiredError}
  3821. */
  3822. async adminSignUp(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminSignupResponseDto>> {
  3823. const localVarAxiosArgs = await localVarAxiosParamCreator.adminSignUp(signUpDto, options);
  3824. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3825. },
  3826. /**
  3827. *
  3828. * @param {LoginCredentialDto} loginCredentialDto
  3829. * @param {*} [options] Override http request option.
  3830. * @throws {RequiredError}
  3831. */
  3832. async login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  3833. const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginCredentialDto, options);
  3834. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3835. },
  3836. /**
  3837. *
  3838. * @param {*} [options] Override http request option.
  3839. * @throws {RequiredError}
  3840. */
  3841. async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogoutResponseDto>> {
  3842. const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options);
  3843. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3844. },
  3845. /**
  3846. *
  3847. * @param {*} [options] Override http request option.
  3848. * @throws {RequiredError}
  3849. */
  3850. async validateAccessToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccessTokenResponseDto>> {
  3851. const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccessToken(options);
  3852. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  3853. },
  3854. }
  3855. };
  3856. /**
  3857. * AuthenticationApi - factory interface
  3858. * @export
  3859. */
  3860. export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  3861. const localVarFp = AuthenticationApiFp(configuration)
  3862. return {
  3863. /**
  3864. *
  3865. * @param {SignUpDto} signUpDto
  3866. * @param {*} [options] Override http request option.
  3867. * @throws {RequiredError}
  3868. */
  3869. adminSignUp(signUpDto: SignUpDto, options?: any): AxiosPromise<AdminSignupResponseDto> {
  3870. return localVarFp.adminSignUp(signUpDto, options).then((request) => request(axios, basePath));
  3871. },
  3872. /**
  3873. *
  3874. * @param {LoginCredentialDto} loginCredentialDto
  3875. * @param {*} [options] Override http request option.
  3876. * @throws {RequiredError}
  3877. */
  3878. login(loginCredentialDto: LoginCredentialDto, options?: any): AxiosPromise<LoginResponseDto> {
  3879. return localVarFp.login(loginCredentialDto, options).then((request) => request(axios, basePath));
  3880. },
  3881. /**
  3882. *
  3883. * @param {*} [options] Override http request option.
  3884. * @throws {RequiredError}
  3885. */
  3886. logout(options?: any): AxiosPromise<LogoutResponseDto> {
  3887. return localVarFp.logout(options).then((request) => request(axios, basePath));
  3888. },
  3889. /**
  3890. *
  3891. * @param {*} [options] Override http request option.
  3892. * @throws {RequiredError}
  3893. */
  3894. validateAccessToken(options?: any): AxiosPromise<ValidateAccessTokenResponseDto> {
  3895. return localVarFp.validateAccessToken(options).then((request) => request(axios, basePath));
  3896. },
  3897. };
  3898. };
  3899. /**
  3900. * AuthenticationApi - object-oriented interface
  3901. * @export
  3902. * @class AuthenticationApi
  3903. * @extends {BaseAPI}
  3904. */
  3905. export class AuthenticationApi extends BaseAPI {
  3906. /**
  3907. *
  3908. * @param {SignUpDto} signUpDto
  3909. * @param {*} [options] Override http request option.
  3910. * @throws {RequiredError}
  3911. * @memberof AuthenticationApi
  3912. */
  3913. public adminSignUp(signUpDto: SignUpDto, options?: AxiosRequestConfig) {
  3914. return AuthenticationApiFp(this.configuration).adminSignUp(signUpDto, options).then((request) => request(this.axios, this.basePath));
  3915. }
  3916. /**
  3917. *
  3918. * @param {LoginCredentialDto} loginCredentialDto
  3919. * @param {*} [options] Override http request option.
  3920. * @throws {RequiredError}
  3921. * @memberof AuthenticationApi
  3922. */
  3923. public login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig) {
  3924. return AuthenticationApiFp(this.configuration).login(loginCredentialDto, options).then((request) => request(this.axios, this.basePath));
  3925. }
  3926. /**
  3927. *
  3928. * @param {*} [options] Override http request option.
  3929. * @throws {RequiredError}
  3930. * @memberof AuthenticationApi
  3931. */
  3932. public logout(options?: AxiosRequestConfig) {
  3933. return AuthenticationApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath));
  3934. }
  3935. /**
  3936. *
  3937. * @param {*} [options] Override http request option.
  3938. * @throws {RequiredError}
  3939. * @memberof AuthenticationApi
  3940. */
  3941. public validateAccessToken(options?: AxiosRequestConfig) {
  3942. return AuthenticationApiFp(this.configuration).validateAccessToken(options).then((request) => request(this.axios, this.basePath));
  3943. }
  3944. }
  3945. /**
  3946. * DeviceInfoApi - axios parameter creator
  3947. * @export
  3948. */
  3949. export const DeviceInfoApiAxiosParamCreator = function (configuration?: Configuration) {
  3950. return {
  3951. /**
  3952. *
  3953. * @param {CreateDeviceInfoDto} createDeviceInfoDto
  3954. * @param {*} [options] Override http request option.
  3955. * @throws {RequiredError}
  3956. */
  3957. createDeviceInfo: async (createDeviceInfoDto: CreateDeviceInfoDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3958. // verify required parameter 'createDeviceInfoDto' is not null or undefined
  3959. assertParamExists('createDeviceInfo', 'createDeviceInfoDto', createDeviceInfoDto)
  3960. const localVarPath = `/device-info`;
  3961. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3962. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3963. let baseOptions;
  3964. if (configuration) {
  3965. baseOptions = configuration.baseOptions;
  3966. }
  3967. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  3968. const localVarHeaderParameter = {} as any;
  3969. const localVarQueryParameter = {} as any;
  3970. // authentication bearer required
  3971. // http bearer authentication required
  3972. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  3973. localVarHeaderParameter['Content-Type'] = 'application/json';
  3974. setSearchParams(localVarUrlObj, localVarQueryParameter);
  3975. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  3976. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  3977. localVarRequestOptions.data = serializeDataIfNeeded(createDeviceInfoDto, localVarRequestOptions, configuration)
  3978. return {
  3979. url: toPathString(localVarUrlObj),
  3980. options: localVarRequestOptions,
  3981. };
  3982. },
  3983. /**
  3984. *
  3985. * @param {UpdateDeviceInfoDto} updateDeviceInfoDto
  3986. * @param {*} [options] Override http request option.
  3987. * @throws {RequiredError}
  3988. */
  3989. updateDeviceInfo: async (updateDeviceInfoDto: UpdateDeviceInfoDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  3990. // verify required parameter 'updateDeviceInfoDto' is not null or undefined
  3991. assertParamExists('updateDeviceInfo', 'updateDeviceInfoDto', updateDeviceInfoDto)
  3992. const localVarPath = `/device-info`;
  3993. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  3994. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  3995. let baseOptions;
  3996. if (configuration) {
  3997. baseOptions = configuration.baseOptions;
  3998. }
  3999. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  4000. const localVarHeaderParameter = {} as any;
  4001. const localVarQueryParameter = {} as any;
  4002. // authentication bearer required
  4003. // http bearer authentication required
  4004. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4005. localVarHeaderParameter['Content-Type'] = 'application/json';
  4006. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4007. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4008. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4009. localVarRequestOptions.data = serializeDataIfNeeded(updateDeviceInfoDto, localVarRequestOptions, configuration)
  4010. return {
  4011. url: toPathString(localVarUrlObj),
  4012. options: localVarRequestOptions,
  4013. };
  4014. },
  4015. }
  4016. };
  4017. /**
  4018. * DeviceInfoApi - functional programming interface
  4019. * @export
  4020. */
  4021. export const DeviceInfoApiFp = function(configuration?: Configuration) {
  4022. const localVarAxiosParamCreator = DeviceInfoApiAxiosParamCreator(configuration)
  4023. return {
  4024. /**
  4025. *
  4026. * @param {CreateDeviceInfoDto} createDeviceInfoDto
  4027. * @param {*} [options] Override http request option.
  4028. * @throws {RequiredError}
  4029. */
  4030. async createDeviceInfo(createDeviceInfoDto: CreateDeviceInfoDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeviceInfoResponseDto>> {
  4031. const localVarAxiosArgs = await localVarAxiosParamCreator.createDeviceInfo(createDeviceInfoDto, options);
  4032. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4033. },
  4034. /**
  4035. *
  4036. * @param {UpdateDeviceInfoDto} updateDeviceInfoDto
  4037. * @param {*} [options] Override http request option.
  4038. * @throws {RequiredError}
  4039. */
  4040. async updateDeviceInfo(updateDeviceInfoDto: UpdateDeviceInfoDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeviceInfoResponseDto>> {
  4041. const localVarAxiosArgs = await localVarAxiosParamCreator.updateDeviceInfo(updateDeviceInfoDto, options);
  4042. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4043. },
  4044. }
  4045. };
  4046. /**
  4047. * DeviceInfoApi - factory interface
  4048. * @export
  4049. */
  4050. export const DeviceInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4051. const localVarFp = DeviceInfoApiFp(configuration)
  4052. return {
  4053. /**
  4054. *
  4055. * @param {CreateDeviceInfoDto} createDeviceInfoDto
  4056. * @param {*} [options] Override http request option.
  4057. * @throws {RequiredError}
  4058. */
  4059. createDeviceInfo(createDeviceInfoDto: CreateDeviceInfoDto, options?: any): AxiosPromise<DeviceInfoResponseDto> {
  4060. return localVarFp.createDeviceInfo(createDeviceInfoDto, options).then((request) => request(axios, basePath));
  4061. },
  4062. /**
  4063. *
  4064. * @param {UpdateDeviceInfoDto} updateDeviceInfoDto
  4065. * @param {*} [options] Override http request option.
  4066. * @throws {RequiredError}
  4067. */
  4068. updateDeviceInfo(updateDeviceInfoDto: UpdateDeviceInfoDto, options?: any): AxiosPromise<DeviceInfoResponseDto> {
  4069. return localVarFp.updateDeviceInfo(updateDeviceInfoDto, options).then((request) => request(axios, basePath));
  4070. },
  4071. };
  4072. };
  4073. /**
  4074. * DeviceInfoApi - object-oriented interface
  4075. * @export
  4076. * @class DeviceInfoApi
  4077. * @extends {BaseAPI}
  4078. */
  4079. export class DeviceInfoApi extends BaseAPI {
  4080. /**
  4081. *
  4082. * @param {CreateDeviceInfoDto} createDeviceInfoDto
  4083. * @param {*} [options] Override http request option.
  4084. * @throws {RequiredError}
  4085. * @memberof DeviceInfoApi
  4086. */
  4087. public createDeviceInfo(createDeviceInfoDto: CreateDeviceInfoDto, options?: AxiosRequestConfig) {
  4088. return DeviceInfoApiFp(this.configuration).createDeviceInfo(createDeviceInfoDto, options).then((request) => request(this.axios, this.basePath));
  4089. }
  4090. /**
  4091. *
  4092. * @param {UpdateDeviceInfoDto} updateDeviceInfoDto
  4093. * @param {*} [options] Override http request option.
  4094. * @throws {RequiredError}
  4095. * @memberof DeviceInfoApi
  4096. */
  4097. public updateDeviceInfo(updateDeviceInfoDto: UpdateDeviceInfoDto, options?: AxiosRequestConfig) {
  4098. return DeviceInfoApiFp(this.configuration).updateDeviceInfo(updateDeviceInfoDto, options).then((request) => request(this.axios, this.basePath));
  4099. }
  4100. }
  4101. /**
  4102. * JobApi - axios parameter creator
  4103. * @export
  4104. */
  4105. export const JobApiAxiosParamCreator = function (configuration?: Configuration) {
  4106. return {
  4107. /**
  4108. *
  4109. * @param {*} [options] Override http request option.
  4110. * @throws {RequiredError}
  4111. */
  4112. getAllJobsStatus: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4113. const localVarPath = `/jobs`;
  4114. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4115. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4116. let baseOptions;
  4117. if (configuration) {
  4118. baseOptions = configuration.baseOptions;
  4119. }
  4120. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4121. const localVarHeaderParameter = {} as any;
  4122. const localVarQueryParameter = {} as any;
  4123. // authentication bearer required
  4124. // http bearer authentication required
  4125. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4126. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4127. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4128. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4129. return {
  4130. url: toPathString(localVarUrlObj),
  4131. options: localVarRequestOptions,
  4132. };
  4133. },
  4134. /**
  4135. *
  4136. * @param {JobId} jobId
  4137. * @param {*} [options] Override http request option.
  4138. * @throws {RequiredError}
  4139. */
  4140. getJobStatus: async (jobId: JobId, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4141. // verify required parameter 'jobId' is not null or undefined
  4142. assertParamExists('getJobStatus', 'jobId', jobId)
  4143. const localVarPath = `/jobs/{jobId}`
  4144. .replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
  4145. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4146. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4147. let baseOptions;
  4148. if (configuration) {
  4149. baseOptions = configuration.baseOptions;
  4150. }
  4151. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4152. const localVarHeaderParameter = {} as any;
  4153. const localVarQueryParameter = {} as any;
  4154. // authentication bearer required
  4155. // http bearer authentication required
  4156. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4157. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4158. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4159. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4160. return {
  4161. url: toPathString(localVarUrlObj),
  4162. options: localVarRequestOptions,
  4163. };
  4164. },
  4165. /**
  4166. *
  4167. * @param {JobId} jobId
  4168. * @param {JobCommandDto} jobCommandDto
  4169. * @param {*} [options] Override http request option.
  4170. * @throws {RequiredError}
  4171. */
  4172. sendJobCommand: async (jobId: JobId, jobCommandDto: JobCommandDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4173. // verify required parameter 'jobId' is not null or undefined
  4174. assertParamExists('sendJobCommand', 'jobId', jobId)
  4175. // verify required parameter 'jobCommandDto' is not null or undefined
  4176. assertParamExists('sendJobCommand', 'jobCommandDto', jobCommandDto)
  4177. const localVarPath = `/jobs/{jobId}`
  4178. .replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
  4179. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4180. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4181. let baseOptions;
  4182. if (configuration) {
  4183. baseOptions = configuration.baseOptions;
  4184. }
  4185. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4186. const localVarHeaderParameter = {} as any;
  4187. const localVarQueryParameter = {} as any;
  4188. // authentication bearer required
  4189. // http bearer authentication required
  4190. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4191. localVarHeaderParameter['Content-Type'] = 'application/json';
  4192. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4193. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4194. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4195. localVarRequestOptions.data = serializeDataIfNeeded(jobCommandDto, localVarRequestOptions, configuration)
  4196. return {
  4197. url: toPathString(localVarUrlObj),
  4198. options: localVarRequestOptions,
  4199. };
  4200. },
  4201. }
  4202. };
  4203. /**
  4204. * JobApi - functional programming interface
  4205. * @export
  4206. */
  4207. export const JobApiFp = function(configuration?: Configuration) {
  4208. const localVarAxiosParamCreator = JobApiAxiosParamCreator(configuration)
  4209. return {
  4210. /**
  4211. *
  4212. * @param {*} [options] Override http request option.
  4213. * @throws {RequiredError}
  4214. */
  4215. async getAllJobsStatus(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllJobStatusResponseDto>> {
  4216. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllJobsStatus(options);
  4217. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4218. },
  4219. /**
  4220. *
  4221. * @param {JobId} jobId
  4222. * @param {*} [options] Override http request option.
  4223. * @throws {RequiredError}
  4224. */
  4225. async getJobStatus(jobId: JobId, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobStatusResponseDto>> {
  4226. const localVarAxiosArgs = await localVarAxiosParamCreator.getJobStatus(jobId, options);
  4227. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4228. },
  4229. /**
  4230. *
  4231. * @param {JobId} jobId
  4232. * @param {JobCommandDto} jobCommandDto
  4233. * @param {*} [options] Override http request option.
  4234. * @throws {RequiredError}
  4235. */
  4236. async sendJobCommand(jobId: JobId, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<number>> {
  4237. const localVarAxiosArgs = await localVarAxiosParamCreator.sendJobCommand(jobId, jobCommandDto, options);
  4238. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4239. },
  4240. }
  4241. };
  4242. /**
  4243. * JobApi - factory interface
  4244. * @export
  4245. */
  4246. export const JobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4247. const localVarFp = JobApiFp(configuration)
  4248. return {
  4249. /**
  4250. *
  4251. * @param {*} [options] Override http request option.
  4252. * @throws {RequiredError}
  4253. */
  4254. getAllJobsStatus(options?: any): AxiosPromise<AllJobStatusResponseDto> {
  4255. return localVarFp.getAllJobsStatus(options).then((request) => request(axios, basePath));
  4256. },
  4257. /**
  4258. *
  4259. * @param {JobId} jobId
  4260. * @param {*} [options] Override http request option.
  4261. * @throws {RequiredError}
  4262. */
  4263. getJobStatus(jobId: JobId, options?: any): AxiosPromise<JobStatusResponseDto> {
  4264. return localVarFp.getJobStatus(jobId, options).then((request) => request(axios, basePath));
  4265. },
  4266. /**
  4267. *
  4268. * @param {JobId} jobId
  4269. * @param {JobCommandDto} jobCommandDto
  4270. * @param {*} [options] Override http request option.
  4271. * @throws {RequiredError}
  4272. */
  4273. sendJobCommand(jobId: JobId, jobCommandDto: JobCommandDto, options?: any): AxiosPromise<number> {
  4274. return localVarFp.sendJobCommand(jobId, jobCommandDto, options).then((request) => request(axios, basePath));
  4275. },
  4276. };
  4277. };
  4278. /**
  4279. * JobApi - object-oriented interface
  4280. * @export
  4281. * @class JobApi
  4282. * @extends {BaseAPI}
  4283. */
  4284. export class JobApi extends BaseAPI {
  4285. /**
  4286. *
  4287. * @param {*} [options] Override http request option.
  4288. * @throws {RequiredError}
  4289. * @memberof JobApi
  4290. */
  4291. public getAllJobsStatus(options?: AxiosRequestConfig) {
  4292. return JobApiFp(this.configuration).getAllJobsStatus(options).then((request) => request(this.axios, this.basePath));
  4293. }
  4294. /**
  4295. *
  4296. * @param {JobId} jobId
  4297. * @param {*} [options] Override http request option.
  4298. * @throws {RequiredError}
  4299. * @memberof JobApi
  4300. */
  4301. public getJobStatus(jobId: JobId, options?: AxiosRequestConfig) {
  4302. return JobApiFp(this.configuration).getJobStatus(jobId, options).then((request) => request(this.axios, this.basePath));
  4303. }
  4304. /**
  4305. *
  4306. * @param {JobId} jobId
  4307. * @param {JobCommandDto} jobCommandDto
  4308. * @param {*} [options] Override http request option.
  4309. * @throws {RequiredError}
  4310. * @memberof JobApi
  4311. */
  4312. public sendJobCommand(jobId: JobId, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig) {
  4313. return JobApiFp(this.configuration).sendJobCommand(jobId, jobCommandDto, options).then((request) => request(this.axios, this.basePath));
  4314. }
  4315. }
  4316. /**
  4317. * OAuthApi - axios parameter creator
  4318. * @export
  4319. */
  4320. export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
  4321. return {
  4322. /**
  4323. *
  4324. * @param {OAuthCallbackDto} oAuthCallbackDto
  4325. * @param {*} [options] Override http request option.
  4326. * @throws {RequiredError}
  4327. */
  4328. callback: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4329. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  4330. assertParamExists('callback', 'oAuthCallbackDto', oAuthCallbackDto)
  4331. const localVarPath = `/oauth/callback`;
  4332. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4333. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4334. let baseOptions;
  4335. if (configuration) {
  4336. baseOptions = configuration.baseOptions;
  4337. }
  4338. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4339. const localVarHeaderParameter = {} as any;
  4340. const localVarQueryParameter = {} as any;
  4341. localVarHeaderParameter['Content-Type'] = 'application/json';
  4342. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4343. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4344. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4345. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  4346. return {
  4347. url: toPathString(localVarUrlObj),
  4348. options: localVarRequestOptions,
  4349. };
  4350. },
  4351. /**
  4352. *
  4353. * @param {OAuthConfigDto} oAuthConfigDto
  4354. * @param {*} [options] Override http request option.
  4355. * @throws {RequiredError}
  4356. */
  4357. generateConfig: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4358. // verify required parameter 'oAuthConfigDto' is not null or undefined
  4359. assertParamExists('generateConfig', 'oAuthConfigDto', oAuthConfigDto)
  4360. const localVarPath = `/oauth/config`;
  4361. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4362. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4363. let baseOptions;
  4364. if (configuration) {
  4365. baseOptions = configuration.baseOptions;
  4366. }
  4367. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4368. const localVarHeaderParameter = {} as any;
  4369. const localVarQueryParameter = {} as any;
  4370. localVarHeaderParameter['Content-Type'] = 'application/json';
  4371. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4372. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4373. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4374. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  4375. return {
  4376. url: toPathString(localVarUrlObj),
  4377. options: localVarRequestOptions,
  4378. };
  4379. },
  4380. }
  4381. };
  4382. /**
  4383. * OAuthApi - functional programming interface
  4384. * @export
  4385. */
  4386. export const OAuthApiFp = function(configuration?: Configuration) {
  4387. const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
  4388. return {
  4389. /**
  4390. *
  4391. * @param {OAuthCallbackDto} oAuthCallbackDto
  4392. * @param {*} [options] Override http request option.
  4393. * @throws {RequiredError}
  4394. */
  4395. async callback(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  4396. const localVarAxiosArgs = await localVarAxiosParamCreator.callback(oAuthCallbackDto, options);
  4397. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4398. },
  4399. /**
  4400. *
  4401. * @param {OAuthConfigDto} oAuthConfigDto
  4402. * @param {*} [options] Override http request option.
  4403. * @throws {RequiredError}
  4404. */
  4405. async generateConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthConfigResponseDto>> {
  4406. const localVarAxiosArgs = await localVarAxiosParamCreator.generateConfig(oAuthConfigDto, options);
  4407. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4408. },
  4409. }
  4410. };
  4411. /**
  4412. * OAuthApi - factory interface
  4413. * @export
  4414. */
  4415. export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4416. const localVarFp = OAuthApiFp(configuration)
  4417. return {
  4418. /**
  4419. *
  4420. * @param {OAuthCallbackDto} oAuthCallbackDto
  4421. * @param {*} [options] Override http request option.
  4422. * @throws {RequiredError}
  4423. */
  4424. callback(oAuthCallbackDto: OAuthCallbackDto, options?: any): AxiosPromise<LoginResponseDto> {
  4425. return localVarFp.callback(oAuthCallbackDto, options).then((request) => request(axios, basePath));
  4426. },
  4427. /**
  4428. *
  4429. * @param {OAuthConfigDto} oAuthConfigDto
  4430. * @param {*} [options] Override http request option.
  4431. * @throws {RequiredError}
  4432. */
  4433. generateConfig(oAuthConfigDto: OAuthConfigDto, options?: any): AxiosPromise<OAuthConfigResponseDto> {
  4434. return localVarFp.generateConfig(oAuthConfigDto, options).then((request) => request(axios, basePath));
  4435. },
  4436. };
  4437. };
  4438. /**
  4439. * OAuthApi - object-oriented interface
  4440. * @export
  4441. * @class OAuthApi
  4442. * @extends {BaseAPI}
  4443. */
  4444. export class OAuthApi extends BaseAPI {
  4445. /**
  4446. *
  4447. * @param {OAuthCallbackDto} oAuthCallbackDto
  4448. * @param {*} [options] Override http request option.
  4449. * @throws {RequiredError}
  4450. * @memberof OAuthApi
  4451. */
  4452. public callback(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig) {
  4453. return OAuthApiFp(this.configuration).callback(oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  4454. }
  4455. /**
  4456. *
  4457. * @param {OAuthConfigDto} oAuthConfigDto
  4458. * @param {*} [options] Override http request option.
  4459. * @throws {RequiredError}
  4460. * @memberof OAuthApi
  4461. */
  4462. public generateConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig) {
  4463. return OAuthApiFp(this.configuration).generateConfig(oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  4464. }
  4465. }
  4466. /**
  4467. * ServerInfoApi - axios parameter creator
  4468. * @export
  4469. */
  4470. export const ServerInfoApiAxiosParamCreator = function (configuration?: Configuration) {
  4471. return {
  4472. /**
  4473. *
  4474. * @param {*} [options] Override http request option.
  4475. * @throws {RequiredError}
  4476. */
  4477. getServerInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4478. const localVarPath = `/server-info`;
  4479. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4480. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4481. let baseOptions;
  4482. if (configuration) {
  4483. baseOptions = configuration.baseOptions;
  4484. }
  4485. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4486. const localVarHeaderParameter = {} as any;
  4487. const localVarQueryParameter = {} as any;
  4488. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4489. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4490. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4491. return {
  4492. url: toPathString(localVarUrlObj),
  4493. options: localVarRequestOptions,
  4494. };
  4495. },
  4496. /**
  4497. *
  4498. * @param {*} [options] Override http request option.
  4499. * @throws {RequiredError}
  4500. */
  4501. getServerVersion: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4502. const localVarPath = `/server-info/version`;
  4503. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4504. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4505. let baseOptions;
  4506. if (configuration) {
  4507. baseOptions = configuration.baseOptions;
  4508. }
  4509. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4510. const localVarHeaderParameter = {} as any;
  4511. const localVarQueryParameter = {} as any;
  4512. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4513. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4514. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4515. return {
  4516. url: toPathString(localVarUrlObj),
  4517. options: localVarRequestOptions,
  4518. };
  4519. },
  4520. /**
  4521. *
  4522. * @param {*} [options] Override http request option.
  4523. * @throws {RequiredError}
  4524. */
  4525. getStats: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4526. const localVarPath = `/server-info/stats`;
  4527. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4528. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4529. let baseOptions;
  4530. if (configuration) {
  4531. baseOptions = configuration.baseOptions;
  4532. }
  4533. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4534. const localVarHeaderParameter = {} as any;
  4535. const localVarQueryParameter = {} as any;
  4536. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4537. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4538. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4539. return {
  4540. url: toPathString(localVarUrlObj),
  4541. options: localVarRequestOptions,
  4542. };
  4543. },
  4544. /**
  4545. *
  4546. * @param {*} [options] Override http request option.
  4547. * @throws {RequiredError}
  4548. */
  4549. pingServer: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4550. const localVarPath = `/server-info/ping`;
  4551. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4552. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4553. let baseOptions;
  4554. if (configuration) {
  4555. baseOptions = configuration.baseOptions;
  4556. }
  4557. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4558. const localVarHeaderParameter = {} as any;
  4559. const localVarQueryParameter = {} as any;
  4560. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4561. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4562. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4563. return {
  4564. url: toPathString(localVarUrlObj),
  4565. options: localVarRequestOptions,
  4566. };
  4567. },
  4568. }
  4569. };
  4570. /**
  4571. * ServerInfoApi - functional programming interface
  4572. * @export
  4573. */
  4574. export const ServerInfoApiFp = function(configuration?: Configuration) {
  4575. const localVarAxiosParamCreator = ServerInfoApiAxiosParamCreator(configuration)
  4576. return {
  4577. /**
  4578. *
  4579. * @param {*} [options] Override http request option.
  4580. * @throws {RequiredError}
  4581. */
  4582. async getServerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerInfoResponseDto>> {
  4583. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerInfo(options);
  4584. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4585. },
  4586. /**
  4587. *
  4588. * @param {*} [options] Override http request option.
  4589. * @throws {RequiredError}
  4590. */
  4591. async getServerVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerVersionReponseDto>> {
  4592. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerVersion(options);
  4593. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4594. },
  4595. /**
  4596. *
  4597. * @param {*} [options] Override http request option.
  4598. * @throws {RequiredError}
  4599. */
  4600. async getStats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatsResponseDto>> {
  4601. const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(options);
  4602. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4603. },
  4604. /**
  4605. *
  4606. * @param {*} [options] Override http request option.
  4607. * @throws {RequiredError}
  4608. */
  4609. async pingServer(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerPingResponse>> {
  4610. const localVarAxiosArgs = await localVarAxiosParamCreator.pingServer(options);
  4611. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4612. },
  4613. }
  4614. };
  4615. /**
  4616. * ServerInfoApi - factory interface
  4617. * @export
  4618. */
  4619. export const ServerInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4620. const localVarFp = ServerInfoApiFp(configuration)
  4621. return {
  4622. /**
  4623. *
  4624. * @param {*} [options] Override http request option.
  4625. * @throws {RequiredError}
  4626. */
  4627. getServerInfo(options?: any): AxiosPromise<ServerInfoResponseDto> {
  4628. return localVarFp.getServerInfo(options).then((request) => request(axios, basePath));
  4629. },
  4630. /**
  4631. *
  4632. * @param {*} [options] Override http request option.
  4633. * @throws {RequiredError}
  4634. */
  4635. getServerVersion(options?: any): AxiosPromise<ServerVersionReponseDto> {
  4636. return localVarFp.getServerVersion(options).then((request) => request(axios, basePath));
  4637. },
  4638. /**
  4639. *
  4640. * @param {*} [options] Override http request option.
  4641. * @throws {RequiredError}
  4642. */
  4643. getStats(options?: any): AxiosPromise<ServerStatsResponseDto> {
  4644. return localVarFp.getStats(options).then((request) => request(axios, basePath));
  4645. },
  4646. /**
  4647. *
  4648. * @param {*} [options] Override http request option.
  4649. * @throws {RequiredError}
  4650. */
  4651. pingServer(options?: any): AxiosPromise<ServerPingResponse> {
  4652. return localVarFp.pingServer(options).then((request) => request(axios, basePath));
  4653. },
  4654. };
  4655. };
  4656. /**
  4657. * ServerInfoApi - object-oriented interface
  4658. * @export
  4659. * @class ServerInfoApi
  4660. * @extends {BaseAPI}
  4661. */
  4662. export class ServerInfoApi extends BaseAPI {
  4663. /**
  4664. *
  4665. * @param {*} [options] Override http request option.
  4666. * @throws {RequiredError}
  4667. * @memberof ServerInfoApi
  4668. */
  4669. public getServerInfo(options?: AxiosRequestConfig) {
  4670. return ServerInfoApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
  4671. }
  4672. /**
  4673. *
  4674. * @param {*} [options] Override http request option.
  4675. * @throws {RequiredError}
  4676. * @memberof ServerInfoApi
  4677. */
  4678. public getServerVersion(options?: AxiosRequestConfig) {
  4679. return ServerInfoApiFp(this.configuration).getServerVersion(options).then((request) => request(this.axios, this.basePath));
  4680. }
  4681. /**
  4682. *
  4683. * @param {*} [options] Override http request option.
  4684. * @throws {RequiredError}
  4685. * @memberof ServerInfoApi
  4686. */
  4687. public getStats(options?: AxiosRequestConfig) {
  4688. return ServerInfoApiFp(this.configuration).getStats(options).then((request) => request(this.axios, this.basePath));
  4689. }
  4690. /**
  4691. *
  4692. * @param {*} [options] Override http request option.
  4693. * @throws {RequiredError}
  4694. * @memberof ServerInfoApi
  4695. */
  4696. public pingServer(options?: AxiosRequestConfig) {
  4697. return ServerInfoApiFp(this.configuration).pingServer(options).then((request) => request(this.axios, this.basePath));
  4698. }
  4699. }
  4700. /**
  4701. * SystemConfigApi - axios parameter creator
  4702. * @export
  4703. */
  4704. export const SystemConfigApiAxiosParamCreator = function (configuration?: Configuration) {
  4705. return {
  4706. /**
  4707. *
  4708. * @param {*} [options] Override http request option.
  4709. * @throws {RequiredError}
  4710. */
  4711. getConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4712. const localVarPath = `/system-config`;
  4713. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4714. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4715. let baseOptions;
  4716. if (configuration) {
  4717. baseOptions = configuration.baseOptions;
  4718. }
  4719. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4720. const localVarHeaderParameter = {} as any;
  4721. const localVarQueryParameter = {} as any;
  4722. // authentication bearer required
  4723. // http bearer authentication required
  4724. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4725. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4726. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4727. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4728. return {
  4729. url: toPathString(localVarUrlObj),
  4730. options: localVarRequestOptions,
  4731. };
  4732. },
  4733. /**
  4734. *
  4735. * @param {object} body
  4736. * @param {*} [options] Override http request option.
  4737. * @throws {RequiredError}
  4738. */
  4739. updateConfig: async (body: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4740. // verify required parameter 'body' is not null or undefined
  4741. assertParamExists('updateConfig', 'body', body)
  4742. const localVarPath = `/system-config`;
  4743. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4744. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4745. let baseOptions;
  4746. if (configuration) {
  4747. baseOptions = configuration.baseOptions;
  4748. }
  4749. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4750. const localVarHeaderParameter = {} as any;
  4751. const localVarQueryParameter = {} as any;
  4752. // authentication bearer required
  4753. // http bearer authentication required
  4754. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4755. localVarHeaderParameter['Content-Type'] = 'application/json';
  4756. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4757. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4758. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4759. localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
  4760. return {
  4761. url: toPathString(localVarUrlObj),
  4762. options: localVarRequestOptions,
  4763. };
  4764. },
  4765. }
  4766. };
  4767. /**
  4768. * SystemConfigApi - functional programming interface
  4769. * @export
  4770. */
  4771. export const SystemConfigApiFp = function(configuration?: Configuration) {
  4772. const localVarAxiosParamCreator = SystemConfigApiAxiosParamCreator(configuration)
  4773. return {
  4774. /**
  4775. *
  4776. * @param {*} [options] Override http request option.
  4777. * @throws {RequiredError}
  4778. */
  4779. async getConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigResponseDto>> {
  4780. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfig(options);
  4781. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4782. },
  4783. /**
  4784. *
  4785. * @param {object} body
  4786. * @param {*} [options] Override http request option.
  4787. * @throws {RequiredError}
  4788. */
  4789. async updateConfig(body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigResponseDto>> {
  4790. const localVarAxiosArgs = await localVarAxiosParamCreator.updateConfig(body, options);
  4791. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4792. },
  4793. }
  4794. };
  4795. /**
  4796. * SystemConfigApi - factory interface
  4797. * @export
  4798. */
  4799. export const SystemConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4800. const localVarFp = SystemConfigApiFp(configuration)
  4801. return {
  4802. /**
  4803. *
  4804. * @param {*} [options] Override http request option.
  4805. * @throws {RequiredError}
  4806. */
  4807. getConfig(options?: any): AxiosPromise<SystemConfigResponseDto> {
  4808. return localVarFp.getConfig(options).then((request) => request(axios, basePath));
  4809. },
  4810. /**
  4811. *
  4812. * @param {object} body
  4813. * @param {*} [options] Override http request option.
  4814. * @throws {RequiredError}
  4815. */
  4816. updateConfig(body: object, options?: any): AxiosPromise<SystemConfigResponseDto> {
  4817. return localVarFp.updateConfig(body, options).then((request) => request(axios, basePath));
  4818. },
  4819. };
  4820. };
  4821. /**
  4822. * SystemConfigApi - object-oriented interface
  4823. * @export
  4824. * @class SystemConfigApi
  4825. * @extends {BaseAPI}
  4826. */
  4827. export class SystemConfigApi extends BaseAPI {
  4828. /**
  4829. *
  4830. * @param {*} [options] Override http request option.
  4831. * @throws {RequiredError}
  4832. * @memberof SystemConfigApi
  4833. */
  4834. public getConfig(options?: AxiosRequestConfig) {
  4835. return SystemConfigApiFp(this.configuration).getConfig(options).then((request) => request(this.axios, this.basePath));
  4836. }
  4837. /**
  4838. *
  4839. * @param {object} body
  4840. * @param {*} [options] Override http request option.
  4841. * @throws {RequiredError}
  4842. * @memberof SystemConfigApi
  4843. */
  4844. public updateConfig(body: object, options?: AxiosRequestConfig) {
  4845. return SystemConfigApiFp(this.configuration).updateConfig(body, options).then((request) => request(this.axios, this.basePath));
  4846. }
  4847. }
  4848. /**
  4849. * UserApi - axios parameter creator
  4850. * @export
  4851. */
  4852. export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
  4853. return {
  4854. /**
  4855. *
  4856. * @param {any} file
  4857. * @param {*} [options] Override http request option.
  4858. * @throws {RequiredError}
  4859. */
  4860. createProfileImage: async (file: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4861. // verify required parameter 'file' is not null or undefined
  4862. assertParamExists('createProfileImage', 'file', file)
  4863. const localVarPath = `/user/profile-image`;
  4864. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4865. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4866. let baseOptions;
  4867. if (configuration) {
  4868. baseOptions = configuration.baseOptions;
  4869. }
  4870. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4871. const localVarHeaderParameter = {} as any;
  4872. const localVarQueryParameter = {} as any;
  4873. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  4874. // authentication bearer required
  4875. // http bearer authentication required
  4876. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4877. if (file !== undefined) {
  4878. localVarFormParams.append('file', file as any);
  4879. }
  4880. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  4881. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4882. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4883. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4884. localVarRequestOptions.data = localVarFormParams;
  4885. return {
  4886. url: toPathString(localVarUrlObj),
  4887. options: localVarRequestOptions,
  4888. };
  4889. },
  4890. /**
  4891. *
  4892. * @param {CreateUserDto} createUserDto
  4893. * @param {*} [options] Override http request option.
  4894. * @throws {RequiredError}
  4895. */
  4896. createUser: async (createUserDto: CreateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4897. // verify required parameter 'createUserDto' is not null or undefined
  4898. assertParamExists('createUser', 'createUserDto', createUserDto)
  4899. const localVarPath = `/user`;
  4900. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4901. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4902. let baseOptions;
  4903. if (configuration) {
  4904. baseOptions = configuration.baseOptions;
  4905. }
  4906. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4907. const localVarHeaderParameter = {} as any;
  4908. const localVarQueryParameter = {} as any;
  4909. // authentication bearer required
  4910. // http bearer authentication required
  4911. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4912. localVarHeaderParameter['Content-Type'] = 'application/json';
  4913. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4914. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4915. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4916. localVarRequestOptions.data = serializeDataIfNeeded(createUserDto, localVarRequestOptions, configuration)
  4917. return {
  4918. url: toPathString(localVarUrlObj),
  4919. options: localVarRequestOptions,
  4920. };
  4921. },
  4922. /**
  4923. *
  4924. * @param {string} userId
  4925. * @param {*} [options] Override http request option.
  4926. * @throws {RequiredError}
  4927. */
  4928. deleteUser: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4929. // verify required parameter 'userId' is not null or undefined
  4930. assertParamExists('deleteUser', 'userId', userId)
  4931. const localVarPath = `/user/{userId}`
  4932. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  4933. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4934. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4935. let baseOptions;
  4936. if (configuration) {
  4937. baseOptions = configuration.baseOptions;
  4938. }
  4939. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4940. const localVarHeaderParameter = {} as any;
  4941. const localVarQueryParameter = {} as any;
  4942. // authentication bearer required
  4943. // http bearer authentication required
  4944. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4945. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4946. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4947. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4948. return {
  4949. url: toPathString(localVarUrlObj),
  4950. options: localVarRequestOptions,
  4951. };
  4952. },
  4953. /**
  4954. *
  4955. * @param {boolean} isAll
  4956. * @param {*} [options] Override http request option.
  4957. * @throws {RequiredError}
  4958. */
  4959. getAllUsers: async (isAll: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4960. // verify required parameter 'isAll' is not null or undefined
  4961. assertParamExists('getAllUsers', 'isAll', isAll)
  4962. const localVarPath = `/user`;
  4963. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4964. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4965. let baseOptions;
  4966. if (configuration) {
  4967. baseOptions = configuration.baseOptions;
  4968. }
  4969. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4970. const localVarHeaderParameter = {} as any;
  4971. const localVarQueryParameter = {} as any;
  4972. // authentication bearer required
  4973. // http bearer authentication required
  4974. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4975. if (isAll !== undefined) {
  4976. localVarQueryParameter['isAll'] = isAll;
  4977. }
  4978. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4979. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4980. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4981. return {
  4982. url: toPathString(localVarUrlObj),
  4983. options: localVarRequestOptions,
  4984. };
  4985. },
  4986. /**
  4987. *
  4988. * @param {*} [options] Override http request option.
  4989. * @throws {RequiredError}
  4990. */
  4991. getMyUserInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4992. const localVarPath = `/user/me`;
  4993. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4994. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4995. let baseOptions;
  4996. if (configuration) {
  4997. baseOptions = configuration.baseOptions;
  4998. }
  4999. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5000. const localVarHeaderParameter = {} as any;
  5001. const localVarQueryParameter = {} as any;
  5002. // authentication bearer required
  5003. // http bearer authentication required
  5004. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5005. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5006. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5007. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5008. return {
  5009. url: toPathString(localVarUrlObj),
  5010. options: localVarRequestOptions,
  5011. };
  5012. },
  5013. /**
  5014. *
  5015. * @param {string} userId
  5016. * @param {*} [options] Override http request option.
  5017. * @throws {RequiredError}
  5018. */
  5019. getProfileImage: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5020. // verify required parameter 'userId' is not null or undefined
  5021. assertParamExists('getProfileImage', 'userId', userId)
  5022. const localVarPath = `/user/profile-image/{userId}`
  5023. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  5024. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5025. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5026. let baseOptions;
  5027. if (configuration) {
  5028. baseOptions = configuration.baseOptions;
  5029. }
  5030. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5031. const localVarHeaderParameter = {} as any;
  5032. const localVarQueryParameter = {} as any;
  5033. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5034. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5035. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5036. return {
  5037. url: toPathString(localVarUrlObj),
  5038. options: localVarRequestOptions,
  5039. };
  5040. },
  5041. /**
  5042. *
  5043. * @param {string} userId
  5044. * @param {*} [options] Override http request option.
  5045. * @throws {RequiredError}
  5046. */
  5047. getUserById: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5048. // verify required parameter 'userId' is not null or undefined
  5049. assertParamExists('getUserById', 'userId', userId)
  5050. const localVarPath = `/user/info/{userId}`
  5051. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  5052. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5053. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5054. let baseOptions;
  5055. if (configuration) {
  5056. baseOptions = configuration.baseOptions;
  5057. }
  5058. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5059. const localVarHeaderParameter = {} as any;
  5060. const localVarQueryParameter = {} as any;
  5061. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5062. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5063. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5064. return {
  5065. url: toPathString(localVarUrlObj),
  5066. options: localVarRequestOptions,
  5067. };
  5068. },
  5069. /**
  5070. *
  5071. * @param {*} [options] Override http request option.
  5072. * @throws {RequiredError}
  5073. */
  5074. getUserCount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5075. const localVarPath = `/user/count`;
  5076. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5077. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5078. let baseOptions;
  5079. if (configuration) {
  5080. baseOptions = configuration.baseOptions;
  5081. }
  5082. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5083. const localVarHeaderParameter = {} as any;
  5084. const localVarQueryParameter = {} as any;
  5085. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5086. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5087. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5088. return {
  5089. url: toPathString(localVarUrlObj),
  5090. options: localVarRequestOptions,
  5091. };
  5092. },
  5093. /**
  5094. *
  5095. * @param {string} userId
  5096. * @param {*} [options] Override http request option.
  5097. * @throws {RequiredError}
  5098. */
  5099. restoreUser: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5100. // verify required parameter 'userId' is not null or undefined
  5101. assertParamExists('restoreUser', 'userId', userId)
  5102. const localVarPath = `/user/{userId}/restore`
  5103. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  5104. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5105. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5106. let baseOptions;
  5107. if (configuration) {
  5108. baseOptions = configuration.baseOptions;
  5109. }
  5110. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5111. const localVarHeaderParameter = {} as any;
  5112. const localVarQueryParameter = {} as any;
  5113. // authentication bearer required
  5114. // http bearer authentication required
  5115. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5116. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5117. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5118. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5119. return {
  5120. url: toPathString(localVarUrlObj),
  5121. options: localVarRequestOptions,
  5122. };
  5123. },
  5124. /**
  5125. *
  5126. * @param {UpdateUserDto} updateUserDto
  5127. * @param {*} [options] Override http request option.
  5128. * @throws {RequiredError}
  5129. */
  5130. updateUser: async (updateUserDto: UpdateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5131. // verify required parameter 'updateUserDto' is not null or undefined
  5132. assertParamExists('updateUser', 'updateUserDto', updateUserDto)
  5133. const localVarPath = `/user`;
  5134. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5135. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5136. let baseOptions;
  5137. if (configuration) {
  5138. baseOptions = configuration.baseOptions;
  5139. }
  5140. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  5141. const localVarHeaderParameter = {} as any;
  5142. const localVarQueryParameter = {} as any;
  5143. // authentication bearer required
  5144. // http bearer authentication required
  5145. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5146. localVarHeaderParameter['Content-Type'] = 'application/json';
  5147. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5148. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5149. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5150. localVarRequestOptions.data = serializeDataIfNeeded(updateUserDto, localVarRequestOptions, configuration)
  5151. return {
  5152. url: toPathString(localVarUrlObj),
  5153. options: localVarRequestOptions,
  5154. };
  5155. },
  5156. }
  5157. };
  5158. /**
  5159. * UserApi - functional programming interface
  5160. * @export
  5161. */
  5162. export const UserApiFp = function(configuration?: Configuration) {
  5163. const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
  5164. return {
  5165. /**
  5166. *
  5167. * @param {any} file
  5168. * @param {*} [options] Override http request option.
  5169. * @throws {RequiredError}
  5170. */
  5171. async createProfileImage(file: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProfileImageResponseDto>> {
  5172. const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileImage(file, options);
  5173. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5174. },
  5175. /**
  5176. *
  5177. * @param {CreateUserDto} createUserDto
  5178. * @param {*} [options] Override http request option.
  5179. * @throws {RequiredError}
  5180. */
  5181. async createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  5182. const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserDto, options);
  5183. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5184. },
  5185. /**
  5186. *
  5187. * @param {string} userId
  5188. * @param {*} [options] Override http request option.
  5189. * @throws {RequiredError}
  5190. */
  5191. async deleteUser(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  5192. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(userId, options);
  5193. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5194. },
  5195. /**
  5196. *
  5197. * @param {boolean} isAll
  5198. * @param {*} [options] Override http request option.
  5199. * @throws {RequiredError}
  5200. */
  5201. async getAllUsers(isAll: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  5202. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(isAll, options);
  5203. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5204. },
  5205. /**
  5206. *
  5207. * @param {*} [options] Override http request option.
  5208. * @throws {RequiredError}
  5209. */
  5210. async getMyUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  5211. const localVarAxiosArgs = await localVarAxiosParamCreator.getMyUserInfo(options);
  5212. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5213. },
  5214. /**
  5215. *
  5216. * @param {string} userId
  5217. * @param {*} [options] Override http request option.
  5218. * @throws {RequiredError}
  5219. */
  5220. async getProfileImage(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  5221. const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileImage(userId, options);
  5222. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5223. },
  5224. /**
  5225. *
  5226. * @param {string} userId
  5227. * @param {*} [options] Override http request option.
  5228. * @throws {RequiredError}
  5229. */
  5230. async getUserById(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  5231. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(userId, options);
  5232. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5233. },
  5234. /**
  5235. *
  5236. * @param {*} [options] Override http request option.
  5237. * @throws {RequiredError}
  5238. */
  5239. async getUserCount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserCountResponseDto>> {
  5240. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserCount(options);
  5241. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5242. },
  5243. /**
  5244. *
  5245. * @param {string} userId
  5246. * @param {*} [options] Override http request option.
  5247. * @throws {RequiredError}
  5248. */
  5249. async restoreUser(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  5250. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreUser(userId, options);
  5251. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5252. },
  5253. /**
  5254. *
  5255. * @param {UpdateUserDto} updateUserDto
  5256. * @param {*} [options] Override http request option.
  5257. * @throws {RequiredError}
  5258. */
  5259. async updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  5260. const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(updateUserDto, options);
  5261. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5262. },
  5263. }
  5264. };
  5265. /**
  5266. * UserApi - factory interface
  5267. * @export
  5268. */
  5269. export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5270. const localVarFp = UserApiFp(configuration)
  5271. return {
  5272. /**
  5273. *
  5274. * @param {any} file
  5275. * @param {*} [options] Override http request option.
  5276. * @throws {RequiredError}
  5277. */
  5278. createProfileImage(file: any, options?: any): AxiosPromise<CreateProfileImageResponseDto> {
  5279. return localVarFp.createProfileImage(file, options).then((request) => request(axios, basePath));
  5280. },
  5281. /**
  5282. *
  5283. * @param {CreateUserDto} createUserDto
  5284. * @param {*} [options] Override http request option.
  5285. * @throws {RequiredError}
  5286. */
  5287. createUser(createUserDto: CreateUserDto, options?: any): AxiosPromise<UserResponseDto> {
  5288. return localVarFp.createUser(createUserDto, options).then((request) => request(axios, basePath));
  5289. },
  5290. /**
  5291. *
  5292. * @param {string} userId
  5293. * @param {*} [options] Override http request option.
  5294. * @throws {RequiredError}
  5295. */
  5296. deleteUser(userId: string, options?: any): AxiosPromise<UserResponseDto> {
  5297. return localVarFp.deleteUser(userId, options).then((request) => request(axios, basePath));
  5298. },
  5299. /**
  5300. *
  5301. * @param {boolean} isAll
  5302. * @param {*} [options] Override http request option.
  5303. * @throws {RequiredError}
  5304. */
  5305. getAllUsers(isAll: boolean, options?: any): AxiosPromise<Array<UserResponseDto>> {
  5306. return localVarFp.getAllUsers(isAll, options).then((request) => request(axios, basePath));
  5307. },
  5308. /**
  5309. *
  5310. * @param {*} [options] Override http request option.
  5311. * @throws {RequiredError}
  5312. */
  5313. getMyUserInfo(options?: any): AxiosPromise<UserResponseDto> {
  5314. return localVarFp.getMyUserInfo(options).then((request) => request(axios, basePath));
  5315. },
  5316. /**
  5317. *
  5318. * @param {string} userId
  5319. * @param {*} [options] Override http request option.
  5320. * @throws {RequiredError}
  5321. */
  5322. getProfileImage(userId: string, options?: any): AxiosPromise<object> {
  5323. return localVarFp.getProfileImage(userId, options).then((request) => request(axios, basePath));
  5324. },
  5325. /**
  5326. *
  5327. * @param {string} userId
  5328. * @param {*} [options] Override http request option.
  5329. * @throws {RequiredError}
  5330. */
  5331. getUserById(userId: string, options?: any): AxiosPromise<UserResponseDto> {
  5332. return localVarFp.getUserById(userId, options).then((request) => request(axios, basePath));
  5333. },
  5334. /**
  5335. *
  5336. * @param {*} [options] Override http request option.
  5337. * @throws {RequiredError}
  5338. */
  5339. getUserCount(options?: any): AxiosPromise<UserCountResponseDto> {
  5340. return localVarFp.getUserCount(options).then((request) => request(axios, basePath));
  5341. },
  5342. /**
  5343. *
  5344. * @param {string} userId
  5345. * @param {*} [options] Override http request option.
  5346. * @throws {RequiredError}
  5347. */
  5348. restoreUser(userId: string, options?: any): AxiosPromise<UserResponseDto> {
  5349. return localVarFp.restoreUser(userId, options).then((request) => request(axios, basePath));
  5350. },
  5351. /**
  5352. *
  5353. * @param {UpdateUserDto} updateUserDto
  5354. * @param {*} [options] Override http request option.
  5355. * @throws {RequiredError}
  5356. */
  5357. updateUser(updateUserDto: UpdateUserDto, options?: any): AxiosPromise<UserResponseDto> {
  5358. return localVarFp.updateUser(updateUserDto, options).then((request) => request(axios, basePath));
  5359. },
  5360. };
  5361. };
  5362. /**
  5363. * UserApi - object-oriented interface
  5364. * @export
  5365. * @class UserApi
  5366. * @extends {BaseAPI}
  5367. */
  5368. export class UserApi extends BaseAPI {
  5369. /**
  5370. *
  5371. * @param {any} file
  5372. * @param {*} [options] Override http request option.
  5373. * @throws {RequiredError}
  5374. * @memberof UserApi
  5375. */
  5376. public createProfileImage(file: any, options?: AxiosRequestConfig) {
  5377. return UserApiFp(this.configuration).createProfileImage(file, options).then((request) => request(this.axios, this.basePath));
  5378. }
  5379. /**
  5380. *
  5381. * @param {CreateUserDto} createUserDto
  5382. * @param {*} [options] Override http request option.
  5383. * @throws {RequiredError}
  5384. * @memberof UserApi
  5385. */
  5386. public createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig) {
  5387. return UserApiFp(this.configuration).createUser(createUserDto, options).then((request) => request(this.axios, this.basePath));
  5388. }
  5389. /**
  5390. *
  5391. * @param {string} userId
  5392. * @param {*} [options] Override http request option.
  5393. * @throws {RequiredError}
  5394. * @memberof UserApi
  5395. */
  5396. public deleteUser(userId: string, options?: AxiosRequestConfig) {
  5397. return UserApiFp(this.configuration).deleteUser(userId, options).then((request) => request(this.axios, this.basePath));
  5398. }
  5399. /**
  5400. *
  5401. * @param {boolean} isAll
  5402. * @param {*} [options] Override http request option.
  5403. * @throws {RequiredError}
  5404. * @memberof UserApi
  5405. */
  5406. public getAllUsers(isAll: boolean, options?: AxiosRequestConfig) {
  5407. return UserApiFp(this.configuration).getAllUsers(isAll, options).then((request) => request(this.axios, this.basePath));
  5408. }
  5409. /**
  5410. *
  5411. * @param {*} [options] Override http request option.
  5412. * @throws {RequiredError}
  5413. * @memberof UserApi
  5414. */
  5415. public getMyUserInfo(options?: AxiosRequestConfig) {
  5416. return UserApiFp(this.configuration).getMyUserInfo(options).then((request) => request(this.axios, this.basePath));
  5417. }
  5418. /**
  5419. *
  5420. * @param {string} userId
  5421. * @param {*} [options] Override http request option.
  5422. * @throws {RequiredError}
  5423. * @memberof UserApi
  5424. */
  5425. public getProfileImage(userId: string, options?: AxiosRequestConfig) {
  5426. return UserApiFp(this.configuration).getProfileImage(userId, options).then((request) => request(this.axios, this.basePath));
  5427. }
  5428. /**
  5429. *
  5430. * @param {string} userId
  5431. * @param {*} [options] Override http request option.
  5432. * @throws {RequiredError}
  5433. * @memberof UserApi
  5434. */
  5435. public getUserById(userId: string, options?: AxiosRequestConfig) {
  5436. return UserApiFp(this.configuration).getUserById(userId, options).then((request) => request(this.axios, this.basePath));
  5437. }
  5438. /**
  5439. *
  5440. * @param {*} [options] Override http request option.
  5441. * @throws {RequiredError}
  5442. * @memberof UserApi
  5443. */
  5444. public getUserCount(options?: AxiosRequestConfig) {
  5445. return UserApiFp(this.configuration).getUserCount(options).then((request) => request(this.axios, this.basePath));
  5446. }
  5447. /**
  5448. *
  5449. * @param {string} userId
  5450. * @param {*} [options] Override http request option.
  5451. * @throws {RequiredError}
  5452. * @memberof UserApi
  5453. */
  5454. public restoreUser(userId: string, options?: AxiosRequestConfig) {
  5455. return UserApiFp(this.configuration).restoreUser(userId, options).then((request) => request(this.axios, this.basePath));
  5456. }
  5457. /**
  5458. *
  5459. * @param {UpdateUserDto} updateUserDto
  5460. * @param {*} [options] Override http request option.
  5461. * @throws {RequiredError}
  5462. * @memberof UserApi
  5463. */
  5464. public updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig) {
  5465. return UserApiFp(this.configuration).updateUser(updateUserDto, options).then((request) => request(this.axios, this.basePath));
  5466. }
  5467. }