sys-job-api.ts 85 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Admin.NET 通用权限开发平台
  5. * 让 .NET 开发更简单、更通用、更流行。整合最新技术,模块插件式开发,前后端分离,开箱即用。<br/><u><b><font color='FF0000'> 👮不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!</font></b></u>
  6. *
  7. * OpenAPI spec version: 1.0.0
  8. *
  9. *
  10. * NOTE: This class is auto generated by the swagger code generator program.
  11. * https://github.com/swagger-api/swagger-codegen.git
  12. * Do not edit the class manually.
  13. */
  14. import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
  15. import { Configuration } from '../configuration';
  16. // Some imports not used depending on template conditions
  17. // @ts-ignore
  18. import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
  19. import { AddJobDetailInput } from '../models';
  20. import { AddJobTriggerInput } from '../models';
  21. import { AdminResultListSysJobCluster } from '../models';
  22. import { AdminResultListSysJobTrigger } from '../models';
  23. import { AdminResultSqlSugarPagedListJobDetailOutput } from '../models';
  24. import { AdminResultSqlSugarPagedListSysJobTriggerRecord } from '../models';
  25. import { DeleteJobDetailInput } from '../models';
  26. import { DeleteJobTriggerInput } from '../models';
  27. import { JobDetailInput } from '../models';
  28. import { JobTriggerInput } from '../models';
  29. import { PageJobDetailInput } from '../models';
  30. import { PageJobTriggerRecordInput } from '../models';
  31. import { UpdateJobDetailInput } from '../models';
  32. import { UpdateJobTriggerInput } from '../models';
  33. /**
  34. * SysJobApi - axios parameter creator
  35. * @export
  36. */
  37. export const SysJobApiAxiosParamCreator = function (configuration?: Configuration) {
  38. return {
  39. /**
  40. *
  41. * @summary 添加作业 ⏰
  42. * @param {AddJobDetailInput} [body]
  43. * @param {*} [options] Override http request option.
  44. * @throws {RequiredError}
  45. */
  46. apiSysJobAddJobDetailPost: async (body?: AddJobDetailInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  47. const localVarPath = `/api/sysJob/addJobDetail`;
  48. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  49. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  50. let baseOptions;
  51. if (configuration) {
  52. baseOptions = configuration.baseOptions;
  53. }
  54. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  55. const localVarHeaderParameter = {} as any;
  56. const localVarQueryParameter = {} as any;
  57. // authentication Bearer required
  58. // http bearer authentication required
  59. if (configuration && configuration.accessToken) {
  60. const accessToken = typeof configuration.accessToken === 'function'
  61. ? await configuration.accessToken()
  62. : await configuration.accessToken;
  63. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  64. }
  65. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  66. const query = new URLSearchParams(localVarUrlObj.search);
  67. for (const key in localVarQueryParameter) {
  68. query.set(key, localVarQueryParameter[key]);
  69. }
  70. for (const key in options.params) {
  71. query.set(key, options.params[key]);
  72. }
  73. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  74. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  75. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  76. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  77. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  78. return {
  79. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  80. options: localVarRequestOptions,
  81. };
  82. },
  83. /**
  84. *
  85. * @summary 添加触发器 ⏰
  86. * @param {AddJobTriggerInput} [body]
  87. * @param {*} [options] Override http request option.
  88. * @throws {RequiredError}
  89. */
  90. apiSysJobAddJobTriggerPost: async (body?: AddJobTriggerInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  91. const localVarPath = `/api/sysJob/addJobTrigger`;
  92. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  93. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  94. let baseOptions;
  95. if (configuration) {
  96. baseOptions = configuration.baseOptions;
  97. }
  98. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  99. const localVarHeaderParameter = {} as any;
  100. const localVarQueryParameter = {} as any;
  101. // authentication Bearer required
  102. // http bearer authentication required
  103. if (configuration && configuration.accessToken) {
  104. const accessToken = typeof configuration.accessToken === 'function'
  105. ? await configuration.accessToken()
  106. : await configuration.accessToken;
  107. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  108. }
  109. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  110. const query = new URLSearchParams(localVarUrlObj.search);
  111. for (const key in localVarQueryParameter) {
  112. query.set(key, localVarQueryParameter[key]);
  113. }
  114. for (const key in options.params) {
  115. query.set(key, options.params[key]);
  116. }
  117. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  118. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  119. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  120. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  121. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  122. return {
  123. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  124. options: localVarRequestOptions,
  125. };
  126. },
  127. /**
  128. *
  129. * @summary 取消作业 ⏰
  130. * @param {JobDetailInput} [body]
  131. * @param {*} [options] Override http request option.
  132. * @throws {RequiredError}
  133. */
  134. apiSysJobCancelJobPost: async (body?: JobDetailInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  135. const localVarPath = `/api/sysJob/cancelJob`;
  136. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  137. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  138. let baseOptions;
  139. if (configuration) {
  140. baseOptions = configuration.baseOptions;
  141. }
  142. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  143. const localVarHeaderParameter = {} as any;
  144. const localVarQueryParameter = {} as any;
  145. // authentication Bearer required
  146. // http bearer authentication required
  147. if (configuration && configuration.accessToken) {
  148. const accessToken = typeof configuration.accessToken === 'function'
  149. ? await configuration.accessToken()
  150. : await configuration.accessToken;
  151. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  152. }
  153. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  154. const query = new URLSearchParams(localVarUrlObj.search);
  155. for (const key in localVarQueryParameter) {
  156. query.set(key, localVarQueryParameter[key]);
  157. }
  158. for (const key in options.params) {
  159. query.set(key, options.params[key]);
  160. }
  161. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  162. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  163. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  164. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  165. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  166. return {
  167. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  168. options: localVarRequestOptions,
  169. };
  170. },
  171. /**
  172. *
  173. * @summary 强制唤醒作业调度器 ⏰
  174. * @param {*} [options] Override http request option.
  175. * @throws {RequiredError}
  176. */
  177. apiSysJobCancelSleepPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  178. const localVarPath = `/api/sysJob/cancelSleep`;
  179. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  180. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  181. let baseOptions;
  182. if (configuration) {
  183. baseOptions = configuration.baseOptions;
  184. }
  185. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  186. const localVarHeaderParameter = {} as any;
  187. const localVarQueryParameter = {} as any;
  188. // authentication Bearer required
  189. // http bearer authentication required
  190. if (configuration && configuration.accessToken) {
  191. const accessToken = typeof configuration.accessToken === 'function'
  192. ? await configuration.accessToken()
  193. : await configuration.accessToken;
  194. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  195. }
  196. const query = new URLSearchParams(localVarUrlObj.search);
  197. for (const key in localVarQueryParameter) {
  198. query.set(key, localVarQueryParameter[key]);
  199. }
  200. for (const key in options.params) {
  201. query.set(key, options.params[key]);
  202. }
  203. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  204. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  205. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  206. return {
  207. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  208. options: localVarRequestOptions,
  209. };
  210. },
  211. /**
  212. *
  213. * @summary 删除作业 ⏰
  214. * @param {DeleteJobDetailInput} [body]
  215. * @param {*} [options] Override http request option.
  216. * @throws {RequiredError}
  217. */
  218. apiSysJobDeleteJobDetailPost: async (body?: DeleteJobDetailInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  219. const localVarPath = `/api/sysJob/deleteJobDetail`;
  220. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  221. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  222. let baseOptions;
  223. if (configuration) {
  224. baseOptions = configuration.baseOptions;
  225. }
  226. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  227. const localVarHeaderParameter = {} as any;
  228. const localVarQueryParameter = {} as any;
  229. // authentication Bearer required
  230. // http bearer authentication required
  231. if (configuration && configuration.accessToken) {
  232. const accessToken = typeof configuration.accessToken === 'function'
  233. ? await configuration.accessToken()
  234. : await configuration.accessToken;
  235. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  236. }
  237. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  238. const query = new URLSearchParams(localVarUrlObj.search);
  239. for (const key in localVarQueryParameter) {
  240. query.set(key, localVarQueryParameter[key]);
  241. }
  242. for (const key in options.params) {
  243. query.set(key, options.params[key]);
  244. }
  245. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  246. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  247. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  248. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  249. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  250. return {
  251. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  252. options: localVarRequestOptions,
  253. };
  254. },
  255. /**
  256. *
  257. * @summary 删除触发器 ⏰
  258. * @param {DeleteJobTriggerInput} [body]
  259. * @param {*} [options] Override http request option.
  260. * @throws {RequiredError}
  261. */
  262. apiSysJobDeleteJobTriggerPost: async (body?: DeleteJobTriggerInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  263. const localVarPath = `/api/sysJob/deleteJobTrigger`;
  264. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  265. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  266. let baseOptions;
  267. if (configuration) {
  268. baseOptions = configuration.baseOptions;
  269. }
  270. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  271. const localVarHeaderParameter = {} as any;
  272. const localVarQueryParameter = {} as any;
  273. // authentication Bearer required
  274. // http bearer authentication required
  275. if (configuration && configuration.accessToken) {
  276. const accessToken = typeof configuration.accessToken === 'function'
  277. ? await configuration.accessToken()
  278. : await configuration.accessToken;
  279. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  280. }
  281. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  282. const query = new URLSearchParams(localVarUrlObj.search);
  283. for (const key in localVarQueryParameter) {
  284. query.set(key, localVarQueryParameter[key]);
  285. }
  286. for (const key in options.params) {
  287. query.set(key, options.params[key]);
  288. }
  289. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  290. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  291. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  292. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  293. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  294. return {
  295. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  296. options: localVarRequestOptions,
  297. };
  298. },
  299. /**
  300. *
  301. * @summary 获取集群列表 ⏰
  302. * @param {*} [options] Override http request option.
  303. * @throws {RequiredError}
  304. */
  305. apiSysJobJobClusterListGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  306. const localVarPath = `/api/sysJob/jobClusterList`;
  307. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  308. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  309. let baseOptions;
  310. if (configuration) {
  311. baseOptions = configuration.baseOptions;
  312. }
  313. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  314. const localVarHeaderParameter = {} as any;
  315. const localVarQueryParameter = {} as any;
  316. // authentication Bearer required
  317. // http bearer authentication required
  318. if (configuration && configuration.accessToken) {
  319. const accessToken = typeof configuration.accessToken === 'function'
  320. ? await configuration.accessToken()
  321. : await configuration.accessToken;
  322. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  323. }
  324. const query = new URLSearchParams(localVarUrlObj.search);
  325. for (const key in localVarQueryParameter) {
  326. query.set(key, localVarQueryParameter[key]);
  327. }
  328. for (const key in options.params) {
  329. query.set(key, options.params[key]);
  330. }
  331. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  332. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  333. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  334. return {
  335. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  336. options: localVarRequestOptions,
  337. };
  338. },
  339. /**
  340. *
  341. * @summary 获取触发器列表 ⏰
  342. * @param {string} [jobId] 作业Id
  343. * @param {*} [options] Override http request option.
  344. * @throws {RequiredError}
  345. */
  346. apiSysJobJobTriggerListGet: async (jobId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  347. const localVarPath = `/api/sysJob/jobTriggerList`;
  348. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  349. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  350. let baseOptions;
  351. if (configuration) {
  352. baseOptions = configuration.baseOptions;
  353. }
  354. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  355. const localVarHeaderParameter = {} as any;
  356. const localVarQueryParameter = {} as any;
  357. // authentication Bearer required
  358. // http bearer authentication required
  359. if (configuration && configuration.accessToken) {
  360. const accessToken = typeof configuration.accessToken === 'function'
  361. ? await configuration.accessToken()
  362. : await configuration.accessToken;
  363. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  364. }
  365. if (jobId !== undefined) {
  366. localVarQueryParameter['JobId'] = jobId;
  367. }
  368. const query = new URLSearchParams(localVarUrlObj.search);
  369. for (const key in localVarQueryParameter) {
  370. query.set(key, localVarQueryParameter[key]);
  371. }
  372. for (const key in options.params) {
  373. query.set(key, options.params[key]);
  374. }
  375. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  376. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  377. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  378. return {
  379. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  380. options: localVarRequestOptions,
  381. };
  382. },
  383. /**
  384. *
  385. * @summary 获取作业分页列表 ⏰
  386. * @param {PageJobDetailInput} [body]
  387. * @param {*} [options] Override http request option.
  388. * @throws {RequiredError}
  389. */
  390. apiSysJobPageJobDetailPost: async (body?: PageJobDetailInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  391. const localVarPath = `/api/sysJob/pageJobDetail`;
  392. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  393. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  394. let baseOptions;
  395. if (configuration) {
  396. baseOptions = configuration.baseOptions;
  397. }
  398. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  399. const localVarHeaderParameter = {} as any;
  400. const localVarQueryParameter = {} as any;
  401. // authentication Bearer required
  402. // http bearer authentication required
  403. if (configuration && configuration.accessToken) {
  404. const accessToken = typeof configuration.accessToken === 'function'
  405. ? await configuration.accessToken()
  406. : await configuration.accessToken;
  407. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  408. }
  409. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  410. const query = new URLSearchParams(localVarUrlObj.search);
  411. for (const key in localVarQueryParameter) {
  412. query.set(key, localVarQueryParameter[key]);
  413. }
  414. for (const key in options.params) {
  415. query.set(key, options.params[key]);
  416. }
  417. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  418. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  419. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  420. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  421. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  422. return {
  423. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  424. options: localVarRequestOptions,
  425. };
  426. },
  427. /**
  428. *
  429. * @summary 获取作业触发器运行记录分页列表 ⏰
  430. * @param {PageJobTriggerRecordInput} [body]
  431. * @param {*} [options] Override http request option.
  432. * @throws {RequiredError}
  433. */
  434. apiSysJobPageJobTriggerRecordPost: async (body?: PageJobTriggerRecordInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  435. const localVarPath = `/api/sysJob/pageJobTriggerRecord`;
  436. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  437. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  438. let baseOptions;
  439. if (configuration) {
  440. baseOptions = configuration.baseOptions;
  441. }
  442. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  443. const localVarHeaderParameter = {} as any;
  444. const localVarQueryParameter = {} as any;
  445. // authentication Bearer required
  446. // http bearer authentication required
  447. if (configuration && configuration.accessToken) {
  448. const accessToken = typeof configuration.accessToken === 'function'
  449. ? await configuration.accessToken()
  450. : await configuration.accessToken;
  451. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  452. }
  453. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  454. const query = new URLSearchParams(localVarUrlObj.search);
  455. for (const key in localVarQueryParameter) {
  456. query.set(key, localVarQueryParameter[key]);
  457. }
  458. for (const key in options.params) {
  459. query.set(key, options.params[key]);
  460. }
  461. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  462. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  463. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  464. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  465. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  466. return {
  467. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  468. options: localVarRequestOptions,
  469. };
  470. },
  471. /**
  472. *
  473. * @summary 暂停所有作业 ⏰
  474. * @param {*} [options] Override http request option.
  475. * @throws {RequiredError}
  476. */
  477. apiSysJobPauseAllJobPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  478. const localVarPath = `/api/sysJob/pauseAllJob`;
  479. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  480. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  481. let baseOptions;
  482. if (configuration) {
  483. baseOptions = configuration.baseOptions;
  484. }
  485. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  486. const localVarHeaderParameter = {} as any;
  487. const localVarQueryParameter = {} as any;
  488. // authentication Bearer required
  489. // http bearer authentication required
  490. if (configuration && configuration.accessToken) {
  491. const accessToken = typeof configuration.accessToken === 'function'
  492. ? await configuration.accessToken()
  493. : await configuration.accessToken;
  494. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  495. }
  496. const query = new URLSearchParams(localVarUrlObj.search);
  497. for (const key in localVarQueryParameter) {
  498. query.set(key, localVarQueryParameter[key]);
  499. }
  500. for (const key in options.params) {
  501. query.set(key, options.params[key]);
  502. }
  503. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  504. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  505. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  506. return {
  507. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  508. options: localVarRequestOptions,
  509. };
  510. },
  511. /**
  512. *
  513. * @summary 暂停作业 ⏰
  514. * @param {JobDetailInput} [body]
  515. * @param {*} [options] Override http request option.
  516. * @throws {RequiredError}
  517. */
  518. apiSysJobPauseJobPost: async (body?: JobDetailInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  519. const localVarPath = `/api/sysJob/pauseJob`;
  520. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  521. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  522. let baseOptions;
  523. if (configuration) {
  524. baseOptions = configuration.baseOptions;
  525. }
  526. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  527. const localVarHeaderParameter = {} as any;
  528. const localVarQueryParameter = {} as any;
  529. // authentication Bearer required
  530. // http bearer authentication required
  531. if (configuration && configuration.accessToken) {
  532. const accessToken = typeof configuration.accessToken === 'function'
  533. ? await configuration.accessToken()
  534. : await configuration.accessToken;
  535. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  536. }
  537. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  538. const query = new URLSearchParams(localVarUrlObj.search);
  539. for (const key in localVarQueryParameter) {
  540. query.set(key, localVarQueryParameter[key]);
  541. }
  542. for (const key in options.params) {
  543. query.set(key, options.params[key]);
  544. }
  545. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  546. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  547. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  548. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  549. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  550. return {
  551. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  552. options: localVarRequestOptions,
  553. };
  554. },
  555. /**
  556. *
  557. * @summary 暂停触发器 ⏰
  558. * @param {JobTriggerInput} [body]
  559. * @param {*} [options] Override http request option.
  560. * @throws {RequiredError}
  561. */
  562. apiSysJobPauseTriggerPost: async (body?: JobTriggerInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  563. const localVarPath = `/api/sysJob/pauseTrigger`;
  564. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  565. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  566. let baseOptions;
  567. if (configuration) {
  568. baseOptions = configuration.baseOptions;
  569. }
  570. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  571. const localVarHeaderParameter = {} as any;
  572. const localVarQueryParameter = {} as any;
  573. // authentication Bearer required
  574. // http bearer authentication required
  575. if (configuration && configuration.accessToken) {
  576. const accessToken = typeof configuration.accessToken === 'function'
  577. ? await configuration.accessToken()
  578. : await configuration.accessToken;
  579. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  580. }
  581. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  582. const query = new URLSearchParams(localVarUrlObj.search);
  583. for (const key in localVarQueryParameter) {
  584. query.set(key, localVarQueryParameter[key]);
  585. }
  586. for (const key in options.params) {
  587. query.set(key, options.params[key]);
  588. }
  589. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  590. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  591. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  592. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  593. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  594. return {
  595. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  596. options: localVarRequestOptions,
  597. };
  598. },
  599. /**
  600. *
  601. * @summary 强制触发所有作业持久化 ⏰
  602. * @param {*} [options] Override http request option.
  603. * @throws {RequiredError}
  604. */
  605. apiSysJobPersistAllPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  606. const localVarPath = `/api/sysJob/persistAll`;
  607. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  608. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  609. let baseOptions;
  610. if (configuration) {
  611. baseOptions = configuration.baseOptions;
  612. }
  613. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  614. const localVarHeaderParameter = {} as any;
  615. const localVarQueryParameter = {} as any;
  616. // authentication Bearer required
  617. // http bearer authentication required
  618. if (configuration && configuration.accessToken) {
  619. const accessToken = typeof configuration.accessToken === 'function'
  620. ? await configuration.accessToken()
  621. : await configuration.accessToken;
  622. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  623. }
  624. const query = new URLSearchParams(localVarUrlObj.search);
  625. for (const key in localVarQueryParameter) {
  626. query.set(key, localVarQueryParameter[key]);
  627. }
  628. for (const key in options.params) {
  629. query.set(key, options.params[key]);
  630. }
  631. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  632. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  633. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  634. return {
  635. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  636. options: localVarRequestOptions,
  637. };
  638. },
  639. /**
  640. *
  641. * @summary 执行作业 ⏰
  642. * @param {JobDetailInput} [body]
  643. * @param {*} [options] Override http request option.
  644. * @throws {RequiredError}
  645. */
  646. apiSysJobRunJobPost: async (body?: JobDetailInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  647. const localVarPath = `/api/sysJob/runJob`;
  648. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  649. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  650. let baseOptions;
  651. if (configuration) {
  652. baseOptions = configuration.baseOptions;
  653. }
  654. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  655. const localVarHeaderParameter = {} as any;
  656. const localVarQueryParameter = {} as any;
  657. // authentication Bearer required
  658. // http bearer authentication required
  659. if (configuration && configuration.accessToken) {
  660. const accessToken = typeof configuration.accessToken === 'function'
  661. ? await configuration.accessToken()
  662. : await configuration.accessToken;
  663. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  664. }
  665. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  666. const query = new URLSearchParams(localVarUrlObj.search);
  667. for (const key in localVarQueryParameter) {
  668. query.set(key, localVarQueryParameter[key]);
  669. }
  670. for (const key in options.params) {
  671. query.set(key, options.params[key]);
  672. }
  673. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  674. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  675. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  676. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  677. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  678. return {
  679. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  680. options: localVarRequestOptions,
  681. };
  682. },
  683. /**
  684. *
  685. * @summary 启动所有作业 ⏰
  686. * @param {*} [options] Override http request option.
  687. * @throws {RequiredError}
  688. */
  689. apiSysJobStartAllJobPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  690. const localVarPath = `/api/sysJob/startAllJob`;
  691. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  692. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  693. let baseOptions;
  694. if (configuration) {
  695. baseOptions = configuration.baseOptions;
  696. }
  697. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  698. const localVarHeaderParameter = {} as any;
  699. const localVarQueryParameter = {} as any;
  700. // authentication Bearer required
  701. // http bearer authentication required
  702. if (configuration && configuration.accessToken) {
  703. const accessToken = typeof configuration.accessToken === 'function'
  704. ? await configuration.accessToken()
  705. : await configuration.accessToken;
  706. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  707. }
  708. const query = new URLSearchParams(localVarUrlObj.search);
  709. for (const key in localVarQueryParameter) {
  710. query.set(key, localVarQueryParameter[key]);
  711. }
  712. for (const key in options.params) {
  713. query.set(key, options.params[key]);
  714. }
  715. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  716. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  717. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  718. return {
  719. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  720. options: localVarRequestOptions,
  721. };
  722. },
  723. /**
  724. *
  725. * @summary 启动作业 ⏰
  726. * @param {JobDetailInput} [body]
  727. * @param {*} [options] Override http request option.
  728. * @throws {RequiredError}
  729. */
  730. apiSysJobStartJobPost: async (body?: JobDetailInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  731. const localVarPath = `/api/sysJob/startJob`;
  732. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  733. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  734. let baseOptions;
  735. if (configuration) {
  736. baseOptions = configuration.baseOptions;
  737. }
  738. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  739. const localVarHeaderParameter = {} as any;
  740. const localVarQueryParameter = {} as any;
  741. // authentication Bearer required
  742. // http bearer authentication required
  743. if (configuration && configuration.accessToken) {
  744. const accessToken = typeof configuration.accessToken === 'function'
  745. ? await configuration.accessToken()
  746. : await configuration.accessToken;
  747. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  748. }
  749. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  750. const query = new URLSearchParams(localVarUrlObj.search);
  751. for (const key in localVarQueryParameter) {
  752. query.set(key, localVarQueryParameter[key]);
  753. }
  754. for (const key in options.params) {
  755. query.set(key, options.params[key]);
  756. }
  757. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  758. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  759. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  760. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  761. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  762. return {
  763. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  764. options: localVarRequestOptions,
  765. };
  766. },
  767. /**
  768. *
  769. * @summary 启动触发器 ⏰
  770. * @param {JobTriggerInput} [body]
  771. * @param {*} [options] Override http request option.
  772. * @throws {RequiredError}
  773. */
  774. apiSysJobStartTriggerPost: async (body?: JobTriggerInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  775. const localVarPath = `/api/sysJob/startTrigger`;
  776. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  777. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  778. let baseOptions;
  779. if (configuration) {
  780. baseOptions = configuration.baseOptions;
  781. }
  782. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  783. const localVarHeaderParameter = {} as any;
  784. const localVarQueryParameter = {} as any;
  785. // authentication Bearer required
  786. // http bearer authentication required
  787. if (configuration && configuration.accessToken) {
  788. const accessToken = typeof configuration.accessToken === 'function'
  789. ? await configuration.accessToken()
  790. : await configuration.accessToken;
  791. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  792. }
  793. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  794. const query = new URLSearchParams(localVarUrlObj.search);
  795. for (const key in localVarQueryParameter) {
  796. query.set(key, localVarQueryParameter[key]);
  797. }
  798. for (const key in options.params) {
  799. query.set(key, options.params[key]);
  800. }
  801. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  802. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  803. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  804. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  805. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  806. return {
  807. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  808. options: localVarRequestOptions,
  809. };
  810. },
  811. /**
  812. *
  813. * @summary 更新作业 ⏰
  814. * @param {UpdateJobDetailInput} [body]
  815. * @param {*} [options] Override http request option.
  816. * @throws {RequiredError}
  817. */
  818. apiSysJobUpdateJobDetailPost: async (body?: UpdateJobDetailInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  819. const localVarPath = `/api/sysJob/updateJobDetail`;
  820. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  821. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  822. let baseOptions;
  823. if (configuration) {
  824. baseOptions = configuration.baseOptions;
  825. }
  826. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  827. const localVarHeaderParameter = {} as any;
  828. const localVarQueryParameter = {} as any;
  829. // authentication Bearer required
  830. // http bearer authentication required
  831. if (configuration && configuration.accessToken) {
  832. const accessToken = typeof configuration.accessToken === 'function'
  833. ? await configuration.accessToken()
  834. : await configuration.accessToken;
  835. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  836. }
  837. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  838. const query = new URLSearchParams(localVarUrlObj.search);
  839. for (const key in localVarQueryParameter) {
  840. query.set(key, localVarQueryParameter[key]);
  841. }
  842. for (const key in options.params) {
  843. query.set(key, options.params[key]);
  844. }
  845. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  846. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  847. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  848. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  849. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  850. return {
  851. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  852. options: localVarRequestOptions,
  853. };
  854. },
  855. /**
  856. *
  857. * @summary 更新触发器 ⏰
  858. * @param {UpdateJobTriggerInput} [body]
  859. * @param {*} [options] Override http request option.
  860. * @throws {RequiredError}
  861. */
  862. apiSysJobUpdateJobTriggerPost: async (body?: UpdateJobTriggerInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  863. const localVarPath = `/api/sysJob/updateJobTrigger`;
  864. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  865. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  866. let baseOptions;
  867. if (configuration) {
  868. baseOptions = configuration.baseOptions;
  869. }
  870. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  871. const localVarHeaderParameter = {} as any;
  872. const localVarQueryParameter = {} as any;
  873. // authentication Bearer required
  874. // http bearer authentication required
  875. if (configuration && configuration.accessToken) {
  876. const accessToken = typeof configuration.accessToken === 'function'
  877. ? await configuration.accessToken()
  878. : await configuration.accessToken;
  879. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  880. }
  881. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  882. const query = new URLSearchParams(localVarUrlObj.search);
  883. for (const key in localVarQueryParameter) {
  884. query.set(key, localVarQueryParameter[key]);
  885. }
  886. for (const key in options.params) {
  887. query.set(key, options.params[key]);
  888. }
  889. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  890. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  891. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  892. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  893. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  894. return {
  895. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  896. options: localVarRequestOptions,
  897. };
  898. },
  899. }
  900. };
  901. /**
  902. * SysJobApi - functional programming interface
  903. * @export
  904. */
  905. export const SysJobApiFp = function(configuration?: Configuration) {
  906. return {
  907. /**
  908. *
  909. * @summary 添加作业 ⏰
  910. * @param {AddJobDetailInput} [body]
  911. * @param {*} [options] Override http request option.
  912. * @throws {RequiredError}
  913. */
  914. async apiSysJobAddJobDetailPost(body?: AddJobDetailInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  915. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobAddJobDetailPost(body, options);
  916. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  917. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  918. return axios.request(axiosRequestArgs);
  919. };
  920. },
  921. /**
  922. *
  923. * @summary 添加触发器 ⏰
  924. * @param {AddJobTriggerInput} [body]
  925. * @param {*} [options] Override http request option.
  926. * @throws {RequiredError}
  927. */
  928. async apiSysJobAddJobTriggerPost(body?: AddJobTriggerInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  929. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobAddJobTriggerPost(body, options);
  930. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  931. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  932. return axios.request(axiosRequestArgs);
  933. };
  934. },
  935. /**
  936. *
  937. * @summary 取消作业 ⏰
  938. * @param {JobDetailInput} [body]
  939. * @param {*} [options] Override http request option.
  940. * @throws {RequiredError}
  941. */
  942. async apiSysJobCancelJobPost(body?: JobDetailInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  943. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobCancelJobPost(body, options);
  944. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  945. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  946. return axios.request(axiosRequestArgs);
  947. };
  948. },
  949. /**
  950. *
  951. * @summary 强制唤醒作业调度器 ⏰
  952. * @param {*} [options] Override http request option.
  953. * @throws {RequiredError}
  954. */
  955. async apiSysJobCancelSleepPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  956. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobCancelSleepPost(options);
  957. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  958. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  959. return axios.request(axiosRequestArgs);
  960. };
  961. },
  962. /**
  963. *
  964. * @summary 删除作业 ⏰
  965. * @param {DeleteJobDetailInput} [body]
  966. * @param {*} [options] Override http request option.
  967. * @throws {RequiredError}
  968. */
  969. async apiSysJobDeleteJobDetailPost(body?: DeleteJobDetailInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  970. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobDeleteJobDetailPost(body, options);
  971. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  972. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  973. return axios.request(axiosRequestArgs);
  974. };
  975. },
  976. /**
  977. *
  978. * @summary 删除触发器 ⏰
  979. * @param {DeleteJobTriggerInput} [body]
  980. * @param {*} [options] Override http request option.
  981. * @throws {RequiredError}
  982. */
  983. async apiSysJobDeleteJobTriggerPost(body?: DeleteJobTriggerInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  984. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobDeleteJobTriggerPost(body, options);
  985. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  986. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  987. return axios.request(axiosRequestArgs);
  988. };
  989. },
  990. /**
  991. *
  992. * @summary 获取集群列表 ⏰
  993. * @param {*} [options] Override http request option.
  994. * @throws {RequiredError}
  995. */
  996. async apiSysJobJobClusterListGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListSysJobCluster>>> {
  997. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobJobClusterListGet(options);
  998. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  999. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  1000. return axios.request(axiosRequestArgs);
  1001. };
  1002. },
  1003. /**
  1004. *
  1005. * @summary 获取触发器列表 ⏰
  1006. * @param {string} [jobId] 作业Id
  1007. * @param {*} [options] Override http request option.
  1008. * @throws {RequiredError}
  1009. */
  1010. async apiSysJobJobTriggerListGet(jobId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListSysJobTrigger>>> {
  1011. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobJobTriggerListGet(jobId, options);
  1012. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  1013. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  1014. return axios.request(axiosRequestArgs);
  1015. };
  1016. },
  1017. /**
  1018. *
  1019. * @summary 获取作业分页列表 ⏰
  1020. * @param {PageJobDetailInput} [body]
  1021. * @param {*} [options] Override http request option.
  1022. * @throws {RequiredError}
  1023. */
  1024. async apiSysJobPageJobDetailPost(body?: PageJobDetailInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSqlSugarPagedListJobDetailOutput>>> {
  1025. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobPageJobDetailPost(body, options);
  1026. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  1027. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  1028. return axios.request(axiosRequestArgs);
  1029. };
  1030. },
  1031. /**
  1032. *
  1033. * @summary 获取作业触发器运行记录分页列表 ⏰
  1034. * @param {PageJobTriggerRecordInput} [body]
  1035. * @param {*} [options] Override http request option.
  1036. * @throws {RequiredError}
  1037. */
  1038. async apiSysJobPageJobTriggerRecordPost(body?: PageJobTriggerRecordInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSqlSugarPagedListSysJobTriggerRecord>>> {
  1039. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobPageJobTriggerRecordPost(body, options);
  1040. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  1041. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  1042. return axios.request(axiosRequestArgs);
  1043. };
  1044. },
  1045. /**
  1046. *
  1047. * @summary 暂停所有作业 ⏰
  1048. * @param {*} [options] Override http request option.
  1049. * @throws {RequiredError}
  1050. */
  1051. async apiSysJobPauseAllJobPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  1052. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobPauseAllJobPost(options);
  1053. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  1054. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  1055. return axios.request(axiosRequestArgs);
  1056. };
  1057. },
  1058. /**
  1059. *
  1060. * @summary 暂停作业 ⏰
  1061. * @param {JobDetailInput} [body]
  1062. * @param {*} [options] Override http request option.
  1063. * @throws {RequiredError}
  1064. */
  1065. async apiSysJobPauseJobPost(body?: JobDetailInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  1066. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobPauseJobPost(body, options);
  1067. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  1068. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  1069. return axios.request(axiosRequestArgs);
  1070. };
  1071. },
  1072. /**
  1073. *
  1074. * @summary 暂停触发器 ⏰
  1075. * @param {JobTriggerInput} [body]
  1076. * @param {*} [options] Override http request option.
  1077. * @throws {RequiredError}
  1078. */
  1079. async apiSysJobPauseTriggerPost(body?: JobTriggerInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  1080. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobPauseTriggerPost(body, options);
  1081. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  1082. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  1083. return axios.request(axiosRequestArgs);
  1084. };
  1085. },
  1086. /**
  1087. *
  1088. * @summary 强制触发所有作业持久化 ⏰
  1089. * @param {*} [options] Override http request option.
  1090. * @throws {RequiredError}
  1091. */
  1092. async apiSysJobPersistAllPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  1093. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobPersistAllPost(options);
  1094. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  1095. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  1096. return axios.request(axiosRequestArgs);
  1097. };
  1098. },
  1099. /**
  1100. *
  1101. * @summary 执行作业 ⏰
  1102. * @param {JobDetailInput} [body]
  1103. * @param {*} [options] Override http request option.
  1104. * @throws {RequiredError}
  1105. */
  1106. async apiSysJobRunJobPost(body?: JobDetailInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  1107. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobRunJobPost(body, options);
  1108. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  1109. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  1110. return axios.request(axiosRequestArgs);
  1111. };
  1112. },
  1113. /**
  1114. *
  1115. * @summary 启动所有作业 ⏰
  1116. * @param {*} [options] Override http request option.
  1117. * @throws {RequiredError}
  1118. */
  1119. async apiSysJobStartAllJobPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  1120. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobStartAllJobPost(options);
  1121. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  1122. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  1123. return axios.request(axiosRequestArgs);
  1124. };
  1125. },
  1126. /**
  1127. *
  1128. * @summary 启动作业 ⏰
  1129. * @param {JobDetailInput} [body]
  1130. * @param {*} [options] Override http request option.
  1131. * @throws {RequiredError}
  1132. */
  1133. async apiSysJobStartJobPost(body?: JobDetailInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  1134. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobStartJobPost(body, options);
  1135. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  1136. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  1137. return axios.request(axiosRequestArgs);
  1138. };
  1139. },
  1140. /**
  1141. *
  1142. * @summary 启动触发器 ⏰
  1143. * @param {JobTriggerInput} [body]
  1144. * @param {*} [options] Override http request option.
  1145. * @throws {RequiredError}
  1146. */
  1147. async apiSysJobStartTriggerPost(body?: JobTriggerInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  1148. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobStartTriggerPost(body, options);
  1149. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  1150. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  1151. return axios.request(axiosRequestArgs);
  1152. };
  1153. },
  1154. /**
  1155. *
  1156. * @summary 更新作业 ⏰
  1157. * @param {UpdateJobDetailInput} [body]
  1158. * @param {*} [options] Override http request option.
  1159. * @throws {RequiredError}
  1160. */
  1161. async apiSysJobUpdateJobDetailPost(body?: UpdateJobDetailInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  1162. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobUpdateJobDetailPost(body, options);
  1163. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  1164. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  1165. return axios.request(axiosRequestArgs);
  1166. };
  1167. },
  1168. /**
  1169. *
  1170. * @summary 更新触发器 ⏰
  1171. * @param {UpdateJobTriggerInput} [body]
  1172. * @param {*} [options] Override http request option.
  1173. * @throws {RequiredError}
  1174. */
  1175. async apiSysJobUpdateJobTriggerPost(body?: UpdateJobTriggerInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  1176. const localVarAxiosArgs = await SysJobApiAxiosParamCreator(configuration).apiSysJobUpdateJobTriggerPost(body, options);
  1177. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  1178. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  1179. return axios.request(axiosRequestArgs);
  1180. };
  1181. },
  1182. }
  1183. };
  1184. /**
  1185. * SysJobApi - factory interface
  1186. * @export
  1187. */
  1188. export const SysJobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  1189. return {
  1190. /**
  1191. *
  1192. * @summary 添加作业 ⏰
  1193. * @param {AddJobDetailInput} [body]
  1194. * @param {*} [options] Override http request option.
  1195. * @throws {RequiredError}
  1196. */
  1197. async apiSysJobAddJobDetailPost(body?: AddJobDetailInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1198. return SysJobApiFp(configuration).apiSysJobAddJobDetailPost(body, options).then((request) => request(axios, basePath));
  1199. },
  1200. /**
  1201. *
  1202. * @summary 添加触发器 ⏰
  1203. * @param {AddJobTriggerInput} [body]
  1204. * @param {*} [options] Override http request option.
  1205. * @throws {RequiredError}
  1206. */
  1207. async apiSysJobAddJobTriggerPost(body?: AddJobTriggerInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1208. return SysJobApiFp(configuration).apiSysJobAddJobTriggerPost(body, options).then((request) => request(axios, basePath));
  1209. },
  1210. /**
  1211. *
  1212. * @summary 取消作业 ⏰
  1213. * @param {JobDetailInput} [body]
  1214. * @param {*} [options] Override http request option.
  1215. * @throws {RequiredError}
  1216. */
  1217. async apiSysJobCancelJobPost(body?: JobDetailInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1218. return SysJobApiFp(configuration).apiSysJobCancelJobPost(body, options).then((request) => request(axios, basePath));
  1219. },
  1220. /**
  1221. *
  1222. * @summary 强制唤醒作业调度器 ⏰
  1223. * @param {*} [options] Override http request option.
  1224. * @throws {RequiredError}
  1225. */
  1226. async apiSysJobCancelSleepPost(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1227. return SysJobApiFp(configuration).apiSysJobCancelSleepPost(options).then((request) => request(axios, basePath));
  1228. },
  1229. /**
  1230. *
  1231. * @summary 删除作业 ⏰
  1232. * @param {DeleteJobDetailInput} [body]
  1233. * @param {*} [options] Override http request option.
  1234. * @throws {RequiredError}
  1235. */
  1236. async apiSysJobDeleteJobDetailPost(body?: DeleteJobDetailInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1237. return SysJobApiFp(configuration).apiSysJobDeleteJobDetailPost(body, options).then((request) => request(axios, basePath));
  1238. },
  1239. /**
  1240. *
  1241. * @summary 删除触发器 ⏰
  1242. * @param {DeleteJobTriggerInput} [body]
  1243. * @param {*} [options] Override http request option.
  1244. * @throws {RequiredError}
  1245. */
  1246. async apiSysJobDeleteJobTriggerPost(body?: DeleteJobTriggerInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1247. return SysJobApiFp(configuration).apiSysJobDeleteJobTriggerPost(body, options).then((request) => request(axios, basePath));
  1248. },
  1249. /**
  1250. *
  1251. * @summary 获取集群列表 ⏰
  1252. * @param {*} [options] Override http request option.
  1253. * @throws {RequiredError}
  1254. */
  1255. async apiSysJobJobClusterListGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListSysJobCluster>> {
  1256. return SysJobApiFp(configuration).apiSysJobJobClusterListGet(options).then((request) => request(axios, basePath));
  1257. },
  1258. /**
  1259. *
  1260. * @summary 获取触发器列表 ⏰
  1261. * @param {string} [jobId] 作业Id
  1262. * @param {*} [options] Override http request option.
  1263. * @throws {RequiredError}
  1264. */
  1265. async apiSysJobJobTriggerListGet(jobId?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListSysJobTrigger>> {
  1266. return SysJobApiFp(configuration).apiSysJobJobTriggerListGet(jobId, options).then((request) => request(axios, basePath));
  1267. },
  1268. /**
  1269. *
  1270. * @summary 获取作业分页列表 ⏰
  1271. * @param {PageJobDetailInput} [body]
  1272. * @param {*} [options] Override http request option.
  1273. * @throws {RequiredError}
  1274. */
  1275. async apiSysJobPageJobDetailPost(body?: PageJobDetailInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSqlSugarPagedListJobDetailOutput>> {
  1276. return SysJobApiFp(configuration).apiSysJobPageJobDetailPost(body, options).then((request) => request(axios, basePath));
  1277. },
  1278. /**
  1279. *
  1280. * @summary 获取作业触发器运行记录分页列表 ⏰
  1281. * @param {PageJobTriggerRecordInput} [body]
  1282. * @param {*} [options] Override http request option.
  1283. * @throws {RequiredError}
  1284. */
  1285. async apiSysJobPageJobTriggerRecordPost(body?: PageJobTriggerRecordInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSqlSugarPagedListSysJobTriggerRecord>> {
  1286. return SysJobApiFp(configuration).apiSysJobPageJobTriggerRecordPost(body, options).then((request) => request(axios, basePath));
  1287. },
  1288. /**
  1289. *
  1290. * @summary 暂停所有作业 ⏰
  1291. * @param {*} [options] Override http request option.
  1292. * @throws {RequiredError}
  1293. */
  1294. async apiSysJobPauseAllJobPost(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1295. return SysJobApiFp(configuration).apiSysJobPauseAllJobPost(options).then((request) => request(axios, basePath));
  1296. },
  1297. /**
  1298. *
  1299. * @summary 暂停作业 ⏰
  1300. * @param {JobDetailInput} [body]
  1301. * @param {*} [options] Override http request option.
  1302. * @throws {RequiredError}
  1303. */
  1304. async apiSysJobPauseJobPost(body?: JobDetailInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1305. return SysJobApiFp(configuration).apiSysJobPauseJobPost(body, options).then((request) => request(axios, basePath));
  1306. },
  1307. /**
  1308. *
  1309. * @summary 暂停触发器 ⏰
  1310. * @param {JobTriggerInput} [body]
  1311. * @param {*} [options] Override http request option.
  1312. * @throws {RequiredError}
  1313. */
  1314. async apiSysJobPauseTriggerPost(body?: JobTriggerInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1315. return SysJobApiFp(configuration).apiSysJobPauseTriggerPost(body, options).then((request) => request(axios, basePath));
  1316. },
  1317. /**
  1318. *
  1319. * @summary 强制触发所有作业持久化 ⏰
  1320. * @param {*} [options] Override http request option.
  1321. * @throws {RequiredError}
  1322. */
  1323. async apiSysJobPersistAllPost(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1324. return SysJobApiFp(configuration).apiSysJobPersistAllPost(options).then((request) => request(axios, basePath));
  1325. },
  1326. /**
  1327. *
  1328. * @summary 执行作业 ⏰
  1329. * @param {JobDetailInput} [body]
  1330. * @param {*} [options] Override http request option.
  1331. * @throws {RequiredError}
  1332. */
  1333. async apiSysJobRunJobPost(body?: JobDetailInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1334. return SysJobApiFp(configuration).apiSysJobRunJobPost(body, options).then((request) => request(axios, basePath));
  1335. },
  1336. /**
  1337. *
  1338. * @summary 启动所有作业 ⏰
  1339. * @param {*} [options] Override http request option.
  1340. * @throws {RequiredError}
  1341. */
  1342. async apiSysJobStartAllJobPost(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1343. return SysJobApiFp(configuration).apiSysJobStartAllJobPost(options).then((request) => request(axios, basePath));
  1344. },
  1345. /**
  1346. *
  1347. * @summary 启动作业 ⏰
  1348. * @param {JobDetailInput} [body]
  1349. * @param {*} [options] Override http request option.
  1350. * @throws {RequiredError}
  1351. */
  1352. async apiSysJobStartJobPost(body?: JobDetailInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1353. return SysJobApiFp(configuration).apiSysJobStartJobPost(body, options).then((request) => request(axios, basePath));
  1354. },
  1355. /**
  1356. *
  1357. * @summary 启动触发器 ⏰
  1358. * @param {JobTriggerInput} [body]
  1359. * @param {*} [options] Override http request option.
  1360. * @throws {RequiredError}
  1361. */
  1362. async apiSysJobStartTriggerPost(body?: JobTriggerInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1363. return SysJobApiFp(configuration).apiSysJobStartTriggerPost(body, options).then((request) => request(axios, basePath));
  1364. },
  1365. /**
  1366. *
  1367. * @summary 更新作业 ⏰
  1368. * @param {UpdateJobDetailInput} [body]
  1369. * @param {*} [options] Override http request option.
  1370. * @throws {RequiredError}
  1371. */
  1372. async apiSysJobUpdateJobDetailPost(body?: UpdateJobDetailInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1373. return SysJobApiFp(configuration).apiSysJobUpdateJobDetailPost(body, options).then((request) => request(axios, basePath));
  1374. },
  1375. /**
  1376. *
  1377. * @summary 更新触发器 ⏰
  1378. * @param {UpdateJobTriggerInput} [body]
  1379. * @param {*} [options] Override http request option.
  1380. * @throws {RequiredError}
  1381. */
  1382. async apiSysJobUpdateJobTriggerPost(body?: UpdateJobTriggerInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  1383. return SysJobApiFp(configuration).apiSysJobUpdateJobTriggerPost(body, options).then((request) => request(axios, basePath));
  1384. },
  1385. };
  1386. };
  1387. /**
  1388. * SysJobApi - object-oriented interface
  1389. * @export
  1390. * @class SysJobApi
  1391. * @extends {BaseAPI}
  1392. */
  1393. export class SysJobApi extends BaseAPI {
  1394. /**
  1395. *
  1396. * @summary 添加作业 ⏰
  1397. * @param {AddJobDetailInput} [body]
  1398. * @param {*} [options] Override http request option.
  1399. * @throws {RequiredError}
  1400. * @memberof SysJobApi
  1401. */
  1402. public async apiSysJobAddJobDetailPost(body?: AddJobDetailInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1403. return SysJobApiFp(this.configuration).apiSysJobAddJobDetailPost(body, options).then((request) => request(this.axios, this.basePath));
  1404. }
  1405. /**
  1406. *
  1407. * @summary 添加触发器 ⏰
  1408. * @param {AddJobTriggerInput} [body]
  1409. * @param {*} [options] Override http request option.
  1410. * @throws {RequiredError}
  1411. * @memberof SysJobApi
  1412. */
  1413. public async apiSysJobAddJobTriggerPost(body?: AddJobTriggerInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1414. return SysJobApiFp(this.configuration).apiSysJobAddJobTriggerPost(body, options).then((request) => request(this.axios, this.basePath));
  1415. }
  1416. /**
  1417. *
  1418. * @summary 取消作业 ⏰
  1419. * @param {JobDetailInput} [body]
  1420. * @param {*} [options] Override http request option.
  1421. * @throws {RequiredError}
  1422. * @memberof SysJobApi
  1423. */
  1424. public async apiSysJobCancelJobPost(body?: JobDetailInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1425. return SysJobApiFp(this.configuration).apiSysJobCancelJobPost(body, options).then((request) => request(this.axios, this.basePath));
  1426. }
  1427. /**
  1428. *
  1429. * @summary 强制唤醒作业调度器 ⏰
  1430. * @param {*} [options] Override http request option.
  1431. * @throws {RequiredError}
  1432. * @memberof SysJobApi
  1433. */
  1434. public async apiSysJobCancelSleepPost(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1435. return SysJobApiFp(this.configuration).apiSysJobCancelSleepPost(options).then((request) => request(this.axios, this.basePath));
  1436. }
  1437. /**
  1438. *
  1439. * @summary 删除作业 ⏰
  1440. * @param {DeleteJobDetailInput} [body]
  1441. * @param {*} [options] Override http request option.
  1442. * @throws {RequiredError}
  1443. * @memberof SysJobApi
  1444. */
  1445. public async apiSysJobDeleteJobDetailPost(body?: DeleteJobDetailInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1446. return SysJobApiFp(this.configuration).apiSysJobDeleteJobDetailPost(body, options).then((request) => request(this.axios, this.basePath));
  1447. }
  1448. /**
  1449. *
  1450. * @summary 删除触发器 ⏰
  1451. * @param {DeleteJobTriggerInput} [body]
  1452. * @param {*} [options] Override http request option.
  1453. * @throws {RequiredError}
  1454. * @memberof SysJobApi
  1455. */
  1456. public async apiSysJobDeleteJobTriggerPost(body?: DeleteJobTriggerInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1457. return SysJobApiFp(this.configuration).apiSysJobDeleteJobTriggerPost(body, options).then((request) => request(this.axios, this.basePath));
  1458. }
  1459. /**
  1460. *
  1461. * @summary 获取集群列表 ⏰
  1462. * @param {*} [options] Override http request option.
  1463. * @throws {RequiredError}
  1464. * @memberof SysJobApi
  1465. */
  1466. public async apiSysJobJobClusterListGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListSysJobCluster>> {
  1467. return SysJobApiFp(this.configuration).apiSysJobJobClusterListGet(options).then((request) => request(this.axios, this.basePath));
  1468. }
  1469. /**
  1470. *
  1471. * @summary 获取触发器列表 ⏰
  1472. * @param {string} [jobId] 作业Id
  1473. * @param {*} [options] Override http request option.
  1474. * @throws {RequiredError}
  1475. * @memberof SysJobApi
  1476. */
  1477. public async apiSysJobJobTriggerListGet(jobId?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListSysJobTrigger>> {
  1478. return SysJobApiFp(this.configuration).apiSysJobJobTriggerListGet(jobId, options).then((request) => request(this.axios, this.basePath));
  1479. }
  1480. /**
  1481. *
  1482. * @summary 获取作业分页列表 ⏰
  1483. * @param {PageJobDetailInput} [body]
  1484. * @param {*} [options] Override http request option.
  1485. * @throws {RequiredError}
  1486. * @memberof SysJobApi
  1487. */
  1488. public async apiSysJobPageJobDetailPost(body?: PageJobDetailInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSqlSugarPagedListJobDetailOutput>> {
  1489. return SysJobApiFp(this.configuration).apiSysJobPageJobDetailPost(body, options).then((request) => request(this.axios, this.basePath));
  1490. }
  1491. /**
  1492. *
  1493. * @summary 获取作业触发器运行记录分页列表 ⏰
  1494. * @param {PageJobTriggerRecordInput} [body]
  1495. * @param {*} [options] Override http request option.
  1496. * @throws {RequiredError}
  1497. * @memberof SysJobApi
  1498. */
  1499. public async apiSysJobPageJobTriggerRecordPost(body?: PageJobTriggerRecordInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSqlSugarPagedListSysJobTriggerRecord>> {
  1500. return SysJobApiFp(this.configuration).apiSysJobPageJobTriggerRecordPost(body, options).then((request) => request(this.axios, this.basePath));
  1501. }
  1502. /**
  1503. *
  1504. * @summary 暂停所有作业 ⏰
  1505. * @param {*} [options] Override http request option.
  1506. * @throws {RequiredError}
  1507. * @memberof SysJobApi
  1508. */
  1509. public async apiSysJobPauseAllJobPost(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1510. return SysJobApiFp(this.configuration).apiSysJobPauseAllJobPost(options).then((request) => request(this.axios, this.basePath));
  1511. }
  1512. /**
  1513. *
  1514. * @summary 暂停作业 ⏰
  1515. * @param {JobDetailInput} [body]
  1516. * @param {*} [options] Override http request option.
  1517. * @throws {RequiredError}
  1518. * @memberof SysJobApi
  1519. */
  1520. public async apiSysJobPauseJobPost(body?: JobDetailInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1521. return SysJobApiFp(this.configuration).apiSysJobPauseJobPost(body, options).then((request) => request(this.axios, this.basePath));
  1522. }
  1523. /**
  1524. *
  1525. * @summary 暂停触发器 ⏰
  1526. * @param {JobTriggerInput} [body]
  1527. * @param {*} [options] Override http request option.
  1528. * @throws {RequiredError}
  1529. * @memberof SysJobApi
  1530. */
  1531. public async apiSysJobPauseTriggerPost(body?: JobTriggerInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1532. return SysJobApiFp(this.configuration).apiSysJobPauseTriggerPost(body, options).then((request) => request(this.axios, this.basePath));
  1533. }
  1534. /**
  1535. *
  1536. * @summary 强制触发所有作业持久化 ⏰
  1537. * @param {*} [options] Override http request option.
  1538. * @throws {RequiredError}
  1539. * @memberof SysJobApi
  1540. */
  1541. public async apiSysJobPersistAllPost(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1542. return SysJobApiFp(this.configuration).apiSysJobPersistAllPost(options).then((request) => request(this.axios, this.basePath));
  1543. }
  1544. /**
  1545. *
  1546. * @summary 执行作业 ⏰
  1547. * @param {JobDetailInput} [body]
  1548. * @param {*} [options] Override http request option.
  1549. * @throws {RequiredError}
  1550. * @memberof SysJobApi
  1551. */
  1552. public async apiSysJobRunJobPost(body?: JobDetailInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1553. return SysJobApiFp(this.configuration).apiSysJobRunJobPost(body, options).then((request) => request(this.axios, this.basePath));
  1554. }
  1555. /**
  1556. *
  1557. * @summary 启动所有作业 ⏰
  1558. * @param {*} [options] Override http request option.
  1559. * @throws {RequiredError}
  1560. * @memberof SysJobApi
  1561. */
  1562. public async apiSysJobStartAllJobPost(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1563. return SysJobApiFp(this.configuration).apiSysJobStartAllJobPost(options).then((request) => request(this.axios, this.basePath));
  1564. }
  1565. /**
  1566. *
  1567. * @summary 启动作业 ⏰
  1568. * @param {JobDetailInput} [body]
  1569. * @param {*} [options] Override http request option.
  1570. * @throws {RequiredError}
  1571. * @memberof SysJobApi
  1572. */
  1573. public async apiSysJobStartJobPost(body?: JobDetailInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1574. return SysJobApiFp(this.configuration).apiSysJobStartJobPost(body, options).then((request) => request(this.axios, this.basePath));
  1575. }
  1576. /**
  1577. *
  1578. * @summary 启动触发器 ⏰
  1579. * @param {JobTriggerInput} [body]
  1580. * @param {*} [options] Override http request option.
  1581. * @throws {RequiredError}
  1582. * @memberof SysJobApi
  1583. */
  1584. public async apiSysJobStartTriggerPost(body?: JobTriggerInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1585. return SysJobApiFp(this.configuration).apiSysJobStartTriggerPost(body, options).then((request) => request(this.axios, this.basePath));
  1586. }
  1587. /**
  1588. *
  1589. * @summary 更新作业 ⏰
  1590. * @param {UpdateJobDetailInput} [body]
  1591. * @param {*} [options] Override http request option.
  1592. * @throws {RequiredError}
  1593. * @memberof SysJobApi
  1594. */
  1595. public async apiSysJobUpdateJobDetailPost(body?: UpdateJobDetailInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1596. return SysJobApiFp(this.configuration).apiSysJobUpdateJobDetailPost(body, options).then((request) => request(this.axios, this.basePath));
  1597. }
  1598. /**
  1599. *
  1600. * @summary 更新触发器 ⏰
  1601. * @param {UpdateJobTriggerInput} [body]
  1602. * @param {*} [options] Override http request option.
  1603. * @throws {RequiredError}
  1604. * @memberof SysJobApi
  1605. */
  1606. public async apiSysJobUpdateJobTriggerPost(body?: UpdateJobTriggerInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  1607. return SysJobApiFp(this.configuration).apiSysJobUpdateJobTriggerPost(body, options).then((request) => request(this.axios, this.basePath));
  1608. }
  1609. }