@epilot/metering-client 0.1.2 → 0.1.3

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":[]}],"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,24 @@ declare namespace Paths {
138
206
  }
139
207
  }
140
208
  }
209
+ namespace GetMeterCounters {
210
+ namespace Responses {
211
+ export interface $200 {
212
+ data?: Components.Schemas.MeterCounter[];
213
+ }
214
+ }
215
+ }
141
216
  namespace GetMeters {
142
217
  namespace Responses {
143
218
  export interface $200 {
144
- results?: Components.Schemas.Meter[];
145
- /**
146
- * example:
147
- * 20
148
- */
149
- hits?: number;
219
+ data?: Components.Schemas.Meter[];
150
220
  }
151
221
  }
152
222
  }
153
223
  namespace GetReadingsByInterval {
154
224
  namespace Parameters {
155
225
  export type CounterId = Components.Schemas.Id;
226
+ export type Direction = Components.Schemas.Direction;
156
227
  /**
157
228
  * example:
158
229
  * "2022-10-10T00:00:00.000Z"
@@ -180,6 +251,7 @@ declare namespace Paths {
180
251
  * "2022-10-10T00:00:00.000Z"
181
252
  */
182
253
  Parameters.EndDate;
254
+ direction?: Parameters.Direction;
183
255
  }
184
256
  namespace Responses {
185
257
  export interface $200 {
@@ -196,25 +268,35 @@ declare namespace Paths {
196
268
 
197
269
  export interface OperationMethods {
198
270
  /**
199
- * createBucket - createBucket
271
+ * getMeters - getMeters
200
272
  *
201
- * create a new bucket for an org in InfluxDB
273
+ * Get All meters for an Org
202
274
  */
203
- 'createBucket'(
275
+ 'getMeters'(
204
276
  parameters?: Parameters<UnknownParamsObject> | null,
205
277
  data?: any,
206
278
  config?: AxiosRequestConfig
207
- ): OperationResponse<Paths.CreateBucket.Responses.$200>
279
+ ): OperationResponse<Paths.GetMeters.Responses.$200>
208
280
  /**
209
- * getMeters - getMeters
281
+ * getMeterCounters - getMeterCounters
210
282
  *
211
- * Get All meters for an Org
283
+ * Get all counters for a given meter
212
284
  */
213
- 'getMeters'(
285
+ 'getMeterCounters'(
214
286
  parameters?: Parameters<UnknownParamsObject> | null,
215
287
  data?: any,
216
288
  config?: AxiosRequestConfig
217
- ): OperationResponse<Paths.GetMeters.Responses.$200>
289
+ ): OperationResponse<Paths.GetMeterCounters.Responses.$200>
290
+ /**
291
+ * getCounterDetails - getCounterDetails
292
+ *
293
+ * Get details for a meter counter
294
+ */
295
+ 'getCounterDetails'(
296
+ parameters?: Parameters<UnknownParamsObject> | null,
297
+ data?: any,
298
+ config?: AxiosRequestConfig
299
+ ): OperationResponse<Paths.GetCounterDetails.Responses.$200>
218
300
  /**
219
301
  * createMeterReading - createMeterReading
220
302
  *
@@ -225,6 +307,16 @@ export interface OperationMethods {
225
307
  data?: Paths.CreateMeterReading.RequestBody,
226
308
  config?: AxiosRequestConfig
227
309
  ): OperationResponse<Paths.CreateMeterReading.Responses.$200>
310
+ /**
311
+ * createMeterReadings - createMeterReadings
312
+ *
313
+ * This operation inserts a multiple meter readings at once, e.g; to submit bi-directional data (feed-in & feed-out) in a journey
314
+ */
315
+ 'createMeterReadings'(
316
+ parameters?: Parameters<UnknownParamsObject> | null,
317
+ data?: Paths.CreateMeterReadings.RequestBody,
318
+ config?: AxiosRequestConfig
319
+ ): OperationResponse<Paths.CreateMeterReadings.Responses.$200>
228
320
  /**
229
321
  * getReadingsByInterval - getReadingsByInterval
230
322
  *
@@ -254,29 +346,41 @@ export interface OperationMethods {
254
346
  }
255
347
 
256
348
  export interface PathsDictionary {
257
- ['/v1/metering/bucket']: {
349
+ ['/v1/metering/meter']: {
258
350
  /**
259
- * createBucket - createBucket
351
+ * getMeters - getMeters
260
352
  *
261
- * create a new bucket for an org in InfluxDB
353
+ * Get All meters for an Org
262
354
  */
263
- 'post'(
355
+ 'get'(
264
356
  parameters?: Parameters<UnknownParamsObject> | null,
265
357
  data?: any,
266
358
  config?: AxiosRequestConfig
267
- ): OperationResponse<Paths.CreateBucket.Responses.$200>
359
+ ): OperationResponse<Paths.GetMeters.Responses.$200>
268
360
  }
269
- ['/v1/metering/meter']: {
361
+ ['/v1/metering/counter']: {
270
362
  /**
271
- * getMeters - getMeters
363
+ * getMeterCounters - getMeterCounters
272
364
  *
273
- * Get All meters for an Org
365
+ * Get all counters for a given meter
274
366
  */
275
367
  'get'(
276
368
  parameters?: Parameters<UnknownParamsObject> | null,
277
369
  data?: any,
278
370
  config?: AxiosRequestConfig
279
- ): OperationResponse<Paths.GetMeters.Responses.$200>
371
+ ): OperationResponse<Paths.GetMeterCounters.Responses.$200>
372
+ }
373
+ ['/v1/metering/counter/{id}']: {
374
+ /**
375
+ * getCounterDetails - getCounterDetails
376
+ *
377
+ * Get details for a meter counter
378
+ */
379
+ 'get'(
380
+ parameters?: Parameters<UnknownParamsObject> | null,
381
+ data?: any,
382
+ config?: AxiosRequestConfig
383
+ ): OperationResponse<Paths.GetCounterDetails.Responses.$200>
280
384
  }
281
385
  ['/v1/metering/reading']: {
282
386
  /**
@@ -290,6 +394,18 @@ export interface PathsDictionary {
290
394
  config?: AxiosRequestConfig
291
395
  ): OperationResponse<Paths.CreateMeterReading.Responses.$200>
292
396
  }
397
+ ['/v1/metering/readings']: {
398
+ /**
399
+ * createMeterReadings - createMeterReadings
400
+ *
401
+ * This operation inserts a multiple meter readings at once, e.g; to submit bi-directional data (feed-in & feed-out) in a journey
402
+ */
403
+ 'post'(
404
+ parameters?: Parameters<UnknownParamsObject> | null,
405
+ data?: Paths.CreateMeterReadings.RequestBody,
406
+ config?: AxiosRequestConfig
407
+ ): OperationResponse<Paths.CreateMeterReadings.Responses.$200>
408
+ }
293
409
  ['/v1/metering/reading/{meter_id}/{counter_id}']: {
294
410
  /**
295
411
  * 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.3",
4
4
  "description": "API Client for epilot Metering API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",