Skip to content

Commit

Permalink
Update FunctionExectionContext to reflect payload changes
Browse files Browse the repository at this point in the history
  • Loading branch information
srajiang committed Aug 30, 2022
1 parent 9ca6679 commit 9d6d22f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/types/actions/block-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ export interface BlockAction<ElementAction extends BasicElementAction = BlockEle
};
};
};
token: string;
token?: string;
response_url: string;
trigger_id: string;
trigger_id?: string;
api_app_id: string;

// TODO: we'll need to fill this out a little more carefully in the future, possibly using a generic parameter
Expand Down
8 changes: 0 additions & 8 deletions src/types/functions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,7 @@ export interface FunctionExecutionContext {
execution_id: string,
inputs: Record<string, unknown>,
function: {
id: string,
callback_id: string,
title: string,
description: string,
type: string,
input_parameters: any[],
output_parameters: any[],
app_id: string,
date_updated: number,
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/types/view/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export interface ViewSubmitAction extends FunctionContext {
};
view: ViewOutput;
api_app_id: string;
token: string;
trigger_id: string; // undocumented
token?: string;
trigger_id?: string; // undocumented
// exists for enterprise installs
is_enterprise_install?: boolean;
enterprise?: {
Expand Down

0 comments on commit 9d6d22f

Please sign in to comment.