Skip to content

Commit

Permalink
feat: add salesforce record id type (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamBergamin authored Dec 10, 2024
1 parent a30b23b commit ca8fc2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/functions/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -96,10 +97,9 @@ type FunctionInputRuntimeType<
infer RP
> ? TypedObjectFunctionInputRuntimeType<P, RP, Param>
: 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
Expand Down
1 change: 1 addition & 0 deletions src/schema/slack/types/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ca8fc2c

Please sign in to comment.