@orangefox-recovery/foxinternalclient 5.2.5 → 5.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (366) hide show
  1. package/.openapi-generator/FILES +58 -57
  2. package/README.md +3 -116
  3. package/dist/apis/DeviceApi.d.ts +158 -0
  4. package/dist/apis/DeviceApi.js +188 -0
  5. package/dist/apis/FoxFactoryApi.d.ts +298 -0
  6. package/dist/apis/FoxFactoryApi.js +507 -0
  7. package/dist/apis/GitlabApi.d.ts +51 -0
  8. package/dist/apis/GitlabApi.js +71 -0
  9. package/dist/apis/InternalApi.d.ts +549 -0
  10. package/dist/apis/InternalApi.js +957 -0
  11. package/dist/apis/PasteApi.d.ts +80 -0
  12. package/dist/apis/PasteApi.js +95 -0
  13. package/dist/apis/ReleaseApi.d.ts +188 -0
  14. package/dist/apis/ReleaseApi.js +226 -0
  15. package/dist/apis/StatsApi.d.ts +49 -0
  16. package/dist/apis/StatsApi.js +60 -0
  17. package/dist/apis/index.d.ts +7 -0
  18. package/dist/apis/index.js +25 -0
  19. package/dist/esm/apis/DeviceApi.d.ts +158 -0
  20. package/dist/esm/apis/DeviceApi.js +184 -0
  21. package/dist/esm/apis/FoxFactoryApi.d.ts +298 -0
  22. package/dist/esm/apis/FoxFactoryApi.js +503 -0
  23. package/dist/esm/apis/GitlabApi.d.ts +51 -0
  24. package/dist/esm/apis/GitlabApi.js +67 -0
  25. package/dist/esm/apis/InternalApi.d.ts +549 -0
  26. package/dist/esm/apis/InternalApi.js +953 -0
  27. package/dist/esm/apis/PasteApi.d.ts +80 -0
  28. package/dist/esm/apis/PasteApi.js +91 -0
  29. package/dist/esm/apis/ReleaseApi.d.ts +188 -0
  30. package/dist/esm/apis/ReleaseApi.js +222 -0
  31. package/dist/esm/apis/StatsApi.d.ts +49 -0
  32. package/dist/esm/apis/StatsApi.js +56 -0
  33. package/dist/esm/apis/index.d.ts +7 -0
  34. package/dist/esm/apis/index.js +9 -0
  35. package/dist/esm/index.d.ts +3 -13
  36. package/dist/esm/index.js +3 -13
  37. package/dist/esm/models/BodyChangePasswordProfileChangePasswordPost.d.ts +38 -0
  38. package/dist/esm/models/BodyChangePasswordProfileChangePasswordPost.js +47 -0
  39. package/dist/esm/models/BuildStatusEnum.d.ts +30 -0
  40. package/dist/esm/models/BuildStatusEnum.js +48 -0
  41. package/dist/esm/models/BuildTaskResponse.d.ts +103 -0
  42. package/dist/esm/models/BuildTaskResponse.js +78 -0
  43. package/dist/esm/models/BuildTaskShortResponse.d.ts +89 -0
  44. package/dist/esm/models/BuildTaskShortResponse.js +74 -0
  45. package/dist/esm/models/DeviceInternalResponse.d.ts +114 -0
  46. package/dist/esm/models/DeviceInternalResponse.js +91 -0
  47. package/dist/esm/models/DeviceResponse.d.ts +101 -0
  48. package/dist/esm/models/DeviceResponse.js +82 -0
  49. package/dist/esm/models/DeviceStatsResponse.d.ts +48 -0
  50. package/dist/esm/models/DeviceStatsResponse.js +51 -0
  51. package/dist/esm/models/DeviceUpdateBody.d.ts +62 -0
  52. package/dist/esm/models/DeviceUpdateBody.js +51 -0
  53. package/dist/esm/models/FFStatusEnum.d.ts +26 -0
  54. package/dist/esm/models/FFStatusEnum.js +44 -0
  55. package/dist/esm/models/FFStatusResponse.d.ts +33 -0
  56. package/dist/esm/models/FFStatusResponse.js +44 -0
  57. package/dist/esm/models/GlobalStatsAggregationModel.d.ts +52 -0
  58. package/dist/esm/models/GlobalStatsAggregationModel.js +55 -0
  59. package/dist/esm/models/HTTPValidationError.d.ts +33 -0
  60. package/dist/esm/models/HTTPValidationError.js +42 -0
  61. package/dist/esm/models/ListResponseBuildTaskShortResponse.d.ts +39 -0
  62. package/dist/esm/models/ListResponseBuildTaskShortResponse.js +47 -0
  63. package/dist/esm/models/ListResponseReleaseResponse.d.ts +39 -0
  64. package/dist/esm/models/ListResponseReleaseResponse.js +47 -0
  65. package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +39 -0
  66. package/dist/esm/models/ListResponseShortDeviceResponse.js +47 -0
  67. package/dist/esm/models/ListResponseShortReleaseResponse.d.ts +39 -0
  68. package/dist/esm/models/ListResponseShortReleaseResponse.js +47 -0
  69. package/dist/esm/models/ListResponseStr.d.ts +38 -0
  70. package/dist/esm/models/ListResponseStr.js +46 -0
  71. package/dist/esm/models/ListResponseUserShortResponse.d.ts +39 -0
  72. package/dist/esm/models/ListResponseUserShortResponse.js +47 -0
  73. package/dist/esm/models/LogListResponse.d.ts +51 -0
  74. package/dist/esm/models/LogListResponse.js +56 -0
  75. package/dist/esm/models/LogResponse.d.ts +83 -0
  76. package/dist/esm/models/LogResponse.js +66 -0
  77. package/dist/esm/models/MaintainerShortModel.d.ts +44 -0
  78. package/dist/esm/models/MaintainerShortModel.js +51 -0
  79. package/dist/esm/models/NewBuildTaskBody.d.ts +57 -0
  80. package/dist/esm/models/NewBuildTaskBody.js +52 -0
  81. package/dist/esm/models/NewDeviceBody.d.ts +50 -0
  82. package/dist/esm/models/NewDeviceBody.js +55 -0
  83. package/dist/esm/models/PasteInput.d.ts +50 -0
  84. package/dist/esm/models/PasteInput.js +51 -0
  85. package/dist/esm/models/PasteOutput.d.ts +50 -0
  86. package/dist/esm/models/PasteOutput.js +51 -0
  87. package/dist/esm/models/RecoveryImgResponse.d.ts +38 -0
  88. package/dist/esm/models/RecoveryImgResponse.js +47 -0
  89. package/dist/esm/models/ReleaseGroupsResponse.d.ts +35 -0
  90. package/dist/esm/models/ReleaseGroupsResponse.js +43 -0
  91. package/dist/esm/models/ReleaseInternalResponse.d.ts +162 -0
  92. package/dist/esm/models/ReleaseInternalResponse.js +119 -0
  93. package/dist/esm/models/ReleaseInternalResponsePropValue.d.ts +26 -0
  94. package/dist/esm/models/ReleaseInternalResponsePropValue.js +31 -0
  95. package/dist/esm/models/ReleaseResponse.d.ts +139 -0
  96. package/dist/esm/models/ReleaseResponse.js +107 -0
  97. package/dist/esm/models/ReleaseStatsResponse.d.ts +48 -0
  98. package/dist/esm/models/ReleaseStatsResponse.js +51 -0
  99. package/dist/esm/models/ReleaseType.d.ts +26 -0
  100. package/dist/esm/models/ReleaseType.js +44 -0
  101. package/dist/esm/models/ReleaseUpdateBody.d.ts +50 -0
  102. package/dist/esm/models/ReleaseUpdateBody.js +47 -0
  103. package/dist/esm/models/ReleasesSort.d.ts +25 -0
  104. package/dist/esm/models/ReleasesSort.js +43 -0
  105. package/dist/esm/models/ResponseGetReleases.d.ts +41 -0
  106. package/dist/esm/models/ResponseGetReleases.js +46 -0
  107. package/dist/esm/models/ShortDeviceResponse.d.ts +82 -0
  108. package/dist/esm/models/ShortDeviceResponse.js +73 -0
  109. package/dist/esm/models/ShortReleaseResponse.d.ts +100 -0
  110. package/dist/esm/models/ShortReleaseResponse.js +84 -0
  111. package/dist/esm/models/TaskUpdateBody.d.ts +39 -0
  112. package/dist/esm/models/TaskUpdateBody.js +44 -0
  113. package/dist/esm/models/TokenResponse.d.ts +38 -0
  114. package/dist/esm/models/TokenResponse.js +45 -0
  115. package/dist/esm/models/UserGitlab.d.ts +32 -0
  116. package/dist/esm/models/UserGitlab.js +43 -0
  117. package/dist/esm/models/UserInternalResponse.d.ts +90 -0
  118. package/dist/esm/models/UserInternalResponse.js +75 -0
  119. package/dist/esm/models/UserMail.d.ts +32 -0
  120. package/dist/esm/models/UserMail.js +43 -0
  121. package/dist/esm/models/UserShortResponse.d.ts +50 -0
  122. package/dist/esm/models/UserShortResponse.js +55 -0
  123. package/dist/esm/models/UserTelegram.d.ts +32 -0
  124. package/dist/esm/models/UserTelegram.js +43 -0
  125. package/dist/esm/models/UserUpdateBody.d.ts +56 -0
  126. package/dist/esm/models/UserUpdateBody.js +49 -0
  127. package/dist/esm/models/ValidationError.d.ts +45 -0
  128. package/dist/esm/models/ValidationError.js +52 -0
  129. package/dist/esm/models/ValidationErrorLocInner.d.ts +26 -0
  130. package/{index.ts → dist/esm/models/ValidationErrorLocInner.js} +20 -7
  131. package/dist/esm/models/index.d.ts +47 -0
  132. package/dist/esm/models/index.js +49 -0
  133. package/dist/esm/runtime.d.ts +184 -0
  134. package/dist/esm/runtime.js +334 -0
  135. package/dist/index.d.ts +3 -13
  136. package/dist/index.js +5 -15
  137. package/dist/models/BodyChangePasswordProfileChangePasswordPost.d.ts +38 -0
  138. package/dist/models/BodyChangePasswordProfileChangePasswordPost.js +54 -0
  139. package/dist/models/BuildStatusEnum.d.ts +30 -0
  140. package/dist/models/BuildStatusEnum.js +56 -0
  141. package/dist/models/BuildTaskResponse.d.ts +103 -0
  142. package/dist/models/BuildTaskResponse.js +85 -0
  143. package/dist/models/BuildTaskShortResponse.d.ts +89 -0
  144. package/dist/models/BuildTaskShortResponse.js +81 -0
  145. package/dist/models/DeviceInternalResponse.d.ts +114 -0
  146. package/dist/models/DeviceInternalResponse.js +98 -0
  147. package/dist/models/DeviceResponse.d.ts +101 -0
  148. package/dist/models/DeviceResponse.js +89 -0
  149. package/dist/models/DeviceStatsResponse.d.ts +48 -0
  150. package/dist/models/DeviceStatsResponse.js +58 -0
  151. package/dist/models/DeviceUpdateBody.d.ts +62 -0
  152. package/dist/models/DeviceUpdateBody.js +58 -0
  153. package/dist/models/FFStatusEnum.d.ts +26 -0
  154. package/dist/models/FFStatusEnum.js +52 -0
  155. package/dist/models/FFStatusResponse.d.ts +33 -0
  156. package/dist/models/FFStatusResponse.js +51 -0
  157. package/dist/models/GlobalStatsAggregationModel.d.ts +52 -0
  158. package/dist/models/GlobalStatsAggregationModel.js +62 -0
  159. package/dist/models/HTTPValidationError.d.ts +33 -0
  160. package/dist/models/HTTPValidationError.js +49 -0
  161. package/dist/models/ListResponseBuildTaskShortResponse.d.ts +39 -0
  162. package/dist/models/ListResponseBuildTaskShortResponse.js +54 -0
  163. package/dist/models/ListResponseReleaseResponse.d.ts +39 -0
  164. package/dist/models/ListResponseReleaseResponse.js +54 -0
  165. package/dist/models/ListResponseShortDeviceResponse.d.ts +39 -0
  166. package/dist/models/ListResponseShortDeviceResponse.js +54 -0
  167. package/dist/models/ListResponseShortReleaseResponse.d.ts +39 -0
  168. package/dist/models/ListResponseShortReleaseResponse.js +54 -0
  169. package/dist/models/ListResponseStr.d.ts +38 -0
  170. package/dist/models/ListResponseStr.js +53 -0
  171. package/dist/models/ListResponseUserShortResponse.d.ts +39 -0
  172. package/dist/models/ListResponseUserShortResponse.js +54 -0
  173. package/dist/models/LogListResponse.d.ts +51 -0
  174. package/dist/models/LogListResponse.js +63 -0
  175. package/dist/models/LogResponse.d.ts +83 -0
  176. package/dist/models/LogResponse.js +73 -0
  177. package/dist/models/MaintainerShortModel.d.ts +44 -0
  178. package/dist/models/MaintainerShortModel.js +58 -0
  179. package/dist/models/NewBuildTaskBody.d.ts +57 -0
  180. package/dist/models/NewBuildTaskBody.js +59 -0
  181. package/dist/models/NewDeviceBody.d.ts +50 -0
  182. package/dist/models/NewDeviceBody.js +62 -0
  183. package/dist/models/PasteInput.d.ts +50 -0
  184. package/dist/models/PasteInput.js +58 -0
  185. package/dist/models/PasteOutput.d.ts +50 -0
  186. package/dist/models/PasteOutput.js +58 -0
  187. package/dist/models/RecoveryImgResponse.d.ts +38 -0
  188. package/dist/models/RecoveryImgResponse.js +54 -0
  189. package/dist/models/ReleaseGroupsResponse.d.ts +35 -0
  190. package/dist/models/ReleaseGroupsResponse.js +50 -0
  191. package/dist/models/ReleaseInternalResponse.d.ts +162 -0
  192. package/dist/models/ReleaseInternalResponse.js +126 -0
  193. package/dist/models/ReleaseInternalResponsePropValue.d.ts +26 -0
  194. package/dist/models/ReleaseInternalResponsePropValue.js +38 -0
  195. package/dist/models/ReleaseResponse.d.ts +139 -0
  196. package/dist/models/ReleaseResponse.js +114 -0
  197. package/dist/models/ReleaseStatsResponse.d.ts +48 -0
  198. package/dist/models/ReleaseStatsResponse.js +58 -0
  199. package/dist/models/ReleaseType.d.ts +26 -0
  200. package/dist/models/ReleaseType.js +52 -0
  201. package/dist/models/ReleaseUpdateBody.d.ts +50 -0
  202. package/dist/models/ReleaseUpdateBody.js +54 -0
  203. package/dist/models/ReleasesSort.d.ts +25 -0
  204. package/dist/models/ReleasesSort.js +51 -0
  205. package/dist/models/ResponseGetReleases.d.ts +41 -0
  206. package/dist/models/ResponseGetReleases.js +53 -0
  207. package/dist/models/ShortDeviceResponse.d.ts +82 -0
  208. package/dist/models/ShortDeviceResponse.js +80 -0
  209. package/dist/models/ShortReleaseResponse.d.ts +100 -0
  210. package/dist/models/ShortReleaseResponse.js +91 -0
  211. package/dist/models/TaskUpdateBody.d.ts +39 -0
  212. package/dist/models/TaskUpdateBody.js +51 -0
  213. package/dist/models/TokenResponse.d.ts +38 -0
  214. package/dist/models/TokenResponse.js +52 -0
  215. package/dist/models/UserGitlab.d.ts +32 -0
  216. package/dist/models/UserGitlab.js +50 -0
  217. package/dist/models/UserInternalResponse.d.ts +90 -0
  218. package/dist/models/UserInternalResponse.js +82 -0
  219. package/dist/models/UserMail.d.ts +32 -0
  220. package/dist/models/UserMail.js +50 -0
  221. package/dist/models/UserShortResponse.d.ts +50 -0
  222. package/dist/models/UserShortResponse.js +62 -0
  223. package/dist/models/UserTelegram.d.ts +32 -0
  224. package/dist/models/UserTelegram.js +50 -0
  225. package/dist/models/UserUpdateBody.d.ts +56 -0
  226. package/dist/models/UserUpdateBody.js +56 -0
  227. package/dist/models/ValidationError.d.ts +45 -0
  228. package/dist/models/ValidationError.js +59 -0
  229. package/dist/models/ValidationErrorLocInner.d.ts +26 -0
  230. package/dist/models/ValidationErrorLocInner.js +38 -0
  231. package/dist/models/index.d.ts +47 -0
  232. package/dist/models/index.js +65 -0
  233. package/dist/runtime.d.ts +184 -0
  234. package/dist/runtime.js +350 -0
  235. package/package.json +4 -17
  236. package/src/apis/DeviceApi.ts +326 -0
  237. package/src/apis/FoxFactoryApi.ts +807 -0
  238. package/src/apis/GitlabApi.ts +108 -0
  239. package/src/apis/InternalApi.ts +1590 -0
  240. package/src/apis/PasteApi.ts +158 -0
  241. package/src/apis/ReleaseApi.ts +414 -0
  242. package/src/apis/StatsApi.ts +82 -0
  243. package/src/apis/index.ts +9 -0
  244. package/src/index.ts +5 -0
  245. package/src/models/BodyChangePasswordProfileChangePasswordPost.ts +75 -0
  246. package/src/models/BuildStatusEnum.ts +58 -0
  247. package/src/models/BuildTaskResponse.ts +183 -0
  248. package/src/models/BuildTaskShortResponse.ts +167 -0
  249. package/src/models/DeviceInternalResponse.ts +196 -0
  250. package/src/models/DeviceResponse.ts +171 -0
  251. package/src/models/DeviceStatsResponse.ts +84 -0
  252. package/src/models/DeviceUpdateBody.ts +105 -0
  253. package/src/models/FFStatusEnum.ts +54 -0
  254. package/src/models/FFStatusResponse.ts +76 -0
  255. package/src/models/GlobalStatsAggregationModel.ts +93 -0
  256. package/src/models/HTTPValidationError.ts +73 -0
  257. package/src/models/ListResponseBuildTaskShortResponse.ts +82 -0
  258. package/src/models/ListResponseReleaseResponse.ts +82 -0
  259. package/src/models/ListResponseShortDeviceResponse.ts +82 -0
  260. package/src/models/ListResponseShortReleaseResponse.ts +82 -0
  261. package/src/models/ListResponseStr.ts +74 -0
  262. package/src/models/ListResponseUserShortResponse.ts +82 -0
  263. package/src/models/LogListResponse.ts +101 -0
  264. package/src/models/LogResponse.ts +141 -0
  265. package/src/models/MaintainerShortModel.ts +84 -0
  266. package/src/models/NewBuildTaskBody.ts +108 -0
  267. package/src/models/NewDeviceBody.ts +93 -0
  268. package/src/models/PasteInput.ts +91 -0
  269. package/src/models/PasteOutput.ts +91 -0
  270. package/src/models/RecoveryImgResponse.ts +75 -0
  271. package/src/models/ReleaseGroupsResponse.ts +74 -0
  272. package/src/models/ReleaseInternalResponse.ts +279 -0
  273. package/src/models/ReleaseInternalResponsePropValue.ts +46 -0
  274. package/src/models/ReleaseResponse.ts +233 -0
  275. package/src/models/ReleaseStatsResponse.ts +84 -0
  276. package/src/models/ReleaseType.ts +54 -0
  277. package/src/models/ReleaseUpdateBody.ts +89 -0
  278. package/src/models/ReleasesSort.ts +53 -0
  279. package/src/models/ResponseGetReleases.ts +96 -0
  280. package/src/models/ShortDeviceResponse.ts +138 -0
  281. package/src/models/ShortReleaseResponse.ts +174 -0
  282. package/src/models/TaskUpdateBody.ts +83 -0
  283. package/src/models/TokenResponse.ts +74 -0
  284. package/src/models/UserGitlab.ts +66 -0
  285. package/src/models/UserInternalResponse.ts +172 -0
  286. package/src/models/UserMail.ts +66 -0
  287. package/src/models/UserShortResponse.ts +93 -0
  288. package/src/models/UserTelegram.ts +66 -0
  289. package/src/models/UserUpdateBody.ts +97 -0
  290. package/src/models/ValidationError.ts +92 -0
  291. package/src/models/ValidationErrorLocInner.ts +46 -0
  292. package/src/models/index.ts +49 -0
  293. package/src/runtime.ts +432 -0
  294. package/tsconfig.json +2 -4
  295. package/api.ts +0 -5578
  296. package/base.ts +0 -86
  297. package/common.ts +0 -150
  298. package/configuration.ts +0 -115
  299. package/dist/api.d.ts +0 -3696
  300. package/dist/api.js +0 -3281
  301. package/dist/base.d.ts +0 -66
  302. package/dist/base.js +0 -65
  303. package/dist/common.d.ts +0 -65
  304. package/dist/common.js +0 -161
  305. package/dist/configuration.d.ts +0 -91
  306. package/dist/configuration.js +0 -44
  307. package/dist/esm/api.d.ts +0 -3696
  308. package/dist/esm/api.js +0 -3254
  309. package/dist/esm/base.d.ts +0 -66
  310. package/dist/esm/base.js +0 -60
  311. package/dist/esm/common.d.ts +0 -65
  312. package/dist/esm/common.js +0 -149
  313. package/dist/esm/configuration.d.ts +0 -91
  314. package/dist/esm/configuration.js +0 -40
  315. package/docs/BodyChangePasswordProfileChangePasswordPost.md +0 -22
  316. package/docs/BuildStatusEnum.md +0 -20
  317. package/docs/BuildTaskResponse.md +0 -42
  318. package/docs/BuildTaskShortResponse.md +0 -38
  319. package/docs/DeviceApi.md +0 -251
  320. package/docs/DeviceInternalResponse.md +0 -48
  321. package/docs/DeviceResponse.md +0 -44
  322. package/docs/DeviceStatsResponse.md +0 -24
  323. package/docs/DeviceUpdateBody.md +0 -30
  324. package/docs/FFStatusEnum.md +0 -12
  325. package/docs/FFStatusResponse.md +0 -20
  326. package/docs/FoxFactoryApi.md +0 -540
  327. package/docs/GitlabApi.md +0 -62
  328. package/docs/GlobalStatsAggregationModel.md +0 -26
  329. package/docs/HTTPValidationError.md +0 -20
  330. package/docs/InternalApi.md +0 -958
  331. package/docs/ListResponseBuildTaskShortResponse.md +0 -22
  332. package/docs/ListResponseReleaseResponse.md +0 -22
  333. package/docs/ListResponseShortDeviceResponse.md +0 -22
  334. package/docs/ListResponseShortReleaseResponse.md +0 -22
  335. package/docs/ListResponseStr.md +0 -22
  336. package/docs/ListResponseUserShortResponse.md +0 -22
  337. package/docs/LogListResponse.md +0 -26
  338. package/docs/LogResponse.md +0 -36
  339. package/docs/MaintainerShortModel.md +0 -26
  340. package/docs/NewBuildTaskBody.md +0 -28
  341. package/docs/NewDeviceBody.md +0 -26
  342. package/docs/RecoveryImgResponse.md +0 -22
  343. package/docs/ReleaseApi.md +0 -289
  344. package/docs/ReleaseGroupsResponse.md +0 -20
  345. package/docs/ReleaseInternalResponse.md +0 -62
  346. package/docs/ReleaseInternalResponsePropValue.md +0 -18
  347. package/docs/ReleaseResponse.md +0 -56
  348. package/docs/ReleaseStatsResponse.md +0 -24
  349. package/docs/ReleaseType.md +0 -12
  350. package/docs/ReleaseUpdateBody.md +0 -26
  351. package/docs/ReleasesSort.md +0 -10
  352. package/docs/ResponseGetReleases.md +0 -22
  353. package/docs/ShortDeviceResponse.md +0 -38
  354. package/docs/ShortReleaseResponse.md +0 -44
  355. package/docs/StatsApi.md +0 -53
  356. package/docs/TaskUpdateBody.md +0 -22
  357. package/docs/TokenResponse.md +0 -22
  358. package/docs/UserGitlab.md +0 -20
  359. package/docs/UserInternalResponse.md +0 -38
  360. package/docs/UserMail.md +0 -20
  361. package/docs/UserShortResponse.md +0 -26
  362. package/docs/UserTelegram.md +0 -20
  363. package/docs/UserUpdateBody.md +0 -28
  364. package/docs/ValidationError.md +0 -24
  365. package/docs/ValidationErrorLocInner.md +0 -18
  366. package/git_push.sh +0 -57
package/dist/api.js DELETED
@@ -1,3281 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Fox API
6
- * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
7
- *
8
- * The version of the OpenAPI document: 5.2.5
9
- * Contact: admin@orangefox.tech
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
- return new (P || (P = Promise))(function (resolve, reject) {
18
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
- step((generator = generator.apply(thisArg, _arguments || [])).next());
22
- });
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.StatsApi = exports.StatsApiFactory = exports.StatsApiFp = exports.StatsApiAxiosParamCreator = exports.ReleaseApi = exports.ReleaseApiFactory = exports.ReleaseApiFp = exports.ReleaseApiAxiosParamCreator = exports.InternalApi = exports.InternalApiFactory = exports.InternalApiFp = exports.InternalApiAxiosParamCreator = exports.GitlabApi = exports.GitlabApiFactory = exports.GitlabApiFp = exports.GitlabApiAxiosParamCreator = exports.FoxFactoryApi = exports.FoxFactoryApiFactory = exports.FoxFactoryApiFp = exports.FoxFactoryApiAxiosParamCreator = exports.DeviceApi = exports.DeviceApiFactory = exports.DeviceApiFp = exports.DeviceApiAxiosParamCreator = exports.ReleasesSort = exports.ReleaseType = exports.FFStatusEnum = exports.BuildStatusEnum = void 0;
26
- const axios_1 = require("axios");
27
- // Some imports not used depending on template conditions
28
- // @ts-ignore
29
- const common_1 = require("./common");
30
- // @ts-ignore
31
- const base_1 = require("./base");
32
- /**
33
- *
34
- * @export
35
- * @enum {string}
36
- */
37
- exports.BuildStatusEnum = {
38
- Pending: 'pending',
39
- Running: 'running',
40
- Cancelling: 'cancelling',
41
- Uploading: 'uploading',
42
- Success: 'success',
43
- Cancelled: 'cancelled',
44
- Failed: 'failed'
45
- };
46
- /**
47
- *
48
- * @export
49
- * @enum {string}
50
- */
51
- exports.FFStatusEnum = {
52
- Free: 'free',
53
- Busy: 'busy',
54
- Offline: 'offline'
55
- };
56
- /**
57
- *
58
- * @export
59
- * @enum {string}
60
- */
61
- exports.ReleaseType = {
62
- Stable: 'stable',
63
- Beta: 'beta',
64
- Alpha: 'alpha'
65
- };
66
- /**
67
- *
68
- * @export
69
- * @enum {string}
70
- */
71
- exports.ReleasesSort = {
72
- DateAsc: 'date_asc',
73
- DateDesc: 'date_desc'
74
- };
75
- /**
76
- * DeviceApi - axios parameter creator
77
- * @export
78
- */
79
- const DeviceApiAxiosParamCreator = function (configuration) {
80
- return {
81
- /**
82
- * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
83
- * @summary Get Device
84
- * @param {string | null} [deviceId]
85
- * @param {string | null} [id] Filter by Device ID (deprecated)
86
- * @param {string | null} [codename] Not recommended to use when you can
87
- * @param {*} [options] Override http request option.
88
- * @throws {RequiredError}
89
- */
90
- getDevice: (deviceId_1, id_1, codename_1, ...args_1) => __awaiter(this, [deviceId_1, id_1, codename_1, ...args_1], void 0, function* (deviceId, id, codename, options = {}) {
91
- const localVarPath = `/devices/get`;
92
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
93
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
94
- let baseOptions;
95
- if (configuration) {
96
- baseOptions = configuration.baseOptions;
97
- }
98
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
99
- const localVarHeaderParameter = {};
100
- const localVarQueryParameter = {};
101
- if (deviceId !== undefined) {
102
- localVarQueryParameter['device_id'] = deviceId;
103
- }
104
- if (id !== undefined) {
105
- localVarQueryParameter['_id'] = id;
106
- }
107
- if (codename !== undefined) {
108
- localVarQueryParameter['codename'] = codename;
109
- }
110
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
111
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
112
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
113
- return {
114
- url: (0, common_1.toPathString)(localVarUrlObj),
115
- options: localVarRequestOptions,
116
- };
117
- }),
118
- /**
119
- * Gets device info using device ID.
120
- * @summary Get Device Short
121
- * @param {string} deviceId
122
- * @param {*} [options] Override http request option.
123
- * @deprecated
124
- * @throws {RequiredError}
125
- */
126
- getDeviceDeprecated: (deviceId_1, ...args_1) => __awaiter(this, [deviceId_1, ...args_1], void 0, function* (deviceId, options = {}) {
127
- // verify required parameter 'deviceId' is not null or undefined
128
- (0, common_1.assertParamExists)('getDeviceDeprecated', 'deviceId', deviceId);
129
- const localVarPath = `/devices/{device_id}`
130
- .replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
131
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
132
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
133
- let baseOptions;
134
- if (configuration) {
135
- baseOptions = configuration.baseOptions;
136
- }
137
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
138
- const localVarHeaderParameter = {};
139
- const localVarQueryParameter = {};
140
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
- return {
144
- url: (0, common_1.toPathString)(localVarUrlObj),
145
- options: localVarRequestOptions,
146
- };
147
- }),
148
- /**
149
- * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
150
- * @summary Get Devices
151
- * @param {Array<string>} [id] Filter by Device IDs
152
- * @param {Array<string>} [id2] Filter by Device IDs (deprecated)
153
- * @param {Array<string>} [oemName] Filter by OEM names
154
- * @param {Array<string>} [codename] Filter by device codenames
155
- * @param {Array<string>} [modelName] Filter by model names
156
- * @param {boolean | null} [supported] Supported status
157
- * @param {Array<string>} [maintainer] Filter by maintainer ID
158
- * @param {boolean | null} [freezed] Filter by Freezed status
159
- * @param {boolean | null} [hasReleases] Filter by has releases status
160
- * @param {number | null} [skip] Skip query results
161
- * @param {number | null} [limit] Limit query results (0 means unlimited)
162
- * @param {*} [options] Override http request option.
163
- * @throws {RequiredError}
164
- */
165
- getDevices: (id_1, id2_1, oemName_1, codename_1, modelName_1, supported_1, maintainer_1, freezed_1, hasReleases_1, skip_1, limit_1, ...args_1) => __awaiter(this, [id_1, id2_1, oemName_1, codename_1, modelName_1, supported_1, maintainer_1, freezed_1, hasReleases_1, skip_1, limit_1, ...args_1], void 0, function* (id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options = {}) {
166
- const localVarPath = `/devices/`;
167
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
168
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
169
- let baseOptions;
170
- if (configuration) {
171
- baseOptions = configuration.baseOptions;
172
- }
173
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
174
- const localVarHeaderParameter = {};
175
- const localVarQueryParameter = {};
176
- if (id) {
177
- localVarQueryParameter['id'] = id;
178
- }
179
- if (id2) {
180
- localVarQueryParameter['_id'] = id2;
181
- }
182
- if (oemName) {
183
- localVarQueryParameter['oem_name'] = oemName;
184
- }
185
- if (codename) {
186
- localVarQueryParameter['codename'] = codename;
187
- }
188
- if (modelName) {
189
- localVarQueryParameter['model_name'] = modelName;
190
- }
191
- if (supported !== undefined) {
192
- localVarQueryParameter['supported'] = supported;
193
- }
194
- if (maintainer) {
195
- localVarQueryParameter['maintainer'] = maintainer;
196
- }
197
- if (freezed !== undefined) {
198
- localVarQueryParameter['freezed'] = freezed;
199
- }
200
- if (hasReleases !== undefined) {
201
- localVarQueryParameter['has_releases'] = hasReleases;
202
- }
203
- if (skip !== undefined) {
204
- localVarQueryParameter['skip'] = skip;
205
- }
206
- if (limit !== undefined) {
207
- localVarQueryParameter['limit'] = limit;
208
- }
209
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
210
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
211
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
212
- return {
213
- url: (0, common_1.toPathString)(localVarUrlObj),
214
- options: localVarRequestOptions,
215
- };
216
- }),
217
- /**
218
- * Lists all OEM names
219
- * @summary Get Oems
220
- * @param {*} [options] Override http request option.
221
- * @throws {RequiredError}
222
- */
223
- getOems: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
224
- const localVarPath = `/oems/`;
225
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
226
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
227
- let baseOptions;
228
- if (configuration) {
229
- baseOptions = configuration.baseOptions;
230
- }
231
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
232
- const localVarHeaderParameter = {};
233
- const localVarQueryParameter = {};
234
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
235
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
236
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
237
- return {
238
- url: (0, common_1.toPathString)(localVarUrlObj),
239
- options: localVarRequestOptions,
240
- };
241
- }),
242
- };
243
- };
244
- exports.DeviceApiAxiosParamCreator = DeviceApiAxiosParamCreator;
245
- /**
246
- * DeviceApi - functional programming interface
247
- * @export
248
- */
249
- const DeviceApiFp = function (configuration) {
250
- const localVarAxiosParamCreator = (0, exports.DeviceApiAxiosParamCreator)(configuration);
251
- return {
252
- /**
253
- * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
254
- * @summary Get Device
255
- * @param {string | null} [deviceId]
256
- * @param {string | null} [id] Filter by Device ID (deprecated)
257
- * @param {string | null} [codename] Not recommended to use when you can
258
- * @param {*} [options] Override http request option.
259
- * @throws {RequiredError}
260
- */
261
- getDevice(deviceId, id, codename, options) {
262
- return __awaiter(this, void 0, void 0, function* () {
263
- var _a, _b, _c;
264
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDevice(deviceId, id, codename, options);
265
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
266
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeviceApi.getDevice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
267
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
268
- });
269
- },
270
- /**
271
- * Gets device info using device ID.
272
- * @summary Get Device Short
273
- * @param {string} deviceId
274
- * @param {*} [options] Override http request option.
275
- * @deprecated
276
- * @throws {RequiredError}
277
- */
278
- getDeviceDeprecated(deviceId, options) {
279
- return __awaiter(this, void 0, void 0, function* () {
280
- var _a, _b, _c;
281
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeviceDeprecated(deviceId, options);
282
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
283
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeviceApi.getDeviceDeprecated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
284
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
285
- });
286
- },
287
- /**
288
- * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
289
- * @summary Get Devices
290
- * @param {Array<string>} [id] Filter by Device IDs
291
- * @param {Array<string>} [id2] Filter by Device IDs (deprecated)
292
- * @param {Array<string>} [oemName] Filter by OEM names
293
- * @param {Array<string>} [codename] Filter by device codenames
294
- * @param {Array<string>} [modelName] Filter by model names
295
- * @param {boolean | null} [supported] Supported status
296
- * @param {Array<string>} [maintainer] Filter by maintainer ID
297
- * @param {boolean | null} [freezed] Filter by Freezed status
298
- * @param {boolean | null} [hasReleases] Filter by has releases status
299
- * @param {number | null} [skip] Skip query results
300
- * @param {number | null} [limit] Limit query results (0 means unlimited)
301
- * @param {*} [options] Override http request option.
302
- * @throws {RequiredError}
303
- */
304
- getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
305
- return __awaiter(this, void 0, void 0, function* () {
306
- var _a, _b, _c;
307
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options);
308
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
309
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeviceApi.getDevices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
310
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
311
- });
312
- },
313
- /**
314
- * Lists all OEM names
315
- * @summary Get Oems
316
- * @param {*} [options] Override http request option.
317
- * @throws {RequiredError}
318
- */
319
- getOems(options) {
320
- return __awaiter(this, void 0, void 0, function* () {
321
- var _a, _b, _c;
322
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOems(options);
323
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
324
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeviceApi.getOems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
325
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
326
- });
327
- },
328
- };
329
- };
330
- exports.DeviceApiFp = DeviceApiFp;
331
- /**
332
- * DeviceApi - factory interface
333
- * @export
334
- */
335
- const DeviceApiFactory = function (configuration, basePath, axios) {
336
- const localVarFp = (0, exports.DeviceApiFp)(configuration);
337
- return {
338
- /**
339
- * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
340
- * @summary Get Device
341
- * @param {string | null} [deviceId]
342
- * @param {string | null} [id] Filter by Device ID (deprecated)
343
- * @param {string | null} [codename] Not recommended to use when you can
344
- * @param {*} [options] Override http request option.
345
- * @throws {RequiredError}
346
- */
347
- getDevice(deviceId, id, codename, options) {
348
- return localVarFp.getDevice(deviceId, id, codename, options).then((request) => request(axios, basePath));
349
- },
350
- /**
351
- * Gets device info using device ID.
352
- * @summary Get Device Short
353
- * @param {string} deviceId
354
- * @param {*} [options] Override http request option.
355
- * @deprecated
356
- * @throws {RequiredError}
357
- */
358
- getDeviceDeprecated(deviceId, options) {
359
- return localVarFp.getDeviceDeprecated(deviceId, options).then((request) => request(axios, basePath));
360
- },
361
- /**
362
- * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
363
- * @summary Get Devices
364
- * @param {Array<string>} [id] Filter by Device IDs
365
- * @param {Array<string>} [id2] Filter by Device IDs (deprecated)
366
- * @param {Array<string>} [oemName] Filter by OEM names
367
- * @param {Array<string>} [codename] Filter by device codenames
368
- * @param {Array<string>} [modelName] Filter by model names
369
- * @param {boolean | null} [supported] Supported status
370
- * @param {Array<string>} [maintainer] Filter by maintainer ID
371
- * @param {boolean | null} [freezed] Filter by Freezed status
372
- * @param {boolean | null} [hasReleases] Filter by has releases status
373
- * @param {number | null} [skip] Skip query results
374
- * @param {number | null} [limit] Limit query results (0 means unlimited)
375
- * @param {*} [options] Override http request option.
376
- * @throws {RequiredError}
377
- */
378
- getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
379
- return localVarFp.getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options).then((request) => request(axios, basePath));
380
- },
381
- /**
382
- * Lists all OEM names
383
- * @summary Get Oems
384
- * @param {*} [options] Override http request option.
385
- * @throws {RequiredError}
386
- */
387
- getOems(options) {
388
- return localVarFp.getOems(options).then((request) => request(axios, basePath));
389
- },
390
- };
391
- };
392
- exports.DeviceApiFactory = DeviceApiFactory;
393
- /**
394
- * DeviceApi - object-oriented interface
395
- * @export
396
- * @class DeviceApi
397
- * @extends {BaseAPI}
398
- */
399
- class DeviceApi extends base_1.BaseAPI {
400
- /**
401
- * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
402
- * @summary Get Device
403
- * @param {string | null} [deviceId]
404
- * @param {string | null} [id] Filter by Device ID (deprecated)
405
- * @param {string | null} [codename] Not recommended to use when you can
406
- * @param {*} [options] Override http request option.
407
- * @throws {RequiredError}
408
- * @memberof DeviceApi
409
- */
410
- getDevice(deviceId, id, codename, options) {
411
- return (0, exports.DeviceApiFp)(this.configuration).getDevice(deviceId, id, codename, options).then((request) => request(this.axios, this.basePath));
412
- }
413
- /**
414
- * Gets device info using device ID.
415
- * @summary Get Device Short
416
- * @param {string} deviceId
417
- * @param {*} [options] Override http request option.
418
- * @deprecated
419
- * @throws {RequiredError}
420
- * @memberof DeviceApi
421
- */
422
- getDeviceDeprecated(deviceId, options) {
423
- return (0, exports.DeviceApiFp)(this.configuration).getDeviceDeprecated(deviceId, options).then((request) => request(this.axios, this.basePath));
424
- }
425
- /**
426
- * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
427
- * @summary Get Devices
428
- * @param {Array<string>} [id] Filter by Device IDs
429
- * @param {Array<string>} [id2] Filter by Device IDs (deprecated)
430
- * @param {Array<string>} [oemName] Filter by OEM names
431
- * @param {Array<string>} [codename] Filter by device codenames
432
- * @param {Array<string>} [modelName] Filter by model names
433
- * @param {boolean | null} [supported] Supported status
434
- * @param {Array<string>} [maintainer] Filter by maintainer ID
435
- * @param {boolean | null} [freezed] Filter by Freezed status
436
- * @param {boolean | null} [hasReleases] Filter by has releases status
437
- * @param {number | null} [skip] Skip query results
438
- * @param {number | null} [limit] Limit query results (0 means unlimited)
439
- * @param {*} [options] Override http request option.
440
- * @throws {RequiredError}
441
- * @memberof DeviceApi
442
- */
443
- getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
444
- return (0, exports.DeviceApiFp)(this.configuration).getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options).then((request) => request(this.axios, this.basePath));
445
- }
446
- /**
447
- * Lists all OEM names
448
- * @summary Get Oems
449
- * @param {*} [options] Override http request option.
450
- * @throws {RequiredError}
451
- * @memberof DeviceApi
452
- */
453
- getOems(options) {
454
- return (0, exports.DeviceApiFp)(this.configuration).getOems(options).then((request) => request(this.axios, this.basePath));
455
- }
456
- }
457
- exports.DeviceApi = DeviceApi;
458
- /**
459
- * FoxFactoryApi - axios parameter creator
460
- * @export
461
- */
462
- const FoxFactoryApiAxiosParamCreator = function (configuration) {
463
- return {
464
- /**
465
- * Cancels a build task given its identifier. The task\'s status is updated to indicate that it is in the process of cancellation. If the task with the specified ID is not found, a 404 HTTP exception is raised.
466
- * @summary Cancel Task
467
- * @param {string} taskId
468
- * @param {*} [options] Override http request option.
469
- * @throws {RequiredError}
470
- */
471
- cancelTaskFactoryTaskIdCancelPost: (taskId_1, ...args_1) => __awaiter(this, [taskId_1, ...args_1], void 0, function* (taskId, options = {}) {
472
- // verify required parameter 'taskId' is not null or undefined
473
- (0, common_1.assertParamExists)('cancelTaskFactoryTaskIdCancelPost', 'taskId', taskId);
474
- const localVarPath = `/factory/{task_id}/cancel`
475
- .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
476
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
477
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
478
- let baseOptions;
479
- if (configuration) {
480
- baseOptions = configuration.baseOptions;
481
- }
482
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
483
- const localVarHeaderParameter = {};
484
- const localVarQueryParameter = {};
485
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
486
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
487
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
488
- return {
489
- url: (0, common_1.toPathString)(localVarUrlObj),
490
- options: localVarRequestOptions,
491
- };
492
- }),
493
- /**
494
- * Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised. Also deletes any associated artifact files.
495
- * @summary Delete Task
496
- * @param {string} taskId
497
- * @param {*} [options] Override http request option.
498
- * @throws {RequiredError}
499
- */
500
- deleteTaskFactoryTaskIdDelete: (taskId_1, ...args_1) => __awaiter(this, [taskId_1, ...args_1], void 0, function* (taskId, options = {}) {
501
- // verify required parameter 'taskId' is not null or undefined
502
- (0, common_1.assertParamExists)('deleteTaskFactoryTaskIdDelete', 'taskId', taskId);
503
- const localVarPath = `/factory/{task_id}`
504
- .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
505
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
506
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
507
- let baseOptions;
508
- if (configuration) {
509
- baseOptions = configuration.baseOptions;
510
- }
511
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
512
- const localVarHeaderParameter = {};
513
- const localVarQueryParameter = {};
514
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
515
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
516
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
517
- return {
518
- url: (0, common_1.toPathString)(localVarUrlObj),
519
- options: localVarRequestOptions,
520
- };
521
- }),
522
- /**
523
- * Download the artifact file for a specific build task. This endpoint allows maintainers and foxfactory workers to download the artifact file associated with a build task. Parameters: task_id: The ID of the build task
524
- * @summary Download Artifact
525
- * @param {string} taskId
526
- * @param {*} [options] Override http request option.
527
- * @throws {RequiredError}
528
- */
529
- downloadArtifactFactoryTaskIdArtifactGet: (taskId_1, ...args_1) => __awaiter(this, [taskId_1, ...args_1], void 0, function* (taskId, options = {}) {
530
- // verify required parameter 'taskId' is not null or undefined
531
- (0, common_1.assertParamExists)('downloadArtifactFactoryTaskIdArtifactGet', 'taskId', taskId);
532
- const localVarPath = `/factory/{task_id}/artifact`
533
- .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
534
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
535
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
536
- let baseOptions;
537
- if (configuration) {
538
- baseOptions = configuration.baseOptions;
539
- }
540
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
541
- const localVarHeaderParameter = {};
542
- const localVarQueryParameter = {};
543
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
544
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
545
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
546
- return {
547
- url: (0, common_1.toPathString)(localVarUrlObj),
548
- options: localVarRequestOptions,
549
- };
550
- }),
551
- /**
552
- * Endpoint for clients to get the current status of the worker. If the last update was longer than the defined timeout, worker is considered offline.
553
- * @summary Factory Status
554
- * @param {*} [options] Override http request option.
555
- * @throws {RequiredError}
556
- */
557
- factoryStatusFactoryStatusGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
558
- const localVarPath = `/factory/status`;
559
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
560
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
561
- let baseOptions;
562
- if (configuration) {
563
- baseOptions = configuration.baseOptions;
564
- }
565
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
566
- const localVarHeaderParameter = {};
567
- const localVarQueryParameter = {};
568
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
569
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
570
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
571
- return {
572
- url: (0, common_1.toPathString)(localVarUrlObj),
573
- options: localVarRequestOptions,
574
- };
575
- }),
576
- /**
577
- * Retrieves the details of a specific build task. This endpoint allows a user to fetch detailed information about a build task by its ID. Access to this endpoint is restricted to users with the \'maintainer\' or \'foxworker\' roles. Depending on the user\'s roles, returned task details may differ. Admin users will receive all task details, while others will have some fields excluded.
578
- * @summary Get Task
579
- * @param {string} taskId
580
- * @param {*} [options] Override http request option.
581
- * @throws {RequiredError}
582
- */
583
- getTaskFactoryTaskIdGet: (taskId_1, ...args_1) => __awaiter(this, [taskId_1, ...args_1], void 0, function* (taskId, options = {}) {
584
- // verify required parameter 'taskId' is not null or undefined
585
- (0, common_1.assertParamExists)('getTaskFactoryTaskIdGet', 'taskId', taskId);
586
- const localVarPath = `/factory/{task_id}`
587
- .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
588
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
589
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
590
- let baseOptions;
591
- if (configuration) {
592
- baseOptions = configuration.baseOptions;
593
- }
594
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
595
- const localVarHeaderParameter = {};
596
- const localVarQueryParameter = {};
597
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
598
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
599
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
600
- return {
601
- url: (0, common_1.toPathString)(localVarUrlObj),
602
- options: localVarRequestOptions,
603
- };
604
- }),
605
- /**
606
- * Get a list of all build tasks. This endpoint retrieves all build tasks from the database and returns them as a list of abbreviated responses. Parameters: device_id (ObjectId, optional): Filter tasks by device ID
607
- * @summary List Tasks
608
- * @param {string | null} [deviceId]
609
- * @param {*} [options] Override http request option.
610
- * @throws {RequiredError}
611
- */
612
- listTasksFactoryGet: (deviceId_1, ...args_1) => __awaiter(this, [deviceId_1, ...args_1], void 0, function* (deviceId, options = {}) {
613
- const localVarPath = `/factory/`;
614
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
615
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
616
- let baseOptions;
617
- if (configuration) {
618
- baseOptions = configuration.baseOptions;
619
- }
620
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
621
- const localVarHeaderParameter = {};
622
- const localVarQueryParameter = {};
623
- if (deviceId !== undefined) {
624
- localVarQueryParameter['device_id'] = deviceId;
625
- }
626
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
627
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
628
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
629
- return {
630
- url: (0, common_1.toPathString)(localVarUrlObj),
631
- options: localVarRequestOptions,
632
- };
633
- }),
634
- /**
635
- * Handles the creation of a new build task including validations for the device existence and its connection to GitLab. It initializes a new task with a pending status and the required details, then saves it to the database before returning the task model.
636
- * @summary New Task
637
- * @param {NewBuildTaskBody} newBuildTaskBody
638
- * @param {*} [options] Override http request option.
639
- * @throws {RequiredError}
640
- */
641
- newTaskFactoryPost: (newBuildTaskBody_1, ...args_1) => __awaiter(this, [newBuildTaskBody_1, ...args_1], void 0, function* (newBuildTaskBody, options = {}) {
642
- // verify required parameter 'newBuildTaskBody' is not null or undefined
643
- (0, common_1.assertParamExists)('newTaskFactoryPost', 'newBuildTaskBody', newBuildTaskBody);
644
- const localVarPath = `/factory/`;
645
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
646
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
647
- let baseOptions;
648
- if (configuration) {
649
- baseOptions = configuration.baseOptions;
650
- }
651
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
652
- const localVarHeaderParameter = {};
653
- const localVarQueryParameter = {};
654
- localVarHeaderParameter['Content-Type'] = 'application/json';
655
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
656
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
657
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
658
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(newBuildTaskBody, localVarRequestOptions, configuration);
659
- return {
660
- url: (0, common_1.toPathString)(localVarUrlObj),
661
- options: localVarRequestOptions,
662
- };
663
- }),
664
- /**
665
- * Updates an existing build task by its unique identifier. The function allows updates to the task\'s status and logs. If the task\'s status is set to a value indicating completion, the finished timestamp is also updated. Allowed only for foxworker users.
666
- * @summary Update Task
667
- * @param {string} taskId
668
- * @param {TaskUpdateBody} taskUpdateBody
669
- * @param {*} [options] Override http request option.
670
- * @throws {RequiredError}
671
- */
672
- updateTaskFactoryTaskIdPatch: (taskId_1, taskUpdateBody_1, ...args_1) => __awaiter(this, [taskId_1, taskUpdateBody_1, ...args_1], void 0, function* (taskId, taskUpdateBody, options = {}) {
673
- // verify required parameter 'taskId' is not null or undefined
674
- (0, common_1.assertParamExists)('updateTaskFactoryTaskIdPatch', 'taskId', taskId);
675
- // verify required parameter 'taskUpdateBody' is not null or undefined
676
- (0, common_1.assertParamExists)('updateTaskFactoryTaskIdPatch', 'taskUpdateBody', taskUpdateBody);
677
- const localVarPath = `/factory/{task_id}`
678
- .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
679
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
680
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
681
- let baseOptions;
682
- if (configuration) {
683
- baseOptions = configuration.baseOptions;
684
- }
685
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
686
- const localVarHeaderParameter = {};
687
- const localVarQueryParameter = {};
688
- localVarHeaderParameter['Content-Type'] = 'application/json';
689
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
690
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
691
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
692
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(taskUpdateBody, localVarRequestOptions, configuration);
693
- return {
694
- url: (0, common_1.toPathString)(localVarUrlObj),
695
- options: localVarRequestOptions,
696
- };
697
- }),
698
- /**
699
- * Endpoint for FoxFactory worker to update its status.
700
- * @summary Update Worker Status
701
- * @param {string} body
702
- * @param {*} [options] Override http request option.
703
- * @throws {RequiredError}
704
- */
705
- updateWorkerStatusFactoryUpdateStatusPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
706
- // verify required parameter 'body' is not null or undefined
707
- (0, common_1.assertParamExists)('updateWorkerStatusFactoryUpdateStatusPost', 'body', body);
708
- const localVarPath = `/factory/update_status`;
709
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
710
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
711
- let baseOptions;
712
- if (configuration) {
713
- baseOptions = configuration.baseOptions;
714
- }
715
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
716
- const localVarHeaderParameter = {};
717
- const localVarQueryParameter = {};
718
- localVarHeaderParameter['Content-Type'] = 'application/json';
719
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
720
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
721
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
722
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
723
- return {
724
- url: (0, common_1.toPathString)(localVarUrlObj),
725
- options: localVarRequestOptions,
726
- };
727
- }),
728
- /**
729
- * Upload an artifact zip file for a specific build task. This endpoint allows foxfactory workers to upload an artifact zip file, verifies its MD5 hash, and stores it in the appropriate directory. Parameters: task_id: The ID of the build task artifact: The artifact zip file to upload md5_hash: The expected MD5 hash of the artifact file
730
- * @summary Upload Artifact
731
- * @param {string} taskId
732
- * @param {File} artifact
733
- * @param {string} md5Hash
734
- * @param {*} [options] Override http request option.
735
- * @throws {RequiredError}
736
- */
737
- uploadArtifactFactoryTaskIdArtifactPost: (taskId_1, artifact_1, md5Hash_1, ...args_1) => __awaiter(this, [taskId_1, artifact_1, md5Hash_1, ...args_1], void 0, function* (taskId, artifact, md5Hash, options = {}) {
738
- // verify required parameter 'taskId' is not null or undefined
739
- (0, common_1.assertParamExists)('uploadArtifactFactoryTaskIdArtifactPost', 'taskId', taskId);
740
- // verify required parameter 'artifact' is not null or undefined
741
- (0, common_1.assertParamExists)('uploadArtifactFactoryTaskIdArtifactPost', 'artifact', artifact);
742
- // verify required parameter 'md5Hash' is not null or undefined
743
- (0, common_1.assertParamExists)('uploadArtifactFactoryTaskIdArtifactPost', 'md5Hash', md5Hash);
744
- const localVarPath = `/factory/{task_id}/artifact`
745
- .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
746
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
747
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
748
- let baseOptions;
749
- if (configuration) {
750
- baseOptions = configuration.baseOptions;
751
- }
752
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
753
- const localVarHeaderParameter = {};
754
- const localVarQueryParameter = {};
755
- const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
756
- if (artifact !== undefined) {
757
- localVarFormParams.append('artifact', artifact);
758
- }
759
- if (md5Hash !== undefined) {
760
- localVarFormParams.append('md5_hash', md5Hash);
761
- }
762
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
763
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
764
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
765
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
766
- localVarRequestOptions.data = localVarFormParams;
767
- return {
768
- url: (0, common_1.toPathString)(localVarUrlObj),
769
- options: localVarRequestOptions,
770
- };
771
- }),
772
- };
773
- };
774
- exports.FoxFactoryApiAxiosParamCreator = FoxFactoryApiAxiosParamCreator;
775
- /**
776
- * FoxFactoryApi - functional programming interface
777
- * @export
778
- */
779
- const FoxFactoryApiFp = function (configuration) {
780
- const localVarAxiosParamCreator = (0, exports.FoxFactoryApiAxiosParamCreator)(configuration);
781
- return {
782
- /**
783
- * Cancels a build task given its identifier. The task\'s status is updated to indicate that it is in the process of cancellation. If the task with the specified ID is not found, a 404 HTTP exception is raised.
784
- * @summary Cancel Task
785
- * @param {string} taskId
786
- * @param {*} [options] Override http request option.
787
- * @throws {RequiredError}
788
- */
789
- cancelTaskFactoryTaskIdCancelPost(taskId, options) {
790
- return __awaiter(this, void 0, void 0, function* () {
791
- var _a, _b, _c;
792
- const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelTaskFactoryTaskIdCancelPost(taskId, options);
793
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
794
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FoxFactoryApi.cancelTaskFactoryTaskIdCancelPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
795
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
796
- });
797
- },
798
- /**
799
- * Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised. Also deletes any associated artifact files.
800
- * @summary Delete Task
801
- * @param {string} taskId
802
- * @param {*} [options] Override http request option.
803
- * @throws {RequiredError}
804
- */
805
- deleteTaskFactoryTaskIdDelete(taskId, options) {
806
- return __awaiter(this, void 0, void 0, function* () {
807
- var _a, _b, _c;
808
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteTaskFactoryTaskIdDelete(taskId, options);
809
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
810
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FoxFactoryApi.deleteTaskFactoryTaskIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
811
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
812
- });
813
- },
814
- /**
815
- * Download the artifact file for a specific build task. This endpoint allows maintainers and foxfactory workers to download the artifact file associated with a build task. Parameters: task_id: The ID of the build task
816
- * @summary Download Artifact
817
- * @param {string} taskId
818
- * @param {*} [options] Override http request option.
819
- * @throws {RequiredError}
820
- */
821
- downloadArtifactFactoryTaskIdArtifactGet(taskId, options) {
822
- return __awaiter(this, void 0, void 0, function* () {
823
- var _a, _b, _c;
824
- const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadArtifactFactoryTaskIdArtifactGet(taskId, options);
825
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
826
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FoxFactoryApi.downloadArtifactFactoryTaskIdArtifactGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
827
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
828
- });
829
- },
830
- /**
831
- * Endpoint for clients to get the current status of the worker. If the last update was longer than the defined timeout, worker is considered offline.
832
- * @summary Factory Status
833
- * @param {*} [options] Override http request option.
834
- * @throws {RequiredError}
835
- */
836
- factoryStatusFactoryStatusGet(options) {
837
- return __awaiter(this, void 0, void 0, function* () {
838
- var _a, _b, _c;
839
- const localVarAxiosArgs = yield localVarAxiosParamCreator.factoryStatusFactoryStatusGet(options);
840
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
841
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FoxFactoryApi.factoryStatusFactoryStatusGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
842
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
843
- });
844
- },
845
- /**
846
- * Retrieves the details of a specific build task. This endpoint allows a user to fetch detailed information about a build task by its ID. Access to this endpoint is restricted to users with the \'maintainer\' or \'foxworker\' roles. Depending on the user\'s roles, returned task details may differ. Admin users will receive all task details, while others will have some fields excluded.
847
- * @summary Get Task
848
- * @param {string} taskId
849
- * @param {*} [options] Override http request option.
850
- * @throws {RequiredError}
851
- */
852
- getTaskFactoryTaskIdGet(taskId, options) {
853
- return __awaiter(this, void 0, void 0, function* () {
854
- var _a, _b, _c;
855
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getTaskFactoryTaskIdGet(taskId, options);
856
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
857
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FoxFactoryApi.getTaskFactoryTaskIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
858
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
859
- });
860
- },
861
- /**
862
- * Get a list of all build tasks. This endpoint retrieves all build tasks from the database and returns them as a list of abbreviated responses. Parameters: device_id (ObjectId, optional): Filter tasks by device ID
863
- * @summary List Tasks
864
- * @param {string | null} [deviceId]
865
- * @param {*} [options] Override http request option.
866
- * @throws {RequiredError}
867
- */
868
- listTasksFactoryGet(deviceId, options) {
869
- return __awaiter(this, void 0, void 0, function* () {
870
- var _a, _b, _c;
871
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listTasksFactoryGet(deviceId, options);
872
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
873
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FoxFactoryApi.listTasksFactoryGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
874
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
875
- });
876
- },
877
- /**
878
- * Handles the creation of a new build task including validations for the device existence and its connection to GitLab. It initializes a new task with a pending status and the required details, then saves it to the database before returning the task model.
879
- * @summary New Task
880
- * @param {NewBuildTaskBody} newBuildTaskBody
881
- * @param {*} [options] Override http request option.
882
- * @throws {RequiredError}
883
- */
884
- newTaskFactoryPost(newBuildTaskBody, options) {
885
- return __awaiter(this, void 0, void 0, function* () {
886
- var _a, _b, _c;
887
- const localVarAxiosArgs = yield localVarAxiosParamCreator.newTaskFactoryPost(newBuildTaskBody, options);
888
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
889
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FoxFactoryApi.newTaskFactoryPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
890
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
891
- });
892
- },
893
- /**
894
- * Updates an existing build task by its unique identifier. The function allows updates to the task\'s status and logs. If the task\'s status is set to a value indicating completion, the finished timestamp is also updated. Allowed only for foxworker users.
895
- * @summary Update Task
896
- * @param {string} taskId
897
- * @param {TaskUpdateBody} taskUpdateBody
898
- * @param {*} [options] Override http request option.
899
- * @throws {RequiredError}
900
- */
901
- updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options) {
902
- return __awaiter(this, void 0, void 0, function* () {
903
- var _a, _b, _c;
904
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options);
905
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
906
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FoxFactoryApi.updateTaskFactoryTaskIdPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
907
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
908
- });
909
- },
910
- /**
911
- * Endpoint for FoxFactory worker to update its status.
912
- * @summary Update Worker Status
913
- * @param {string} body
914
- * @param {*} [options] Override http request option.
915
- * @throws {RequiredError}
916
- */
917
- updateWorkerStatusFactoryUpdateStatusPost(body, options) {
918
- return __awaiter(this, void 0, void 0, function* () {
919
- var _a, _b, _c;
920
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWorkerStatusFactoryUpdateStatusPost(body, options);
921
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
922
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FoxFactoryApi.updateWorkerStatusFactoryUpdateStatusPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
923
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
924
- });
925
- },
926
- /**
927
- * Upload an artifact zip file for a specific build task. This endpoint allows foxfactory workers to upload an artifact zip file, verifies its MD5 hash, and stores it in the appropriate directory. Parameters: task_id: The ID of the build task artifact: The artifact zip file to upload md5_hash: The expected MD5 hash of the artifact file
928
- * @summary Upload Artifact
929
- * @param {string} taskId
930
- * @param {File} artifact
931
- * @param {string} md5Hash
932
- * @param {*} [options] Override http request option.
933
- * @throws {RequiredError}
934
- */
935
- uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options) {
936
- return __awaiter(this, void 0, void 0, function* () {
937
- var _a, _b, _c;
938
- const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options);
939
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
940
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FoxFactoryApi.uploadArtifactFactoryTaskIdArtifactPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
941
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
942
- });
943
- },
944
- };
945
- };
946
- exports.FoxFactoryApiFp = FoxFactoryApiFp;
947
- /**
948
- * FoxFactoryApi - factory interface
949
- * @export
950
- */
951
- const FoxFactoryApiFactory = function (configuration, basePath, axios) {
952
- const localVarFp = (0, exports.FoxFactoryApiFp)(configuration);
953
- return {
954
- /**
955
- * Cancels a build task given its identifier. The task\'s status is updated to indicate that it is in the process of cancellation. If the task with the specified ID is not found, a 404 HTTP exception is raised.
956
- * @summary Cancel Task
957
- * @param {string} taskId
958
- * @param {*} [options] Override http request option.
959
- * @throws {RequiredError}
960
- */
961
- cancelTaskFactoryTaskIdCancelPost(taskId, options) {
962
- return localVarFp.cancelTaskFactoryTaskIdCancelPost(taskId, options).then((request) => request(axios, basePath));
963
- },
964
- /**
965
- * Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised. Also deletes any associated artifact files.
966
- * @summary Delete Task
967
- * @param {string} taskId
968
- * @param {*} [options] Override http request option.
969
- * @throws {RequiredError}
970
- */
971
- deleteTaskFactoryTaskIdDelete(taskId, options) {
972
- return localVarFp.deleteTaskFactoryTaskIdDelete(taskId, options).then((request) => request(axios, basePath));
973
- },
974
- /**
975
- * Download the artifact file for a specific build task. This endpoint allows maintainers and foxfactory workers to download the artifact file associated with a build task. Parameters: task_id: The ID of the build task
976
- * @summary Download Artifact
977
- * @param {string} taskId
978
- * @param {*} [options] Override http request option.
979
- * @throws {RequiredError}
980
- */
981
- downloadArtifactFactoryTaskIdArtifactGet(taskId, options) {
982
- return localVarFp.downloadArtifactFactoryTaskIdArtifactGet(taskId, options).then((request) => request(axios, basePath));
983
- },
984
- /**
985
- * Endpoint for clients to get the current status of the worker. If the last update was longer than the defined timeout, worker is considered offline.
986
- * @summary Factory Status
987
- * @param {*} [options] Override http request option.
988
- * @throws {RequiredError}
989
- */
990
- factoryStatusFactoryStatusGet(options) {
991
- return localVarFp.factoryStatusFactoryStatusGet(options).then((request) => request(axios, basePath));
992
- },
993
- /**
994
- * Retrieves the details of a specific build task. This endpoint allows a user to fetch detailed information about a build task by its ID. Access to this endpoint is restricted to users with the \'maintainer\' or \'foxworker\' roles. Depending on the user\'s roles, returned task details may differ. Admin users will receive all task details, while others will have some fields excluded.
995
- * @summary Get Task
996
- * @param {string} taskId
997
- * @param {*} [options] Override http request option.
998
- * @throws {RequiredError}
999
- */
1000
- getTaskFactoryTaskIdGet(taskId, options) {
1001
- return localVarFp.getTaskFactoryTaskIdGet(taskId, options).then((request) => request(axios, basePath));
1002
- },
1003
- /**
1004
- * Get a list of all build tasks. This endpoint retrieves all build tasks from the database and returns them as a list of abbreviated responses. Parameters: device_id (ObjectId, optional): Filter tasks by device ID
1005
- * @summary List Tasks
1006
- * @param {string | null} [deviceId]
1007
- * @param {*} [options] Override http request option.
1008
- * @throws {RequiredError}
1009
- */
1010
- listTasksFactoryGet(deviceId, options) {
1011
- return localVarFp.listTasksFactoryGet(deviceId, options).then((request) => request(axios, basePath));
1012
- },
1013
- /**
1014
- * Handles the creation of a new build task including validations for the device existence and its connection to GitLab. It initializes a new task with a pending status and the required details, then saves it to the database before returning the task model.
1015
- * @summary New Task
1016
- * @param {NewBuildTaskBody} newBuildTaskBody
1017
- * @param {*} [options] Override http request option.
1018
- * @throws {RequiredError}
1019
- */
1020
- newTaskFactoryPost(newBuildTaskBody, options) {
1021
- return localVarFp.newTaskFactoryPost(newBuildTaskBody, options).then((request) => request(axios, basePath));
1022
- },
1023
- /**
1024
- * Updates an existing build task by its unique identifier. The function allows updates to the task\'s status and logs. If the task\'s status is set to a value indicating completion, the finished timestamp is also updated. Allowed only for foxworker users.
1025
- * @summary Update Task
1026
- * @param {string} taskId
1027
- * @param {TaskUpdateBody} taskUpdateBody
1028
- * @param {*} [options] Override http request option.
1029
- * @throws {RequiredError}
1030
- */
1031
- updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options) {
1032
- return localVarFp.updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options).then((request) => request(axios, basePath));
1033
- },
1034
- /**
1035
- * Endpoint for FoxFactory worker to update its status.
1036
- * @summary Update Worker Status
1037
- * @param {string} body
1038
- * @param {*} [options] Override http request option.
1039
- * @throws {RequiredError}
1040
- */
1041
- updateWorkerStatusFactoryUpdateStatusPost(body, options) {
1042
- return localVarFp.updateWorkerStatusFactoryUpdateStatusPost(body, options).then((request) => request(axios, basePath));
1043
- },
1044
- /**
1045
- * Upload an artifact zip file for a specific build task. This endpoint allows foxfactory workers to upload an artifact zip file, verifies its MD5 hash, and stores it in the appropriate directory. Parameters: task_id: The ID of the build task artifact: The artifact zip file to upload md5_hash: The expected MD5 hash of the artifact file
1046
- * @summary Upload Artifact
1047
- * @param {string} taskId
1048
- * @param {File} artifact
1049
- * @param {string} md5Hash
1050
- * @param {*} [options] Override http request option.
1051
- * @throws {RequiredError}
1052
- */
1053
- uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options) {
1054
- return localVarFp.uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options).then((request) => request(axios, basePath));
1055
- },
1056
- };
1057
- };
1058
- exports.FoxFactoryApiFactory = FoxFactoryApiFactory;
1059
- /**
1060
- * FoxFactoryApi - object-oriented interface
1061
- * @export
1062
- * @class FoxFactoryApi
1063
- * @extends {BaseAPI}
1064
- */
1065
- class FoxFactoryApi extends base_1.BaseAPI {
1066
- /**
1067
- * Cancels a build task given its identifier. The task\'s status is updated to indicate that it is in the process of cancellation. If the task with the specified ID is not found, a 404 HTTP exception is raised.
1068
- * @summary Cancel Task
1069
- * @param {string} taskId
1070
- * @param {*} [options] Override http request option.
1071
- * @throws {RequiredError}
1072
- * @memberof FoxFactoryApi
1073
- */
1074
- cancelTaskFactoryTaskIdCancelPost(taskId, options) {
1075
- return (0, exports.FoxFactoryApiFp)(this.configuration).cancelTaskFactoryTaskIdCancelPost(taskId, options).then((request) => request(this.axios, this.basePath));
1076
- }
1077
- /**
1078
- * Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised. Also deletes any associated artifact files.
1079
- * @summary Delete Task
1080
- * @param {string} taskId
1081
- * @param {*} [options] Override http request option.
1082
- * @throws {RequiredError}
1083
- * @memberof FoxFactoryApi
1084
- */
1085
- deleteTaskFactoryTaskIdDelete(taskId, options) {
1086
- return (0, exports.FoxFactoryApiFp)(this.configuration).deleteTaskFactoryTaskIdDelete(taskId, options).then((request) => request(this.axios, this.basePath));
1087
- }
1088
- /**
1089
- * Download the artifact file for a specific build task. This endpoint allows maintainers and foxfactory workers to download the artifact file associated with a build task. Parameters: task_id: The ID of the build task
1090
- * @summary Download Artifact
1091
- * @param {string} taskId
1092
- * @param {*} [options] Override http request option.
1093
- * @throws {RequiredError}
1094
- * @memberof FoxFactoryApi
1095
- */
1096
- downloadArtifactFactoryTaskIdArtifactGet(taskId, options) {
1097
- return (0, exports.FoxFactoryApiFp)(this.configuration).downloadArtifactFactoryTaskIdArtifactGet(taskId, options).then((request) => request(this.axios, this.basePath));
1098
- }
1099
- /**
1100
- * Endpoint for clients to get the current status of the worker. If the last update was longer than the defined timeout, worker is considered offline.
1101
- * @summary Factory Status
1102
- * @param {*} [options] Override http request option.
1103
- * @throws {RequiredError}
1104
- * @memberof FoxFactoryApi
1105
- */
1106
- factoryStatusFactoryStatusGet(options) {
1107
- return (0, exports.FoxFactoryApiFp)(this.configuration).factoryStatusFactoryStatusGet(options).then((request) => request(this.axios, this.basePath));
1108
- }
1109
- /**
1110
- * Retrieves the details of a specific build task. This endpoint allows a user to fetch detailed information about a build task by its ID. Access to this endpoint is restricted to users with the \'maintainer\' or \'foxworker\' roles. Depending on the user\'s roles, returned task details may differ. Admin users will receive all task details, while others will have some fields excluded.
1111
- * @summary Get Task
1112
- * @param {string} taskId
1113
- * @param {*} [options] Override http request option.
1114
- * @throws {RequiredError}
1115
- * @memberof FoxFactoryApi
1116
- */
1117
- getTaskFactoryTaskIdGet(taskId, options) {
1118
- return (0, exports.FoxFactoryApiFp)(this.configuration).getTaskFactoryTaskIdGet(taskId, options).then((request) => request(this.axios, this.basePath));
1119
- }
1120
- /**
1121
- * Get a list of all build tasks. This endpoint retrieves all build tasks from the database and returns them as a list of abbreviated responses. Parameters: device_id (ObjectId, optional): Filter tasks by device ID
1122
- * @summary List Tasks
1123
- * @param {string | null} [deviceId]
1124
- * @param {*} [options] Override http request option.
1125
- * @throws {RequiredError}
1126
- * @memberof FoxFactoryApi
1127
- */
1128
- listTasksFactoryGet(deviceId, options) {
1129
- return (0, exports.FoxFactoryApiFp)(this.configuration).listTasksFactoryGet(deviceId, options).then((request) => request(this.axios, this.basePath));
1130
- }
1131
- /**
1132
- * Handles the creation of a new build task including validations for the device existence and its connection to GitLab. It initializes a new task with a pending status and the required details, then saves it to the database before returning the task model.
1133
- * @summary New Task
1134
- * @param {NewBuildTaskBody} newBuildTaskBody
1135
- * @param {*} [options] Override http request option.
1136
- * @throws {RequiredError}
1137
- * @memberof FoxFactoryApi
1138
- */
1139
- newTaskFactoryPost(newBuildTaskBody, options) {
1140
- return (0, exports.FoxFactoryApiFp)(this.configuration).newTaskFactoryPost(newBuildTaskBody, options).then((request) => request(this.axios, this.basePath));
1141
- }
1142
- /**
1143
- * Updates an existing build task by its unique identifier. The function allows updates to the task\'s status and logs. If the task\'s status is set to a value indicating completion, the finished timestamp is also updated. Allowed only for foxworker users.
1144
- * @summary Update Task
1145
- * @param {string} taskId
1146
- * @param {TaskUpdateBody} taskUpdateBody
1147
- * @param {*} [options] Override http request option.
1148
- * @throws {RequiredError}
1149
- * @memberof FoxFactoryApi
1150
- */
1151
- updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options) {
1152
- return (0, exports.FoxFactoryApiFp)(this.configuration).updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options).then((request) => request(this.axios, this.basePath));
1153
- }
1154
- /**
1155
- * Endpoint for FoxFactory worker to update its status.
1156
- * @summary Update Worker Status
1157
- * @param {string} body
1158
- * @param {*} [options] Override http request option.
1159
- * @throws {RequiredError}
1160
- * @memberof FoxFactoryApi
1161
- */
1162
- updateWorkerStatusFactoryUpdateStatusPost(body, options) {
1163
- return (0, exports.FoxFactoryApiFp)(this.configuration).updateWorkerStatusFactoryUpdateStatusPost(body, options).then((request) => request(this.axios, this.basePath));
1164
- }
1165
- /**
1166
- * Upload an artifact zip file for a specific build task. This endpoint allows foxfactory workers to upload an artifact zip file, verifies its MD5 hash, and stores it in the appropriate directory. Parameters: task_id: The ID of the build task artifact: The artifact zip file to upload md5_hash: The expected MD5 hash of the artifact file
1167
- * @summary Upload Artifact
1168
- * @param {string} taskId
1169
- * @param {File} artifact
1170
- * @param {string} md5Hash
1171
- * @param {*} [options] Override http request option.
1172
- * @throws {RequiredError}
1173
- * @memberof FoxFactoryApi
1174
- */
1175
- uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options) {
1176
- return (0, exports.FoxFactoryApiFp)(this.configuration).uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options).then((request) => request(this.axios, this.basePath));
1177
- }
1178
- }
1179
- exports.FoxFactoryApi = FoxFactoryApi;
1180
- /**
1181
- * GitlabApi - axios parameter creator
1182
- * @export
1183
- */
1184
- const GitlabApiAxiosParamCreator = function (configuration) {
1185
- return {
1186
- /**
1187
- *
1188
- * @summary Device Add Gitlab Repo
1189
- * @param {string} deviceId
1190
- * @param {string} glProjectUrl
1191
- * @param {*} [options] Override http request option.
1192
- * @throws {RequiredError}
1193
- */
1194
- deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost: (deviceId_1, glProjectUrl_1, ...args_1) => __awaiter(this, [deviceId_1, glProjectUrl_1, ...args_1], void 0, function* (deviceId, glProjectUrl, options = {}) {
1195
- // verify required parameter 'deviceId' is not null or undefined
1196
- (0, common_1.assertParamExists)('deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost', 'deviceId', deviceId);
1197
- // verify required parameter 'glProjectUrl' is not null or undefined
1198
- (0, common_1.assertParamExists)('deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost', 'glProjectUrl', glProjectUrl);
1199
- const localVarPath = `/gitlab/device/{device_id}/gitlab`
1200
- .replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
1201
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1202
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1203
- let baseOptions;
1204
- if (configuration) {
1205
- baseOptions = configuration.baseOptions;
1206
- }
1207
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1208
- const localVarHeaderParameter = {};
1209
- const localVarQueryParameter = {};
1210
- if (glProjectUrl !== undefined) {
1211
- localVarQueryParameter['gl_project_url'] = glProjectUrl;
1212
- }
1213
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1214
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1215
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1216
- return {
1217
- url: (0, common_1.toPathString)(localVarUrlObj),
1218
- options: localVarRequestOptions,
1219
- };
1220
- }),
1221
- };
1222
- };
1223
- exports.GitlabApiAxiosParamCreator = GitlabApiAxiosParamCreator;
1224
- /**
1225
- * GitlabApi - functional programming interface
1226
- * @export
1227
- */
1228
- const GitlabApiFp = function (configuration) {
1229
- const localVarAxiosParamCreator = (0, exports.GitlabApiAxiosParamCreator)(configuration);
1230
- return {
1231
- /**
1232
- *
1233
- * @summary Device Add Gitlab Repo
1234
- * @param {string} deviceId
1235
- * @param {string} glProjectUrl
1236
- * @param {*} [options] Override http request option.
1237
- * @throws {RequiredError}
1238
- */
1239
- deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options) {
1240
- return __awaiter(this, void 0, void 0, function* () {
1241
- var _a, _b, _c;
1242
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options);
1243
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1244
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GitlabApi.deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1245
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1246
- });
1247
- },
1248
- };
1249
- };
1250
- exports.GitlabApiFp = GitlabApiFp;
1251
- /**
1252
- * GitlabApi - factory interface
1253
- * @export
1254
- */
1255
- const GitlabApiFactory = function (configuration, basePath, axios) {
1256
- const localVarFp = (0, exports.GitlabApiFp)(configuration);
1257
- return {
1258
- /**
1259
- *
1260
- * @summary Device Add Gitlab Repo
1261
- * @param {string} deviceId
1262
- * @param {string} glProjectUrl
1263
- * @param {*} [options] Override http request option.
1264
- * @throws {RequiredError}
1265
- */
1266
- deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options) {
1267
- return localVarFp.deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options).then((request) => request(axios, basePath));
1268
- },
1269
- };
1270
- };
1271
- exports.GitlabApiFactory = GitlabApiFactory;
1272
- /**
1273
- * GitlabApi - object-oriented interface
1274
- * @export
1275
- * @class GitlabApi
1276
- * @extends {BaseAPI}
1277
- */
1278
- class GitlabApi extends base_1.BaseAPI {
1279
- /**
1280
- *
1281
- * @summary Device Add Gitlab Repo
1282
- * @param {string} deviceId
1283
- * @param {string} glProjectUrl
1284
- * @param {*} [options] Override http request option.
1285
- * @throws {RequiredError}
1286
- * @memberof GitlabApi
1287
- */
1288
- deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options) {
1289
- return (0, exports.GitlabApiFp)(this.configuration).deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options).then((request) => request(this.axios, this.basePath));
1290
- }
1291
- }
1292
- exports.GitlabApi = GitlabApi;
1293
- /**
1294
- * InternalApi - axios parameter creator
1295
- * @export
1296
- */
1297
- const InternalApiAxiosParamCreator = function (configuration) {
1298
- return {
1299
- /**
1300
- * Change the password for a user.
1301
- * @summary Change Password
1302
- * @param {BodyChangePasswordProfileChangePasswordPost} bodyChangePasswordProfileChangePasswordPost
1303
- * @param {*} [options] Override http request option.
1304
- * @throws {RequiredError}
1305
- */
1306
- changePasswordProfileChangePasswordPost: (bodyChangePasswordProfileChangePasswordPost_1, ...args_1) => __awaiter(this, [bodyChangePasswordProfileChangePasswordPost_1, ...args_1], void 0, function* (bodyChangePasswordProfileChangePasswordPost, options = {}) {
1307
- // verify required parameter 'bodyChangePasswordProfileChangePasswordPost' is not null or undefined
1308
- (0, common_1.assertParamExists)('changePasswordProfileChangePasswordPost', 'bodyChangePasswordProfileChangePasswordPost', bodyChangePasswordProfileChangePasswordPost);
1309
- const localVarPath = `/profile/change_password`;
1310
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1311
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1312
- let baseOptions;
1313
- if (configuration) {
1314
- baseOptions = configuration.baseOptions;
1315
- }
1316
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1317
- const localVarHeaderParameter = {};
1318
- const localVarQueryParameter = {};
1319
- localVarHeaderParameter['Content-Type'] = 'application/json';
1320
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1321
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1322
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1323
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bodyChangePasswordProfileChangePasswordPost, localVarRequestOptions, configuration);
1324
- return {
1325
- url: (0, common_1.toPathString)(localVarUrlObj),
1326
- options: localVarRequestOptions,
1327
- };
1328
- }),
1329
- /**
1330
- * Delete release
1331
- * @summary Del Release
1332
- * @param {string} releaseId
1333
- * @param {*} [options] Override http request option.
1334
- * @throws {RequiredError}
1335
- */
1336
- delReleaseInternalReleasesReleaseIdDelete: (releaseId_1, ...args_1) => __awaiter(this, [releaseId_1, ...args_1], void 0, function* (releaseId, options = {}) {
1337
- // verify required parameter 'releaseId' is not null or undefined
1338
- (0, common_1.assertParamExists)('delReleaseInternalReleasesReleaseIdDelete', 'releaseId', releaseId);
1339
- const localVarPath = `/internal/releases/{release_id}`
1340
- .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
1341
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1342
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1343
- let baseOptions;
1344
- if (configuration) {
1345
- baseOptions = configuration.baseOptions;
1346
- }
1347
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1348
- const localVarHeaderParameter = {};
1349
- const localVarQueryParameter = {};
1350
- // authentication oauth2_password required
1351
- // oauth required
1352
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
1353
- // authentication bearer_auth required
1354
- // http bearer authentication required
1355
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1356
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1357
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1358
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1359
- return {
1360
- url: (0, common_1.toPathString)(localVarUrlObj),
1361
- options: localVarRequestOptions,
1362
- };
1363
- }),
1364
- /**
1365
- *
1366
- * @summary Delete User
1367
- * @param {string} userId
1368
- * @param {*} [options] Override http request option.
1369
- * @throws {RequiredError}
1370
- */
1371
- deleteUserInternalUsersUserIdDelete: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
1372
- // verify required parameter 'userId' is not null or undefined
1373
- (0, common_1.assertParamExists)('deleteUserInternalUsersUserIdDelete', 'userId', userId);
1374
- const localVarPath = `/internal/users/{user_id}`
1375
- .replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
1376
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1377
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1378
- let baseOptions;
1379
- if (configuration) {
1380
- baseOptions = configuration.baseOptions;
1381
- }
1382
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1383
- const localVarHeaderParameter = {};
1384
- const localVarQueryParameter = {};
1385
- // authentication oauth2_password required
1386
- // oauth required
1387
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
1388
- // authentication bearer_auth required
1389
- // http bearer authentication required
1390
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1391
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1392
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1393
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1394
- return {
1395
- url: (0, common_1.toPathString)(localVarUrlObj),
1396
- options: localVarRequestOptions,
1397
- };
1398
- }),
1399
- /**
1400
- * Edit Release information
1401
- * @summary Edit Release
1402
- * @param {string} releaseId
1403
- * @param {ReleaseUpdateBody} releaseUpdateBody
1404
- * @param {*} [options] Override http request option.
1405
- * @throws {RequiredError}
1406
- */
1407
- editReleaseInternalReleasesReleaseIdPut: (releaseId_1, releaseUpdateBody_1, ...args_1) => __awaiter(this, [releaseId_1, releaseUpdateBody_1, ...args_1], void 0, function* (releaseId, releaseUpdateBody, options = {}) {
1408
- // verify required parameter 'releaseId' is not null or undefined
1409
- (0, common_1.assertParamExists)('editReleaseInternalReleasesReleaseIdPut', 'releaseId', releaseId);
1410
- // verify required parameter 'releaseUpdateBody' is not null or undefined
1411
- (0, common_1.assertParamExists)('editReleaseInternalReleasesReleaseIdPut', 'releaseUpdateBody', releaseUpdateBody);
1412
- const localVarPath = `/internal/releases/{release_id}`
1413
- .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
1414
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1415
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1416
- let baseOptions;
1417
- if (configuration) {
1418
- baseOptions = configuration.baseOptions;
1419
- }
1420
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1421
- const localVarHeaderParameter = {};
1422
- const localVarQueryParameter = {};
1423
- // authentication oauth2_password required
1424
- // oauth required
1425
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
1426
- // authentication bearer_auth required
1427
- // http bearer authentication required
1428
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1429
- localVarHeaderParameter['Content-Type'] = 'application/json';
1430
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1431
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1432
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1433
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(releaseUpdateBody, localVarRequestOptions, configuration);
1434
- return {
1435
- url: (0, common_1.toPathString)(localVarUrlObj),
1436
- options: localVarRequestOptions,
1437
- };
1438
- }),
1439
- /**
1440
- *
1441
- * @summary Get Device Info
1442
- * @param {string} deviceId
1443
- * @param {*} [options] Override http request option.
1444
- * @throws {RequiredError}
1445
- */
1446
- getDeviceInfoInternalDevicesDeviceIdGet: (deviceId_1, ...args_1) => __awaiter(this, [deviceId_1, ...args_1], void 0, function* (deviceId, options = {}) {
1447
- // verify required parameter 'deviceId' is not null or undefined
1448
- (0, common_1.assertParamExists)('getDeviceInfoInternalDevicesDeviceIdGet', 'deviceId', deviceId);
1449
- const localVarPath = `/internal/devices/{device_id}`
1450
- .replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
1451
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1452
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1453
- let baseOptions;
1454
- if (configuration) {
1455
- baseOptions = configuration.baseOptions;
1456
- }
1457
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1458
- const localVarHeaderParameter = {};
1459
- const localVarQueryParameter = {};
1460
- // authentication oauth2_password required
1461
- // oauth required
1462
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
1463
- // authentication bearer_auth required
1464
- // http bearer authentication required
1465
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1466
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1467
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1468
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1469
- return {
1470
- url: (0, common_1.toPathString)(localVarUrlObj),
1471
- options: localVarRequestOptions,
1472
- };
1473
- }),
1474
- /**
1475
- * Get a paginated list of logs with optional filtering.
1476
- * @summary Get Logs
1477
- * @param {number} [page]
1478
- * @param {number} [perPage]
1479
- * @param {string | null} [deviceId]
1480
- * @param {string | null} [releaseId]
1481
- * @param {string | null} [userId]
1482
- * @param {boolean | null} [hideVerbose]
1483
- * @param {*} [options] Override http request option.
1484
- * @throws {RequiredError}
1485
- */
1486
- getLogsInternalLogsGet: (page_1, perPage_1, deviceId_1, releaseId_1, userId_1, hideVerbose_1, ...args_1) => __awaiter(this, [page_1, perPage_1, deviceId_1, releaseId_1, userId_1, hideVerbose_1, ...args_1], void 0, function* (page, perPage, deviceId, releaseId, userId, hideVerbose, options = {}) {
1487
- const localVarPath = `/internal/logs/`;
1488
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1489
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1490
- let baseOptions;
1491
- if (configuration) {
1492
- baseOptions = configuration.baseOptions;
1493
- }
1494
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1495
- const localVarHeaderParameter = {};
1496
- const localVarQueryParameter = {};
1497
- // authentication oauth2_password required
1498
- // oauth required
1499
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
1500
- // authentication bearer_auth required
1501
- // http bearer authentication required
1502
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1503
- if (page !== undefined) {
1504
- localVarQueryParameter['page'] = page;
1505
- }
1506
- if (perPage !== undefined) {
1507
- localVarQueryParameter['per_page'] = perPage;
1508
- }
1509
- if (deviceId !== undefined) {
1510
- localVarQueryParameter['device_id'] = deviceId;
1511
- }
1512
- if (releaseId !== undefined) {
1513
- localVarQueryParameter['release_id'] = releaseId;
1514
- }
1515
- if (userId !== undefined) {
1516
- localVarQueryParameter['user_id'] = userId;
1517
- }
1518
- if (hideVerbose !== undefined) {
1519
- localVarQueryParameter['hide_verbose'] = hideVerbose;
1520
- }
1521
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1522
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1523
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1524
- return {
1525
- url: (0, common_1.toPathString)(localVarUrlObj),
1526
- options: localVarRequestOptions,
1527
- };
1528
- }),
1529
- /**
1530
- * Get release information
1531
- * @summary Get Release Info
1532
- * @param {string} releaseId
1533
- * @param {*} [options] Override http request option.
1534
- * @throws {RequiredError}
1535
- */
1536
- getReleaseInfoInternalReleasesReleaseIdGet: (releaseId_1, ...args_1) => __awaiter(this, [releaseId_1, ...args_1], void 0, function* (releaseId, options = {}) {
1537
- // verify required parameter 'releaseId' is not null or undefined
1538
- (0, common_1.assertParamExists)('getReleaseInfoInternalReleasesReleaseIdGet', 'releaseId', releaseId);
1539
- const localVarPath = `/internal/releases/{release_id}`
1540
- .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
1541
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1542
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1543
- let baseOptions;
1544
- if (configuration) {
1545
- baseOptions = configuration.baseOptions;
1546
- }
1547
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1548
- const localVarHeaderParameter = {};
1549
- const localVarQueryParameter = {};
1550
- // authentication oauth2_password required
1551
- // oauth required
1552
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
1553
- // authentication bearer_auth required
1554
- // http bearer authentication required
1555
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1556
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1557
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1558
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1559
- return {
1560
- url: (0, common_1.toPathString)(localVarUrlObj),
1561
- options: localVarRequestOptions,
1562
- };
1563
- }),
1564
- /**
1565
- * Download release ZIP directly
1566
- * @summary Get Release Zip
1567
- * @param {string} releaseId
1568
- * @param {*} [options] Override http request option.
1569
- * @throws {RequiredError}
1570
- */
1571
- getReleaseZipInternalReleasesReleaseIdDlGet: (releaseId_1, ...args_1) => __awaiter(this, [releaseId_1, ...args_1], void 0, function* (releaseId, options = {}) {
1572
- // verify required parameter 'releaseId' is not null or undefined
1573
- (0, common_1.assertParamExists)('getReleaseZipInternalReleasesReleaseIdDlGet', 'releaseId', releaseId);
1574
- const localVarPath = `/internal/releases/{release_id}/dl`
1575
- .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
1576
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1577
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1578
- let baseOptions;
1579
- if (configuration) {
1580
- baseOptions = configuration.baseOptions;
1581
- }
1582
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1583
- const localVarHeaderParameter = {};
1584
- const localVarQueryParameter = {};
1585
- // authentication oauth2_password required
1586
- // oauth required
1587
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
1588
- // authentication bearer_auth required
1589
- // http bearer authentication required
1590
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1591
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1592
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1593
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1594
- return {
1595
- url: (0, common_1.toPathString)(localVarUrlObj),
1596
- options: localVarRequestOptions,
1597
- };
1598
- }),
1599
- /**
1600
- *
1601
- * @summary Get User By Id
1602
- * @param {string} userId
1603
- * @param {*} [options] Override http request option.
1604
- * @throws {RequiredError}
1605
- */
1606
- getUserByIdInternalUsersUserIdGet: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
1607
- // verify required parameter 'userId' is not null or undefined
1608
- (0, common_1.assertParamExists)('getUserByIdInternalUsersUserIdGet', 'userId', userId);
1609
- const localVarPath = `/internal/users/{user_id}`
1610
- .replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
1611
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1612
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1613
- let baseOptions;
1614
- if (configuration) {
1615
- baseOptions = configuration.baseOptions;
1616
- }
1617
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1618
- const localVarHeaderParameter = {};
1619
- const localVarQueryParameter = {};
1620
- // authentication oauth2_password required
1621
- // oauth required
1622
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
1623
- // authentication bearer_auth required
1624
- // http bearer authentication required
1625
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1626
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1627
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1628
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1629
- return {
1630
- url: (0, common_1.toPathString)(localVarUrlObj),
1631
- options: localVarRequestOptions,
1632
- };
1633
- }),
1634
- /**
1635
- *
1636
- * @summary List Users
1637
- * @param {*} [options] Override http request option.
1638
- * @throws {RequiredError}
1639
- */
1640
- listUsersInternalUsersGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1641
- const localVarPath = `/internal/users/`;
1642
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1643
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1644
- let baseOptions;
1645
- if (configuration) {
1646
- baseOptions = configuration.baseOptions;
1647
- }
1648
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1649
- const localVarHeaderParameter = {};
1650
- const localVarQueryParameter = {};
1651
- // authentication oauth2_password required
1652
- // oauth required
1653
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
1654
- // authentication bearer_auth required
1655
- // http bearer authentication required
1656
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1657
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1658
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1659
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1660
- return {
1661
- url: (0, common_1.toPathString)(localVarUrlObj),
1662
- options: localVarRequestOptions,
1663
- };
1664
- }),
1665
- /**
1666
- * OAuth2 compatible token login, get an access token for future requests
1667
- * @summary Login Oauth
1668
- * @param {string} username
1669
- * @param {string} password
1670
- * @param {number} [minTime]
1671
- * @param {number} [maxTime]
1672
- * @param {string | null} [grantType]
1673
- * @param {string} [scope]
1674
- * @param {string | null} [clientId]
1675
- * @param {string | null} [clientSecret]
1676
- * @param {*} [options] Override http request option.
1677
- * @throws {RequiredError}
1678
- */
1679
- loginOauthAuthLoginPost: (username_1, password_1, minTime_1, maxTime_1, grantType_1, scope_1, clientId_1, clientSecret_1, ...args_1) => __awaiter(this, [username_1, password_1, minTime_1, maxTime_1, grantType_1, scope_1, clientId_1, clientSecret_1, ...args_1], void 0, function* (username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options = {}) {
1680
- // verify required parameter 'username' is not null or undefined
1681
- (0, common_1.assertParamExists)('loginOauthAuthLoginPost', 'username', username);
1682
- // verify required parameter 'password' is not null or undefined
1683
- (0, common_1.assertParamExists)('loginOauthAuthLoginPost', 'password', password);
1684
- const localVarPath = `/auth/login`;
1685
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1686
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1687
- let baseOptions;
1688
- if (configuration) {
1689
- baseOptions = configuration.baseOptions;
1690
- }
1691
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1692
- const localVarHeaderParameter = {};
1693
- const localVarQueryParameter = {};
1694
- const localVarFormParams = new URLSearchParams();
1695
- // authentication oauth2_password required
1696
- // oauth required
1697
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
1698
- // authentication bearer_auth required
1699
- // http bearer authentication required
1700
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1701
- if (minTime !== undefined) {
1702
- localVarQueryParameter['min_time'] = minTime;
1703
- }
1704
- if (maxTime !== undefined) {
1705
- localVarQueryParameter['max_time'] = maxTime;
1706
- }
1707
- if (grantType !== undefined) {
1708
- localVarFormParams.set('grant_type', grantType);
1709
- }
1710
- if (username !== undefined) {
1711
- localVarFormParams.set('username', username);
1712
- }
1713
- if (password !== undefined) {
1714
- localVarFormParams.set('password', password);
1715
- }
1716
- if (scope !== undefined) {
1717
- localVarFormParams.set('scope', scope);
1718
- }
1719
- if (clientId !== undefined) {
1720
- localVarFormParams.set('client_id', clientId);
1721
- }
1722
- if (clientSecret !== undefined) {
1723
- localVarFormParams.set('client_secret', clientSecret);
1724
- }
1725
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
1726
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1727
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1728
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1729
- localVarRequestOptions.data = localVarFormParams.toString();
1730
- return {
1731
- url: (0, common_1.toPathString)(localVarUrlObj),
1732
- options: localVarRequestOptions,
1733
- };
1734
- }),
1735
- /**
1736
- *
1737
- * @summary Logout
1738
- * @param {string} body
1739
- * @param {*} [options] Override http request option.
1740
- * @throws {RequiredError}
1741
- */
1742
- logoutAuthLogoutPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
1743
- // verify required parameter 'body' is not null or undefined
1744
- (0, common_1.assertParamExists)('logoutAuthLogoutPost', 'body', body);
1745
- const localVarPath = `/auth/logout`;
1746
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1747
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1748
- let baseOptions;
1749
- if (configuration) {
1750
- baseOptions = configuration.baseOptions;
1751
- }
1752
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1753
- const localVarHeaderParameter = {};
1754
- const localVarQueryParameter = {};
1755
- // authentication oauth2_password required
1756
- // oauth required
1757
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
1758
- // authentication bearer_auth required
1759
- // http bearer authentication required
1760
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1761
- localVarHeaderParameter['Content-Type'] = 'application/json';
1762
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1763
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1764
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1765
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
1766
- return {
1767
- url: (0, common_1.toPathString)(localVarUrlObj),
1768
- options: localVarRequestOptions,
1769
- };
1770
- }),
1771
- /**
1772
- *
1773
- * @summary New Device
1774
- * @param {NewDeviceBody} newDeviceBody
1775
- * @param {*} [options] Override http request option.
1776
- * @throws {RequiredError}
1777
- */
1778
- newDeviceInternalDevicesPost: (newDeviceBody_1, ...args_1) => __awaiter(this, [newDeviceBody_1, ...args_1], void 0, function* (newDeviceBody, options = {}) {
1779
- // verify required parameter 'newDeviceBody' is not null or undefined
1780
- (0, common_1.assertParamExists)('newDeviceInternalDevicesPost', 'newDeviceBody', newDeviceBody);
1781
- const localVarPath = `/internal/devices/`;
1782
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1783
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1784
- let baseOptions;
1785
- if (configuration) {
1786
- baseOptions = configuration.baseOptions;
1787
- }
1788
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1789
- const localVarHeaderParameter = {};
1790
- const localVarQueryParameter = {};
1791
- // authentication oauth2_password required
1792
- // oauth required
1793
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
1794
- // authentication bearer_auth required
1795
- // http bearer authentication required
1796
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1797
- localVarHeaderParameter['Content-Type'] = 'application/json';
1798
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1799
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1800
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1801
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(newDeviceBody, localVarRequestOptions, configuration);
1802
- return {
1803
- url: (0, common_1.toPathString)(localVarUrlObj),
1804
- options: localVarRequestOptions,
1805
- };
1806
- }),
1807
- /**
1808
- *
1809
- * @summary New Release
1810
- * @param {string} deviceId
1811
- * @param {File} releaseZip
1812
- * @param {string} md5
1813
- * @param {Array<string>} changelog
1814
- * @param {Array<string>} [bugs]
1815
- * @param {string | null} [notes]
1816
- * @param {boolean} [force]
1817
- * @param {*} [options] Override http request option.
1818
- * @throws {RequiredError}
1819
- */
1820
- newReleaseInternalReleasesPost: (deviceId_1, releaseZip_1, md5_1, changelog_1, bugs_1, notes_1, force_1, ...args_1) => __awaiter(this, [deviceId_1, releaseZip_1, md5_1, changelog_1, bugs_1, notes_1, force_1, ...args_1], void 0, function* (deviceId, releaseZip, md5, changelog, bugs, notes, force, options = {}) {
1821
- // verify required parameter 'deviceId' is not null or undefined
1822
- (0, common_1.assertParamExists)('newReleaseInternalReleasesPost', 'deviceId', deviceId);
1823
- // verify required parameter 'releaseZip' is not null or undefined
1824
- (0, common_1.assertParamExists)('newReleaseInternalReleasesPost', 'releaseZip', releaseZip);
1825
- // verify required parameter 'md5' is not null or undefined
1826
- (0, common_1.assertParamExists)('newReleaseInternalReleasesPost', 'md5', md5);
1827
- // verify required parameter 'changelog' is not null or undefined
1828
- (0, common_1.assertParamExists)('newReleaseInternalReleasesPost', 'changelog', changelog);
1829
- const localVarPath = `/internal/releases/`;
1830
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1831
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1832
- let baseOptions;
1833
- if (configuration) {
1834
- baseOptions = configuration.baseOptions;
1835
- }
1836
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1837
- const localVarHeaderParameter = {};
1838
- const localVarQueryParameter = {};
1839
- const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
1840
- // authentication oauth2_password required
1841
- // oauth required
1842
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
1843
- // authentication bearer_auth required
1844
- // http bearer authentication required
1845
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1846
- if (deviceId !== undefined) {
1847
- localVarFormParams.append('device_id', deviceId);
1848
- }
1849
- if (releaseZip !== undefined) {
1850
- localVarFormParams.append('release_zip', releaseZip);
1851
- }
1852
- if (md5 !== undefined) {
1853
- localVarFormParams.append('md5', md5);
1854
- }
1855
- if (changelog) {
1856
- localVarFormParams.append('changelog', changelog.join(base_1.COLLECTION_FORMATS.csv));
1857
- }
1858
- if (bugs) {
1859
- localVarFormParams.append('bugs', bugs.join(base_1.COLLECTION_FORMATS.csv));
1860
- }
1861
- if (notes !== undefined) {
1862
- localVarFormParams.append('notes', notes);
1863
- }
1864
- if (force !== undefined) {
1865
- localVarFormParams.append('force', String(force));
1866
- }
1867
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
1868
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1869
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1870
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1871
- localVarRequestOptions.data = localVarFormParams;
1872
- return {
1873
- url: (0, common_1.toPathString)(localVarUrlObj),
1874
- options: localVarRequestOptions,
1875
- };
1876
- }),
1877
- /**
1878
- *
1879
- * @summary Renew
1880
- * @param {string} body
1881
- * @param {*} [options] Override http request option.
1882
- * @throws {RequiredError}
1883
- */
1884
- renewAuthRenewPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
1885
- // verify required parameter 'body' is not null or undefined
1886
- (0, common_1.assertParamExists)('renewAuthRenewPost', 'body', body);
1887
- const localVarPath = `/auth/renew`;
1888
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1889
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1890
- let baseOptions;
1891
- if (configuration) {
1892
- baseOptions = configuration.baseOptions;
1893
- }
1894
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1895
- const localVarHeaderParameter = {};
1896
- const localVarQueryParameter = {};
1897
- // authentication oauth2_password required
1898
- // oauth required
1899
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
1900
- // authentication bearer_auth required
1901
- // http bearer authentication required
1902
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1903
- localVarHeaderParameter['Content-Type'] = 'application/json';
1904
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1905
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1906
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1907
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
1908
- return {
1909
- url: (0, common_1.toPathString)(localVarUrlObj),
1910
- options: localVarRequestOptions,
1911
- };
1912
- }),
1913
- /**
1914
- *
1915
- * @summary Update Device
1916
- * @param {string} deviceId
1917
- * @param {DeviceUpdateBody} deviceUpdateBody
1918
- * @param {*} [options] Override http request option.
1919
- * @throws {RequiredError}
1920
- */
1921
- updateDeviceInternalDevicesDeviceIdPut: (deviceId_1, deviceUpdateBody_1, ...args_1) => __awaiter(this, [deviceId_1, deviceUpdateBody_1, ...args_1], void 0, function* (deviceId, deviceUpdateBody, options = {}) {
1922
- // verify required parameter 'deviceId' is not null or undefined
1923
- (0, common_1.assertParamExists)('updateDeviceInternalDevicesDeviceIdPut', 'deviceId', deviceId);
1924
- // verify required parameter 'deviceUpdateBody' is not null or undefined
1925
- (0, common_1.assertParamExists)('updateDeviceInternalDevicesDeviceIdPut', 'deviceUpdateBody', deviceUpdateBody);
1926
- const localVarPath = `/internal/devices/{device_id}`
1927
- .replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
1928
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1929
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1930
- let baseOptions;
1931
- if (configuration) {
1932
- baseOptions = configuration.baseOptions;
1933
- }
1934
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1935
- const localVarHeaderParameter = {};
1936
- const localVarQueryParameter = {};
1937
- // authentication oauth2_password required
1938
- // oauth required
1939
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
1940
- // authentication bearer_auth required
1941
- // http bearer authentication required
1942
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1943
- localVarHeaderParameter['Content-Type'] = 'application/json';
1944
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1945
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1946
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1947
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deviceUpdateBody, localVarRequestOptions, configuration);
1948
- return {
1949
- url: (0, common_1.toPathString)(localVarUrlObj),
1950
- options: localVarRequestOptions,
1951
- };
1952
- }),
1953
- /**
1954
- *
1955
- * @summary Update User
1956
- * @param {string} userId
1957
- * @param {UserUpdateBody} userUpdateBody
1958
- * @param {*} [options] Override http request option.
1959
- * @throws {RequiredError}
1960
- */
1961
- updateUserInternalUsersUserIdPut: (userId_1, userUpdateBody_1, ...args_1) => __awaiter(this, [userId_1, userUpdateBody_1, ...args_1], void 0, function* (userId, userUpdateBody, options = {}) {
1962
- // verify required parameter 'userId' is not null or undefined
1963
- (0, common_1.assertParamExists)('updateUserInternalUsersUserIdPut', 'userId', userId);
1964
- // verify required parameter 'userUpdateBody' is not null or undefined
1965
- (0, common_1.assertParamExists)('updateUserInternalUsersUserIdPut', 'userUpdateBody', userUpdateBody);
1966
- const localVarPath = `/internal/users/{user_id}`
1967
- .replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
1968
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1969
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1970
- let baseOptions;
1971
- if (configuration) {
1972
- baseOptions = configuration.baseOptions;
1973
- }
1974
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1975
- const localVarHeaderParameter = {};
1976
- const localVarQueryParameter = {};
1977
- // authentication oauth2_password required
1978
- // oauth required
1979
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
1980
- // authentication bearer_auth required
1981
- // http bearer authentication required
1982
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1983
- localVarHeaderParameter['Content-Type'] = 'application/json';
1984
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1985
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1986
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1987
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userUpdateBody, localVarRequestOptions, configuration);
1988
- return {
1989
- url: (0, common_1.toPathString)(localVarUrlObj),
1990
- options: localVarRequestOptions,
1991
- };
1992
- }),
1993
- };
1994
- };
1995
- exports.InternalApiAxiosParamCreator = InternalApiAxiosParamCreator;
1996
- /**
1997
- * InternalApi - functional programming interface
1998
- * @export
1999
- */
2000
- const InternalApiFp = function (configuration) {
2001
- const localVarAxiosParamCreator = (0, exports.InternalApiAxiosParamCreator)(configuration);
2002
- return {
2003
- /**
2004
- * Change the password for a user.
2005
- * @summary Change Password
2006
- * @param {BodyChangePasswordProfileChangePasswordPost} bodyChangePasswordProfileChangePasswordPost
2007
- * @param {*} [options] Override http request option.
2008
- * @throws {RequiredError}
2009
- */
2010
- changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options) {
2011
- return __awaiter(this, void 0, void 0, function* () {
2012
- var _a, _b, _c;
2013
- const localVarAxiosArgs = yield localVarAxiosParamCreator.changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options);
2014
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2015
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InternalApi.changePasswordProfileChangePasswordPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2016
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2017
- });
2018
- },
2019
- /**
2020
- * Delete release
2021
- * @summary Del Release
2022
- * @param {string} releaseId
2023
- * @param {*} [options] Override http request option.
2024
- * @throws {RequiredError}
2025
- */
2026
- delReleaseInternalReleasesReleaseIdDelete(releaseId, options) {
2027
- return __awaiter(this, void 0, void 0, function* () {
2028
- var _a, _b, _c;
2029
- const localVarAxiosArgs = yield localVarAxiosParamCreator.delReleaseInternalReleasesReleaseIdDelete(releaseId, options);
2030
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2031
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InternalApi.delReleaseInternalReleasesReleaseIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2032
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2033
- });
2034
- },
2035
- /**
2036
- *
2037
- * @summary Delete User
2038
- * @param {string} userId
2039
- * @param {*} [options] Override http request option.
2040
- * @throws {RequiredError}
2041
- */
2042
- deleteUserInternalUsersUserIdDelete(userId, options) {
2043
- return __awaiter(this, void 0, void 0, function* () {
2044
- var _a, _b, _c;
2045
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteUserInternalUsersUserIdDelete(userId, options);
2046
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2047
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InternalApi.deleteUserInternalUsersUserIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2048
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2049
- });
2050
- },
2051
- /**
2052
- * Edit Release information
2053
- * @summary Edit Release
2054
- * @param {string} releaseId
2055
- * @param {ReleaseUpdateBody} releaseUpdateBody
2056
- * @param {*} [options] Override http request option.
2057
- * @throws {RequiredError}
2058
- */
2059
- editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options) {
2060
- return __awaiter(this, void 0, void 0, function* () {
2061
- var _a, _b, _c;
2062
- const localVarAxiosArgs = yield localVarAxiosParamCreator.editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options);
2063
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2064
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InternalApi.editReleaseInternalReleasesReleaseIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2065
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2066
- });
2067
- },
2068
- /**
2069
- *
2070
- * @summary Get Device Info
2071
- * @param {string} deviceId
2072
- * @param {*} [options] Override http request option.
2073
- * @throws {RequiredError}
2074
- */
2075
- getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options) {
2076
- return __awaiter(this, void 0, void 0, function* () {
2077
- var _a, _b, _c;
2078
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options);
2079
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2080
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InternalApi.getDeviceInfoInternalDevicesDeviceIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2081
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2082
- });
2083
- },
2084
- /**
2085
- * Get a paginated list of logs with optional filtering.
2086
- * @summary Get Logs
2087
- * @param {number} [page]
2088
- * @param {number} [perPage]
2089
- * @param {string | null} [deviceId]
2090
- * @param {string | null} [releaseId]
2091
- * @param {string | null} [userId]
2092
- * @param {boolean | null} [hideVerbose]
2093
- * @param {*} [options] Override http request option.
2094
- * @throws {RequiredError}
2095
- */
2096
- getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options) {
2097
- return __awaiter(this, void 0, void 0, function* () {
2098
- var _a, _b, _c;
2099
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options);
2100
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2101
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InternalApi.getLogsInternalLogsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2102
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2103
- });
2104
- },
2105
- /**
2106
- * Get release information
2107
- * @summary Get Release Info
2108
- * @param {string} releaseId
2109
- * @param {*} [options] Override http request option.
2110
- * @throws {RequiredError}
2111
- */
2112
- getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options) {
2113
- return __awaiter(this, void 0, void 0, function* () {
2114
- var _a, _b, _c;
2115
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options);
2116
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2117
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InternalApi.getReleaseInfoInternalReleasesReleaseIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2118
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2119
- });
2120
- },
2121
- /**
2122
- * Download release ZIP directly
2123
- * @summary Get Release Zip
2124
- * @param {string} releaseId
2125
- * @param {*} [options] Override http request option.
2126
- * @throws {RequiredError}
2127
- */
2128
- getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options) {
2129
- return __awaiter(this, void 0, void 0, function* () {
2130
- var _a, _b, _c;
2131
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options);
2132
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2133
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InternalApi.getReleaseZipInternalReleasesReleaseIdDlGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2134
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2135
- });
2136
- },
2137
- /**
2138
- *
2139
- * @summary Get User By Id
2140
- * @param {string} userId
2141
- * @param {*} [options] Override http request option.
2142
- * @throws {RequiredError}
2143
- */
2144
- getUserByIdInternalUsersUserIdGet(userId, options) {
2145
- return __awaiter(this, void 0, void 0, function* () {
2146
- var _a, _b, _c;
2147
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserByIdInternalUsersUserIdGet(userId, options);
2148
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2149
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InternalApi.getUserByIdInternalUsersUserIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2150
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2151
- });
2152
- },
2153
- /**
2154
- *
2155
- * @summary List Users
2156
- * @param {*} [options] Override http request option.
2157
- * @throws {RequiredError}
2158
- */
2159
- listUsersInternalUsersGet(options) {
2160
- return __awaiter(this, void 0, void 0, function* () {
2161
- var _a, _b, _c;
2162
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsersInternalUsersGet(options);
2163
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2164
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InternalApi.listUsersInternalUsersGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2165
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2166
- });
2167
- },
2168
- /**
2169
- * OAuth2 compatible token login, get an access token for future requests
2170
- * @summary Login Oauth
2171
- * @param {string} username
2172
- * @param {string} password
2173
- * @param {number} [minTime]
2174
- * @param {number} [maxTime]
2175
- * @param {string | null} [grantType]
2176
- * @param {string} [scope]
2177
- * @param {string | null} [clientId]
2178
- * @param {string | null} [clientSecret]
2179
- * @param {*} [options] Override http request option.
2180
- * @throws {RequiredError}
2181
- */
2182
- loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options) {
2183
- return __awaiter(this, void 0, void 0, function* () {
2184
- var _a, _b, _c;
2185
- const localVarAxiosArgs = yield localVarAxiosParamCreator.loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options);
2186
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2187
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InternalApi.loginOauthAuthLoginPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2188
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2189
- });
2190
- },
2191
- /**
2192
- *
2193
- * @summary Logout
2194
- * @param {string} body
2195
- * @param {*} [options] Override http request option.
2196
- * @throws {RequiredError}
2197
- */
2198
- logoutAuthLogoutPost(body, options) {
2199
- return __awaiter(this, void 0, void 0, function* () {
2200
- var _a, _b, _c;
2201
- const localVarAxiosArgs = yield localVarAxiosParamCreator.logoutAuthLogoutPost(body, options);
2202
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2203
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InternalApi.logoutAuthLogoutPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2204
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2205
- });
2206
- },
2207
- /**
2208
- *
2209
- * @summary New Device
2210
- * @param {NewDeviceBody} newDeviceBody
2211
- * @param {*} [options] Override http request option.
2212
- * @throws {RequiredError}
2213
- */
2214
- newDeviceInternalDevicesPost(newDeviceBody, options) {
2215
- return __awaiter(this, void 0, void 0, function* () {
2216
- var _a, _b, _c;
2217
- const localVarAxiosArgs = yield localVarAxiosParamCreator.newDeviceInternalDevicesPost(newDeviceBody, options);
2218
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2219
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InternalApi.newDeviceInternalDevicesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2220
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2221
- });
2222
- },
2223
- /**
2224
- *
2225
- * @summary New Release
2226
- * @param {string} deviceId
2227
- * @param {File} releaseZip
2228
- * @param {string} md5
2229
- * @param {Array<string>} changelog
2230
- * @param {Array<string>} [bugs]
2231
- * @param {string | null} [notes]
2232
- * @param {boolean} [force]
2233
- * @param {*} [options] Override http request option.
2234
- * @throws {RequiredError}
2235
- */
2236
- newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options) {
2237
- return __awaiter(this, void 0, void 0, function* () {
2238
- var _a, _b, _c;
2239
- const localVarAxiosArgs = yield localVarAxiosParamCreator.newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options);
2240
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2241
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InternalApi.newReleaseInternalReleasesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2242
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2243
- });
2244
- },
2245
- /**
2246
- *
2247
- * @summary Renew
2248
- * @param {string} body
2249
- * @param {*} [options] Override http request option.
2250
- * @throws {RequiredError}
2251
- */
2252
- renewAuthRenewPost(body, options) {
2253
- return __awaiter(this, void 0, void 0, function* () {
2254
- var _a, _b, _c;
2255
- const localVarAxiosArgs = yield localVarAxiosParamCreator.renewAuthRenewPost(body, options);
2256
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2257
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InternalApi.renewAuthRenewPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2258
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2259
- });
2260
- },
2261
- /**
2262
- *
2263
- * @summary Update Device
2264
- * @param {string} deviceId
2265
- * @param {DeviceUpdateBody} deviceUpdateBody
2266
- * @param {*} [options] Override http request option.
2267
- * @throws {RequiredError}
2268
- */
2269
- updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options) {
2270
- return __awaiter(this, void 0, void 0, function* () {
2271
- var _a, _b, _c;
2272
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options);
2273
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2274
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InternalApi.updateDeviceInternalDevicesDeviceIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2275
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2276
- });
2277
- },
2278
- /**
2279
- *
2280
- * @summary Update User
2281
- * @param {string} userId
2282
- * @param {UserUpdateBody} userUpdateBody
2283
- * @param {*} [options] Override http request option.
2284
- * @throws {RequiredError}
2285
- */
2286
- updateUserInternalUsersUserIdPut(userId, userUpdateBody, options) {
2287
- return __awaiter(this, void 0, void 0, function* () {
2288
- var _a, _b, _c;
2289
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserInternalUsersUserIdPut(userId, userUpdateBody, options);
2290
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2291
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InternalApi.updateUserInternalUsersUserIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2292
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2293
- });
2294
- },
2295
- };
2296
- };
2297
- exports.InternalApiFp = InternalApiFp;
2298
- /**
2299
- * InternalApi - factory interface
2300
- * @export
2301
- */
2302
- const InternalApiFactory = function (configuration, basePath, axios) {
2303
- const localVarFp = (0, exports.InternalApiFp)(configuration);
2304
- return {
2305
- /**
2306
- * Change the password for a user.
2307
- * @summary Change Password
2308
- * @param {BodyChangePasswordProfileChangePasswordPost} bodyChangePasswordProfileChangePasswordPost
2309
- * @param {*} [options] Override http request option.
2310
- * @throws {RequiredError}
2311
- */
2312
- changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options) {
2313
- return localVarFp.changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options).then((request) => request(axios, basePath));
2314
- },
2315
- /**
2316
- * Delete release
2317
- * @summary Del Release
2318
- * @param {string} releaseId
2319
- * @param {*} [options] Override http request option.
2320
- * @throws {RequiredError}
2321
- */
2322
- delReleaseInternalReleasesReleaseIdDelete(releaseId, options) {
2323
- return localVarFp.delReleaseInternalReleasesReleaseIdDelete(releaseId, options).then((request) => request(axios, basePath));
2324
- },
2325
- /**
2326
- *
2327
- * @summary Delete User
2328
- * @param {string} userId
2329
- * @param {*} [options] Override http request option.
2330
- * @throws {RequiredError}
2331
- */
2332
- deleteUserInternalUsersUserIdDelete(userId, options) {
2333
- return localVarFp.deleteUserInternalUsersUserIdDelete(userId, options).then((request) => request(axios, basePath));
2334
- },
2335
- /**
2336
- * Edit Release information
2337
- * @summary Edit Release
2338
- * @param {string} releaseId
2339
- * @param {ReleaseUpdateBody} releaseUpdateBody
2340
- * @param {*} [options] Override http request option.
2341
- * @throws {RequiredError}
2342
- */
2343
- editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options) {
2344
- return localVarFp.editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options).then((request) => request(axios, basePath));
2345
- },
2346
- /**
2347
- *
2348
- * @summary Get Device Info
2349
- * @param {string} deviceId
2350
- * @param {*} [options] Override http request option.
2351
- * @throws {RequiredError}
2352
- */
2353
- getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options) {
2354
- return localVarFp.getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options).then((request) => request(axios, basePath));
2355
- },
2356
- /**
2357
- * Get a paginated list of logs with optional filtering.
2358
- * @summary Get Logs
2359
- * @param {number} [page]
2360
- * @param {number} [perPage]
2361
- * @param {string | null} [deviceId]
2362
- * @param {string | null} [releaseId]
2363
- * @param {string | null} [userId]
2364
- * @param {boolean | null} [hideVerbose]
2365
- * @param {*} [options] Override http request option.
2366
- * @throws {RequiredError}
2367
- */
2368
- getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options) {
2369
- return localVarFp.getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options).then((request) => request(axios, basePath));
2370
- },
2371
- /**
2372
- * Get release information
2373
- * @summary Get Release Info
2374
- * @param {string} releaseId
2375
- * @param {*} [options] Override http request option.
2376
- * @throws {RequiredError}
2377
- */
2378
- getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options) {
2379
- return localVarFp.getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options).then((request) => request(axios, basePath));
2380
- },
2381
- /**
2382
- * Download release ZIP directly
2383
- * @summary Get Release Zip
2384
- * @param {string} releaseId
2385
- * @param {*} [options] Override http request option.
2386
- * @throws {RequiredError}
2387
- */
2388
- getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options) {
2389
- return localVarFp.getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options).then((request) => request(axios, basePath));
2390
- },
2391
- /**
2392
- *
2393
- * @summary Get User By Id
2394
- * @param {string} userId
2395
- * @param {*} [options] Override http request option.
2396
- * @throws {RequiredError}
2397
- */
2398
- getUserByIdInternalUsersUserIdGet(userId, options) {
2399
- return localVarFp.getUserByIdInternalUsersUserIdGet(userId, options).then((request) => request(axios, basePath));
2400
- },
2401
- /**
2402
- *
2403
- * @summary List Users
2404
- * @param {*} [options] Override http request option.
2405
- * @throws {RequiredError}
2406
- */
2407
- listUsersInternalUsersGet(options) {
2408
- return localVarFp.listUsersInternalUsersGet(options).then((request) => request(axios, basePath));
2409
- },
2410
- /**
2411
- * OAuth2 compatible token login, get an access token for future requests
2412
- * @summary Login Oauth
2413
- * @param {string} username
2414
- * @param {string} password
2415
- * @param {number} [minTime]
2416
- * @param {number} [maxTime]
2417
- * @param {string | null} [grantType]
2418
- * @param {string} [scope]
2419
- * @param {string | null} [clientId]
2420
- * @param {string | null} [clientSecret]
2421
- * @param {*} [options] Override http request option.
2422
- * @throws {RequiredError}
2423
- */
2424
- loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options) {
2425
- return localVarFp.loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options).then((request) => request(axios, basePath));
2426
- },
2427
- /**
2428
- *
2429
- * @summary Logout
2430
- * @param {string} body
2431
- * @param {*} [options] Override http request option.
2432
- * @throws {RequiredError}
2433
- */
2434
- logoutAuthLogoutPost(body, options) {
2435
- return localVarFp.logoutAuthLogoutPost(body, options).then((request) => request(axios, basePath));
2436
- },
2437
- /**
2438
- *
2439
- * @summary New Device
2440
- * @param {NewDeviceBody} newDeviceBody
2441
- * @param {*} [options] Override http request option.
2442
- * @throws {RequiredError}
2443
- */
2444
- newDeviceInternalDevicesPost(newDeviceBody, options) {
2445
- return localVarFp.newDeviceInternalDevicesPost(newDeviceBody, options).then((request) => request(axios, basePath));
2446
- },
2447
- /**
2448
- *
2449
- * @summary New Release
2450
- * @param {string} deviceId
2451
- * @param {File} releaseZip
2452
- * @param {string} md5
2453
- * @param {Array<string>} changelog
2454
- * @param {Array<string>} [bugs]
2455
- * @param {string | null} [notes]
2456
- * @param {boolean} [force]
2457
- * @param {*} [options] Override http request option.
2458
- * @throws {RequiredError}
2459
- */
2460
- newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options) {
2461
- return localVarFp.newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options).then((request) => request(axios, basePath));
2462
- },
2463
- /**
2464
- *
2465
- * @summary Renew
2466
- * @param {string} body
2467
- * @param {*} [options] Override http request option.
2468
- * @throws {RequiredError}
2469
- */
2470
- renewAuthRenewPost(body, options) {
2471
- return localVarFp.renewAuthRenewPost(body, options).then((request) => request(axios, basePath));
2472
- },
2473
- /**
2474
- *
2475
- * @summary Update Device
2476
- * @param {string} deviceId
2477
- * @param {DeviceUpdateBody} deviceUpdateBody
2478
- * @param {*} [options] Override http request option.
2479
- * @throws {RequiredError}
2480
- */
2481
- updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options) {
2482
- return localVarFp.updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options).then((request) => request(axios, basePath));
2483
- },
2484
- /**
2485
- *
2486
- * @summary Update User
2487
- * @param {string} userId
2488
- * @param {UserUpdateBody} userUpdateBody
2489
- * @param {*} [options] Override http request option.
2490
- * @throws {RequiredError}
2491
- */
2492
- updateUserInternalUsersUserIdPut(userId, userUpdateBody, options) {
2493
- return localVarFp.updateUserInternalUsersUserIdPut(userId, userUpdateBody, options).then((request) => request(axios, basePath));
2494
- },
2495
- };
2496
- };
2497
- exports.InternalApiFactory = InternalApiFactory;
2498
- /**
2499
- * InternalApi - object-oriented interface
2500
- * @export
2501
- * @class InternalApi
2502
- * @extends {BaseAPI}
2503
- */
2504
- class InternalApi extends base_1.BaseAPI {
2505
- /**
2506
- * Change the password for a user.
2507
- * @summary Change Password
2508
- * @param {BodyChangePasswordProfileChangePasswordPost} bodyChangePasswordProfileChangePasswordPost
2509
- * @param {*} [options] Override http request option.
2510
- * @throws {RequiredError}
2511
- * @memberof InternalApi
2512
- */
2513
- changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options) {
2514
- return (0, exports.InternalApiFp)(this.configuration).changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options).then((request) => request(this.axios, this.basePath));
2515
- }
2516
- /**
2517
- * Delete release
2518
- * @summary Del Release
2519
- * @param {string} releaseId
2520
- * @param {*} [options] Override http request option.
2521
- * @throws {RequiredError}
2522
- * @memberof InternalApi
2523
- */
2524
- delReleaseInternalReleasesReleaseIdDelete(releaseId, options) {
2525
- return (0, exports.InternalApiFp)(this.configuration).delReleaseInternalReleasesReleaseIdDelete(releaseId, options).then((request) => request(this.axios, this.basePath));
2526
- }
2527
- /**
2528
- *
2529
- * @summary Delete User
2530
- * @param {string} userId
2531
- * @param {*} [options] Override http request option.
2532
- * @throws {RequiredError}
2533
- * @memberof InternalApi
2534
- */
2535
- deleteUserInternalUsersUserIdDelete(userId, options) {
2536
- return (0, exports.InternalApiFp)(this.configuration).deleteUserInternalUsersUserIdDelete(userId, options).then((request) => request(this.axios, this.basePath));
2537
- }
2538
- /**
2539
- * Edit Release information
2540
- * @summary Edit Release
2541
- * @param {string} releaseId
2542
- * @param {ReleaseUpdateBody} releaseUpdateBody
2543
- * @param {*} [options] Override http request option.
2544
- * @throws {RequiredError}
2545
- * @memberof InternalApi
2546
- */
2547
- editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options) {
2548
- return (0, exports.InternalApiFp)(this.configuration).editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options).then((request) => request(this.axios, this.basePath));
2549
- }
2550
- /**
2551
- *
2552
- * @summary Get Device Info
2553
- * @param {string} deviceId
2554
- * @param {*} [options] Override http request option.
2555
- * @throws {RequiredError}
2556
- * @memberof InternalApi
2557
- */
2558
- getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options) {
2559
- return (0, exports.InternalApiFp)(this.configuration).getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options).then((request) => request(this.axios, this.basePath));
2560
- }
2561
- /**
2562
- * Get a paginated list of logs with optional filtering.
2563
- * @summary Get Logs
2564
- * @param {number} [page]
2565
- * @param {number} [perPage]
2566
- * @param {string | null} [deviceId]
2567
- * @param {string | null} [releaseId]
2568
- * @param {string | null} [userId]
2569
- * @param {boolean | null} [hideVerbose]
2570
- * @param {*} [options] Override http request option.
2571
- * @throws {RequiredError}
2572
- * @memberof InternalApi
2573
- */
2574
- getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options) {
2575
- return (0, exports.InternalApiFp)(this.configuration).getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options).then((request) => request(this.axios, this.basePath));
2576
- }
2577
- /**
2578
- * Get release information
2579
- * @summary Get Release Info
2580
- * @param {string} releaseId
2581
- * @param {*} [options] Override http request option.
2582
- * @throws {RequiredError}
2583
- * @memberof InternalApi
2584
- */
2585
- getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options) {
2586
- return (0, exports.InternalApiFp)(this.configuration).getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options).then((request) => request(this.axios, this.basePath));
2587
- }
2588
- /**
2589
- * Download release ZIP directly
2590
- * @summary Get Release Zip
2591
- * @param {string} releaseId
2592
- * @param {*} [options] Override http request option.
2593
- * @throws {RequiredError}
2594
- * @memberof InternalApi
2595
- */
2596
- getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options) {
2597
- return (0, exports.InternalApiFp)(this.configuration).getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options).then((request) => request(this.axios, this.basePath));
2598
- }
2599
- /**
2600
- *
2601
- * @summary Get User By Id
2602
- * @param {string} userId
2603
- * @param {*} [options] Override http request option.
2604
- * @throws {RequiredError}
2605
- * @memberof InternalApi
2606
- */
2607
- getUserByIdInternalUsersUserIdGet(userId, options) {
2608
- return (0, exports.InternalApiFp)(this.configuration).getUserByIdInternalUsersUserIdGet(userId, options).then((request) => request(this.axios, this.basePath));
2609
- }
2610
- /**
2611
- *
2612
- * @summary List Users
2613
- * @param {*} [options] Override http request option.
2614
- * @throws {RequiredError}
2615
- * @memberof InternalApi
2616
- */
2617
- listUsersInternalUsersGet(options) {
2618
- return (0, exports.InternalApiFp)(this.configuration).listUsersInternalUsersGet(options).then((request) => request(this.axios, this.basePath));
2619
- }
2620
- /**
2621
- * OAuth2 compatible token login, get an access token for future requests
2622
- * @summary Login Oauth
2623
- * @param {string} username
2624
- * @param {string} password
2625
- * @param {number} [minTime]
2626
- * @param {number} [maxTime]
2627
- * @param {string | null} [grantType]
2628
- * @param {string} [scope]
2629
- * @param {string | null} [clientId]
2630
- * @param {string | null} [clientSecret]
2631
- * @param {*} [options] Override http request option.
2632
- * @throws {RequiredError}
2633
- * @memberof InternalApi
2634
- */
2635
- loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options) {
2636
- return (0, exports.InternalApiFp)(this.configuration).loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options).then((request) => request(this.axios, this.basePath));
2637
- }
2638
- /**
2639
- *
2640
- * @summary Logout
2641
- * @param {string} body
2642
- * @param {*} [options] Override http request option.
2643
- * @throws {RequiredError}
2644
- * @memberof InternalApi
2645
- */
2646
- logoutAuthLogoutPost(body, options) {
2647
- return (0, exports.InternalApiFp)(this.configuration).logoutAuthLogoutPost(body, options).then((request) => request(this.axios, this.basePath));
2648
- }
2649
- /**
2650
- *
2651
- * @summary New Device
2652
- * @param {NewDeviceBody} newDeviceBody
2653
- * @param {*} [options] Override http request option.
2654
- * @throws {RequiredError}
2655
- * @memberof InternalApi
2656
- */
2657
- newDeviceInternalDevicesPost(newDeviceBody, options) {
2658
- return (0, exports.InternalApiFp)(this.configuration).newDeviceInternalDevicesPost(newDeviceBody, options).then((request) => request(this.axios, this.basePath));
2659
- }
2660
- /**
2661
- *
2662
- * @summary New Release
2663
- * @param {string} deviceId
2664
- * @param {File} releaseZip
2665
- * @param {string} md5
2666
- * @param {Array<string>} changelog
2667
- * @param {Array<string>} [bugs]
2668
- * @param {string | null} [notes]
2669
- * @param {boolean} [force]
2670
- * @param {*} [options] Override http request option.
2671
- * @throws {RequiredError}
2672
- * @memberof InternalApi
2673
- */
2674
- newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options) {
2675
- return (0, exports.InternalApiFp)(this.configuration).newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options).then((request) => request(this.axios, this.basePath));
2676
- }
2677
- /**
2678
- *
2679
- * @summary Renew
2680
- * @param {string} body
2681
- * @param {*} [options] Override http request option.
2682
- * @throws {RequiredError}
2683
- * @memberof InternalApi
2684
- */
2685
- renewAuthRenewPost(body, options) {
2686
- return (0, exports.InternalApiFp)(this.configuration).renewAuthRenewPost(body, options).then((request) => request(this.axios, this.basePath));
2687
- }
2688
- /**
2689
- *
2690
- * @summary Update Device
2691
- * @param {string} deviceId
2692
- * @param {DeviceUpdateBody} deviceUpdateBody
2693
- * @param {*} [options] Override http request option.
2694
- * @throws {RequiredError}
2695
- * @memberof InternalApi
2696
- */
2697
- updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options) {
2698
- return (0, exports.InternalApiFp)(this.configuration).updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options).then((request) => request(this.axios, this.basePath));
2699
- }
2700
- /**
2701
- *
2702
- * @summary Update User
2703
- * @param {string} userId
2704
- * @param {UserUpdateBody} userUpdateBody
2705
- * @param {*} [options] Override http request option.
2706
- * @throws {RequiredError}
2707
- * @memberof InternalApi
2708
- */
2709
- updateUserInternalUsersUserIdPut(userId, userUpdateBody, options) {
2710
- return (0, exports.InternalApiFp)(this.configuration).updateUserInternalUsersUserIdPut(userId, userUpdateBody, options).then((request) => request(this.axios, this.basePath));
2711
- }
2712
- }
2713
- exports.InternalApi = InternalApi;
2714
- /**
2715
- * ReleaseApi - axios parameter creator
2716
- * @export
2717
- */
2718
- const ReleaseApiAxiosParamCreator = function (configuration) {
2719
- return {
2720
- /**
2721
- * Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
2722
- * @summary Get Release
2723
- * @param {string | null} [releaseId] Release ID
2724
- * @param {string | null} [id] Release ID (deprecated)
2725
- * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
2726
- * @param {string | null} [filename]
2727
- * @param {*} [options] Override http request option.
2728
- * @throws {RequiredError}
2729
- */
2730
- getRelease: (releaseId_1, id_1, buildId_1, filename_1, ...args_1) => __awaiter(this, [releaseId_1, id_1, buildId_1, filename_1, ...args_1], void 0, function* (releaseId, id, buildId, filename, options = {}) {
2731
- const localVarPath = `/releases/get`;
2732
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2733
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2734
- let baseOptions;
2735
- if (configuration) {
2736
- baseOptions = configuration.baseOptions;
2737
- }
2738
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2739
- const localVarHeaderParameter = {};
2740
- const localVarQueryParameter = {};
2741
- if (releaseId !== undefined) {
2742
- localVarQueryParameter['release_id'] = releaseId;
2743
- }
2744
- if (id !== undefined) {
2745
- localVarQueryParameter['_id'] = id;
2746
- }
2747
- if (buildId !== undefined) {
2748
- localVarQueryParameter['build_id'] = buildId;
2749
- }
2750
- if (filename !== undefined) {
2751
- localVarQueryParameter['filename'] = filename;
2752
- }
2753
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2754
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2755
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2756
- return {
2757
- url: (0, common_1.toPathString)(localVarUrlObj),
2758
- options: localVarRequestOptions,
2759
- };
2760
- }),
2761
- /**
2762
- * Gets release information using the release ID, nothing to discuss really.
2763
- * @summary Get Release Short
2764
- * @param {string} releaseId
2765
- * @param {*} [options] Override http request option.
2766
- * @deprecated
2767
- * @throws {RequiredError}
2768
- */
2769
- getReleaseDeprecated: (releaseId_1, ...args_1) => __awaiter(this, [releaseId_1, ...args_1], void 0, function* (releaseId, options = {}) {
2770
- // verify required parameter 'releaseId' is not null or undefined
2771
- (0, common_1.assertParamExists)('getReleaseDeprecated', 'releaseId', releaseId);
2772
- const localVarPath = `/releases/{release_id}`
2773
- .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
2774
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2775
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2776
- let baseOptions;
2777
- if (configuration) {
2778
- baseOptions = configuration.baseOptions;
2779
- }
2780
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2781
- const localVarHeaderParameter = {};
2782
- const localVarQueryParameter = {};
2783
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2784
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2785
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2786
- return {
2787
- url: (0, common_1.toPathString)(localVarUrlObj),
2788
- options: localVarRequestOptions,
2789
- };
2790
- }),
2791
- /**
2792
- * Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\'s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
2793
- * @summary Get Releases
2794
- * @param {Array<string>} [id] Filter by Release IDs
2795
- * @param {Array<string>} [id2] Filter by Release IDs (deprecated)
2796
- * @param {Array<string>} [buildId] Filter by Build IDs
2797
- * @param {Array<string>} [deviceId] Filter by Device IDs
2798
- * @param {Array<string>} [maintainerId] Filter by Maintainer IDs
2799
- * @param {Array<string>} [codename] Filter by device codenames
2800
- * @param {Array<string>} [version] Filter by release version
2801
- * @param {Array<ReleaseType>} [type] Filter by release type
2802
- * @param {boolean | null} [archived] Filter by the archived status
2803
- * @param {boolean | null} [freezed] Filter by the freezed status
2804
- * @param {string | null} [afterReleaseId] Show releases after the provided one
2805
- * @param {number | null} [afterDate] Show releases after the provided timestamp
2806
- * @param {ReleasesSort} [sort] Sort mode
2807
- * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
2808
- * @param {number | null} [skip] Skip query results
2809
- * @param {number | null} [limit] Limit query results (0 means unlimited)
2810
- * @param {*} [options] Override http request option.
2811
- * @throws {RequiredError}
2812
- */
2813
- getReleases: (id_1, id2_1, buildId_1, deviceId_1, maintainerId_1, codename_1, version_1, type_1, archived_1, freezed_1, afterReleaseId_1, afterDate_1, sort_1, group_1, skip_1, limit_1, ...args_1) => __awaiter(this, [id_1, id2_1, buildId_1, deviceId_1, maintainerId_1, codename_1, version_1, type_1, archived_1, freezed_1, afterReleaseId_1, afterDate_1, sort_1, group_1, skip_1, limit_1, ...args_1], void 0, function* (id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options = {}) {
2814
- const localVarPath = `/releases/`;
2815
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2816
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2817
- let baseOptions;
2818
- if (configuration) {
2819
- baseOptions = configuration.baseOptions;
2820
- }
2821
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2822
- const localVarHeaderParameter = {};
2823
- const localVarQueryParameter = {};
2824
- if (id) {
2825
- localVarQueryParameter['id'] = id;
2826
- }
2827
- if (id2) {
2828
- localVarQueryParameter['_id'] = id2;
2829
- }
2830
- if (buildId) {
2831
- localVarQueryParameter['build_id'] = buildId;
2832
- }
2833
- if (deviceId) {
2834
- localVarQueryParameter['device_id'] = deviceId;
2835
- }
2836
- if (maintainerId) {
2837
- localVarQueryParameter['maintainer_id'] = maintainerId;
2838
- }
2839
- if (codename) {
2840
- localVarQueryParameter['codename'] = codename;
2841
- }
2842
- if (version) {
2843
- localVarQueryParameter['version'] = version;
2844
- }
2845
- if (type) {
2846
- localVarQueryParameter['type'] = type;
2847
- }
2848
- if (archived !== undefined) {
2849
- localVarQueryParameter['archived'] = archived;
2850
- }
2851
- if (freezed !== undefined) {
2852
- localVarQueryParameter['freezed'] = freezed;
2853
- }
2854
- if (afterReleaseId !== undefined) {
2855
- localVarQueryParameter['after_release_id'] = afterReleaseId;
2856
- }
2857
- if (afterDate !== undefined) {
2858
- localVarQueryParameter['after_date'] = afterDate;
2859
- }
2860
- if (sort !== undefined) {
2861
- localVarQueryParameter['sort'] = sort;
2862
- }
2863
- if (group !== undefined) {
2864
- localVarQueryParameter['group'] = group;
2865
- }
2866
- if (skip !== undefined) {
2867
- localVarQueryParameter['skip'] = skip;
2868
- }
2869
- if (limit !== undefined) {
2870
- localVarQueryParameter['limit'] = limit;
2871
- }
2872
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2873
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2874
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2875
- return {
2876
- url: (0, common_1.toPathString)(localVarUrlObj),
2877
- options: localVarRequestOptions,
2878
- };
2879
- }),
2880
- /**
2881
- * Get updates method. Returns all new releases with release IDs. For example, \"/updates/<id>\" will return a list of all releases that were created after. You can also use \"device_id\" or / and \"release_type\" params. The first one will filter releases by specific devices, the second one will filter by release type. This can be useful, for example, if you want to notify users only with stable releases for this specific device. Warning: This method is obsolete! Please use /release/?after_release_id= instead!
2882
- * @summary Get Updates
2883
- * @param {string} lastKnownId
2884
- * @param {Array<string>} [deviceId] Filter by device ID
2885
- * @param {Array<ReleaseType>} [type] Filter by release type
2886
- * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
2887
- * @param {number | null} [skip] Skip query results
2888
- * @param {number | null} [limit] Limit query results (0 means unlimited)
2889
- * @param {*} [options] Override http request option.
2890
- * @deprecated
2891
- * @throws {RequiredError}
2892
- */
2893
- getUpdatesDeprecated: (lastKnownId_1, deviceId_1, type_1, releaseType_1, skip_1, limit_1, ...args_1) => __awaiter(this, [lastKnownId_1, deviceId_1, type_1, releaseType_1, skip_1, limit_1, ...args_1], void 0, function* (lastKnownId, deviceId, type, releaseType, skip, limit, options = {}) {
2894
- // verify required parameter 'lastKnownId' is not null or undefined
2895
- (0, common_1.assertParamExists)('getUpdatesDeprecated', 'lastKnownId', lastKnownId);
2896
- const localVarPath = `/updates/{last_known_id}`
2897
- .replace(`{${"last_known_id"}}`, encodeURIComponent(String(lastKnownId)));
2898
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2899
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2900
- let baseOptions;
2901
- if (configuration) {
2902
- baseOptions = configuration.baseOptions;
2903
- }
2904
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2905
- const localVarHeaderParameter = {};
2906
- const localVarQueryParameter = {};
2907
- if (deviceId) {
2908
- localVarQueryParameter['device_id'] = deviceId;
2909
- }
2910
- if (type) {
2911
- localVarQueryParameter['type'] = type;
2912
- }
2913
- if (releaseType) {
2914
- localVarQueryParameter['release_type'] = releaseType;
2915
- }
2916
- if (skip !== undefined) {
2917
- localVarQueryParameter['skip'] = skip;
2918
- }
2919
- if (limit !== undefined) {
2920
- localVarQueryParameter['limit'] = limit;
2921
- }
2922
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2923
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2924
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2925
- return {
2926
- url: (0, common_1.toPathString)(localVarUrlObj),
2927
- options: localVarRequestOptions,
2928
- };
2929
- }),
2930
- };
2931
- };
2932
- exports.ReleaseApiAxiosParamCreator = ReleaseApiAxiosParamCreator;
2933
- /**
2934
- * ReleaseApi - functional programming interface
2935
- * @export
2936
- */
2937
- const ReleaseApiFp = function (configuration) {
2938
- const localVarAxiosParamCreator = (0, exports.ReleaseApiAxiosParamCreator)(configuration);
2939
- return {
2940
- /**
2941
- * Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
2942
- * @summary Get Release
2943
- * @param {string | null} [releaseId] Release ID
2944
- * @param {string | null} [id] Release ID (deprecated)
2945
- * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
2946
- * @param {string | null} [filename]
2947
- * @param {*} [options] Override http request option.
2948
- * @throws {RequiredError}
2949
- */
2950
- getRelease(releaseId, id, buildId, filename, options) {
2951
- return __awaiter(this, void 0, void 0, function* () {
2952
- var _a, _b, _c;
2953
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getRelease(releaseId, id, buildId, filename, options);
2954
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2955
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReleaseApi.getRelease']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2956
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2957
- });
2958
- },
2959
- /**
2960
- * Gets release information using the release ID, nothing to discuss really.
2961
- * @summary Get Release Short
2962
- * @param {string} releaseId
2963
- * @param {*} [options] Override http request option.
2964
- * @deprecated
2965
- * @throws {RequiredError}
2966
- */
2967
- getReleaseDeprecated(releaseId, options) {
2968
- return __awaiter(this, void 0, void 0, function* () {
2969
- var _a, _b, _c;
2970
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleaseDeprecated(releaseId, options);
2971
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2972
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReleaseApi.getReleaseDeprecated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2973
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2974
- });
2975
- },
2976
- /**
2977
- * Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\'s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
2978
- * @summary Get Releases
2979
- * @param {Array<string>} [id] Filter by Release IDs
2980
- * @param {Array<string>} [id2] Filter by Release IDs (deprecated)
2981
- * @param {Array<string>} [buildId] Filter by Build IDs
2982
- * @param {Array<string>} [deviceId] Filter by Device IDs
2983
- * @param {Array<string>} [maintainerId] Filter by Maintainer IDs
2984
- * @param {Array<string>} [codename] Filter by device codenames
2985
- * @param {Array<string>} [version] Filter by release version
2986
- * @param {Array<ReleaseType>} [type] Filter by release type
2987
- * @param {boolean | null} [archived] Filter by the archived status
2988
- * @param {boolean | null} [freezed] Filter by the freezed status
2989
- * @param {string | null} [afterReleaseId] Show releases after the provided one
2990
- * @param {number | null} [afterDate] Show releases after the provided timestamp
2991
- * @param {ReleasesSort} [sort] Sort mode
2992
- * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
2993
- * @param {number | null} [skip] Skip query results
2994
- * @param {number | null} [limit] Limit query results (0 means unlimited)
2995
- * @param {*} [options] Override http request option.
2996
- * @throws {RequiredError}
2997
- */
2998
- getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
2999
- return __awaiter(this, void 0, void 0, function* () {
3000
- var _a, _b, _c;
3001
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options);
3002
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3003
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReleaseApi.getReleases']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3004
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3005
- });
3006
- },
3007
- /**
3008
- * Get updates method. Returns all new releases with release IDs. For example, \"/updates/<id>\" will return a list of all releases that were created after. You can also use \"device_id\" or / and \"release_type\" params. The first one will filter releases by specific devices, the second one will filter by release type. This can be useful, for example, if you want to notify users only with stable releases for this specific device. Warning: This method is obsolete! Please use /release/?after_release_id= instead!
3009
- * @summary Get Updates
3010
- * @param {string} lastKnownId
3011
- * @param {Array<string>} [deviceId] Filter by device ID
3012
- * @param {Array<ReleaseType>} [type] Filter by release type
3013
- * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
3014
- * @param {number | null} [skip] Skip query results
3015
- * @param {number | null} [limit] Limit query results (0 means unlimited)
3016
- * @param {*} [options] Override http request option.
3017
- * @deprecated
3018
- * @throws {RequiredError}
3019
- */
3020
- getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
3021
- return __awaiter(this, void 0, void 0, function* () {
3022
- var _a, _b, _c;
3023
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options);
3024
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3025
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReleaseApi.getUpdatesDeprecated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3026
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3027
- });
3028
- },
3029
- };
3030
- };
3031
- exports.ReleaseApiFp = ReleaseApiFp;
3032
- /**
3033
- * ReleaseApi - factory interface
3034
- * @export
3035
- */
3036
- const ReleaseApiFactory = function (configuration, basePath, axios) {
3037
- const localVarFp = (0, exports.ReleaseApiFp)(configuration);
3038
- return {
3039
- /**
3040
- * Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
3041
- * @summary Get Release
3042
- * @param {string | null} [releaseId] Release ID
3043
- * @param {string | null} [id] Release ID (deprecated)
3044
- * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
3045
- * @param {string | null} [filename]
3046
- * @param {*} [options] Override http request option.
3047
- * @throws {RequiredError}
3048
- */
3049
- getRelease(releaseId, id, buildId, filename, options) {
3050
- return localVarFp.getRelease(releaseId, id, buildId, filename, options).then((request) => request(axios, basePath));
3051
- },
3052
- /**
3053
- * Gets release information using the release ID, nothing to discuss really.
3054
- * @summary Get Release Short
3055
- * @param {string} releaseId
3056
- * @param {*} [options] Override http request option.
3057
- * @deprecated
3058
- * @throws {RequiredError}
3059
- */
3060
- getReleaseDeprecated(releaseId, options) {
3061
- return localVarFp.getReleaseDeprecated(releaseId, options).then((request) => request(axios, basePath));
3062
- },
3063
- /**
3064
- * Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\'s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
3065
- * @summary Get Releases
3066
- * @param {Array<string>} [id] Filter by Release IDs
3067
- * @param {Array<string>} [id2] Filter by Release IDs (deprecated)
3068
- * @param {Array<string>} [buildId] Filter by Build IDs
3069
- * @param {Array<string>} [deviceId] Filter by Device IDs
3070
- * @param {Array<string>} [maintainerId] Filter by Maintainer IDs
3071
- * @param {Array<string>} [codename] Filter by device codenames
3072
- * @param {Array<string>} [version] Filter by release version
3073
- * @param {Array<ReleaseType>} [type] Filter by release type
3074
- * @param {boolean | null} [archived] Filter by the archived status
3075
- * @param {boolean | null} [freezed] Filter by the freezed status
3076
- * @param {string | null} [afterReleaseId] Show releases after the provided one
3077
- * @param {number | null} [afterDate] Show releases after the provided timestamp
3078
- * @param {ReleasesSort} [sort] Sort mode
3079
- * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
3080
- * @param {number | null} [skip] Skip query results
3081
- * @param {number | null} [limit] Limit query results (0 means unlimited)
3082
- * @param {*} [options] Override http request option.
3083
- * @throws {RequiredError}
3084
- */
3085
- getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
3086
- return localVarFp.getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options).then((request) => request(axios, basePath));
3087
- },
3088
- /**
3089
- * Get updates method. Returns all new releases with release IDs. For example, \"/updates/<id>\" will return a list of all releases that were created after. You can also use \"device_id\" or / and \"release_type\" params. The first one will filter releases by specific devices, the second one will filter by release type. This can be useful, for example, if you want to notify users only with stable releases for this specific device. Warning: This method is obsolete! Please use /release/?after_release_id= instead!
3090
- * @summary Get Updates
3091
- * @param {string} lastKnownId
3092
- * @param {Array<string>} [deviceId] Filter by device ID
3093
- * @param {Array<ReleaseType>} [type] Filter by release type
3094
- * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
3095
- * @param {number | null} [skip] Skip query results
3096
- * @param {number | null} [limit] Limit query results (0 means unlimited)
3097
- * @param {*} [options] Override http request option.
3098
- * @deprecated
3099
- * @throws {RequiredError}
3100
- */
3101
- getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
3102
- return localVarFp.getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options).then((request) => request(axios, basePath));
3103
- },
3104
- };
3105
- };
3106
- exports.ReleaseApiFactory = ReleaseApiFactory;
3107
- /**
3108
- * ReleaseApi - object-oriented interface
3109
- * @export
3110
- * @class ReleaseApi
3111
- * @extends {BaseAPI}
3112
- */
3113
- class ReleaseApi extends base_1.BaseAPI {
3114
- /**
3115
- * Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
3116
- * @summary Get Release
3117
- * @param {string | null} [releaseId] Release ID
3118
- * @param {string | null} [id] Release ID (deprecated)
3119
- * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
3120
- * @param {string | null} [filename]
3121
- * @param {*} [options] Override http request option.
3122
- * @throws {RequiredError}
3123
- * @memberof ReleaseApi
3124
- */
3125
- getRelease(releaseId, id, buildId, filename, options) {
3126
- return (0, exports.ReleaseApiFp)(this.configuration).getRelease(releaseId, id, buildId, filename, options).then((request) => request(this.axios, this.basePath));
3127
- }
3128
- /**
3129
- * Gets release information using the release ID, nothing to discuss really.
3130
- * @summary Get Release Short
3131
- * @param {string} releaseId
3132
- * @param {*} [options] Override http request option.
3133
- * @deprecated
3134
- * @throws {RequiredError}
3135
- * @memberof ReleaseApi
3136
- */
3137
- getReleaseDeprecated(releaseId, options) {
3138
- return (0, exports.ReleaseApiFp)(this.configuration).getReleaseDeprecated(releaseId, options).then((request) => request(this.axios, this.basePath));
3139
- }
3140
- /**
3141
- * Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\'s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
3142
- * @summary Get Releases
3143
- * @param {Array<string>} [id] Filter by Release IDs
3144
- * @param {Array<string>} [id2] Filter by Release IDs (deprecated)
3145
- * @param {Array<string>} [buildId] Filter by Build IDs
3146
- * @param {Array<string>} [deviceId] Filter by Device IDs
3147
- * @param {Array<string>} [maintainerId] Filter by Maintainer IDs
3148
- * @param {Array<string>} [codename] Filter by device codenames
3149
- * @param {Array<string>} [version] Filter by release version
3150
- * @param {Array<ReleaseType>} [type] Filter by release type
3151
- * @param {boolean | null} [archived] Filter by the archived status
3152
- * @param {boolean | null} [freezed] Filter by the freezed status
3153
- * @param {string | null} [afterReleaseId] Show releases after the provided one
3154
- * @param {number | null} [afterDate] Show releases after the provided timestamp
3155
- * @param {ReleasesSort} [sort] Sort mode
3156
- * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
3157
- * @param {number | null} [skip] Skip query results
3158
- * @param {number | null} [limit] Limit query results (0 means unlimited)
3159
- * @param {*} [options] Override http request option.
3160
- * @throws {RequiredError}
3161
- * @memberof ReleaseApi
3162
- */
3163
- getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
3164
- return (0, exports.ReleaseApiFp)(this.configuration).getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options).then((request) => request(this.axios, this.basePath));
3165
- }
3166
- /**
3167
- * Get updates method. Returns all new releases with release IDs. For example, \"/updates/<id>\" will return a list of all releases that were created after. You can also use \"device_id\" or / and \"release_type\" params. The first one will filter releases by specific devices, the second one will filter by release type. This can be useful, for example, if you want to notify users only with stable releases for this specific device. Warning: This method is obsolete! Please use /release/?after_release_id= instead!
3168
- * @summary Get Updates
3169
- * @param {string} lastKnownId
3170
- * @param {Array<string>} [deviceId] Filter by device ID
3171
- * @param {Array<ReleaseType>} [type] Filter by release type
3172
- * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
3173
- * @param {number | null} [skip] Skip query results
3174
- * @param {number | null} [limit] Limit query results (0 means unlimited)
3175
- * @param {*} [options] Override http request option.
3176
- * @deprecated
3177
- * @throws {RequiredError}
3178
- * @memberof ReleaseApi
3179
- */
3180
- getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
3181
- return (0, exports.ReleaseApiFp)(this.configuration).getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options).then((request) => request(this.axios, this.basePath));
3182
- }
3183
- }
3184
- exports.ReleaseApi = ReleaseApi;
3185
- /**
3186
- * StatsApi - axios parameter creator
3187
- * @export
3188
- */
3189
- const StatsApiAxiosParamCreator = function (configuration) {
3190
- return {
3191
- /**
3192
- * Returns the global OrangeFox downloads statistics. This request causes an increased load to the database, as it needs to aggregate all the release stats data, therefore, it is limited to a small number of requests per minute for public usage.
3193
- * @summary Public Stats
3194
- * @param {*} [options] Override http request option.
3195
- * @throws {RequiredError}
3196
- */
3197
- getPublicStats: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3198
- const localVarPath = `/stats/`;
3199
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3200
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3201
- let baseOptions;
3202
- if (configuration) {
3203
- baseOptions = configuration.baseOptions;
3204
- }
3205
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3206
- const localVarHeaderParameter = {};
3207
- const localVarQueryParameter = {};
3208
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3209
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3210
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3211
- return {
3212
- url: (0, common_1.toPathString)(localVarUrlObj),
3213
- options: localVarRequestOptions,
3214
- };
3215
- }),
3216
- };
3217
- };
3218
- exports.StatsApiAxiosParamCreator = StatsApiAxiosParamCreator;
3219
- /**
3220
- * StatsApi - functional programming interface
3221
- * @export
3222
- */
3223
- const StatsApiFp = function (configuration) {
3224
- const localVarAxiosParamCreator = (0, exports.StatsApiAxiosParamCreator)(configuration);
3225
- return {
3226
- /**
3227
- * Returns the global OrangeFox downloads statistics. This request causes an increased load to the database, as it needs to aggregate all the release stats data, therefore, it is limited to a small number of requests per minute for public usage.
3228
- * @summary Public Stats
3229
- * @param {*} [options] Override http request option.
3230
- * @throws {RequiredError}
3231
- */
3232
- getPublicStats(options) {
3233
- return __awaiter(this, void 0, void 0, function* () {
3234
- var _a, _b, _c;
3235
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicStats(options);
3236
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3237
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StatsApi.getPublicStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3238
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3239
- });
3240
- },
3241
- };
3242
- };
3243
- exports.StatsApiFp = StatsApiFp;
3244
- /**
3245
- * StatsApi - factory interface
3246
- * @export
3247
- */
3248
- const StatsApiFactory = function (configuration, basePath, axios) {
3249
- const localVarFp = (0, exports.StatsApiFp)(configuration);
3250
- return {
3251
- /**
3252
- * Returns the global OrangeFox downloads statistics. This request causes an increased load to the database, as it needs to aggregate all the release stats data, therefore, it is limited to a small number of requests per minute for public usage.
3253
- * @summary Public Stats
3254
- * @param {*} [options] Override http request option.
3255
- * @throws {RequiredError}
3256
- */
3257
- getPublicStats(options) {
3258
- return localVarFp.getPublicStats(options).then((request) => request(axios, basePath));
3259
- },
3260
- };
3261
- };
3262
- exports.StatsApiFactory = StatsApiFactory;
3263
- /**
3264
- * StatsApi - object-oriented interface
3265
- * @export
3266
- * @class StatsApi
3267
- * @extends {BaseAPI}
3268
- */
3269
- class StatsApi extends base_1.BaseAPI {
3270
- /**
3271
- * Returns the global OrangeFox downloads statistics. This request causes an increased load to the database, as it needs to aggregate all the release stats data, therefore, it is limited to a small number of requests per minute for public usage.
3272
- * @summary Public Stats
3273
- * @param {*} [options] Override http request option.
3274
- * @throws {RequiredError}
3275
- * @memberof StatsApi
3276
- */
3277
- getPublicStats(options) {
3278
- return (0, exports.StatsApiFp)(this.configuration).getPublicStats(options).then((request) => request(this.axios, this.basePath));
3279
- }
3280
- }
3281
- exports.StatsApi = StatsApi;