@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,650 @@
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.ActionsApi = exports.ActionsApiFactory = exports.ActionsApiFp = exports.ActionsApiAxiosParamCreator = 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
+ * ActionsApi - axios parameter creator
34
+ * @export
35
+ */
36
+ const ActionsApiAxiosParamCreator = function (configuration) {
37
+ return {
38
+ /**
39
+ *
40
+ * @summary List actions
41
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
42
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
43
+ * @param {number} [limit] Number of items to return (max 100)
44
+ * @param {string} [status] Filter results by status
45
+ * @param {string} [executionId] Filter results by execution id
46
+ * @param {string} [workflowId] Filter results by workflow id
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ listActions: (startingAfter, endingBefore, limit, status, executionId, workflowId, options = {}) => __awaiter(this, void 0, void 0, function* () {
51
+ const localVarPath = `/api/v1/actions`;
52
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
53
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
54
+ let baseOptions;
55
+ if (configuration) {
56
+ baseOptions = configuration.baseOptions;
57
+ }
58
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
59
+ const localVarHeaderParameter = {};
60
+ const localVarQueryParameter = {};
61
+ // authentication bearer required
62
+ // http bearer authentication required
63
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
64
+ if (startingAfter !== undefined) {
65
+ localVarQueryParameter['starting_after'] = startingAfter;
66
+ }
67
+ if (endingBefore !== undefined) {
68
+ localVarQueryParameter['ending_before'] = endingBefore;
69
+ }
70
+ if (limit !== undefined) {
71
+ localVarQueryParameter['limit'] = limit;
72
+ }
73
+ if (status !== undefined) {
74
+ localVarQueryParameter['status'] = status;
75
+ }
76
+ if (executionId !== undefined) {
77
+ localVarQueryParameter['execution_id'] = executionId;
78
+ }
79
+ if (workflowId !== undefined) {
80
+ localVarQueryParameter['workflow_id'] = workflowId;
81
+ }
82
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
83
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
84
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
85
+ return {
86
+ url: (0, common_1.toPathString)(localVarUrlObj),
87
+ options: localVarRequestOptions,
88
+ };
89
+ }),
90
+ /**
91
+ *
92
+ * @summary List completed actions
93
+ * @param {string} status Filter results by status
94
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
95
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
96
+ * @param {number} [limit] Number of items to return (max 100)
97
+ * @param {string} [executionId] Filter results by execution id
98
+ * @param {string} [workflowId] Filter results by workflow id
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ listCompletedActions: (status, startingAfter, endingBefore, limit, executionId, workflowId, options = {}) => __awaiter(this, void 0, void 0, function* () {
103
+ // verify required parameter 'status' is not null or undefined
104
+ (0, common_1.assertParamExists)('listCompletedActions', 'status', status);
105
+ const localVarPath = `/api/v1/actions/completed`
106
+ .replace(`{${"status"}}`, encodeURIComponent(String(status)));
107
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
108
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
109
+ let baseOptions;
110
+ if (configuration) {
111
+ baseOptions = configuration.baseOptions;
112
+ }
113
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
114
+ const localVarHeaderParameter = {};
115
+ const localVarQueryParameter = {};
116
+ // authentication bearer required
117
+ // http bearer authentication required
118
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
119
+ if (startingAfter !== undefined) {
120
+ localVarQueryParameter['starting_after'] = startingAfter;
121
+ }
122
+ if (endingBefore !== undefined) {
123
+ localVarQueryParameter['ending_before'] = endingBefore;
124
+ }
125
+ if (limit !== undefined) {
126
+ localVarQueryParameter['limit'] = limit;
127
+ }
128
+ if (executionId !== undefined) {
129
+ localVarQueryParameter['execution_id'] = executionId;
130
+ }
131
+ if (workflowId !== undefined) {
132
+ localVarQueryParameter['workflow_id'] = workflowId;
133
+ }
134
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
137
+ return {
138
+ url: (0, common_1.toPathString)(localVarUrlObj),
139
+ options: localVarRequestOptions,
140
+ };
141
+ }),
142
+ /**
143
+ *
144
+ * @summary List failed actions
145
+ * @param {string} status Filter results by status
146
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
147
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
148
+ * @param {number} [limit] Number of items to return (max 100)
149
+ * @param {string} [executionId] Filter results by execution id
150
+ * @param {string} [workflowId] Filter results by workflow id
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ listFailedActions: (status, startingAfter, endingBefore, limit, executionId, workflowId, options = {}) => __awaiter(this, void 0, void 0, function* () {
155
+ // verify required parameter 'status' is not null or undefined
156
+ (0, common_1.assertParamExists)('listFailedActions', 'status', status);
157
+ const localVarPath = `/api/v1/actions/failed`
158
+ .replace(`{${"status"}}`, encodeURIComponent(String(status)));
159
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
160
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
161
+ let baseOptions;
162
+ if (configuration) {
163
+ baseOptions = configuration.baseOptions;
164
+ }
165
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
166
+ const localVarHeaderParameter = {};
167
+ const localVarQueryParameter = {};
168
+ // authentication bearer required
169
+ // http bearer authentication required
170
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
171
+ if (startingAfter !== undefined) {
172
+ localVarQueryParameter['starting_after'] = startingAfter;
173
+ }
174
+ if (endingBefore !== undefined) {
175
+ localVarQueryParameter['ending_before'] = endingBefore;
176
+ }
177
+ if (limit !== undefined) {
178
+ localVarQueryParameter['limit'] = limit;
179
+ }
180
+ if (executionId !== undefined) {
181
+ localVarQueryParameter['execution_id'] = executionId;
182
+ }
183
+ if (workflowId !== undefined) {
184
+ localVarQueryParameter['workflow_id'] = workflowId;
185
+ }
186
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
187
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
188
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
189
+ return {
190
+ url: (0, common_1.toPathString)(localVarUrlObj),
191
+ options: localVarRequestOptions,
192
+ };
193
+ }),
194
+ /**
195
+ *
196
+ * @summary List scheduled actions
197
+ * @param {string} status Filter results by status
198
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
199
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
200
+ * @param {number} [limit] Number of items to return (max 100)
201
+ * @param {string} [executionId] Filter results by execution id
202
+ * @param {string} [workflowId] Filter results by workflow id
203
+ * @param {*} [options] Override http request option.
204
+ * @throws {RequiredError}
205
+ */
206
+ listScheduledActions: (status, startingAfter, endingBefore, limit, executionId, workflowId, options = {}) => __awaiter(this, void 0, void 0, function* () {
207
+ // verify required parameter 'status' is not null or undefined
208
+ (0, common_1.assertParamExists)('listScheduledActions', 'status', status);
209
+ const localVarPath = `/api/v1/actions/scheduled`
210
+ .replace(`{${"status"}}`, encodeURIComponent(String(status)));
211
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
212
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
213
+ let baseOptions;
214
+ if (configuration) {
215
+ baseOptions = configuration.baseOptions;
216
+ }
217
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
218
+ const localVarHeaderParameter = {};
219
+ const localVarQueryParameter = {};
220
+ // authentication bearer required
221
+ // http bearer authentication required
222
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
223
+ if (startingAfter !== undefined) {
224
+ localVarQueryParameter['starting_after'] = startingAfter;
225
+ }
226
+ if (endingBefore !== undefined) {
227
+ localVarQueryParameter['ending_before'] = endingBefore;
228
+ }
229
+ if (limit !== undefined) {
230
+ localVarQueryParameter['limit'] = limit;
231
+ }
232
+ if (executionId !== undefined) {
233
+ localVarQueryParameter['execution_id'] = executionId;
234
+ }
235
+ if (workflowId !== undefined) {
236
+ localVarQueryParameter['workflow_id'] = workflowId;
237
+ }
238
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
239
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
240
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
241
+ return {
242
+ url: (0, common_1.toPathString)(localVarUrlObj),
243
+ options: localVarRequestOptions,
244
+ };
245
+ }),
246
+ /**
247
+ *
248
+ * @summary List workflow actions
249
+ * @param {string} workflowId Filter results by workflow id
250
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
251
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
252
+ * @param {number} [limit] Number of items to return (max 100)
253
+ * @param {*} [options] Override http request option.
254
+ * @throws {RequiredError}
255
+ */
256
+ listWorkflowActions: (workflowId, startingAfter, endingBefore, limit, options = {}) => __awaiter(this, void 0, void 0, function* () {
257
+ // verify required parameter 'workflowId' is not null or undefined
258
+ (0, common_1.assertParamExists)('listWorkflowActions', 'workflowId', workflowId);
259
+ const localVarPath = `/api/v1/workflows/{workflow_id}/actions`
260
+ .replace(`{${"workflow_id"}}`, encodeURIComponent(String(workflowId)));
261
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
262
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
263
+ let baseOptions;
264
+ if (configuration) {
265
+ baseOptions = configuration.baseOptions;
266
+ }
267
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
268
+ const localVarHeaderParameter = {};
269
+ const localVarQueryParameter = {};
270
+ // authentication bearer required
271
+ // http bearer authentication required
272
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
273
+ if (startingAfter !== undefined) {
274
+ localVarQueryParameter['starting_after'] = startingAfter;
275
+ }
276
+ if (endingBefore !== undefined) {
277
+ localVarQueryParameter['ending_before'] = endingBefore;
278
+ }
279
+ if (limit !== undefined) {
280
+ localVarQueryParameter['limit'] = limit;
281
+ }
282
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
283
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
284
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
285
+ return {
286
+ url: (0, common_1.toPathString)(localVarUrlObj),
287
+ options: localVarRequestOptions,
288
+ };
289
+ }),
290
+ /**
291
+ *
292
+ * @summary Retry action
293
+ * @param {string} hashid Action\'s hashid
294
+ * @param {RetryActionRequest} [retryActionRequest]
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ retryAction: (hashid, retryActionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
299
+ // verify required parameter 'hashid' is not null or undefined
300
+ (0, common_1.assertParamExists)('retryAction', 'hashid', hashid);
301
+ const localVarPath = `/api/v1/actions/{hashid}/retry`
302
+ .replace(`{${"hashid"}}`, encodeURIComponent(String(hashid)));
303
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
304
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
305
+ let baseOptions;
306
+ if (configuration) {
307
+ baseOptions = configuration.baseOptions;
308
+ }
309
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
310
+ const localVarHeaderParameter = {};
311
+ const localVarQueryParameter = {};
312
+ // authentication bearer required
313
+ // http bearer authentication required
314
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
315
+ localVarHeaderParameter['Content-Type'] = 'application/json';
316
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
317
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
318
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
319
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(retryActionRequest, localVarRequestOptions, configuration);
320
+ return {
321
+ url: (0, common_1.toPathString)(localVarUrlObj),
322
+ options: localVarRequestOptions,
323
+ };
324
+ }),
325
+ };
326
+ };
327
+ exports.ActionsApiAxiosParamCreator = ActionsApiAxiosParamCreator;
328
+ /**
329
+ * ActionsApi - functional programming interface
330
+ * @export
331
+ */
332
+ const ActionsApiFp = function (configuration) {
333
+ const localVarAxiosParamCreator = (0, exports.ActionsApiAxiosParamCreator)(configuration);
334
+ return {
335
+ /**
336
+ *
337
+ * @summary List actions
338
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
339
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
340
+ * @param {number} [limit] Number of items to return (max 100)
341
+ * @param {string} [status] Filter results by status
342
+ * @param {string} [executionId] Filter results by execution id
343
+ * @param {string} [workflowId] Filter results by workflow id
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ listActions(startingAfter, endingBefore, limit, status, executionId, workflowId, options) {
348
+ var _a, _b, _c;
349
+ return __awaiter(this, void 0, void 0, function* () {
350
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listActions(startingAfter, endingBefore, limit, status, executionId, workflowId, options);
351
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
352
+ const operationBasePath = (_c = (_b = base_1.operationServerMap['ActionsApi.listActions']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
353
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
354
+ });
355
+ },
356
+ /**
357
+ *
358
+ * @summary List completed actions
359
+ * @param {string} status Filter results by status
360
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
361
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
362
+ * @param {number} [limit] Number of items to return (max 100)
363
+ * @param {string} [executionId] Filter results by execution id
364
+ * @param {string} [workflowId] Filter results by workflow id
365
+ * @param {*} [options] Override http request option.
366
+ * @throws {RequiredError}
367
+ */
368
+ listCompletedActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options) {
369
+ var _a, _b, _c;
370
+ return __awaiter(this, void 0, void 0, function* () {
371
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listCompletedActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options);
372
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
373
+ const operationBasePath = (_c = (_b = base_1.operationServerMap['ActionsApi.listCompletedActions']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
374
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
375
+ });
376
+ },
377
+ /**
378
+ *
379
+ * @summary List failed actions
380
+ * @param {string} status Filter results by status
381
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
382
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
383
+ * @param {number} [limit] Number of items to return (max 100)
384
+ * @param {string} [executionId] Filter results by execution id
385
+ * @param {string} [workflowId] Filter results by workflow id
386
+ * @param {*} [options] Override http request option.
387
+ * @throws {RequiredError}
388
+ */
389
+ listFailedActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options) {
390
+ var _a, _b, _c;
391
+ return __awaiter(this, void 0, void 0, function* () {
392
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listFailedActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options);
393
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
394
+ const operationBasePath = (_c = (_b = base_1.operationServerMap['ActionsApi.listFailedActions']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
395
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
396
+ });
397
+ },
398
+ /**
399
+ *
400
+ * @summary List scheduled actions
401
+ * @param {string} status Filter results by status
402
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
403
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
404
+ * @param {number} [limit] Number of items to return (max 100)
405
+ * @param {string} [executionId] Filter results by execution id
406
+ * @param {string} [workflowId] Filter results by workflow id
407
+ * @param {*} [options] Override http request option.
408
+ * @throws {RequiredError}
409
+ */
410
+ listScheduledActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options) {
411
+ var _a, _b, _c;
412
+ return __awaiter(this, void 0, void 0, function* () {
413
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listScheduledActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options);
414
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
415
+ const operationBasePath = (_c = (_b = base_1.operationServerMap['ActionsApi.listScheduledActions']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
416
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
417
+ });
418
+ },
419
+ /**
420
+ *
421
+ * @summary List workflow actions
422
+ * @param {string} workflowId Filter results by workflow id
423
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
424
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
425
+ * @param {number} [limit] Number of items to return (max 100)
426
+ * @param {*} [options] Override http request option.
427
+ * @throws {RequiredError}
428
+ */
429
+ listWorkflowActions(workflowId, startingAfter, endingBefore, limit, options) {
430
+ var _a, _b, _c;
431
+ return __awaiter(this, void 0, void 0, function* () {
432
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listWorkflowActions(workflowId, startingAfter, endingBefore, limit, options);
433
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
434
+ const operationBasePath = (_c = (_b = base_1.operationServerMap['ActionsApi.listWorkflowActions']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
435
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
436
+ });
437
+ },
438
+ /**
439
+ *
440
+ * @summary Retry action
441
+ * @param {string} hashid Action\'s hashid
442
+ * @param {RetryActionRequest} [retryActionRequest]
443
+ * @param {*} [options] Override http request option.
444
+ * @throws {RequiredError}
445
+ */
446
+ retryAction(hashid, retryActionRequest, options) {
447
+ var _a, _b, _c;
448
+ return __awaiter(this, void 0, void 0, function* () {
449
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.retryAction(hashid, retryActionRequest, options);
450
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
451
+ const operationBasePath = (_c = (_b = base_1.operationServerMap['ActionsApi.retryAction']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
452
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
453
+ });
454
+ },
455
+ };
456
+ };
457
+ exports.ActionsApiFp = ActionsApiFp;
458
+ /**
459
+ * ActionsApi - factory interface
460
+ * @export
461
+ */
462
+ const ActionsApiFactory = function (configuration, basePath, axios) {
463
+ const localVarFp = (0, exports.ActionsApiFp)(configuration);
464
+ return {
465
+ /**
466
+ *
467
+ * @summary List actions
468
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
469
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
470
+ * @param {number} [limit] Number of items to return (max 100)
471
+ * @param {string} [status] Filter results by status
472
+ * @param {string} [executionId] Filter results by execution id
473
+ * @param {string} [workflowId] Filter results by workflow id
474
+ * @param {*} [options] Override http request option.
475
+ * @throws {RequiredError}
476
+ */
477
+ listActions(startingAfter, endingBefore, limit, status, executionId, workflowId, options) {
478
+ return localVarFp.listActions(startingAfter, endingBefore, limit, status, executionId, workflowId, options).then((request) => request(axios, basePath));
479
+ },
480
+ /**
481
+ *
482
+ * @summary List completed actions
483
+ * @param {string} status Filter results by status
484
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
485
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
486
+ * @param {number} [limit] Number of items to return (max 100)
487
+ * @param {string} [executionId] Filter results by execution id
488
+ * @param {string} [workflowId] Filter results by workflow id
489
+ * @param {*} [options] Override http request option.
490
+ * @throws {RequiredError}
491
+ */
492
+ listCompletedActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options) {
493
+ return localVarFp.listCompletedActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options).then((request) => request(axios, basePath));
494
+ },
495
+ /**
496
+ *
497
+ * @summary List failed actions
498
+ * @param {string} status Filter results by status
499
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
500
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
501
+ * @param {number} [limit] Number of items to return (max 100)
502
+ * @param {string} [executionId] Filter results by execution id
503
+ * @param {string} [workflowId] Filter results by workflow id
504
+ * @param {*} [options] Override http request option.
505
+ * @throws {RequiredError}
506
+ */
507
+ listFailedActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options) {
508
+ return localVarFp.listFailedActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options).then((request) => request(axios, basePath));
509
+ },
510
+ /**
511
+ *
512
+ * @summary List scheduled actions
513
+ * @param {string} status Filter results by status
514
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
515
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
516
+ * @param {number} [limit] Number of items to return (max 100)
517
+ * @param {string} [executionId] Filter results by execution id
518
+ * @param {string} [workflowId] Filter results by workflow id
519
+ * @param {*} [options] Override http request option.
520
+ * @throws {RequiredError}
521
+ */
522
+ listScheduledActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options) {
523
+ return localVarFp.listScheduledActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options).then((request) => request(axios, basePath));
524
+ },
525
+ /**
526
+ *
527
+ * @summary List workflow actions
528
+ * @param {string} workflowId Filter results by workflow id
529
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
530
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
531
+ * @param {number} [limit] Number of items to return (max 100)
532
+ * @param {*} [options] Override http request option.
533
+ * @throws {RequiredError}
534
+ */
535
+ listWorkflowActions(workflowId, startingAfter, endingBefore, limit, options) {
536
+ return localVarFp.listWorkflowActions(workflowId, startingAfter, endingBefore, limit, options).then((request) => request(axios, basePath));
537
+ },
538
+ /**
539
+ *
540
+ * @summary Retry action
541
+ * @param {string} hashid Action\'s hashid
542
+ * @param {RetryActionRequest} [retryActionRequest]
543
+ * @param {*} [options] Override http request option.
544
+ * @throws {RequiredError}
545
+ */
546
+ retryAction(hashid, retryActionRequest, options) {
547
+ return localVarFp.retryAction(hashid, retryActionRequest, options).then((request) => request(axios, basePath));
548
+ },
549
+ };
550
+ };
551
+ exports.ActionsApiFactory = ActionsApiFactory;
552
+ /**
553
+ * ActionsApi - object-oriented interface
554
+ * @export
555
+ * @class ActionsApi
556
+ * @extends {BaseAPI}
557
+ */
558
+ class ActionsApi extends base_1.BaseAPI {
559
+ /**
560
+ *
561
+ * @summary List actions
562
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
563
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
564
+ * @param {number} [limit] Number of items to return (max 100)
565
+ * @param {string} [status] Filter results by status
566
+ * @param {string} [executionId] Filter results by execution id
567
+ * @param {string} [workflowId] Filter results by workflow id
568
+ * @param {*} [options] Override http request option.
569
+ * @throws {RequiredError}
570
+ * @memberof ActionsApi
571
+ */
572
+ listActions(startingAfter, endingBefore, limit, status, executionId, workflowId, options) {
573
+ return (0, exports.ActionsApiFp)(this.configuration).listActions(startingAfter, endingBefore, limit, status, executionId, workflowId, options).then((request) => request(this.axios, this.basePath));
574
+ }
575
+ /**
576
+ *
577
+ * @summary List completed actions
578
+ * @param {string} status Filter results by status
579
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
580
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
581
+ * @param {number} [limit] Number of items to return (max 100)
582
+ * @param {string} [executionId] Filter results by execution id
583
+ * @param {string} [workflowId] Filter results by workflow id
584
+ * @param {*} [options] Override http request option.
585
+ * @throws {RequiredError}
586
+ * @memberof ActionsApi
587
+ */
588
+ listCompletedActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options) {
589
+ return (0, exports.ActionsApiFp)(this.configuration).listCompletedActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options).then((request) => request(this.axios, this.basePath));
590
+ }
591
+ /**
592
+ *
593
+ * @summary List failed actions
594
+ * @param {string} status Filter results by status
595
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
596
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
597
+ * @param {number} [limit] Number of items to return (max 100)
598
+ * @param {string} [executionId] Filter results by execution id
599
+ * @param {string} [workflowId] Filter results by workflow id
600
+ * @param {*} [options] Override http request option.
601
+ * @throws {RequiredError}
602
+ * @memberof ActionsApi
603
+ */
604
+ listFailedActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options) {
605
+ return (0, exports.ActionsApiFp)(this.configuration).listFailedActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options).then((request) => request(this.axios, this.basePath));
606
+ }
607
+ /**
608
+ *
609
+ * @summary List scheduled actions
610
+ * @param {string} status Filter results by status
611
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
612
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
613
+ * @param {number} [limit] Number of items to return (max 100)
614
+ * @param {string} [executionId] Filter results by execution id
615
+ * @param {string} [workflowId] Filter results by workflow id
616
+ * @param {*} [options] Override http request option.
617
+ * @throws {RequiredError}
618
+ * @memberof ActionsApi
619
+ */
620
+ listScheduledActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options) {
621
+ return (0, exports.ActionsApiFp)(this.configuration).listScheduledActions(status, startingAfter, endingBefore, limit, executionId, workflowId, options).then((request) => request(this.axios, this.basePath));
622
+ }
623
+ /**
624
+ *
625
+ * @summary List workflow actions
626
+ * @param {string} workflowId Filter results by workflow id
627
+ * @param {string} [startingAfter] Cursor for pagination - return results after this ID
628
+ * @param {string} [endingBefore] Cursor for pagination - return results before this ID
629
+ * @param {number} [limit] Number of items to return (max 100)
630
+ * @param {*} [options] Override http request option.
631
+ * @throws {RequiredError}
632
+ * @memberof ActionsApi
633
+ */
634
+ listWorkflowActions(workflowId, startingAfter, endingBefore, limit, options) {
635
+ return (0, exports.ActionsApiFp)(this.configuration).listWorkflowActions(workflowId, startingAfter, endingBefore, limit, options).then((request) => request(this.axios, this.basePath));
636
+ }
637
+ /**
638
+ *
639
+ * @summary Retry action
640
+ * @param {string} hashid Action\'s hashid
641
+ * @param {RetryActionRequest} [retryActionRequest]
642
+ * @param {*} [options] Override http request option.
643
+ * @throws {RequiredError}
644
+ * @memberof ActionsApi
645
+ */
646
+ retryAction(hashid, retryActionRequest, options) {
647
+ return (0, exports.ActionsApiFp)(this.configuration).retryAction(hashid, retryActionRequest, options).then((request) => request(this.axios, this.basePath));
648
+ }
649
+ }
650
+ exports.ActionsApi = ActionsApi;