@epilot/metering-client 0.1.2 → 0.1.4

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.
@@ -1 +1 @@
1
- !function(e,t){for(var r in t)e[r]=t[r];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(exports,(()=>{"use strict";var e={914:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(r(279));t.default=a.default},279:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"Metering API","version":"1.0.0"},"tags":[{"name":"Epilot_360","description":"Epilot_360"},{"name":"ECP","description":"End customer portal"}],"security":[{"EpilotAuth":[]},{"CustomerPortalAuth":[]}],"paths":{"/v1/metering/bucket":{"post":{"operationId":"createBucket","summary":"createBucket","description":"create a new bucket for an org in InfluxDB","tags":["Epilot_360"],"security":[{"EpilotAuth":[]}],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/metering/meter":{"get":{"operationId":"getMeters","summary":"getMeters","description":"Get All meters for an Org","tags":["Epilot_360","ECP"],"security":[{"EpilotAuth":[]},{"CustomerPortalAuth":[]}],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/Meter"}},"hits":{"type":"number","example":20}}}}}}}}},"/v1/metering/reading":{"post":{"operationId":"createMeterReading","summary":"createMeterReading","description":"This operation inserts a new meter reading","tags":["Epilot_360","ECP"],"security":[{"EpilotAuth":[]},{"CustomerPortalAuth":[]}],"requestBody":{"description":"Meter reading payload","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeterReading"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MeterReading"}}}}}}}}},"/v1/metering/reading/{meter_id}/{counter_id}":{"get":{"operationId":"getReadingsByInterval","summary":"getReadingsByInterval","description":"- Get all readings specified in an interval\\n- If the start_date & end_date are equal, then returns the readings of the specified date\\n- start_date should <= end_date\\n","tags":["Epilot_360","ECP"],"security":[{"EpilotAuth":[]},{"CustomerPortalAuth":[]}],"parameters":[{"in":"path","name":"meter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The Id of meter"},{"in":"path","name":"counter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The Id of counter"},{"in":"query","name":"start_date","required":true,"schema":{"type":"string","example":"2022-10-01T00:00:00.000Z"}},{"in":"query","name":"end_date","required":true,"schema":{"type":"string","example":"2022-10-10T00:00:00.000Z"}}],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/MeterReading"}},"hits":{"type":"number","example":120}}}}}}}}},"/v1/metering/down-sample/readings/{meter_id}/{counter_id}":{"get":{"operationId":"getDownSampleReadingsByInterval","summary":"getDownSampleReadingsByInterval","description":"- Get the down sampled data of the entire readings specified in an interval\\n- If the start_date & end_date are equal, then returns the readings of the specified date\\n- start_date should <= end_date\\n","tags":["Epilot_360","ECP"],"security":[{"EpilotAuth":[]},{"CustomerPortalAuth":[]}],"parameters":[{"in":"path","name":"meter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The Id of meter"},{"in":"path","name":"counter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The Id of counter"},{"in":"query","name":"start_date","required":true,"schema":{"type":"string","example":"2022-10-01T00:00:00.000Z"}},{"in":"query","name":"end_date","required":true,"schema":{"type":"string","example":"2022-10-10T00:00:00.000Z"}},{"in":"query","name":"unit","schema":{"type":"string","default":"day","enum":["day","week","month","year"]}}],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/MeterReading"}}}}}}}}}}},"components":{"securitySchemes":{"EpilotAuth":{"type":"http","scheme":"bearer","description":"Authorization header with epilot OAuth2 bearer token","bearerFormat":"JWT"},"CustomerPortalAuth":{"type":"http","scheme":"bearer","description":"Authorization header with customer pilot OAuth2 bearer token","bearerFormat":"JWT"}},"schemas":{"Id":{"type":"string"},"Entity":{"type":"object","properties":{},"additionalProperties":true},"Meter":{"type":"object","properties":{"ma_lo_id":{"type":"string","example":"A09-123"},"meter_type":{"type":"string","enum":["Three-phase meter","Bellow gas meter","Rotary piston meter","Smart meter","Performance meter","Maximum meter","Turbine gas meter","Ultrasonic gas meter","Alternating current meter","Modern metering system","Intelligent measuring system","Electronic meter"]},"tariff_type":{"type":"string","example":"Peak load tariff"},"meter_number":{"type":"string","example":"J-1093-1AK"},"sector":{"type":"string","enum":["Power","Water","Gas"]},"location":{"type":"string","example":"Berlin"},"used_for":{"type":"string","example":"Domestic Usage"},"manufacturer":{"type":"string","example":"Energy One"},"calibration_date":{"type":"string","example":"2022-10-10T00:00:00.000Z"},"contract":{"$ref":"#/components/schemas/Entity"},"billing_contact":{"$ref":"#/components/schemas/Entity"}}},"MeterReading":{"type":"object","properties":{"value":{"type":"number","example":240},"unit":{"type":"string","enum":["W","WH","KW","KWH","KVARH","MW","MWH","unit","cubic meter","hour","day","month","year","percentage"]},"read_by":{"type":"string","example":"John Doe"},"reason":{"type":"string","example":"Storing the feed-in record"},"meter_id":{"type":"string","example":"1446829f-4b6f-474e-b978-3997d89a7928"},"counter_id":{"type":"string","example":"2A-3"}}}}}}')}},t={};return function r(n){if(t[n])return t[n].exports;var a=t[n]={exports:{}};return e[n].call(a.exports,a,a.exports,r),a.exports}(914)})());
1
+ !function(e,t){for(var r in t)e[r]=t[r];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(exports,(()=>{"use strict";var e={914:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(r(279));t.default=a.default},279:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"Metering API","version":"1.0.0"},"tags":[{"name":"Epilot_360","description":"Epilot_360"},{"name":"ECP","description":"End customer portal"}],"security":[{"EpilotAuth":[]},{"CustomerPortalAuth":[]}],"paths":{"/v1/metering/meter":{"get":{"operationId":"getMeters","summary":"getMeters","description":"Get All meters for an Org","tags":["ECP"],"security":[{"CustomerPortalAuth":[]}],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Meter"}}}}}}}}}},"/v1/metering/counter":{"get":{"operationId":"getMeterCounters","summary":"getMeterCounters","description":"Get all counters for a given meter","tags":["ECP"],"security":[{"CustomerPortalAuth":[]}],"parameters":[{"in":"query","name":"meter_id","required":true,"schema":{"type":"string","example":"1446829f-4b6f-474e-b978-3997d89a7928"}}],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MeterCounter"}}}}}}}}}},"/v1/metering/counter/{id}":{"get":{"operationId":"getCounterDetails","summary":"getCounterDetails","description":"Get details for a meter counter","tags":["ECP"],"security":[{"CustomerPortalAuth":[]}],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MeterCounter"}}}}}}}}},"/v1/metering/reading":{"post":{"operationId":"createMeterReading","summary":"createMeterReading","description":"This operation inserts a new meter reading","tags":["Epilot_360","ECP"],"security":[{"EpilotAuth":[]},{"CustomerPortalAuth":[]}],"requestBody":{"description":"Meter reading payload","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeterReading"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MeterReading"}}}}}}}}},"/v1/metering/readings":{"post":{"operationId":"createMeterReadings","summary":"createMeterReadings","description":"This operation inserts a multiple meter readings at once, e.g; to submit bi-directional data (feed-in & feed-out) in a journey","tags":["Epilot_360","ECP"],"security":[{"EpilotAuth":[]},{"CustomerPortalAuth":[]}],"requestBody":{"description":"Meter readings payload","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"readings":{"type":"array","items":{"$ref":"#/components/schemas/MeterReading"}}}}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MeterReading"}}}}}}}}},"/v1/metering/reading/{meter_id}/{counter_id}":{"get":{"operationId":"getReadingsByInterval","summary":"getReadingsByInterval","description":"- Get all readings specified in an interval\\n- If the start_date & end_date are equal, then returns the readings of the specified date\\n- start_date should <= end_date\\n","tags":["Epilot_360"],"security":[{"EpilotAuth":[]}],"parameters":[{"in":"path","name":"meter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The Id of meter"},{"in":"path","name":"counter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The Id of counter"},{"in":"query","name":"start_date","required":true,"schema":{"type":"string","example":"2022-10-01T00:00:00.000Z"}},{"in":"query","name":"end_date","required":true,"schema":{"type":"string","example":"2022-10-10T00:00:00.000Z"}},{"in":"query","name":"direction","required":false,"schema":{"$ref":"#/components/schemas/Direction"}}],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/MeterReading"}},"hits":{"type":"number","example":120}}}}}}}}},"/v1/metering/down-sample/readings/{meter_id}/{counter_id}":{"get":{"operationId":"getDownSampleReadingsByInterval","summary":"getDownSampleReadingsByInterval","description":"- Get the down sampled data of the entire readings specified in an interval\\n- If the start_date & end_date are equal, then returns the readings of the specified date\\n- start_date should <= end_date\\n","tags":["Epilot_360","ECP"],"security":[{"EpilotAuth":[]},{"CustomerPortalAuth":[]}],"parameters":[{"in":"path","name":"meter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The Id of meter"},{"in":"path","name":"counter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The Id of counter"},{"in":"query","name":"start_date","required":true,"schema":{"type":"string","example":"2022-10-01T00:00:00.000Z"}},{"in":"query","name":"end_date","required":true,"schema":{"type":"string","example":"2022-10-10T00:00:00.000Z"}},{"in":"query","name":"group_by","schema":{"type":"string","default":"day","enum":["day","week","month","year"]}},{"in":"query","name":"direction","required":false,"schema":{"$ref":"#/components/schemas/Direction"}}],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/MeterReading"}}}}}}}}}}},"components":{"securitySchemes":{"EpilotAuth":{"type":"http","scheme":"bearer","description":"Authorization header with epilot OAuth2 bearer token","bearerFormat":"JWT"},"CustomerPortalAuth":{"type":"http","scheme":"bearer","description":"Authorization header with customer pilot OAuth2 bearer token","bearerFormat":"JWT"}},"schemas":{"Id":{"type":"string"},"EntityRelation":{"type":"object","properties":{"entity_id":{"type":"string","example":"9a2081a2-1615-44b8-b988-d757983290dd"},"_slug":{"type":"string","enum":["contact","contract"]}}},"Meter":{"type":"object","properties":{"ma_lo_id":{"type":"string","example":"A09-123"},"meter_type":{"type":"string","enum":["three-phase-meter","bellow-gas-meter","rotary-piston-meter","smart-meter","performance-meter","maximum-meter","turbine-gas-meter","ultrasonic-gas-meter","alternating-current-meter","modern-metering-system","intelligent-measuring-system","electronic-meter"]},"tariff_type":{"type":"string","example":"Peak load tariff"},"meter_number":{"type":"string","example":"J-1093-1AK"},"sector":{"type":"string","enum":["power","water","gas"]},"location":{"type":"object","example":[{"country":"Germany","city":"Koln","postal_code":81475,"street":"Melatengürtel","street_number":71,"additional_info":"5. Etage","_tags":["billing","delivery"]}]},"used_for":{"type":"string","example":"Domestic Usage"},"manufacturer":{"type":"string","example":"Energy One"},"calibration_date":{"type":"string","example":"2022-10-10T00:00:00.000Z"},"contract":{"type":"array","items":{"$ref":"#/components/schemas/EntityRelation"}},"billing_contact":{"type":"array","items":{"$ref":"#/components/schemas/EntityRelation"}}}},"Direction":{"type":"string","enum":["feed-in","feed-out"]},"MeterReading":{"type":"object","properties":{"value":{"type":"number","example":240},"read_by":{"type":"string","example":"John Doe"},"reason":{"type":"string","example":"Storing the feed-in record"},"meter_id":{"type":"string","example":"1446829f-4b6f-474e-b978-3997d89a7928"},"counter_id":{"type":"string","example":"A-34"},"direction":{"$ref":"#/components/schemas/Direction"}}},"MeterCounter":{"type":"object","properties":{"obis_number":{"type":"string","example":"A-34"},"direction":{"$ref":"#/components/schemas/Direction"},"transformer_ratio":{"type":"number","example":70},"unit":{"type":"string","enum":["w","wh","kw","kwh","kvarh","mw","mwh","unit","cubic-meter","hour","day","month","year","percentage"]},"forecast_reading_value":{"type":"string","example":270},"forecast_as_of":{"type":"string","example":"2022-12-10T00:00:00.000Z"},"current_consumption":{"type":"number","example":240},"conversion_factor":{"type":"number","example":3}}}}}}')}},t={};return function r(n){if(t[n])return t[n].exports;var a=t[n]={exports:{}};return e[n].call(a.exports,a,a.exports,r),a.exports}(914)})());
package/dist/openapi.d.ts CHANGED
@@ -9,8 +9,14 @@ import type {
9
9
 
10
10
  declare namespace Components {
11
11
  namespace Schemas {
12
- export interface Entity {
13
- [name: string]: any;
12
+ export type Direction = "feed-in" | "feed-out";
13
+ export interface EntityRelation {
14
+ /**
15
+ * example:
16
+ * 9a2081a2-1615-44b8-b988-d757983290dd
17
+ */
18
+ entity_id?: string;
19
+ _slug?: "contact" | "contract";
14
20
  }
15
21
  export type Id = string;
16
22
  export interface Meter {
@@ -19,7 +25,7 @@ declare namespace Components {
19
25
  * A09-123
20
26
  */
21
27
  ma_lo_id?: string;
22
- meter_type?: "Three-phase meter" | "Bellow gas meter" | "Rotary piston meter" | "Smart meter" | "Performance meter" | "Maximum meter" | "Turbine gas meter" | "Ultrasonic gas meter" | "Alternating current meter" | "Modern metering system" | "Intelligent measuring system" | "Electronic meter";
28
+ meter_type?: "three-phase-meter" | "bellow-gas-meter" | "rotary-piston-meter" | "smart-meter" | "performance-meter" | "maximum-meter" | "turbine-gas-meter" | "ultrasonic-gas-meter" | "alternating-current-meter" | "modern-metering-system" | "intelligent-measuring-system" | "electronic-meter";
23
29
  /**
24
30
  * example:
25
31
  * Peak load tariff
@@ -30,12 +36,27 @@ declare namespace Components {
30
36
  * J-1093-1AK
31
37
  */
32
38
  meter_number?: string;
33
- sector?: "Power" | "Water" | "Gas";
39
+ sector?: "power" | "water" | "gas";
34
40
  /**
35
41
  * example:
36
- * Berlin
42
+ * [
43
+ * {
44
+ * "country": "Germany",
45
+ * "city": "Koln",
46
+ * "postal_code": 81475,
47
+ * "street": "Melatengürtel",
48
+ * "street_number": 71,
49
+ * "additional_info": "5. Etage",
50
+ * "_tags": [
51
+ * "billing",
52
+ * "delivery"
53
+ * ]
54
+ * }
55
+ * ]
37
56
  */
38
- location?: string;
57
+ location?: {
58
+ [key: string]: any;
59
+ };
39
60
  /**
40
61
  * example:
41
62
  * Domestic Usage
@@ -51,8 +72,42 @@ declare namespace Components {
51
72
  * "2022-10-10T00:00:00.000Z"
52
73
  */
53
74
  calibration_date?: string;
54
- contract?: Entity;
55
- billing_contact?: Entity;
75
+ contract?: EntityRelation[];
76
+ billing_contact?: EntityRelation[];
77
+ }
78
+ export interface MeterCounter {
79
+ /**
80
+ * example:
81
+ * A-34
82
+ */
83
+ obis_number?: string;
84
+ direction?: Direction;
85
+ /**
86
+ * example:
87
+ * 70
88
+ */
89
+ transformer_ratio?: number;
90
+ unit?: "w" | "wh" | "kw" | "kwh" | "kvarh" | "mw" | "mwh" | "unit" | "cubic-meter" | "hour" | "day" | "month" | "year" | "percentage";
91
+ /**
92
+ * example:
93
+ * 270
94
+ */
95
+ forecast_reading_value?: string;
96
+ /**
97
+ * example:
98
+ * "2022-12-10T00:00:00.000Z"
99
+ */
100
+ forecast_as_of?: string;
101
+ /**
102
+ * example:
103
+ * 240
104
+ */
105
+ current_consumption?: number;
106
+ /**
107
+ * example:
108
+ * 3
109
+ */
110
+ conversion_factor?: number;
56
111
  }
57
112
  export interface MeterReading {
58
113
  /**
@@ -60,7 +115,6 @@ declare namespace Components {
60
115
  * 240
61
116
  */
62
117
  value?: number;
63
- unit?: "W" | "WH" | "KW" | "KWH" | "KVARH" | "MW" | "MWH" | "unit" | "cubic meter" | "hour" | "day" | "month" | "year" | "percentage";
64
118
  /**
65
119
  * example:
66
120
  * John Doe
@@ -78,42 +132,55 @@ declare namespace Components {
78
132
  meter_id?: string;
79
133
  /**
80
134
  * example:
81
- * 2A-3
135
+ * A-34
82
136
  */
83
137
  counter_id?: string;
138
+ direction?: Direction;
84
139
  }
85
140
  }
86
141
  }
87
142
  declare namespace Paths {
88
- namespace CreateBucket {
143
+ namespace CreateMeterReading {
144
+ export type RequestBody = Components.Schemas.MeterReading;
89
145
  namespace Responses {
90
146
  export interface $200 {
147
+ data?: Components.Schemas.MeterReading;
91
148
  }
92
149
  }
93
150
  }
94
- namespace CreateMeterReading {
95
- export type RequestBody = Components.Schemas.MeterReading;
151
+ namespace CreateMeterReadings {
152
+ export interface RequestBody {
153
+ readings?: Components.Schemas.MeterReading[];
154
+ }
96
155
  namespace Responses {
97
156
  export interface $200 {
98
157
  data?: Components.Schemas.MeterReading;
99
158
  }
100
159
  }
101
160
  }
161
+ namespace GetCounterDetails {
162
+ namespace Responses {
163
+ export interface $200 {
164
+ data?: Components.Schemas.MeterCounter;
165
+ }
166
+ }
167
+ }
102
168
  namespace GetDownSampleReadingsByInterval {
103
169
  namespace Parameters {
104
170
  export type CounterId = Components.Schemas.Id;
171
+ export type Direction = Components.Schemas.Direction;
105
172
  /**
106
173
  * example:
107
174
  * "2022-10-10T00:00:00.000Z"
108
175
  */
109
176
  export type EndDate = string;
177
+ export type GroupBy = "day" | "week" | "month" | "year";
110
178
  export type MeterId = Components.Schemas.Id;
111
179
  /**
112
180
  * example:
113
181
  * "2022-10-01T00:00:00.000Z"
114
182
  */
115
183
  export type StartDate = string;
116
- export type Unit = "day" | "week" | "month" | "year";
117
184
  }
118
185
  export interface PathParameters {
119
186
  meter_id: Parameters.MeterId;
@@ -130,7 +197,8 @@ declare namespace Paths {
130
197
  * "2022-10-10T00:00:00.000Z"
131
198
  */
132
199
  Parameters.EndDate;
133
- unit?: Parameters.Unit;
200
+ group_by?: Parameters.GroupBy;
201
+ direction?: Parameters.Direction;
134
202
  }
135
203
  namespace Responses {
136
204
  export interface $200 {
@@ -138,21 +206,38 @@ declare namespace Paths {
138
206
  }
139
207
  }
140
208
  }
209
+ namespace GetMeterCounters {
210
+ namespace Parameters {
211
+ /**
212
+ * example:
213
+ * 1446829f-4b6f-474e-b978-3997d89a7928
214
+ */
215
+ export type MeterId = string;
216
+ }
217
+ export interface QueryParameters {
218
+ meter_id: /**
219
+ * example:
220
+ * 1446829f-4b6f-474e-b978-3997d89a7928
221
+ */
222
+ Parameters.MeterId;
223
+ }
224
+ namespace Responses {
225
+ export interface $200 {
226
+ data?: Components.Schemas.MeterCounter[];
227
+ }
228
+ }
229
+ }
141
230
  namespace GetMeters {
142
231
  namespace Responses {
143
232
  export interface $200 {
144
- results?: Components.Schemas.Meter[];
145
- /**
146
- * example:
147
- * 20
148
- */
149
- hits?: number;
233
+ data?: Components.Schemas.Meter[];
150
234
  }
151
235
  }
152
236
  }
153
237
  namespace GetReadingsByInterval {
154
238
  namespace Parameters {
155
239
  export type CounterId = Components.Schemas.Id;
240
+ export type Direction = Components.Schemas.Direction;
156
241
  /**
157
242
  * example:
158
243
  * "2022-10-10T00:00:00.000Z"
@@ -180,6 +265,7 @@ declare namespace Paths {
180
265
  * "2022-10-10T00:00:00.000Z"
181
266
  */
182
267
  Parameters.EndDate;
268
+ direction?: Parameters.Direction;
183
269
  }
184
270
  namespace Responses {
185
271
  export interface $200 {
@@ -196,25 +282,35 @@ declare namespace Paths {
196
282
 
197
283
  export interface OperationMethods {
198
284
  /**
199
- * createBucket - createBucket
285
+ * getMeters - getMeters
200
286
  *
201
- * create a new bucket for an org in InfluxDB
287
+ * Get All meters for an Org
202
288
  */
203
- 'createBucket'(
289
+ 'getMeters'(
204
290
  parameters?: Parameters<UnknownParamsObject> | null,
205
291
  data?: any,
206
292
  config?: AxiosRequestConfig
207
- ): OperationResponse<Paths.CreateBucket.Responses.$200>
293
+ ): OperationResponse<Paths.GetMeters.Responses.$200>
208
294
  /**
209
- * getMeters - getMeters
295
+ * getMeterCounters - getMeterCounters
210
296
  *
211
- * Get All meters for an Org
297
+ * Get all counters for a given meter
212
298
  */
213
- 'getMeters'(
299
+ 'getMeterCounters'(
300
+ parameters?: Parameters<Paths.GetMeterCounters.QueryParameters> | null,
301
+ data?: any,
302
+ config?: AxiosRequestConfig
303
+ ): OperationResponse<Paths.GetMeterCounters.Responses.$200>
304
+ /**
305
+ * getCounterDetails - getCounterDetails
306
+ *
307
+ * Get details for a meter counter
308
+ */
309
+ 'getCounterDetails'(
214
310
  parameters?: Parameters<UnknownParamsObject> | null,
215
311
  data?: any,
216
312
  config?: AxiosRequestConfig
217
- ): OperationResponse<Paths.GetMeters.Responses.$200>
313
+ ): OperationResponse<Paths.GetCounterDetails.Responses.$200>
218
314
  /**
219
315
  * createMeterReading - createMeterReading
220
316
  *
@@ -225,6 +321,16 @@ export interface OperationMethods {
225
321
  data?: Paths.CreateMeterReading.RequestBody,
226
322
  config?: AxiosRequestConfig
227
323
  ): OperationResponse<Paths.CreateMeterReading.Responses.$200>
324
+ /**
325
+ * createMeterReadings - createMeterReadings
326
+ *
327
+ * This operation inserts a multiple meter readings at once, e.g; to submit bi-directional data (feed-in & feed-out) in a journey
328
+ */
329
+ 'createMeterReadings'(
330
+ parameters?: Parameters<UnknownParamsObject> | null,
331
+ data?: Paths.CreateMeterReadings.RequestBody,
332
+ config?: AxiosRequestConfig
333
+ ): OperationResponse<Paths.CreateMeterReadings.Responses.$200>
228
334
  /**
229
335
  * getReadingsByInterval - getReadingsByInterval
230
336
  *
@@ -254,29 +360,41 @@ export interface OperationMethods {
254
360
  }
255
361
 
256
362
  export interface PathsDictionary {
257
- ['/v1/metering/bucket']: {
363
+ ['/v1/metering/meter']: {
258
364
  /**
259
- * createBucket - createBucket
365
+ * getMeters - getMeters
260
366
  *
261
- * create a new bucket for an org in InfluxDB
367
+ * Get All meters for an Org
262
368
  */
263
- 'post'(
369
+ 'get'(
264
370
  parameters?: Parameters<UnknownParamsObject> | null,
265
371
  data?: any,
266
372
  config?: AxiosRequestConfig
267
- ): OperationResponse<Paths.CreateBucket.Responses.$200>
373
+ ): OperationResponse<Paths.GetMeters.Responses.$200>
268
374
  }
269
- ['/v1/metering/meter']: {
375
+ ['/v1/metering/counter']: {
270
376
  /**
271
- * getMeters - getMeters
377
+ * getMeterCounters - getMeterCounters
272
378
  *
273
- * Get All meters for an Org
379
+ * Get all counters for a given meter
380
+ */
381
+ 'get'(
382
+ parameters?: Parameters<Paths.GetMeterCounters.QueryParameters> | null,
383
+ data?: any,
384
+ config?: AxiosRequestConfig
385
+ ): OperationResponse<Paths.GetMeterCounters.Responses.$200>
386
+ }
387
+ ['/v1/metering/counter/{id}']: {
388
+ /**
389
+ * getCounterDetails - getCounterDetails
390
+ *
391
+ * Get details for a meter counter
274
392
  */
275
393
  'get'(
276
394
  parameters?: Parameters<UnknownParamsObject> | null,
277
395
  data?: any,
278
396
  config?: AxiosRequestConfig
279
- ): OperationResponse<Paths.GetMeters.Responses.$200>
397
+ ): OperationResponse<Paths.GetCounterDetails.Responses.$200>
280
398
  }
281
399
  ['/v1/metering/reading']: {
282
400
  /**
@@ -290,6 +408,18 @@ export interface PathsDictionary {
290
408
  config?: AxiosRequestConfig
291
409
  ): OperationResponse<Paths.CreateMeterReading.Responses.$200>
292
410
  }
411
+ ['/v1/metering/readings']: {
412
+ /**
413
+ * createMeterReadings - createMeterReadings
414
+ *
415
+ * This operation inserts a multiple meter readings at once, e.g; to submit bi-directional data (feed-in & feed-out) in a journey
416
+ */
417
+ 'post'(
418
+ parameters?: Parameters<UnknownParamsObject> | null,
419
+ data?: Paths.CreateMeterReadings.RequestBody,
420
+ config?: AxiosRequestConfig
421
+ ): OperationResponse<Paths.CreateMeterReadings.Responses.$200>
422
+ }
293
423
  ['/v1/metering/reading/{meter_id}/{counter_id}']: {
294
424
  /**
295
425
  * getReadingsByInterval - getReadingsByInterval
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/metering-client",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "API Client for epilot Metering API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",