Skip to content

Commit

Permalink
Added Morningstar to HC namespace. (#46)
Browse files Browse the repository at this point in the history
* Added Morningstar to HC namespace.

* Changed namespace to HighchartsConnectors.

* Change old namespace to new one.

* Namespace adjustments for new docs.

* Added new keyword.
  • Loading branch information
kamil-musialowski authored Nov 29, 2024
1 parent a9ef98d commit 8132922
Show file tree
Hide file tree
Showing 22 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"jasmine": true
},
"globals": {
"Connectors": true,
"HighchartsConnectors": true,
"Dashboards": true,
"Highcharts": true
},
Expand Down
2 changes: 1 addition & 1 deletion demos/dashboards-investment-screener/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ async function getPostmanJSON (htmlInputFile) {
for (file of htmlInputFile.files) {
try {
fileJSON = JSON.parse(await file.text());
if (Connectors.Morningstar.isPostmanEnvironmentJSON(fileJSON)) {
if (HighchartsConnectors.Morningstar.isPostmanEnvironmentJSON(fileJSON)) {
break;
}
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion demos/dashboards-risk-score/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ async function getPostmanJSON (htmlInputFile) {
for (file of htmlInputFile.files) {
try {
fileJSON = JSON.parse(await file.text());
if (Connectors.Morningstar.isPostmanEnvironmentJSON(fileJSON)) {
if (HighchartsConnectors.Morningstar.isPostmanEnvironmentJSON(fileJSON)) {
break;
}
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion demos/dashboards-rna-news/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ async function getPostmanJSON (htmlInputFile) {
for (file of htmlInputFile.files) {
try {
fileJSON = JSON.parse(await file.text());
if (Connectors.Morningstar.isPostmanEnvironmentJSON(fileJSON)) {
if (HighchartsConnectors.Morningstar.isPostmanEnvironmentJSON(fileJSON)) {
break;
}
} catch (error) {
Expand Down
4 changes: 2 additions & 2 deletions demos/stock-ohlcv/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ async function displayOHLCV (postmanJSON) {
const startDate = new Date(new Date().setDate(endDate.getDate() - 30));
const securityId = 'XIUSA000O2';

const ohlcvConnector = new Connectors.Morningstar.TimeSeriesConnector({
const ohlcvConnector = new HighchartsConnectors.Morningstar.TimeSeriesConnector({
postman: {
environmentJSON: postmanJSON
},
Expand Down Expand Up @@ -54,7 +54,7 @@ async function getPostmanJSON (htmlInputFile) {
for (file of htmlInputFile.files) {
try {
fileJSON = JSON.parse(await file.text());
if (Connectors.Morningstar.isPostmanEnvironmentJSON(fileJSON)) {
if (HighchartsConnectors.Morningstar.isPostmanEnvironmentJSON(fileJSON)) {
break;
}
} catch (error) {
Expand Down
4 changes: 2 additions & 2 deletions demos/stock-securitydetails/demo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
async function displaySecurityDetails (postmanJSON) {
const securityId = 'F0GBR050DD';

const connector = new Connectors.Morningstar.SecurityDetailsConnector({
const connector = new HighchartsConnectors.Morningstar.SecurityDetailsConnector({
postman: {
environmentJSON: postmanJSON
},
Expand Down Expand Up @@ -50,7 +50,7 @@ async function getPostmanJSON (htmlInputFile) {
for (file of htmlInputFile.files) {
try {
fileJSON = JSON.parse(await file.text());
if (Connectors.Morningstar.isPostmanEnvironmentJSON(fileJSON)) {
if (HighchartsConnectors.Morningstar.isPostmanEnvironmentJSON(fileJSON)) {
break;
}
} catch (error) {
Expand Down
4 changes: 2 additions & 2 deletions demos/stock-timeseries/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ document.getElementById('postman-json').addEventListener(

target.parentNode.style.display = 'none';

const priceConnector = new Connectors.Morningstar.TimeSeriesConnector({
const priceConnector = new HighchartsConnectors.Morningstar.TimeSeriesConnector({
postman: {
environmentJSON: postmanJSON
},
Expand Down Expand Up @@ -53,7 +53,7 @@ async function getPostmanJSON (htmlInputFile) {
for (file of htmlInputFile.files) {
try {
fileJSON = JSON.parse(await file.text());
if (Connectors.Morningstar.isPostmanEnvironmentJSON(fileJSON)) {
if (HighchartsConnectors.Morningstar.isPostmanEnvironmentJSON(fileJSON)) {
break;
}
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion docs/connectors/morningstar.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ products and Highcharts Dashboards.

You can connect Highcharts core products with Morningstar by using
`connectors-morningstar.js` in the `connectors-morningstar` bundle. You have to manually create the connector and
assing the resulting table to your series options.
assign the resulting table to your series options.



Expand Down
2 changes: 1 addition & 1 deletion docs/connectors/morningstar/goal-analysis.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ and dashboards.
In order to fetch the analysis, you can request for example:

```js
const goalAnalysisConnector = MC.GoalAnalysisConnector({
const goalAnalysisConnector = new HighchartsConnectors.Morningstar.GoalAnalysisConnector({
postman: {
environmentJSON: postmanJSON
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ or `maxStories`.
### RNANews with Morningstar standalone for Highcharts:

```js
const rnaNewsConnector = new Connectors.Morningstar.RNANewsConnector({
const rnaNewsConnector = new HighchartsConnectors.Morningstar.RNANewsConnector({
postman: {
environmentJSON: postmanJSON
},
Expand Down
2 changes: 1 addition & 1 deletion docs/connectors/morningstar/risk-score.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ For more details, see [Morningstar’s RiskScore API].
### Risk Score with Morningstar standalone for Highcharts:

```js
const riskScoreConnector = new Connectors.Morningstar.RiskScoreConnector({
const riskScoreConnector = new HighchartsConnectors.Morningstar.RiskScoreConnector({
postman: {
environmentJSON: postmanJSON
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This connector is designed to be interacted with using external buttons, that mi
Here is an example of how to use the Investment Screener connector:

```js
const screenerConnector = MC.InvestmentScreenerConnector({
const screenerConnector = new HighchartsConnectors.Morningstar.InvestmentScreenerConnector({
page: 1,
pageSize: 20,
languageId: 'en-GB',
Expand Down
2 changes: 1 addition & 1 deletion docs/connectors/morningstar/security-details.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ For more details, see [Morningstar’s Security Details API].
### Security Details with Morningstar standalone for Highcharts:

```js
const securityDetailsConnector = new Connectors.Morningstar.SecurityDetailsConnector({
const securityDetailsConnector = new HighchartsConnectors.Morningstar.SecurityDetailsConnector({
postman: {
environmentJSON: postmanJSON
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ In order to fetch a cumulative return, specify series type `CumulativeReturn` in
the Time Series Connector options.

```js
const cumulReturnConnector = new Connectors.Morningstar.TimeSeriesConnector({
const cumulReturnConnector = new HighchartsConnectors.Morningstar.TimeSeriesConnector({
postman: {
environmentJSON: postmanJSON
},
Expand Down
2 changes: 1 addition & 1 deletion docs/connectors/morningstar/time-series/dividend.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ In order to fetch a dividend time series, specify series type
`Dividend` in the Time Series Connector options.

```js
const dividendConnector = new Connectors.Morningstar.TimeSeriesConnector({
const dividendConnector = new HighchartsConnectors.Morningstar.TimeSeriesConnector({
postman: {
environmentJSON: postmanJSON
},
Expand Down
2 changes: 1 addition & 1 deletion docs/connectors/morningstar/time-series/growth.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ In order to fetch time series for growth, specify series type `Growth` in
the Time Series Connector options.

```js
const growthConnector = new Connectors.Morningstar.TimeSeriesConnector({
const growthConnector = new HighchartsConnectors.Morningstar.TimeSeriesConnector({
postman: {
environmentJSON: postmanJSON
},
Expand Down
2 changes: 1 addition & 1 deletion docs/connectors/morningstar/time-series/ohlcv.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
`OHLCV` in the Time Series Connector options.

```js
const ohlcvConnector = new Connectors.Morningstar.TimeSeriesConnector({
const ohlcvConnector = new HighchartsConnectors.Morningstar.TimeSeriesConnector({
postman: {
environmentJSON: postmanJSON
},
Expand Down
2 changes: 1 addition & 1 deletion docs/connectors/morningstar/time-series/price.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ In order to fetch price time series, specify series type `Price` in
the Time Series Connector options.

```js
const priceConnector = new Connectors.Morningstar.TimeSeriesConnector({
const priceConnector = new HighchartsConnectors.Morningstar.TimeSeriesConnector({
postman: {
environmentJSON: postmanJSON
},
Expand Down
2 changes: 1 addition & 1 deletion docs/connectors/morningstar/time-series/time-series.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ or `currencyId`.
### Time Series with Morningstar standalone for Highcharts:

```js
const dividendConnector = new Connectors.Morningstar.TimeSeriesConnector({
const dividendConnector = new HighchartsConnectors.Morningstar.TimeSeriesConnector({
postman: {
environmentJSON: postmanJSON
},
Expand Down
2 changes: 1 addition & 1 deletion docs/connectors/morningstar/x-ray.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ columns might be added to the table.
In order to fetch a benchmark, you can request for example:

```js
const xRayConnector = MC.XRayConnector({
const xRayConnector = new HighchartsConnectors.Morningstar.XRayConnector({
postman: {
environmentJSON: postmanJSON
},
Expand Down
2 changes: 1 addition & 1 deletion src/CLI/Library/APIServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ async function getContext (
side,
platform: 'JS',
product: {
namespace: 'Connectors'
namespace: 'HighchartsConnectors'
},
productModule: 'connectors-morningstar',
productName: 'Highcharts Connectors',
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const metas: Record<string, Meta> = {
highcharts: {
filename: 'highcharts-morningstar.js',
umdNames: {
amd: 'highcharts/highcarts',
amd: 'highcharts/highcharts',
commonjs,
root: ['Highcharts', 'Morningstar']
}
Expand All @@ -106,7 +106,7 @@ const metas: Record<string, Meta> = {
umdNames: {
amd: 'highcharts/connectors-morningstar',
commonjs,
root: ['Connectors', 'Morningstar']
root: ['HighchartsConnectors', 'Morningstar']
}
}
};
Expand Down

0 comments on commit 8132922

Please sign in to comment.