wauldo 0.13.0 → 0.14.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/dist/index.d.mts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +23 -0
- package/dist/index.mjs +23 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1010,6 +1010,16 @@ declare class WorkflowsClient {
|
|
|
1010
1010
|
* and the per-tenant cap (100) before returning 201.
|
|
1011
1011
|
*/
|
|
1012
1012
|
create(input: CreateWorkflowInput): Promise<Workflow>;
|
|
1013
|
+
/**
|
|
1014
|
+
* `PATCH /v1/workflows/:id` — replace the workflow definition in place.
|
|
1015
|
+
*
|
|
1016
|
+
* Body shape is identical to {@link create} (`CreateWorkflowInput`). The
|
|
1017
|
+
* server keeps the workflow id, tenant_id, and created_at ; refreshes
|
|
1018
|
+
* name/description/start_at/states ; bumps `updated_at` and the monotonic
|
|
1019
|
+
* `version` int. Same validations as create — cycles, transition targets,
|
|
1020
|
+
* choice operators. Returns the updated workflow.
|
|
1021
|
+
*/
|
|
1022
|
+
update(workflowId: string, input: CreateWorkflowInput): Promise<Workflow>;
|
|
1013
1023
|
/** `GET /v1/workflows` — list workflows for the calling tenant. */
|
|
1014
1024
|
list(): Promise<WorkflowListResponse>;
|
|
1015
1025
|
/** `GET /v1/workflows/:id` */
|
package/dist/index.d.ts
CHANGED
|
@@ -1010,6 +1010,16 @@ declare class WorkflowsClient {
|
|
|
1010
1010
|
* and the per-tenant cap (100) before returning 201.
|
|
1011
1011
|
*/
|
|
1012
1012
|
create(input: CreateWorkflowInput): Promise<Workflow>;
|
|
1013
|
+
/**
|
|
1014
|
+
* `PATCH /v1/workflows/:id` — replace the workflow definition in place.
|
|
1015
|
+
*
|
|
1016
|
+
* Body shape is identical to {@link create} (`CreateWorkflowInput`). The
|
|
1017
|
+
* server keeps the workflow id, tenant_id, and created_at ; refreshes
|
|
1018
|
+
* name/description/start_at/states ; bumps `updated_at` and the monotonic
|
|
1019
|
+
* `version` int. Same validations as create — cycles, transition targets,
|
|
1020
|
+
* choice operators. Returns the updated workflow.
|
|
1021
|
+
*/
|
|
1022
|
+
update(workflowId: string, input: CreateWorkflowInput): Promise<Workflow>;
|
|
1013
1023
|
/** `GET /v1/workflows` — list workflows for the calling tenant. */
|
|
1014
1024
|
list(): Promise<WorkflowListResponse>;
|
|
1015
1025
|
/** `GET /v1/workflows/:id` */
|
package/dist/index.js
CHANGED
|
@@ -1665,6 +1665,29 @@ var WorkflowsClient = class {
|
|
|
1665
1665
|
const env = await this.request("POST", "/v1/workflows", body);
|
|
1666
1666
|
return env.workflow;
|
|
1667
1667
|
}
|
|
1668
|
+
/**
|
|
1669
|
+
* `PATCH /v1/workflows/:id` — replace the workflow definition in place.
|
|
1670
|
+
*
|
|
1671
|
+
* Body shape is identical to {@link create} (`CreateWorkflowInput`). The
|
|
1672
|
+
* server keeps the workflow id, tenant_id, and created_at ; refreshes
|
|
1673
|
+
* name/description/start_at/states ; bumps `updated_at` and the monotonic
|
|
1674
|
+
* `version` int. Same validations as create — cycles, transition targets,
|
|
1675
|
+
* choice operators. Returns the updated workflow.
|
|
1676
|
+
*/
|
|
1677
|
+
async update(workflowId, input) {
|
|
1678
|
+
const body = {
|
|
1679
|
+
name: input.name,
|
|
1680
|
+
start_at: input.startAt,
|
|
1681
|
+
states: input.states
|
|
1682
|
+
};
|
|
1683
|
+
if (input.description !== void 0) body.description = input.description;
|
|
1684
|
+
const env = await this.request(
|
|
1685
|
+
"PATCH",
|
|
1686
|
+
`/v1/workflows/${workflowId}`,
|
|
1687
|
+
body
|
|
1688
|
+
);
|
|
1689
|
+
return env.workflow;
|
|
1690
|
+
}
|
|
1668
1691
|
/** `GET /v1/workflows` — list workflows for the calling tenant. */
|
|
1669
1692
|
async list() {
|
|
1670
1693
|
return await this.request("GET", "/v1/workflows");
|
package/dist/index.mjs
CHANGED
|
@@ -1619,6 +1619,29 @@ var WorkflowsClient = class {
|
|
|
1619
1619
|
const env = await this.request("POST", "/v1/workflows", body);
|
|
1620
1620
|
return env.workflow;
|
|
1621
1621
|
}
|
|
1622
|
+
/**
|
|
1623
|
+
* `PATCH /v1/workflows/:id` — replace the workflow definition in place.
|
|
1624
|
+
*
|
|
1625
|
+
* Body shape is identical to {@link create} (`CreateWorkflowInput`). The
|
|
1626
|
+
* server keeps the workflow id, tenant_id, and created_at ; refreshes
|
|
1627
|
+
* name/description/start_at/states ; bumps `updated_at` and the monotonic
|
|
1628
|
+
* `version` int. Same validations as create — cycles, transition targets,
|
|
1629
|
+
* choice operators. Returns the updated workflow.
|
|
1630
|
+
*/
|
|
1631
|
+
async update(workflowId, input) {
|
|
1632
|
+
const body = {
|
|
1633
|
+
name: input.name,
|
|
1634
|
+
start_at: input.startAt,
|
|
1635
|
+
states: input.states
|
|
1636
|
+
};
|
|
1637
|
+
if (input.description !== void 0) body.description = input.description;
|
|
1638
|
+
const env = await this.request(
|
|
1639
|
+
"PATCH",
|
|
1640
|
+
`/v1/workflows/${workflowId}`,
|
|
1641
|
+
body
|
|
1642
|
+
);
|
|
1643
|
+
return env.workflow;
|
|
1644
|
+
}
|
|
1622
1645
|
/** `GET /v1/workflows` — list workflows for the calling tenant. */
|
|
1623
1646
|
async list() {
|
|
1624
1647
|
return await this.request("GET", "/v1/workflows");
|