| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- 'use strict';
- const createReportMaxXml = `<ns2:oadrPayload xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:ns2="http://openadr.org/oadr-2.0b/2012/07" xmlns:ns3="http://docs.oasis-open.org/ns/energyinterop/201110" xmlns:ns4="http://docs.oasis-open.org/ns/energyinterop/201110/payloads" xmlns:ns5="urn:ietf:params:xml:ns:icalendar-2.0" xmlns:ns6="http://docs.oasis-open.org/ns/emix/2011/06" xmlns:ns7="urn:ietf:params:xml:ns:icalendar-2.0:stream" xmlns:ns8="http://www.w3.org/2005/Atom" xmlns:ns9="http://docs.oasis-open.org/ns/emix/2011/06/power" xmlns:ns10="http://www.opengis.net/gml/3.2" xmlns:ns11="http://docs.oasis-open.org/ns/emix/2011/06/siscale" xmlns:ns12="http://www.w3.org/2009/xmldsig11#" xmlns:ns13="http://openadr.org/oadr-2.0b/2012/07/xmldsig-properties" xmlns:ns14="urn:un:unece:uncefact:codelist:standard:5:ISO42173A:2010-04-07">
- <ns2:oadrSignedObject>
- <ns2:oadrCreateReport ns3:schemaVersion="2.0b">
- <ns4:requestID>31c5ce71a68a73ece370</ns4:requestID>
- <ns2:oadrReportRequest>
- <ns3:reportRequestID>87bbc1d44d903f317758</ns3:reportRequestID>
- <ns3:reportSpecifier>
- <ns3:reportSpecifierID>TELEMETRY_USAGE</ns3:reportSpecifierID>
- <ns5:granularity>
- <ns5:duration>PT30S</ns5:duration>
- </ns5:granularity>
- <ns3:reportBackDuration>
- <ns5:duration>PT1M</ns5:duration>
- </ns3:reportBackDuration>
- <ns3:reportInterval>
- <ns5:properties>
- <ns5:dtstart>
- <ns5:date-time>2020-05-09T03:24:48.000Z</ns5:date-time>
- </ns5:dtstart>
- <ns5:duration>
- <ns5:duration>PT24H</ns5:duration>
- </ns5:duration>
- </ns5:properties>
- </ns3:reportInterval>
- <ns3:specifierPayload>
- <ns3:rID>rep1</ns3:rID>
- <ns3:readingType>x-notApplicable</ns3:readingType>
- </ns3:specifierPayload>
- <ns3:specifierPayload>
- <ns3:rID>rep2</ns3:rID>
- <ns3:readingType>x-notApplicable</ns3:readingType>
- </ns3:specifierPayload>
- </ns3:reportSpecifier>
- </ns2:oadrReportRequest>
- <ns2:oadrReportRequest>
- <ns3:reportRequestID>3d92d98e0b65d94e60a7</ns3:reportRequestID>
- <ns3:reportSpecifier>
- <ns3:reportSpecifierID>TELEMETRY_STATUS</ns3:reportSpecifierID>
- <ns5:granularity>
- <ns5:duration>PT30S</ns5:duration>
- </ns5:granularity>
- <ns3:reportBackDuration>
- <ns5:duration>PT2M</ns5:duration>
- </ns3:reportBackDuration>
- <ns3:reportInterval>
- <ns5:properties>
- <ns5:dtstart>
- <ns5:date-time>2020-05-09T03:25:44.000Z</ns5:date-time>
- </ns5:dtstart>
- <ns5:duration>
- <ns5:duration>PT24H</ns5:duration>
- </ns5:duration>
- </ns5:properties>
- </ns3:reportInterval>
- <ns3:specifierPayload>
- <ns3:rID>ts1</ns3:rID>
- <ns3:readingType>x-notApplicable</ns3:readingType>
- </ns3:specifierPayload>
- </ns3:reportSpecifier>
- </ns2:oadrReportRequest>
- </ns2:oadrCreateReport>
- </ns2:oadrSignedObject>
- </ns2:oadrPayload>`;
- const createReportMinXml = `<ns2:oadrPayload xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:ns2="http://openadr.org/oadr-2.0b/2012/07" xmlns:ns3="http://docs.oasis-open.org/ns/energyinterop/201110" xmlns:ns4="http://docs.oasis-open.org/ns/energyinterop/201110/payloads" xmlns:ns5="urn:ietf:params:xml:ns:icalendar-2.0" xmlns:ns6="http://docs.oasis-open.org/ns/emix/2011/06" xmlns:ns7="urn:ietf:params:xml:ns:icalendar-2.0:stream" xmlns:ns8="http://www.w3.org/2005/Atom" xmlns:ns9="http://docs.oasis-open.org/ns/emix/2011/06/power" xmlns:ns10="http://www.opengis.net/gml/3.2" xmlns:ns11="http://docs.oasis-open.org/ns/emix/2011/06/siscale" xmlns:ns12="http://www.w3.org/2009/xmldsig11#" xmlns:ns13="http://openadr.org/oadr-2.0b/2012/07/xmldsig-properties" xmlns:ns14="urn:un:unece:uncefact:codelist:standard:5:ISO42173A:2010-04-07">
- <ns2:oadrSignedObject>
- <ns2:oadrCreateReport ns3:schemaVersion="2.0b">
- <ns4:requestID>4323</ns4:requestID>
- </ns2:oadrCreateReport>
- </ns2:oadrSignedObject>
- </ns2:oadrPayload>`;
- const createReportMissingRequiredXml = `<ns2:oadrPayload xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:ns2="http://openadr.org/oadr-2.0b/2012/07" xmlns:ns3="http://docs.oasis-open.org/ns/energyinterop/201110" xmlns:ns4="http://docs.oasis-open.org/ns/energyinterop/201110/payloads" xmlns:ns5="urn:ietf:params:xml:ns:icalendar-2.0" xmlns:ns6="http://docs.oasis-open.org/ns/emix/2011/06" xmlns:ns7="urn:ietf:params:xml:ns:icalendar-2.0:stream" xmlns:ns8="http://www.w3.org/2005/Atom" xmlns:ns9="http://docs.oasis-open.org/ns/emix/2011/06/power" xmlns:ns10="http://www.opengis.net/gml/3.2" xmlns:ns11="http://docs.oasis-open.org/ns/emix/2011/06/siscale" xmlns:ns12="http://www.w3.org/2009/xmldsig11#" xmlns:ns13="http://openadr.org/oadr-2.0b/2012/07/xmldsig-properties" xmlns:ns14="urn:un:unece:uncefact:codelist:standard:5:ISO42173A:2010-04-07">
- <ns2:oadrSignedObject>
- <ns2:oadrCreateReport ns3:schemaVersion="2.0b">
- <ns4:requestID>4323</ns4:requestID>
- <ns2:oadrReportRequest>
- <ns3:reportSpecifier>
- <ns3:reportSpecifierID>TELEMETRY_STATUS</ns3:reportSpecifierID>
- <ns5:granularity>
- <ns5:duration>PT1M</ns5:duration>
- </ns5:granularity>
- <ns3:reportBackDuration>
- <ns5:duration>PT1M</ns5:duration>
- </ns3:reportBackDuration>
- <ns3:reportInterval>
- <ns5:properties>
- <ns5:dtstart>
- <ns5:date-time>2020-05-07T17:48:15.000Z</ns5:date-time>
- </ns5:dtstart>
- <ns5:duration>
- <ns5:duration>PT24H</ns5:duration>
- </ns5:duration>
- </ns5:properties>
- </ns3:reportInterval>
- <ns3:specifierPayload>
- <ns3:rID>ts1</ns3:rID>
- <ns3:readingType>x-notApplicable</ns3:readingType>
- </ns3:specifierPayload>
- </ns3:reportSpecifier>
- </ns2:oadrReportRequest>
- </ns2:oadrCreateReport>
- </ns2:oadrSignedObject>
- </ns2:oadrPayload>`;
- const registeredReportMaxXml = `<ns2:oadrPayload xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:ns2="http://openadr.org/oadr-2.0b/2012/07" xmlns:ns3="http://docs.oasis-open.org/ns/energyinterop/201110" xmlns:ns4="http://docs.oasis-open.org/ns/energyinterop/201110/payloads" xmlns:ns5="urn:ietf:params:xml:ns:icalendar-2.0" xmlns:ns6="http://docs.oasis-open.org/ns/emix/2011/06" xmlns:ns7="urn:ietf:params:xml:ns:icalendar-2.0:stream" xmlns:ns8="http://www.w3.org/2005/Atom" xmlns:ns9="http://docs.oasis-open.org/ns/emix/2011/06/power" xmlns:ns10="http://www.opengis.net/gml/3.2" xmlns:ns11="http://docs.oasis-open.org/ns/emix/2011/06/siscale" xmlns:ns12="http://www.w3.org/2009/xmldsig11#" xmlns:ns13="http://openadr.org/oadr-2.0b/2012/07/xmldsig-properties" xmlns:ns14="urn:un:unece:uncefact:codelist:standard:5:ISO42173A:2010-04-07">
- <ns2:oadrSignedObject>
- <ns2:oadrRegisteredReport ns3:schemaVersion="2.0b">
- <ns3:eiResponse>
- <ns3:responseCode>200</ns3:responseCode>
- <ns3:responseDescription>OK</ns3:responseDescription>
- <ns4:requestID>31c5ce71a68a73ece370</ns4:requestID>
- </ns3:eiResponse>
- <ns2:oadrReportRequest>
- <ns3:reportRequestID>87bbc1d44d903f317758</ns3:reportRequestID>
- <ns3:reportSpecifier>
- <ns3:reportSpecifierID>TELEMETRY_USAGE</ns3:reportSpecifierID>
- <ns5:granularity>
- <ns5:duration>PT30S</ns5:duration>
- </ns5:granularity>
- <ns3:reportBackDuration>
- <ns5:duration>PT1M</ns5:duration>
- </ns3:reportBackDuration>
- <ns3:reportInterval>
- <ns5:properties>
- <ns5:dtstart>
- <ns5:date-time>2020-05-09T03:24:48.000Z</ns5:date-time>
- </ns5:dtstart>
- <ns5:duration>
- <ns5:duration>PT24H</ns5:duration>
- </ns5:duration>
- </ns5:properties>
- </ns3:reportInterval>
- <ns3:specifierPayload>
- <ns3:rID>rep1</ns3:rID>
- <ns3:readingType>x-notApplicable</ns3:readingType>
- </ns3:specifierPayload>
- <ns3:specifierPayload>
- <ns3:rID>rep2</ns3:rID>
- <ns3:readingType>x-notApplicable</ns3:readingType>
- </ns3:specifierPayload>
- </ns3:reportSpecifier>
- </ns2:oadrReportRequest>
- <ns2:oadrReportRequest>
- <ns3:reportRequestID>3d92d98e0b65d94e60a7</ns3:reportRequestID>
- <ns3:reportSpecifier>
- <ns3:reportSpecifierID>TELEMETRY_STATUS</ns3:reportSpecifierID>
- <ns5:granularity>
- <ns5:duration>PT30S</ns5:duration>
- </ns5:granularity>
- <ns3:reportBackDuration>
- <ns5:duration>PT2M</ns5:duration>
- </ns3:reportBackDuration>
- <ns3:reportInterval>
- <ns5:properties>
- <ns5:dtstart>
- <ns5:date-time>2020-05-09T03:25:44.000Z</ns5:date-time>
- </ns5:dtstart>
- <ns5:duration>
- <ns5:duration>PT24H</ns5:duration>
- </ns5:duration>
- </ns5:properties>
- </ns3:reportInterval>
- <ns3:specifierPayload>
- <ns3:rID>ts1</ns3:rID>
- <ns3:readingType>x-notApplicable</ns3:readingType>
- </ns3:specifierPayload>
- </ns3:reportSpecifier>
- </ns2:oadrReportRequest>
- </ns2:oadrRegisteredReport>
- </ns2:oadrSignedObject>
- </ns2:oadrPayload>`;
- const registeredReportMinXml = `<ns2:oadrPayload xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:ns2="http://openadr.org/oadr-2.0b/2012/07" xmlns:ns3="http://docs.oasis-open.org/ns/energyinterop/201110" xmlns:ns4="http://docs.oasis-open.org/ns/energyinterop/201110/payloads" xmlns:ns5="urn:ietf:params:xml:ns:icalendar-2.0" xmlns:ns6="http://docs.oasis-open.org/ns/emix/2011/06" xmlns:ns7="urn:ietf:params:xml:ns:icalendar-2.0:stream" xmlns:ns8="http://www.w3.org/2005/Atom" xmlns:ns9="http://docs.oasis-open.org/ns/emix/2011/06/power" xmlns:ns10="http://www.opengis.net/gml/3.2" xmlns:ns11="http://docs.oasis-open.org/ns/emix/2011/06/siscale" xmlns:ns12="http://www.w3.org/2009/xmldsig11#" xmlns:ns13="http://openadr.org/oadr-2.0b/2012/07/xmldsig-properties" xmlns:ns14="urn:un:unece:uncefact:codelist:standard:5:ISO42173A:2010-04-07">
- <ns2:oadrSignedObject>
- <ns2:oadrRegisteredReport ns3:schemaVersion="2.0b">
- <ns3:eiResponse>
- <ns3:responseCode>200</ns3:responseCode>
- <ns4:requestID>31c5ce71a68a73ece370</ns4:requestID>
- </ns3:eiResponse>
- </ns2:oadrRegisteredReport>
- </ns2:oadrSignedObject>
- </ns2:oadrPayload>`;
- const registeredReportMissingRequiredXml = `<ns2:oadrPayload xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:ns2="http://openadr.org/oadr-2.0b/2012/07" xmlns:ns3="http://docs.oasis-open.org/ns/energyinterop/201110" xmlns:ns4="http://docs.oasis-open.org/ns/energyinterop/201110/payloads" xmlns:ns5="urn:ietf:params:xml:ns:icalendar-2.0" xmlns:ns6="http://docs.oasis-open.org/ns/emix/2011/06" xmlns:ns7="urn:ietf:params:xml:ns:icalendar-2.0:stream" xmlns:ns8="http://www.w3.org/2005/Atom" xmlns:ns9="http://docs.oasis-open.org/ns/emix/2011/06/power" xmlns:ns10="http://www.opengis.net/gml/3.2" xmlns:ns11="http://docs.oasis-open.org/ns/emix/2011/06/siscale" xmlns:ns12="http://www.w3.org/2009/xmldsig11#" xmlns:ns13="http://openadr.org/oadr-2.0b/2012/07/xmldsig-properties" xmlns:ns14="urn:un:unece:uncefact:codelist:standard:5:ISO42173A:2010-04-07">
- <ns2:oadrSignedObject>
- <ns2:oadrRegisteredReport ns3:schemaVersion="2.0b">
- <ns3:eiResponse>
- <ns3:responseCode>200</ns3:responseCode>
- <ns3:responseDescription>OK</ns3:responseDescription>
- </ns3:eiResponse>
- </ns2:oadrRegisteredReport>
- </ns2:oadrSignedObject>
- </ns2:oadrPayload>`;
- const updatedReportMaxXml = `<ns2:oadrPayload xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:ns2="http://openadr.org/oadr-2.0b/2012/07" xmlns:ns3="http://docs.oasis-open.org/ns/energyinterop/201110" xmlns:ns4="http://docs.oasis-open.org/ns/energyinterop/201110/payloads" xmlns:ns5="urn:ietf:params:xml:ns:icalendar-2.0" xmlns:ns6="http://docs.oasis-open.org/ns/emix/2011/06" xmlns:ns7="urn:ietf:params:xml:ns:icalendar-2.0:stream" xmlns:ns8="http://www.w3.org/2005/Atom" xmlns:ns9="http://docs.oasis-open.org/ns/emix/2011/06/power" xmlns:ns10="http://www.opengis.net/gml/3.2" xmlns:ns11="http://docs.oasis-open.org/ns/emix/2011/06/siscale" xmlns:ns12="http://www.w3.org/2009/xmldsig11#" xmlns:ns13="http://openadr.org/oadr-2.0b/2012/07/xmldsig-properties" xmlns:ns14="urn:un:unece:uncefact:codelist:standard:5:ISO42173A:2010-04-07">
- <ns2:oadrSignedObject>
- <ns2:oadrUpdatedReport ns3:schemaVersion="2.0b">
- <ns3:eiResponse>
- <ns3:responseCode>200</ns3:responseCode>
- <ns3:responseDescription>OK</ns3:responseDescription>
- <ns4:requestID>4323</ns4:requestID>
- </ns3:eiResponse>
- <ns3:venID>D8:1D:4B:20:5A:65:4C:50:32:FA</ns3:venID>
- </ns2:oadrUpdatedReport>
- </ns2:oadrSignedObject>
- </ns2:oadrPayload>`;
- const updatedReportMinXml = `<ns2:oadrPayload xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:ns2="http://openadr.org/oadr-2.0b/2012/07" xmlns:ns3="http://docs.oasis-open.org/ns/energyinterop/201110" xmlns:ns4="http://docs.oasis-open.org/ns/energyinterop/201110/payloads" xmlns:ns5="urn:ietf:params:xml:ns:icalendar-2.0" xmlns:ns6="http://docs.oasis-open.org/ns/emix/2011/06" xmlns:ns7="urn:ietf:params:xml:ns:icalendar-2.0:stream" xmlns:ns8="http://www.w3.org/2005/Atom" xmlns:ns9="http://docs.oasis-open.org/ns/emix/2011/06/power" xmlns:ns10="http://www.opengis.net/gml/3.2" xmlns:ns11="http://docs.oasis-open.org/ns/emix/2011/06/siscale" xmlns:ns12="http://www.w3.org/2009/xmldsig11#" xmlns:ns13="http://openadr.org/oadr-2.0b/2012/07/xmldsig-properties" xmlns:ns14="urn:un:unece:uncefact:codelist:standard:5:ISO42173A:2010-04-07">
- <ns2:oadrSignedObject>
- <ns2:oadrUpdatedReport ns3:schemaVersion="2.0b">
- <ns3:eiResponse>
- <ns3:responseCode>200</ns3:responseCode>
- <ns4:requestID>4323</ns4:requestID>
- </ns3:eiResponse>
- </ns2:oadrUpdatedReport>
- </ns2:oadrSignedObject>
- </ns2:oadrPayload>`;
- const updatedReportMissingRequired = `<ns2:oadrPayload xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:ns2="http://openadr.org/oadr-2.0b/2012/07" xmlns:ns3="http://docs.oasis-open.org/ns/energyinterop/201110" xmlns:ns4="http://docs.oasis-open.org/ns/energyinterop/201110/payloads" xmlns:ns5="urn:ietf:params:xml:ns:icalendar-2.0" xmlns:ns6="http://docs.oasis-open.org/ns/emix/2011/06" xmlns:ns7="urn:ietf:params:xml:ns:icalendar-2.0:stream" xmlns:ns8="http://www.w3.org/2005/Atom" xmlns:ns9="http://docs.oasis-open.org/ns/emix/2011/06/power" xmlns:ns10="http://www.opengis.net/gml/3.2" xmlns:ns11="http://docs.oasis-open.org/ns/emix/2011/06/siscale" xmlns:ns12="http://www.w3.org/2009/xmldsig11#" xmlns:ns13="http://openadr.org/oadr-2.0b/2012/07/xmldsig-properties" xmlns:ns14="urn:un:unece:uncefact:codelist:standard:5:ISO42173A:2010-04-07">
- <ns2:oadrSignedObject>
- <ns2:oadrUpdatedReport ns3:schemaVersion="2.0b">
- <ns3:eiResponse>
- <ns4:requestID>4323</ns4:requestID>
- </ns3:eiResponse>
- </ns2:oadrUpdatedReport>
- </ns2:oadrSignedObject>
- </ns2:oadrPayload>`;
- module.exports = {
- createReportMaxXml,
- createReportMinXml,
- createReportMissingRequiredXml,
- registeredReportMaxXml,
- registeredReportMinXml,
- registeredReportMissingRequiredXml,
- updatedReportMaxXml,
- updatedReportMinXml,
- updatedReportMissingRequired,
- };
|