@buynomics-lib/bn-shared 1.17.78-feature-cf-161.1 → 1.17.78-feature-cf-161.2
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.
|
@@ -6,6 +6,8 @@ var default_client_number_formatting_settings_1 = require("../../helpers/default
|
|
|
6
6
|
var client_number_formatting_settings_1 = require("../client/client-number-formatting-settings");
|
|
7
7
|
var kpi_display_style_enum_1 = require("./kpi-display-style.enum");
|
|
8
8
|
var kpi_config_type_enum_1 = require("./kpi-config-type.enum");
|
|
9
|
+
var system_kpis_1 = require("./system-kpis");
|
|
10
|
+
var system_scoped_kpis_1 = require("./system-scoped-kpis");
|
|
9
11
|
var defaultMetricSettingsForPrice = default_client_number_formatting_settings_1.DefaultClientNumberFormattingSettings.metricSettings[client_number_formatting_settings_1.ClientNumberFormattingSettingsMetric.Price];
|
|
10
12
|
var defaultMetricSettingsForMargin = default_client_number_formatting_settings_1.DefaultClientNumberFormattingSettings.metricSettings[client_number_formatting_settings_1.ClientNumberFormattingSettingsMetric.MarginMarketShare];
|
|
11
13
|
exports.SystemDerivedKpisReferenceIds = {
|
|
@@ -18,7 +20,7 @@ exports.SystemDerivedKpis = [
|
|
|
18
20
|
{
|
|
19
21
|
referenceId: exports.SystemDerivedKpisReferenceIds.AvgPriceRealized,
|
|
20
22
|
name: 'Avg. Price Realized',
|
|
21
|
-
formula:
|
|
23
|
+
formula: "".concat(system_kpis_1.SystemBaseKpisReferenceIds.Revenue, " / ").concat(system_kpis_1.SystemBaseKpisReferenceIds.Units),
|
|
22
24
|
aggregation: kpi_variable_format_enum_1.KpiAggregation.SUM,
|
|
23
25
|
format: kpi_variable_format_enum_1.KpiVariableFormat.Monetary,
|
|
24
26
|
displaySettings: {
|
|
@@ -32,7 +34,7 @@ exports.SystemDerivedKpis = [
|
|
|
32
34
|
{
|
|
33
35
|
referenceId: exports.SystemDerivedKpisReferenceIds.UnitsMarketShare,
|
|
34
36
|
name: 'Units Market Share',
|
|
35
|
-
formula:
|
|
37
|
+
formula: "".concat(system_kpis_1.SystemBaseKpisReferenceIds.Units, " / ").concat(system_scoped_kpis_1.SystemScopedKpisReferenceIds.UnitsMarketTotal),
|
|
36
38
|
aggregation: kpi_variable_format_enum_1.KpiAggregation.SUM,
|
|
37
39
|
format: kpi_variable_format_enum_1.KpiVariableFormat.Percentage,
|
|
38
40
|
displaySettings: {
|
|
@@ -46,7 +48,7 @@ exports.SystemDerivedKpis = [
|
|
|
46
48
|
{
|
|
47
49
|
referenceId: exports.SystemDerivedKpisReferenceIds.RevenueMarketShare,
|
|
48
50
|
name: 'Revenue Market Share',
|
|
49
|
-
formula:
|
|
51
|
+
formula: "".concat(system_kpis_1.SystemBaseKpisReferenceIds.Revenue, " / ").concat(system_scoped_kpis_1.SystemScopedKpisReferenceIds.RevenueMarketTotal),
|
|
50
52
|
aggregation: kpi_variable_format_enum_1.KpiAggregation.SUM,
|
|
51
53
|
format: kpi_variable_format_enum_1.KpiVariableFormat.Percentage,
|
|
52
54
|
displaySettings: {
|
|
@@ -60,7 +62,7 @@ exports.SystemDerivedKpis = [
|
|
|
60
62
|
{
|
|
61
63
|
referenceId: exports.SystemDerivedKpisReferenceIds.AvgBasePriceRealized,
|
|
62
64
|
name: 'Average Base Price Realized',
|
|
63
|
-
formula:
|
|
65
|
+
formula: "".concat(system_kpis_1.SystemBaseKpisReferenceIds.BaseRevenue, " / ").concat(system_kpis_1.SystemBaseKpisReferenceIds.Units),
|
|
64
66
|
aggregation: kpi_variable_format_enum_1.KpiAggregation.SUM,
|
|
65
67
|
format: kpi_variable_format_enum_1.KpiVariableFormat.Monetary,
|
|
66
68
|
displaySettings: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-derived-kpis.js","sourceRoot":"","sources":["../../../src/enums/kpis/system-derived-kpis.ts"],"names":[],"mappings":";;;AAAA,uEAA8E;AAC9E,qHAA+G;AAC/G,iGAAkG;AAClG,mEAA0D;AAC1D,+D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