diff --git a/src/functions/types.ts b/src/functions/types.ts index 86d762cb..1baa7fdb 100644 --- a/src/functions/types.ts +++ b/src/functions/types.ts @@ -80,6 +80,7 @@ type FunctionInputRuntimeType< | typeof SlackSchemaTypes.canvas_id | typeof SlackSchemaTypes.canvas_template_id | typeof SlackSchemaTypes.date + | typeof SlackSchemaTypes.salesforce_record_id | typeof SlackSchemaTypes.message_ts ? string : Param["type"] extends | typeof SchemaTypes.integer @@ -96,10 +97,9 @@ type FunctionInputRuntimeType< infer RP > ? TypedObjectFunctionInputRuntimeType : UnknownRuntimeType - : Param["type"] extends typeof SlackSchemaTypes.rich_text - ? UnknownRuntimeType - : Param["type"] extends typeof SlackSchemaTypes.expanded_rich_text - ? UnknownRuntimeType + : Param["type"] extends + | typeof SlackSchemaTypes.rich_text + | typeof SlackSchemaTypes.expanded_rich_text ? UnknownRuntimeType : UnknownRuntimeType; // deno-lint-ignore no-explicit-any diff --git a/src/schema/slack/types/mod.ts b/src/schema/slack/types/mod.ts index 8561b1b1..3380050f 100644 --- a/src/schema/slack/types/mod.ts +++ b/src/schema/slack/types/mod.ts @@ -11,6 +11,7 @@ const SlackPrimitiveTypes = { message_ts: "slack#/types/message_ts", oauth2: "slack#/types/credential/oauth2", rich_text: "slack#/types/rich_text", + salesforce_record_id: "slack#/types/salesforce_record_id", team_id: "slack#/types/team_id", timestamp: "slack#/types/timestamp", user_id: "slack#/types/user_id",