Skip to content

Commit

Permalink
piece reference
Browse files Browse the repository at this point in the history
  • Loading branch information
abuaboud committed Jan 14, 2023
1 parent c5ba828 commit 6e43731
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ All properties `name` should be a snake case.

# Schema

Here is the schema of each property type.
The following is the schema for each property type:

## Short text

Expand Down Expand Up @@ -51,7 +51,7 @@ Property.Number({
required: boolean,
authUrl: string, // The url used for redirection
tokenUrl: string, // The url used for claiming token
scope: string[]],
scope: string[],
})
```

Expand All @@ -68,13 +68,14 @@ Property.Number({

## Dropdown

Options is function, so you can load options dynmiucally depends on the user props value.
Options can be loaded dynamically based on the user's props value.

```typescript
Property.Dropdown({
displayName: string;
description: string | undefined;
required: boolean;
refreshers: string[], // properties that when changed, will trigger the options function to execute
options: async (propsValue): DropdownState {
if (props['authentication'] === undefined) {
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,4 @@ export const createNewIssue = createTrigger({
// a seperate flow run.
run: async run(context, propsValue): unknown[] => {}
})
```

# Examples

## Webhook Trigger

## Polling Trigger
```

0 comments on commit 6e43731

Please sign in to comment.