@epilot/metering-client 0.3.0 → 0.5.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/dist/definition.js +1 -1
- package/dist/openapi.d.ts +156 -8
- package/dist/openapi.json +194 -21
- package/package.json +5 -5
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={914:function(e,t,r){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(534));t.default=n.default},534:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"Metering API","version":"1.0.0"},"tags":[{"name":"ECP","description":"APIs defined for a portal user"},{"name":"ECP Admin","description":"APIs defined for a ECP Admin"}],"security":[{"EpilotAuth":[]},{"PortalAuth":[]}],"paths":{"/v1/metering/meter":{"get":{"operationId":"getCustomerMeters","summary":"Get Customer Meters","description":"Retrieves all meters related to a customer.","tags":["ECP"],"security":[{"PortalAuth":[]}],"responses":{"200":{"description":"Customer meters retrieved successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Meter"}}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/v1/metering/meter/{id}":{"patch":{"operationId":"updateMeter","summary":"Update Meter","description":"Updates the details of a meter.","tags":["ECP"],"security":[{"PortalAuth":[]}],"parameters":[{"in":"path","name":"id","schema":{"$ref":"#/components/schemas/EntityId"},"required":true,"description":"The ID of the meter."}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Entity"}}}},"responses":{"200":{"description":"Meter updated successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Meter"}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}},"get":{"operationId":"getMeter","summary":"Get Meter","description":"Retrieves the details of a meter.","tags":["ECP"],"security":[{"PortalAuth":[]}],"parameters":[{"in":"path","name":"id","schema":{"$ref":"#/components/schemas/EntityId"},"required":true,"description":"The ID of the meter."}],"responses":{"200":{"description":"Meter retrieved successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"entity":{"$ref":"#/components/schemas/Meter"},"relations":{"type":"array","items":{"$ref":"#/components/schemas/EntityItem"}}}}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/v1/metering/counter":{"get":{"operationId":"getMeterCounters","summary":"Get Meter Counters","description":"Retrieves all counters for a given meter.","tags":["ECP"],"security":[{"PortalAuth":[]}],"parameters":[{"in":"query","name":"meter_id","required":true,"schema":{"type":"string","example":"1446829f-4b6f-474e-b978-3997d89a7928"}}],"responses":{"200":{"description":"Counters retrieved successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MeterCounter"}}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/v1/metering/counter/{counter_id}":{"get":{"operationId":"getCounterDetails","summary":"Get Counter Details","description":"Retrieves the details of a meter counter.","tags":["ECP"],"security":[{"PortalAuth":[]}],"parameters":[{"in":"path","name":"counter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The ID of the counter."}],"responses":{"200":{"description":"Counter details retrieved successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MeterCounter"}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/v1/metering/reading":{"post":{"operationId":"createMeterReading","summary":"Create Meter Reading","description":"Inserts a new meter reading.","tags":["ECP Admin","ECP"],"security":[{"EpilotAuth":[]},{"PortalAuth":[]}],"requestBody":{"description":"Meter reading payload.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeterReading"}}}},"responses":{"200":{"description":"Meter reading created successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MeterReading"}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/v1/metering/readings":{"post":{"operationId":"createMeterReadings","summary":"Create Meter Readings","description":"Inserts multiple meter readings at once.","tags":["ECP Admin","ECP"],"security":[{"EpilotAuth":[]},{"PortalAuth":[]}],"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":"Meter readings created successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MeterReading"}}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/v1/metering/reading/submission":{"post":{"operationId":"createMeterReadingFromSubmission","summary":"Create Meter Reading from Submission","description":"Creates a reading from a journey submission.","tags":["ECP Admin"],"security":[{"EpilotAuth":[]}],"requestBody":{"description":"Meter reading payload.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionMeterReading"}}}},"responses":{"200":{"description":"Meter reading created successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","enum":["Successfully Processed"]}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/v1/metering/reading/with-meter":{"post":{"operationId":"createReadingWithMeter","summary":"Create Reading with Meter","description":"Creates a reading along with a meter.","tags":["ECP Admin"],"security":[{"EpilotAuth":[]}],"requestBody":{"description":"Meter reading payload.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingWithMeter"}}}},"responses":{"200":{"description":"Reading with meter created successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MeterReading"}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/v1/metering/reading/{meter_id}/{counter_id}":{"get":{"operationId":"getReadingsByInterval","summary":"Get Readings by Interval","description":"Retrieves all readings specified in an interval.\\nIf the start_date and end_date are equal, then it returns the readings of the specified date.\\nThe start_date should be less than or equal to the end_date.\\n","tags":["ECP Admin","ECP"],"security":[{"EpilotAuth":[]},{"PortalAuth":[]}],"parameters":[{"in":"path","name":"meter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The ID of the meter."},{"in":"path","name":"counter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The ID of the counter."},{"in":"query","name":"start_date","required":false,"description":"If not provided, the system will default to 2000-01-01.","schema":{"type":"string","example":"2022-10-01"}},{"in":"query","name":"end_date","required":false,"description":"If not provided, the system will default to today\'s date.","schema":{"type":"string","example":"2022-10-10"}},{"in":"query","name":"direction","required":false,"schema":{"$ref":"#/components/schemas/Direction"}},{"in":"query","name":"size","description":"Returns the first n results after the specified offset (from).\\nIf this value is provided as -1, then it returns all results at once.\\n","required":false,"schema":{"type":"number","example":20,"default":20}},{"in":"query","name":"from","required":false,"schema":{"type":"number","example":0,"default":0}},{"in":"query","name":"type","required":true,"description":"Since meter readings are cumulative, users may need to request actual consumptions, which are the difference between consecutive measurements.\\nIf this value is provided as \\"cumulative\\", then actual readings will be returned.\\nIf this value is provided as \\"relative\\", then actual consumption will be returned.\\n","schema":{"type":"string","default":"cumulative","enum":["cumulative","relative"]}}],"responses":{"200":{"description":"Readings retrieved successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/MeterReading"}},"hits":{"type":"number","example":120},"firstRecordCreatedAt":{"type":"string","example":"2022-10-01T20:00:00.000Z"}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}},"put":{"operationId":"updateMeterReading","summary":"Update Meter Reading","description":"Updates a meter reading.","tags":["ECP Admin"],"security":[{"EpilotAuth":[]}],"parameters":[{"in":"path","name":"meter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The ID of the meter entity."},{"in":"path","name":"counter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The ID of the counter entity."},{"in":"query","name":"timestamp","required":true,"description":"The timestamp when the reading was created.","schema":{"type":"string","example":"2022-10-01T20:00:00.000Z"}}],"requestBody":{"description":"Update meter reading payload.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeterReading"}}}},"responses":{"200":{"description":"Meter reading updated successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MeterReading"}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}},"delete":{"operationId":"deleteMeterReading","summary":"Delete Meter Reading","description":"Deletes a meter reading.","tags":["ECP Admin"],"security":[{"EpilotAuth":[]}],"parameters":[{"in":"path","name":"meter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The ID of the meter entity."},{"in":"path","name":"counter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The ID of the counter entity."},{"in":"query","name":"timestamp","required":true,"description":"The timestamp when the reading was created.","schema":{"type":"string","example":"2022-10-01T20:00:00.000Z"}}],"responses":{"200":{"description":"Meter reading deleted successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"meterId":{"$ref":"#/components/schemas/Id"},"counterId":{"$ref":"#/components/schemas/Id"},"timestamp":{"type":"string","example":"2022-10-01T20:00:00.000Z"}}}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/v1/metering/down-sample/readings/{meter_id}/{counter_id}":{"get":{"operationId":"getDownSampleReadingsByInterval","summary":"Get Down Sample Readings by Interval","description":"Retrieves the downsampled data of the entire readings specified in an interval.\\nIf the start_date and end_date are equal, then it returns the readings of the specified date.\\nThe start_date should be less than or equal to the end_date.\\n","tags":["ECP Admin","ECP"],"security":[{"EpilotAuth":[]},{"PortalAuth":[]}],"parameters":[{"in":"path","name":"meter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The ID of the meter."},{"in":"path","name":"counter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The ID of the counter."},{"in":"query","name":"start_date","required":false,"description":"If not provided, the system will default to 2000-01-01.","schema":{"type":"string","example":"2022-10-01"}},{"in":"query","name":"end_date","required":false,"description":"If not provided, the system will default to today\'s date.","schema":{"type":"string","example":"2022-10-10"}},{"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":"Downsampled readings retrieved successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MeterReading"}}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}}},"components":{"responses":{"InvalidRequest":{"description":"The request could not be validated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResp"}}}},"Unauthorized":{"description":"Could not authenticate the user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResp"}}}},"Forbidden":{"description":"The user is not allowed to access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResp"}}}},"NotFound":{"description":"The specified resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResp"}}}},"InternalServerError":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResp"}}}}},"securitySchemes":{"EpilotAuth":{"type":"http","scheme":"bearer","description":"Authorization header with ePilot OAuth2 bearer token","bearerFormat":"JWT"},"PortalAuth":{"type":"http","scheme":"bearer","description":"Authorization header with customer portal OAuth2 bearer token","bearerFormat":"JWT"}},"schemas":{"ErrorResp":{"type":"object","properties":{"message":{"type":"string","description":"Error message"}}},"EntityId":{"type":"string"},"EntitySlug":{"description":"URL-friendly identifier for the entity schema","type":"string","example":"contact"},"BaseEntity":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/EntityId","description":"Entity ID","example":"3fa85f64-5717-4562-b3fc-2c963f66afa6"},"_title":{"type":"string","description":"Title of the entity","example":"Example Entity"},"_org":{"type":"string","description":"Organization ID the entity belongs to","example":"123"},"_tags":{"type":"array","items":{"type":"string"},"description":"Array of entity tags","example":["example","mock"]},"_created_at":{"type":"string","format":"date-time","description":"Creation timestamp of the entity","example":"2021-02-09T12:41:43.662Z"},"_updated_at":{"type":"string","format":"date-time","description":"Last update timestamp of the entity","example":"2021-02-09T12:41:43.662Z"}},"required":["_id","_title","_org","_created_at","_updated_at"]},"Entity":{"type":"object","properties":{},"additionalProperties":true},"EntityItem":{"allOf":[{"$ref":"#/components/schemas/BaseEntity"},{"$ref":"#/components/schemas/Entity"}]},"Id":{"type":"string"},"EntityRelation":{"type":"object","properties":{"entity_id":{"type":"string","example":"9a2081a2-1615-44b8-b988-d757983290dd"},"_slug":{"type":"string","enum":["contact","contract"]}}},"Meter":{"allOf":[{"$ref":"#/components/schemas/BaseEntity"},{"type":"object","required":["_schema"],"properties":{"_schema":{"type":"string","enum":["meter"],"description":"The schema type of the meter"},"ma_lo_id":{"type":"string","example":"A09-123","description":"The MA-LO ID of the meter"},"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"],"description":"The type of the meter"},"tariff_type":{"type":"string","example":"Peak load tariff","description":"The tariff type of the meter"},"meter_number":{"type":"string","example":"J-1093-1AK","description":"The number of the meter"},"sector":{"type":"string","enum":["power","water","gas"],"description":"The sector to which the meter belongs"},"location":{"type":"object","example":[{"country":"Germany","city":"Koln","postal_code":81475,"street":"Melatengürtel","street_number":71,"additional_info":"5. Etage","_tags":["billing","delivery"]}],"description":"The location information of the meter"},"used_for":{"type":"string","example":"Domestic Usage","description":"The usage purpose of the meter"},"manufacturer":{"type":"string","example":"Energy One","description":"The manufacturer of the meter"},"calibration_date":{"type":"string","example":"2022-10-10T00:00:00.000Z","description":"The calibration date of the meter"},"contract":{"type":"object","properties":{"$relation":{"type":"array","items":{"$ref":"#/components/schemas/EntityRelation"}}},"description":"The contract associated with the meter"},"customer":{"type":"object","properties":{"$relation":{"type":"array","items":{"$ref":"#/components/schemas/EntityRelation"}}},"description":"The customer associated with the meter"}}}]},"Direction":{"type":"string","enum":["feed-in","feed-out"]},"TariffType":{"type":"string","enum":["ht","nt"]},"ReadingStatus":{"type":"string","enum":["valid","in-validation","implausible"]},"MeterReading":{"type":"object","required":["value","meter_id","source"],"properties":{"value":{"type":"number","example":240,"description":"The reading value of the meter"},"read_by":{"type":"string","example":"John Doe","description":"The person who recorded the reading"},"reason":{"type":"string","example":"Storing the feed-in record","description":"The reason for recording the reading"},"meter_id":{"type":"string","example":"1446829f-4b6f-474e-b978-3997d89a7928","description":"The ID of the associated meter"},"counter_id":{"type":"string","example":"991a1821-43bc-46b8-967d-64a3d87c31f8","description":"The ID of the associated meter counter"},"direction":{"$ref":"#/components/schemas/Direction","description":"The direction of the reading (feed-in or feed-out)"},"timestamp":{"type":"string","description":"If the value is not provided, the system will be set with the time the request is processed.","example":"2022-10-10T00:00:00.000Z"},"source":{"$ref":"#/components/schemas/Source","description":"The source of the reading"},"status":{"$ref":"#/components/schemas/ReadingStatus","description":"The status of the reading"},"minNextReadingValue":{"type":"number","example":250,"description":"The minimum value for the next reading"},"maxNextReadingValue":{"type":"number","example":260,"description":"The maximum value for the next reading"}}},"MeterCounter":{"allOf":[{"$ref":"#/components/schemas/BaseEntity"},{"type":"object","required":["_schema"],"properties":{"_id":{"type":"string","example":"991a1821-43bc-46b8-967d-64a3d87c31f8"},"_schema":{"type":"string","enum":["meter_counter"]},"obis_number":{"type":"string","example":"A-34","description":"The OBIS number of the meter counter"},"direction":{"$ref":"#/components/schemas/Direction","description":"The direction of the meter counter"},"transformer_ratio":{"type":"number","example":70,"description":"The transformer ratio of the meter counter"},"unit":{"$ref":"#/components/schemas/Unit","description":"The unit of measurement for the meter counter"},"forecast_reading_value":{"type":"string","example":270,"description":"The forecast reading value of the meter counter"},"forecast_as_of":{"type":"string","example":"2022-12-10T00:00:00.000Z","description":"The date as of which the forecast reading value is applicable"},"current_consumption":{"type":"number","example":240,"description":"The current consumption value of the meter counter"},"last_reading":{"type":"string","example":"2022-10-10T00:00:00.000Z","description":"The timestamp of the last reading"},"conversion_factor":{"type":"number","example":3,"description":"The conversion factor for the meter counter"},"tariff_type":{"$ref":"#/components/schemas/TariffType","description":"The tariff type of the meter counter"}}}]},"SubmissionMeterReading":{"type":"object","properties":{},"additionalProperties":true},"Unit":{"type":"string","enum":["w","wh","kw","kWh","kvarh","mw","mWh","unit","cubic-meter","hour","day","month","year","percentage"]},"Source":{"type":"string","enum":["ECP","ERP","360","journey-submission"]},"ReadingWithMeter":{"type":"object","properties":{"ma_lo_id":{"type":"string","example":"A09-123","description":"The MA-LO ID of the meter"},"meter_id":{"$ref":"#/components/schemas/Id","description":"The ID of the associated meter"},"obis_number":{"type":"string","example":"A-34","description":"The OBIS number of the meter counter"},"unit":{"$ref":"#/components/schemas/Unit","description":"The unit of measurement for the reading"},"direction":{"$ref":"#/components/schemas/Direction","description":"The direction of the reading"},"tariff_type":{"$ref":"#/components/schemas/TariffType","description":"The tariff type of the reading"},"value":{"type":"number","example":240,"description":"The reading value"},"read_by":{"type":"string","example":"John Doe","description":"The person who recorded the reading"},"reason":{"type":"string","example":"Storing the feed-in record","description":"The reason for recording the reading"},"timestamp":{"type":"string","description":"If the value is not provided, the system will be set with the time the request is processed.","example":"2022-10-10T10:10:00.000Z"},"source":{"$ref":"#/components/schemas/Source","description":"The source of the reading"}}}}},"servers":[{"url":"https://metering.sls.epilot.io"},{"url":"https://metering.sls.epilot.io"}]}')}},t={},r=function r(s){var n=t[s];if(void 0!==n)return n.exports;var o=t[s]={exports:{}};return e[s].call(o.exports,o,o.exports,r),o.exports}(914),s=exports;for(var n in r)s[n]=r[n];r.__esModule&&Object.defineProperty(s,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"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 s=n(r(534));t.default=s.default},534:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"Metering API","version":"1.0.0"},"tags":[{"name":"ECP","description":"APIs defined for a portal user"},{"name":"ECP Admin","description":"APIs defined for a ECP Admin"}],"security":[{"EpilotAuth":[]},{"PortalAuth":[]}],"paths":{"/v1/metering/meter":{"get":{"operationId":"getCustomerMeters","summary":"Get Customer Meters","description":"Retrieves all meters related to a customer.","tags":["ECP"],"security":[{"PortalAuth":[]}],"responses":{"200":{"description":"Customer meters retrieved successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Meter"}}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/v1/metering/contract/meters/{contract_id}":{"get":{"operationId":"getMetersByContractId","summary":"getMetersByContractId","description":"Retrieves all meters related to a contract.","tags":["ECP"],"security":[{"PortalAuth":[]}],"parameters":[{"in":"path","name":"contract_id","schema":{"$ref":"#/components/schemas/EntityId"},"required":true,"description":"The ID of the Contract."}],"responses":{"200":{"description":"Meters related to the contract retrieved successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Meter"}}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/v1/metering/meter/{id}":{"patch":{"operationId":"updateMeter","summary":"Update Meter","description":"Updates the details of a meter.","tags":["ECP"],"security":[{"PortalAuth":[]}],"parameters":[{"in":"path","name":"id","schema":{"$ref":"#/components/schemas/EntityId"},"required":true,"description":"The ID of the meter."}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Entity"}}}},"responses":{"200":{"description":"Meter updated successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Meter"}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}},"get":{"operationId":"getMeter","summary":"Get Meter","description":"Retrieves the details of a meter.","tags":["ECP"],"security":[{"PortalAuth":[]}],"parameters":[{"in":"path","name":"id","schema":{"$ref":"#/components/schemas/EntityId"},"required":true,"description":"The ID of the meter."}],"responses":{"200":{"description":"Meter retrieved successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"entity":{"$ref":"#/components/schemas/Meter"},"relations":{"type":"array","items":{"$ref":"#/components/schemas/EntityItem"}}}}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/v1/metering/counter":{"get":{"operationId":"getMeterCounters","summary":"Get Meter Counters","description":"Retrieves all counters for a given meter.","tags":["ECP"],"security":[{"PortalAuth":[]}],"parameters":[{"in":"query","name":"meter_id","required":true,"schema":{"type":"string","example":"1446829f-4b6f-474e-b978-3997d89a7928"}}],"responses":{"200":{"description":"Counters retrieved successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MeterCounter"}}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/v1/metering/counter/{counter_id}":{"get":{"operationId":"getCounterDetails","summary":"Get Counter Details","description":"Retrieves the details of a meter counter.","tags":["ECP"],"security":[{"PortalAuth":[]}],"parameters":[{"in":"path","name":"counter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The ID of the counter."}],"responses":{"200":{"description":"Counter details retrieved successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MeterCounter"}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/v1/metering/reading":{"post":{"operationId":"createMeterReading","summary":"Create Meter Reading","description":"Inserts a new meter reading.","tags":["ECP Admin","ECP"],"security":[{"EpilotAuth":[]},{"PortalAuth":[]}],"requestBody":{"description":"Meter reading payload.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeterReading"}}}},"responses":{"200":{"description":"Meter reading created successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MeterReading"}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/v1/metering/readings":{"post":{"operationId":"createMeterReadings","summary":"Create Meter Readings","description":"Inserts multiple meter readings at once.","tags":["ECP Admin","ECP"],"security":[{"EpilotAuth":[]},{"PortalAuth":[]}],"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":"Meter readings created successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MeterReading"}}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/v1/metering/reading/submission":{"post":{"operationId":"createMeterReadingFromSubmission","summary":"Create Meter Reading from Submission","description":"Creates a reading from a journey submission.","tags":["ECP Admin"],"security":[{"EpilotAuth":[]}],"requestBody":{"description":"Meter reading payload.","required":true,"content":{"application/json":{"schema":{"type":"object","required":["entity"],"additionalProperties":true,"properties":{"org_id":{"type":"string","example":"123","description":"ID of the organization"},"entity":{"type":"object","required":["meterReadings"],"additionalProperties":true,"properties":{"_org":{"type":"string","example":"123","description":"ID of the organization"},"meterReadings":{"type":"array","items":{"$ref":"#/components/schemas/SubmissionMeterReading"}}}}}}}}},"responses":{"200":{"description":"Meter reading created successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","enum":["Successfully Processed"]}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/v1/metering/reading/with-meter":{"post":{"operationId":"createReadingWithMeter","summary":"Create Reading with Meter","description":"Creates a reading along with a meter.","tags":["ECP Admin"],"security":[{"EpilotAuth":[]}],"requestBody":{"description":"Meter reading payload.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadingWithMeter"}}}},"responses":{"200":{"description":"Reading with meter created successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MeterReading"}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/v1/metering/reading/{meter_id}/{counter_id}":{"get":{"operationId":"getReadingsByInterval","summary":"Get Readings by Interval","description":"Retrieves all readings specified in an interval.\\nIf the start_date and end_date are equal, then it returns the readings of the specified date.\\nThe start_date should be less than or equal to the end_date.\\n","tags":["ECP Admin","ECP"],"security":[{"EpilotAuth":[]},{"PortalAuth":[]}],"parameters":[{"in":"path","name":"meter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The ID of the meter."},{"in":"path","name":"counter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The ID of the counter."},{"in":"query","name":"start_date","required":false,"description":"If not provided, the system will default to 2000-01-01.","schema":{"type":"string","example":"2022-10-01"}},{"in":"query","name":"end_date","required":false,"description":"If not provided, the system will default to today\'s date.","schema":{"type":"string","example":"2022-10-10"}},{"in":"query","name":"direction","required":false,"schema":{"$ref":"#/components/schemas/Direction"}},{"in":"query","name":"size","description":"Returns the first n results after the specified offset (from).\\nIf this value is provided as -1, then it returns all results at once.\\n","required":false,"schema":{"type":"number","example":20,"default":20}},{"in":"query","name":"from","required":false,"schema":{"type":"number","example":0,"default":0}},{"in":"query","name":"type","required":true,"description":"Since meter readings are cumulative, users may need to request actual consumptions, which are the difference between consecutive measurements.\\nIf this value is provided as \\"cumulative\\", then actual readings will be returned.\\nIf this value is provided as \\"relative\\", then actual consumption will be returned.\\n","schema":{"type":"string","default":"cumulative","enum":["cumulative","relative"]}}],"responses":{"200":{"description":"Readings retrieved successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/MeterReading"}},"hits":{"type":"number","example":120},"firstRecordCreatedAt":{"type":"string","example":"2022-10-01T20:00:00.000Z"}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}},"put":{"operationId":"updateMeterReading","summary":"Update Meter Reading","description":"Updates a meter reading.","tags":["ECP Admin"],"security":[{"EpilotAuth":[]}],"parameters":[{"in":"path","name":"meter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The ID of the meter entity."},{"in":"path","name":"counter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The ID of the counter entity."},{"in":"query","name":"timestamp","required":true,"description":"The timestamp when the reading was created.","schema":{"type":"string","example":"2022-10-01T20:00:00.000Z"}}],"requestBody":{"description":"Update meter reading payload.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeterReading"}}}},"responses":{"200":{"description":"Meter reading updated successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MeterReading"}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}},"delete":{"operationId":"deleteMeterReading","summary":"Delete Meter Reading","description":"Deletes a meter reading.","tags":["ECP Admin"],"security":[{"EpilotAuth":[]}],"parameters":[{"in":"path","name":"meter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The ID of the meter entity."},{"in":"path","name":"counter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The ID of the counter entity."},{"in":"query","name":"timestamp","required":true,"description":"The timestamp when the reading was created.","schema":{"type":"string","example":"2022-10-01T20:00:00.000Z"}}],"responses":{"200":{"description":"Meter reading deleted successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"meterId":{"$ref":"#/components/schemas/Id"},"counterId":{"$ref":"#/components/schemas/Id"},"timestamp":{"type":"string","example":"2022-10-01T20:00:00.000Z"}}}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/v1/metering/down-sample/readings/{meter_id}/{counter_id}":{"get":{"operationId":"getDownSampleReadingsByInterval","summary":"Get Down Sample Readings by Interval","description":"Retrieves the downsampled data of the entire readings specified in an interval.\\nIf the start_date and end_date are equal, then it returns the readings of the specified date.\\nThe start_date should be less than or equal to the end_date.\\n","tags":["ECP Admin","ECP"],"security":[{"EpilotAuth":[]},{"PortalAuth":[]}],"parameters":[{"in":"path","name":"meter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The ID of the meter."},{"in":"path","name":"counter_id","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"The ID of the counter."},{"in":"query","name":"start_date","required":false,"description":"If not provided, the system will default to 2000-01-01.","schema":{"type":"string","example":"2022-10-01"}},{"in":"query","name":"end_date","required":false,"description":"If not provided, the system will default to today\'s date.","schema":{"type":"string","example":"2022-10-10"}},{"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":"Downsampled readings retrieved successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MeterReading"}}}}}}},"400":{"$ref":"#/components/responses/InvalidRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}}}}},"components":{"responses":{"InvalidRequest":{"description":"The request could not be validated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResp"}}}},"Unauthorized":{"description":"Could not authenticate the user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResp"}}}},"Forbidden":{"description":"The user is not allowed to access this resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResp"}}}},"InternalServerError":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResp"}}}}},"securitySchemes":{"EpilotAuth":{"type":"http","scheme":"bearer","description":"Authorization header with ePilot OAuth2 bearer token","bearerFormat":"JWT"},"PortalAuth":{"type":"http","scheme":"bearer","description":"Authorization header with customer portal OAuth2 bearer token","bearerFormat":"JWT"}},"schemas":{"ErrorResp":{"type":"object","properties":{"message":{"type":"string","description":"Error message"}}},"EntityId":{"type":"string"},"BaseEntity":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/EntityId","description":"Entity ID","example":"3fa85f64-5717-4562-b3fc-2c963f66afa6"},"_title":{"type":"string","description":"Title of the entity","example":"Example Entity"},"_org":{"type":"string","description":"Organization ID the entity belongs to","example":"123"},"_tags":{"type":"array","items":{"type":"string"},"description":"Array of entity tags","example":["example","mock"]},"_created_at":{"type":"string","format":"date-time","description":"Creation timestamp of the entity","example":"2021-02-09T12:41:43.662Z"},"_updated_at":{"type":"string","format":"date-time","description":"Last update timestamp of the entity","example":"2021-02-09T12:41:43.662Z"}},"required":["_id","_title","_org","_created_at","_updated_at"]},"Entity":{"type":"object","properties":{},"additionalProperties":true},"EntityItem":{"allOf":[{"$ref":"#/components/schemas/BaseEntity"},{"$ref":"#/components/schemas/Entity"}]},"Id":{"type":"string"},"EntityRelation":{"type":"object","properties":{"entity_id":{"type":"string","example":"9a2081a2-1615-44b8-b988-d757983290dd"},"_slug":{"type":"string","enum":["contact","contract"]}}},"Meter":{"allOf":[{"$ref":"#/components/schemas/BaseEntity"},{"type":"object","required":["_schema"],"properties":{"_schema":{"type":"string","enum":["meter"],"description":"The schema type of the meter"},"ma_lo_id":{"type":"string","example":"A09-123","description":"The MA-LO ID of the meter"},"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"],"description":"The type of the meter"},"tariff_type":{"type":"string","example":"Peak load tariff","description":"The tariff type of the meter"},"meter_number":{"type":"string","example":"J-1093-1AK","description":"The number of the meter"},"sector":{"type":"string","enum":["power","water","gas"],"description":"The sector to which the meter belongs"},"location":{"type":"object","example":[{"country":"Germany","city":"Koln","postal_code":81475,"street":"Melatengürtel","street_number":71,"additional_info":"5. Etage","_tags":["billing","delivery"]}],"description":"The location information of the meter"},"used_for":{"type":"string","example":"Domestic Usage","description":"The usage purpose of the meter"},"manufacturer":{"type":"string","example":"Energy One","description":"The manufacturer of the meter"},"calibration_date":{"type":"string","example":"2022-10-10T00:00:00.000Z","description":"The calibration date of the meter"},"contract":{"type":"object","properties":{"$relation":{"type":"array","items":{"$ref":"#/components/schemas/EntityRelation"}}},"description":"The contract associated with the meter"},"customer":{"type":"object","properties":{"$relation":{"type":"array","items":{"$ref":"#/components/schemas/EntityRelation"}}},"description":"The customer associated with the meter"}}}]},"Direction":{"type":"string","enum":["feed-in","feed-out"]},"TariffType":{"type":"string","enum":["ht","nt"]},"ReadingStatus":{"type":"string","enum":["valid","in-validation","implausible"]},"MeterReading":{"type":"object","required":["value","meter_id","source"],"properties":{"value":{"type":"number","example":240,"description":"The reading value of the meter"},"read_by":{"type":"string","example":"John Doe","description":"The person who recorded the reading"},"reason":{"type":"string","example":"Storing the feed-in record","description":"The reason for recording the reading"},"meter_id":{"type":"string","example":"1446829f-4b6f-474e-b978-3997d89a7928","description":"The ID of the associated meter"},"counter_id":{"type":"string","example":"991a1821-43bc-46b8-967d-64a3d87c31f8","description":"The ID of the associated meter counter"},"direction":{"$ref":"#/components/schemas/Direction","description":"The direction of the reading (feed-in or feed-out)"},"timestamp":{"type":"string","description":"If the value is not provided, the system will be set with the time the request is processed.","example":"2022-10-10T00:00:00.000Z"},"source":{"$ref":"#/components/schemas/Source","description":"The source of the reading"},"status":{"$ref":"#/components/schemas/ReadingStatus","description":"The status of the reading"},"minNextReadingValue":{"type":"number","example":250,"description":"The minimum value for the next reading"},"maxNextReadingValue":{"type":"number","example":260,"description":"The maximum value for the next reading"}}},"MeterCounter":{"allOf":[{"$ref":"#/components/schemas/BaseEntity"},{"type":"object","required":["_schema"],"properties":{"_id":{"type":"string","example":"991a1821-43bc-46b8-967d-64a3d87c31f8"},"_schema":{"type":"string","enum":["meter_counter"]},"obis_number":{"type":"string","example":"A-34","description":"The OBIS number of the meter counter"},"direction":{"$ref":"#/components/schemas/Direction","description":"The direction of the meter counter"},"transformer_ratio":{"type":"number","example":70,"description":"The transformer ratio of the meter counter"},"unit":{"$ref":"#/components/schemas/Unit","description":"The unit of measurement for the meter counter"},"forecast_reading_value":{"type":"string","example":270,"description":"The forecast reading value of the meter counter"},"forecast_as_of":{"type":"string","example":"2022-12-10T00:00:00.000Z","description":"The date as of which the forecast reading value is applicable"},"current_consumption":{"type":"number","example":240,"description":"The current consumption value of the meter counter"},"last_reading":{"type":"string","example":"2022-10-10T00:00:00.000Z","description":"The timestamp of the last reading"},"conversion_factor":{"type":"number","example":3,"description":"The conversion factor for the meter counter"},"tariff_type":{"$ref":"#/components/schemas/TariffType","description":"The tariff type of the meter counter"}}}]},"CounterReadingOnSubmission":{"type":"object","required":["counterId","direction","value"],"properties":{"counterId":{"$ref":"#/components/schemas/Id","description":"The ID of the associated meter counter"},"direction":{"$ref":"#/components/schemas/Direction","description":"The direction of the reading (feed-in or feed-out)"},"value":{"type":"string","example":"240","description":"The reading value of the meter counter"},"unit":{"$ref":"#/components/schemas/Unit","description":"The unit of measurement for the reading"}}},"SubmissionMeterReading":{"type":"object","required":["meterId"],"additionalProperties":true,"properties":{"meterId":{"$ref":"#/components/schemas/Id","description":"The ID of the associated meter"},"readings":{"$ref":"#/components/schemas/CounterReadingOnSubmission","description":"- The counter readings of a meter\\n- This is only sent when the user is authenticated while submitting a journey\\n"},"readingValue":{"type":"string","example":"240","description":"The reading value of the meter when the counterId is passed or when the meterType is one-tariff"},"readingDate":{"type":"string","description":"If the value is not provided, the system will be set with the time the request is processed.","example":"2022-10-10T10:10:00.000Z"},"readBy":{"type":"string","example":"John Doe","description":"The person who recorded the reading"},"reason":{"type":"string","example":"Storing the feed-in record","description":"The reason for recording the reading"},"maloId":{"type":"string","example":"A09-123","description":"The MA-LO ID of the meter"},"obisNumber":{"type":"string","example":"A-34","description":"The OBIS number of the meter counter"},"readingUnit":{"$ref":"#/components/schemas/Unit","description":"The unit of measurement for the reading"},"meterType":{"type":"string","enum":["one-tariff","two-tariff","three-tariff"],"description":"The type of the meter"},"feedInValue":{"type":"string","example":"240","description":"The feed-in value of the meter when meterType is one-tariff or bi-directional"},"feedOutValue":{"type":"string","example":"240","description":"The feed-out value of the meter when meterType is bi-directional"},"htValue":{"type":"string","example":"240","description":"The high-peak tariff value of the meter when meterType is two-tariff"},"ntValue":{"type":"string","example":"240","description":"The off-peak tariff value of the meter when meterType is two-tariff"}}},"Unit":{"type":"string","enum":["w","wh","kw","kWh","kvarh","mw","mWh","unit","cubic-meter","hour","day","month","year","percentage"]},"Source":{"type":"string","enum":["ECP","ERP","360","journey-submission"]},"ReadingWithMeter":{"type":"object","properties":{"ma_lo_id":{"type":"string","example":"A09-123","description":"The MA-LO ID of the meter"},"meter_id":{"$ref":"#/components/schemas/Id","description":"The ID of the associated meter"},"obis_number":{"type":"string","example":"A-34","description":"The OBIS number of the meter counter"},"unit":{"$ref":"#/components/schemas/Unit","description":"The unit of measurement for the reading"},"direction":{"$ref":"#/components/schemas/Direction","description":"The direction of the reading"},"tariff_type":{"$ref":"#/components/schemas/TariffType","description":"The tariff type of the reading"},"value":{"type":"number","example":240,"description":"The reading value"},"read_by":{"type":"string","example":"John Doe","description":"The person who recorded the reading"},"reason":{"type":"string","example":"Storing the feed-in record","description":"The reason for recording the reading"},"timestamp":{"type":"string","description":"If the value is not provided, the system will be set with the time the request is processed.","example":"2022-10-10T10:10:00.000Z"},"source":{"$ref":"#/components/schemas/Source","description":"The source of the reading"}}}}},"servers":[{"url":"https://metering.sls.epilot.io"}]}')}},t={},r=function r(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}(914),n=exports;for(var s in r)n[s]=r[s];r.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
package/dist/openapi.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ declare namespace Components {
|
|
|
12
12
|
export type Forbidden = Schemas.ErrorResp;
|
|
13
13
|
export type InternalServerError = Schemas.ErrorResp;
|
|
14
14
|
export type InvalidRequest = Schemas.ErrorResp;
|
|
15
|
-
export type NotFound = Schemas.ErrorResp;
|
|
16
15
|
export type Unauthorized = Schemas.ErrorResp;
|
|
17
16
|
}
|
|
18
17
|
namespace Schemas {
|
|
@@ -57,6 +56,26 @@ declare namespace Components {
|
|
|
57
56
|
*/
|
|
58
57
|
_updated_at: string; // date-time
|
|
59
58
|
}
|
|
59
|
+
export interface CounterReadingOnSubmission {
|
|
60
|
+
/**
|
|
61
|
+
* The ID of the associated meter counter
|
|
62
|
+
*/
|
|
63
|
+
counterId: Id;
|
|
64
|
+
/**
|
|
65
|
+
* The direction of the reading (feed-in or feed-out)
|
|
66
|
+
*/
|
|
67
|
+
direction: Direction;
|
|
68
|
+
/**
|
|
69
|
+
* The reading value of the meter counter
|
|
70
|
+
* example:
|
|
71
|
+
* 240
|
|
72
|
+
*/
|
|
73
|
+
value: string;
|
|
74
|
+
/**
|
|
75
|
+
* The unit of measurement for the reading
|
|
76
|
+
*/
|
|
77
|
+
unit?: Unit;
|
|
78
|
+
}
|
|
60
79
|
export type Direction = "feed-in" | "feed-out";
|
|
61
80
|
export interface Entity {
|
|
62
81
|
[name: string]: any;
|
|
@@ -107,12 +126,6 @@ declare namespace Components {
|
|
|
107
126
|
entity_id?: string;
|
|
108
127
|
_slug?: "contact" | "contract";
|
|
109
128
|
}
|
|
110
|
-
/**
|
|
111
|
-
* URL-friendly identifier for the entity schema
|
|
112
|
-
* example:
|
|
113
|
-
* contact
|
|
114
|
-
*/
|
|
115
|
-
export type EntitySlug = string;
|
|
116
129
|
export interface ErrorResp {
|
|
117
130
|
/**
|
|
118
131
|
* Error message
|
|
@@ -443,6 +456,84 @@ declare namespace Components {
|
|
|
443
456
|
export type Source = "ECP" | "ERP" | "360" | "journey-submission";
|
|
444
457
|
export interface SubmissionMeterReading {
|
|
445
458
|
[name: string]: any;
|
|
459
|
+
/**
|
|
460
|
+
* The ID of the associated meter
|
|
461
|
+
*/
|
|
462
|
+
meterId: Id;
|
|
463
|
+
/**
|
|
464
|
+
* - The counter readings of a meter
|
|
465
|
+
* - This is only sent when the user is authenticated while submitting a journey
|
|
466
|
+
*
|
|
467
|
+
*/
|
|
468
|
+
readings?: CounterReadingOnSubmission;
|
|
469
|
+
/**
|
|
470
|
+
* The reading value of the meter when the counterId is passed or when the meterType is one-tariff
|
|
471
|
+
* example:
|
|
472
|
+
* 240
|
|
473
|
+
*/
|
|
474
|
+
readingValue?: string;
|
|
475
|
+
/**
|
|
476
|
+
* If the value is not provided, the system will be set with the time the request is processed.
|
|
477
|
+
* example:
|
|
478
|
+
* 2022-10-10T10:10:00.000Z
|
|
479
|
+
*/
|
|
480
|
+
readingDate?: string;
|
|
481
|
+
/**
|
|
482
|
+
* The person who recorded the reading
|
|
483
|
+
* example:
|
|
484
|
+
* John Doe
|
|
485
|
+
*/
|
|
486
|
+
readBy?: string;
|
|
487
|
+
/**
|
|
488
|
+
* The reason for recording the reading
|
|
489
|
+
* example:
|
|
490
|
+
* Storing the feed-in record
|
|
491
|
+
*/
|
|
492
|
+
reason?: string;
|
|
493
|
+
/**
|
|
494
|
+
* The MA-LO ID of the meter
|
|
495
|
+
* example:
|
|
496
|
+
* A09-123
|
|
497
|
+
*/
|
|
498
|
+
maloId?: string;
|
|
499
|
+
/**
|
|
500
|
+
* The OBIS number of the meter counter
|
|
501
|
+
* example:
|
|
502
|
+
* A-34
|
|
503
|
+
*/
|
|
504
|
+
obisNumber?: string;
|
|
505
|
+
/**
|
|
506
|
+
* The unit of measurement for the reading
|
|
507
|
+
*/
|
|
508
|
+
readingUnit?: Unit;
|
|
509
|
+
/**
|
|
510
|
+
* The type of the meter
|
|
511
|
+
*/
|
|
512
|
+
meterType?: "one-tariff" | "two-tariff" | "three-tariff";
|
|
513
|
+
/**
|
|
514
|
+
* The feed-in value of the meter when meterType is one-tariff or bi-directional
|
|
515
|
+
* example:
|
|
516
|
+
* 240
|
|
517
|
+
*/
|
|
518
|
+
feedInValue?: string;
|
|
519
|
+
/**
|
|
520
|
+
* The feed-out value of the meter when meterType is bi-directional
|
|
521
|
+
* example:
|
|
522
|
+
* 240
|
|
523
|
+
*/
|
|
524
|
+
feedOutValue?: string;
|
|
525
|
+
/**
|
|
526
|
+
* The high-peak tariff value of the meter when meterType is two-tariff
|
|
527
|
+
* example:
|
|
528
|
+
* 240
|
|
529
|
+
*/
|
|
530
|
+
htValue?: string;
|
|
531
|
+
/**
|
|
532
|
+
* The off-peak tariff value of the meter when meterType is two-tariff
|
|
533
|
+
* example:
|
|
534
|
+
* 240
|
|
535
|
+
*/
|
|
536
|
+
ntValue?: string;
|
|
446
537
|
}
|
|
447
538
|
export type TariffType = "ht" | "nt";
|
|
448
539
|
export type Unit = "w" | "wh" | "kw" | "kWh" | "kvarh" | "mw" | "mWh" | "unit" | "cubic-meter" | "hour" | "day" | "month" | "year" | "percentage";
|
|
@@ -462,7 +553,25 @@ declare namespace Paths {
|
|
|
462
553
|
}
|
|
463
554
|
}
|
|
464
555
|
namespace CreateMeterReadingFromSubmission {
|
|
465
|
-
export
|
|
556
|
+
export interface RequestBody {
|
|
557
|
+
[name: string]: any;
|
|
558
|
+
/**
|
|
559
|
+
* ID of the organization
|
|
560
|
+
* example:
|
|
561
|
+
* 123
|
|
562
|
+
*/
|
|
563
|
+
org_id?: string;
|
|
564
|
+
entity: {
|
|
565
|
+
[name: string]: any;
|
|
566
|
+
/**
|
|
567
|
+
* ID of the organization
|
|
568
|
+
* example:
|
|
569
|
+
* 123
|
|
570
|
+
*/
|
|
571
|
+
_org?: string;
|
|
572
|
+
meterReadings: Components.Schemas.SubmissionMeterReading[];
|
|
573
|
+
};
|
|
574
|
+
}
|
|
466
575
|
namespace Responses {
|
|
467
576
|
export interface $200 {
|
|
468
577
|
message?: "Successfully Processed";
|
|
@@ -656,6 +765,23 @@ declare namespace Paths {
|
|
|
656
765
|
export type $500 = Components.Responses.InternalServerError;
|
|
657
766
|
}
|
|
658
767
|
}
|
|
768
|
+
namespace GetMetersByContractId {
|
|
769
|
+
namespace Parameters {
|
|
770
|
+
export type ContractId = Components.Schemas.EntityId;
|
|
771
|
+
}
|
|
772
|
+
export interface PathParameters {
|
|
773
|
+
contract_id: Parameters.ContractId;
|
|
774
|
+
}
|
|
775
|
+
namespace Responses {
|
|
776
|
+
export interface $200 {
|
|
777
|
+
data?: Components.Schemas.Meter[];
|
|
778
|
+
}
|
|
779
|
+
export type $400 = Components.Responses.InvalidRequest;
|
|
780
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
781
|
+
export type $403 = Components.Responses.Forbidden;
|
|
782
|
+
export type $500 = Components.Responses.InternalServerError;
|
|
783
|
+
}
|
|
784
|
+
}
|
|
659
785
|
namespace GetReadingsByInterval {
|
|
660
786
|
namespace Parameters {
|
|
661
787
|
export type CounterId = Components.Schemas.Id;
|
|
@@ -794,6 +920,16 @@ export interface OperationMethods {
|
|
|
794
920
|
data?: any,
|
|
795
921
|
config?: AxiosRequestConfig
|
|
796
922
|
): OperationResponse<Paths.GetCustomerMeters.Responses.$200>
|
|
923
|
+
/**
|
|
924
|
+
* getMetersByContractId - getMetersByContractId
|
|
925
|
+
*
|
|
926
|
+
* Retrieves all meters related to a contract.
|
|
927
|
+
*/
|
|
928
|
+
'getMetersByContractId'(
|
|
929
|
+
parameters?: Parameters<Paths.GetMetersByContractId.PathParameters> | null,
|
|
930
|
+
data?: any,
|
|
931
|
+
config?: AxiosRequestConfig
|
|
932
|
+
): OperationResponse<Paths.GetMetersByContractId.Responses.$200>
|
|
797
933
|
/**
|
|
798
934
|
* getMeter - Get Meter
|
|
799
935
|
*
|
|
@@ -935,6 +1071,18 @@ export interface PathsDictionary {
|
|
|
935
1071
|
config?: AxiosRequestConfig
|
|
936
1072
|
): OperationResponse<Paths.GetCustomerMeters.Responses.$200>
|
|
937
1073
|
}
|
|
1074
|
+
['/v1/metering/contract/meters/{contract_id}']: {
|
|
1075
|
+
/**
|
|
1076
|
+
* getMetersByContractId - getMetersByContractId
|
|
1077
|
+
*
|
|
1078
|
+
* Retrieves all meters related to a contract.
|
|
1079
|
+
*/
|
|
1080
|
+
'get'(
|
|
1081
|
+
parameters?: Parameters<Paths.GetMetersByContractId.PathParameters> | null,
|
|
1082
|
+
data?: any,
|
|
1083
|
+
config?: AxiosRequestConfig
|
|
1084
|
+
): OperationResponse<Paths.GetMetersByContractId.Responses.$200>
|
|
1085
|
+
}
|
|
938
1086
|
['/v1/metering/meter/{id}']: {
|
|
939
1087
|
/**
|
|
940
1088
|
* updateMeter - Update Meter
|
package/dist/openapi.json
CHANGED
|
@@ -70,6 +70,64 @@
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
|
+
"/v1/metering/contract/meters/{contract_id}": {
|
|
74
|
+
"get": {
|
|
75
|
+
"operationId": "getMetersByContractId",
|
|
76
|
+
"summary": "getMetersByContractId",
|
|
77
|
+
"description": "Retrieves all meters related to a contract.",
|
|
78
|
+
"tags": [
|
|
79
|
+
"ECP"
|
|
80
|
+
],
|
|
81
|
+
"security": [
|
|
82
|
+
{
|
|
83
|
+
"PortalAuth": []
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"parameters": [
|
|
87
|
+
{
|
|
88
|
+
"in": "path",
|
|
89
|
+
"name": "contract_id",
|
|
90
|
+
"schema": {
|
|
91
|
+
"$ref": "#/components/schemas/EntityId"
|
|
92
|
+
},
|
|
93
|
+
"required": true,
|
|
94
|
+
"description": "The ID of the Contract."
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"responses": {
|
|
98
|
+
"200": {
|
|
99
|
+
"description": "Meters related to the contract retrieved successfully.",
|
|
100
|
+
"content": {
|
|
101
|
+
"application/json": {
|
|
102
|
+
"schema": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"properties": {
|
|
105
|
+
"data": {
|
|
106
|
+
"type": "array",
|
|
107
|
+
"items": {
|
|
108
|
+
"$ref": "#/components/schemas/Meter"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"400": {
|
|
117
|
+
"$ref": "#/components/responses/InvalidRequest"
|
|
118
|
+
},
|
|
119
|
+
"401": {
|
|
120
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
121
|
+
},
|
|
122
|
+
"403": {
|
|
123
|
+
"$ref": "#/components/responses/Forbidden"
|
|
124
|
+
},
|
|
125
|
+
"500": {
|
|
126
|
+
"$ref": "#/components/responses/InternalServerError"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
73
131
|
"/v1/metering/meter/{id}": {
|
|
74
132
|
"patch": {
|
|
75
133
|
"operationId": "updateMeter",
|
|
@@ -459,7 +517,38 @@
|
|
|
459
517
|
"content": {
|
|
460
518
|
"application/json": {
|
|
461
519
|
"schema": {
|
|
462
|
-
"
|
|
520
|
+
"type": "object",
|
|
521
|
+
"required": [
|
|
522
|
+
"entity"
|
|
523
|
+
],
|
|
524
|
+
"additionalProperties": true,
|
|
525
|
+
"properties": {
|
|
526
|
+
"org_id": {
|
|
527
|
+
"type": "string",
|
|
528
|
+
"example": "123",
|
|
529
|
+
"description": "ID of the organization"
|
|
530
|
+
},
|
|
531
|
+
"entity": {
|
|
532
|
+
"type": "object",
|
|
533
|
+
"required": [
|
|
534
|
+
"meterReadings"
|
|
535
|
+
],
|
|
536
|
+
"additionalProperties": true,
|
|
537
|
+
"properties": {
|
|
538
|
+
"_org": {
|
|
539
|
+
"type": "string",
|
|
540
|
+
"example": "123",
|
|
541
|
+
"description": "ID of the organization"
|
|
542
|
+
},
|
|
543
|
+
"meterReadings": {
|
|
544
|
+
"type": "array",
|
|
545
|
+
"items": {
|
|
546
|
+
"$ref": "#/components/schemas/SubmissionMeterReading"
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
463
552
|
}
|
|
464
553
|
}
|
|
465
554
|
}
|
|
@@ -1008,16 +1097,6 @@
|
|
|
1008
1097
|
}
|
|
1009
1098
|
}
|
|
1010
1099
|
},
|
|
1011
|
-
"NotFound": {
|
|
1012
|
-
"description": "The specified resource was not found",
|
|
1013
|
-
"content": {
|
|
1014
|
-
"application/json": {
|
|
1015
|
-
"schema": {
|
|
1016
|
-
"$ref": "#/components/schemas/ErrorResp"
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
},
|
|
1021
1100
|
"InternalServerError": {
|
|
1022
1101
|
"description": "Internal Server Error",
|
|
1023
1102
|
"content": {
|
|
@@ -1056,11 +1135,6 @@
|
|
|
1056
1135
|
"EntityId": {
|
|
1057
1136
|
"type": "string"
|
|
1058
1137
|
},
|
|
1059
|
-
"EntitySlug": {
|
|
1060
|
-
"description": "URL-friendly identifier for the entity schema",
|
|
1061
|
-
"type": "string",
|
|
1062
|
-
"example": "contact"
|
|
1063
|
-
},
|
|
1064
1138
|
"BaseEntity": {
|
|
1065
1139
|
"type": "object",
|
|
1066
1140
|
"properties": {
|
|
@@ -1422,10 +1496,112 @@
|
|
|
1422
1496
|
}
|
|
1423
1497
|
]
|
|
1424
1498
|
},
|
|
1499
|
+
"CounterReadingOnSubmission": {
|
|
1500
|
+
"type": "object",
|
|
1501
|
+
"required": [
|
|
1502
|
+
"counterId",
|
|
1503
|
+
"direction",
|
|
1504
|
+
"value"
|
|
1505
|
+
],
|
|
1506
|
+
"properties": {
|
|
1507
|
+
"counterId": {
|
|
1508
|
+
"$ref": "#/components/schemas/Id",
|
|
1509
|
+
"description": "The ID of the associated meter counter"
|
|
1510
|
+
},
|
|
1511
|
+
"direction": {
|
|
1512
|
+
"$ref": "#/components/schemas/Direction",
|
|
1513
|
+
"description": "The direction of the reading (feed-in or feed-out)"
|
|
1514
|
+
},
|
|
1515
|
+
"value": {
|
|
1516
|
+
"type": "string",
|
|
1517
|
+
"example": "240",
|
|
1518
|
+
"description": "The reading value of the meter counter"
|
|
1519
|
+
},
|
|
1520
|
+
"unit": {
|
|
1521
|
+
"$ref": "#/components/schemas/Unit",
|
|
1522
|
+
"description": "The unit of measurement for the reading"
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
},
|
|
1425
1526
|
"SubmissionMeterReading": {
|
|
1426
1527
|
"type": "object",
|
|
1427
|
-
"
|
|
1428
|
-
|
|
1528
|
+
"required": [
|
|
1529
|
+
"meterId"
|
|
1530
|
+
],
|
|
1531
|
+
"additionalProperties": true,
|
|
1532
|
+
"properties": {
|
|
1533
|
+
"meterId": {
|
|
1534
|
+
"$ref": "#/components/schemas/Id",
|
|
1535
|
+
"description": "The ID of the associated meter"
|
|
1536
|
+
},
|
|
1537
|
+
"readings": {
|
|
1538
|
+
"$ref": "#/components/schemas/CounterReadingOnSubmission",
|
|
1539
|
+
"description": "- The counter readings of a meter\n- This is only sent when the user is authenticated while submitting a journey\n"
|
|
1540
|
+
},
|
|
1541
|
+
"readingValue": {
|
|
1542
|
+
"type": "string",
|
|
1543
|
+
"example": "240",
|
|
1544
|
+
"description": "The reading value of the meter when the counterId is passed or when the meterType is one-tariff"
|
|
1545
|
+
},
|
|
1546
|
+
"readingDate": {
|
|
1547
|
+
"type": "string",
|
|
1548
|
+
"description": "If the value is not provided, the system will be set with the time the request is processed.",
|
|
1549
|
+
"example": "2022-10-10T10:10:00.000Z"
|
|
1550
|
+
},
|
|
1551
|
+
"readBy": {
|
|
1552
|
+
"type": "string",
|
|
1553
|
+
"example": "John Doe",
|
|
1554
|
+
"description": "The person who recorded the reading"
|
|
1555
|
+
},
|
|
1556
|
+
"reason": {
|
|
1557
|
+
"type": "string",
|
|
1558
|
+
"example": "Storing the feed-in record",
|
|
1559
|
+
"description": "The reason for recording the reading"
|
|
1560
|
+
},
|
|
1561
|
+
"maloId": {
|
|
1562
|
+
"type": "string",
|
|
1563
|
+
"example": "A09-123",
|
|
1564
|
+
"description": "The MA-LO ID of the meter"
|
|
1565
|
+
},
|
|
1566
|
+
"obisNumber": {
|
|
1567
|
+
"type": "string",
|
|
1568
|
+
"example": "A-34",
|
|
1569
|
+
"description": "The OBIS number of the meter counter"
|
|
1570
|
+
},
|
|
1571
|
+
"readingUnit": {
|
|
1572
|
+
"$ref": "#/components/schemas/Unit",
|
|
1573
|
+
"description": "The unit of measurement for the reading"
|
|
1574
|
+
},
|
|
1575
|
+
"meterType": {
|
|
1576
|
+
"type": "string",
|
|
1577
|
+
"enum": [
|
|
1578
|
+
"one-tariff",
|
|
1579
|
+
"two-tariff",
|
|
1580
|
+
"three-tariff"
|
|
1581
|
+
],
|
|
1582
|
+
"description": "The type of the meter"
|
|
1583
|
+
},
|
|
1584
|
+
"feedInValue": {
|
|
1585
|
+
"type": "string",
|
|
1586
|
+
"example": "240",
|
|
1587
|
+
"description": "The feed-in value of the meter when meterType is one-tariff or bi-directional"
|
|
1588
|
+
},
|
|
1589
|
+
"feedOutValue": {
|
|
1590
|
+
"type": "string",
|
|
1591
|
+
"example": "240",
|
|
1592
|
+
"description": "The feed-out value of the meter when meterType is bi-directional"
|
|
1593
|
+
},
|
|
1594
|
+
"htValue": {
|
|
1595
|
+
"type": "string",
|
|
1596
|
+
"example": "240",
|
|
1597
|
+
"description": "The high-peak tariff value of the meter when meterType is two-tariff"
|
|
1598
|
+
},
|
|
1599
|
+
"ntValue": {
|
|
1600
|
+
"type": "string",
|
|
1601
|
+
"example": "240",
|
|
1602
|
+
"description": "The off-peak tariff value of the meter when meterType is two-tariff"
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1429
1605
|
},
|
|
1430
1606
|
"Unit": {
|
|
1431
1607
|
"type": "string",
|
|
@@ -1513,9 +1689,6 @@
|
|
|
1513
1689
|
}
|
|
1514
1690
|
},
|
|
1515
1691
|
"servers": [
|
|
1516
|
-
{
|
|
1517
|
-
"url": "https://metering.sls.epilot.io"
|
|
1518
|
-
},
|
|
1519
1692
|
{
|
|
1520
1693
|
"url": "https://metering.sls.epilot.io"
|
|
1521
1694
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/metering-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "API Client for epilot Metering API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -45,24 +45,24 @@
|
|
|
45
45
|
"author": "epilot GmbH",
|
|
46
46
|
"license": "UNLICENSED",
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"axios": "^
|
|
48
|
+
"axios": "^1.6.2"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"buffer": "^6.0.3",
|
|
52
52
|
"https-browserify": "^1.0.0",
|
|
53
|
-
"openapi-client-axios": "^7.1
|
|
53
|
+
"openapi-client-axios": "^7.5.1",
|
|
54
54
|
"stream-http": "^3.1.1",
|
|
55
55
|
"url": "^0.11.0",
|
|
56
56
|
"util": "^0.12.3"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/jest": "^26.0.20",
|
|
60
|
-
"axios": "^
|
|
60
|
+
"axios": "^1.6.2",
|
|
61
61
|
"copy-webpack-plugin": "^7.0.0",
|
|
62
62
|
"jest": "^26.6.3",
|
|
63
63
|
"json-loader": "^0.5.7",
|
|
64
64
|
"openapi-client-axios-typegen": "^7.4.1",
|
|
65
|
-
"openapicmd": "^1.
|
|
65
|
+
"openapicmd": "^2.1.0",
|
|
66
66
|
"ts-jest": "^26.5.0",
|
|
67
67
|
"ts-loader": "^8.0.14",
|
|
68
68
|
"ts-node": "^10.9.1",
|