-
Notifications
You must be signed in to change notification settings - Fork 117
/
ContextType.ts
73 lines (69 loc) · 1.93 KB
/
ContextType.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/**
* SPDX-License-Identifier: Apache-2.0
* Copyright FINOS FDC3 contributors - see NOTICE file
*/
/**
* @see https://fdc3.finos.org/docs/context/spec#standard-context-types
*/
export type StandardContextType =
| 'fdc3.action'
| 'fdc3.chart'
| 'fdc3.chat.initSettings'
| 'fdc3.chat.message'
| 'fdc3.chat.room'
| 'fdc3.chat.searchCriteria'
| 'fdc3.contact'
| 'fdc3.contactList'
| 'fdc3.country'
| 'fdc3.currency'
| 'fdc3.email'
| 'fdc3.instrument'
| 'fdc3.instrumentList'
| 'fdc3.interaction'
| 'fdc3.message'
| 'fdc3.organization'
| 'fdc3.portfolio'
| 'fdc3.position'
| 'fdc3.nothing'
| 'fdc3.timeRange'
| 'fdc3.transactionResult'
| 'fdc3.valuation';
/**
* @see https://fdc3.finos.org/docs/context/spec#standard-context-types
*/
export type ExperimentalContextType =
| 'fdc3.order'
| 'fdc3.orderList'
| 'fdc3.product'
| 'fdc3.trade'
| 'fdc3.tradeList';
/**
* @see https://fdc3.finos.org/docs/context/spec
*/
// disable linter rule that dislikes {} - its necessary here to stop the TS compiler reducing this type to string
// eslint-disable-next-line @typescript-eslint/ban-types
export type ContextType = StandardContextType | ExperimentalContextType | (string & {});
/**
* @deprecated Use {@link StandardContextType} instead
*/
export enum ContextTypes {
Chart = 'fdc3.chart',
ChatInitSettings = 'fdc3.chat.initSettings',
ChatRoom = 'fdc3.chat.room',
Contact = 'fdc3.contact',
ContactList = 'fdc3.contactList',
Country = 'fdc3.country',
Currency = 'fdc3.currency',
Email = 'fdc3.email',
Instrument = 'fdc3.instrument',
InstrumentList = 'fdc3.instrumentList',
Interaction = 'fdc3.interaction',
Nothing = 'fdc3.nothing',
Organization = 'fdc3.organization',
Portfolio = 'fdc3.portfolio',
Position = 'fdc3.position',
ChatSearchCriteria = 'fdc3.chat.searchCriteria',
TimeRange = 'fdc3.timeRange',
TransactionResult = 'fdc3.transactionResult',
Valuation = 'fdc3.valuation',
}