From 01d9d2df8b8db40dd8d1a41913dddde43a1e98de Mon Sep 17 00:00:00 2001 From: Fil Maj Date: Mon, 7 Oct 2024 15:00:12 -0400 Subject: [PATCH] web-api(feat): minor additions to some admin API response types (#2071) --- .../src/types/response/AdminAppsActivitiesListResponse.ts | 1 + .../web-api/src/types/response/AdminFunctionsListResponse.ts | 2 ++ packages/web-api/src/types/response/AdminUsersListResponse.ts | 1 + scripts/generate-web-api-types.sh | 4 ++++ 4 files changed, 8 insertions(+) diff --git a/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts b/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts index bb4fe5e53..59c652e98 100644 --- a/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts +++ b/packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts @@ -25,6 +25,7 @@ export interface Activity { enterprise_id?: string; event_type?: string; level?: string; + parent_execution_id?: string; payload?: Payload; source?: string; team_id?: string; diff --git a/packages/web-api/src/types/response/AdminFunctionsListResponse.ts b/packages/web-api/src/types/response/AdminFunctionsListResponse.ts index c46f40c94..baff91421 100644 --- a/packages/web-api/src/types/response/AdminFunctionsListResponse.ts +++ b/packages/web-api/src/types/response/AdminFunctionsListResponse.ts @@ -20,6 +20,8 @@ export type AdminFunctionsListResponse = WebAPICallResult & { export interface Function { app_id?: string; callback_id?: string; + category_id?: string; + category_label?: string; date_created?: number; date_deleted?: number; date_released?: number; diff --git a/packages/web-api/src/types/response/AdminUsersListResponse.ts b/packages/web-api/src/types/response/AdminUsersListResponse.ts index 5be5073a5..ab2ea0f40 100644 --- a/packages/web-api/src/types/response/AdminUsersListResponse.ts +++ b/packages/web-api/src/types/response/AdminUsersListResponse.ts @@ -37,6 +37,7 @@ export interface User { is_primary_owner?: boolean; is_restricted?: boolean; is_ultra_restricted?: boolean; + last_active_ts?: number; roles?: string[]; username?: string; workspaces?: string[]; diff --git a/scripts/generate-web-api-types.sh b/scripts/generate-web-api-types.sh index 093eef817..c8c5b366c 100755 --- a/scripts/generate-web-api-types.sh +++ b/scripts/generate-web-api-types.sh @@ -20,3 +20,7 @@ npm i # This Ruby script runs quicktype internally and do some additional modification to the generated files ruby ./code_generator.rb popd +# run lint fixing after type generation +pushd packages/web-api +npm i +npm run lint