@embedworkflow/sdk 1.0.0

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 (314) hide show
  1. package/README.md +45 -0
  2. package/dist/api/accounts-api.d.ts +172 -0
  3. package/dist/api/accounts-api.js +267 -0
  4. package/dist/api/action-types-api.d.ts +359 -0
  5. package/dist/api/action-types-api.js +571 -0
  6. package/dist/api/actions-api.d.ts +421 -0
  7. package/dist/api/actions-api.js +650 -0
  8. package/dist/api/app-connections-api.d.ts +295 -0
  9. package/dist/api/app-connections-api.js +461 -0
  10. package/dist/api/available-apps-api.d.ts +133 -0
  11. package/dist/api/available-apps-api.js +207 -0
  12. package/dist/api/data-fields-api.d.ts +173 -0
  13. package/dist/api/data-fields-api.js +267 -0
  14. package/dist/api/events-api.d.ts +100 -0
  15. package/dist/api/events-api.js +152 -0
  16. package/dist/api/executions-api.d.ts +196 -0
  17. package/dist/api/executions-api.js +303 -0
  18. package/dist/api/installed-apps-api.d.ts +219 -0
  19. package/dist/api/installed-apps-api.js +343 -0
  20. package/dist/api/payments-api.d.ts +100 -0
  21. package/dist/api/payments-api.js +152 -0
  22. package/dist/api/triggers-api.d.ts +232 -0
  23. package/dist/api/triggers-api.js +365 -0
  24. package/dist/api/users-api.d.ts +276 -0
  25. package/dist/api/users-api.js +433 -0
  26. package/dist/api/workflows-api.d.ts +605 -0
  27. package/dist/api/workflows-api.js +940 -0
  28. package/dist/api.d.ts +24 -0
  29. package/dist/api.js +42 -0
  30. package/dist/base.d.ts +66 -0
  31. package/dist/base.js +65 -0
  32. package/dist/common.d.ts +65 -0
  33. package/dist/common.js +161 -0
  34. package/dist/configuration.d.ts +91 -0
  35. package/dist/configuration.js +43 -0
  36. package/dist/esm/api/accounts-api.d.ts +172 -0
  37. package/dist/esm/api/accounts-api.js +260 -0
  38. package/dist/esm/api/action-types-api.d.ts +359 -0
  39. package/dist/esm/api/action-types-api.js +564 -0
  40. package/dist/esm/api/actions-api.d.ts +421 -0
  41. package/dist/esm/api/actions-api.js +643 -0
  42. package/dist/esm/api/app-connections-api.d.ts +295 -0
  43. package/dist/esm/api/app-connections-api.js +454 -0
  44. package/dist/esm/api/available-apps-api.d.ts +133 -0
  45. package/dist/esm/api/available-apps-api.js +200 -0
  46. package/dist/esm/api/data-fields-api.d.ts +173 -0
  47. package/dist/esm/api/data-fields-api.js +260 -0
  48. package/dist/esm/api/events-api.d.ts +100 -0
  49. package/dist/esm/api/events-api.js +145 -0
  50. package/dist/esm/api/executions-api.d.ts +196 -0
  51. package/dist/esm/api/executions-api.js +296 -0
  52. package/dist/esm/api/installed-apps-api.d.ts +219 -0
  53. package/dist/esm/api/installed-apps-api.js +336 -0
  54. package/dist/esm/api/payments-api.d.ts +100 -0
  55. package/dist/esm/api/payments-api.js +145 -0
  56. package/dist/esm/api/triggers-api.d.ts +232 -0
  57. package/dist/esm/api/triggers-api.js +358 -0
  58. package/dist/esm/api/users-api.d.ts +276 -0
  59. package/dist/esm/api/users-api.js +426 -0
  60. package/dist/esm/api/workflows-api.d.ts +605 -0
  61. package/dist/esm/api/workflows-api.js +933 -0
  62. package/dist/esm/api.d.ts +24 -0
  63. package/dist/esm/api.js +26 -0
  64. package/dist/esm/base.d.ts +66 -0
  65. package/dist/esm/base.js +60 -0
  66. package/dist/esm/common.d.ts +65 -0
  67. package/dist/esm/common.js +149 -0
  68. package/dist/esm/configuration.d.ts +91 -0
  69. package/dist/esm/configuration.js +39 -0
  70. package/dist/esm/index.d.ts +79 -0
  71. package/dist/esm/index.js +88 -0
  72. package/dist/esm/models/api-v1-action-types-post-request-form-draft-inner.d.ts +75 -0
  73. package/dist/esm/models/api-v1-action-types-post-request-form-draft-inner.js +25 -0
  74. package/dist/esm/models/api-v1-action-types-post-request-icon-draft.d.ts +36 -0
  75. package/dist/esm/models/api-v1-action-types-post-request-icon-draft.js +14 -0
  76. package/dist/esm/models/api-v1-action-types-post-request.d.ts +105 -0
  77. package/dist/esm/models/api-v1-action-types-post-request.js +14 -0
  78. package/dist/esm/models/api-v1-app-connections-post-request.d.ts +42 -0
  79. package/dist/esm/models/api-v1-app-connections-post-request.js +14 -0
  80. package/dist/esm/models/clone-workflow201-response.d.ts +183 -0
  81. package/dist/esm/models/clone-workflow201-response.js +17 -0
  82. package/dist/esm/models/create-user-token-request.d.ts +31 -0
  83. package/dist/esm/models/create-user-token-request.js +14 -0
  84. package/dist/esm/models/create-user-token200-response.d.ts +24 -0
  85. package/dist/esm/models/create-user-token200-response.js +14 -0
  86. package/dist/esm/models/create-workflow-request-template-draft-nodes-inner.d.ts +132 -0
  87. package/dist/esm/models/create-workflow-request-template-draft-nodes-inner.js +25 -0
  88. package/dist/esm/models/create-workflow-request-template-draft.d.ts +31 -0
  89. package/dist/esm/models/create-workflow-request-template-draft.js +14 -0
  90. package/dist/esm/models/create-workflow-request.d.ts +67 -0
  91. package/dist/esm/models/create-workflow-request.js +14 -0
  92. package/dist/esm/models/delete-workflow200-response-one-of.d.ts +24 -0
  93. package/dist/esm/models/delete-workflow200-response-one-of.js +14 -0
  94. package/dist/esm/models/delete-workflow200-response-one-of1.d.ts +24 -0
  95. package/dist/esm/models/delete-workflow200-response-one-of1.js +14 -0
  96. package/dist/esm/models/delete-workflow200-response.d.ts +19 -0
  97. package/dist/esm/models/delete-workflow200-response.js +14 -0
  98. package/dist/esm/models/discard-workflow-draft-request.d.ts +30 -0
  99. package/dist/esm/models/discard-workflow-draft-request.js +14 -0
  100. package/dist/esm/models/execute-workflow-request.d.ts +43 -0
  101. package/dist/esm/models/execute-workflow-request.js +17 -0
  102. package/dist/esm/models/execute-workflow201-response.d.ts +122 -0
  103. package/dist/esm/models/execute-workflow201-response.js +14 -0
  104. package/dist/esm/models/import-configuration-request-schema.d.ts +19 -0
  105. package/dist/esm/models/import-configuration-request-schema.js +14 -0
  106. package/dist/esm/models/import-configuration-request.d.ts +38 -0
  107. package/dist/esm/models/import-configuration-request.js +18 -0
  108. package/dist/esm/models/import-configuration201-response.d.ts +48 -0
  109. package/dist/esm/models/import-configuration201-response.js +14 -0
  110. package/dist/esm/models/index.d.ts +59 -0
  111. package/dist/esm/models/index.js +59 -0
  112. package/dist/esm/models/install-app-request.d.ts +30 -0
  113. package/dist/esm/models/install-app-request.js +14 -0
  114. package/dist/esm/models/list-action-types200-response-collection-inner.d.ts +260 -0
  115. package/dist/esm/models/list-action-types200-response-collection-inner.js +27 -0
  116. package/dist/esm/models/list-action-types200-response-meta.d.ts +36 -0
  117. package/dist/esm/models/list-action-types200-response-meta.js +14 -0
  118. package/dist/esm/models/list-action-types200-response.d.ts +32 -0
  119. package/dist/esm/models/list-action-types200-response.js +14 -0
  120. package/dist/esm/models/list-actions200-response-collection-inner.d.ts +144 -0
  121. package/dist/esm/models/list-actions200-response-collection-inner.js +14 -0
  122. package/dist/esm/models/list-actions200-response.d.ts +32 -0
  123. package/dist/esm/models/list-actions200-response.js +14 -0
  124. package/dist/esm/models/list-app-connections200-response-collection-inner.d.ts +66 -0
  125. package/dist/esm/models/list-app-connections200-response-collection-inner.js +14 -0
  126. package/dist/esm/models/list-app-connections200-response.d.ts +32 -0
  127. package/dist/esm/models/list-app-connections200-response.js +14 -0
  128. package/dist/esm/models/list-available-apps200-response-collection-inner.d.ts +66 -0
  129. package/dist/esm/models/list-available-apps200-response-collection-inner.js +14 -0
  130. package/dist/esm/models/list-available-apps200-response.d.ts +32 -0
  131. package/dist/esm/models/list-available-apps200-response.js +14 -0
  132. package/dist/esm/models/list-data-fields-type-parameter.d.ts +16 -0
  133. package/dist/esm/models/list-data-fields-type-parameter.js +14 -0
  134. package/dist/esm/models/list-data-fields200-response-collection-inner.d.ts +84 -0
  135. package/dist/esm/models/list-data-fields200-response-collection-inner.js +14 -0
  136. package/dist/esm/models/list-data-fields200-response.d.ts +32 -0
  137. package/dist/esm/models/list-data-fields200-response.js +14 -0
  138. package/dist/esm/models/list-events200-response-collection-inner.d.ts +78 -0
  139. package/dist/esm/models/list-events200-response-collection-inner.js +14 -0
  140. package/dist/esm/models/list-events200-response.d.ts +32 -0
  141. package/dist/esm/models/list-events200-response.js +14 -0
  142. package/dist/esm/models/list-installed-apps200-response-collection-inner.d.ts +114 -0
  143. package/dist/esm/models/list-installed-apps200-response-collection-inner.js +14 -0
  144. package/dist/esm/models/list-installed-apps200-response.d.ts +32 -0
  145. package/dist/esm/models/list-installed-apps200-response.js +14 -0
  146. package/dist/esm/models/list-triggers200-response-collection-inner.d.ts +102 -0
  147. package/dist/esm/models/list-triggers200-response-collection-inner.js +14 -0
  148. package/dist/esm/models/list-triggers200-response.d.ts +32 -0
  149. package/dist/esm/models/list-triggers200-response.js +14 -0
  150. package/dist/esm/models/list-users200-response-collection-inner.d.ts +84 -0
  151. package/dist/esm/models/list-users200-response-collection-inner.js +14 -0
  152. package/dist/esm/models/list-users200-response.d.ts +32 -0
  153. package/dist/esm/models/list-users200-response.js +14 -0
  154. package/dist/esm/models/list-workflow-executions200-response.d.ts +32 -0
  155. package/dist/esm/models/list-workflow-executions200-response.js +14 -0
  156. package/dist/esm/models/list-workflow-versions200-response-collection-inner.d.ts +60 -0
  157. package/dist/esm/models/list-workflow-versions200-response-collection-inner.js +14 -0
  158. package/dist/esm/models/list-workflow-versions200-response.d.ts +32 -0
  159. package/dist/esm/models/list-workflow-versions200-response.js +14 -0
  160. package/dist/esm/models/publish-workflow-request.d.ts +24 -0
  161. package/dist/esm/models/publish-workflow-request.js +14 -0
  162. package/dist/esm/models/retrieve-account200-response.d.ts +92 -0
  163. package/dist/esm/models/retrieve-account200-response.js +14 -0
  164. package/dist/esm/models/retrieve-action-type404-response.d.ts +36 -0
  165. package/dist/esm/models/retrieve-action-type404-response.js +14 -0
  166. package/dist/esm/models/retrieve-available-app200-response.d.ts +74 -0
  167. package/dist/esm/models/retrieve-available-app200-response.js +14 -0
  168. package/dist/esm/models/retrieve-execution200-response.d.ts +136 -0
  169. package/dist/esm/models/retrieve-execution200-response.js +14 -0
  170. package/dist/esm/models/retrieve-installed-app200-response.d.ts +122 -0
  171. package/dist/esm/models/retrieve-installed-app200-response.js +14 -0
  172. package/dist/esm/models/retrieve-workflow200-response.d.ts +215 -0
  173. package/dist/esm/models/retrieve-workflow200-response.js +17 -0
  174. package/dist/esm/models/retry-action-request.d.ts +31 -0
  175. package/dist/esm/models/retry-action-request.js +14 -0
  176. package/dist/esm/models/stop-executions-request.d.ts +31 -0
  177. package/dist/esm/models/stop-executions-request.js +14 -0
  178. package/dist/esm/models/trigger-workflow-request.d.ts +50 -0
  179. package/dist/esm/models/trigger-workflow-request.js +14 -0
  180. package/dist/esm/models/update-account-request-user-data-schema-inner.d.ts +48 -0
  181. package/dist/esm/models/update-account-request-user-data-schema-inner.js +14 -0
  182. package/dist/esm/models/update-account-request.d.ts +75 -0
  183. package/dist/esm/models/update-account-request.js +14 -0
  184. package/dist/esm/models/update-action-type-request.d.ts +30 -0
  185. package/dist/esm/models/update-action-type-request.js +14 -0
  186. package/dist/esm/models/update-installed-app-request.d.ts +24 -0
  187. package/dist/esm/models/update-installed-app-request.js +14 -0
  188. package/dist/esm/models/update-workflow-request.d.ts +79 -0
  189. package/dist/esm/models/update-workflow-request.js +14 -0
  190. package/dist/esm/models/upsert-user-request.d.ts +44 -0
  191. package/dist/esm/models/upsert-user-request.js +14 -0
  192. package/dist/index.d.ts +79 -0
  193. package/dist/index.js +106 -0
  194. package/dist/models/api-v1-action-types-post-request-form-draft-inner.d.ts +75 -0
  195. package/dist/models/api-v1-action-types-post-request-form-draft-inner.js +28 -0
  196. package/dist/models/api-v1-action-types-post-request-icon-draft.d.ts +36 -0
  197. package/dist/models/api-v1-action-types-post-request-icon-draft.js +15 -0
  198. package/dist/models/api-v1-action-types-post-request.d.ts +105 -0
  199. package/dist/models/api-v1-action-types-post-request.js +15 -0
  200. package/dist/models/api-v1-app-connections-post-request.d.ts +42 -0
  201. package/dist/models/api-v1-app-connections-post-request.js +15 -0
  202. package/dist/models/clone-workflow201-response.d.ts +183 -0
  203. package/dist/models/clone-workflow201-response.js +20 -0
  204. package/dist/models/create-user-token-request.d.ts +31 -0
  205. package/dist/models/create-user-token-request.js +15 -0
  206. package/dist/models/create-user-token200-response.d.ts +24 -0
  207. package/dist/models/create-user-token200-response.js +15 -0
  208. package/dist/models/create-workflow-request-template-draft-nodes-inner.d.ts +132 -0
  209. package/dist/models/create-workflow-request-template-draft-nodes-inner.js +28 -0
  210. package/dist/models/create-workflow-request-template-draft.d.ts +31 -0
  211. package/dist/models/create-workflow-request-template-draft.js +15 -0
  212. package/dist/models/create-workflow-request.d.ts +67 -0
  213. package/dist/models/create-workflow-request.js +15 -0
  214. package/dist/models/delete-workflow200-response-one-of.d.ts +24 -0
  215. package/dist/models/delete-workflow200-response-one-of.js +15 -0
  216. package/dist/models/delete-workflow200-response-one-of1.d.ts +24 -0
  217. package/dist/models/delete-workflow200-response-one-of1.js +15 -0
  218. package/dist/models/delete-workflow200-response.d.ts +19 -0
  219. package/dist/models/delete-workflow200-response.js +15 -0
  220. package/dist/models/discard-workflow-draft-request.d.ts +30 -0
  221. package/dist/models/discard-workflow-draft-request.js +15 -0
  222. package/dist/models/execute-workflow-request.d.ts +43 -0
  223. package/dist/models/execute-workflow-request.js +20 -0
  224. package/dist/models/execute-workflow201-response.d.ts +122 -0
  225. package/dist/models/execute-workflow201-response.js +15 -0
  226. package/dist/models/import-configuration-request-schema.d.ts +19 -0
  227. package/dist/models/import-configuration-request-schema.js +15 -0
  228. package/dist/models/import-configuration-request.d.ts +38 -0
  229. package/dist/models/import-configuration-request.js +21 -0
  230. package/dist/models/import-configuration201-response.d.ts +48 -0
  231. package/dist/models/import-configuration201-response.js +15 -0
  232. package/dist/models/index.d.ts +59 -0
  233. package/dist/models/index.js +75 -0
  234. package/dist/models/install-app-request.d.ts +30 -0
  235. package/dist/models/install-app-request.js +15 -0
  236. package/dist/models/list-action-types200-response-collection-inner.d.ts +260 -0
  237. package/dist/models/list-action-types200-response-collection-inner.js +30 -0
  238. package/dist/models/list-action-types200-response-meta.d.ts +36 -0
  239. package/dist/models/list-action-types200-response-meta.js +15 -0
  240. package/dist/models/list-action-types200-response.d.ts +32 -0
  241. package/dist/models/list-action-types200-response.js +15 -0
  242. package/dist/models/list-actions200-response-collection-inner.d.ts +144 -0
  243. package/dist/models/list-actions200-response-collection-inner.js +15 -0
  244. package/dist/models/list-actions200-response.d.ts +32 -0
  245. package/dist/models/list-actions200-response.js +15 -0
  246. package/dist/models/list-app-connections200-response-collection-inner.d.ts +66 -0
  247. package/dist/models/list-app-connections200-response-collection-inner.js +15 -0
  248. package/dist/models/list-app-connections200-response.d.ts +32 -0
  249. package/dist/models/list-app-connections200-response.js +15 -0
  250. package/dist/models/list-available-apps200-response-collection-inner.d.ts +66 -0
  251. package/dist/models/list-available-apps200-response-collection-inner.js +15 -0
  252. package/dist/models/list-available-apps200-response.d.ts +32 -0
  253. package/dist/models/list-available-apps200-response.js +15 -0
  254. package/dist/models/list-data-fields-type-parameter.d.ts +16 -0
  255. package/dist/models/list-data-fields-type-parameter.js +15 -0
  256. package/dist/models/list-data-fields200-response-collection-inner.d.ts +84 -0
  257. package/dist/models/list-data-fields200-response-collection-inner.js +15 -0
  258. package/dist/models/list-data-fields200-response.d.ts +32 -0
  259. package/dist/models/list-data-fields200-response.js +15 -0
  260. package/dist/models/list-events200-response-collection-inner.d.ts +78 -0
  261. package/dist/models/list-events200-response-collection-inner.js +15 -0
  262. package/dist/models/list-events200-response.d.ts +32 -0
  263. package/dist/models/list-events200-response.js +15 -0
  264. package/dist/models/list-installed-apps200-response-collection-inner.d.ts +114 -0
  265. package/dist/models/list-installed-apps200-response-collection-inner.js +15 -0
  266. package/dist/models/list-installed-apps200-response.d.ts +32 -0
  267. package/dist/models/list-installed-apps200-response.js +15 -0
  268. package/dist/models/list-triggers200-response-collection-inner.d.ts +102 -0
  269. package/dist/models/list-triggers200-response-collection-inner.js +15 -0
  270. package/dist/models/list-triggers200-response.d.ts +32 -0
  271. package/dist/models/list-triggers200-response.js +15 -0
  272. package/dist/models/list-users200-response-collection-inner.d.ts +84 -0
  273. package/dist/models/list-users200-response-collection-inner.js +15 -0
  274. package/dist/models/list-users200-response.d.ts +32 -0
  275. package/dist/models/list-users200-response.js +15 -0
  276. package/dist/models/list-workflow-executions200-response.d.ts +32 -0
  277. package/dist/models/list-workflow-executions200-response.js +15 -0
  278. package/dist/models/list-workflow-versions200-response-collection-inner.d.ts +60 -0
  279. package/dist/models/list-workflow-versions200-response-collection-inner.js +15 -0
  280. package/dist/models/list-workflow-versions200-response.d.ts +32 -0
  281. package/dist/models/list-workflow-versions200-response.js +15 -0
  282. package/dist/models/publish-workflow-request.d.ts +24 -0
  283. package/dist/models/publish-workflow-request.js +15 -0
  284. package/dist/models/retrieve-account200-response.d.ts +92 -0
  285. package/dist/models/retrieve-account200-response.js +15 -0
  286. package/dist/models/retrieve-action-type404-response.d.ts +36 -0
  287. package/dist/models/retrieve-action-type404-response.js +15 -0
  288. package/dist/models/retrieve-available-app200-response.d.ts +74 -0
  289. package/dist/models/retrieve-available-app200-response.js +15 -0
  290. package/dist/models/retrieve-execution200-response.d.ts +136 -0
  291. package/dist/models/retrieve-execution200-response.js +15 -0
  292. package/dist/models/retrieve-installed-app200-response.d.ts +122 -0
  293. package/dist/models/retrieve-installed-app200-response.js +15 -0
  294. package/dist/models/retrieve-workflow200-response.d.ts +215 -0
  295. package/dist/models/retrieve-workflow200-response.js +20 -0
  296. package/dist/models/retry-action-request.d.ts +31 -0
  297. package/dist/models/retry-action-request.js +15 -0
  298. package/dist/models/stop-executions-request.d.ts +31 -0
  299. package/dist/models/stop-executions-request.js +15 -0
  300. package/dist/models/trigger-workflow-request.d.ts +50 -0
  301. package/dist/models/trigger-workflow-request.js +15 -0
  302. package/dist/models/update-account-request-user-data-schema-inner.d.ts +48 -0
  303. package/dist/models/update-account-request-user-data-schema-inner.js +15 -0
  304. package/dist/models/update-account-request.d.ts +75 -0
  305. package/dist/models/update-account-request.js +15 -0
  306. package/dist/models/update-action-type-request.d.ts +30 -0
  307. package/dist/models/update-action-type-request.js +15 -0
  308. package/dist/models/update-installed-app-request.d.ts +24 -0
  309. package/dist/models/update-installed-app-request.js +15 -0
  310. package/dist/models/update-workflow-request.d.ts +79 -0
  311. package/dist/models/update-workflow-request.js +15 -0
  312. package/dist/models/upsert-user-request.d.ts +44 -0
  313. package/dist/models/upsert-user-request.js +15 -0
  314. package/package.json +38 -0
@@ -0,0 +1,933 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * API V1
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
+ /**
30
+ * WorkflowsApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const WorkflowsApiAxiosParamCreator = function (configuration) {
34
+ return {
35
+ /**
36
+ *
37
+ * @summary Clone workflow
38
+ * @param {string} id System-generated unique identifier
39
+ * @param {DiscardWorkflowDraftRequest} [discardWorkflowDraftRequest]
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ cloneWorkflow: (id, discardWorkflowDraftRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
44
+ // verify required parameter 'id' is not null or undefined
45
+ assertParamExists('cloneWorkflow', 'id', id);
46
+ const localVarPath = `/api/v1/workflows/{id}/clone`
47
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
48
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
49
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
50
+ let baseOptions;
51
+ if (configuration) {
52
+ baseOptions = configuration.baseOptions;
53
+ }
54
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
55
+ const localVarHeaderParameter = {};
56
+ const localVarQueryParameter = {};
57
+ // authentication bearer required
58
+ // http bearer authentication required
59
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
60
+ localVarHeaderParameter['Content-Type'] = 'application/json';
61
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
62
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
63
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
64
+ localVarRequestOptions.data = serializeDataIfNeeded(discardWorkflowDraftRequest, localVarRequestOptions, configuration);
65
+ return {
66
+ url: toPathString(localVarUrlObj),
67
+ options: localVarRequestOptions,
68
+ };
69
+ }),
70
+ /**
71
+ *
72
+ * @summary Create workflow
73
+ * @param {CreateWorkflowRequest} [createWorkflowRequest]
74
+ * @param {*} [options] Override http request option.
75
+ * @throws {RequiredError}
76
+ */
77
+ createWorkflow: (createWorkflowRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
78
+ const localVarPath = `/api/v1/workflows`;
79
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
80
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
81
+ let baseOptions;
82
+ if (configuration) {
83
+ baseOptions = configuration.baseOptions;
84
+ }
85
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
86
+ const localVarHeaderParameter = {};
87
+ const localVarQueryParameter = {};
88
+ // authentication bearer required
89
+ // http bearer authentication required
90
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
91
+ localVarHeaderParameter['Content-Type'] = 'application/json';
92
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
93
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
94
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
95
+ localVarRequestOptions.data = serializeDataIfNeeded(createWorkflowRequest, localVarRequestOptions, configuration);
96
+ return {
97
+ url: toPathString(localVarUrlObj),
98
+ options: localVarRequestOptions,
99
+ };
100
+ }),
101
+ /**
102
+ *
103
+ * @summary Delete workflow
104
+ * @param {string} id System-generated unique identifier
105
+ * @param {string} [idType] Type of identifier used in the URL
106
+ * @param {string} [userKey] Unique user identifier
107
+ * @param {*} [options] Override http request option.
108
+ * @throws {RequiredError}
109
+ */
110
+ deleteWorkflow: (id, idType, userKey, options = {}) => __awaiter(this, void 0, void 0, function* () {
111
+ // verify required parameter 'id' is not null or undefined
112
+ assertParamExists('deleteWorkflow', 'id', id);
113
+ const localVarPath = `/api/v1/workflows/{id}`
114
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
115
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
116
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
117
+ let baseOptions;
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ }
121
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
122
+ const localVarHeaderParameter = {};
123
+ const localVarQueryParameter = {};
124
+ // authentication bearer required
125
+ // http bearer authentication required
126
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
127
+ if (idType !== undefined) {
128
+ localVarQueryParameter['id_type'] = idType;
129
+ }
130
+ if (userKey !== undefined) {
131
+ localVarQueryParameter['user_key'] = userKey;
132
+ }
133
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
134
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
135
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
136
+ return {
137
+ url: toPathString(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ };
140
+ }),
141
+ /**
142
+ *
143
+ * @summary Discard workflow draft
144
+ * @param {string} id System-generated unique identifier
145
+ * @param {DiscardWorkflowDraftRequest} [discardWorkflowDraftRequest]
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ discardWorkflowDraft: (id, discardWorkflowDraftRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
150
+ // verify required parameter 'id' is not null or undefined
151
+ assertParamExists('discardWorkflowDraft', 'id', id);
152
+ const localVarPath = `/api/v1/workflows/{id}/discard_draft`
153
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
154
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
155
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
156
+ let baseOptions;
157
+ if (configuration) {
158
+ baseOptions = configuration.baseOptions;
159
+ }
160
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
161
+ const localVarHeaderParameter = {};
162
+ const localVarQueryParameter = {};
163
+ // authentication bearer required
164
+ // http bearer authentication required
165
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
166
+ localVarHeaderParameter['Content-Type'] = 'application/json';
167
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
168
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
169
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
170
+ localVarRequestOptions.data = serializeDataIfNeeded(discardWorkflowDraftRequest, localVarRequestOptions, configuration);
171
+ return {
172
+ url: toPathString(localVarUrlObj),
173
+ options: localVarRequestOptions,
174
+ };
175
+ }),
176
+ /**
177
+ *
178
+ * @summary Execute workflow
179
+ * @param {string} id System-generated unique identifier
180
+ * @param {ExecuteWorkflowRequest} [executeWorkflowRequest]
181
+ * @param {*} [options] Override http request option.
182
+ * @throws {RequiredError}
183
+ */
184
+ executeWorkflow: (id, executeWorkflowRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
185
+ // verify required parameter 'id' is not null or undefined
186
+ assertParamExists('executeWorkflow', 'id', id);
187
+ const localVarPath = `/api/v1/workflows/{id}/execute`
188
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
189
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
190
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
191
+ let baseOptions;
192
+ if (configuration) {
193
+ baseOptions = configuration.baseOptions;
194
+ }
195
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
196
+ const localVarHeaderParameter = {};
197
+ const localVarQueryParameter = {};
198
+ // authentication bearer required
199
+ // http bearer authentication required
200
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
201
+ localVarHeaderParameter['Content-Type'] = 'application/json';
202
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
203
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
204
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
205
+ localVarRequestOptions.data = serializeDataIfNeeded(executeWorkflowRequest, localVarRequestOptions, configuration);
206
+ return {
207
+ url: toPathString(localVarUrlObj),
208
+ options: localVarRequestOptions,
209
+ };
210
+ }),
211
+ /**
212
+ *
213
+ * @summary List workflow versions
214
+ * @param {string} workflowId Filter results by workflow id
215
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
216
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
217
+ * @param {number} [limit] Number of items to return (max 100)
218
+ * @param {string} [userKey] Unique user identifier
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ */
222
+ listWorkflowVersions: (workflowId, startingAfter, endingBefore, limit, userKey, options = {}) => __awaiter(this, void 0, void 0, function* () {
223
+ // verify required parameter 'workflowId' is not null or undefined
224
+ assertParamExists('listWorkflowVersions', 'workflowId', workflowId);
225
+ const localVarPath = `/api/v1/workflows/{workflow_id}/versions`
226
+ .replace(`{${"workflow_id"}}`, encodeURIComponent(String(workflowId)));
227
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
228
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
229
+ let baseOptions;
230
+ if (configuration) {
231
+ baseOptions = configuration.baseOptions;
232
+ }
233
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
234
+ const localVarHeaderParameter = {};
235
+ const localVarQueryParameter = {};
236
+ // authentication bearer required
237
+ // http bearer authentication required
238
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
239
+ if (startingAfter !== undefined) {
240
+ localVarQueryParameter['starting_after'] = startingAfter;
241
+ }
242
+ if (endingBefore !== undefined) {
243
+ localVarQueryParameter['ending_before'] = endingBefore;
244
+ }
245
+ if (limit !== undefined) {
246
+ localVarQueryParameter['limit'] = limit;
247
+ }
248
+ if (userKey !== undefined) {
249
+ localVarQueryParameter['user_key'] = userKey;
250
+ }
251
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
252
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
253
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
254
+ return {
255
+ url: toPathString(localVarUrlObj),
256
+ options: localVarRequestOptions,
257
+ };
258
+ }),
259
+ /**
260
+ *
261
+ * @summary List workflows
262
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
263
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
264
+ * @param {number} [limit] Number of items to return (max 100)
265
+ * @param {Array<string>} [expand] Expand related objects
266
+ * @param {*} [options] Override http request option.
267
+ * @throws {RequiredError}
268
+ */
269
+ listWorkflows: (startingAfter, endingBefore, limit, expand, options = {}) => __awaiter(this, void 0, void 0, function* () {
270
+ const localVarPath = `/api/v1/workflows`;
271
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
272
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
273
+ let baseOptions;
274
+ if (configuration) {
275
+ baseOptions = configuration.baseOptions;
276
+ }
277
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
278
+ const localVarHeaderParameter = {};
279
+ const localVarQueryParameter = {};
280
+ // authentication bearer required
281
+ // http bearer authentication required
282
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
283
+ if (startingAfter !== undefined) {
284
+ localVarQueryParameter['starting_after'] = startingAfter;
285
+ }
286
+ if (endingBefore !== undefined) {
287
+ localVarQueryParameter['ending_before'] = endingBefore;
288
+ }
289
+ if (limit !== undefined) {
290
+ localVarQueryParameter['limit'] = limit;
291
+ }
292
+ if (expand) {
293
+ localVarQueryParameter['expand'] = expand;
294
+ }
295
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
296
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
297
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
298
+ return {
299
+ url: toPathString(localVarUrlObj),
300
+ options: localVarRequestOptions,
301
+ };
302
+ }),
303
+ /**
304
+ *
305
+ * @summary Publish workflow
306
+ * @param {string} id System-generated unique identifier
307
+ * @param {PublishWorkflowRequest} [publishWorkflowRequest]
308
+ * @param {*} [options] Override http request option.
309
+ * @throws {RequiredError}
310
+ */
311
+ publishWorkflow: (id, publishWorkflowRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
312
+ // verify required parameter 'id' is not null or undefined
313
+ assertParamExists('publishWorkflow', 'id', id);
314
+ const localVarPath = `/api/v1/workflows/{id}/publish`
315
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
316
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
317
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
318
+ let baseOptions;
319
+ if (configuration) {
320
+ baseOptions = configuration.baseOptions;
321
+ }
322
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
323
+ const localVarHeaderParameter = {};
324
+ const localVarQueryParameter = {};
325
+ // authentication bearer required
326
+ // http bearer authentication required
327
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
328
+ localVarHeaderParameter['Content-Type'] = 'application/json';
329
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
330
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
331
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
332
+ localVarRequestOptions.data = serializeDataIfNeeded(publishWorkflowRequest, localVarRequestOptions, configuration);
333
+ return {
334
+ url: toPathString(localVarUrlObj),
335
+ options: localVarRequestOptions,
336
+ };
337
+ }),
338
+ /**
339
+ *
340
+ * @summary Retrieve workflow
341
+ * @param {string} id System-generated unique identifier
342
+ * @param {string} [idType] Type of identifier used in the URL
343
+ * @param {string} [userKey] Unique user identifier
344
+ * @param {Array<string>} [expand] Expand related objects
345
+ * @param {*} [options] Override http request option.
346
+ * @throws {RequiredError}
347
+ */
348
+ retrieveWorkflow: (id, idType, userKey, expand, options = {}) => __awaiter(this, void 0, void 0, function* () {
349
+ // verify required parameter 'id' is not null or undefined
350
+ assertParamExists('retrieveWorkflow', 'id', id);
351
+ const localVarPath = `/api/v1/workflows/{id}`
352
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
353
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
354
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
355
+ let baseOptions;
356
+ if (configuration) {
357
+ baseOptions = configuration.baseOptions;
358
+ }
359
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
360
+ const localVarHeaderParameter = {};
361
+ const localVarQueryParameter = {};
362
+ // authentication bearer required
363
+ // http bearer authentication required
364
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
365
+ if (idType !== undefined) {
366
+ localVarQueryParameter['id_type'] = idType;
367
+ }
368
+ if (userKey !== undefined) {
369
+ localVarQueryParameter['user_key'] = userKey;
370
+ }
371
+ if (expand) {
372
+ localVarQueryParameter['expand'] = expand;
373
+ }
374
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
375
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
376
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
377
+ return {
378
+ url: toPathString(localVarUrlObj),
379
+ options: localVarRequestOptions,
380
+ };
381
+ }),
382
+ /**
383
+ *
384
+ * @summary Trigger workflow
385
+ * @param {TriggerWorkflowRequest} [triggerWorkflowRequest]
386
+ * @param {*} [options] Override http request option.
387
+ * @throws {RequiredError}
388
+ */
389
+ triggerWorkflow: (triggerWorkflowRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
390
+ const localVarPath = `/api/v1/trigger`;
391
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
392
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
393
+ let baseOptions;
394
+ if (configuration) {
395
+ baseOptions = configuration.baseOptions;
396
+ }
397
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
398
+ const localVarHeaderParameter = {};
399
+ const localVarQueryParameter = {};
400
+ // authentication bearer required
401
+ // http bearer authentication required
402
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
403
+ localVarHeaderParameter['Content-Type'] = 'application/json';
404
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
405
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
406
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
407
+ localVarRequestOptions.data = serializeDataIfNeeded(triggerWorkflowRequest, localVarRequestOptions, configuration);
408
+ return {
409
+ url: toPathString(localVarUrlObj),
410
+ options: localVarRequestOptions,
411
+ };
412
+ }),
413
+ /**
414
+ *
415
+ * @summary Update workflow
416
+ * @param {string} id System-generated unique identifier
417
+ * @param {UpdateWorkflowRequest} [updateWorkflowRequest]
418
+ * @param {*} [options] Override http request option.
419
+ * @throws {RequiredError}
420
+ */
421
+ updateWorkflow: (id, updateWorkflowRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
422
+ // verify required parameter 'id' is not null or undefined
423
+ assertParamExists('updateWorkflow', 'id', id);
424
+ const localVarPath = `/api/v1/workflows/{id}`
425
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
426
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
427
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
428
+ let baseOptions;
429
+ if (configuration) {
430
+ baseOptions = configuration.baseOptions;
431
+ }
432
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
433
+ const localVarHeaderParameter = {};
434
+ const localVarQueryParameter = {};
435
+ // authentication bearer required
436
+ // http bearer authentication required
437
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
438
+ localVarHeaderParameter['Content-Type'] = 'application/json';
439
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
440
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
441
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
442
+ localVarRequestOptions.data = serializeDataIfNeeded(updateWorkflowRequest, localVarRequestOptions, configuration);
443
+ return {
444
+ url: toPathString(localVarUrlObj),
445
+ options: localVarRequestOptions,
446
+ };
447
+ }),
448
+ };
449
+ };
450
+ /**
451
+ * WorkflowsApi - functional programming interface
452
+ * @export
453
+ */
454
+ export const WorkflowsApiFp = function (configuration) {
455
+ const localVarAxiosParamCreator = WorkflowsApiAxiosParamCreator(configuration);
456
+ return {
457
+ /**
458
+ *
459
+ * @summary Clone workflow
460
+ * @param {string} id System-generated unique identifier
461
+ * @param {DiscardWorkflowDraftRequest} [discardWorkflowDraftRequest]
462
+ * @param {*} [options] Override http request option.
463
+ * @throws {RequiredError}
464
+ */
465
+ cloneWorkflow(id, discardWorkflowDraftRequest, options) {
466
+ var _a, _b, _c;
467
+ return __awaiter(this, void 0, void 0, function* () {
468
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cloneWorkflow(id, discardWorkflowDraftRequest, options);
469
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
470
+ const operationBasePath = (_c = (_b = operationServerMap['WorkflowsApi.cloneWorkflow']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
471
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
472
+ });
473
+ },
474
+ /**
475
+ *
476
+ * @summary Create workflow
477
+ * @param {CreateWorkflowRequest} [createWorkflowRequest]
478
+ * @param {*} [options] Override http request option.
479
+ * @throws {RequiredError}
480
+ */
481
+ createWorkflow(createWorkflowRequest, options) {
482
+ var _a, _b, _c;
483
+ return __awaiter(this, void 0, void 0, function* () {
484
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createWorkflow(createWorkflowRequest, options);
485
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
486
+ const operationBasePath = (_c = (_b = operationServerMap['WorkflowsApi.createWorkflow']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
487
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
488
+ });
489
+ },
490
+ /**
491
+ *
492
+ * @summary Delete workflow
493
+ * @param {string} id System-generated unique identifier
494
+ * @param {string} [idType] Type of identifier used in the URL
495
+ * @param {string} [userKey] Unique user identifier
496
+ * @param {*} [options] Override http request option.
497
+ * @throws {RequiredError}
498
+ */
499
+ deleteWorkflow(id, idType, userKey, options) {
500
+ var _a, _b, _c;
501
+ return __awaiter(this, void 0, void 0, function* () {
502
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWorkflow(id, idType, userKey, options);
503
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
504
+ const operationBasePath = (_c = (_b = operationServerMap['WorkflowsApi.deleteWorkflow']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
505
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
506
+ });
507
+ },
508
+ /**
509
+ *
510
+ * @summary Discard workflow draft
511
+ * @param {string} id System-generated unique identifier
512
+ * @param {DiscardWorkflowDraftRequest} [discardWorkflowDraftRequest]
513
+ * @param {*} [options] Override http request option.
514
+ * @throws {RequiredError}
515
+ */
516
+ discardWorkflowDraft(id, discardWorkflowDraftRequest, options) {
517
+ var _a, _b, _c;
518
+ return __awaiter(this, void 0, void 0, function* () {
519
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.discardWorkflowDraft(id, discardWorkflowDraftRequest, options);
520
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
521
+ const operationBasePath = (_c = (_b = operationServerMap['WorkflowsApi.discardWorkflowDraft']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
522
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
523
+ });
524
+ },
525
+ /**
526
+ *
527
+ * @summary Execute workflow
528
+ * @param {string} id System-generated unique identifier
529
+ * @param {ExecuteWorkflowRequest} [executeWorkflowRequest]
530
+ * @param {*} [options] Override http request option.
531
+ * @throws {RequiredError}
532
+ */
533
+ executeWorkflow(id, executeWorkflowRequest, options) {
534
+ var _a, _b, _c;
535
+ return __awaiter(this, void 0, void 0, function* () {
536
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.executeWorkflow(id, executeWorkflowRequest, options);
537
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
538
+ const operationBasePath = (_c = (_b = operationServerMap['WorkflowsApi.executeWorkflow']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
539
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
540
+ });
541
+ },
542
+ /**
543
+ *
544
+ * @summary List workflow versions
545
+ * @param {string} workflowId Filter results by workflow id
546
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
547
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
548
+ * @param {number} [limit] Number of items to return (max 100)
549
+ * @param {string} [userKey] Unique user identifier
550
+ * @param {*} [options] Override http request option.
551
+ * @throws {RequiredError}
552
+ */
553
+ listWorkflowVersions(workflowId, startingAfter, endingBefore, limit, userKey, options) {
554
+ var _a, _b, _c;
555
+ return __awaiter(this, void 0, void 0, function* () {
556
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listWorkflowVersions(workflowId, startingAfter, endingBefore, limit, userKey, options);
557
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
558
+ const operationBasePath = (_c = (_b = operationServerMap['WorkflowsApi.listWorkflowVersions']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
559
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
560
+ });
561
+ },
562
+ /**
563
+ *
564
+ * @summary List workflows
565
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
566
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
567
+ * @param {number} [limit] Number of items to return (max 100)
568
+ * @param {Array<string>} [expand] Expand related objects
569
+ * @param {*} [options] Override http request option.
570
+ * @throws {RequiredError}
571
+ */
572
+ listWorkflows(startingAfter, endingBefore, limit, expand, options) {
573
+ var _a, _b, _c;
574
+ return __awaiter(this, void 0, void 0, function* () {
575
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listWorkflows(startingAfter, endingBefore, limit, expand, options);
576
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
577
+ const operationBasePath = (_c = (_b = operationServerMap['WorkflowsApi.listWorkflows']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
578
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
579
+ });
580
+ },
581
+ /**
582
+ *
583
+ * @summary Publish workflow
584
+ * @param {string} id System-generated unique identifier
585
+ * @param {PublishWorkflowRequest} [publishWorkflowRequest]
586
+ * @param {*} [options] Override http request option.
587
+ * @throws {RequiredError}
588
+ */
589
+ publishWorkflow(id, publishWorkflowRequest, options) {
590
+ var _a, _b, _c;
591
+ return __awaiter(this, void 0, void 0, function* () {
592
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.publishWorkflow(id, publishWorkflowRequest, options);
593
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
594
+ const operationBasePath = (_c = (_b = operationServerMap['WorkflowsApi.publishWorkflow']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
595
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
596
+ });
597
+ },
598
+ /**
599
+ *
600
+ * @summary Retrieve workflow
601
+ * @param {string} id System-generated unique identifier
602
+ * @param {string} [idType] Type of identifier used in the URL
603
+ * @param {string} [userKey] Unique user identifier
604
+ * @param {Array<string>} [expand] Expand related objects
605
+ * @param {*} [options] Override http request option.
606
+ * @throws {RequiredError}
607
+ */
608
+ retrieveWorkflow(id, idType, userKey, expand, options) {
609
+ var _a, _b, _c;
610
+ return __awaiter(this, void 0, void 0, function* () {
611
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.retrieveWorkflow(id, idType, userKey, expand, options);
612
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
613
+ const operationBasePath = (_c = (_b = operationServerMap['WorkflowsApi.retrieveWorkflow']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
614
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
615
+ });
616
+ },
617
+ /**
618
+ *
619
+ * @summary Trigger workflow
620
+ * @param {TriggerWorkflowRequest} [triggerWorkflowRequest]
621
+ * @param {*} [options] Override http request option.
622
+ * @throws {RequiredError}
623
+ */
624
+ triggerWorkflow(triggerWorkflowRequest, options) {
625
+ var _a, _b, _c;
626
+ return __awaiter(this, void 0, void 0, function* () {
627
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.triggerWorkflow(triggerWorkflowRequest, options);
628
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
629
+ const operationBasePath = (_c = (_b = operationServerMap['WorkflowsApi.triggerWorkflow']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
630
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
631
+ });
632
+ },
633
+ /**
634
+ *
635
+ * @summary Update workflow
636
+ * @param {string} id System-generated unique identifier
637
+ * @param {UpdateWorkflowRequest} [updateWorkflowRequest]
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ */
641
+ updateWorkflow(id, updateWorkflowRequest, options) {
642
+ var _a, _b, _c;
643
+ return __awaiter(this, void 0, void 0, function* () {
644
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWorkflow(id, updateWorkflowRequest, options);
645
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
646
+ const operationBasePath = (_c = (_b = operationServerMap['WorkflowsApi.updateWorkflow']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
647
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
648
+ });
649
+ },
650
+ };
651
+ };
652
+ /**
653
+ * WorkflowsApi - factory interface
654
+ * @export
655
+ */
656
+ export const WorkflowsApiFactory = function (configuration, basePath, axios) {
657
+ const localVarFp = WorkflowsApiFp(configuration);
658
+ return {
659
+ /**
660
+ *
661
+ * @summary Clone workflow
662
+ * @param {string} id System-generated unique identifier
663
+ * @param {DiscardWorkflowDraftRequest} [discardWorkflowDraftRequest]
664
+ * @param {*} [options] Override http request option.
665
+ * @throws {RequiredError}
666
+ */
667
+ cloneWorkflow(id, discardWorkflowDraftRequest, options) {
668
+ return localVarFp.cloneWorkflow(id, discardWorkflowDraftRequest, options).then((request) => request(axios, basePath));
669
+ },
670
+ /**
671
+ *
672
+ * @summary Create workflow
673
+ * @param {CreateWorkflowRequest} [createWorkflowRequest]
674
+ * @param {*} [options] Override http request option.
675
+ * @throws {RequiredError}
676
+ */
677
+ createWorkflow(createWorkflowRequest, options) {
678
+ return localVarFp.createWorkflow(createWorkflowRequest, options).then((request) => request(axios, basePath));
679
+ },
680
+ /**
681
+ *
682
+ * @summary Delete workflow
683
+ * @param {string} id System-generated unique identifier
684
+ * @param {string} [idType] Type of identifier used in the URL
685
+ * @param {string} [userKey] Unique user identifier
686
+ * @param {*} [options] Override http request option.
687
+ * @throws {RequiredError}
688
+ */
689
+ deleteWorkflow(id, idType, userKey, options) {
690
+ return localVarFp.deleteWorkflow(id, idType, userKey, options).then((request) => request(axios, basePath));
691
+ },
692
+ /**
693
+ *
694
+ * @summary Discard workflow draft
695
+ * @param {string} id System-generated unique identifier
696
+ * @param {DiscardWorkflowDraftRequest} [discardWorkflowDraftRequest]
697
+ * @param {*} [options] Override http request option.
698
+ * @throws {RequiredError}
699
+ */
700
+ discardWorkflowDraft(id, discardWorkflowDraftRequest, options) {
701
+ return localVarFp.discardWorkflowDraft(id, discardWorkflowDraftRequest, options).then((request) => request(axios, basePath));
702
+ },
703
+ /**
704
+ *
705
+ * @summary Execute workflow
706
+ * @param {string} id System-generated unique identifier
707
+ * @param {ExecuteWorkflowRequest} [executeWorkflowRequest]
708
+ * @param {*} [options] Override http request option.
709
+ * @throws {RequiredError}
710
+ */
711
+ executeWorkflow(id, executeWorkflowRequest, options) {
712
+ return localVarFp.executeWorkflow(id, executeWorkflowRequest, options).then((request) => request(axios, basePath));
713
+ },
714
+ /**
715
+ *
716
+ * @summary List workflow versions
717
+ * @param {string} workflowId Filter results by workflow id
718
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
719
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
720
+ * @param {number} [limit] Number of items to return (max 100)
721
+ * @param {string} [userKey] Unique user identifier
722
+ * @param {*} [options] Override http request option.
723
+ * @throws {RequiredError}
724
+ */
725
+ listWorkflowVersions(workflowId, startingAfter, endingBefore, limit, userKey, options) {
726
+ return localVarFp.listWorkflowVersions(workflowId, startingAfter, endingBefore, limit, userKey, options).then((request) => request(axios, basePath));
727
+ },
728
+ /**
729
+ *
730
+ * @summary List workflows
731
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
732
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
733
+ * @param {number} [limit] Number of items to return (max 100)
734
+ * @param {Array<string>} [expand] Expand related objects
735
+ * @param {*} [options] Override http request option.
736
+ * @throws {RequiredError}
737
+ */
738
+ listWorkflows(startingAfter, endingBefore, limit, expand, options) {
739
+ return localVarFp.listWorkflows(startingAfter, endingBefore, limit, expand, options).then((request) => request(axios, basePath));
740
+ },
741
+ /**
742
+ *
743
+ * @summary Publish workflow
744
+ * @param {string} id System-generated unique identifier
745
+ * @param {PublishWorkflowRequest} [publishWorkflowRequest]
746
+ * @param {*} [options] Override http request option.
747
+ * @throws {RequiredError}
748
+ */
749
+ publishWorkflow(id, publishWorkflowRequest, options) {
750
+ return localVarFp.publishWorkflow(id, publishWorkflowRequest, options).then((request) => request(axios, basePath));
751
+ },
752
+ /**
753
+ *
754
+ * @summary Retrieve workflow
755
+ * @param {string} id System-generated unique identifier
756
+ * @param {string} [idType] Type of identifier used in the URL
757
+ * @param {string} [userKey] Unique user identifier
758
+ * @param {Array<string>} [expand] Expand related objects
759
+ * @param {*} [options] Override http request option.
760
+ * @throws {RequiredError}
761
+ */
762
+ retrieveWorkflow(id, idType, userKey, expand, options) {
763
+ return localVarFp.retrieveWorkflow(id, idType, userKey, expand, options).then((request) => request(axios, basePath));
764
+ },
765
+ /**
766
+ *
767
+ * @summary Trigger workflow
768
+ * @param {TriggerWorkflowRequest} [triggerWorkflowRequest]
769
+ * @param {*} [options] Override http request option.
770
+ * @throws {RequiredError}
771
+ */
772
+ triggerWorkflow(triggerWorkflowRequest, options) {
773
+ return localVarFp.triggerWorkflow(triggerWorkflowRequest, options).then((request) => request(axios, basePath));
774
+ },
775
+ /**
776
+ *
777
+ * @summary Update workflow
778
+ * @param {string} id System-generated unique identifier
779
+ * @param {UpdateWorkflowRequest} [updateWorkflowRequest]
780
+ * @param {*} [options] Override http request option.
781
+ * @throws {RequiredError}
782
+ */
783
+ updateWorkflow(id, updateWorkflowRequest, options) {
784
+ return localVarFp.updateWorkflow(id, updateWorkflowRequest, options).then((request) => request(axios, basePath));
785
+ },
786
+ };
787
+ };
788
+ /**
789
+ * WorkflowsApi - object-oriented interface
790
+ * @export
791
+ * @class WorkflowsApi
792
+ * @extends {BaseAPI}
793
+ */
794
+ export class WorkflowsApi extends BaseAPI {
795
+ /**
796
+ *
797
+ * @summary Clone workflow
798
+ * @param {string} id System-generated unique identifier
799
+ * @param {DiscardWorkflowDraftRequest} [discardWorkflowDraftRequest]
800
+ * @param {*} [options] Override http request option.
801
+ * @throws {RequiredError}
802
+ * @memberof WorkflowsApi
803
+ */
804
+ cloneWorkflow(id, discardWorkflowDraftRequest, options) {
805
+ return WorkflowsApiFp(this.configuration).cloneWorkflow(id, discardWorkflowDraftRequest, options).then((request) => request(this.axios, this.basePath));
806
+ }
807
+ /**
808
+ *
809
+ * @summary Create workflow
810
+ * @param {CreateWorkflowRequest} [createWorkflowRequest]
811
+ * @param {*} [options] Override http request option.
812
+ * @throws {RequiredError}
813
+ * @memberof WorkflowsApi
814
+ */
815
+ createWorkflow(createWorkflowRequest, options) {
816
+ return WorkflowsApiFp(this.configuration).createWorkflow(createWorkflowRequest, options).then((request) => request(this.axios, this.basePath));
817
+ }
818
+ /**
819
+ *
820
+ * @summary Delete workflow
821
+ * @param {string} id System-generated unique identifier
822
+ * @param {string} [idType] Type of identifier used in the URL
823
+ * @param {string} [userKey] Unique user identifier
824
+ * @param {*} [options] Override http request option.
825
+ * @throws {RequiredError}
826
+ * @memberof WorkflowsApi
827
+ */
828
+ deleteWorkflow(id, idType, userKey, options) {
829
+ return WorkflowsApiFp(this.configuration).deleteWorkflow(id, idType, userKey, options).then((request) => request(this.axios, this.basePath));
830
+ }
831
+ /**
832
+ *
833
+ * @summary Discard workflow draft
834
+ * @param {string} id System-generated unique identifier
835
+ * @param {DiscardWorkflowDraftRequest} [discardWorkflowDraftRequest]
836
+ * @param {*} [options] Override http request option.
837
+ * @throws {RequiredError}
838
+ * @memberof WorkflowsApi
839
+ */
840
+ discardWorkflowDraft(id, discardWorkflowDraftRequest, options) {
841
+ return WorkflowsApiFp(this.configuration).discardWorkflowDraft(id, discardWorkflowDraftRequest, options).then((request) => request(this.axios, this.basePath));
842
+ }
843
+ /**
844
+ *
845
+ * @summary Execute workflow
846
+ * @param {string} id System-generated unique identifier
847
+ * @param {ExecuteWorkflowRequest} [executeWorkflowRequest]
848
+ * @param {*} [options] Override http request option.
849
+ * @throws {RequiredError}
850
+ * @memberof WorkflowsApi
851
+ */
852
+ executeWorkflow(id, executeWorkflowRequest, options) {
853
+ return WorkflowsApiFp(this.configuration).executeWorkflow(id, executeWorkflowRequest, options).then((request) => request(this.axios, this.basePath));
854
+ }
855
+ /**
856
+ *
857
+ * @summary List workflow versions
858
+ * @param {string} workflowId Filter results by workflow id
859
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
860
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
861
+ * @param {number} [limit] Number of items to return (max 100)
862
+ * @param {string} [userKey] Unique user identifier
863
+ * @param {*} [options] Override http request option.
864
+ * @throws {RequiredError}
865
+ * @memberof WorkflowsApi
866
+ */
867
+ listWorkflowVersions(workflowId, startingAfter, endingBefore, limit, userKey, options) {
868
+ return WorkflowsApiFp(this.configuration).listWorkflowVersions(workflowId, startingAfter, endingBefore, limit, userKey, options).then((request) => request(this.axios, this.basePath));
869
+ }
870
+ /**
871
+ *
872
+ * @summary List workflows
873
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
874
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
875
+ * @param {number} [limit] Number of items to return (max 100)
876
+ * @param {Array<string>} [expand] Expand related objects
877
+ * @param {*} [options] Override http request option.
878
+ * @throws {RequiredError}
879
+ * @memberof WorkflowsApi
880
+ */
881
+ listWorkflows(startingAfter, endingBefore, limit, expand, options) {
882
+ return WorkflowsApiFp(this.configuration).listWorkflows(startingAfter, endingBefore, limit, expand, options).then((request) => request(this.axios, this.basePath));
883
+ }
884
+ /**
885
+ *
886
+ * @summary Publish workflow
887
+ * @param {string} id System-generated unique identifier
888
+ * @param {PublishWorkflowRequest} [publishWorkflowRequest]
889
+ * @param {*} [options] Override http request option.
890
+ * @throws {RequiredError}
891
+ * @memberof WorkflowsApi
892
+ */
893
+ publishWorkflow(id, publishWorkflowRequest, options) {
894
+ return WorkflowsApiFp(this.configuration).publishWorkflow(id, publishWorkflowRequest, options).then((request) => request(this.axios, this.basePath));
895
+ }
896
+ /**
897
+ *
898
+ * @summary Retrieve workflow
899
+ * @param {string} id System-generated unique identifier
900
+ * @param {string} [idType] Type of identifier used in the URL
901
+ * @param {string} [userKey] Unique user identifier
902
+ * @param {Array<string>} [expand] Expand related objects
903
+ * @param {*} [options] Override http request option.
904
+ * @throws {RequiredError}
905
+ * @memberof WorkflowsApi
906
+ */
907
+ retrieveWorkflow(id, idType, userKey, expand, options) {
908
+ return WorkflowsApiFp(this.configuration).retrieveWorkflow(id, idType, userKey, expand, options).then((request) => request(this.axios, this.basePath));
909
+ }
910
+ /**
911
+ *
912
+ * @summary Trigger workflow
913
+ * @param {TriggerWorkflowRequest} [triggerWorkflowRequest]
914
+ * @param {*} [options] Override http request option.
915
+ * @throws {RequiredError}
916
+ * @memberof WorkflowsApi
917
+ */
918
+ triggerWorkflow(triggerWorkflowRequest, options) {
919
+ return WorkflowsApiFp(this.configuration).triggerWorkflow(triggerWorkflowRequest, options).then((request) => request(this.axios, this.basePath));
920
+ }
921
+ /**
922
+ *
923
+ * @summary Update workflow
924
+ * @param {string} id System-generated unique identifier
925
+ * @param {UpdateWorkflowRequest} [updateWorkflowRequest]
926
+ * @param {*} [options] Override http request option.
927
+ * @throws {RequiredError}
928
+ * @memberof WorkflowsApi
929
+ */
930
+ updateWorkflow(id, updateWorkflowRequest, options) {
931
+ return WorkflowsApiFp(this.configuration).updateWorkflow(id, updateWorkflowRequest, options).then((request) => request(this.axios, this.basePath));
932
+ }
933
+ }