Skip to content

Commit 01d9d2d

Browse files
author
Fil Maj
authored
web-api(feat): minor additions to some admin API response types (#2071)
1 parent 829309e commit 01d9d2d

4 files changed

Lines changed: 8 additions & 0 deletions

File tree

packages/web-api/src/types/response/AdminAppsActivitiesListResponse.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export interface Activity {
2525
enterprise_id?: string;
2626
event_type?: string;
2727
level?: string;
28+
parent_execution_id?: string;
2829
payload?: Payload;
2930
source?: string;
3031
team_id?: string;

packages/web-api/src/types/response/AdminFunctionsListResponse.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ export type AdminFunctionsListResponse = WebAPICallResult & {
2020
export interface Function {
2121
app_id?: string;
2222
callback_id?: string;
23+
category_id?: string;
24+
category_label?: string;
2325
date_created?: number;
2426
date_deleted?: number;
2527
date_released?: number;

packages/web-api/src/types/response/AdminUsersListResponse.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export interface User {
3737
is_primary_owner?: boolean;
3838
is_restricted?: boolean;
3939
is_ultra_restricted?: boolean;
40+
last_active_ts?: number;
4041
roles?: string[];
4142
username?: string;
4243
workspaces?: string[];

scripts/generate-web-api-types.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ npm i
2020
# This Ruby script runs quicktype internally and do some additional modification to the generated files
2121
ruby ./code_generator.rb
2222
popd
23+
# run lint fixing after type generation
24+
pushd packages/web-api
25+
npm i
26+
npm run lint

0 commit comments

Comments
 (0)