-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(TaskList): Include taskFilterByVariable in the API Docs - (alpha…
…5 release) (#2552) * Include taskFilterByVariable in the API Docs * Update task-search-request.mdx Change the variable filter text * Update task-search-request.mdx Fix typo. * style(formatting): little bitty grammatical fix --------- Co-authored-by: Christina Ausley <[email protected]> Co-authored-by: christinaausley <[email protected]>
- Loading branch information
1 parent
d012248
commit 6fdf619
Showing
3 changed files
with
162 additions
and
0 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
docs/apis-tools/tasklist-api-rest/schemas/enums/operator.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
id: operator | ||
title: Operator | ||
hide_table_of_contents: false | ||
--- | ||
|
||
export const Bullet = () => ( | ||
<> | ||
<span | ||
style={{ | ||
fontWeight: "normal", | ||
fontSize: ".5em", | ||
color: "var(--ifm-color-secondary-darkest)", | ||
}} | ||
> | ||
● | ||
</span> | ||
</> | ||
); | ||
|
||
export const SpecifiedBy = (props) => ( | ||
<> | ||
Specification | ||
<a | ||
className="link" | ||
style={{ fontSize: "1.5em", paddingLeft: "4px" }} | ||
target="_blank" | ||
href={props.url} | ||
title={"Specified by " + props.url} | ||
> | ||
⎘ | ||
</a> | ||
</> | ||
); | ||
|
||
export const Badge = (props) => ( | ||
<> | ||
<span class={"badge badge--" + props.class}>{props.text}</span> | ||
</> | ||
); | ||
|
||
Filter task by variables operator. | ||
|
||
```java | ||
enum Operator { | ||
eq | ||
} | ||
``` | ||
|
||
### Values | ||
|
||
#### [<code style={{ fontWeight: 'normal' }}>Operator.<b>eq</b></code>](#) | ||
|
||
> Equals | ||
[`TaskVariables`](../models/task-variables.mdx) <Badge class="secondary" text="input"/> |
94 changes: 94 additions & 0 deletions
94
docs/apis-tools/tasklist-api-rest/schemas/models/task-variables.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
--- | ||
id: task-variables | ||
title: TaskVariables | ||
hide_table_of_contents: false | ||
--- | ||
|
||
import Tabs from "@theme/Tabs"; | ||
import TabItem from "@theme/TabItem"; | ||
|
||
export const Bullet = () => ( | ||
<> | ||
<span | ||
style={{ | ||
fontWeight: "normal", | ||
fontSize: ".5em", | ||
color: "var(--ifm-color-secondary-darkest)", | ||
}} | ||
> | ||
● | ||
</span> | ||
</> | ||
); | ||
|
||
export const SpecifiedBy = (props) => ( | ||
<> | ||
Specification | ||
<a | ||
className="link" | ||
style={{ fontSize: "1.5em", paddingLeft: "4px" }} | ||
target="_blank" | ||
href={props.url} | ||
title={"Specified by " + props.url} | ||
> | ||
⎘ | ||
</a> | ||
</> | ||
); | ||
|
||
export const Badge = (props) => ( | ||
<> | ||
<span class={"badge badge--" + props.class}>{props.text}</span> | ||
</> | ||
); | ||
|
||
Filter task by Variables | ||
|
||
<Tabs groupId="schema" defaultValue="schema" values={ | ||
[ | ||
{label:'Schema',value: 'schema'}, | ||
{label:'Example value',value: 'example'} | ||
] | ||
}> | ||
<TabItem value='schema'> | ||
|
||
```graphql | ||
{ | ||
"name": string, | ||
"value": string, | ||
"operator": Operator | ||
} | ||
``` | ||
|
||
</TabItem> | ||
|
||
<TabItem value='example'> | ||
|
||
```json | ||
{ | ||
"name": "variableName", | ||
"value": "variableValue", | ||
"operator": "eq" | ||
} | ||
``` | ||
|
||
</TabItem> | ||
</Tabs> | ||
|
||
### Fields | ||
|
||
#### [<code style={{ fontWeight: 'normal' }}>TaskVariables.<b>name</b></code>](#)<Bullet />`string` <Badge class="secondary" text="non-null"/> | ||
|
||
> The name of the variable | ||
#### [<code style={{ fontWeight: 'normal' }}>TaskVariables.<b>value</b></code>](#)<Bullet />`string` <Badge class="secondary" text="non-null"/> | ||
|
||
> The value of the variable | ||
#### [<code style={{ fontWeight: 'normal' }}>TaskVariables.<b>operator</b></code>](#)<Bullet />[`Operator`](../enums/operator.mdx) <Badge class="secondary" text="non-null"/> <Badge class="secondary" text="enum"/> | ||
|
||
> Define the search operator to use for the variable | ||
### Member of | ||
|
||
[`TaskSearchRequest`](../requests/task-search-request.mdx) <Badge class="secondary" text="object"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters