From cf53774a818d689d6506288921938791eb1c5260 Mon Sep 17 00:00:00 2001 From: Ankur Kedia Date: Thu, 23 Jan 2025 18:13:13 +0530 Subject: [PATCH] chore(wf-client): update client with new spec --- .../workflow-client/src/openapi-runtime.json | 33 ++++++++----- clients/workflow-client/src/openapi.d.ts | 37 +++------------ clients/workflow-client/src/openapi.json | 46 ++----------------- .../src/openapi.d.ts | 2 +- 4 files changed, 33 insertions(+), 85 deletions(-) diff --git a/clients/workflow-client/src/openapi-runtime.json b/clients/workflow-client/src/openapi-runtime.json index 14cfa16f..14e7481d 100644 --- a/clients/workflow-client/src/openapi-runtime.json +++ b/clients/workflow-client/src/openapi-runtime.json @@ -24,7 +24,8 @@ "name": "schema", "required": false } - ] + ], + "responses": {} }, "post": { "operationId": "createExecution", @@ -33,7 +34,8 @@ "content": { "application/json": {} } - } + }, + "responses": {} } }, "/v1/workflows/executions/{executionId}": { @@ -45,7 +47,8 @@ "name": "executionId", "required": true } - ] + ], + "responses": {} }, "patch": { "operationId": "updateExecution", @@ -61,7 +64,8 @@ "content": { "application/json": {} } - } + }, + "responses": {} }, "delete": { "operationId": "deleteExecution", @@ -71,7 +75,8 @@ "name": "executionId", "required": true } - ] + ], + "responses": {} } }, "/v1/workflows/executions/{executionId}/steps": { @@ -89,7 +94,8 @@ "content": { "application/json": {} } - } + }, + "responses": {} } }, "/v1/workflows/executions/{executionId}/steps/{stepId}": { @@ -112,7 +118,8 @@ "content": { "application/json": {} } - } + }, + "responses": {} }, "delete": { "operationId": "deleteStep", @@ -127,7 +134,8 @@ "name": "stepId", "required": true } - ] + ], + "responses": {} } }, "/v1/workflows/executions/search": { @@ -138,7 +146,8 @@ "content": { "application/json": {} } - } + }, + "responses": {} } }, "/v1/workflows/executions/steps/search": { @@ -150,7 +159,8 @@ "content": { "application/json": {} } - } + }, + "responses": {} } }, "/v1/workflows/executions/{executionId}/closing-reasons": { @@ -162,7 +172,8 @@ "name": "executionId", "required": true } - ] + ], + "responses": {} } } }, diff --git a/clients/workflow-client/src/openapi.d.ts b/clients/workflow-client/src/openapi.d.ts index 587a86f0..35efe1a6 100644 --- a/clients/workflow-client/src/openapi.d.ts +++ b/clients/workflow-client/src/openapi.d.ts @@ -53,7 +53,7 @@ declare namespace Components { */ export interface DynamicDueDate { numberOfUnits: number; - timePeriod: "minutes" | "hours" | "days" | "weeks" | "months"; + timePeriod: "days" | "weeks" | "months"; actionTypeCondition?: "WORKFLOW_STARTED" | "STEP_CLOSED"; stepId?: string; } @@ -217,21 +217,11 @@ declare namespace Components { */ userIds?: number[]; assignedTo?: string[]; - /** - * example: - * 2021-04-27T12:00:00.000Z - */ - dueDate?: string; - dynamicDueDate?: /* set a Duedate for a step then a specific */ DynamicDueDate; startedTime?: string; completedTime?: string; status?: SectionStatus; type: ItemType; steps: Step[]; - /** - * Taxonomy ids (purposes in this case) that are associated with this section and used for filtering - */ - taxonomies?: string[]; } /** * A group of Steps that define the progress of the Workflow @@ -247,7 +237,6 @@ declare namespace Components { name: string; type: ItemType; steps: StepSimplified[]; - assignedTo?: string[]; } export type SectionStatus = "OPEN" | "IN_PROGRESS" | "COMPLETED"; export interface Step { @@ -565,10 +554,6 @@ declare namespace Components { * Version of the workflow execution */ version?: number; - /** - * Taxonomy ids (both Labels and Purposes) that are associated with this workflow and used for filtering - */ - taxonomies?: string[]; flow: (/* A group of Steps that define the progress of the Workflow */ Section | Step)[]; } export interface WorkflowExecutionBase { @@ -614,16 +599,13 @@ declare namespace Components { * Version of the workflow execution */ version?: number; - /** - * Taxonomy ids (both Labels and Purposes) that are associated with this workflow and used for filtering - */ - taxonomies?: string[]; } /** * example: * { * "workflowId": "j3f23fh23uif98", * "trigger": "AUTOMATIC", + * "dueDate": "2021-04-27T12:01:13.000Z", * "contexts": [ * { * "id": "3fa3fa86-0907-4642-a57e-0fe30a19874d", @@ -641,10 +623,6 @@ declare namespace Components { trigger?: TriggerType; assignedTo?: string[]; contexts?: WorkflowContext[]; - /** - * An array of purposes to filter workflow phases. - */ - purposes?: string[]; } /** * example: @@ -721,10 +699,6 @@ declare namespace Components { * Version of the workflow execution */ version?: number; - /** - * Taxonomy ids (both Labels and Purposes) that are associated with this workflow and used for filtering - */ - taxonomies?: string[]; flow: (/* A group of Steps that define the progress of the Workflow */ Section | Step)[]; } export interface WorkflowExecutionUpdateReq { @@ -750,13 +724,13 @@ declare namespace Components { name?: string; status?: WorkflowStatus; assignees?: string[]; - duedate?: string; // date-time - last_update_time?: string; // date-time + duedate?: string; + last_update_time?: string; progress?: number; task_id?: string; task_name?: string; task_assignees?: string[]; - task_duedate?: string; // date-time + task_duedate?: string; task_execution_type?: StepType; task_status?: StepStatus; phase_id?: string; @@ -777,6 +751,7 @@ declare namespace Paths { * { * "workflowId": "j3f23fh23uif98", * "trigger": "AUTOMATIC", + * "dueDate": "2021-04-27T12:01:13.000Z", * "contexts": [ * { * "id": "3fa3fa86-0907-4642-a57e-0fe30a19874d", diff --git a/clients/workflow-client/src/openapi.json b/clients/workflow-client/src/openapi.json index 443b6210..3892ae49 100644 --- a/clients/workflow-client/src/openapi.json +++ b/clients/workflow-client/src/openapi.json @@ -701,13 +701,6 @@ "items": { "$ref": "#/components/schemas/WorkflowContext" } - }, - "purposes": { - "type": "array", - "items": { - "type": "string" - }, - "description": "An array of purposes to filter workflow phases." } }, "required": [ @@ -716,6 +709,7 @@ "example": { "workflowId": "j3f23fh23uif98", "trigger": "AUTOMATIC", + "dueDate": "2021-04-27T12:01:13.000Z", "contexts": [ { "id": "3fa3fa86-0907-4642-a57e-0fe30a19874d", @@ -892,13 +886,6 @@ "version": { "type": "integer", "description": "Version of the workflow execution" - }, - "taxonomies": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Taxonomy ids (both Labels and Purposes) that are associated with this workflow and used for filtering" } } }, @@ -1069,12 +1056,6 @@ "items": { "$ref": "#/components/schemas/StepSimplified" } - }, - "assignedTo": { - "type": "array", - "items": { - "type": "string" - } } }, "required": [ @@ -1113,13 +1094,6 @@ "type": "string" } }, - "dueDate": { - "type": "string", - "example": "2021-04-27T12:00:00.000Z" - }, - "dynamicDueDate": { - "$ref": "#/components/schemas/DynamicDueDate" - }, "startedTime": { "type": "string" }, @@ -1137,13 +1111,6 @@ "items": { "$ref": "#/components/schemas/Step" } - }, - "taxonomies": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Taxonomy ids (purposes in this case) that are associated with this section and used for filtering" } }, "required": [ @@ -1719,12 +1686,10 @@ } }, "duedate": { - "type": "string", - "format": "date-time" + "type": "string" }, "last_update_time": { - "type": "string", - "format": "date-time" + "type": "string" }, "progress": { "type": "number" @@ -1742,8 +1707,7 @@ } }, "task_duedate": { - "type": "string", - "format": "date-time" + "type": "string" }, "task_execution_type": { "$ref": "#/components/schemas/StepType" @@ -1827,8 +1791,6 @@ "timePeriod": { "type": "string", "enum": [ - "minutes", - "hours", "days", "weeks", "months" diff --git a/clients/workflow-definition-client/src/openapi.d.ts b/clients/workflow-definition-client/src/openapi.d.ts index 14375a4f..1030e5f7 100644 --- a/clients/workflow-definition-client/src/openapi.d.ts +++ b/clients/workflow-definition-client/src/openapi.d.ts @@ -126,7 +126,7 @@ declare namespace Components { export interface DynamicDueDate { numberOfUnits: number; timePeriod: "minutes" | "hours" | "days" | "weeks" | "months"; - actionTypeCondition: "WORKFLOW_STARTED" | "STEP_CLOSE"; + actionTypeCondition: "WORKFLOW_STARTED" | "STEP_CLOSED"; stepId?: string; } /**