Skip to content

Commit

Permalink
web-api(feat): minor additions to some admin API response types (slac…
Browse files Browse the repository at this point in the history
  • Loading branch information
filmaj authored and mtjandra committed Oct 16, 2024
1 parent 832cf4e commit 57ac6a7
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 57ac6a7

Please sign in to comment.