@infosel-sdk/markets 1.2.3 → 1.2.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/CHANGELOG.md +46 -3
- package/package.json +1 -1
- package/src/data/datasources/markets_datasource_impl.d.ts +6 -0
- package/src/data/datasources/markets_datasource_impl.js +335 -11
- package/src/data/datasources/markets_datasource_impl.js.map +1 -1
- package/src/data/di/infosel_markets_component.d.ts +9 -0
- package/src/data/di/infosel_markets_component.js +33 -0
- package/src/data/di/infosel_markets_component.js.map +1 -1
- package/src/data/mappers/markets_mapper.js +89 -16
- package/src/data/mappers/markets_mapper.js.map +1 -1
- package/src/data/models/get_user_workspaces_response_model.d.ts +2 -0
- package/src/data/models/instrument_fields_model.d.ts +10 -0
- package/src/data/models/user_widgets_response_model.d.ts +7 -0
- package/src/data/models/user_widgets_response_model.js +3 -0
- package/src/data/models/user_widgets_response_model.js.map +1 -0
- package/src/data/models/widget_brokerage_concentration_configuration.d.ts +4 -0
- package/src/data/models/widget_brokerage_concentration_configuration.js +3 -0
- package/src/data/models/widget_brokerage_concentration_configuration.js.map +1 -0
- package/src/data/models/widget_brokerage_participation_configuration.d.ts +10 -0
- package/src/data/models/widget_brokerage_participation_configuration.js +3 -0
- package/src/data/models/widget_brokerage_participation_configuration.js.map +1 -0
- package/src/data/models/widget_brokerage_trades_configuration.d.ts +11 -0
- package/src/data/models/widget_brokerage_trades_configuration.js +3 -0
- package/src/data/models/widget_brokerage_trades_configuration.js.map +1 -0
- package/src/data/models/widget_decreed_search_configuration.d.ts +10 -0
- package/src/data/models/widget_decreed_search_configuration.js +3 -0
- package/src/data/models/widget_decreed_search_configuration.js.map +1 -0
- package/src/data/models/widget_dynamic_table_configuration.d.ts +2 -0
- package/src/data/models/widget_indices_components_configuration.d.ts +7 -0
- package/src/data/models/widget_indices_components_configuration.js +3 -0
- package/src/data/models/widget_indices_components_configuration.js.map +1 -0
- package/src/data/models/widget_market_total_configuration.d.ts +4 -0
- package/src/data/models/widget_market_total_configuration.js +3 -0
- package/src/data/models/widget_market_total_configuration.js.map +1 -0
- package/src/data/models/widget_model.d.ts +14 -0
- package/src/data/models/widget_size_model.d.ts +5 -0
- package/src/data/models/widget_traded_packages_configuration.d.ts +4 -0
- package/src/data/models/widget_traded_packages_configuration.js +3 -0
- package/src/data/models/widget_traded_packages_configuration.js.map +1 -0
- package/src/data/repositories/markets_repository_impl.d.ts +6 -0
- package/src/data/repositories/markets_repository_impl.js +9 -0
- package/src/data/repositories/markets_repository_impl.js.map +1 -1
- package/src/domain/datasources/markets_datasource.d.ts +6 -0
- package/src/domain/di/markets_component.d.ts +6 -0
- package/src/domain/entities/create_widget_request.d.ts +13 -7
- package/src/domain/entities/duplicate_workspace_request.d.ts +5 -0
- package/src/domain/entities/duplicate_workspace_request.js +3 -0
- package/src/domain/entities/duplicate_workspace_request.js.map +1 -0
- package/src/domain/entities/get_user_widgets_request.d.ts +3 -0
- package/src/domain/entities/get_user_widgets_request.js +3 -0
- package/src/domain/entities/get_user_widgets_request.js.map +1 -0
- package/src/domain/entities/index.d.ts +3 -1
- package/src/domain/entities/index.js +3 -1
- package/src/domain/entities/index.js.map +1 -1
- package/src/domain/entities/instrument_fields.d.ts +10 -0
- package/src/domain/entities/update_workspace_request.d.ts +14 -0
- package/src/domain/entities/user_widgets.d.ts +5 -0
- package/src/domain/entities/user_widgets.js +3 -0
- package/src/domain/entities/user_widgets.js.map +1 -0
- package/src/domain/entities/widget.d.ts +64 -1
- package/src/domain/entities/widget_layout_config.d.ts +15 -0
- package/src/domain/entities/widget_layout_config.js +3 -0
- package/src/domain/entities/widget_layout_config.js.map +1 -0
- package/src/domain/entities/widget_size_config.d.ts +5 -12
- package/src/domain/entities/workspace.d.ts +8 -0
- package/src/domain/repositories/markets_repository.d.ts +6 -0
- package/src/domain/use_cases/create_widget_use_case.js +12 -2
- package/src/domain/use_cases/create_widget_use_case.js.map +1 -1
- package/src/domain/use_cases/duplicate_workspace_use_case.d.ts +8 -0
- package/src/domain/use_cases/duplicate_workspace_use_case.js +15 -0
- package/src/domain/use_cases/duplicate_workspace_use_case.js.map +1 -0
- package/src/domain/use_cases/get_user_widgets_use_case.d.ts +9 -0
- package/src/domain/use_cases/get_user_widgets_use_case.js +22 -0
- package/src/domain/use_cases/get_user_widgets_use_case.js.map +1 -0
- package/src/domain/use_cases/get_workspaces_by_project_id_use_case.d.ts +9 -0
- package/src/domain/use_cases/get_workspaces_by_project_id_use_case.js +19 -0
- package/src/domain/use_cases/get_workspaces_by_project_id_use_case.js.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widget_indices_components_configuration.js","sourceRoot":"","sources":["../../../../../../packages/markets/src/data/models/widget_indices_components_configuration.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widget_market_total_configuration.js","sourceRoot":"","sources":["../../../../../../packages/markets/src/data/models/widget_market_total_configuration.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import InstrumentModel from './instrument_model';
|
|
2
|
+
import WidgetBrokerageConcentrationConfigurationModel from './widget_brokerage_concentration_configuration';
|
|
3
|
+
import WidgetBrokerageParticipationConfigurationModel from './widget_brokerage_participation_configuration';
|
|
4
|
+
import WidgetBrokerageTradesConfigurationModel from './widget_brokerage_trades_configuration';
|
|
2
5
|
import WidgetChartConfigurationModel from './widget_chart_configuration_model';
|
|
6
|
+
import WidgetDecreedSearchConfigurationModel from './widget_decreed_search_configuration';
|
|
3
7
|
import WidgetDynamicTableConfigurationModel from './widget_dynamic_table_configuration';
|
|
8
|
+
import WidgetIndicesComponentsConfigurationModel from './widget_indices_components_configuration';
|
|
4
9
|
import WidgetLayoutModel from './widget_layout_model';
|
|
10
|
+
import WidgetMarketTotalConfigurationModel from './widget_market_total_configuration';
|
|
5
11
|
import WidgetSizeModel from './widget_size_model';
|
|
6
12
|
import WidgetTableColumnsModel from './widget_table_column_model';
|
|
7
13
|
import WidgetTickerConfigurationModel from './widget_ticker_configuration';
|
|
14
|
+
import WidgetTradedPackagesConfigurationModel from './widget_traded_packages_configuration';
|
|
8
15
|
export default interface WidgetModel {
|
|
9
16
|
readonly id?: null | string;
|
|
10
17
|
readonly name?: null | string;
|
|
@@ -16,4 +23,11 @@ export default interface WidgetModel {
|
|
|
16
23
|
readonly tickerConfiguration?: null | WidgetTickerConfigurationModel;
|
|
17
24
|
readonly dynamicTableConfiguration?: null | WidgetDynamicTableConfigurationModel;
|
|
18
25
|
readonly chartConfiguration?: null | WidgetChartConfigurationModel;
|
|
26
|
+
readonly marketTotalConfiguration?: null | WidgetMarketTotalConfigurationModel;
|
|
27
|
+
readonly tradedPackagesConfiguration?: null | WidgetTradedPackagesConfigurationModel;
|
|
28
|
+
readonly brokerageTradesConfiguration?: null | WidgetBrokerageTradesConfigurationModel;
|
|
29
|
+
readonly brokerageConcentrationConfiguration?: null | WidgetBrokerageConcentrationConfigurationModel;
|
|
30
|
+
readonly brokerageParticipationConfiguration?: null | WidgetBrokerageParticipationConfigurationModel;
|
|
31
|
+
readonly decreedRightsSearcherConfiguration?: null | WidgetDecreedSearchConfigurationModel;
|
|
32
|
+
readonly indicesComponentsConfiguration?: null | WidgetIndicesComponentsConfigurationModel;
|
|
19
33
|
}
|
|
@@ -6,4 +6,9 @@ export default interface WidgetSizeModel {
|
|
|
6
6
|
readonly minHeight?: null | number;
|
|
7
7
|
readonly maxWidth?: null | number;
|
|
8
8
|
readonly maxHeight?: null | number;
|
|
9
|
+
readonly x?: null | number;
|
|
10
|
+
readonly y?: null | number;
|
|
11
|
+
readonly maxyHeight?: null | number;
|
|
12
|
+
readonly draggable?: null | boolean;
|
|
13
|
+
readonly resizable?: null | boolean;
|
|
9
14
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widget_traded_packages_configuration.js","sourceRoot":"","sources":["../../../../../../packages/markets/src/data/models/widget_traded_packages_configuration.ts"],"names":[],"mappings":""}
|
|
@@ -5,6 +5,7 @@ import CreateWidgetRequest from '../../domain/entities/create_widget_request';
|
|
|
5
5
|
import CreateWorkspaceRequest from '../../domain/entities/create_workspace_request';
|
|
6
6
|
import DeleteWorkspaceRequest from '../../domain/entities/delete_workspace_request';
|
|
7
7
|
import DuplicateWidgetRequest from '../../domain/entities/duplicate_widget_request';
|
|
8
|
+
import DuplicateWorkspaceRequest from '../../domain/entities/duplicate_workspace_request';
|
|
8
9
|
import { GetInstrumentsRequest } from '../../domain/entities/get_instruments_request';
|
|
9
10
|
import { GetProjectWidgetsRequest } from '../../domain/entities/get_project_widgets_request';
|
|
10
11
|
import GetUserWorkspacesRequest from '../../domain/entities/get_user_workspaces_request';
|
|
@@ -25,7 +26,9 @@ import UpdateWidgetChartRequest from '../../domain/entities/update_widget_chart_
|
|
|
25
26
|
import UpdateWidgetInstrumentsRequest from '../../domain/entities/update_widget_instruments_reques';
|
|
26
27
|
import UpdateWorkspaceRequest from '../../domain/entities/update_workspace_request';
|
|
27
28
|
import UserWorkspaces from '../../domain/entities/user_workspaces';
|
|
29
|
+
import UserWidgets from '../../domain/entities/user_widgets';
|
|
28
30
|
import { WorkspacesContainer } from '../../domain/entities/workspaces_container';
|
|
31
|
+
import GetUserWidgetsRequest from '../../domain/entities/get_user_widgets_request';
|
|
29
32
|
import MarketsRepository from '../../domain/repositories/markets_repository';
|
|
30
33
|
export default class MarketsRepositoryImpl implements MarketsRepository {
|
|
31
34
|
private readonly datasource;
|
|
@@ -33,10 +36,12 @@ export default class MarketsRepositoryImpl implements MarketsRepository {
|
|
|
33
36
|
getWorkspace(request: GetWorkspaceRequest): Promise<WorkspaceWidgets>;
|
|
34
37
|
updateWorkspace(request: UpdateWorkspaceRequest): Promise<Workspace>;
|
|
35
38
|
getUserWorkspaces(request: GetUserWorkspacesRequest): Promise<UserWorkspaces>;
|
|
39
|
+
getUserWidgets(request: GetUserWidgetsRequest): Promise<UserWidgets>;
|
|
36
40
|
createWorkspace(request: CreateWorkspaceRequest): Promise<Workspace>;
|
|
37
41
|
deleteWorkspace(request: DeleteWorkspaceRequest): Promise<string>;
|
|
38
42
|
createWidget(request: CreateWidgetRequest): Promise<Widget>;
|
|
39
43
|
duplicateWidget(request: DuplicateWidgetRequest): Promise<Widget>;
|
|
44
|
+
duplicateWorkspace(request: DuplicateWorkspaceRequest): Promise<Workspace>;
|
|
40
45
|
updateWidgetInstruments(request: UpdateWidgetInstrumentsRequest): Promise<Instrument[]>;
|
|
41
46
|
updateWidgetChart(request: UpdateWidgetChartRequest): Promise<string>;
|
|
42
47
|
deleteWidget(request: string): Promise<string>;
|
|
@@ -54,4 +59,5 @@ export default class MarketsRepositoryImpl implements MarketsRepository {
|
|
|
54
59
|
getInstrumentDetailFinancialQuartely(request: InstrumentDetailFinancialQuarterlyRequest): Promise<InstrumentDetailFinancial[]>;
|
|
55
60
|
getInstrumentDetailProfile(request: InstrumentDetailProfileRequest): Promise<InstrumentDetailProfile>;
|
|
56
61
|
getInstrumentReportFinancialReasons(request: InstrumentReportFinancialReasonsRequest): Promise<InstrumentReportFinancialReasons>;
|
|
62
|
+
getWorkspacesByProjectId(request: GetWorkspacesRequest): Promise<WorkspacesContainer>;
|
|
57
63
|
}
|
|
@@ -13,6 +13,9 @@ class MarketsRepositoryImpl {
|
|
|
13
13
|
getUserWorkspaces(request) {
|
|
14
14
|
return this.datasource.getUserWorkspaces(request);
|
|
15
15
|
}
|
|
16
|
+
getUserWidgets(request) {
|
|
17
|
+
return this.datasource.getUserWidgets(request);
|
|
18
|
+
}
|
|
16
19
|
createWorkspace(request) {
|
|
17
20
|
return this.datasource.createWorkspace(request);
|
|
18
21
|
}
|
|
@@ -25,6 +28,9 @@ class MarketsRepositoryImpl {
|
|
|
25
28
|
duplicateWidget(request) {
|
|
26
29
|
return this.datasource.duplicateWidget(request);
|
|
27
30
|
}
|
|
31
|
+
duplicateWorkspace(request) {
|
|
32
|
+
return this.datasource.duplicateWorkspace(request);
|
|
33
|
+
}
|
|
28
34
|
updateWidgetInstruments(request) {
|
|
29
35
|
return this.datasource.updateWidgetInstruments(request);
|
|
30
36
|
}
|
|
@@ -76,6 +82,9 @@ class MarketsRepositoryImpl {
|
|
|
76
82
|
getInstrumentReportFinancialReasons(request) {
|
|
77
83
|
return this.datasource.getInstrumentReportFinancialReasons(request);
|
|
78
84
|
}
|
|
85
|
+
getWorkspacesByProjectId(request) {
|
|
86
|
+
return this.datasource.getWorkspacesByProjectId(request);
|
|
87
|
+
}
|
|
79
88
|
}
|
|
80
89
|
exports.default = MarketsRepositoryImpl;
|
|
81
90
|
//# sourceMappingURL=markets_repository_impl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markets_repository_impl.js","sourceRoot":"","sources":["../../../../../../packages/markets/src/data/repositories/markets_repository_impl.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"markets_repository_impl.js","sourceRoot":"","sources":["../../../../../../packages/markets/src/data/repositories/markets_repository_impl.ts"],"names":[],"mappings":"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"}
|
|
@@ -4,7 +4,9 @@ import CreateWidgetRequest from '../entities/create_widget_request';
|
|
|
4
4
|
import CreateWorkspaceRequest from '../entities/create_workspace_request';
|
|
5
5
|
import DeleteWorkspaceRequest from '../entities/delete_workspace_request';
|
|
6
6
|
import DuplicateWidgetRequest from '../entities/duplicate_widget_request';
|
|
7
|
+
import DuplicateWorkspaceRequest from '../entities/duplicate_workspace_request';
|
|
7
8
|
import { GetInstrumentsRequest } from '../entities/get_instruments_request';
|
|
9
|
+
import GetUserWidgetsRequest from '../entities/get_user_widgets_request';
|
|
8
10
|
import GetUserWorkspaceRequest from '../entities/get_user_workspaces_request';
|
|
9
11
|
import GetWorkspaceRequest from '../entities/get_workspace_request';
|
|
10
12
|
import { GetWorkspacesByUserRequest } from '../entities/get_workspaces_by_user_request';
|
|
@@ -22,14 +24,17 @@ import SearchInstrumentRequest from '../entities/search_instruments_request';
|
|
|
22
24
|
import UpdateWidgetChartRequest from '../entities/update_widget_chart_request';
|
|
23
25
|
import UpdateWidgetInstrumentsRequest from '../entities/update_widget_instruments_reques';
|
|
24
26
|
import UpdateWorkspaceRequest from '../entities/update_workspace_request';
|
|
27
|
+
import UserWidgets from '../entities/user_widgets';
|
|
25
28
|
import UserWorkspaces from '../entities/user_workspaces';
|
|
26
29
|
import { WorkspacesContainer } from '../entities/workspaces_container';
|
|
27
30
|
export default interface MarketsDatasource {
|
|
28
31
|
getWorkspace(request: GetWorkspaceRequest): Promise<WorkspaceWidgets>;
|
|
29
32
|
getUserWorkspaces(request: GetUserWorkspaceRequest): Promise<UserWorkspaces>;
|
|
33
|
+
getUserWidgets(request: GetUserWidgetsRequest): Promise<UserWidgets>;
|
|
30
34
|
createWorkspace(request: CreateWorkspaceRequest): Promise<Workspace>;
|
|
31
35
|
updateWorkspace(request: UpdateWorkspaceRequest): Promise<Workspace>;
|
|
32
36
|
deleteWorkspace(request: DeleteWorkspaceRequest): Promise<string>;
|
|
37
|
+
duplicateWorkspace(request: DuplicateWorkspaceRequest): Promise<Workspace>;
|
|
33
38
|
createWidget(request: CreateWidgetRequest): Promise<Widget>;
|
|
34
39
|
duplicateWidget(request: DuplicateWidgetRequest): Promise<Widget>;
|
|
35
40
|
updateWidgetInstruments(request: UpdateWidgetInstrumentsRequest): Promise<Instrument[]>;
|
|
@@ -49,4 +54,5 @@ export default interface MarketsDatasource {
|
|
|
49
54
|
getInstrumentDetailFinancialQuartely(request: InstrumentDetailFinancialQuarterlyRequest): Promise<InstrumentDetailFinancial[]>;
|
|
50
55
|
getInstrumentDetailProfile(request: InstrumentDetailProfileRequest): Promise<InstrumentDetailProfile>;
|
|
51
56
|
getInstrumentReportFinancialReasons(request: InstrumentReportFinancialReasonsRequest): Promise<InstrumentReportFinancialReasons>;
|
|
57
|
+
getWorkspacesByProjectId(request: GetWorkspacesRequest): Promise<WorkspacesContainer>;
|
|
52
58
|
}
|
|
@@ -5,9 +5,11 @@ import CreateWidgetRequest from '../entities/create_widget_request';
|
|
|
5
5
|
import CreateWorkspaceRequest from '../entities/create_workspace_request';
|
|
6
6
|
import DeleteWorkspaceRequest from '../entities/delete_workspace_request';
|
|
7
7
|
import DuplicateWidgetRequest from '../entities/duplicate_widget_request';
|
|
8
|
+
import DuplicateWorkspaceRequest from '../entities/duplicate_workspace_request';
|
|
8
9
|
import { GetInstrumentsRequest } from '../entities/get_instruments_request';
|
|
9
10
|
import { GetProjectWidgetsRequest } from '../entities/get_project_widgets_request';
|
|
10
11
|
import GetUserWorkspaceRequest from '../entities/get_user_workspaces_request';
|
|
12
|
+
import GetUserWidgetsRequest from '../entities/get_user_widgets_request';
|
|
11
13
|
import GetWorkspaceRequest from '../entities/get_workspace_request';
|
|
12
14
|
import { GetWorkspacesRequest } from '../entities/get_workspaces_request';
|
|
13
15
|
import { ProjectWidgetsContainer } from '../entities/project_widgets_container';
|
|
@@ -16,12 +18,15 @@ import UpdateWidgetChartRequest from '../entities/update_widget_chart_request';
|
|
|
16
18
|
import UpdateWidgetInstrumentsRequest from '../entities/update_widget_instruments_reques';
|
|
17
19
|
import UpdateWorkspaceRequest from '../entities/update_workspace_request';
|
|
18
20
|
import UserWorkspaces from '../entities/user_workspaces';
|
|
21
|
+
import UserWidgets from '../entities/user_widgets';
|
|
19
22
|
import { WorkspacesContainer } from '../entities/workspaces_container';
|
|
20
23
|
export default interface MarketsComponent {
|
|
21
24
|
createWorkspace(request: CreateWorkspaceRequest): Promise<Workspace>;
|
|
22
25
|
updateWorkspace(request: UpdateWorkspaceRequest): Promise<Workspace>;
|
|
23
26
|
deleteWorkspace(request: DeleteWorkspaceRequest): Promise<string>;
|
|
27
|
+
duplicateWorkspace(request: DuplicateWorkspaceRequest): Promise<Workspace>;
|
|
24
28
|
getUserWorkspaces(request: GetUserWorkspaceRequest): Promise<UserWorkspaces>;
|
|
29
|
+
getUserWidgets(request: GetUserWidgetsRequest): Promise<UserWidgets>;
|
|
25
30
|
getWorkspace(request: GetWorkspaceRequest): Promise<WorkspaceWidgets>;
|
|
26
31
|
createWidget(request: CreateWidgetRequest): Promise<Widget>;
|
|
27
32
|
duplicateWidget(request: DuplicateWidgetRequest): Promise<Widget>;
|
|
@@ -38,4 +43,5 @@ export default interface MarketsComponent {
|
|
|
38
43
|
getInstrumentMultipleFields(request: string): Promise<InstrumentFields[]>;
|
|
39
44
|
searchInstruments(request: SearchInstrumentRequest): Promise<SearchResultItem[]>;
|
|
40
45
|
getChartData(request: ChartRequest): Promise<ChartItem[]>;
|
|
46
|
+
getWorkspacesByProjectId(request: GetWorkspacesRequest): Promise<WorkspacesContainer>;
|
|
41
47
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ChartConfiguration } from './chart_configuration';
|
|
2
2
|
import { NewsConfiguration } from './news_configuration';
|
|
3
3
|
import { WidgetDynamicTableConfiguration } from './widget';
|
|
4
|
-
import { WidgetSizeConfigCreate } from './
|
|
5
|
-
|
|
4
|
+
import { WidgetSizeConfigCreate } from './widget_layout_config';
|
|
5
|
+
import { WidgetLayoutConfig } from './widget_size_config';
|
|
6
|
+
type WidgetTypeBase = 'FINANCIAL_STATEMENTS' | 'PREDEFINED_TABLE' | 'CUSTOM_TABLE' | 'TICKER_TAPE' | 'SHORT_SALES' | 'MARKET_TOTAL' | 'TRADED_PACKAGES' | 'BROKERAGE_TRADES' | 'BROKERAGE_CONCENTRATION' | 'BROKERAGE_PARTICIPATION' | 'DECREED_RIGHTS_SEARCHER' | 'INDICES_COMPONENTS' | 'UNKNOWN';
|
|
6
7
|
type BaseCreateWidgetRequest = {
|
|
7
|
-
readonly workspaceId
|
|
8
|
+
readonly workspaceId?: string;
|
|
9
|
+
readonly userId?: string;
|
|
8
10
|
readonly name: string;
|
|
9
11
|
readonly instruments?: {
|
|
10
12
|
readonly uniqueKey: string;
|
|
@@ -13,18 +15,22 @@ type BaseCreateWidgetRequest = {
|
|
|
13
15
|
};
|
|
14
16
|
type CreateWidgetRequest = (BaseCreateWidgetRequest & {
|
|
15
17
|
readonly type: WidgetTypeBase;
|
|
16
|
-
readonly
|
|
18
|
+
readonly sizes?: WidgetSizeConfigCreate;
|
|
19
|
+
readonly layout?: WidgetLayoutConfig;
|
|
17
20
|
}) | (BaseCreateWidgetRequest & {
|
|
18
21
|
readonly type: 'NEWS_LIST';
|
|
19
22
|
readonly newsConfiguration?: NewsConfiguration;
|
|
20
|
-
readonly
|
|
23
|
+
readonly sizes?: WidgetSizeConfigCreate;
|
|
24
|
+
readonly layout?: WidgetLayoutConfig;
|
|
21
25
|
}) | (BaseCreateWidgetRequest & {
|
|
22
26
|
readonly type: 'CHART';
|
|
23
27
|
readonly chartConfiguration?: ChartConfiguration;
|
|
24
|
-
readonly
|
|
28
|
+
readonly sizes?: WidgetSizeConfigCreate;
|
|
29
|
+
readonly layout?: WidgetLayoutConfig;
|
|
25
30
|
}) | (BaseCreateWidgetRequest & {
|
|
26
31
|
readonly type: 'DYNAMIC_TABLE';
|
|
27
32
|
readonly dynamicTableConfiguration?: WidgetDynamicTableConfiguration;
|
|
28
|
-
readonly
|
|
33
|
+
readonly sizes?: WidgetSizeConfigCreate;
|
|
34
|
+
readonly layout?: WidgetLayoutConfig;
|
|
29
35
|
});
|
|
30
36
|
export default CreateWidgetRequest;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"duplicate_workspace_request.js","sourceRoot":"","sources":["../../../../../../packages/markets/src/domain/entities/duplicate_workspace_request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get_user_widgets_request.js","sourceRoot":"","sources":["../../../../../../packages/markets/src/domain/entities/get_user_widgets_request.ts"],"names":[],"mappings":""}
|
|
@@ -8,12 +8,14 @@ export * from './update_workspace_request';
|
|
|
8
8
|
export * from './update_widget_chart_request';
|
|
9
9
|
export * from './get_instruments_request';
|
|
10
10
|
export * from './get_user_workspaces_request';
|
|
11
|
+
export * from './get_user_widgets_request';
|
|
11
12
|
export * from './get_workspaces_request';
|
|
12
13
|
export * from './instrument';
|
|
13
14
|
export * from './instrument_fields';
|
|
14
15
|
export * from './instruments_response';
|
|
15
16
|
export * from './period_type';
|
|
16
17
|
export * from './user_workspaces';
|
|
18
|
+
export * from './user_widgets';
|
|
17
19
|
export * from './widget';
|
|
18
20
|
export * from './workspace';
|
|
19
21
|
export * from './workspaces_container';
|
|
@@ -30,5 +32,5 @@ export * from './search_result_item';
|
|
|
30
32
|
export * from './get_workspaces_by_user_request';
|
|
31
33
|
export * from './get_workspace_request';
|
|
32
34
|
export * from './news_configuration';
|
|
33
|
-
export * from './
|
|
35
|
+
export * from './widget_layout_config';
|
|
34
36
|
export * from './workspace_widgets';
|
|
@@ -11,12 +11,14 @@ tslib_1.__exportStar(require("./update_workspace_request"), exports);
|
|
|
11
11
|
tslib_1.__exportStar(require("./update_widget_chart_request"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./get_instruments_request"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./get_user_workspaces_request"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./get_user_widgets_request"), exports);
|
|
14
15
|
tslib_1.__exportStar(require("./get_workspaces_request"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./instrument"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./instrument_fields"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./instruments_response"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./period_type"), exports);
|
|
19
20
|
tslib_1.__exportStar(require("./user_workspaces"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./user_widgets"), exports);
|
|
20
22
|
tslib_1.__exportStar(require("./widget"), exports);
|
|
21
23
|
tslib_1.__exportStar(require("./workspace"), exports);
|
|
22
24
|
tslib_1.__exportStar(require("./workspaces_container"), exports);
|
|
@@ -33,6 +35,6 @@ tslib_1.__exportStar(require("./search_result_item"), exports);
|
|
|
33
35
|
tslib_1.__exportStar(require("./get_workspaces_by_user_request"), exports);
|
|
34
36
|
tslib_1.__exportStar(require("./get_workspace_request"), exports);
|
|
35
37
|
tslib_1.__exportStar(require("./news_configuration"), exports);
|
|
36
|
-
tslib_1.__exportStar(require("./
|
|
38
|
+
tslib_1.__exportStar(require("./widget_layout_config"), exports);
|
|
37
39
|
tslib_1.__exportStar(require("./workspace_widgets"), exports);
|
|
38
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/markets/src/domain/entities/index.ts"],"names":[],"mappings":";;;AAAA,uDAA6B;AAC7B,yDAA+B;AAC/B,0DAAgC;AAChC,kEAAwC;AACxC,qEAA2C;AAC3C,qEAA2C;AAC3C,qEAA2C;AAC3C,wEAA8C;AAC9C,oEAA0C;AAC1C,wEAA8C;AAC9C,mEAAyC;AACzC,uDAA6B;AAC7B,8DAAoC;AACpC,iEAAuC;AACvC,wDAA8B;AAC9B,4DAAkC;AAClC,mDAAyB;AACzB,sDAA4B;AAC5B,iEAAuC;AACvC,uFAA6D;AAC7D,8EAAoD;AACpD,0FAAgE;AAChE,wFAA8D;AAC9D,gFAAsD;AACtD,wEAA8C;AAC9C,sEAA4C;AAC5C,gFAAsD;AACtD,wFAA8D;AAC9D,+DAAqC;AACrC,2EAAiD;AACjD,kEAAwC;AACxC,+DAAqC;AACrC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/markets/src/domain/entities/index.ts"],"names":[],"mappings":";;;AAAA,uDAA6B;AAC7B,yDAA+B;AAC/B,0DAAgC;AAChC,kEAAwC;AACxC,qEAA2C;AAC3C,qEAA2C;AAC3C,qEAA2C;AAC3C,wEAA8C;AAC9C,oEAA0C;AAC1C,wEAA8C;AAC9C,qEAA2C;AAC3C,mEAAyC;AACzC,uDAA6B;AAC7B,8DAAoC;AACpC,iEAAuC;AACvC,wDAA8B;AAC9B,4DAAkC;AAClC,yDAA+B;AAC/B,mDAAyB;AACzB,sDAA4B;AAC5B,iEAAuC;AACvC,uFAA6D;AAC7D,8EAAoD;AACpD,0FAAgE;AAChE,wFAA8D;AAC9D,gFAAsD;AACtD,wEAA8C;AAC9C,sEAA4C;AAC5C,gFAAsD;AACtD,wFAA8D;AAC9D,+DAAqC;AACrC,2EAAiD;AACjD,kEAAwC;AACxC,+DAAqC;AACrC,iEAAuC;AACvC,8DAAoC"}
|
|
@@ -66,4 +66,14 @@ export interface InstrumentFields {
|
|
|
66
66
|
readonly descripcion: string;
|
|
67
67
|
readonly currentPriceDate: Date;
|
|
68
68
|
readonly previousPriceDate: Date;
|
|
69
|
+
readonly divisaNombreCorrecto: string;
|
|
70
|
+
readonly precioCompra: number;
|
|
71
|
+
readonly precioVenta: number;
|
|
72
|
+
readonly fecha: string;
|
|
73
|
+
readonly periodicidad: string;
|
|
74
|
+
readonly valorActual: number;
|
|
75
|
+
readonly valorAnterior: number;
|
|
76
|
+
readonly frecuencia: string;
|
|
77
|
+
readonly unidad: string;
|
|
78
|
+
readonly ultimaFecha: string;
|
|
69
79
|
}
|
|
@@ -2,4 +2,18 @@ export default interface UpdateWorkspaceRequest {
|
|
|
2
2
|
readonly id: string;
|
|
3
3
|
readonly name?: string;
|
|
4
4
|
readonly order?: number;
|
|
5
|
+
readonly sizes?: {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
readonly type: string;
|
|
8
|
+
readonly x: number;
|
|
9
|
+
readonly y: number;
|
|
10
|
+
readonly width: number;
|
|
11
|
+
readonly height: number;
|
|
12
|
+
readonly minWidth: number;
|
|
13
|
+
readonly minHeight: number;
|
|
14
|
+
readonly maxWidth: number;
|
|
15
|
+
readonly maxHeight: number;
|
|
16
|
+
readonly draggable: boolean;
|
|
17
|
+
readonly resizable: boolean;
|
|
18
|
+
}[];
|
|
5
19
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user_widgets.js","sourceRoot":"","sources":["../../../../../../packages/markets/src/domain/entities/user_widgets.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Instrument } from './instrument';
|
|
2
|
-
export type WidgetType = 'FINANCIAL_STATEMENTS' | 'DYNAMIC_TABLE' | 'PREDEFINED_TABLE' | 'CUSTOM_TABLE' | 'NEWS_LIST' | 'TICKER_TAPE' | 'CHART' | 'SHORT_SALES' | 'UNKNOWN';
|
|
2
|
+
export type WidgetType = 'FINANCIAL_STATEMENTS' | 'DYNAMIC_TABLE' | 'PREDEFINED_TABLE' | 'CUSTOM_TABLE' | 'NEWS_LIST' | 'TICKER_TAPE' | 'CHART' | 'SHORT_SALES' | 'MARKET_TOTAL' | 'TRADED_PACKAGES' | 'BROKERAGE_TRADES' | 'BROKERAGE_CONCENTRATION' | 'BROKERAGE_PARTICIPATION' | 'DECREED_RIGHTS_SEARCHER' | 'INDICES_COMPONENTS' | 'UNKNOWN';
|
|
3
3
|
export interface WidgetLayout {
|
|
4
4
|
readonly x: number;
|
|
5
5
|
readonly y: number;
|
|
@@ -14,6 +14,10 @@ export interface WidgetSize {
|
|
|
14
14
|
readonly minHeight: number;
|
|
15
15
|
readonly maxWidth: number;
|
|
16
16
|
readonly maxHeight: number;
|
|
17
|
+
readonly x: number;
|
|
18
|
+
readonly y: number;
|
|
19
|
+
readonly draggable: boolean;
|
|
20
|
+
readonly resizable: boolean;
|
|
17
21
|
}
|
|
18
22
|
export interface WidgetTableColumn {
|
|
19
23
|
readonly id: string;
|
|
@@ -47,11 +51,63 @@ export interface WidgetDynamicTableConfiguration {
|
|
|
47
51
|
readonly scope: string;
|
|
48
52
|
readonly hasActivity: string;
|
|
49
53
|
readonly isFiltered: string;
|
|
54
|
+
readonly operatingCompany: string;
|
|
55
|
+
readonly isYields: boolean;
|
|
50
56
|
}
|
|
51
57
|
export interface WidgetChartConfiguration {
|
|
52
58
|
readonly id: string;
|
|
53
59
|
readonly globalConfiguration: string;
|
|
54
60
|
}
|
|
61
|
+
export interface WidgetMarketTotalConfiguration {
|
|
62
|
+
readonly id: string;
|
|
63
|
+
readonly scope: string;
|
|
64
|
+
}
|
|
65
|
+
export interface WidgetTradedPackagesConfiguration {
|
|
66
|
+
readonly id: string;
|
|
67
|
+
readonly scope: string;
|
|
68
|
+
}
|
|
69
|
+
export interface WidgetBrokerageTradesConfiguration {
|
|
70
|
+
readonly id: string;
|
|
71
|
+
readonly scope: string;
|
|
72
|
+
readonly broker: string;
|
|
73
|
+
readonly symbol: string;
|
|
74
|
+
readonly concertationType: string;
|
|
75
|
+
readonly limit: string;
|
|
76
|
+
readonly offset: string;
|
|
77
|
+
readonly operationType: string;
|
|
78
|
+
readonly order: string;
|
|
79
|
+
}
|
|
80
|
+
export interface WidgetBrokerageConcentrationConfiguration {
|
|
81
|
+
readonly id: string;
|
|
82
|
+
readonly scope: string;
|
|
83
|
+
}
|
|
84
|
+
export interface WidgetBrokerageParticipationConfiguration {
|
|
85
|
+
readonly id: string;
|
|
86
|
+
readonly broker: string;
|
|
87
|
+
readonly instrumentType: string;
|
|
88
|
+
readonly crosses: boolean;
|
|
89
|
+
readonly purchases: boolean;
|
|
90
|
+
readonly sales: boolean;
|
|
91
|
+
readonly totals: boolean;
|
|
92
|
+
readonly symbol: string;
|
|
93
|
+
}
|
|
94
|
+
export interface WidgetDecreedSearchConfiguration {
|
|
95
|
+
readonly id: string;
|
|
96
|
+
readonly scope: string;
|
|
97
|
+
readonly endDate: string;
|
|
98
|
+
readonly issuer: string;
|
|
99
|
+
readonly limit: number;
|
|
100
|
+
readonly offset: number;
|
|
101
|
+
readonly startDate: string;
|
|
102
|
+
readonly type: string;
|
|
103
|
+
}
|
|
104
|
+
export interface WidgetIndicesComponentsConfiguration {
|
|
105
|
+
readonly id: string;
|
|
106
|
+
readonly scope: string;
|
|
107
|
+
readonly component: string;
|
|
108
|
+
readonly sector: string;
|
|
109
|
+
readonly type: string;
|
|
110
|
+
}
|
|
55
111
|
export interface Widget {
|
|
56
112
|
readonly id: string;
|
|
57
113
|
readonly name: string;
|
|
@@ -63,4 +119,11 @@ export interface Widget {
|
|
|
63
119
|
readonly instruments: Instrument[];
|
|
64
120
|
readonly dynamicTableConfiguration: WidgetDynamicTableConfiguration;
|
|
65
121
|
readonly chartConfiguration: WidgetChartConfiguration;
|
|
122
|
+
readonly marketTotalConfiguration: WidgetMarketTotalConfiguration;
|
|
123
|
+
readonly tradedPackagesConfiguration: WidgetTradedPackagesConfiguration;
|
|
124
|
+
readonly brokerageTradesConfiguration: WidgetBrokerageTradesConfiguration;
|
|
125
|
+
readonly brokerageConcentrationConfiguration: WidgetBrokerageConcentrationConfiguration;
|
|
126
|
+
readonly brokerageParticipationConfiguration: WidgetBrokerageParticipationConfiguration;
|
|
127
|
+
readonly decreedRightsSearcherConfiguration: WidgetDecreedSearchConfiguration;
|
|
128
|
+
readonly indicesComponentsConfiguration: WidgetIndicesComponentsConfiguration;
|
|
66
129
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface WidgetSizeConfig {
|
|
2
|
+
readonly width: number;
|
|
3
|
+
readonly height: number;
|
|
4
|
+
readonly minWidth: number;
|
|
5
|
+
readonly minHeight: number;
|
|
6
|
+
readonly maxWidth: number;
|
|
7
|
+
readonly maxHeight: number;
|
|
8
|
+
readonly x: number;
|
|
9
|
+
readonly y: number;
|
|
10
|
+
}
|
|
11
|
+
export interface WidgetSizeConfigCreate {
|
|
12
|
+
readonly create: {
|
|
13
|
+
readonly node: WidgetSizeConfig;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widget_layout_config.js","sourceRoot":"","sources":["../../../../../../packages/markets/src/domain/entities/widget_layout_config.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
readonly
|
|
3
|
-
readonly
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
6
|
-
readonly maxWidth: number;
|
|
7
|
-
readonly maxHeight: number;
|
|
8
|
-
}
|
|
9
|
-
export interface WidgetSizeConfigCreate {
|
|
10
|
-
readonly create: {
|
|
11
|
-
readonly node: WidgetSizeConfig;
|
|
12
|
-
};
|
|
1
|
+
export interface WidgetLayoutConfig {
|
|
2
|
+
readonly x: number;
|
|
3
|
+
readonly y: number;
|
|
4
|
+
readonly draggable: boolean;
|
|
5
|
+
readonly resizable: boolean;
|
|
13
6
|
}
|
|
@@ -2,4 +2,12 @@ export interface Workspace {
|
|
|
2
2
|
readonly id: string;
|
|
3
3
|
readonly name: string;
|
|
4
4
|
readonly order?: number;
|
|
5
|
+
readonly createdAt?: string;
|
|
6
|
+
readonly updatedAt?: string;
|
|
7
|
+
readonly widgets?: {
|
|
8
|
+
readonly id: string;
|
|
9
|
+
readonly size: {
|
|
10
|
+
id: string;
|
|
11
|
+
};
|
|
12
|
+
}[];
|
|
5
13
|
}
|
|
@@ -4,8 +4,10 @@ import CreateWidgetRequest from '../entities/create_widget_request';
|
|
|
4
4
|
import CreateWorkspaceRequest from '../entities/create_workspace_request';
|
|
5
5
|
import DeleteWorkspaceRequest from '../entities/delete_workspace_request';
|
|
6
6
|
import DuplicateWidgetRequest from '../entities/duplicate_widget_request';
|
|
7
|
+
import DuplicateWorkspaceRequest from '../entities/duplicate_workspace_request';
|
|
7
8
|
import { GetInstrumentsRequest } from '../entities/get_instruments_request';
|
|
8
9
|
import { GetProjectWidgetsRequest } from '../entities/get_project_widgets_request';
|
|
10
|
+
import GetUserWidgetsRequest from '../entities/get_user_widgets_request';
|
|
9
11
|
import GetUserWorkspacesRequest from '../entities/get_user_workspaces_request';
|
|
10
12
|
import GetWorkspaceRequest from '../entities/get_workspace_request';
|
|
11
13
|
import { GetWorkspacesByUserRequest } from '../entities/get_workspaces_by_user_request';
|
|
@@ -17,15 +19,18 @@ import SearchInstrumentRequest from '../entities/search_instruments_request';
|
|
|
17
19
|
import UpdateWidgetChartRequest from '../entities/update_widget_chart_request';
|
|
18
20
|
import UpdateWidgetInstrumentsRequest from '../entities/update_widget_instruments_reques';
|
|
19
21
|
import UpdateWorkspaceRequest from '../entities/update_workspace_request';
|
|
22
|
+
import UserWidgets from '../entities/user_widgets';
|
|
20
23
|
import UserWorkspaces from '../entities/user_workspaces';
|
|
21
24
|
import { WorkspaceWidgets } from '../entities/workspace_widgets';
|
|
22
25
|
import { WorkspacesContainer } from '../entities/workspaces_container';
|
|
23
26
|
export default interface MarketsRepository {
|
|
24
27
|
getWorkspace(request: GetWorkspaceRequest): Promise<WorkspaceWidgets>;
|
|
25
28
|
getUserWorkspaces(request: GetUserWorkspacesRequest): Promise<UserWorkspaces>;
|
|
29
|
+
getUserWidgets(request: GetUserWidgetsRequest): Promise<UserWidgets>;
|
|
26
30
|
createWorkspace(request: CreateWorkspaceRequest): Promise<Workspace>;
|
|
27
31
|
updateWorkspace(request: UpdateWorkspaceRequest): Promise<Workspace>;
|
|
28
32
|
deleteWorkspace(request: DeleteWorkspaceRequest): Promise<string>;
|
|
33
|
+
duplicateWorkspace(request: DuplicateWorkspaceRequest): Promise<Workspace>;
|
|
29
34
|
createWidget(request: CreateWidgetRequest): Promise<Widget>;
|
|
30
35
|
duplicateWidget(request: DuplicateWidgetRequest): Promise<Widget>;
|
|
31
36
|
updateWidgetInstruments(request: UpdateWidgetInstrumentsRequest): Promise<Instrument[]>;
|
|
@@ -45,4 +50,5 @@ export default interface MarketsRepository {
|
|
|
45
50
|
getInstrumentDetailFinancialQuartely(request: InstrumentDetailFinancialQuarterlyRequest): Promise<InstrumentDetailFinancial[]>;
|
|
46
51
|
getInstrumentDetailProfile(request: InstrumentDetailProfileRequest): Promise<InstrumentDetailProfile>;
|
|
47
52
|
getInstrumentReportFinancialReasons(request: InstrumentReportFinancialReasonsRequest): Promise<InstrumentReportFinancialReasons>;
|
|
53
|
+
getWorkspacesByProjectId(request: GetWorkspacesRequest): Promise<WorkspacesContainer>;
|
|
48
54
|
}
|