From 18eabece42eedd5872aed3aa7ac5bf3ffa386eea Mon Sep 17 00:00:00 2001 From: Sebastian Sauerer Date: Fri, 25 Oct 2024 13:26:52 +0200 Subject: [PATCH] chore(audit-log): update types --- clients/audit-logs-client/package-lock.json | 4 ++-- clients/audit-logs-client/package.json | 2 +- clients/audit-logs-client/src/openapi.d.ts | 10 ++++++++++ clients/audit-logs-client/src/openapi.json | 9 +++++++++ 4 files changed, 22 insertions(+), 3 deletions(-) diff --git a/clients/audit-logs-client/package-lock.json b/clients/audit-logs-client/package-lock.json index d3f9c78..8918bdb 100644 --- a/clients/audit-logs-client/package-lock.json +++ b/clients/audit-logs-client/package-lock.json @@ -1,12 +1,12 @@ { "name": "@epilot/audit-logs-client", - "version": "0.3.0", + "version": "0.3.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@epilot/audit-logs-client", - "version": "0.3.0", + "version": "0.3.1", "license": "MIT", "dependencies": { "@dazn/lambda-powertools-correlation-ids": "^1.28.1", diff --git a/clients/audit-logs-client/package.json b/clients/audit-logs-client/package.json index d05f00a..1439506 100644 --- a/clients/audit-logs-client/package.json +++ b/clients/audit-logs-client/package.json @@ -1,6 +1,6 @@ { "name": "@epilot/audit-logs-client", - "version": "0.3.0", + "version": "0.3.1", "description": "JavaScript client library for the epilot Audit Logs API", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/clients/audit-logs-client/src/openapi.d.ts b/clients/audit-logs-client/src/openapi.d.ts index ca14b68..47c24c1 100644 --- a/clients/audit-logs-client/src/openapi.d.ts +++ b/clients/audit-logs-client/src/openapi.d.ts @@ -81,6 +81,16 @@ declare namespace Components { * {"workflow_id": "123456"} */ detail?: string; + /** + * Description of the event + * example: + * Workflow with ID 123456 was deleted + */ + activity?: string; + /** + * URL of the ressource that was modified + */ + source_url?: string; } export interface HttpContext { /** diff --git a/clients/audit-logs-client/src/openapi.json b/clients/audit-logs-client/src/openapi.json index e48fbab..becfac3 100644 --- a/clients/audit-logs-client/src/openapi.json +++ b/clients/audit-logs-client/src/openapi.json @@ -315,6 +315,15 @@ "type": "string", "description": "Contains the stringified request body", "example": "{\"workflow_id\": \"123456\"}" + }, + "activity": { + "type": "string", + "description": "Description of the event", + "example": "Workflow with ID 123456 was deleted" + }, + "source_url": { + "type": "string", + "description": "URL of the ressource that was modified" } } }