| GET | /App/{UserId}/Nutzeinheit/{Guid} |
|---|
"use strict";
export class Address {
/** @param {{Guid?:string,Stra_e?:string,Stra_e2?:string,Hausnummer?:string,Postleitzahl?:string,Ort?:string,Postfach?:string,Adresszusatz?:string,Breitengrad?:number,Laengengrad?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Guid;
/** @type {string} */
Stra_e;
/** @type {string} */
Stra_e2;
/** @type {string} */
Hausnummer;
/** @type {string} */
Postleitzahl;
/** @type {string} */
Ort;
/** @type {string} */
Postfach;
/** @type {string} */
Adresszusatz;
/** @type {number} */
Breitengrad;
/** @type {number} */
Laengengrad;
}
/** @typedef {'InProgress'|'Updating'|'Creating'|'Completed'} */
export var ProcessState;
(function (ProcessState) {
ProcessState["InProgress"] = "InProgress"
ProcessState["Updating"] = "Updating"
ProcessState["Creating"] = "Creating"
ProcessState["Completed"] = "Completed"
})(ProcessState || (ProcessState = {}));
export class NutzeinheitOrderState {
/** @param {{AuftragArten?:IList<NutzeinheitOrderKind>,Bearbeitungsstatus?:ProcessState,AbgeschlossenDatum?:string,OsVersion?:string,AppVersion?:string,OsPlatform?:string,AppGeraeteNummmer?:string,AmwInfo?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {IList<NutzeinheitOrderKind>} */
AuftragArten;
/** @type {?ProcessState} */
Bearbeitungsstatus;
/** @type {?string} */
AbgeschlossenDatum;
/** @type {string} */
OsVersion;
/** @type {string} */
AppVersion;
/** @type {string} */
OsPlatform;
/** @type {string} */
AppGeraeteNummmer;
/** @type {string} */
AmwInfo;
}
/** @typedef {'L'|'Kg'|'CBM'|'Stck'|'KWH'|'MWH'|'GWH'|'T'|'RM'|'Einheit'|'Qm'|'GJ'|'MJ'|'Null'} */
export var UnitKind;
(function (UnitKind) {
UnitKind["L"] = "L"
UnitKind["Kg"] = "Kg"
UnitKind["CBM"] = "CBM"
UnitKind["Stck"] = "Stck"
UnitKind["KWH"] = "KWH"
UnitKind["MWH"] = "MWH"
UnitKind["GWH"] = "GWH"
UnitKind["T"] = "T"
UnitKind["RM"] = "RM"
UnitKind["Einheit"] = "Einheit"
UnitKind["Qm"] = "Qm"
UnitKind["GJ"] = "GJ"
UnitKind["MJ"] = "MJ"
UnitKind["Null"] = "Null"
})(UnitKind || (UnitKind = {}));
/** @typedef {'Null'|'S1'|'S2'|'S3'|'S4'|'S5'|'N1'|'N2'} */
export var EstimationKind;
(function (EstimationKind) {
EstimationKind["Null"] = "Null"
EstimationKind["S1"] = "S1"
EstimationKind["S2"] = "S2"
EstimationKind["S3"] = "S3"
EstimationKind["S4"] = "S4"
EstimationKind["S5"] = "S5"
EstimationKind["N1"] = "N1"
EstimationKind["N2"] = "N2"
})(EstimationKind || (EstimationKind = {}));
/** @typedef {'Null'|'RMInOrdnung'|'RMFehler'|'RMNichtGepr'|'RMFehlerTausch'|'KeinWohnungszutritt'|'Defekt'|'FalschLaufend'|'Überlauf'|'EichungBeachten'|'ProbeEntnommen'|'ProbeZumLabor'|'ProbePositiv'|'ProbeNegativ'} */
export var DeviceConsumptionState;
(function (DeviceConsumptionState) {
DeviceConsumptionState["Null"] = "Null"
DeviceConsumptionState["RMInOrdnung"] = "RMInOrdnung"
DeviceConsumptionState["RMFehler"] = "RMFehler"
DeviceConsumptionState["RMNichtGepr"] = "RMNichtGepr"
DeviceConsumptionState["RMFehlerTausch"] = "RMFehlerTausch"
DeviceConsumptionState["KeinWohnungszutritt"] = "KeinWohnungszutritt"
DeviceConsumptionState["Defekt"] = "Defekt"
DeviceConsumptionState["FalschLaufend"] = "FalschLaufend"
DeviceConsumptionState["Überlauf"] = "Überlauf"
DeviceConsumptionState["EichungBeachten"] = "EichungBeachten"
DeviceConsumptionState["ProbeEntnommen"] = "ProbeEntnommen"
DeviceConsumptionState["ProbeZumLabor"] = "ProbeZumLabor"
DeviceConsumptionState["ProbePositiv"] = "ProbePositiv"
DeviceConsumptionState["ProbeNegativ"] = "ProbeNegativ"
})(DeviceConsumptionState || (DeviceConsumptionState = {}));
/** @typedef {'Unbekannt'|'Manual'|'Emr'|'Walkby'|'Deleted'} */
export var DeviceConsumptionOrigin;
(function (DeviceConsumptionOrigin) {
DeviceConsumptionOrigin["Unbekannt"] = "Unbekannt"
DeviceConsumptionOrigin["Manual"] = "Manual"
DeviceConsumptionOrigin["Emr"] = "Emr"
DeviceConsumptionOrigin["Walkby"] = "Walkby"
DeviceConsumptionOrigin["Deleted"] = "Deleted"
})(DeviceConsumptionOrigin || (DeviceConsumptionOrigin = {}));
export class DeviceConsumption {
/** @param {{Guid?:string,LastModified?:string,Ablesedatum?:string,Faktor?:number,Ablesung?:number,Verbrauch?:number,Aenderungsdatum?:string,Schaetzung?:EstimationKind,Status?:DeviceConsumptionState,Anmerkung?:string,IstRekonstruiert?:boolean,Manuell?:number,Herkunft?:DeviceConsumptionOrigin,Lufttemperatur?:number,Heizk_rperTemperatur?:number,LetzterfehlerDatum?:string,Fehler?:string,Ampullenfarbe?:string,AbleseartGuid?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Guid;
/** @type {?string} */
LastModified;
/** @type {?string} */
Ablesedatum;
/** @type {number} */
Faktor;
/** @type {?number} */
Ablesung;
/** @type {?number} */
Verbrauch;
/** @type {?string} */
Aenderungsdatum;
/** @type {?EstimationKind} */
Schaetzung;
/** @type {?DeviceConsumptionState} */
Status;
/** @type {string} */
Anmerkung;
/** @type {boolean} */
IstRekonstruiert;
/** @type {?number} */
Manuell;
/** @type {?DeviceConsumptionOrigin} */
Herkunft;
/** @type {?number} */
Lufttemperatur;
/** @type {?number} */
Heizk_rperTemperatur;
/** @type {?string} */
LetzterfehlerDatum;
/** @type {string} */
Fehler;
/** @type {string} */
Ampullenfarbe;
/** @type {string} */
AbleseartGuid;
}
export class Photo {
/** @param {{Guid?:string,Timestamp?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Guid;
/** @type {string} */
Timestamp;
}
export class DeviceAdditionalArticle {
/** @param {{Guid?:string,Menge?:number,LastModified?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Guid;
/** @type {?number} */
Menge;
/** @type {?string} */
LastModified;
}
export class Device {
/** @param {{Guid?:string,LastModified?:string,Geraetenummer?:string,Bezeichnung?:string,Beschreibung?:string,Einbaudatum?:string,Ausbaudatum?:string,Eichdatum?:string,Einheit?:UnitKind,Memo?:string,Abzug?:boolean,GrpKennung?:string,Dauerschaetzung?:EstimationKind,ErstInbetriebnahme?:string,FirmwareVersion?:string,RaumGuid?:string,LaufendeNummer?:string,Gemietet?:boolean,Gewartet?:boolean,GeraeteKatalogGuid?:string,Verbraeuche?:IList<DeviceConsumption>,Fotos?:IList<Photo>,ZusatzArtikel?:IList<DeviceAdditionalArticle>}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Guid;
/** @type {?string} */
LastModified;
/** @type {string} */
Geraetenummer;
/** @type {string} */
Bezeichnung;
/** @type {string} */
Beschreibung;
/** @type {string} */
Einbaudatum;
/** @type {?string} */
Ausbaudatum;
/** @type {?string} */
Eichdatum;
/** @type {?UnitKind} */
Einheit;
/** @type {string} */
Memo;
/** @type {boolean} */
Abzug;
/** @type {string} */
GrpKennung;
/** @type {?EstimationKind} */
Dauerschaetzung;
/** @type {?string} */
ErstInbetriebnahme;
/** @type {string} */
FirmwareVersion;
/** @type {string} */
RaumGuid;
/** @type {string} */
LaufendeNummer;
/** @type {boolean} */
Gemietet;
/** @type {boolean} */
Gewartet;
/** @type {string} */
GeraeteKatalogGuid;
/** @type {IList<DeviceConsumption>} */
Verbraeuche;
/** @type {IList<Photo>} */
Fotos;
/** @type {IList<DeviceAdditionalArticle>} */
ZusatzArtikel;
}
/** @typedef {'Leerstand'|'Gewerblich'|'Privat'|'AllgemeineNutzung'} */
export var NutzerKind;
(function (NutzerKind) {
NutzerKind["Leerstand"] = "Leerstand"
NutzerKind["Gewerblich"] = "Gewerblich"
NutzerKind["Privat"] = "Privat"
NutzerKind["AllgemeineNutzung"] = "AllgemeineNutzung"
})(NutzerKind || (NutzerKind = {}));
export class NutzerCommunication {
/** @param {{Guid?:string,LastModified?:string,Adresse?:string,Anmerkung?:string,KommunikationsFunktionGuid?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Guid;
/** @type {?string} */
LastModified;
/** @type {string} */
Adresse;
/** @type {string} */
Anmerkung;
/** @type {string} */
KommunikationsFunktionGuid;
}
export class NutzerPersonen {
/** @param {{Guid?:string,LastModified?:string,Personen?:number,Von?:string,Bis?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Guid;
/** @type {?string} */
LastModified;
/** @type {?number} */
Personen;
/** @type {string} */
Von;
/** @type {?string} */
Bis;
}
export class NutzerCoOwnership {
/** @param {{Guid?:string,LastModified?:string,ShareValue?:number,Von?:string,Bis?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Guid;
/** @type {?string} */
LastModified;
/** @type {?number} */
ShareValue;
/** @type {string} */
Von;
/** @type {?string} */
Bis;
}
export class NutzerQuadratmeter {
/** @param {{Guid?:string,LastModified?:string,Quadratmeter_Hzg?:number,Quadratmeter_Ww?:number,Quadratmeter_Nk?:number,Von?:string,Bis?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Guid;
/** @type {?string} */
LastModified;
/** @type {?number} */
Quadratmeter_Hzg;
/** @type {?number} */
Quadratmeter_Ww;
/** @type {?number} */
Quadratmeter_Nk;
/** @type {string} */
Von;
/** @type {?string} */
Bis;
}
export class Nutzer {
/** @param {{Guid?:string,LastModified?:string,ArtDerNutzung?:NutzerKind,Einzug?:string,Auszug?:string,Name1?:string,Name2?:string,Name3?:string,Name4?:string,Anmerkung?:string,NaechsterTermin?:string,Anrede?:string,Titel?:string,NutzerKommunikationen?:NutzerCommunication[],NutzerPersonen?:NutzerPersonen[],NutzerCoOwnership?:NutzerCoOwnership[],NutzerQuadratmeter?:NutzerQuadratmeter[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Guid;
/** @type {?string} */
LastModified;
/** @type {?NutzerKind} */
ArtDerNutzung;
/** @type {?string} */
Einzug;
/** @type {?string} */
Auszug;
/** @type {string} */
Name1;
/** @type {string} */
Name2;
/** @type {string} */
Name3;
/** @type {string} */
Name4;
/** @type {string} */
Anmerkung;
/** @type {?string} */
NaechsterTermin;
/** @type {string} */
Anrede;
/** @type {string} */
Titel;
/** @type {NutzerCommunication[]} */
NutzerKommunikationen;
/** @type {NutzerPersonen[]} */
NutzerPersonen;
/** @type {NutzerCoOwnership[]} */
NutzerCoOwnership;
/** @type {NutzerQuadratmeter[]} */
NutzerQuadratmeter;
}
export class Nutzeinheit {
/** @param {{Guid?:string,NeNummerInt?:string,Lage?:string,BegeReihenfolge?:string,Anmerkung?:string,Adresse?:Address,NutzeinheitOrderState?:NutzeinheitOrderState,Geraete?:IList<Device>,Fotos?:IList<Photo>,Nutzer?:IList<Nutzer>}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Guid;
/** @type {string} */
NeNummerInt;
/** @type {string} */
Lage;
/** @type {string} */
BegeReihenfolge;
/** @type {string} */
Anmerkung;
/** @type {Address} */
Adresse;
/** @type {NutzeinheitOrderState} */
NutzeinheitOrderState;
/** @type {IList<Device>} */
Geraete;
/** @type {IList<Photo>} */
Fotos;
/** @type {IList<Nutzer>} */
Nutzer;
}
export class GetNutzeinheitResponse {
/** @param {{nutzeinheit?:Nutzeinheit,responseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {Nutzeinheit} */
nutzeinheit;
/** @type {ResponseStatus} */
responseStatus;
}
export class GetNutzeinheit {
/** @param {{NutzeinheitGuid?:string,OrderGuid?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
NutzeinheitGuid;
/** @type {string} */
OrderGuid;
}
JavaScript GetNutzeinheit DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /App/{UserId}/Nutzeinheit/{Guid} HTTP/1.1
Host: concept2021-servamw.eras-online.de
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"nutzeinheit":{"Guid":"00000000000000000000000000000000","LastModified":"0001-01-01T00:00:00.0000000Z","NeNummerInt":"String","Lage":"String","BegeReihenfolge":"String","Anmerkung":"String","AbrechnungseinheitGuid":"00000000000000000000000000000000","Adresse":{"Guid":"00000000000000000000000000000000","Straße":"String","Straße2":"String","Hausnummer":"String","Postleitzahl":"String","Ort":"String","Postfach":"String","Adresszusatz":"String","Breitengrad":0,"Laengengrad":0}},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}