Skip to content

Commit

Permalink
Chore: Batch write metering API upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumanth Kanakala committed Oct 29, 2024
1 parent 18eabec commit 9f88752
Show file tree
Hide file tree
Showing 5 changed files with 449 additions and 256 deletions.
4 changes: 2 additions & 2 deletions clients/metering-client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/metering-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epilot/metering-client",
"version": "0.6.1",
"version": "0.7.0",
"description": "API Client for epilot Metering API",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
94 changes: 52 additions & 42 deletions clients/metering-client/src/openapi-runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,28 @@
"responses": {}
}
},
"/v2/metering/readings": {
"post": {
"operationId": "batchWriteMeterReadings",
"parameters": [
{
"in": "query",
"name": "async",
"required": false
},
{
"$ref": "#/components/parameters/ActivityIdQueryParam"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {}
}
},
"responses": {}
}
},
"/v1/metering/reading/submission": {
"post": {
"operationId": "createMeterReadingFromSubmission",
Expand Down Expand Up @@ -255,48 +277,6 @@
],
"responses": {}
}
},
"/v1/metering/down-sample/readings/{meter_id}/{counter_id}": {
"get": {
"operationId": "getDownSampleReadingsByInterval",
"parameters": [
{
"in": "path",
"name": "meter_id",
"required": true
},
{
"in": "path",
"name": "counter_id",
"required": true
},
{
"in": "query",
"name": "start_date",
"required": false
},
{
"in": "query",
"name": "end_date",
"required": false
},
{
"in": "query",
"name": "group_by"
},
{
"in": "query",
"name": "direction",
"required": false
},
{
"in": "query",
"name": "sort",
"required": false
}
],
"responses": {}
}
}
},
"components": {
Expand Down Expand Up @@ -325,6 +305,36 @@
"content": {
"application/json": {}
}
},
"InvalidRequestUpdateMeter": {
"content": {
"application/json": {}
}
},
"InvalidRequestCreateMeterReading": {
"content": {
"application/json": {}
}
},
"InvalidRequestCreateMeterReadings": {
"content": {
"application/json": {}
}
},
"InvalidRequestCreateMeterReadingFromSubmission": {
"content": {
"application/json": {}
}
},
"InvalidRequestCreateReadingWithMeter": {
"content": {
"application/json": {}
}
},
"InvalidRequestUpdateMeterReading": {
"content": {
"application/json": {}
}
}
},
"parameters": {
Expand Down
Loading

0 comments on commit 9f88752

Please sign in to comment.