/* Options: Date: 2026-01-12 03:48:32 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://p4v8.smartdatasolutions.nl/api //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: Reading.* //ExcludeTypes: //DefaultImports: */ export enum DateTimeFormat { ISO8601 = 'ISO8601', UTC = 'UTC', NL = 'NL', NLOffset = 'NLOffset', IN = 'IN', INOffset = 'INOffset', Unix = 'Unix', UnixMillis = 'UnixMillis', } export class Generic { /** @description Api-key. Used to provide credentials to the api. Can also be provided through the request headers with key: X-API-KEY */ // @ApiMember(DataType="String", Description="Api-key. Used to provide credentials to the api. Can also be provided through the request headers with key: X-API-KEY", IsRequired=true, Name="ApiKey") public ApiKey: string; /** @description Normally the result of the request is put inside a resultobject with some status information about the request. If you want the output as csv this outer object can be irritating. Default value: FALSE */ // @ApiMember(DataType="Boolean", Description="Normally the result of the request is put inside a resultobject with some status information about the request. If you want the output as csv this outer object can be irritating. Default value: FALSE ", Name="OnlyPayload") public OnlyPayload: boolean; /** @description Show the request as interpreted by the api. Useful to see how filters / dates are parsed. If no value us provided, the default value is: FALSE */ // @ApiMember(DataType="Boolean", Description="Show the request as interpreted by the api. Useful to see how filters / dates are parsed. If no value us provided, the default value is: FALSE ", Name="ShowRequest") public ShowRequest: boolean; /** @description Format all DateTime in the response object. If used in browser, sometimes ISO8601 is not correctly transformed. Enum options: ISO8601 (DEFAULT), UTC, NL, NLOffset, Unix, UnixMillis */ // @ApiMember(DataType="Enum", Description="Format all DateTime in the response object. If used in browser, sometimes ISO8601 is not correctly transformed. Enum options: ISO8601 (DEFAULT), UTC, NL, NLOffset, Unix, UnixMillis", Name="DateTimeFormat") public DateTimeFormat: DateTimeFormat; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export enum Filter { None = 'None', Hour = 'Hour', Day = 'Day', Month = 'Month', Year = 'Year', } export enum MeasurementSource { Detail = 'Detail', Day = 'Day', Month = 'Month', Unknown = 'Unknown', } /** @description Get readings of a metering point */ // @Route("/v5/meteringpoints/{Ean}/readings/{Filter}/{DateFrom}", "GET") // @Route("/v5/meteringpoints/{Ean}/readings/{Filter}/{DateFrom}/{DateTo}", "GET") // @Api(Description="Get readings of a metering point") export class Reading extends Generic { /** @description Request of details of specific metering point with Ean */ // @ApiMember(DataType="EAN (18 numbers)", Description="Request of details of specific metering point with Ean", Name="Ean") public Ean: string; /** @description Detail gives hourly readings for gas and 15 minutes readings for electricity. Only register 1.8.0 (G&E) and 2.8.0 (E) are available. The Day and Month filter are by default also based on the detail readings. Optional it is possible to get the values from the day channels. Advantage: readings are the readings visible as on the smart meter and for electricity the High/Low distinction is available. Downside: for some of the older smart meter models, no decimals are available. Registers starting with 1 are usage, starting with 2 are return. Registers ending on 1 are normal/high tariff, ending on 2 are low/night/weekend tariff. For gas only register 1.8.0 is available. For electricity 1.8.1/1.8.2/2.8.1/2.8.2 are available */ // @ApiMember(DataType="Enum: none/hour/day/month/year", Description="Detail gives hourly readings for gas and 15 minutes readings for electricity. Only register 1.8.0 (G&E) and 2.8.0 (E) are available. The Day and Month filter are by default also based on the detail readings. Optional it is possible to get the values from the day channels. Advantage: readings are the readings visible as on the smart meter and for electricity the High/Low distinction is available. Downside: for some of the older smart meter models, no decimals are available. Registers starting with 1 are usage, starting with 2 are return. Registers ending on 1 are normal/high tariff, ending on 2 are low/night/weekend tariff. For gas only register 1.8.0 is available. For electricity 1.8.1/1.8.2/2.8.1/2.8.2 are available", IsRequired=true, Name="Filter") public Filter: Filter; /** @description Start date the readings are requested for */ // @ApiMember(DataType="Date: yyyy-mm-dd", Description="Start date the readings are requested for", IsRequired=true, Name="DateFrom") public DateFrom: string; /** @description End date the readings are requested for (this date is included in the response). If no date is provided the DateTo will be seven days from DateFrom. */ // @ApiMember(DataType="Date: yyyy-mm-dd", Description="End date the readings are requested for (this date is included in the response). If no date is provided the DateTo will be seven days from DateFrom.", Name="DateTo") public DateTo?: string; /** @description See filter. Readings are available from the Detail or Day channel. Default value: Detail */ // @ApiMember(DataType="Enum: detail/day", Description="See filter. Readings are available from the Detail or Day channel. Default value: Detail", Name="Source") public Source: MeasurementSource; /** @description Add column with Dutch day (Default: false) */ // @ApiMember(DataType="Boolean", Description="Add column with Dutch day (Default: false)", Name="AddDateNL") public AddDateNL: boolean; /** @description Add the first reading of the next day if available. Only available/relevant if no aggregation / source is detail (Default: true) */ // @ApiMember(DataType="Boolean", Description="Add the first reading of the next day if available. Only available/relevant if no aggregation / source is detail (Default: true)", Name="AddFirstReadingNextDay") public AddFirstReadingNextDay?: boolean; /** @description Add columns with CreatedOn and LastUpdated (Default: false) */ // @ApiMember(DataType="Boolean", Description="Add columns with CreatedOn and LastUpdated (Default: false)", Name="AddTimestamps") public AddTimestamps: boolean; /** @description Add column with ean (Default: false) */ // @ApiMember(DataType="Boolean", Description="Add column with ean (Default: false)", Name="AddEan") public AddEan: boolean; /** @description Add column with the meter serial number (Default: false) */ // @ApiMember(DataType="Boolean", Description="Add column with the meter serial number (Default: false)", Name="AddMeterId") public AddMeterId: boolean; /** @description Create a row for each register instead of a column/field for each register (Default: false) */ // @ApiMember(DataType="Boolean", Description="Create a row for each register instead of a column/field for each register (Default: false)", Name="RegistersInRows") public RegistersInRows: boolean; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'Reading'; } public getMethod() { return 'GET'; } public createResponse() {} }