@open-charging-cloud/chargy-core 0.13.0 → 0.13.1
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/README.md +1 -1
- package/dist/OCMF.d.ts +1 -1
- package/dist/OCMF.d.ts.map +1 -1
- package/dist/browser/index.js +4 -4
- package/dist/browser/index.js.map +1 -1
- package/dist/interfaces/IChargeTransparencyLiveLink.d.ts +3 -1
- package/dist/interfaces/IChargeTransparencyLiveLink.d.ts.map +1 -1
- package/dist/node/index.js +4 -4
- package/dist/node/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import * as chargyInterfaces from './chargyInterfaces';
|
|
1
|
+
import type * as chargyInterfaces from './chargyInterfaces';
|
|
2
2
|
import * as chargyLib from './chargyLib';
|
|
3
3
|
export declare const ChargeTransparencyLiveLinkContext = "https://open.charging.cloud/contexts/chargeTransparency/live/link/1.0";
|
|
4
|
+
export declare function isConnector(data: unknown): data is IConnector;
|
|
5
|
+
export declare function isTransport(data: unknown): data is Transport;
|
|
4
6
|
export declare function IsAChargeTransparencyLiveLink(data: unknown): data is IChargeTransparencyLiveLink;
|
|
5
7
|
export interface IChargeTransparencyLiveLink extends chargyLib.JSONObject {
|
|
6
8
|
"@context": typeof ChargeTransparencyLiveLinkContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IChargeTransparencyLiveLink.d.ts","sourceRoot":"","sources":["../../src/interfaces/IChargeTransparencyLiveLink.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,gBAAgB,MAAO,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"IChargeTransparencyLiveLink.d.ts","sourceRoot":"","sources":["../../src/interfaces/IChargeTransparencyLiveLink.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,KAAK,gBAAgB,MAAO,oBAAoB,CAAA;AAC5D,OAAO,KAAK,SAAS,MAAmB,aAAa,CAAA;AAGrD,e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AU,CAAC;CACrB;AAED,MAAM,WAAW,cAAmB,SAAQ,UAAU;IAClD,IAAI,EAAE,OAAO,CAAC;IAEd;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,gBAAmB,SAAQ,UAAU;IAClD,IAAI,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IAClD,IAAI,EAAE,WAAW,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC1B,GAAG,EAAoB,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAc,MAAM,CAAC;IAC9B,MAAM,CAAC,EAAgB,MAAM,CAAC;CACjC;AAED,iDAAiD;AACjD,MAAM,WAAW,UAAU;IACvB,mBAAmB,EAAI,MAAM,CAAC;IAC9B,QAAQ,EAAe,MAAM,CAAC;CACjC"}
|
package/dist/node/index.js
CHANGED
|
@@ -10259,7 +10259,9 @@ function toSessionVerificationResults(CTR, noRecordsMessage = { "en": "No charge
|
|
|
10259
10259
|
var IChargeTransparencyLiveLink_exports = {};
|
|
10260
10260
|
__export(IChargeTransparencyLiveLink_exports, {
|
|
10261
10261
|
ChargeTransparencyLiveLinkContext: () => ChargeTransparencyLiveLinkContext,
|
|
10262
|
-
IsAChargeTransparencyLiveLink: () => IsAChargeTransparencyLiveLink
|
|
10262
|
+
IsAChargeTransparencyLiveLink: () => IsAChargeTransparencyLiveLink,
|
|
10263
|
+
isConnector: () => isConnector,
|
|
10264
|
+
isTransport: () => isTransport
|
|
10263
10265
|
});
|
|
10264
10266
|
var ChargeTransparencyLiveLinkContext = "https://open.charging.cloud/contexts/chargeTransparency/live/link/1.0";
|
|
10265
10267
|
function isConnector(data) {
|
|
@@ -10285,9 +10287,7 @@ function isTransport(data) {
|
|
|
10285
10287
|
return (data["url"] === void 0 || typeof data["url"] === "string") && (data["urls"] === void 0 || Array.isArray(data["urls"]) && data["urls"].every(isTransportURL)) && (data["totp"] === void 0 || isTOTPConfig(data["totp"]));
|
|
10286
10288
|
}
|
|
10287
10289
|
function IsAChargeTransparencyLiveLink(data) {
|
|
10288
|
-
|
|
10289
|
-
return false;
|
|
10290
|
-
return data["@context"] === ChargeTransparencyLiveLinkContext && (data["created"] === void 0 || data["created"] === null || typeof data["created"] === "string") && (data["description"] === void 0 || isI18NString(data["description"])) && (data["imageURLs"] === void 0 || Array.isArray(data["imageURLs"]) && data["imageURLs"].every((value) => typeof value === "string")) && (data["geoLocation"] === void 0 || isGeoLocation(data["geoLocation"])) && (data["connector"] === void 0 || isConnector(data["connector"])) && (data["liveTransports"] === void 0 || Array.isArray(data["liveTransports"]) && data["liveTransports"].every(isTransport)) && (data["signatures"] === void 0 || Array.isArray(data["signatures"]));
|
|
10290
|
+
return isMandatoryJSONObject(data) && data["@context"] === ChargeTransparencyLiveLinkContext;
|
|
10291
10291
|
}
|
|
10292
10292
|
function isTOTPConfig(data) {
|
|
10293
10293
|
return isObject(data) && typeof data["initialSharedSecret"] === "string" && typeof data["timeStep"] === "number";
|