api.ts 294 KB

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