/* Options: Date: 2026-01-12 04:56:00 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://p4.smartdatasolutions.eu //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ReadingsBulk.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface IGet { } export enum Filter { None = 'None', Hour = 'Hour', Day = 'Day', LastDayOnly = 'LastDayOnly', Month = 'Month', } 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; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class P4ReadingDay { public ean: string; public meterId: string; public queryDate: string; public measureUnit: string; public r180?: number; public r181?: number; public r182?: number; public r280?: number; public r281?: number; public r282?: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class P4ReadingIntervalItem { public dateTimeOffset: string; public r180: number; public r280?: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class P4ReadingInterval { public ean: string; public meterId: string; public queryDate: string; public measureUnit: string; public items: P4ReadingIntervalItem[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class P4Rejection { public ean: string; public queryDate: string; public queryReason: string; public rejectionCode: string; public rejectionText: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class P4ReadingsBulk { public message?: string; public timeStamp: string; public dayObjectCount?: number; public intervalObjectCount?: number; public rejectionObjectCount?: number; public dayObjects?: P4ReadingDay[]; public intervalObjects?: P4ReadingInterval[]; public rejectionObjects?: P4Rejection[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/v8/readings-bulk", "GET") // @Route("/v8/readings-bulk/{from}", "GET") export class ReadingsBulk extends Generic implements IReturn, IGet { /** @description If not given, the first object is given after the last request, otherwise gives the first ... data objects received from EDSN/Grid operator received after the given time stamp. Keep in mind, the time stamp is related to when SDS received the data from EDSN, not the date of the data itself! */ // @ApiMember(DataType="Time stamp with format: yyyyMMdd-HHmmss-ffffff", Description="If not given, the first object is given after the last request, otherwise gives the first ... data objects received from EDSN/Grid operator received after the given time stamp. Keep in mind, the time stamp is related to when SDS received the data from EDSN, not the date of the data itself!", Name="From") public from?: string; /** @description Include received interval objects in the result */ // @ApiMember(DataType="Boolean, default: true", Description="Include received interval objects in the result", Name="IncludeIntervalObjects") public includeIntervalObjects: boolean; /** @description Include received day objects in the result */ // @ApiMember(DataType="Boolean, default: false", Description="Include received day objects in the result", Name="IncludeDayObjects") public includeDayObjects: boolean; /** @description Gives option to filter return objects, for example to get always only hour records or day records */ // @ApiMember(DataType="Enum: None, Hour, Day, LastDayOnly, Month", Description="Gives option to filter return objects, for example to get always only hour records or day records", Name="ObjectFilter") public objectFilter: Filter; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'ReadingsBulk'; } public getMethod() { return 'GET'; } public createResponse() { return new P4ReadingsBulk(); } }