@oanda/labs-crowd-view-widget 1.0.69 → 1.0.71

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.
Files changed (135) hide show
  1. package/CHANGELOG.md +458 -5120
  2. package/dist/main/CrowdViewWidget/components/Chart/chartUtils/getTooltipFormatter.js +2 -2
  3. package/dist/main/CrowdViewWidget/components/Chart/chartUtils/getTooltipFormatter.js.map +1 -1
  4. package/dist/main/translations/sources/ja.json +19 -18
  5. package/dist/module/CrowdViewWidget/CrowdViewWidget.js +19 -12
  6. package/dist/module/CrowdViewWidget/CrowdViewWidget.js.map +1 -1
  7. package/dist/module/CrowdViewWidget/Main.js +37 -30
  8. package/dist/module/CrowdViewWidget/Main.js.map +1 -1
  9. package/dist/module/CrowdViewWidget/components/Chart/Chart.js +36 -29
  10. package/dist/module/CrowdViewWidget/components/Chart/Chart.js.map +1 -1
  11. package/dist/module/CrowdViewWidget/components/Chart/ChartWithData.js +30 -23
  12. package/dist/module/CrowdViewWidget/components/Chart/ChartWithData.js.map +1 -1
  13. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getDataZoomConfig.js +11 -4
  14. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getDataZoomConfig.js.map +1 -1
  15. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getGridConfig.js +10 -3
  16. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getGridConfig.js.map +1 -1
  17. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getGridLines.js +21 -14
  18. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getGridLines.js.map +1 -1
  19. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getLabelsConfig.js +23 -15
  20. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getLabelsConfig.js.map +1 -1
  21. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getSeriesCandlestickConfig.js +16 -8
  22. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getSeriesCandlestickConfig.js.map +1 -1
  23. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getSeriesHeatmapConfig.js +10 -3
  24. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getSeriesHeatmapConfig.js.map +1 -1
  25. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getSeriesSentimentConfig.js +10 -3
  26. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getSeriesSentimentConfig.js.map +1 -1
  27. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getTooltipConfig.js +12 -5
  28. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getTooltipConfig.js.map +1 -1
  29. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getVisualMapConfig.js +13 -6
  30. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getVisualMapConfig.js.map +1 -1
  31. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getXAxisConfig.js +13 -6
  32. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getXAxisConfig.js.map +1 -1
  33. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getYAxisConfig.js +14 -7
  34. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getYAxisConfig.js.map +1 -1
  35. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/index.js +126 -11
  36. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/index.js.map +1 -1
  37. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/formatFullDate.js +8 -1
  38. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/formatFullDate.js.map +1 -1
  39. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/formatXAxisAdditionalLabel.js +8 -1
  40. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/formatXAxisAdditionalLabel.js.map +1 -1
  41. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/formatXAxisLabel.js +11 -4
  42. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/formatXAxisLabel.js.map +1 -1
  43. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/formatYAxisLabel.js +10 -3
  44. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/formatYAxisLabel.js.map +1 -1
  45. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/getChartStyles.js +15 -8
  46. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/getChartStyles.js.map +1 -1
  47. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/getGradientColor.js +11 -3
  48. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/getGradientColor.js.map +1 -1
  49. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/getLabelData.js +8 -1
  50. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/getLabelData.js.map +1 -1
  51. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/getRectColor.js +12 -5
  52. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/getRectColor.js.map +1 -1
  53. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/getTooltipFormatter.js +19 -12
  54. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/getTooltipFormatter.js.map +1 -1
  55. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/handleLabelUpdate.js +16 -9
  56. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/handleLabelUpdate.js.map +1 -1
  57. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/handleTooltipUpdate.js +8 -1
  58. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/handleTooltipUpdate.js.map +1 -1
  59. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/index.js +148 -13
  60. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/index.js.map +1 -1
  61. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/isDifferenceGreaterThanTwoWeeks.js +10 -3
  62. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/isDifferenceGreaterThanTwoWeeks.js.map +1 -1
  63. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/normalizeLocale.js +8 -1
  64. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/normalizeLocale.js.map +1 -1
  65. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/getBucketWidthMultiplayer.js +11 -4
  66. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/getBucketWidthMultiplayer.js.map +1 -1
  67. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/getInstrumentConfig.js +14 -7
  68. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/getInstrumentConfig.js.map +1 -1
  69. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/getTimeSpanForGranularity.js +14 -7
  70. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/getTimeSpanForGranularity.js.map +1 -1
  71. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/index.js +82 -7
  72. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/index.js.map +1 -1
  73. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/processOrderPositionBooks.js +8 -1
  74. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/processOrderPositionBooks.js.map +1 -1
  75. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/processPriceCandles.js +8 -1
  76. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/processPriceCandles.js.map +1 -1
  77. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/processSentiments.js +8 -1
  78. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/processSentiments.js.map +1 -1
  79. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/validateData.js +8 -1
  80. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/validateData.js.map +1 -1
  81. package/dist/module/CrowdViewWidget/components/Chart/getOption.js +27 -20
  82. package/dist/module/CrowdViewWidget/components/Chart/getOption.js.map +1 -1
  83. package/dist/module/CrowdViewWidget/components/Chart/index.js +71 -6
  84. package/dist/module/CrowdViewWidget/components/Chart/index.js.map +1 -1
  85. package/dist/module/CrowdViewWidget/components/Chart/types.js +5 -1
  86. package/dist/module/CrowdViewWidget/components/Chart/useCrowdViewData.js +35 -28
  87. package/dist/module/CrowdViewWidget/components/Chart/useCrowdViewData.js.map +1 -1
  88. package/dist/module/CrowdViewWidget/components/Chart/useResizeObserver.js +13 -6
  89. package/dist/module/CrowdViewWidget/components/Chart/useResizeObserver.js.map +1 -1
  90. package/dist/module/CrowdViewWidget/components/Legend/Legend.js +23 -15
  91. package/dist/module/CrowdViewWidget/components/Legend/Legend.js.map +1 -1
  92. package/dist/module/CrowdViewWidget/components/Legend/LegendBar.js +17 -9
  93. package/dist/module/CrowdViewWidget/components/Legend/LegendBar.js.map +1 -1
  94. package/dist/module/CrowdViewWidget/components/Legend/index.js +27 -2
  95. package/dist/module/CrowdViewWidget/components/Legend/index.js.map +1 -1
  96. package/dist/module/CrowdViewWidget/components/index.js +27 -2
  97. package/dist/module/CrowdViewWidget/components/index.js.map +1 -1
  98. package/dist/module/CrowdViewWidget/constants.js +38 -31
  99. package/dist/module/CrowdViewWidget/constants.js.map +1 -1
  100. package/dist/module/CrowdViewWidget/index.js +27 -2
  101. package/dist/module/CrowdViewWidget/index.js.map +1 -1
  102. package/dist/module/CrowdViewWidget/render.js +13 -10
  103. package/dist/module/CrowdViewWidget/render.js.map +1 -1
  104. package/dist/module/CrowdViewWidget/selectConfig.js +49 -43
  105. package/dist/module/CrowdViewWidget/selectConfig.js.map +1 -1
  106. package/dist/module/CrowdViewWidget/types.js +7 -1
  107. package/dist/module/CrowdViewWidget/types.js.map +1 -1
  108. package/dist/module/gql/getOrderPositionBooks.js +8 -3
  109. package/dist/module/gql/getOrderPositionBooks.js.map +1 -1
  110. package/dist/module/gql/getPriceCandles.js +8 -3
  111. package/dist/module/gql/getPriceCandles.js.map +1 -1
  112. package/dist/module/gql/getSentiments.js +8 -3
  113. package/dist/module/gql/getSentiments.js.map +1 -1
  114. package/dist/module/gql/types/fragment-masking.js +11 -3
  115. package/dist/module/gql/types/fragment-masking.js.map +1 -1
  116. package/dist/module/gql/types/gql.js +9 -2
  117. package/dist/module/gql/types/gql.js.map +1 -1
  118. package/dist/module/gql/types/graphql.js +27 -21
  119. package/dist/module/gql/types/graphql.js.map +1 -1
  120. package/dist/module/gql/types/index.js +27 -2
  121. package/dist/module/gql/types/index.js.map +1 -1
  122. package/dist/module/index.js +16 -1
  123. package/dist/module/index.js.map +1 -1
  124. package/dist/module/translations/index.js +15 -8
  125. package/dist/module/translations/index.js.map +1 -1
  126. package/dist/module/translations/sources/ja.json +19 -18
  127. package/dist/module/translations/translations.js +7 -1
  128. package/dist/module/translations/translations.js.map +1 -1
  129. package/dist/types/gql/getOrderPositionBooks.d.ts +1 -1
  130. package/dist/types/gql/getPriceCandles.d.ts +1 -1
  131. package/dist/types/gql/getSentiments.d.ts +1 -1
  132. package/package.json +8 -4
  133. package/src/CrowdViewWidget/components/Chart/chartUtils/getTooltipFormatter.ts +2 -2
  134. package/src/translations/sources/ja.json +19 -18
  135. package/tsconfig.types.json +2 -4
@@ -1,121 +1,127 @@
1
- import { BookType, Granularity } from '../gql/types/graphql';
2
- import { InstrumentId } from './types';
3
- const navigationConfig = [{
4
- id: BookType.Order,
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.navigationConfig = exports.instrumentSelectConfigOC = exports.instrumentSelectConfigJa = exports.instrumentSelectConfig = exports.getGranularitySelectConfig = void 0;
7
+ var _graphql = require("../gql/types/graphql");
8
+ var _types = require("./types");
9
+ const navigationConfig = exports.navigationConfig = [{
10
+ id: _graphql.BookType.Order,
5
11
  label: 'order_book'
6
12
  }, {
7
- id: BookType.Position,
13
+ id: _graphql.BookType.Position,
8
14
  label: 'position_book'
9
15
  }];
10
- const instrumentSelectConfigOC = [{
11
- id: InstrumentId.EUR_USD,
16
+ const instrumentSelectConfigOC = exports.instrumentSelectConfigOC = [{
17
+ id: _types.InstrumentId.EUR_USD,
12
18
  label: 'EUR/USD'
13
19
  }, {
14
- id: InstrumentId.EUR_AUD,
20
+ id: _types.InstrumentId.EUR_AUD,
15
21
  label: 'EUR/AUD'
16
22
  }, {
17
- id: InstrumentId.EUR_GBP,
23
+ id: _types.InstrumentId.EUR_GBP,
18
24
  label: 'EUR/GBP'
19
25
  }, {
20
- id: InstrumentId.EUR_JPY,
26
+ id: _types.InstrumentId.EUR_JPY,
21
27
  label: 'EUR/JPY'
22
28
  }, {
23
- id: InstrumentId.EUR_CHF,
29
+ id: _types.InstrumentId.EUR_CHF,
24
30
  label: 'EUR/CHF'
25
31
  }, {
26
- id: InstrumentId.USD_CHF,
32
+ id: _types.InstrumentId.USD_CHF,
27
33
  label: 'USD/CHF'
28
34
  }, {
29
- id: InstrumentId.USD_JPY,
35
+ id: _types.InstrumentId.USD_JPY,
30
36
  label: 'USD/JPY'
31
37
  }, {
32
- id: InstrumentId.USD_CAD,
38
+ id: _types.InstrumentId.USD_CAD,
33
39
  label: 'USD/CAD'
34
40
  }, {
35
- id: InstrumentId.GBP_USD,
41
+ id: _types.InstrumentId.GBP_USD,
36
42
  label: 'GBP/USD'
37
43
  }, {
38
- id: InstrumentId.GBP_JPY,
44
+ id: _types.InstrumentId.GBP_JPY,
39
45
  label: 'GBP/JPY'
40
46
  }, {
41
- id: InstrumentId.GBP_CHF,
47
+ id: _types.InstrumentId.GBP_CHF,
42
48
  label: 'GBP/CHF'
43
49
  }, {
44
- id: InstrumentId.AUD_JPY,
50
+ id: _types.InstrumentId.AUD_JPY,
45
51
  label: 'AUD/JPY'
46
52
  }, {
47
- id: InstrumentId.AUD_USD,
53
+ id: _types.InstrumentId.AUD_USD,
48
54
  label: 'AUD/USD'
49
55
  }, {
50
- id: InstrumentId.NZD_USD,
56
+ id: _types.InstrumentId.NZD_USD,
51
57
  label: 'NZD/USD'
52
58
  }];
53
- const instrumentSelectConfig = [...instrumentSelectConfigOC, {
54
- id: InstrumentId.XAU_USD,
59
+ const instrumentSelectConfig = exports.instrumentSelectConfig = [...instrumentSelectConfigOC, {
60
+ id: _types.InstrumentId.XAU_USD,
55
61
  label: 'XAU/USD'
56
62
  }, {
57
- id: InstrumentId.XAG_USD,
63
+ id: _types.InstrumentId.XAG_USD,
58
64
  label: 'XAG/USD'
59
65
  }];
60
- const instrumentSelectConfigJa = [{
61
- id: InstrumentId.USD_JPY,
66
+ const instrumentSelectConfigJa = exports.instrumentSelectConfigJa = [{
67
+ id: _types.InstrumentId.USD_JPY,
62
68
  label: 'USD/JPY'
63
69
  }, {
64
- id: InstrumentId.EUR_JPY,
70
+ id: _types.InstrumentId.EUR_JPY,
65
71
  label: 'EUR/JPY'
66
72
  }, {
67
- id: InstrumentId.GBP_JPY,
73
+ id: _types.InstrumentId.GBP_JPY,
68
74
  label: 'GBP/JPY'
69
75
  }, {
70
- id: InstrumentId.AUD_JPY,
76
+ id: _types.InstrumentId.AUD_JPY,
71
77
  label: 'AUD/JPY'
72
78
  }, {
73
- id: InstrumentId.EUR_USD,
79
+ id: _types.InstrumentId.EUR_USD,
74
80
  label: 'EUR/USD'
75
81
  }, {
76
- id: InstrumentId.EUR_AUD,
82
+ id: _types.InstrumentId.EUR_AUD,
77
83
  label: 'EUR/AUD'
78
84
  }, {
79
- id: InstrumentId.EUR_GBP,
85
+ id: _types.InstrumentId.EUR_GBP,
80
86
  label: 'EUR/GBP'
81
87
  }, {
82
- id: InstrumentId.EUR_CHF,
88
+ id: _types.InstrumentId.EUR_CHF,
83
89
  label: 'EUR/CHF'
84
90
  }, {
85
- id: InstrumentId.USD_CHF,
91
+ id: _types.InstrumentId.USD_CHF,
86
92
  label: 'USD/CHF'
87
93
  }, {
88
- id: InstrumentId.USD_CAD,
94
+ id: _types.InstrumentId.USD_CAD,
89
95
  label: 'USD/CAD'
90
96
  }, {
91
- id: InstrumentId.GBP_USD,
97
+ id: _types.InstrumentId.GBP_USD,
92
98
  label: 'GBP/USD'
93
99
  }, {
94
- id: InstrumentId.GBP_CHF,
100
+ id: _types.InstrumentId.GBP_CHF,
95
101
  label: 'GBP/CHF'
96
102
  }, {
97
- id: InstrumentId.AUD_USD,
103
+ id: _types.InstrumentId.AUD_USD,
98
104
  label: 'AUD/USD'
99
105
  }, {
100
- id: InstrumentId.NZD_USD,
106
+ id: _types.InstrumentId.NZD_USD,
101
107
  label: 'NZD/USD'
102
108
  }, {
103
- id: InstrumentId.XAU_USD,
109
+ id: _types.InstrumentId.XAU_USD,
104
110
  label: 'XAU/USD'
105
111
  }, {
106
- id: InstrumentId.XAG_USD,
112
+ id: _types.InstrumentId.XAG_USD,
107
113
  label: 'XAG/USD'
108
114
  }];
109
115
  const getGranularitySelectConfig = (lang, isJapanese) => [{
110
- id: Granularity.H1,
116
+ id: _graphql.Granularity.H1,
111
117
  label: lang(isJapanese ? 'hour_plural' : 'hour', {
112
118
  count: 1
113
119
  })
114
120
  }, {
115
- id: Granularity.H4,
121
+ id: _graphql.Granularity.H4,
116
122
  label: lang('hour_plural', {
117
123
  count: 4
118
124
  })
119
125
  }];
120
- export { getGranularitySelectConfig, instrumentSelectConfig, instrumentSelectConfigJa, instrumentSelectConfigOC, navigationConfig };
126
+ exports.getGranularitySelectConfig = getGranularitySelectConfig;
121
127
  //# sourceMappingURL=selectConfig.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"selectConfig.js","names":["BookType","Granularity","InstrumentId","navigationConfig","id","Order","label","Position","instrumentSelectConfigOC","EUR_USD","EUR_AUD","EUR_GBP","EUR_JPY","EUR_CHF","USD_CHF","USD_JPY","USD_CAD","GBP_USD","GBP_JPY","GBP_CHF","AUD_JPY","AUD_USD","NZD_USD","instrumentSelectConfig","XAU_USD","XAG_USD","instrumentSelectConfigJa","getGranularitySelectConfig","lang","isJapanese","H1","count","H4"],"sources":["../../../src/CrowdViewWidget/selectConfig.ts"],"sourcesContent":["import { BookType, Granularity } from '../gql/types/graphql';\nimport { InstrumentId } from './types';\n\nconst navigationConfig = [\n {\n id: BookType.Order,\n label: 'order_book',\n },\n {\n id: BookType.Position,\n label: 'position_book',\n },\n];\n\nconst instrumentSelectConfigOC = [\n {\n id: InstrumentId.EUR_USD,\n label: 'EUR/USD',\n },\n {\n id: InstrumentId.EUR_AUD,\n label: 'EUR/AUD',\n },\n {\n id: InstrumentId.EUR_GBP,\n label: 'EUR/GBP',\n },\n {\n id: InstrumentId.EUR_JPY,\n label: 'EUR/JPY',\n },\n {\n id: InstrumentId.EUR_CHF,\n label: 'EUR/CHF',\n },\n {\n id: InstrumentId.USD_CHF,\n label: 'USD/CHF',\n },\n {\n id: InstrumentId.USD_JPY,\n label: 'USD/JPY',\n },\n {\n id: InstrumentId.USD_CAD,\n label: 'USD/CAD',\n },\n {\n id: InstrumentId.GBP_USD,\n label: 'GBP/USD',\n },\n {\n id: InstrumentId.GBP_JPY,\n label: 'GBP/JPY',\n },\n {\n id: InstrumentId.GBP_CHF,\n label: 'GBP/CHF',\n },\n {\n id: InstrumentId.AUD_JPY,\n label: 'AUD/JPY',\n },\n {\n id: InstrumentId.AUD_USD,\n label: 'AUD/USD',\n },\n {\n id: InstrumentId.NZD_USD,\n label: 'NZD/USD',\n },\n];\n\nconst instrumentSelectConfig = [\n ...instrumentSelectConfigOC,\n {\n id: InstrumentId.XAU_USD,\n label: 'XAU/USD',\n },\n {\n id: InstrumentId.XAG_USD,\n label: 'XAG/USD',\n },\n];\n\nconst instrumentSelectConfigJa = [\n {\n id: InstrumentId.USD_JPY,\n label: 'USD/JPY',\n },\n {\n id: InstrumentId.EUR_JPY,\n label: 'EUR/JPY',\n },\n {\n id: InstrumentId.GBP_JPY,\n label: 'GBP/JPY',\n },\n {\n id: InstrumentId.AUD_JPY,\n label: 'AUD/JPY',\n },\n {\n id: InstrumentId.EUR_USD,\n label: 'EUR/USD',\n },\n {\n id: InstrumentId.EUR_AUD,\n label: 'EUR/AUD',\n },\n {\n id: InstrumentId.EUR_GBP,\n label: 'EUR/GBP',\n },\n {\n id: InstrumentId.EUR_CHF,\n label: 'EUR/CHF',\n },\n {\n id: InstrumentId.USD_CHF,\n label: 'USD/CHF',\n },\n {\n id: InstrumentId.USD_CAD,\n label: 'USD/CAD',\n },\n {\n id: InstrumentId.GBP_USD,\n label: 'GBP/USD',\n },\n {\n id: InstrumentId.GBP_CHF,\n label: 'GBP/CHF',\n },\n {\n id: InstrumentId.AUD_USD,\n label: 'AUD/USD',\n },\n {\n id: InstrumentId.NZD_USD,\n label: 'NZD/USD',\n },\n {\n id: InstrumentId.XAU_USD,\n label: 'XAU/USD',\n },\n {\n id: InstrumentId.XAG_USD,\n label: 'XAG/USD',\n },\n];\n\nconst getGranularitySelectConfig = (\n lang: (key: string, options?: { count?: number }) => string,\n isJapanese: boolean\n) => [\n {\n id: Granularity.H1,\n label: lang(isJapanese ? 'hour_plural' : 'hour', { count: 1 }),\n },\n {\n id: Granularity.H4,\n label: lang('hour_plural', { count: 4 }),\n },\n];\n\nexport {\n getGranularitySelectConfig,\n instrumentSelectConfig,\n instrumentSelectConfigJa,\n instrumentSelectConfigOC,\n navigationConfig,\n};\n"],"mappings":"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","ignoreList":[]}
1
+ {"version":3,"file":"selectConfig.js","names":["_graphql","require","_types","navigationConfig","exports","id","BookType","Order","label","Position","instrumentSelectConfigOC","InstrumentId","EUR_USD","EUR_AUD","EUR_GBP","EUR_JPY","EUR_CHF","USD_CHF","USD_JPY","USD_CAD","GBP_USD","GBP_JPY","GBP_CHF","AUD_JPY","AUD_USD","NZD_USD","instrumentSelectConfig","XAU_USD","XAG_USD","instrumentSelectConfigJa","getGranularitySelectConfig","lang","isJapanese","Granularity","H1","count","H4"],"sources":["../../../src/CrowdViewWidget/selectConfig.ts"],"sourcesContent":["import { BookType, Granularity } from '../gql/types/graphql';\nimport { InstrumentId } from './types';\n\nconst navigationConfig = [\n {\n id: BookType.Order,\n label: 'order_book',\n },\n {\n id: BookType.Position,\n label: 'position_book',\n },\n];\n\nconst instrumentSelectConfigOC = [\n {\n id: InstrumentId.EUR_USD,\n label: 'EUR/USD',\n },\n {\n id: InstrumentId.EUR_AUD,\n label: 'EUR/AUD',\n },\n {\n id: InstrumentId.EUR_GBP,\n label: 'EUR/GBP',\n },\n {\n id: InstrumentId.EUR_JPY,\n label: 'EUR/JPY',\n },\n {\n id: InstrumentId.EUR_CHF,\n label: 'EUR/CHF',\n },\n {\n id: InstrumentId.USD_CHF,\n label: 'USD/CHF',\n },\n {\n id: InstrumentId.USD_JPY,\n label: 'USD/JPY',\n },\n {\n id: InstrumentId.USD_CAD,\n label: 'USD/CAD',\n },\n {\n id: InstrumentId.GBP_USD,\n label: 'GBP/USD',\n },\n {\n id: InstrumentId.GBP_JPY,\n label: 'GBP/JPY',\n },\n {\n id: InstrumentId.GBP_CHF,\n label: 'GBP/CHF',\n },\n {\n id: InstrumentId.AUD_JPY,\n label: 'AUD/JPY',\n },\n {\n id: InstrumentId.AUD_USD,\n label: 'AUD/USD',\n },\n {\n id: InstrumentId.NZD_USD,\n label: 'NZD/USD',\n },\n];\n\nconst instrumentSelectConfig = [\n ...instrumentSelectConfigOC,\n {\n id: InstrumentId.XAU_USD,\n label: 'XAU/USD',\n },\n {\n id: InstrumentId.XAG_USD,\n label: 'XAG/USD',\n },\n];\n\nconst instrumentSelectConfigJa = [\n {\n id: InstrumentId.USD_JPY,\n label: 'USD/JPY',\n },\n {\n id: InstrumentId.EUR_JPY,\n label: 'EUR/JPY',\n },\n {\n id: InstrumentId.GBP_JPY,\n label: 'GBP/JPY',\n },\n {\n id: InstrumentId.AUD_JPY,\n label: 'AUD/JPY',\n },\n {\n id: InstrumentId.EUR_USD,\n label: 'EUR/USD',\n },\n {\n id: InstrumentId.EUR_AUD,\n label: 'EUR/AUD',\n },\n {\n id: InstrumentId.EUR_GBP,\n label: 'EUR/GBP',\n },\n {\n id: InstrumentId.EUR_CHF,\n label: 'EUR/CHF',\n },\n {\n id: InstrumentId.USD_CHF,\n label: 'USD/CHF',\n },\n {\n id: InstrumentId.USD_CAD,\n label: 'USD/CAD',\n },\n {\n id: InstrumentId.GBP_USD,\n label: 'GBP/USD',\n },\n {\n id: InstrumentId.GBP_CHF,\n label: 'GBP/CHF',\n },\n {\n id: InstrumentId.AUD_USD,\n label: 'AUD/USD',\n },\n {\n id: InstrumentId.NZD_USD,\n label: 'NZD/USD',\n },\n {\n id: InstrumentId.XAU_USD,\n label: 'XAU/USD',\n },\n {\n id: InstrumentId.XAG_USD,\n label: 'XAG/USD',\n },\n];\n\nconst getGranularitySelectConfig = (\n lang: (key: string, options?: { count?: number }) => string,\n isJapanese: boolean\n) => [\n {\n id: Granularity.H1,\n label: lang(isJapanese ? 'hour_plural' : 'hour', { count: 1 }),\n },\n {\n id: Granularity.H4,\n label: lang('hour_plural', { count: 4 }),\n },\n];\n\nexport {\n getGranularitySelectConfig,\n instrumentSelectConfig,\n instrumentSelectConfigJa,\n instrumentSelectConfigOC,\n navigationConfig,\n};\n"],"mappings":"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","ignoreList":[]}
@@ -1,4 +1,10 @@
1
- export let InstrumentId = function (InstrumentId) {
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.InstrumentId = void 0;
7
+ let InstrumentId = exports.InstrumentId = function (InstrumentId) {
2
8
  InstrumentId["EUR_AUD"] = "EURAUD";
3
9
  InstrumentId["EUR_GBP"] = "EURGBP";
4
10
  InstrumentId["EUR_JPY"] = "EURJPY";
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["InstrumentId"],"sources":["../../../src/CrowdViewWidget/types.ts"],"sourcesContent":["import type { WidgetConfig } from '@oanda/labs-widget-common';\n\nimport type { Division } from '../gql/types/graphql';\n\nexport enum InstrumentId {\n EUR_AUD = 'EURAUD',\n EUR_GBP = 'EURGBP',\n EUR_JPY = 'EURJPY',\n EUR_USD = 'EURUSD',\n EUR_CHF = 'EURCHF',\n USD_CHF = 'USDCHF',\n USD_JPY = 'USDJPY',\n USD_CAD = 'USDCAD',\n GBP_USD = 'GBPUSD',\n GBP_JPY = 'GBPJPY',\n GBP_CHF = 'GBPCHF',\n AUD_JPY = 'AUDJPY',\n AUD_USD = 'AUDUSD',\n NZD_USD = 'NZDUSD',\n XAU_USD = 'XAUUSD',\n XAG_USD = 'XAGUSD',\n}\nexport interface CrowdViewConfig extends WidgetConfig {\n division: Division;\n}\n\nexport interface MainProps {\n instrument?: InstrumentId;\n division: Division;\n}\n"],"mappings":"AAIA,WAAYA,YAAY,aAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"types.js","names":["InstrumentId","exports"],"sources":["../../../src/CrowdViewWidget/types.ts"],"sourcesContent":["import type { WidgetConfig } from '@oanda/labs-widget-common';\n\nimport type { Division } from '../gql/types/graphql';\n\nexport enum InstrumentId {\n EUR_AUD = 'EURAUD',\n EUR_GBP = 'EURGBP',\n EUR_JPY = 'EURJPY',\n EUR_USD = 'EURUSD',\n EUR_CHF = 'EURCHF',\n USD_CHF = 'USDCHF',\n USD_JPY = 'USDJPY',\n USD_CAD = 'USDCAD',\n GBP_USD = 'GBPUSD',\n GBP_JPY = 'GBPJPY',\n GBP_CHF = 'GBPCHF',\n AUD_JPY = 'AUDJPY',\n AUD_USD = 'AUDUSD',\n NZD_USD = 'NZDUSD',\n XAU_USD = 'XAUUSD',\n XAG_USD = 'XAGUSD',\n}\nexport interface CrowdViewConfig extends WidgetConfig {\n division: Division;\n}\n\nexport interface MainProps {\n instrument?: InstrumentId;\n division: Division;\n}\n"],"mappings":";;;;;;IAIYA,YAAY,GAAAC,OAAA,CAAAD,YAAA,aAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA","ignoreList":[]}
@@ -1,5 +1,11 @@
1
- import { gql } from '@apollo/client';
2
- const getOrderPositionBooks = gql`
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getOrderPositionBooks = void 0;
7
+ var _client = require("@apollo/client");
8
+ const getOrderPositionBooks = exports.getOrderPositionBooks = (0, _client.gql)`
3
9
  query GetOrderPositionBooks(
4
10
  $instrument: String!
5
11
  $bookType: BookType!
@@ -34,5 +40,4 @@ const getOrderPositionBooks = gql`
34
40
  }
35
41
  }
36
42
  `;
37
- export { getOrderPositionBooks };
38
43
  //# sourceMappingURL=getOrderPositionBooks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getOrderPositionBooks.js","names":["gql","getOrderPositionBooks"],"sources":["../../../src/gql/getOrderPositionBooks.ts"],"sourcesContent":["import { gql } from '@apollo/client';\n\nconst getOrderPositionBooks = gql`\n query GetOrderPositionBooks(\n $instrument: String!\n $bookType: BookType!\n $timeSpan: TimeSpan!\n $granularity: Granularity!\n $maxBookPrice: Float\n $minBookPrice: Float\n $bucketMultiplier: Int!\n $bucketMargin: Int!\n ) {\n orderPositionBooks(\n instrument: $instrument\n bookType: $bookType\n timeSpan: $timeSpan\n granularity: $granularity\n maxBookPrice: $maxBookPrice\n minBookPrice: $minBookPrice\n bucketMultiplier: $bucketMultiplier\n bucketMargin: $bucketMargin\n ) {\n books {\n time\n price\n buckets {\n price\n sentiment\n }\n }\n bucketWidth\n sentimentThresholdMax\n sentimentThresholdMin\n }\n }\n`;\n\nexport { getOrderPositionBooks };\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,gBAAgB;AAEpC,MAAMC,qBAAqB,GAAGD,GAAG;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,SAASC,qBAAqB","ignoreList":[]}
1
+ {"version":3,"file":"getOrderPositionBooks.js","names":["_client","require","getOrderPositionBooks","exports","gql"],"sources":["../../../src/gql/getOrderPositionBooks.ts"],"sourcesContent":["import { gql } from '@apollo/client';\n\nconst getOrderPositionBooks = gql`\n query GetOrderPositionBooks(\n $instrument: String!\n $bookType: BookType!\n $timeSpan: TimeSpan!\n $granularity: Granularity!\n $maxBookPrice: Float\n $minBookPrice: Float\n $bucketMultiplier: Int!\n $bucketMargin: Int!\n ) {\n orderPositionBooks(\n instrument: $instrument\n bookType: $bookType\n timeSpan: $timeSpan\n granularity: $granularity\n maxBookPrice: $maxBookPrice\n minBookPrice: $minBookPrice\n bucketMultiplier: $bucketMultiplier\n bucketMargin: $bucketMargin\n ) {\n books {\n time\n price\n buckets {\n price\n sentiment\n }\n }\n bucketWidth\n sentimentThresholdMax\n sentimentThresholdMin\n }\n }\n`;\n\nexport { getOrderPositionBooks };\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,MAAMC,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,GAAG,IAAAE,WAAG;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC","ignoreList":[]}
@@ -1,5 +1,11 @@
1
- import { gql } from '@apollo/client';
2
- const getPriceCandles = gql`
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getPriceCandles = void 0;
7
+ var _client = require("@apollo/client");
8
+ const getPriceCandles = exports.getPriceCandles = (0, _client.gql)`
3
9
  query GetPriceCandles(
4
10
  $dataSource: DataSource!
5
11
  $division: Division!
@@ -25,5 +31,4 @@ const getPriceCandles = gql`
25
31
  }
26
32
  }
27
33
  `;
28
- export { getPriceCandles };
29
34
  //# sourceMappingURL=getPriceCandles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPriceCandles.js","names":["gql","getPriceCandles"],"sources":["../../../src/gql/getPriceCandles.ts"],"sourcesContent":["import { gql } from '@apollo/client';\n\nconst getPriceCandles = gql`\n query GetPriceCandles(\n $dataSource: DataSource!\n $division: Division!\n $instrument: String!\n $granularity: Granularity!\n $timeSpan: TimeSpan!\n ) {\n priceCandles(\n dataSource: $dataSource\n division: $division\n instrument: $instrument\n granularity: $granularity\n timeSpan: $timeSpan\n ) {\n candle {\n point\n high\n low\n open\n close\n }\n pipsLocation\n }\n }\n`;\n\nexport { getPriceCandles };\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,gBAAgB;AAEpC,MAAMC,eAAe,GAAGD,GAAG;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,SAASC,eAAe","ignoreList":[]}
1
+ {"version":3,"file":"getPriceCandles.js","names":["_client","require","getPriceCandles","exports","gql"],"sources":["../../../src/gql/getPriceCandles.ts"],"sourcesContent":["import { gql } from '@apollo/client';\n\nconst getPriceCandles = gql`\n query GetPriceCandles(\n $dataSource: DataSource!\n $division: Division!\n $instrument: String!\n $granularity: Granularity!\n $timeSpan: TimeSpan!\n ) {\n priceCandles(\n dataSource: $dataSource\n division: $division\n instrument: $instrument\n granularity: $granularity\n timeSpan: $timeSpan\n ) {\n candle {\n point\n high\n low\n open\n close\n }\n pipsLocation\n }\n }\n`;\n\nexport { getPriceCandles };\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,MAAMC,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG,IAAAE,WAAG;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC","ignoreList":[]}
@@ -1,5 +1,11 @@
1
- import { gql } from '@apollo/client';
2
- const getSentiments = gql`
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getSentiments = void 0;
7
+ var _client = require("@apollo/client");
8
+ const getSentiments = exports.getSentiments = (0, _client.gql)`
3
9
  query GetSentiments(
4
10
  $instrument: String!
5
11
  $granularity: Granularity!
@@ -19,5 +25,4 @@ const getSentiments = gql`
19
25
  }
20
26
  }
21
27
  `;
22
- export { getSentiments };
23
28
  //# sourceMappingURL=getSentiments.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSentiments.js","names":["gql","getSentiments"],"sources":["../../../src/gql/getSentiments.ts"],"sourcesContent":["import { gql } from '@apollo/client';\n\nconst getSentiments = gql`\n query GetSentiments(\n $instrument: String!\n $granularity: Granularity!\n $timeSpan: TimeSpan!\n ) {\n sentiments(\n instrument: $instrument\n granularity: $granularity\n timeSpan: $timeSpan\n ) {\n sentiments {\n sentiment {\n shortPercent\n }\n time\n }\n }\n }\n`;\n\nexport { getSentiments };\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,gBAAgB;AAEpC,MAAMC,aAAa,GAAGD,GAAG;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,SAASC,aAAa","ignoreList":[]}
1
+ {"version":3,"file":"getSentiments.js","names":["_client","require","getSentiments","exports","gql"],"sources":["../../../src/gql/getSentiments.ts"],"sourcesContent":["import { gql } from '@apollo/client';\n\nconst getSentiments = gql`\n query GetSentiments(\n $instrument: String!\n $granularity: Granularity!\n $timeSpan: TimeSpan!\n ) {\n sentiments(\n instrument: $instrument\n granularity: $granularity\n timeSpan: $timeSpan\n ) {\n sentiments {\n sentiment {\n shortPercent\n }\n time\n }\n }\n }\n`;\n\nexport { getSentiments };\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,MAAMC,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,IAAAE,WAAG;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC","ignoreList":[]}
@@ -1,10 +1,18 @@
1
- export function useFragment(_documentNode, fragmentType) {
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.isFragmentReady = isFragmentReady;
7
+ exports.makeFragmentData = makeFragmentData;
8
+ exports.useFragment = useFragment;
9
+ function useFragment(_documentNode, fragmentType) {
2
10
  return fragmentType;
3
11
  }
4
- export function makeFragmentData(data, _fragment) {
12
+ function makeFragmentData(data, _fragment) {
5
13
  return data;
6
14
  }
7
- export function isFragmentReady(queryNode, fragmentNode, data) {
15
+ function isFragmentReady(queryNode, fragmentNode, data) {
8
16
  const deferredFields = queryNode.__meta__?.deferredFields;
9
17
  if (!deferredFields) return true;
10
18
  const fragDef = fragmentNode.definitions[0];
@@ -1 +1 @@
1
- {"version":3,"file":"fragment-masking.js","names":["useFragment","_documentNode","fragmentType","makeFragmentData","data","_fragment","isFragmentReady","queryNode","fragmentNode","deferredFields","__meta__","fragDef","definitions","fragName","name","value","fields","length","every","field"],"sources":["../../../../src/gql/types/fragment-masking.ts"],"sourcesContent":["import {\n ResultOf,\n DocumentTypeDecoration,\n TypedDocumentNode,\n} from '@graphql-typed-document-node/core';\nimport { FragmentDefinitionNode } from 'graphql';\nimport { Incremental } from './graphql';\n\nexport type FragmentType<\n TDocumentType extends DocumentTypeDecoration<any, any>,\n> =\n TDocumentType extends DocumentTypeDecoration<infer TType, any>\n ? [TType] extends [{ ' $fragmentName'?: infer TKey }]\n ? TKey extends string\n ? { ' $fragmentRefs'?: { [key in TKey]: TType } }\n : never\n : never\n : never;\n\n// return non-nullable if `fragmentType` is non-nullable\nexport function useFragment<TType>(\n _documentNode: DocumentTypeDecoration<TType, any>,\n fragmentType: FragmentType<DocumentTypeDecoration<TType, any>>\n): TType;\n// return nullable if `fragmentType` is nullable\nexport function useFragment<TType>(\n _documentNode: DocumentTypeDecoration<TType, any>,\n fragmentType:\n | FragmentType<DocumentTypeDecoration<TType, any>>\n | null\n | undefined\n): TType | null | undefined;\n// return array of non-nullable if `fragmentType` is array of non-nullable\nexport function useFragment<TType>(\n _documentNode: DocumentTypeDecoration<TType, any>,\n fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>\n): ReadonlyArray<TType>;\n// return array of nullable if `fragmentType` is array of nullable\nexport function useFragment<TType>(\n _documentNode: DocumentTypeDecoration<TType, any>,\n fragmentType:\n | ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>\n | null\n | undefined\n): ReadonlyArray<TType> | null | undefined;\nexport function useFragment<TType>(\n _documentNode: DocumentTypeDecoration<TType, any>,\n fragmentType:\n | FragmentType<DocumentTypeDecoration<TType, any>>\n | ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>\n | null\n | undefined\n): TType | ReadonlyArray<TType> | null | undefined {\n return fragmentType as any;\n}\n\nexport function makeFragmentData<\n F extends DocumentTypeDecoration<any, any>,\n FT extends ResultOf<F>,\n>(data: FT, _fragment: F): FragmentType<F> {\n return data as FragmentType<F>;\n}\nexport function isFragmentReady<TQuery, TFrag>(\n queryNode: DocumentTypeDecoration<TQuery, any>,\n fragmentNode: TypedDocumentNode<TFrag>,\n data:\n | FragmentType<TypedDocumentNode<Incremental<TFrag>, any>>\n | null\n | undefined\n): data is FragmentType<typeof fragmentNode> {\n const deferredFields = (\n queryNode as {\n __meta__?: { deferredFields: Record<string, (keyof TFrag)[]> };\n }\n ).__meta__?.deferredFields;\n\n if (!deferredFields) return true;\n\n const fragDef = fragmentNode.definitions[0] as\n | FragmentDefinitionNode\n | undefined;\n const fragName = fragDef?.name?.value;\n\n const fields = (fragName && deferredFields[fragName]) || [];\n return fields.length > 0 && fields.every((field) => data && field in data);\n}\n"],"mappings":"AA6CA,OAAO,SAASA,WAAWA,CACzBC,aAAiD,EACjDC,YAIa,EACoC;EACjD,OAAOA,YAAY;AACrB;AAEA,OAAO,SAASC,gBAAgBA,CAG9BC,IAAQ,EAAEC,SAAY,EAAmB;EACzC,OAAOD,IAAI;AACb;AACA,OAAO,SAASE,eAAeA,CAC7BC,SAA8C,EAC9CC,YAAsC,EACtCJ,IAGa,EAC8B;EAC3C,MAAMK,cAAc,GAClBF,SAAS,CAGTG,QAAQ,EAAED,cAAc;EAE1B,IAAI,CAACA,cAAc,EAAE,OAAO,IAAI;EAEhC,MAAME,OAAO,GAAGH,YAAY,CAACI,WAAW,CAAC,CAAC,CAE7B;EACb,MAAMC,QAAQ,GAAGF,OAAO,EAAEG,IAAI,EAAEC,KAAK;EAErC,MAAMC,MAAM,GAAIH,QAAQ,IAAIJ,cAAc,CAACI,QAAQ,CAAC,IAAK,EAAE;EAC3D,OAAOG,MAAM,CAACC,MAAM,GAAG,CAAC,IAAID,MAAM,CAACE,KAAK,CAAEC,KAAK,IAAKf,IAAI,IAAIe,KAAK,IAAIf,IAAI,CAAC;AAC5E","ignoreList":[]}
1
+ {"version":3,"file":"fragment-masking.js","names":["useFragment","_documentNode","fragmentType","makeFragmentData","data","_fragment","isFragmentReady","queryNode","fragmentNode","deferredFields","__meta__","fragDef","definitions","fragName","name","value","fields","length","every","field"],"sources":["../../../../src/gql/types/fragment-masking.ts"],"sourcesContent":["import {\n ResultOf,\n DocumentTypeDecoration,\n TypedDocumentNode,\n} from '@graphql-typed-document-node/core';\nimport { FragmentDefinitionNode } from 'graphql';\nimport { Incremental } from './graphql';\n\nexport type FragmentType<\n TDocumentType extends DocumentTypeDecoration<any, any>,\n> =\n TDocumentType extends DocumentTypeDecoration<infer TType, any>\n ? [TType] extends [{ ' $fragmentName'?: infer TKey }]\n ? TKey extends string\n ? { ' $fragmentRefs'?: { [key in TKey]: TType } }\n : never\n : never\n : never;\n\n// return non-nullable if `fragmentType` is non-nullable\nexport function useFragment<TType>(\n _documentNode: DocumentTypeDecoration<TType, any>,\n fragmentType: FragmentType<DocumentTypeDecoration<TType, any>>\n): TType;\n// return nullable if `fragmentType` is nullable\nexport function useFragment<TType>(\n _documentNode: DocumentTypeDecoration<TType, any>,\n fragmentType:\n | FragmentType<DocumentTypeDecoration<TType, any>>\n | null\n | undefined\n): TType | null | undefined;\n// return array of non-nullable if `fragmentType` is array of non-nullable\nexport function useFragment<TType>(\n _documentNode: DocumentTypeDecoration<TType, any>,\n fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>\n): ReadonlyArray<TType>;\n// return array of nullable if `fragmentType` is array of nullable\nexport function useFragment<TType>(\n _documentNode: DocumentTypeDecoration<TType, any>,\n fragmentType:\n | ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>\n | null\n | undefined\n): ReadonlyArray<TType> | null | undefined;\nexport function useFragment<TType>(\n _documentNode: DocumentTypeDecoration<TType, any>,\n fragmentType:\n | FragmentType<DocumentTypeDecoration<TType, any>>\n | ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>\n | null\n | undefined\n): TType | ReadonlyArray<TType> | null | undefined {\n return fragmentType as any;\n}\n\nexport function makeFragmentData<\n F extends DocumentTypeDecoration<any, any>,\n FT extends ResultOf<F>,\n>(data: FT, _fragment: F): FragmentType<F> {\n return data as FragmentType<F>;\n}\nexport function isFragmentReady<TQuery, TFrag>(\n queryNode: DocumentTypeDecoration<TQuery, any>,\n fragmentNode: TypedDocumentNode<TFrag>,\n data:\n | FragmentType<TypedDocumentNode<Incremental<TFrag>, any>>\n | null\n | undefined\n): data is FragmentType<typeof fragmentNode> {\n const deferredFields = (\n queryNode as {\n __meta__?: { deferredFields: Record<string, (keyof TFrag)[]> };\n }\n ).__meta__?.deferredFields;\n\n if (!deferredFields) return true;\n\n const fragDef = fragmentNode.definitions[0] as\n | FragmentDefinitionNode\n | undefined;\n const fragName = fragDef?.name?.value;\n\n const fields = (fragName && deferredFields[fragName]) || [];\n return fields.length > 0 && fields.every((field) => data && field in data);\n}\n"],"mappings":";;;;;;;;AA6CO,SAASA,WAAWA,CACzBC,aAAiD,EACjDC,YAIa,EACoC;EACjD,OAAOA,YAAY;AACrB;AAEO,SAASC,gBAAgBA,CAG9BC,IAAQ,EAAEC,SAAY,EAAmB;EACzC,OAAOD,IAAI;AACb;AACO,SAASE,eAAeA,CAC7BC,SAA8C,EAC9CC,YAAsC,EACtCJ,IAGa,EAC8B;EAC3C,MAAMK,cAAc,GAClBF,SAAS,CAGTG,QAAQ,EAAED,cAAc;EAE1B,IAAI,CAACA,cAAc,EAAE,OAAO,IAAI;EAEhC,MAAME,OAAO,GAAGH,YAAY,CAACI,WAAW,CAAC,CAAC,CAE7B;EACb,MAAMC,QAAQ,GAAGF,OAAO,EAAEG,IAAI,EAAEC,KAAK;EAErC,MAAMC,MAAM,GAAIH,QAAQ,IAAIJ,cAAc,CAACI,QAAQ,CAAC,IAAK,EAAE;EAC3D,OAAOG,MAAM,CAACC,MAAM,GAAG,CAAC,IAAID,MAAM,CAACE,KAAK,CAAEC,KAAK,IAAKf,IAAI,IAAIe,KAAK,IAAIf,IAAI,CAAC;AAC5E","ignoreList":[]}
@@ -1,10 +1,17 @@
1
- import * as types from './graphql';
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.graphql = graphql;
7
+ var types = _interopRequireWildcard(require("./graphql"));
8
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
2
9
  const documents = {
3
10
  '\n query GetOrderPositionBooks(\n $instrument: String!\n $bookType: BookType!\n $timeSpan: TimeSpan!\n $granularity: Granularity!\n $maxBookPrice: Float\n $minBookPrice: Float\n $bucketMultiplier: Int!\n $bucketMargin: Int!\n ) {\n orderPositionBooks(\n instrument: $instrument\n bookType: $bookType\n timeSpan: $timeSpan\n granularity: $granularity\n maxBookPrice: $maxBookPrice\n minBookPrice: $minBookPrice\n bucketMultiplier: $bucketMultiplier\n bucketMargin: $bucketMargin\n ) {\n books {\n time\n price\n buckets {\n price\n sentiment\n }\n }\n bucketWidth\n sentimentThresholdMax\n sentimentThresholdMin\n }\n }\n': types.GetOrderPositionBooksDocument,
4
11
  '\n query GetPriceCandles(\n $dataSource: DataSource!\n $division: Division!\n $instrument: String!\n $granularity: Granularity!\n $timeSpan: TimeSpan!\n ) {\n priceCandles(\n dataSource: $dataSource\n division: $division\n instrument: $instrument\n granularity: $granularity\n timeSpan: $timeSpan\n ) {\n candle {\n point\n high\n low\n open\n close\n }\n pipsLocation\n }\n }\n': types.GetPriceCandlesDocument,
5
12
  '\n query GetSentiments(\n $instrument: String!\n $granularity: Granularity!\n $timeSpan: TimeSpan!\n ) {\n sentiments(\n instrument: $instrument\n granularity: $granularity\n timeSpan: $timeSpan\n ) {\n sentiments {\n sentiment {\n shortPercent\n }\n time\n }\n }\n }\n': types.GetSentimentsDocument
6
13
  };
7
- export function graphql(source) {
14
+ function graphql(source) {
8
15
  return documents[source] ?? {};
9
16
  }
10
17
  //# sourceMappingURL=gql.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gql.js","names":["types","documents","GetOrderPositionBooksDocument","GetPriceCandlesDocument","GetSentimentsDocument","graphql","source"],"sources":["../../../../src/gql/types/gql.ts"],"sourcesContent":["/* eslint-disable */\nimport * as types from './graphql';\nimport { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\n\n/**\n * Map of all GraphQL operations in the project.\n *\n * This map has several performance disadvantages:\n * 1. It is not tree-shakeable, so it will include all operations in the project.\n * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.\n * 3. It does not support dead code elimination, so it will add unused operations.\n *\n * Therefore it is highly recommended to use the babel or swc plugin for production.\n */\nconst documents = {\n '\\n query GetOrderPositionBooks(\\n $instrument: String!\\n $bookType: BookType!\\n $timeSpan: TimeSpan!\\n $granularity: Granularity!\\n $maxBookPrice: Float\\n $minBookPrice: Float\\n $bucketMultiplier: Int!\\n $bucketMargin: Int!\\n ) {\\n orderPositionBooks(\\n instrument: $instrument\\n bookType: $bookType\\n timeSpan: $timeSpan\\n granularity: $granularity\\n maxBookPrice: $maxBookPrice\\n minBookPrice: $minBookPrice\\n bucketMultiplier: $bucketMultiplier\\n bucketMargin: $bucketMargin\\n ) {\\n books {\\n time\\n price\\n buckets {\\n price\\n sentiment\\n }\\n }\\n bucketWidth\\n sentimentThresholdMax\\n sentimentThresholdMin\\n }\\n }\\n':\n types.GetOrderPositionBooksDocument,\n '\\n query GetPriceCandles(\\n $dataSource: DataSource!\\n $division: Division!\\n $instrument: String!\\n $granularity: Granularity!\\n $timeSpan: TimeSpan!\\n ) {\\n priceCandles(\\n dataSource: $dataSource\\n division: $division\\n instrument: $instrument\\n granularity: $granularity\\n timeSpan: $timeSpan\\n ) {\\n candle {\\n point\\n high\\n low\\n open\\n close\\n }\\n pipsLocation\\n }\\n }\\n':\n types.GetPriceCandlesDocument,\n '\\n query GetSentiments(\\n $instrument: String!\\n $granularity: Granularity!\\n $timeSpan: TimeSpan!\\n ) {\\n sentiments(\\n instrument: $instrument\\n granularity: $granularity\\n timeSpan: $timeSpan\\n ) {\\n sentiments {\\n sentiment {\\n shortPercent\\n }\\n time\\n }\\n }\\n }\\n':\n types.GetSentimentsDocument,\n};\n\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n *\n *\n * @example\n * ```ts\n * const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);\n * ```\n *\n * The query argument is unknown!\n * Please regenerate the types.\n */\nexport function graphql(source: string): unknown;\n\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: '\\n query GetOrderPositionBooks(\\n $instrument: String!\\n $bookType: BookType!\\n $timeSpan: TimeSpan!\\n $granularity: Granularity!\\n $maxBookPrice: Float\\n $minBookPrice: Float\\n $bucketMultiplier: Int!\\n $bucketMargin: Int!\\n ) {\\n orderPositionBooks(\\n instrument: $instrument\\n bookType: $bookType\\n timeSpan: $timeSpan\\n granularity: $granularity\\n maxBookPrice: $maxBookPrice\\n minBookPrice: $minBookPrice\\n bucketMultiplier: $bucketMultiplier\\n bucketMargin: $bucketMargin\\n ) {\\n books {\\n time\\n price\\n buckets {\\n price\\n sentiment\\n }\\n }\\n bucketWidth\\n sentimentThresholdMax\\n sentimentThresholdMin\\n }\\n }\\n'\n): (typeof documents)['\\n query GetOrderPositionBooks(\\n $instrument: String!\\n $bookType: BookType!\\n $timeSpan: TimeSpan!\\n $granularity: Granularity!\\n $maxBookPrice: Float\\n $minBookPrice: Float\\n $bucketMultiplier: Int!\\n $bucketMargin: Int!\\n ) {\\n orderPositionBooks(\\n instrument: $instrument\\n bookType: $bookType\\n timeSpan: $timeSpan\\n granularity: $granularity\\n maxBookPrice: $maxBookPrice\\n minBookPrice: $minBookPrice\\n bucketMultiplier: $bucketMultiplier\\n bucketMargin: $bucketMargin\\n ) {\\n books {\\n time\\n price\\n buckets {\\n price\\n sentiment\\n }\\n }\\n bucketWidth\\n sentimentThresholdMax\\n sentimentThresholdMin\\n }\\n }\\n'];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: '\\n query GetPriceCandles(\\n $dataSource: DataSource!\\n $division: Division!\\n $instrument: String!\\n $granularity: Granularity!\\n $timeSpan: TimeSpan!\\n ) {\\n priceCandles(\\n dataSource: $dataSource\\n division: $division\\n instrument: $instrument\\n granularity: $granularity\\n timeSpan: $timeSpan\\n ) {\\n candle {\\n point\\n high\\n low\\n open\\n close\\n }\\n pipsLocation\\n }\\n }\\n'\n): (typeof documents)['\\n query GetPriceCandles(\\n $dataSource: DataSource!\\n $division: Division!\\n $instrument: String!\\n $granularity: Granularity!\\n $timeSpan: TimeSpan!\\n ) {\\n priceCandles(\\n dataSource: $dataSource\\n division: $division\\n instrument: $instrument\\n granularity: $granularity\\n timeSpan: $timeSpan\\n ) {\\n candle {\\n point\\n high\\n low\\n open\\n close\\n }\\n pipsLocation\\n }\\n }\\n'];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: '\\n query GetSentiments(\\n $instrument: String!\\n $granularity: Granularity!\\n $timeSpan: TimeSpan!\\n ) {\\n sentiments(\\n instrument: $instrument\\n granularity: $granularity\\n timeSpan: $timeSpan\\n ) {\\n sentiments {\\n sentiment {\\n shortPercent\\n }\\n time\\n }\\n }\\n }\\n'\n): (typeof documents)['\\n query GetSentiments(\\n $instrument: String!\\n $granularity: Granularity!\\n $timeSpan: TimeSpan!\\n ) {\\n sentiments(\\n instrument: $instrument\\n granularity: $granularity\\n timeSpan: $timeSpan\\n ) {\\n sentiments {\\n sentiment {\\n shortPercent\\n }\\n time\\n }\\n }\\n }\\n'];\n\nexport function graphql(source: string) {\n return (documents as any)[source] ?? {};\n}\n\nexport type DocumentType<TDocumentNode extends DocumentNode<any, any>> =\n TDocumentNode extends DocumentNode<infer TType, any> ? TType : never;\n"],"mappings":"AACA,OAAO,KAAKA,KAAK,MAAM,WAAW;AAalC,MAAMC,SAAS,GAAG;EAChB,iwBAAiwB,EAC/vBD,KAAK,CAACE,6BAA6B;EACrC,keAAke,EACheF,KAAK,CAACG,uBAAuB;EAC/B,2VAA2V,EACzVH,KAAK,CAACI;AACV,CAAC;AAmCD,OAAO,SAASC,OAAOA,CAACC,MAAc,EAAE;EACtC,OAAQL,SAAS,CAASK,MAAM,CAAC,IAAI,CAAC,CAAC;AACzC","ignoreList":[]}
1
+ {"version":3,"file":"gql.js","names":["types","_interopRequireWildcard","require","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","documents","GetOrderPositionBooksDocument","GetPriceCandlesDocument","GetSentimentsDocument","graphql","source"],"sources":["../../../../src/gql/types/gql.ts"],"sourcesContent":["/* eslint-disable */\nimport * as types from './graphql';\nimport { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\n\n/**\n * Map of all GraphQL operations in the project.\n *\n * This map has several performance disadvantages:\n * 1. It is not tree-shakeable, so it will include all operations in the project.\n * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.\n * 3. It does not support dead code elimination, so it will add unused operations.\n *\n * Therefore it is highly recommended to use the babel or swc plugin for production.\n */\nconst documents = {\n '\\n query GetOrderPositionBooks(\\n $instrument: String!\\n $bookType: BookType!\\n $timeSpan: TimeSpan!\\n $granularity: Granularity!\\n $maxBookPrice: Float\\n $minBookPrice: Float\\n $bucketMultiplier: Int!\\n $bucketMargin: Int!\\n ) {\\n orderPositionBooks(\\n instrument: $instrument\\n bookType: $bookType\\n timeSpan: $timeSpan\\n granularity: $granularity\\n maxBookPrice: $maxBookPrice\\n minBookPrice: $minBookPrice\\n bucketMultiplier: $bucketMultiplier\\n bucketMargin: $bucketMargin\\n ) {\\n books {\\n time\\n price\\n buckets {\\n price\\n sentiment\\n }\\n }\\n bucketWidth\\n sentimentThresholdMax\\n sentimentThresholdMin\\n }\\n }\\n':\n types.GetOrderPositionBooksDocument,\n '\\n query GetPriceCandles(\\n $dataSource: DataSource!\\n $division: Division!\\n $instrument: String!\\n $granularity: Granularity!\\n $timeSpan: TimeSpan!\\n ) {\\n priceCandles(\\n dataSource: $dataSource\\n division: $division\\n instrument: $instrument\\n granularity: $granularity\\n timeSpan: $timeSpan\\n ) {\\n candle {\\n point\\n high\\n low\\n open\\n close\\n }\\n pipsLocation\\n }\\n }\\n':\n types.GetPriceCandlesDocument,\n '\\n query GetSentiments(\\n $instrument: String!\\n $granularity: Granularity!\\n $timeSpan: TimeSpan!\\n ) {\\n sentiments(\\n instrument: $instrument\\n granularity: $granularity\\n timeSpan: $timeSpan\\n ) {\\n sentiments {\\n sentiment {\\n shortPercent\\n }\\n time\\n }\\n }\\n }\\n':\n types.GetSentimentsDocument,\n};\n\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n *\n *\n * @example\n * ```ts\n * const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);\n * ```\n *\n * The query argument is unknown!\n * Please regenerate the types.\n */\nexport function graphql(source: string): unknown;\n\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: '\\n query GetOrderPositionBooks(\\n $instrument: String!\\n $bookType: BookType!\\n $timeSpan: TimeSpan!\\n $granularity: Granularity!\\n $maxBookPrice: Float\\n $minBookPrice: Float\\n $bucketMultiplier: Int!\\n $bucketMargin: Int!\\n ) {\\n orderPositionBooks(\\n instrument: $instrument\\n bookType: $bookType\\n timeSpan: $timeSpan\\n granularity: $granularity\\n maxBookPrice: $maxBookPrice\\n minBookPrice: $minBookPrice\\n bucketMultiplier: $bucketMultiplier\\n bucketMargin: $bucketMargin\\n ) {\\n books {\\n time\\n price\\n buckets {\\n price\\n sentiment\\n }\\n }\\n bucketWidth\\n sentimentThresholdMax\\n sentimentThresholdMin\\n }\\n }\\n'\n): (typeof documents)['\\n query GetOrderPositionBooks(\\n $instrument: String!\\n $bookType: BookType!\\n $timeSpan: TimeSpan!\\n $granularity: Granularity!\\n $maxBookPrice: Float\\n $minBookPrice: Float\\n $bucketMultiplier: Int!\\n $bucketMargin: Int!\\n ) {\\n orderPositionBooks(\\n instrument: $instrument\\n bookType: $bookType\\n timeSpan: $timeSpan\\n granularity: $granularity\\n maxBookPrice: $maxBookPrice\\n minBookPrice: $minBookPrice\\n bucketMultiplier: $bucketMultiplier\\n bucketMargin: $bucketMargin\\n ) {\\n books {\\n time\\n price\\n buckets {\\n price\\n sentiment\\n }\\n }\\n bucketWidth\\n sentimentThresholdMax\\n sentimentThresholdMin\\n }\\n }\\n'];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: '\\n query GetPriceCandles(\\n $dataSource: DataSource!\\n $division: Division!\\n $instrument: String!\\n $granularity: Granularity!\\n $timeSpan: TimeSpan!\\n ) {\\n priceCandles(\\n dataSource: $dataSource\\n division: $division\\n instrument: $instrument\\n granularity: $granularity\\n timeSpan: $timeSpan\\n ) {\\n candle {\\n point\\n high\\n low\\n open\\n close\\n }\\n pipsLocation\\n }\\n }\\n'\n): (typeof documents)['\\n query GetPriceCandles(\\n $dataSource: DataSource!\\n $division: Division!\\n $instrument: String!\\n $granularity: Granularity!\\n $timeSpan: TimeSpan!\\n ) {\\n priceCandles(\\n dataSource: $dataSource\\n division: $division\\n instrument: $instrument\\n granularity: $granularity\\n timeSpan: $timeSpan\\n ) {\\n candle {\\n point\\n high\\n low\\n open\\n close\\n }\\n pipsLocation\\n }\\n }\\n'];\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: '\\n query GetSentiments(\\n $instrument: String!\\n $granularity: Granularity!\\n $timeSpan: TimeSpan!\\n ) {\\n sentiments(\\n instrument: $instrument\\n granularity: $granularity\\n timeSpan: $timeSpan\\n ) {\\n sentiments {\\n sentiment {\\n shortPercent\\n }\\n time\\n }\\n }\\n }\\n'\n): (typeof documents)['\\n query GetSentiments(\\n $instrument: String!\\n $granularity: Granularity!\\n $timeSpan: TimeSpan!\\n ) {\\n sentiments(\\n instrument: $instrument\\n granularity: $granularity\\n timeSpan: $timeSpan\\n ) {\\n sentiments {\\n sentiment {\\n shortPercent\\n }\\n time\\n }\\n }\\n }\\n'];\n\nexport function graphql(source: string) {\n return (documents as any)[source] ?? {};\n}\n\nexport type DocumentType<TDocumentNode extends DocumentNode<any, any>> =\n TDocumentNode extends DocumentNode<infer TType, any> ? TType : never;\n"],"mappings":";;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAmC,SAAAD,wBAAAE,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAJ,uBAAA,YAAAA,CAAAE,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAanC,MAAMkB,SAAS,GAAG;EAChB,iwBAAiwB,EAC/vBtB,KAAK,CAACuB,6BAA6B;EACrC,keAAke,EAChevB,KAAK,CAACwB,uBAAuB;EAC/B,2VAA2V,EACzVxB,KAAK,CAACyB;AACV,CAAC;AAmCM,SAASC,OAAOA,CAACC,MAAc,EAAE;EACtC,OAAQL,SAAS,CAASK,MAAM,CAAC,IAAI,CAAC,CAAC;AACzC","ignoreList":[]}
@@ -1,4 +1,10 @@
1
- export let AssetClassName = function (AssetClassName) {
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.VolatilityChartTimeUnit = exports.VolatilityChartTimeSpan = exports.ValueAtRiskDuration = exports.ValueAtRiskBars = exports.TradeMode = exports.TopicalSort = exports.TimeSpan = exports.Sort = exports.Region = exports.OrderBookDataSource = exports.Granularity = exports.GetSentimentsDocument = exports.GetPriceCandlesDocument = exports.GetOrderPositionBooksDocument = exports.Division = exports.DataSource = exports.CurrencyPowerBalanceTimeUnit = exports.CurrencyName = exports.CorrelationTimeUnit = exports.BookType = exports.AssetClassName = void 0;
7
+ let AssetClassName = exports.AssetClassName = function (AssetClassName) {
2
8
  AssetClassName["Commodities"] = "COMMODITIES";
3
9
  AssetClassName["Cryptocurrency"] = "CRYPTOCURRENCY";
4
10
  AssetClassName["Currency"] = "CURRENCY";
@@ -9,12 +15,12 @@ export let AssetClassName = function (AssetClassName) {
9
15
  AssetClassName["Rates"] = "RATES";
10
16
  return AssetClassName;
11
17
  }({});
12
- export let BookType = function (BookType) {
18
+ let BookType = exports.BookType = function (BookType) {
13
19
  BookType["Order"] = "ORDER";
14
20
  BookType["Position"] = "POSITION";
15
21
  return BookType;
16
22
  }({});
17
- export let CorrelationTimeUnit = function (CorrelationTimeUnit) {
23
+ let CorrelationTimeUnit = exports.CorrelationTimeUnit = function (CorrelationTimeUnit) {
18
24
  CorrelationTimeUnit["H1"] = "H1";
19
25
  CorrelationTimeUnit["H4"] = "H4";
20
26
  CorrelationTimeUnit["H24"] = "H24";
@@ -25,7 +31,7 @@ export let CorrelationTimeUnit = function (CorrelationTimeUnit) {
25
31
  CorrelationTimeUnit["Y1"] = "Y1";
26
32
  return CorrelationTimeUnit;
27
33
  }({});
28
- export let CurrencyName = function (CurrencyName) {
34
+ let CurrencyName = exports.CurrencyName = function (CurrencyName) {
29
35
  CurrencyName["Aud"] = "AUD";
30
36
  CurrencyName["Cad"] = "CAD";
31
37
  CurrencyName["Chf"] = "CHF";
@@ -36,7 +42,7 @@ export let CurrencyName = function (CurrencyName) {
36
42
  CurrencyName["Usd"] = "USD";
37
43
  return CurrencyName;
38
44
  }({});
39
- export let CurrencyPowerBalanceTimeUnit = function (CurrencyPowerBalanceTimeUnit) {
45
+ let CurrencyPowerBalanceTimeUnit = exports.CurrencyPowerBalanceTimeUnit = function (CurrencyPowerBalanceTimeUnit) {
40
46
  CurrencyPowerBalanceTimeUnit["CurrentDay"] = "CURRENT_DAY";
41
47
  CurrencyPowerBalanceTimeUnit["H4"] = "H4";
42
48
  CurrencyPowerBalanceTimeUnit["H8"] = "H8";
@@ -47,13 +53,13 @@ export let CurrencyPowerBalanceTimeUnit = function (CurrencyPowerBalanceTimeUnit
47
53
  CurrencyPowerBalanceTimeUnit["W1"] = "W1";
48
54
  return CurrencyPowerBalanceTimeUnit;
49
55
  }({});
50
- export let DataSource = function (DataSource) {
56
+ let DataSource = exports.DataSource = function (DataSource) {
51
57
  DataSource["All"] = "ALL";
52
58
  DataSource["Mt5"] = "MT5";
53
59
  DataSource["V20"] = "V20";
54
60
  return DataSource;
55
61
  }({});
56
- export let Division = function (Division) {
62
+ let Division = exports.Division = function (Division) {
57
63
  Division["Oap"] = "OAP";
58
64
  Division["Oau"] = "OAU";
59
65
  Division["Oc"] = "OC";
@@ -65,31 +71,31 @@ export let Division = function (Division) {
65
71
  Division["Otms"] = "OTMS";
66
72
  return Division;
67
73
  }({});
68
- export let Granularity = function (Granularity) {
74
+ let Granularity = exports.Granularity = function (Granularity) {
69
75
  Granularity["H1"] = "H1";
70
76
  Granularity["H4"] = "H4";
71
77
  Granularity["M5"] = "M5";
72
78
  Granularity["M15"] = "M15";
73
79
  return Granularity;
74
80
  }({});
75
- export let OrderBookDataSource = function (OrderBookDataSource) {
81
+ let OrderBookDataSource = exports.OrderBookDataSource = function (OrderBookDataSource) {
76
82
  OrderBookDataSource["Ny4"] = "NY4";
77
83
  OrderBookDataSource["Ny4Mt5"] = "NY4_MT5";
78
84
  OrderBookDataSource["Ty3"] = "TY3";
79
85
  return OrderBookDataSource;
80
86
  }({});
81
- export let Region = function (Region) {
87
+ let Region = exports.Region = function (Region) {
82
88
  Region["Amer"] = "AMER";
83
89
  Region["Apac"] = "APAC";
84
90
  Region["Emea"] = "EMEA";
85
91
  return Region;
86
92
  }({});
87
- export let Sort = function (Sort) {
93
+ let Sort = exports.Sort = function (Sort) {
88
94
  Sort["Bearish"] = "BEARISH";
89
95
  Sort["Bullish"] = "BULLISH";
90
96
  return Sort;
91
97
  }({});
92
- export let TimeSpan = function (TimeSpan) {
98
+ let TimeSpan = exports.TimeSpan = function (TimeSpan) {
93
99
  TimeSpan["FiveDays"] = "FIVE_DAYS";
94
100
  TimeSpan["NinetyDays"] = "NINETY_DAYS";
95
101
  TimeSpan["TenDays"] = "TEN_DAYS";
@@ -97,7 +103,7 @@ export let TimeSpan = function (TimeSpan) {
97
103
  TimeSpan["TwoDays"] = "TWO_DAYS";
98
104
  return TimeSpan;
99
105
  }({});
100
- export let TopicalSort = function (TopicalSort) {
106
+ let TopicalSort = exports.TopicalSort = function (TopicalSort) {
101
107
  TopicalSort["Bearish"] = "BEARISH";
102
108
  TopicalSort["Bullish"] = "BULLISH";
103
109
  TopicalSort["Hot"] = "HOT";
@@ -105,7 +111,7 @@ export let TopicalSort = function (TopicalSort) {
105
111
  TopicalSort["Volatile"] = "VOLATILE";
106
112
  return TopicalSort;
107
113
  }({});
108
- export let TradeMode = function (TradeMode) {
114
+ let TradeMode = exports.TradeMode = function (TradeMode) {
109
115
  TradeMode["TradeCloseonly"] = "TRADE_CLOSEONLY";
110
116
  TradeMode["TradeDisabled"] = "TRADE_DISABLED";
111
117
  TradeMode["TradeFull"] = "TRADE_FULL";
@@ -114,13 +120,13 @@ export let TradeMode = function (TradeMode) {
114
120
  TradeMode["TradeUndefined"] = "TRADE_UNDEFINED";
115
121
  return TradeMode;
116
122
  }({});
117
- export let ValueAtRiskBars = function (ValueAtRiskBars) {
123
+ let ValueAtRiskBars = exports.ValueAtRiskBars = function (ValueAtRiskBars) {
118
124
  ValueAtRiskBars["C100"] = "C100";
119
125
  ValueAtRiskBars["C200"] = "C200";
120
126
  ValueAtRiskBars["C300"] = "C300";
121
127
  return ValueAtRiskBars;
122
128
  }({});
123
- export let ValueAtRiskDuration = function (ValueAtRiskDuration) {
129
+ let ValueAtRiskDuration = exports.ValueAtRiskDuration = function (ValueAtRiskDuration) {
124
130
  ValueAtRiskDuration["C1"] = "C1";
125
131
  ValueAtRiskDuration["C2"] = "C2";
126
132
  ValueAtRiskDuration["C3"] = "C3";
@@ -129,7 +135,7 @@ export let ValueAtRiskDuration = function (ValueAtRiskDuration) {
129
135
  ValueAtRiskDuration["C10"] = "C10";
130
136
  return ValueAtRiskDuration;
131
137
  }({});
132
- export let VolatilityChartTimeSpan = function (VolatilityChartTimeSpan) {
138
+ let VolatilityChartTimeSpan = exports.VolatilityChartTimeSpan = function (VolatilityChartTimeSpan) {
133
139
  VolatilityChartTimeSpan["D5"] = "D5";
134
140
  VolatilityChartTimeSpan["D10"] = "D10";
135
141
  VolatilityChartTimeSpan["M1"] = "M1";
@@ -138,13 +144,13 @@ export let VolatilityChartTimeSpan = function (VolatilityChartTimeSpan) {
138
144
  VolatilityChartTimeSpan["W10"] = "W10";
139
145
  return VolatilityChartTimeSpan;
140
146
  }({});
141
- export let VolatilityChartTimeUnit = function (VolatilityChartTimeUnit) {
147
+ let VolatilityChartTimeUnit = exports.VolatilityChartTimeUnit = function (VolatilityChartTimeUnit) {
142
148
  VolatilityChartTimeUnit["D"] = "D";
143
149
  VolatilityChartTimeUnit["H"] = "H";
144
150
  VolatilityChartTimeUnit["W"] = "W";
145
151
  return VolatilityChartTimeUnit;
146
152
  }({});
147
- export const GetOrderPositionBooksDocument = {
153
+ const GetOrderPositionBooksDocument = exports.GetOrderPositionBooksDocument = {
148
154
  kind: 'Document',
149
155
  definitions: [{
150
156
  kind: 'OperationDefinition',
@@ -483,7 +489,7 @@ export const GetOrderPositionBooksDocument = {
483
489
  }
484
490
  }]
485
491
  };
486
- export const GetPriceCandlesDocument = {
492
+ const GetPriceCandlesDocument = exports.GetPriceCandlesDocument = {
487
493
  kind: 'Document',
488
494
  definitions: [{
489
495
  kind: 'OperationDefinition',
@@ -716,7 +722,7 @@ export const GetPriceCandlesDocument = {
716
722
  }
717
723
  }]
718
724
  };
719
- export const GetSentimentsDocument = {
725
+ const GetSentimentsDocument = exports.GetSentimentsDocument = {
720
726
  kind: 'Document',
721
727
  definitions: [{
722
728
  kind: 'OperationDefinition',