api.ts 179 KB

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