@springtree/eva-services-bi 1.3.0 → 1.4.0

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 CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 1.4.0 (2023-02-14)
7
+
8
+
9
+ ### Features
10
+
11
+ * **services:** update to latest ([8e71591](https://github.com/springtreesolutions/eva-sdk-repo/commit/8e7159150eeb8d43980a6cfb47d225fce5d745a4))
12
+
13
+
14
+
15
+
16
+
6
17
  # 1.3.0 (2021-11-26)
7
18
 
8
19
 
@@ -26,45 +26,6 @@ export declare namespace BI {
26
26
  request?: EVA.BI.GetDailyStats;
27
27
  response?: EVA.BI.GetDailyStatsResponse;
28
28
  }
29
- /**
30
- * Gets BI data based on the given Labels.
31
-
32
- * `OrganizationUnitID` is the organization unit you want data from; this may be a container unit or a shop alike
33
- * `Labels` define the data you want to retrieve; use `GetLabels` to find the available labels in this instance
34
- * `Timeframe` defines the range of dates you want to accumulate, where you have three options available;
35
- * A `Period` with a `Year` and then either a `Month` or a `Week` (ISO)
36
- * A `Range` with a `From` and `To` date and a `Grain` to define the amount of detail within this period
37
- * A `Date` for a single date point in time
38
-
39
- Optionally, you can supply the following parameters;
40
-
41
- * `Series` is an array where you can specify which `Series` to retrieve; current values include `Actual` and `LFL`
42
- * `GroupBy` defines the 'rotation' to view the data in; by default you'll see data per `Label`, but you can rotate for a ranking view using `OrganizationUnit` or a more detailed view using `Name`
43
- * `Mock` allows you to override the base `BI:Mock` setting to switch between mocked- and live data
44
- *
45
- * @export
46
- * @class GetData
47
- * @implements {EvaService}
48
- */
49
- class GetData implements IEvaServiceDefinition {
50
- name: string;
51
- path: string;
52
- request?: EVA.BI.GetData;
53
- response?: EVA.BI.GetDataResponse;
54
- }
55
- /**
56
- * Retrieves the available labels across all loaded plugins, to be used in the `GetData` service `Labels` parameter array.
57
- *
58
- * @export
59
- * @class GetLabels
60
- * @implements {EvaService}
61
- */
62
- class GetLabels implements IEvaServiceDefinition {
63
- name: string;
64
- path: string;
65
- request?: EVA.BI.GetLabels;
66
- response?: EVA.BI.GetLabelsResponse;
67
- }
68
29
  /**
69
30
  * TODO: Needs documentation
70
31
  *
@@ -91,24 +52,5 @@ Optionally, you can supply the following parameters;
91
52
  request?: EVA.BI.GetPopularProducts;
92
53
  response?: EVA.BI.GetPopularProductsResponse;
93
54
  }
94
- /**
95
- * Retrieves a list of stores the current user has the `ViewReports` rights for, nested in a BI-specific tree for use in the BI app. The response contains
96
- one root node, from which you can traverse its Children (and its Children.Children, and its... you get it).
97
-
98
- From outside in, these are the types you will *always* find: `Root` (5), `Country` (4), `Region` (3), `City` (2) and `Shop` (1).
99
-
100
- Note that when a user does not have rights on a specific level (e.g. you may see a Region, but not the Country above), this node will have ID `-1`
101
- and Name `Unknown`. Needless to point out, but note you cannot use the ID `-1` as a value for the `GetData` service `OrganizationUnitID` parameter.
102
- *
103
- * @export
104
- * @class GetStoresForUser
105
- * @implements {EvaService}
106
- */
107
- class GetStoresForUser implements IEvaServiceDefinition {
108
- name: string;
109
- path: string;
110
- request?: EVA.BI.GetStoresForUser;
111
- response?: EVA.BI.GetStoresForUserResponse;
112
- }
113
55
  }
114
56
  //# sourceMappingURL=EVA.BI.Services.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EVA.BI.Services.d.ts","sourceRoot":"","sources":["../src/EVA.BI.Services.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,yBAAiB,EAAE,CAAC;IAElB;;;;;;OAMG;IACH,MAAa,iBAAkB,YAAW,qBAAqB;QAC7D,IAAI,SAA0B;QAC9B,IAAI,SAA+B;QACnC,OAAO,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,iBAAiB,CAAC;QACnC,QAAQ,CAAC,EAAE,GAAG,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47 +28,6 @@ export var BI;
28
28
  }
29
29
  }
30
30
  BI.GetDailyStats = GetDailyStats;
31
- /**
32
- * Gets BI data based on the given Labels.
33
-
34
- * `OrganizationUnitID` is the organization unit you want data from; this may be a container unit or a shop alike
35
- * `Labels` define the data you want to retrieve; use `GetLabels` to find the available labels in this instance
36
- * `Timeframe` defines the range of dates you want to accumulate, where you have three options available;
37
- * A `Period` with a `Year` and then either a `Month` or a `Week` (ISO)
38
- * A `Range` with a `From` and `To` date and a `Grain` to define the amount of detail within this period
39
- * A `Date` for a single date point in time
40
-
41
- Optionally, you can supply the following parameters;
42
-
43
- * `Series` is an array where you can specify which `Series` to retrieve; current values include `Actual` and `LFL`
44
- * `GroupBy` defines the 'rotation' to view the data in; by default you'll see data per `Label`, but you can rotate for a ranking view using `OrganizationUnit` or a more detailed view using `Name`
45
- * `Mock` allows you to override the base `BI:Mock` setting to switch between mocked- and live data
46
- *
47
- * @export
48
- * @class GetData
49
- * @implements {EvaService}
50
- */
51
- class GetData {
52
- constructor() {
53
- this.name = 'BI:GetData';
54
- this.path = '/api/bi/GetData';
55
- }
56
- }
57
- BI.GetData = GetData;
58
- /**
59
- * Retrieves the available labels across all loaded plugins, to be used in the `GetData` service `Labels` parameter array.
60
- *
61
- * @export
62
- * @class GetLabels
63
- * @implements {EvaService}
64
- */
65
- class GetLabels {
66
- constructor() {
67
- this.name = 'BI:GetLabels';
68
- this.path = '/api/bi/GetLabels';
69
- }
70
- }
71
- BI.GetLabels = GetLabels;
72
31
  /**
73
32
  * TODO: Needs documentation
74
33
  *
@@ -97,25 +56,5 @@ Optionally, you can supply the following parameters;
97
56
  }
98
57
  }
99
58
  BI.GetPopularProducts = GetPopularProducts;
100
- /**
101
- * Retrieves a list of stores the current user has the `ViewReports` rights for, nested in a BI-specific tree for use in the BI app. The response contains
102
- one root node, from which you can traverse its Children (and its Children.Children, and its... you get it).
103
-
104
- From outside in, these are the types you will *always* find: `Root` (5), `Country` (4), `Region` (3), `City` (2) and `Shop` (1).
105
-
106
- Note that when a user does not have rights on a specific level (e.g. you may see a Region, but not the Country above), this node will have ID `-1`
107
- and Name `Unknown`. Needless to point out, but note you cannot use the ID `-1` as a value for the `GetData` service `OrganizationUnitID` parameter.
108
- *
109
- * @export
110
- * @class GetStoresForUser
111
- * @implements {EvaService}
112
- */
113
- class GetStoresForUser {
114
- constructor() {
115
- this.name = 'BI:GetStoresForUser';
116
- this.path = '/api/bi/GetStoresForUser';
117
- }
118
- }
119
- BI.GetStoresForUser = GetStoresForUser;
120
59
  })(BI || (BI = {}));
121
60
  //# sourceMappingURL=EVA.BI.Services.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EVA.BI.Services.js","sourceRoot":"","sources":["../src/EVA.BI.Services.ts"],"names":[],"mappings":"AAEE,MAAM,KAAW,EAAE,CAsHlB;AAtHD,WAAiB,EAAE;IAEjB;;;;;;OAMG;IACH,MAAa,iBAAiB;QAA9B;YACE,SAAI,GAAG,sBAAsB,CAAC;YAC9B,SAAI,GAAG,2BAA2B,CAAC;QAGrC,CAAC;KAAA;IALY,oBAAiB,oBAK7B,CAAA;IAED;;;;;;OAMG;IACH,MAAa,aAAa;QAA1B;YACE,SAAI,GAAG,kBAAkB,CAAC;YAC1B,SAAI,GAAG,uBAAuB,CAAC;QAGjC,CAAC;KAAA;IALY,gBAAa,gBAKzB,CAAA;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAa,OAAO;QAApB;YACE,SAAI,GAAG,YAAY,CAAC;YACpB,SAAI,GAAG,iBAAiB,CAAC;QAG3B,CAAC;KAAA;IALY,UAAO,UAKnB,CAAA;IAED;;;;;;OAMG;IACH,MAAa,SAAS;QAAtB;YACE,SAAI,GAAG,cAAc,CAAC;YACtB,SAAI,GAAG,mBAAmB,CAAC;QAG7B,CAAC;KAAA;IALY,YAAS,YAKrB,CAAA;IAED;;;;;;OAMG;IACH,MAAa,cAAc;QAA3B;YACE,SAAI,GAAG,mBAAmB,CAAC;YAC3B,SAAI,G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-28,47 +28,6 @@ var BI;
28
28
  }
29
29
  }
30
30
  BI.GetDailyStats = GetDailyStats;
31
- /**
32
- * Gets BI data based on the given Labels.
33
-
34
- * `OrganizationUnitID` is the organization unit you want data from; this may be a container unit or a shop alike
35
- * `Labels` define the data you want to retrieve; use `GetLabels` to find the available labels in this instance
36
- * `Timeframe` defines the range of dates you want to accumulate, where you have three options available;
37
- * A `Period` with a `Year` and then either a `Month` or a `Week` (ISO)
38
- * A `Range` with a `From` and `To` date and a `Grain` to define the amount of detail within this period
39
- * A `Date` for a single date point in time
40
-
41
- Optionally, you can supply the following parameters;
42
-
43
- * `Series` is an array where you can specify which `Series` to retrieve; current values include `Actual` and `LFL`
44
- * `GroupBy` defines the 'rotation' to view the data in; by default you'll see data per `Label`, but you can rotate for a ranking view using `OrganizationUnit` or a more detailed view using `Name`
45
- * `Mock` allows you to override the base `BI:Mock` setting to switch between mocked- and live data
46
- *
47
- * @export
48
- * @class GetData
49
- * @implements {EvaService}
50
- */
51
- class GetData {
52
- constructor() {
53
- this.name = 'BI:GetData';
54
- this.path = '/api/bi/GetData';
55
- }
56
- }
57
- BI.GetData = GetData;
58
- /**
59
- * Retrieves the available labels across all loaded plugins, to be used in the `GetData` service `Labels` parameter array.
60
- *
61
- * @export
62
- * @class GetLabels
63
- * @implements {EvaService}
64
- */
65
- class GetLabels {
66
- constructor() {
67
- this.name = 'BI:GetLabels';
68
- this.path = '/api/bi/GetLabels';
69
- }
70
- }
71
- BI.GetLabels = GetLabels;
72
31
  /**
73
32
  * TODO: Needs documentation
74
33
  *
@@ -97,26 +56,6 @@ Optionally, you can supply the following parameters;
97
56
  }
98
57
  }
99
58
  BI.GetPopularProducts = GetPopularProducts;
100
- /**
101
- * Retrieves a list of stores the current user has the `ViewReports` rights for, nested in a BI-specific tree for use in the BI app. The response contains
102
- one root node, from which you can traverse its Children (and its Children.Children, and its... you get it).
103
-
104
- From outside in, these are the types you will *always* find: `Root` (5), `Country` (4), `Region` (3), `City` (2) and `Shop` (1).
105
-
106
- Note that when a user does not have rights on a specific level (e.g. you may see a Region, but not the Country above), this node will have ID `-1`
107
- and Name `Unknown`. Needless to point out, but note you cannot use the ID `-1` as a value for the `GetData` service `OrganizationUnitID` parameter.
108
- *
109
- * @export
110
- * @class GetStoresForUser
111
- * @implements {EvaService}
112
- */
113
- class GetStoresForUser {
114
- constructor() {
115
- this.name = 'BI:GetStoresForUser';
116
- this.path = '/api/bi/GetStoresForUser';
117
- }
118
- }
119
- BI.GetStoresForUser = GetStoresForUser;
120
59
  })(BI || (BI = {}));
121
60
 
122
61
  export { BI };
@@ -1 +1 @@
1
- {"version":3,"file":"eva-services-bi.es5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"eva-services-bi.es5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,131 +1,70 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.evaServicesBi = {}));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.evaServicesBi = {}));
5
5
  })(this, (function (exports) { 'use strict';
6
6
 
7
- exports.BI = void 0;
8
- (function (BI) {
9
- /**
10
- * Returns data that can be displayed as graphs in the frontend. This data is provided by an external system. When no external system is configured, mockdata will be returned.
11
- *
12
- * @export
13
- * @class GetCustomerCharts
14
- * @implements {EvaService}
15
- */
16
- class GetCustomerCharts {
17
- constructor() {
18
- this.name = 'BI:GetCustomerCharts';
19
- this.path = '/api/bi/GetCustomerCharts';
20
- }
21
- }
22
- BI.GetCustomerCharts = GetCustomerCharts;
23
- /**
24
- * TODO: Needs documentation
25
- *
26
- * @export
27
- * @class GetDailyStats
28
- * @implements {EvaService}
29
- */
30
- class GetDailyStats {
31
- constructor() {
32
- this.name = 'BI:GetDailyStats';
33
- this.path = '/api/bi/GetDailyStats';
34
- }
35
- }
36
- BI.GetDailyStats = GetDailyStats;
37
- /**
38
- * Gets BI data based on the given Labels.
7
+ exports.BI = void 0;
8
+ (function (BI) {
9
+ /**
10
+ * Returns data that can be displayed as graphs in the frontend. This data is provided by an external system. When no external system is configured, mockdata will be returned.
11
+ *
12
+ * @export
13
+ * @class GetCustomerCharts
14
+ * @implements {EvaService}
15
+ */
16
+ class GetCustomerCharts {
17
+ constructor() {
18
+ this.name = 'BI:GetCustomerCharts';
19
+ this.path = '/api/bi/GetCustomerCharts';
20
+ }
21
+ }
22
+ BI.GetCustomerCharts = GetCustomerCharts;
23
+ /**
24
+ * TODO: Needs documentation
25
+ *
26
+ * @export
27
+ * @class GetDailyStats
28
+ * @implements {EvaService}
29
+ */
30
+ class GetDailyStats {
31
+ constructor() {
32
+ this.name = 'BI:GetDailyStats';
33
+ this.path = '/api/bi/GetDailyStats';
34
+ }
35
+ }
36
+ BI.GetDailyStats = GetDailyStats;
37
+ /**
38
+ * TODO: Needs documentation
39
+ *
40
+ * @export
41
+ * @class GetOrderCounts
42
+ * @implements {EvaService}
43
+ */
44
+ class GetOrderCounts {
45
+ constructor() {
46
+ this.name = 'BI:GetOrderCounts';
47
+ this.path = '/api/bi/GetOrderCounts';
48
+ }
49
+ }
50
+ BI.GetOrderCounts = GetOrderCounts;
51
+ /**
52
+ * TODO: Needs documentation
53
+ *
54
+ * @export
55
+ * @class GetPopularProducts
56
+ * @implements {EvaService}
57
+ */
58
+ class GetPopularProducts {
59
+ constructor() {
60
+ this.name = 'BI:GetPopularProducts';
61
+ this.path = '/api/bi/GetPopularProducts';
62
+ }
63
+ }
64
+ BI.GetPopularProducts = GetPopularProducts;
65
+ })(exports.BI || (exports.BI = {}));
39
66
 
40
- * `OrganizationUnitID` is the organization unit you want data from; this may be a container unit or a shop alike
41
- * `Labels` define the data you want to retrieve; use `GetLabels` to find the available labels in this instance
42
- * `Timeframe` defines the range of dates you want to accumulate, where you have three options available;
43
- * A `Period` with a `Year` and then either a `Month` or a `Week` (ISO)
44
- * A `Range` with a `From` and `To` date and a `Grain` to define the amount of detail within this period
45
- * A `Date` for a single date point in time
46
-
47
- Optionally, you can supply the following parameters;
48
-
49
- * `Series` is an array where you can specify which `Series` to retrieve; current values include `Actual` and `LFL`
50
- * `GroupBy` defines the 'rotation' to view the data in; by default you'll see data per `Label`, but you can rotate for a ranking view using `OrganizationUnit` or a more detailed view using `Name`
51
- * `Mock` allows you to override the base `BI:Mock` setting to switch between mocked- and live data
52
- *
53
- * @export
54
- * @class GetData
55
- * @implements {EvaService}
56
- */
57
- class GetData {
58
- constructor() {
59
- this.name = 'BI:GetData';
60
- this.path = '/api/bi/GetData';
61
- }
62
- }
63
- BI.GetData = GetData;
64
- /**
65
- * Retrieves the available labels across all loaded plugins, to be used in the `GetData` service `Labels` parameter array.
66
- *
67
- * @export
68
- * @class GetLabels
69
- * @implements {EvaService}
70
- */
71
- class GetLabels {
72
- constructor() {
73
- this.name = 'BI:GetLabels';
74
- this.path = '/api/bi/GetLabels';
75
- }
76
- }
77
- BI.GetLabels = GetLabels;
78
- /**
79
- * TODO: Needs documentation
80
- *
81
- * @export
82
- * @class GetOrderCounts
83
- * @implements {EvaService}
84
- */
85
- class GetOrderCounts {
86
- constructor() {
87
- this.name = 'BI:GetOrderCounts';
88
- this.path = '/api/bi/GetOrderCounts';
89
- }
90
- }
91
- BI.GetOrderCounts = GetOrderCounts;
92
- /**
93
- * TODO: Needs documentation
94
- *
95
- * @export
96
- * @class GetPopularProducts
97
- * @implements {EvaService}
98
- */
99
- class GetPopularProducts {
100
- constructor() {
101
- this.name = 'BI:GetPopularProducts';
102
- this.path = '/api/bi/GetPopularProducts';
103
- }
104
- }
105
- BI.GetPopularProducts = GetPopularProducts;
106
- /**
107
- * Retrieves a list of stores the current user has the `ViewReports` rights for, nested in a BI-specific tree for use in the BI app. The response contains
108
- one root node, from which you can traverse its Children (and its Children.Children, and its... you get it).
109
-
110
- From outside in, these are the types you will *always* find: `Root` (5), `Country` (4), `Region` (3), `City` (2) and `Shop` (1).
111
-
112
- Note that when a user does not have rights on a specific level (e.g. you may see a Region, but not the Country above), this node will have ID `-1`
113
- and Name `Unknown`. Needless to point out, but note you cannot use the ID `-1` as a value for the `GetData` service `OrganizationUnitID` parameter.
114
- *
115
- * @export
116
- * @class GetStoresForUser
117
- * @implements {EvaService}
118
- */
119
- class GetStoresForUser {
120
- constructor() {
121
- this.name = 'BI:GetStoresForUser';
122
- this.path = '/api/bi/GetStoresForUser';
123
- }
124
- }
125
- BI.GetStoresForUser = GetStoresForUser;
126
- })(exports.BI || (exports.BI = {}));
127
-
128
- Object.defineProperty(exports, '__esModule', { value: true });
67
+ Object.defineProperty(exports, '__esModule', { value: true });
129
68
 
130
69
  }));
131
70
  //# sourceMappingURL=eva-services-bi.umd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"eva-services-bi.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"eva-services-bi.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@springtree/eva-services-bi",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "The EVA service repository for EVA.BI",
5
5
  "keywords": [],
6
6
  "author": "SpringTree <info@springtree.nl>",
@@ -33,5 +33,5 @@
33
33
  "peerDependencies": {
34
34
  "@springtree/eva-services-core": "^1.0.0"
35
35
  },
36
- "gitHead": "6424b18cbe6f14c3e21cb59971e8bf88d2c3f9e7"
36
+ "gitHead": "3e6cd1ee62ee080fb89788cdfcdcfb42a107c058"
37
37
  }