@adobe-commerce/aio-toolkit 1.0.11 → 1.0.12

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.
package/dist/index.mjs CHANGED
@@ -1855,14 +1855,19 @@ var _Openwhisk = class _Openwhisk {
1855
1855
  this.openwhiskClient = openwhisk({ apihost: host, api_key: apiKey });
1856
1856
  }
1857
1857
  /**
1858
- * @param action
1859
- * @param params
1860
- * @returns {Promise<Activation<Dict>>}
1858
+ * Execute an OpenWhisk action
1859
+ *
1860
+ * @param action - Name of the action to execute
1861
+ * @param params - Parameters to pass to the action
1862
+ * @param config - Configuration options for execution
1863
+ * @param config.blocking - Whether to wait for action completion (default: true)
1864
+ * @returns {Promise<Activation<Dict>>} Action activation result
1861
1865
  */
1862
- async execute(action, params) {
1866
+ async execute(action, params, config = {}) {
1867
+ const { blocking = true } = config;
1863
1868
  return await this.openwhiskClient.actions.invoke({
1864
1869
  name: action,
1865
- blocking: true,
1870
+ blocking,
1866
1871
  params
1867
1872
  });
1868
1873
  }