From 9cf911abd6317071a409e5b405be10f72f9e9500 Mon Sep 17 00:00:00 2001 From: andriichumak Date: Sun, 28 Jun 2026 17:37:22 +0200 Subject: [PATCH 1/2] fix(sdk): centicredits in executions list Document centicredits field in the types and test assets. The field is already being delivered, was not documented. https://make.atlassian.net/browse/WM-4172 --- src/endpoints/executions.ts | 2 ++ test/mocks/executions/get.json | 1 + test/mocks/executions/list.json | 1 + 3 files changed, 4 insertions(+) diff --git a/src/endpoints/executions.ts b/src/endpoints/executions.ts index e8ec3e8..f8474ee 100644 --- a/src/endpoints/executions.ts +++ b/src/endpoints/executions.ts @@ -16,6 +16,8 @@ export type Execution = { duration: number; /** Number of operations consumed by the execution */ operations: number; + /** Credits consumed by the execution, in centicredits (hundredths of a credit) */ + centicredits: number; /** Amount of data transfer consumed by the execution */ transfer: number; /** ID of the organization the execution belongs to */ diff --git a/test/mocks/executions/get.json b/test/mocks/executions/get.json index 227f48a..5fe2ce7 100644 --- a/test/mocks/executions/get.json +++ b/test/mocks/executions/get.json @@ -3,6 +3,7 @@ "imtId": "1632398122946_scenario.5.manual.cc1c49323b344687a324888762206003", "duration": 5611, "operations": 2, + "centicredits": 200, "transfer": 5, "organizationId": 5, "teamId": 16, diff --git a/test/mocks/executions/list.json b/test/mocks/executions/list.json index 12ac09c..ad57ec9 100644 --- a/test/mocks/executions/list.json +++ b/test/mocks/executions/list.json @@ -4,6 +4,7 @@ "imtId": "1632371744497_scenario.1229.auto.da518adcd14b4b64ac6358823ccb80ca", "duration": 19979, "operations": 10, + "centicredits": 1000, "transfer": 3942, "organizationId": 21, "teamId": 27, From 37ada5980823de0f92a0e6cd51250b0ddff74fbc Mon Sep 17 00:00:00 2001 From: andriichumak Date: Sun, 28 Jun 2026 18:13:53 +0200 Subject: [PATCH 2/2] fix(sdk): document timestamp as well https://make.atlassian.net/browse/WM-4172 --- src/endpoints/executions.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/endpoints/executions.ts b/src/endpoints/executions.ts index f8474ee..0b994b8 100644 --- a/src/endpoints/executions.ts +++ b/src/endpoints/executions.ts @@ -30,6 +30,8 @@ export type Execution = { authorId: number | null; /** Whether the execution was run instantly */ instant: boolean; + /** ISO 8601 timestamp of when the execution occurred */ + timestamp: string; }; /**