Skip to content

Commit 9223b88

Browse files
committed
Merge branch 'pauldyson-588_intent_proposal_view_orders' into context-data-and-intents-consolidated-update-branch
Merging PR #672 into consolidated PR branch
2 parents 150b720 + fb6d4f6 commit 9223b88

11 files changed

Lines changed: 67 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
3232
* Added a `ViewResearch` Intent to be used when a user wants to see the latest research on a particular stock ([#623](https://github.com/finos/FDC3/pull/623))
3333
* Updated for Intent Naming conventions. Added hyperlinks for existing Intent spec definitions. Changes based on ([#701](https://github.com/finos/FDC3/pull/701))
3434
* Added guide on how to submit a new Intent. ([#624](https://github.com/finos/FDC3/pull/624))
35-
* Added a context type for View Interactions. Used when a user wants to see the latest interactions (calls, meetings, conferences, roadshows) on a particular stock or with an individual or organization. ([#625](https://github.com/finos/FDC3/pull/625))
36-
35+
* Added a context type for `ViewInteractions`. Used when a user wants to see the latest interactions (calls, meetings, conferences, roadshows) on a particular stock or with an individual or organization. ([#625](https://github.com/finos/FDC3/pull/625))
36+
* Added guide on how to submit a new Intent. ([#624](https://github.com/finos/FDC3/pull/624))
37+
* Added `ViewOrders`. Used when a user wants to see the order history of an individual, an institution or of a particular stock. ([#672](https://github.com/finos/FDC3/pull/672))
3738

3839
### Changed
3940
* Consolidated `Listener` documentation with other types ([#404](https://github.com/finos/FDC3/pull/404))

docs/context/ref/Contact.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Intents
5151
- [ViewProfile](../../intents/ref/ViewProfile)
5252
- [ViewResearch](../../intents/ref/ViewResearch)
5353
- [ViewInteractions](../../intents/ref/ViewInteractions)
54+
- [ViewOrders](../../intents/ref/ViewOrders)
5455

5556
FINOS Financial Objects
5657
- [Contact](https://fo.finos.org/docs/objects/contact)

docs/context/ref/Instrument.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ Intents
8181
- [ViewQuote](../../intents/ref/ViewQuote)
8282
- [ViewResearch](../../intents/ref/ViewResearch)
8383
- [ViewInteractions](../../intents/ref/ViewInteractions)
84+
- [ViewOrders](../../intents/ref/ViewOrders)
8485

8586
FINOS Financial Objects
8687
- [Instrument](https://fo.finos.org/docs/objects/instrument)

docs/context/ref/Organization.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Intents
5757
- [ViewProfile](../../intents/ref/ViewProfile)
5858
- [ViewResearch](../../intents/ref/ViewResearch)
5959
- [ViewInteractions](../../intents/ref/ViewInteractions)
60+
- [ViewOrders](../../intents/ref/ViewOrders)
6061

6162
FINOS Financial Objects
6263
- [Organization](https://fo.finos.org/docs/objects/organization)

docs/intents/ref/ViewHoldings.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,4 @@ Context
4646
Intents
4747
- [ViewInstrument](ViewInstrument)
4848
- [ViewAnalysis](ViewAnalysis)
49+
- [ViewOrders](ViewOrders)

docs/intents/ref/ViewInstrument.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,5 @@ Context
4242

4343

4444
Intents
45-
- [ViewChart](ViewChart)
45+
- [ViewChart](ViewChart)
46+
- [ViewOrders](ViewOrders)

docs/intents/ref/ViewOrders.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
id: ViewOrders
3+
sidebar_label: ViewOrders
4+
title: ViewOrders
5+
hide_title: true
6+
---
7+
# `ViewOrders`
8+
9+
Display any orders related to the provided contact, instrument, or organization.
10+
11+
## Intent Name
12+
13+
`ViewOrders`
14+
15+
## Display Name
16+
17+
`View Orders`
18+
19+
## Possible Contexts
20+
21+
* [Contact](../../context/ref/Contact)
22+
* [Instrument](../../context/ref/Instrument)
23+
* [Organization](../../context/ref/Organization)
24+
25+
## Example
26+
27+
```js
28+
const instrument = {
29+
type: 'fdc3.instrument',
30+
name: 'Tesla, Inc.',
31+
id: {
32+
ticker: 'TSLA'
33+
}
34+
}
35+
36+
fdc3.raiseIntent('ViewOrders', instrument)
37+
```
38+
39+
## See Also
40+
41+
Context
42+
- [Contact](../../context/ref/Contact)
43+
- [Instrument](../../context/ref/Instrument)
44+
- [Organization](../../context/ref/Organization)
45+
46+
Intents
47+
- [ViewHoldings](ViewHoldings)
48+
- [ViewInstrument](ViewInstrument)

docs/intents/spec.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ A list of standardized intents are defined in the following pages:
139139
* [`ViewProfile`](ref/ViewProfile)
140140
* [`ViewResearch`](ref/ViewResearch)
141141
* [`ViewInteractions`](ref/ViewInteractions)
142+
* [`ViewInteractions`](ref/ViewInteractions)
143+
* [`ViewOrders`](ref/ViewOrders)
142144

143145
### Deprecated Intents
144146

src/intents/Intents.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ export enum Intents {
1010
ViewHoldings = 'ViewHoldings',
1111
ViewProfile = 'ViewProfile',
1212
ViewResearch = 'ViewResearch',
13-
ViewInteractions = 'ViewInteractions'
13+
ViewInteractions = 'ViewInteractions',
14+
ViewOrders = 'ViewOrders'
1415
}

src/intents/standard intents.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@
4747
{
4848
"name": "ViewInteractions",
4949
"displayName": "Interactions"
50+
},
51+
{
52+
"name": "ViewOrders",
53+
"displayName": "Orders"
5054
}
5155
]
5256
}

0 commit comments

Comments
 (0)