@sentio/runtime 2.25.1 → 2.25.2-rc.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/runtime",
3
- "version": "2.25.1",
3
+ "version": "2.25.2-rc.2",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -30,10 +30,10 @@
30
30
  "protobufjs": "^7.2.5",
31
31
  "utility-types": "^3.10.0",
32
32
  "winston": "^3.10.0",
33
- "@sentio/protos": "2.25.1"
33
+ "@sentio/protos": "2.25.2-rc.2"
34
34
  },
35
35
  "peerDependencies": {
36
- "@sentio/sdk": "^2.25.1"
36
+ "@sentio/sdk": "^2.25.2-rc.2"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/command-line-args": "^5.2.0",
@@ -54,6 +54,10 @@ export function metricTypeToJSON(object: MetricType): string {
54
54
  export enum AggregationType {
55
55
  COUNT = 0,
56
56
  SUM = 1,
57
+ AVG = 2,
58
+ MIN = 3,
59
+ MAX = 4,
60
+ LAST = 5,
57
61
  UNRECOGNIZED = -1,
58
62
  }
59
63
 
@@ -65,6 +69,18 @@ export function aggregationTypeFromJSON(object: any): AggregationType {
65
69
  case 1:
66
70
  case "SUM":
67
71
  return AggregationType.SUM;
72
+ case 2:
73
+ case "AVG":
74
+ return AggregationType.AVG;
75
+ case 3:
76
+ case "MIN":
77
+ return AggregationType.MIN;
78
+ case 4:
79
+ case "MAX":
80
+ return AggregationType.MAX;
81
+ case 5:
82
+ case "LAST":
83
+ return AggregationType.LAST;
68
84
  case -1:
69
85
  case "UNRECOGNIZED":
70
86
  default:
@@ -78,6 +94,14 @@ export function aggregationTypeToJSON(object: AggregationType): string {
78
94
  return "COUNT";
79
95
  case AggregationType.SUM:
80
96
  return "SUM";
97
+ case AggregationType.AVG:
98
+ return "AVG";
99
+ case AggregationType.MIN:
100
+ return "MIN";
101
+ case AggregationType.MAX:
102
+ return "MAX";
103
+ case AggregationType.LAST:
104
+ return "LAST";
81
105
  case AggregationType.UNRECOGNIZED:
82
106
  default:
83
107
  return "UNRECOGNIZED";