Skip to content

Commit

Permalink
web-api(feat): minor additions to some admin API response types (#2071)
Browse files Browse the repository at this point in the history
  • Loading branch information
filmaj authored Oct 7, 2024
1 parent 829309e commit 01d9d2d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down
4 changes: 4 additions & 0 deletions scripts/generate-web-api-types.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 01d9d2d

Please sign in to comment.