@adaptabletools/adaptable 16.0.0-canary.3 → 16.0.0-canary.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/base.css +31 -23
- package/base.css.map +1 -1
- package/bundle.cjs.js +145 -145
- package/index.css +43 -31
- package/index.css.map +1 -1
- package/package.json +10 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -0
- package/src/AdaptableOptions/AdaptableOptions.d.ts +9 -4
- package/src/AdaptableOptions/ColumnOptions.d.ts +1 -10
- package/src/AdaptableOptions/Fdc3Options.d.ts +150 -0
- package/src/AdaptableOptions/Fdc3Options.js +5 -0
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +9 -9
- package/src/AdaptableOptions/GroupingOptions.d.ts +8 -0
- package/src/AdaptableOptions/OpenFinPluginOptions.d.ts +1 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +6 -6
- package/src/Api/AdaptableApi.d.ts +7 -2
- package/src/Api/EventApi.d.ts +3 -3
- package/src/Api/Events/ThemeChanged.d.ts +0 -6
- package/src/Api/Events/ThemeEdited.d.ts +11 -0
- package/src/Api/Fdc3Api.d.ts +83 -0
- package/src/Api/Fdc3Api.js +2 -0
- package/src/Api/FinanceApi.d.ts +12 -12
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +3 -0
- package/src/Api/Implementation/ApiBase.d.ts +4 -0
- package/src/Api/Implementation/ApiBase.js +6 -0
- package/src/Api/Implementation/Fdc3ApiImpl.d.ts +26 -0
- package/src/Api/Implementation/Fdc3ApiImpl.js +79 -0
- package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -0
- package/src/Api/Implementation/OptionsApiImpl.js +3 -0
- package/src/Api/Implementation/QuickSearchApiImpl.d.ts +2 -0
- package/src/Api/Implementation/QuickSearchApiImpl.js +7 -0
- package/src/Api/Internal/AdaptableInternalApi.d.ts +5 -3
- package/src/Api/Internal/AdaptableInternalApi.js +16 -10
- package/src/Api/Internal/Fdc3InternalApi.d.ts +11 -0
- package/src/Api/Internal/Fdc3InternalApi.js +72 -0
- package/src/Api/OptionsApi.d.ts +5 -0
- package/src/Api/QuickSearchApi.d.ts +8 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/{FDC3Context.d.ts → FDC3Context_DEPR.d.ts} +19 -19
- package/src/PredefinedConfig/Common/FDC3Context_DEPR.js +2 -0
- package/src/PredefinedConfig/Common/Fdc3Context.d.ts +53 -0
- package/src/PredefinedConfig/Common/Fdc3Context.js +35 -0
- package/src/PredefinedConfig/Common/Fdc3Intent.d.ts +68 -0
- package/src/PredefinedConfig/Common/Fdc3Intent.js +75 -0
- package/src/PredefinedConfig/Common/Types.d.ts +1 -1
- package/src/PredefinedConfig/SystemState.d.ts +3 -0
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +12 -6
- package/src/Redux/ActionsReducers/SystemRedux.js +18 -2
- package/src/Redux/Store/AdaptableStore.js +2 -2
- package/src/Strategy/Fdc3Module.d.ts +13 -0
- package/src/Strategy/Fdc3Module.js +85 -0
- package/src/Utilities/Constants/ModuleConstants.d.ts +3 -0
- package/src/Utilities/Constants/ModuleConstants.js +5 -2
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +5 -1
- package/src/Utilities/Services/Fdc3Service.d.ts +20 -0
- package/src/Utilities/Services/Fdc3Service.js +87 -0
- package/src/View/AdaptableView.js +9 -7
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.d.ts +9 -0
- package/src/View/QuickSearch/FloatingQuickSearch/FloatingQuickSearch.d.ts +2 -0
- package/src/View/QuickSearch/FloatingQuickSearch/FloatingQuickSearch.js +26 -0
- package/src/View/QuickSearch/QuickSearchInput.d.ts +6 -0
- package/src/View/QuickSearch/QuickSearchInput.js +22 -0
- package/src/View/QuickSearch/QuickSearchViewPanel.d.ts +2 -5
- package/src/View/QuickSearch/QuickSearchViewPanel.js +5 -19
- package/src/agGrid/ActionColumnRenderer.js +1 -1
- package/src/agGrid/Adaptable.d.ts +2 -0
- package/src/agGrid/Adaptable.js +21 -12
- package/src/agGrid/agGridHelper.js +2 -0
- package/src/components/Drawer/index.d.ts +6 -0
- package/src/components/Drawer/index.js +60 -0
- package/src/components/ExpressionEditor/index.js +4 -2
- package/src/components/icons/fdc3.d.ts +3 -0
- package/src/components/icons/fdc3.js +9 -0
- package/src/components/icons/index.js +3 -1
- package/src/metamodel/adaptable.metamodel.d.ts +45 -16
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +6 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/src/{PredefinedConfig/Common/FDC3Context.js → Api/Events/ThemeEdited.js} +0 -0
|
@@ -3,7 +3,6 @@ import { UIConfirmation } from '../../Utilities/Interface/MessagePopups';
|
|
|
3
3
|
import { SystemState } from '../../PredefinedConfig/SystemState';
|
|
4
4
|
import { Action } from 'redux';
|
|
5
5
|
import { ModuleParams } from '../../View/Components/SharedProps/ModuleViewPopupProps';
|
|
6
|
-
import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
7
6
|
import { AdaptableMenuItem } from '../../PredefinedConfig/Common/Menu';
|
|
8
7
|
import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
|
|
9
8
|
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
@@ -26,6 +25,7 @@ import { IMetamodelService } from '../../Utilities/Services/Interface/IMetamodel
|
|
|
26
25
|
import { IModuleCollection } from '../../Strategy/Interface/IModule';
|
|
27
26
|
import { AdaptableObjectTag, AdaptableObjectWithScope } from '../../PredefinedConfig/Common/AdaptableObject';
|
|
28
27
|
import { IRowEditService } from '../../Utilities/Services/Interface/IRowEditService';
|
|
28
|
+
import { Fdc3Service } from '../../Utilities/Services/Fdc3Service';
|
|
29
29
|
export declare class AdaptableInternalApi extends ApiBase {
|
|
30
30
|
getSystemState(): SystemState;
|
|
31
31
|
showPopupConfirmation(confirmation: UIConfirmation): void;
|
|
@@ -66,6 +66,7 @@ export declare class AdaptableInternalApi extends ApiBase {
|
|
|
66
66
|
getTeamSharingService(): ITeamSharingService;
|
|
67
67
|
getMetamodelService(): IMetamodelService;
|
|
68
68
|
getRowEditService(): IRowEditService;
|
|
69
|
+
getFdc3Service(): Fdc3Service;
|
|
69
70
|
getModules(): IModuleCollection;
|
|
70
71
|
getModuleFriendlyName(adaptableModule: AdaptableModule): string;
|
|
71
72
|
forAllRowNodesDo(func: (rowNode: IRowNode) => void, config?: {
|
|
@@ -106,7 +107,8 @@ export declare class AdaptableInternalApi extends ApiBase {
|
|
|
106
107
|
getPreviousGroupedColumnsIndex(layoutId: string): {
|
|
107
108
|
[key: string]: number;
|
|
108
109
|
};
|
|
109
|
-
getValueUsingField(rowData: Record<string, any>,
|
|
110
|
-
setValueUsingField(rowData: Record<string, any>,
|
|
110
|
+
getValueUsingField(rowData: Record<string, any>, columnValueKey: string): any;
|
|
111
|
+
setValueUsingField(rowData: Record<string, any>, columnValueKey: string, newValue: any): Record<string, any>;
|
|
111
112
|
findAdaptableObjectsByLookupCriteria<T extends AdaptableObjectWithScope>({ scope, tag, ids }: AdaptableObjectLookupCriteria, specificAdaptableObjects: T[]): T[];
|
|
113
|
+
buildBaseContext(): BaseContext;
|
|
112
114
|
}
|
|
@@ -121,6 +121,9 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
121
121
|
getRowEditService() {
|
|
122
122
|
return this.adaptable.RowEditService;
|
|
123
123
|
}
|
|
124
|
+
getFdc3Service() {
|
|
125
|
+
return this.adaptable.Fdc3Service;
|
|
126
|
+
}
|
|
124
127
|
getModules() {
|
|
125
128
|
return this.adaptable.adaptableModules;
|
|
126
129
|
}
|
|
@@ -370,15 +373,13 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
370
373
|
return (_a = SystemRedux.SystemPreviousGroupedColumnsSelector(this.getAdaptableState().System)) === null || _a === void 0 ? void 0 : _a[layoutId];
|
|
371
374
|
}
|
|
372
375
|
// "borrowed" from https://github.com/ag-grid/ag-grid/blob/v28.2.1/community-modules/core/src/ts/utils/object.ts#L205
|
|
373
|
-
getValueUsingField(rowData,
|
|
374
|
-
|
|
375
|
-
if (!rowData || !column) {
|
|
376
|
+
getValueUsingField(rowData, columnValueKey) {
|
|
377
|
+
if (!rowData || !(columnValueKey === null || columnValueKey === void 0 ? void 0 : columnValueKey.length)) {
|
|
376
378
|
return;
|
|
377
379
|
}
|
|
378
|
-
const
|
|
379
|
-
const isColumnValueKeyContainsDots = columnValueKey === null || columnValueKey === void 0 ? void 0 : columnValueKey.includes('.');
|
|
380
|
+
const isColumnValueKeyNested = columnValueKey === null || columnValueKey === void 0 ? void 0 : columnValueKey.includes('.');
|
|
380
381
|
// if no '.', then it's not a deep value
|
|
381
|
-
if (!
|
|
382
|
+
if (!isColumnValueKeyNested) {
|
|
382
383
|
return rowData[columnValueKey];
|
|
383
384
|
}
|
|
384
385
|
// otherwise it is a deep value, so need to dig for it
|
|
@@ -393,12 +394,10 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
393
394
|
return currentObject;
|
|
394
395
|
}
|
|
395
396
|
// "borrowed" from https://github.com/ag-grid/ag-grid/blob/v28.2.1/community-modules/core/src/ts/valueService/valueService.ts#L236
|
|
396
|
-
setValueUsingField(rowData,
|
|
397
|
-
|
|
398
|
-
if (!rowData || !column) {
|
|
397
|
+
setValueUsingField(rowData, columnValueKey, newValue) {
|
|
398
|
+
if (!rowData || !(columnValueKey === null || columnValueKey === void 0 ? void 0 : columnValueKey.length)) {
|
|
399
399
|
return;
|
|
400
400
|
}
|
|
401
|
-
const columnValueKey = (_a = column.field) !== null && _a !== void 0 ? _a : column.columnId;
|
|
402
401
|
const isColumnValueKeyContainsDots = columnValueKey === null || columnValueKey === void 0 ? void 0 : columnValueKey.includes('.');
|
|
403
402
|
let valuesAreSame = false;
|
|
404
403
|
if (!isColumnValueKeyContainsDots) {
|
|
@@ -447,5 +446,12 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
447
446
|
}
|
|
448
447
|
return locatedAdaptableObjects;
|
|
449
448
|
}
|
|
449
|
+
buildBaseContext() {
|
|
450
|
+
return {
|
|
451
|
+
adaptableApi: this.getAdaptableApi(),
|
|
452
|
+
adaptableId: this.getAdaptableApi().optionsApi.getAdaptableId(),
|
|
453
|
+
userName: this.getAdaptableApi().optionsApi.getUserName(),
|
|
454
|
+
};
|
|
455
|
+
}
|
|
450
456
|
}
|
|
451
457
|
exports.AdaptableInternalApi = AdaptableInternalApi;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
|
+
import { Fdc3Context, Fdc3ContextType } from '../../PredefinedConfig/Common/Fdc3Context';
|
|
3
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
4
|
+
export declare class Fdc3InternalApi extends ApiBase {
|
|
5
|
+
mapRowToContextData(contextType: Fdc3ContextType, rowNode: IRowNode): Fdc3Context;
|
|
6
|
+
/**
|
|
7
|
+
* Computes the context based on the given `Fdc3Options.gridDataContextMapping` and the given `IRowNode`.
|
|
8
|
+
*/
|
|
9
|
+
getMappedContextData(contextType: Fdc3ContextType, rowNode: IRowNode): Fdc3Context;
|
|
10
|
+
private mapRowValueToContextData;
|
|
11
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Fdc3InternalApi = void 0;
|
|
4
|
+
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
5
|
+
const fdc3_1 = require("@finos/fdc3");
|
|
6
|
+
const Fdc3Options_1 = require("../../AdaptableOptions/Fdc3Options");
|
|
7
|
+
class Fdc3InternalApi extends ApiBase_1.ApiBase {
|
|
8
|
+
mapRowToContextData(contextType, rowNode) {
|
|
9
|
+
const contextMappedFromGridData = this.getMappedContextData(contextType, rowNode);
|
|
10
|
+
const resolveContextDataFn = this.getFdc3Options().resolveContextData;
|
|
11
|
+
if (typeof resolveContextDataFn === 'function') {
|
|
12
|
+
return resolveContextDataFn(Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { contextType,
|
|
13
|
+
contextMappedFromGridData,
|
|
14
|
+
rowNode, rowData: rowNode.data }));
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
return contextMappedFromGridData;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Computes the context based on the given `Fdc3Options.gridDataContextMapping` and the given `IRowNode`.
|
|
22
|
+
*/
|
|
23
|
+
getMappedContextData(contextType, rowNode) {
|
|
24
|
+
var _a;
|
|
25
|
+
if (contextType === fdc3_1.ContextTypes.Nothing) {
|
|
26
|
+
return { type: fdc3_1.ContextTypes.Nothing };
|
|
27
|
+
}
|
|
28
|
+
const contextMapping = (_a = this.getFdc3Options().gridDataContextMapping) === null || _a === void 0 ? void 0 : _a[contextType];
|
|
29
|
+
if (!contextMapping) {
|
|
30
|
+
return { type: contextType };
|
|
31
|
+
}
|
|
32
|
+
const mappedData = this.mapRowValueToContextData(rowNode, contextMapping);
|
|
33
|
+
return Object.assign({ type: contextType }, mappedData);
|
|
34
|
+
}
|
|
35
|
+
mapRowValueToContextData(rowNode, contextMapping = {}) {
|
|
36
|
+
// recursively map the row node values to the context data
|
|
37
|
+
const mapContext = (obj) => {
|
|
38
|
+
return Object.keys(obj).reduce((mappedData, contextKey) => {
|
|
39
|
+
const valueReference = obj[contextKey];
|
|
40
|
+
if (Array.isArray(valueReference)) {
|
|
41
|
+
mappedData[contextKey] = valueReference.map((item) => mapContext(item));
|
|
42
|
+
}
|
|
43
|
+
else if (typeof valueReference === 'object') {
|
|
44
|
+
mappedData[contextKey] = mapContext(valueReference);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
// map value from row node
|
|
48
|
+
// first validate refs
|
|
49
|
+
if (typeof valueReference !== 'string' ||
|
|
50
|
+
(!valueReference.startsWith(Fdc3Options_1.ColumnRefTypePrefix) &&
|
|
51
|
+
!valueReference.startsWith(Fdc3Options_1.FieldRefTypePrefix))) {
|
|
52
|
+
this.logError(`Invalid FDC3 value reference for '${contextKey}': ${valueReference}`);
|
|
53
|
+
return mappedData;
|
|
54
|
+
}
|
|
55
|
+
// '_coldId.columnId'
|
|
56
|
+
if (valueReference.startsWith(Fdc3Options_1.ColumnRefTypePrefix)) {
|
|
57
|
+
const columnId = valueReference.replace(Fdc3Options_1.ColumnRefTypePrefix, '');
|
|
58
|
+
mappedData[contextKey] = this.getGridApi().getRawValueFromRowNode(rowNode, columnId);
|
|
59
|
+
}
|
|
60
|
+
// '_field.fieldName'
|
|
61
|
+
if (valueReference.startsWith(Fdc3Options_1.FieldRefTypePrefix)) {
|
|
62
|
+
const fieldId = valueReference.replace(Fdc3Options_1.FieldRefTypePrefix, '');
|
|
63
|
+
mappedData[contextKey] = this.getAdaptableApi().internalApi.getValueUsingField(rowNode.data, fieldId);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return mappedData;
|
|
67
|
+
}, {});
|
|
68
|
+
};
|
|
69
|
+
return mapContext(contextMapping);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.Fdc3InternalApi = Fdc3InternalApi;
|
package/src/Api/OptionsApi.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { CustomSortOptions } from '../AdaptableOptions/CustomSortOptions';
|
|
|
2
2
|
import { DataSetOptions } from '../AdaptableOptions/DataSetOptions';
|
|
3
3
|
import { GroupingOptions } from '../AdaptableOptions/GroupingOptions';
|
|
4
4
|
import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AdaptableQLOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, EditOptions, EntitlementOptions, ExportOptions, FilterOptions, FlashingCellOptions, FormatColumnOptions, LayoutOptions, MenuOptions, NotificationsOptions, QuickSearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions } from '../types';
|
|
5
|
+
import { Fdc3Options } from '../AdaptableOptions/Fdc3Options';
|
|
5
6
|
/**
|
|
6
7
|
* Range of functions to access Adaptable Options
|
|
7
8
|
*/
|
|
@@ -150,4 +151,8 @@ export interface OptionsApi {
|
|
|
150
151
|
* Returns `AdaptableOptions.userInterfaceOptions`
|
|
151
152
|
*/
|
|
152
153
|
getUserInterfaceOptions(): Readonly<UserInterfaceOptions>;
|
|
154
|
+
/**
|
|
155
|
+
* Returns `AdaptableOptions.fdc3Options`
|
|
156
|
+
*/
|
|
157
|
+
getFdc3Options(): Readonly<Fdc3Options>;
|
|
153
158
|
}
|
|
@@ -34,4 +34,12 @@ export interface QuickSearchApi {
|
|
|
34
34
|
* Opens Settings Panel with Quick Search section selected and visible
|
|
35
35
|
*/
|
|
36
36
|
openQuickSearchSettingsPanel(): void;
|
|
37
|
+
/**
|
|
38
|
+
* Opens the floating Quick Search
|
|
39
|
+
*/
|
|
40
|
+
showFloatingQuickSearch(): void;
|
|
41
|
+
/**
|
|
42
|
+
* Hides the floating Quick Search
|
|
43
|
+
*/
|
|
44
|
+
hideFloatingQuickSearch(): void;
|
|
37
45
|
}
|
|
@@ -54,4 +54,4 @@ export interface AdaptableBaseIcon {
|
|
|
54
54
|
/**
|
|
55
55
|
* All AdapTable System Icon names
|
|
56
56
|
*/
|
|
57
|
-
export declare type AdaptableSystemIconName = 'add' | 'alert' | 'building' | 'laptop' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-long' | 'arrow-down-long' | 'arrow-expand' | 'paperclip' | 'unfilled-circle' | 'boolean-list' | 'broadcast' | 'brush' | 'spanner' | 'edit-table' | 'chart-and-grid' | 'calendar' | 'call' | 'cells' | 'flag' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'columns' | 'filter-list' | 'comment' | 'contains' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'drag' | 'edit' | 'ends-with' | 'equals' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'lightning' | 'folder' | 'folder-open' | 'folder-shared' | 'color-palette' | 'horizontal-lines' | 'function' | 'greater-than' | 'greater-than-or-equal' | 'history' | 'home' | 'import-export' | 'info' | 'brain' | 'download' | 'grid' | 'less-than' | 'less-than-or-equal' | 'list' | 'logout' | 'menu' | 'minus' | 'multiplication' | 'newpage' | 'news' | 'filled-circle' | 'not-contains' | 'not-equal' | 'open-in-new' | 'pause' | 'percent' | 'percent-tag' | 'person' | 'pie-chart' | 'play' | 'plus' | 'add-circle' | 'search' | 'search-table' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'settings' | 'link' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'starts-with' | 'assignment' | 'statusbar' | 'stop' | 'traffic-lights' | 'tab-unselected' | 'theme' | 'clipboard' | 'target' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'downloaded' | 'upload' | 'warning' | 'gradient' | 'badge' | 'italic' | 'bold' | 'align-left' | 'align-right' | 'align-center' | 'align-justify' | 'underline' | 'strikethrough' | 'overline' | 'case-upper' | 'case-lower' | 'case-sentence' | 'visibility-on' | 'visibility-off' | 'visibility-off-bold' | 'visibility-on-bold';
|
|
57
|
+
export declare type AdaptableSystemIconName = 'add' | 'alert' | 'building' | 'laptop' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-long' | 'arrow-down-long' | 'arrow-expand' | 'paperclip' | 'unfilled-circle' | 'boolean-list' | 'broadcast' | 'brush' | 'spanner' | 'edit-table' | 'chart-and-grid' | 'calendar' | 'call' | 'cells' | 'fdc3' | 'flag' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'columns' | 'filter-list' | 'comment' | 'contains' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'drag' | 'edit' | 'ends-with' | 'equals' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'lightning' | 'folder' | 'folder-open' | 'folder-shared' | 'color-palette' | 'horizontal-lines' | 'function' | 'greater-than' | 'greater-than-or-equal' | 'history' | 'home' | 'import-export' | 'info' | 'brain' | 'download' | 'grid' | 'less-than' | 'less-than-or-equal' | 'list' | 'logout' | 'menu' | 'minus' | 'multiplication' | 'newpage' | 'news' | 'filled-circle' | 'not-contains' | 'not-equal' | 'open-in-new' | 'pause' | 'percent' | 'percent-tag' | 'person' | 'pie-chart' | 'play' | 'plus' | 'add-circle' | 'search' | 'search-table' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'settings' | 'link' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'starts-with' | 'assignment' | 'statusbar' | 'stop' | 'traffic-lights' | 'tab-unselected' | 'theme' | 'clipboard' | 'target' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'downloaded' | 'upload' | 'warning' | 'gradient' | 'badge' | 'italic' | 'bold' | 'align-left' | 'align-right' | 'align-center' | 'align-justify' | 'underline' | 'strikethrough' | 'overline' | 'case-upper' | 'case-lower' | 'case-sentence' | 'visibility-on' | 'visibility-off' | 'visibility-off-bold' | 'visibility-on-bold';
|
|
@@ -10,11 +10,11 @@ import { FDC3Intent } from '../../types';
|
|
|
10
10
|
/**
|
|
11
11
|
* General-purpose context type, as defined by FDC3
|
|
12
12
|
*/
|
|
13
|
-
export interface
|
|
13
|
+
export interface FDC3Context_DEPR {
|
|
14
14
|
/**
|
|
15
|
-
* Type of
|
|
15
|
+
* Type of FDC3Context_DEPR that uniquely identifies it, e.g. "instrument"; used to refer to the accepted context(s) when declaring intents
|
|
16
16
|
*/
|
|
17
|
-
type:
|
|
17
|
+
type: FDC3ContextTypeDepr;
|
|
18
18
|
/**
|
|
19
19
|
* Name of the context data (optional) - a text string that describes the data being sent
|
|
20
20
|
*/
|
|
@@ -33,7 +33,7 @@ export interface FDC3Context {
|
|
|
33
33
|
/**
|
|
34
34
|
* FDC3 Context to define a financial Instrument
|
|
35
35
|
*/
|
|
36
|
-
export interface
|
|
36
|
+
export interface InstrumentContextDepr extends FDC3Context_DEPR {
|
|
37
37
|
/**
|
|
38
38
|
* Context type is always `instrument`
|
|
39
39
|
*/
|
|
@@ -61,7 +61,7 @@ export interface InstrumentContext extends FDC3Context {
|
|
|
61
61
|
/**
|
|
62
62
|
* FDC3 Context to define an array of financial Instruments
|
|
63
63
|
*/
|
|
64
|
-
export interface
|
|
64
|
+
export interface InstrumentListContextDepr extends FDC3Context_DEPR {
|
|
65
65
|
/**
|
|
66
66
|
* Context type is always `instrumentList`
|
|
67
67
|
*/
|
|
@@ -77,12 +77,12 @@ export interface InstrumentListContext extends FDC3Context {
|
|
|
77
77
|
/**
|
|
78
78
|
* The instrument data
|
|
79
79
|
*/
|
|
80
|
-
instruments?:
|
|
80
|
+
instruments?: InstrumentContextDepr[];
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* FDC3 Context to define a financial Position (requires an Instrument)
|
|
84
84
|
*/
|
|
85
|
-
export interface
|
|
85
|
+
export interface PositionContextDepr extends FDC3Context_DEPR {
|
|
86
86
|
/**
|
|
87
87
|
* Context type is always `position`
|
|
88
88
|
*/
|
|
@@ -90,7 +90,7 @@ export interface PositionContext extends FDC3Context {
|
|
|
90
90
|
/**
|
|
91
91
|
* The `InstrumentContext` of the relevant Instrument
|
|
92
92
|
*/
|
|
93
|
-
instrument:
|
|
93
|
+
instrument: InstrumentContextDepr;
|
|
94
94
|
/**
|
|
95
95
|
* Free text name of Position
|
|
96
96
|
*/
|
|
@@ -107,7 +107,7 @@ export interface PositionContext extends FDC3Context {
|
|
|
107
107
|
/**
|
|
108
108
|
* FDC3 Context to define a financial Portfolio (array of Positions)
|
|
109
109
|
*/
|
|
110
|
-
export interface
|
|
110
|
+
export interface PortfolioContextDepr extends FDC3Context_DEPR {
|
|
111
111
|
/**
|
|
112
112
|
* Context type is always `portfolio`
|
|
113
113
|
*/
|
|
@@ -123,12 +123,12 @@ export interface PortfolioContext extends FDC3Context {
|
|
|
123
123
|
/**
|
|
124
124
|
* The position data
|
|
125
125
|
*/
|
|
126
|
-
positions?:
|
|
126
|
+
positions?: PositionContextDepr[];
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
129
|
* FDC3 Context to define a Contact
|
|
130
130
|
*/
|
|
131
|
-
export interface
|
|
131
|
+
export interface ContactContextDepr extends FDC3Context_DEPR {
|
|
132
132
|
/**
|
|
133
133
|
* Context type is always `contact`
|
|
134
134
|
*/
|
|
@@ -150,7 +150,7 @@ export interface ContactContext extends FDC3Context {
|
|
|
150
150
|
/**
|
|
151
151
|
* FDC3 Context to define a list of Contacts
|
|
152
152
|
*/
|
|
153
|
-
export interface
|
|
153
|
+
export interface ContactListContextDepr extends FDC3Context_DEPR {
|
|
154
154
|
/**
|
|
155
155
|
* Context type is always `contactList`
|
|
156
156
|
*/
|
|
@@ -166,12 +166,12 @@ export interface ContactListContext extends FDC3Context {
|
|
|
166
166
|
/**
|
|
167
167
|
* The array of Contacts
|
|
168
168
|
*/
|
|
169
|
-
contacts?:
|
|
169
|
+
contacts?: ContactContextDepr[];
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
172
|
* FDC3 Context to define an Organization
|
|
173
173
|
*/
|
|
174
|
-
export interface
|
|
174
|
+
export interface OrganizationContextDepr extends FDC3Context_DEPR {
|
|
175
175
|
/**
|
|
176
176
|
* Context type is always `organization`
|
|
177
177
|
*/
|
|
@@ -194,7 +194,7 @@ export interface OrganizationContext extends FDC3Context {
|
|
|
194
194
|
/**
|
|
195
195
|
* FDC3 Context to define a Country
|
|
196
196
|
*/
|
|
197
|
-
export interface
|
|
197
|
+
export interface CountryContextDepr extends FDC3Context_DEPR {
|
|
198
198
|
/**
|
|
199
199
|
* Context type is always `country`
|
|
200
200
|
*/
|
|
@@ -228,19 +228,19 @@ export interface AdaptableFDC3EventInfo extends BaseEventInfo {
|
|
|
228
228
|
/**
|
|
229
229
|
* Full FDC3 Context for the object related to the event
|
|
230
230
|
*/
|
|
231
|
-
context:
|
|
231
|
+
context: FDC3Context_DEPR;
|
|
232
232
|
}
|
|
233
233
|
/**
|
|
234
234
|
* Defines which FDC3 context is being used
|
|
235
235
|
*/
|
|
236
|
-
export declare type
|
|
236
|
+
export declare type FDC3ContextTypeDepr = 'fdc3.instrument' | 'fdc3.instrumentList' | 'fdc3.position' | 'fdc3.portfolio' | 'fdc3.contact' | 'fdc3.contactList' | 'fdc3.organization' | 'fdc3.country';
|
|
237
237
|
/**
|
|
238
238
|
* Context used when providing Custom FDC3 content
|
|
239
239
|
*/
|
|
240
|
-
export interface CustomFDC3Context extends
|
|
240
|
+
export interface CustomFDC3Context extends FDC3Context_DEPR {
|
|
241
241
|
type: any;
|
|
242
242
|
}
|
|
243
243
|
/**
|
|
244
244
|
* Data used in FDC3 Contexts
|
|
245
245
|
*/
|
|
246
|
-
export declare type
|
|
246
|
+
export declare type ContextDataDepr = Record<string, unknown>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Chart, ChatInitSettings, Contact, ContactList, Context, Country, Currency, Email, Instrument, InstrumentList, Nothing, Organization, Portfolio, Position, TimeRange, Valuation, ContextTypes } from '@finos/fdc3';
|
|
2
|
+
export declare type Fdc3ContextType = ChartContextType | ChatInitSettingsContextType | ContactContextType | ContactListContextType | CountryContextType | CurrencyContextType | EmailContextType | InstrumentContextType | InstrumentListContextType | OrganizationContextType | PortfolioContextType | PositionContextType | TimeRangeContextType | ValuationContextType | NothingContextType;
|
|
3
|
+
export declare const ChartContextKey = "fdc3.chart";
|
|
4
|
+
export declare type ChartContextType = typeof ChartContextKey;
|
|
5
|
+
export declare const ChatInitSettingsContextKey = "fdc3.chat.initSettings";
|
|
6
|
+
export declare type ChatInitSettingsContextType = typeof ChatInitSettingsContextKey;
|
|
7
|
+
export declare const ContactContextKey = "fdc3.contact";
|
|
8
|
+
export declare type ContactContextType = typeof ContactContextKey;
|
|
9
|
+
export declare const ContactListContextKey = "fdc3.contactList";
|
|
10
|
+
export declare type ContactListContextType = typeof ContactListContextKey;
|
|
11
|
+
export declare const CountryContextKey = "fdc3.country";
|
|
12
|
+
export declare type CountryContextType = typeof CountryContextKey;
|
|
13
|
+
export declare const CurrencyContextKey = "fdc3.currency";
|
|
14
|
+
export declare type CurrencyContextType = typeof CurrencyContextKey;
|
|
15
|
+
export declare const EmailContextKey = "fdc3.email";
|
|
16
|
+
export declare type EmailContextType = typeof EmailContextKey;
|
|
17
|
+
export declare const InstrumentContextKey = "fdc3.instrument";
|
|
18
|
+
export declare type InstrumentContextType = typeof InstrumentContextKey;
|
|
19
|
+
export declare const InstrumentListContextKey = "fdc3.instrumentList";
|
|
20
|
+
export declare type InstrumentListContextType = typeof InstrumentListContextKey;
|
|
21
|
+
export declare const OrganizationContextKey = "fdc3.organization";
|
|
22
|
+
export declare type OrganizationContextType = typeof OrganizationContextKey;
|
|
23
|
+
export declare const PortfolioContextKey = "fdc3.portfolio";
|
|
24
|
+
export declare type PortfolioContextType = typeof PortfolioContextKey;
|
|
25
|
+
export declare const PositionContextKey = "fdc3.position";
|
|
26
|
+
export declare type PositionContextType = typeof PositionContextKey;
|
|
27
|
+
export declare const TimeRangeContextKey = "fdc3.timerange";
|
|
28
|
+
export declare type TimeRangeContextType = typeof TimeRangeContextKey;
|
|
29
|
+
export declare const ValuationContextKey = "fdc3.valuation";
|
|
30
|
+
export declare type ValuationContextType = typeof ValuationContextKey;
|
|
31
|
+
export declare const NothingContextKey = "fdc3.nothing";
|
|
32
|
+
export declare type NothingContextType = typeof NothingContextKey;
|
|
33
|
+
export declare type Fdc3Context = ChartContext | ChatInitSettingsContext | ContactContext | ContactListContext | CountryContext | CurrencyContext | EmailContext | InstrumentContext | InstrumentListContext | OrganizationContext | PortfolioContext | PositionContext | TimeRangeContext | ValuationContext | NothingContext;
|
|
34
|
+
export declare type Fdc3CustomContext = Context;
|
|
35
|
+
export declare type TypedFdc3Context<CONTEXT, TYPE extends Fdc3ContextType> = CONTEXT & {
|
|
36
|
+
type: TYPE;
|
|
37
|
+
};
|
|
38
|
+
export declare type ChartContext = TypedFdc3Context<Chart, ContextTypes.Chart>;
|
|
39
|
+
export declare type ChatInitSettingsContext = TypedFdc3Context<ChatInitSettings, ContextTypes.ChatInitSettings>;
|
|
40
|
+
export declare type ContactContext = TypedFdc3Context<Contact, ContextTypes.Contact>;
|
|
41
|
+
export declare type ContactListContext = TypedFdc3Context<ContactList, ContextTypes.ContactList>;
|
|
42
|
+
export declare type CountryContext = TypedFdc3Context<Country, ContextTypes.Country>;
|
|
43
|
+
export declare type CurrencyContext = TypedFdc3Context<Currency, ContextTypes.Currency>;
|
|
44
|
+
export declare type EmailContext = TypedFdc3Context<Email, ContextTypes.Email>;
|
|
45
|
+
export declare type InstrumentContext = TypedFdc3Context<Instrument, ContextTypes.Instrument>;
|
|
46
|
+
export declare type InstrumentListContext = TypedFdc3Context<InstrumentList, ContextTypes.InstrumentList>;
|
|
47
|
+
export declare type OrganizationContext = TypedFdc3Context<Organization, ContextTypes.Organization>;
|
|
48
|
+
export declare type PortfolioContext = TypedFdc3Context<Portfolio, ContextTypes.Portfolio>;
|
|
49
|
+
export declare type PositionContext = TypedFdc3Context<Position, ContextTypes.Position>;
|
|
50
|
+
export declare type TimeRangeContext = TypedFdc3Context<TimeRange, ContextTypes.TimeRange>;
|
|
51
|
+
export declare type ValuationContext = TypedFdc3Context<Valuation, ContextTypes.Valuation>;
|
|
52
|
+
export declare type NothingContext = TypedFdc3Context<Nothing, ContextTypes.Nothing>;
|
|
53
|
+
export declare const ContextLabels: Record<Fdc3ContextType, string>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContextLabels = exports.NothingContextKey = exports.ValuationContextKey = exports.TimeRangeContextKey = exports.PositionContextKey = exports.PortfolioContextKey = exports.OrganizationContextKey = exports.InstrumentListContextKey = exports.InstrumentContextKey = exports.EmailContextKey = exports.CurrencyContextKey = exports.CountryContextKey = exports.ContactListContextKey = exports.ContactContextKey = exports.ChatInitSettingsContextKey = exports.ChartContextKey = void 0;
|
|
4
|
+
exports.ChartContextKey = 'fdc3.chart';
|
|
5
|
+
exports.ChatInitSettingsContextKey = 'fdc3.chat.initSettings';
|
|
6
|
+
exports.ContactContextKey = 'fdc3.contact';
|
|
7
|
+
exports.ContactListContextKey = 'fdc3.contactList';
|
|
8
|
+
exports.CountryContextKey = 'fdc3.country';
|
|
9
|
+
exports.CurrencyContextKey = 'fdc3.currency';
|
|
10
|
+
exports.EmailContextKey = 'fdc3.email';
|
|
11
|
+
exports.InstrumentContextKey = 'fdc3.instrument';
|
|
12
|
+
exports.InstrumentListContextKey = 'fdc3.instrumentList';
|
|
13
|
+
exports.OrganizationContextKey = 'fdc3.organization';
|
|
14
|
+
exports.PortfolioContextKey = 'fdc3.portfolio';
|
|
15
|
+
exports.PositionContextKey = 'fdc3.position';
|
|
16
|
+
exports.TimeRangeContextKey = 'fdc3.timerange';
|
|
17
|
+
exports.ValuationContextKey = 'fdc3.valuation';
|
|
18
|
+
exports.NothingContextKey = 'fdc3.nothing';
|
|
19
|
+
exports.ContextLabels = {
|
|
20
|
+
[exports.ChartContextKey]: 'Chart',
|
|
21
|
+
[exports.ChatInitSettingsContextKey]: 'Chat Init Settings',
|
|
22
|
+
[exports.ContactContextKey]: 'Contact',
|
|
23
|
+
[exports.ContactListContextKey]: 'Contact List',
|
|
24
|
+
[exports.CountryContextKey]: 'Country',
|
|
25
|
+
[exports.CurrencyContextKey]: 'Currency',
|
|
26
|
+
[exports.EmailContextKey]: 'Email',
|
|
27
|
+
[exports.InstrumentContextKey]: 'Instrument',
|
|
28
|
+
[exports.InstrumentListContextKey]: 'Instrument List',
|
|
29
|
+
[exports.OrganizationContextKey]: 'Organization',
|
|
30
|
+
[exports.PortfolioContextKey]: 'Portfolio',
|
|
31
|
+
[exports.PositionContextKey]: 'Position',
|
|
32
|
+
[exports.TimeRangeContextKey]: 'Time Range',
|
|
33
|
+
[exports.ValuationContextKey]: 'Valuation',
|
|
34
|
+
[exports.NothingContextKey]: 'Nothing',
|
|
35
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export declare const StartCallIntent = "StartCall";
|
|
2
|
+
export declare const StartChatIntent = "StartChat";
|
|
3
|
+
export declare const StartEmailIntent = "StartEmail";
|
|
4
|
+
export declare const ViewAnalysisIntent = "ViewAnalysis";
|
|
5
|
+
export declare const ViewChartIntent = "ViewChart";
|
|
6
|
+
export declare const ViewContactIntent = "ViewContact";
|
|
7
|
+
export declare const ViewHoldingsIntent = "ViewHoldings";
|
|
8
|
+
export declare const ViewInstrumentIntent = "ViewInstrument";
|
|
9
|
+
export declare const ViewInteractionsIntent = "ViewInteractions";
|
|
10
|
+
export declare const ViewNewsIntent = "ViewNews";
|
|
11
|
+
export declare const ViewOrdersIntent = "ViewOrders";
|
|
12
|
+
export declare const ViewProfileIntent = "ViewProfile";
|
|
13
|
+
export declare const ViewQuoteIntent = "ViewQuote";
|
|
14
|
+
export declare const ViewResearchIntent = "ViewResearch";
|
|
15
|
+
export declare const Fdc3IntentConfiguration: {
|
|
16
|
+
readonly StartCall: {
|
|
17
|
+
readonly contexts: readonly ["fdc3.contact", "fdc3.contactList"];
|
|
18
|
+
};
|
|
19
|
+
readonly StartChat: {
|
|
20
|
+
readonly contexts: readonly ["fdc3.contact", "fdc3.contactList", "fdc3.chat.initSettings"];
|
|
21
|
+
};
|
|
22
|
+
readonly StartEmail: {
|
|
23
|
+
readonly contexts: readonly ["fdc3.email"];
|
|
24
|
+
};
|
|
25
|
+
readonly ViewAnalysis: {
|
|
26
|
+
readonly contexts: readonly ["fdc3.instrument", "fdc3.organization", "fdc3.portfolio"];
|
|
27
|
+
};
|
|
28
|
+
readonly ViewChart: {
|
|
29
|
+
readonly contexts: readonly ["fdc3.chart", "fdc3.instrument", "fdc3.organization", "fdc3.portfolio", "fdc3.position"];
|
|
30
|
+
};
|
|
31
|
+
readonly ViewContact: {
|
|
32
|
+
readonly contexts: readonly ["fdc3.contact"];
|
|
33
|
+
};
|
|
34
|
+
readonly ViewHoldings: {
|
|
35
|
+
readonly contexts: readonly ["fdc3.instrument", "fdc3.instrumentList", "fdc3.organization"];
|
|
36
|
+
};
|
|
37
|
+
readonly ViewInstrument: {
|
|
38
|
+
readonly contexts: readonly ["fdc3.instrument"];
|
|
39
|
+
};
|
|
40
|
+
readonly ViewInteractions: {
|
|
41
|
+
readonly contexts: readonly ["fdc3.contact", "fdc3.instrumentList", "fdc3.organization"];
|
|
42
|
+
};
|
|
43
|
+
readonly ViewNews: {
|
|
44
|
+
readonly contexts: readonly ["fdc3.country", "fdc3.instrument", "fdc3.instrumentList", "fdc3.organization", "fdc3.portfolio"];
|
|
45
|
+
};
|
|
46
|
+
readonly ViewOrders: {
|
|
47
|
+
readonly contexts: readonly ["fdc3.contact", "fdc3.instrumentList", "fdc3.organization"];
|
|
48
|
+
};
|
|
49
|
+
readonly ViewProfile: {
|
|
50
|
+
readonly contexts: readonly ["fdc3.contact", "fdc3.organization"];
|
|
51
|
+
};
|
|
52
|
+
readonly ViewQuote: {
|
|
53
|
+
readonly contexts: readonly ["fdc3.instrument"];
|
|
54
|
+
};
|
|
55
|
+
readonly ViewResearch: {
|
|
56
|
+
readonly contexts: readonly ["fdc3.contact", "fdc3.instrumentList", "fdc3.organization"];
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
declare const Fdc3Intents: ("StartCall" | "StartChat" | "StartEmail" | "ViewAnalysis" | "ViewChart" | "ViewContact" | "ViewHoldings" | "ViewInstrument" | "ViewInteractions" | "ViewNews" | "ViewOrders" | "ViewProfile" | "ViewQuote" | "ViewResearch")[];
|
|
60
|
+
/**
|
|
61
|
+
* All FDC3 intents
|
|
62
|
+
*/
|
|
63
|
+
export declare type Fdc3IntentType = typeof Fdc3Intents[number];
|
|
64
|
+
/**
|
|
65
|
+
* Valid context for a given FDC3 intent
|
|
66
|
+
*/
|
|
67
|
+
export declare type CompatibleContext<F extends Fdc3IntentType> = typeof Fdc3IntentConfiguration[F]['contexts'][number];
|
|
68
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Fdc3IntentConfiguration = exports.ViewResearchIntent = exports.ViewQuoteIntent = exports.ViewProfileIntent = exports.ViewOrdersIntent = exports.ViewNewsIntent = exports.ViewInteractionsIntent = exports.ViewInstrumentIntent = exports.ViewHoldingsIntent = exports.ViewContactIntent = exports.ViewChartIntent = exports.ViewAnalysisIntent = exports.StartEmailIntent = exports.StartChatIntent = exports.StartCallIntent = void 0;
|
|
4
|
+
const Fdc3Context_1 = require("./Fdc3Context");
|
|
5
|
+
exports.StartCallIntent = 'StartCall';
|
|
6
|
+
exports.StartChatIntent = 'StartChat';
|
|
7
|
+
exports.StartEmailIntent = 'StartEmail';
|
|
8
|
+
exports.ViewAnalysisIntent = 'ViewAnalysis';
|
|
9
|
+
exports.ViewChartIntent = 'ViewChart';
|
|
10
|
+
exports.ViewContactIntent = 'ViewContact';
|
|
11
|
+
exports.ViewHoldingsIntent = 'ViewHoldings';
|
|
12
|
+
exports.ViewInstrumentIntent = 'ViewInstrument';
|
|
13
|
+
exports.ViewInteractionsIntent = 'ViewInteractions';
|
|
14
|
+
exports.ViewNewsIntent = 'ViewNews';
|
|
15
|
+
exports.ViewOrdersIntent = 'ViewOrders';
|
|
16
|
+
exports.ViewProfileIntent = 'ViewProfile';
|
|
17
|
+
exports.ViewQuoteIntent = 'ViewQuote';
|
|
18
|
+
exports.ViewResearchIntent = 'ViewResearch';
|
|
19
|
+
exports.Fdc3IntentConfiguration = {
|
|
20
|
+
[exports.StartCallIntent]: {
|
|
21
|
+
contexts: [Fdc3Context_1.ContactContextKey, Fdc3Context_1.ContactListContextKey],
|
|
22
|
+
},
|
|
23
|
+
[exports.StartChatIntent]: {
|
|
24
|
+
contexts: [Fdc3Context_1.ContactContextKey, Fdc3Context_1.ContactListContextKey, Fdc3Context_1.ChatInitSettingsContextKey],
|
|
25
|
+
},
|
|
26
|
+
[exports.StartEmailIntent]: {
|
|
27
|
+
contexts: [Fdc3Context_1.EmailContextKey],
|
|
28
|
+
},
|
|
29
|
+
[exports.ViewAnalysisIntent]: {
|
|
30
|
+
contexts: [Fdc3Context_1.InstrumentContextKey, Fdc3Context_1.OrganizationContextKey, Fdc3Context_1.PortfolioContextKey],
|
|
31
|
+
},
|
|
32
|
+
[exports.ViewChartIntent]: {
|
|
33
|
+
contexts: [
|
|
34
|
+
Fdc3Context_1.ChartContextKey,
|
|
35
|
+
Fdc3Context_1.InstrumentContextKey,
|
|
36
|
+
Fdc3Context_1.OrganizationContextKey,
|
|
37
|
+
Fdc3Context_1.PortfolioContextKey,
|
|
38
|
+
Fdc3Context_1.PositionContextKey,
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
[exports.ViewContactIntent]: {
|
|
42
|
+
contexts: [Fdc3Context_1.ContactContextKey],
|
|
43
|
+
},
|
|
44
|
+
[exports.ViewHoldingsIntent]: {
|
|
45
|
+
contexts: [Fdc3Context_1.InstrumentContextKey, Fdc3Context_1.InstrumentListContextKey, Fdc3Context_1.OrganizationContextKey],
|
|
46
|
+
},
|
|
47
|
+
[exports.ViewInstrumentIntent]: {
|
|
48
|
+
contexts: [Fdc3Context_1.InstrumentContextKey],
|
|
49
|
+
},
|
|
50
|
+
[exports.ViewInteractionsIntent]: {
|
|
51
|
+
contexts: [Fdc3Context_1.ContactContextKey, Fdc3Context_1.InstrumentListContextKey, Fdc3Context_1.OrganizationContextKey],
|
|
52
|
+
},
|
|
53
|
+
[exports.ViewNewsIntent]: {
|
|
54
|
+
contexts: [
|
|
55
|
+
Fdc3Context_1.CountryContextKey,
|
|
56
|
+
Fdc3Context_1.InstrumentContextKey,
|
|
57
|
+
Fdc3Context_1.InstrumentListContextKey,
|
|
58
|
+
Fdc3Context_1.OrganizationContextKey,
|
|
59
|
+
Fdc3Context_1.PortfolioContextKey,
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
[exports.ViewOrdersIntent]: {
|
|
63
|
+
contexts: [Fdc3Context_1.ContactContextKey, Fdc3Context_1.InstrumentListContextKey, Fdc3Context_1.OrganizationContextKey],
|
|
64
|
+
},
|
|
65
|
+
[exports.ViewProfileIntent]: {
|
|
66
|
+
contexts: [Fdc3Context_1.ContactContextKey, Fdc3Context_1.OrganizationContextKey],
|
|
67
|
+
},
|
|
68
|
+
[exports.ViewQuoteIntent]: {
|
|
69
|
+
contexts: [Fdc3Context_1.InstrumentContextKey],
|
|
70
|
+
},
|
|
71
|
+
[exports.ViewResearchIntent]: {
|
|
72
|
+
contexts: [Fdc3Context_1.ContactContextKey, Fdc3Context_1.InstrumentListContextKey, Fdc3Context_1.OrganizationContextKey],
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
const Fdc3Intents = Object.keys(exports.Fdc3IntentConfiguration);
|
|
@@ -34,7 +34,7 @@ export declare type AdaptableStateKey = keyof AdaptablePersistentState | 'OpenFi
|
|
|
34
34
|
/**
|
|
35
35
|
* Modules provided by AdapTable, subject to Entitlements and usually have Predefined Config
|
|
36
36
|
*/
|
|
37
|
-
export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
37
|
+
export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Fdc3' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
38
38
|
export declare const ALL_MODULES: AdaptableModule[];
|
|
39
39
|
/**
|
|
40
40
|
* Modules which can appear in the Settings Panel
|