From 9d6d22fa3a6262b94c4fe8338e5f0f6b1cee6189 Mon Sep 17 00:00:00 2001 From: Sarah Jiang Date: Tue, 30 Aug 2022 11:05:09 -0700 Subject: [PATCH] Update FunctionExectionContext to reflect payload changes --- src/types/actions/block-action.ts | 4 ++-- src/types/functions/index.ts | 8 -------- src/types/view/index.ts | 4 ++-- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/types/actions/block-action.ts b/src/types/actions/block-action.ts index 668b0b6a8..fcf702148 100644 --- a/src/types/actions/block-action.ts +++ b/src/types/actions/block-action.ts @@ -242,9 +242,9 @@ export interface BlockAction, function: { - id: string, callback_id: string, - title: string, - description: string, - type: string, - input_parameters: any[], - output_parameters: any[], - app_id: string, - date_updated: number, } } diff --git a/src/types/view/index.ts b/src/types/view/index.ts index dc91ff28e..5620984a6 100644 --- a/src/types/view/index.ts +++ b/src/types/view/index.ts @@ -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?: {