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