api.ts 336 KB

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