@lunnoa/client 2.3.0 → 2.4.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.
- package/README.md +1 -1
- package/dist/cli.js +3 -0
- package/dist/index.cjs +73 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -3
- package/dist/index.d.ts +30 -3
- package/dist/index.js +73 -2
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +3 -0
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +18 -2
- package/dist/react.d.ts +18 -2
- package/dist/react.js +3 -0
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
- package/skills/lunnoa-client/SKILL.md +40 -2
- package/skills/lunnoa-solution-design/SKILL.md +8 -2
package/dist/react.d.cts
CHANGED
|
@@ -810,13 +810,18 @@ interface components {
|
|
|
810
810
|
requestedCount: number;
|
|
811
811
|
};
|
|
812
812
|
UpsertWorkflowStepDto: {
|
|
813
|
+
/**
|
|
814
|
+
* @description Name later steps use in ={{step:<key>,path}}. Keyed steps keep their node id across deploys. "trigger" is reserved.
|
|
815
|
+
* @example loadCase
|
|
816
|
+
*/
|
|
817
|
+
key?: string;
|
|
813
818
|
/** @description Workflow app id (catalogue slug). */
|
|
814
819
|
appId: string;
|
|
815
820
|
/** @description Catalogue action id. */
|
|
816
821
|
actionId: string;
|
|
817
822
|
/** @description Connection instance UUID for this step. */
|
|
818
823
|
connectionId?: string;
|
|
819
|
-
/** @description Action input / config fields. */
|
|
824
|
+
/** @description Action input / config fields. String values may use ={{step:trigger,field}} or ={{step:<key>,path,to,value}}. */
|
|
820
825
|
input?: {
|
|
821
826
|
[key: string]: unknown;
|
|
822
827
|
};
|
|
@@ -1975,6 +1980,8 @@ interface components {
|
|
|
1975
1980
|
executionPath?: components["schemas"]["ExecutionPathStepDto"][];
|
|
1976
1981
|
};
|
|
1977
1982
|
RunStepDto: {
|
|
1983
|
+
/** @description Name later steps use in ={{step:<key>,path}}. Ad-hoc runs have no trigger. */
|
|
1984
|
+
key?: string;
|
|
1978
1985
|
/** @description Workflow app id (catalogue slug), e.g. `http`, `gmail`. */
|
|
1979
1986
|
appId: string;
|
|
1980
1987
|
/** @description Action id within the app, e.g. `http_action_send-request`. Discover via GET /workflow-apps. */
|
|
@@ -2761,9 +2768,14 @@ interface TriggerDefinition {
|
|
|
2761
2768
|
description?: string;
|
|
2762
2769
|
}
|
|
2763
2770
|
interface WorkflowStepDefinition {
|
|
2771
|
+
/**
|
|
2772
|
+
* Name later steps use with `ref.step(key, ...)`. Keyed steps keep their
|
|
2773
|
+
* node id across deploys. `trigger` is reserved.
|
|
2774
|
+
*/
|
|
2775
|
+
key?: string;
|
|
2764
2776
|
/** Action definition (or inline action-shaped object). */
|
|
2765
2777
|
use: ActionDefinition;
|
|
2766
|
-
/** Per-step input overrides. */
|
|
2778
|
+
/** Per-step input overrides. Values may contain `ref.trigger` / `ref.step`. */
|
|
2767
2779
|
input?: Record<string, unknown>;
|
|
2768
2780
|
name?: string;
|
|
2769
2781
|
}
|
|
@@ -3390,6 +3402,8 @@ declare class QueuesResource {
|
|
|
3390
3402
|
}
|
|
3391
3403
|
|
|
3392
3404
|
interface StartRunStep {
|
|
3405
|
+
/** Name later steps use with `ref.step(key, ...)`. */
|
|
3406
|
+
key?: string;
|
|
3393
3407
|
appId: string;
|
|
3394
3408
|
actionId: string;
|
|
3395
3409
|
connectionId?: string;
|
|
@@ -3542,6 +3556,8 @@ declare class VariablesResource {
|
|
|
3542
3556
|
}
|
|
3543
3557
|
|
|
3544
3558
|
interface UpsertWorkflowStepInput {
|
|
3559
|
+
/** Name later steps use in `={{step:<key>,path}}`. Keeps the node id stable. */
|
|
3560
|
+
key?: string;
|
|
3545
3561
|
appId: string;
|
|
3546
3562
|
actionId: string;
|
|
3547
3563
|
connectionId?: string;
|
package/dist/react.d.ts
CHANGED
|
@@ -810,13 +810,18 @@ interface components {
|
|
|
810
810
|
requestedCount: number;
|
|
811
811
|
};
|
|
812
812
|
UpsertWorkflowStepDto: {
|
|
813
|
+
/**
|
|
814
|
+
* @description Name later steps use in ={{step:<key>,path}}. Keyed steps keep their node id across deploys. "trigger" is reserved.
|
|
815
|
+
* @example loadCase
|
|
816
|
+
*/
|
|
817
|
+
key?: string;
|
|
813
818
|
/** @description Workflow app id (catalogue slug). */
|
|
814
819
|
appId: string;
|
|
815
820
|
/** @description Catalogue action id. */
|
|
816
821
|
actionId: string;
|
|
817
822
|
/** @description Connection instance UUID for this step. */
|
|
818
823
|
connectionId?: string;
|
|
819
|
-
/** @description Action input / config fields. */
|
|
824
|
+
/** @description Action input / config fields. String values may use ={{step:trigger,field}} or ={{step:<key>,path,to,value}}. */
|
|
820
825
|
input?: {
|
|
821
826
|
[key: string]: unknown;
|
|
822
827
|
};
|
|
@@ -1975,6 +1980,8 @@ interface components {
|
|
|
1975
1980
|
executionPath?: components["schemas"]["ExecutionPathStepDto"][];
|
|
1976
1981
|
};
|
|
1977
1982
|
RunStepDto: {
|
|
1983
|
+
/** @description Name later steps use in ={{step:<key>,path}}. Ad-hoc runs have no trigger. */
|
|
1984
|
+
key?: string;
|
|
1978
1985
|
/** @description Workflow app id (catalogue slug), e.g. `http`, `gmail`. */
|
|
1979
1986
|
appId: string;
|
|
1980
1987
|
/** @description Action id within the app, e.g. `http_action_send-request`. Discover via GET /workflow-apps. */
|
|
@@ -2761,9 +2768,14 @@ interface TriggerDefinition {
|
|
|
2761
2768
|
description?: string;
|
|
2762
2769
|
}
|
|
2763
2770
|
interface WorkflowStepDefinition {
|
|
2771
|
+
/**
|
|
2772
|
+
* Name later steps use with `ref.step(key, ...)`. Keyed steps keep their
|
|
2773
|
+
* node id across deploys. `trigger` is reserved.
|
|
2774
|
+
*/
|
|
2775
|
+
key?: string;
|
|
2764
2776
|
/** Action definition (or inline action-shaped object). */
|
|
2765
2777
|
use: ActionDefinition;
|
|
2766
|
-
/** Per-step input overrides. */
|
|
2778
|
+
/** Per-step input overrides. Values may contain `ref.trigger` / `ref.step`. */
|
|
2767
2779
|
input?: Record<string, unknown>;
|
|
2768
2780
|
name?: string;
|
|
2769
2781
|
}
|
|
@@ -3390,6 +3402,8 @@ declare class QueuesResource {
|
|
|
3390
3402
|
}
|
|
3391
3403
|
|
|
3392
3404
|
interface StartRunStep {
|
|
3405
|
+
/** Name later steps use with `ref.step(key, ...)`. */
|
|
3406
|
+
key?: string;
|
|
3393
3407
|
appId: string;
|
|
3394
3408
|
actionId: string;
|
|
3395
3409
|
connectionId?: string;
|
|
@@ -3542,6 +3556,8 @@ declare class VariablesResource {
|
|
|
3542
3556
|
}
|
|
3543
3557
|
|
|
3544
3558
|
interface UpsertWorkflowStepInput {
|
|
3559
|
+
/** Name later steps use in `={{step:<key>,path}}`. Keeps the node id stable. */
|
|
3560
|
+
key?: string;
|
|
3545
3561
|
appId: string;
|
|
3546
3562
|
actionId: string;
|
|
3547
3563
|
connectionId?: string;
|
package/dist/react.js
CHANGED
|
@@ -1848,7 +1848,9 @@ function stepFromDefinition(step) {
|
|
|
1848
1848
|
...use.input ?? {},
|
|
1849
1849
|
...step.input ?? {}
|
|
1850
1850
|
};
|
|
1851
|
+
const key = step.key;
|
|
1851
1852
|
return {
|
|
1853
|
+
...key ? { key } : {},
|
|
1852
1854
|
appId: resolveActionAppId(use),
|
|
1853
1855
|
actionId: resolveActionId(use),
|
|
1854
1856
|
...use.connection?.id ? { connectionId: use.connection.id } : {},
|
|
@@ -2064,6 +2066,7 @@ function triggerToUpsertInput(trigger) {
|
|
|
2064
2066
|
function stepToUpsertInput(step) {
|
|
2065
2067
|
const use = step.use;
|
|
2066
2068
|
return {
|
|
2069
|
+
...step.key ? { key: step.key } : {},
|
|
2067
2070
|
appId: resolveActionAppId(use),
|
|
2068
2071
|
actionId: resolveActionId(use),
|
|
2069
2072
|
connectionId: use.connection?.id,
|