UNPKG

homebridge-zaptec

Version:
1,485 lines (1,484 loc) 63 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Api = exports.HttpClient = exports.ContentType = exports.VarisciteWarnings = exports.UserRoles = exports.UserActionType = exports.SettingId = exports.SensorType = exports.PriceUnit = exports.Phases = exports.ObservationId = exports.ObjectType = exports.NetworkType = exports.MessageCode = exports.MaxPhase = exports.InstallationUpdateStatusCodes = exports.InstallationTypeCode = exports.InstallationNotifications = exports.InstallationDetailLevelFlags = exports.InstallationAvailableCurrentMode = exports.InstallationAuthenticationType = exports.GroupByOptions = exports.Features = exports.ErrorCode = exports.EntityType = exports.DeviceType = exports.DeviceLogType = exports.DetailLevelFlags = exports.DeliveryArea = exports.ConstraintErrors = exports.ConnectionType = exports.CommitMetadata = exports.CommandId = exports.ChargerOperatingMode = exports.AggregateGroup = void 0; const form_data_1 = __importDefault(require("form-data")); const camel_case_response_1 = require("./camel-case-response"); /** * 0 = group by charger (default), 1 = group by calendar day, 2 = group by user. * * 0 = Charger * * 1 = Day * * 2 = User * @format int32 */ var AggregateGroup; (function (AggregateGroup) { AggregateGroup[AggregateGroup["Charger"] = 0] = "Charger"; AggregateGroup[AggregateGroup["Day"] = 1] = "Day"; AggregateGroup[AggregateGroup["User"] = 2] = "User"; })(AggregateGroup = exports.AggregateGroup || (exports.AggregateGroup = {})); /** * * * 0 = Unknown * * 1 = Disconnected * * 2 = Connected_Requesting * * 3 = Connected_Charging * * 5 = Connected_Finished * @format int32 */ var ChargerOperatingMode; (function (ChargerOperatingMode) { ChargerOperatingMode[ChargerOperatingMode["Unknown"] = 0] = "Unknown"; ChargerOperatingMode[ChargerOperatingMode["Disconnected"] = 1] = "Disconnected"; ChargerOperatingMode[ChargerOperatingMode["ConnectedRequesting"] = 2] = "ConnectedRequesting"; ChargerOperatingMode[ChargerOperatingMode["ConnectedCharging"] = 3] = "ConnectedCharging"; ChargerOperatingMode[ChargerOperatingMode["ConnectedFinished"] = 5] = "ConnectedFinished"; })(ChargerOperatingMode = exports.ChargerOperatingMode || (exports.ChargerOperatingMode = {})); /** * * * 0 = Unknown * * 1 = InChargePingReply * * 2 = OfflineModeOverride * * 102 = RestartCharger * * 103 = RestartMcu * * 104 = UpdateSettings * * 105 = RestartNtp * * 106 = ExitAppWithCode * * 200 = UpgradeFirmware * * 201 = UpgradeFirmwareForced * * 260 = ResetComErrors * * 261 = ResetNotifications * * 262 = ResetComWarnings * * 300 = LocalSettings * * 320 = SetPlcNpw * * 321 = SetPlcCCoMode * * 322 = SetPlcNmk * * 323 = SetRemotePlcNmk * * 324 = SetRemotePlcNpw * * 501 = StartCharging * * 502 = StopCharging * * 503 = ReportChargingState * * 504 = SetSessionId * * 505 = SetUserUuid * * 506 = StopChargingFinal * * 507 = ResumeCharging * * 601 = ShowGranted * * 602 = ShowDenied * * 603 = IndicateAppConnect * * 750 = ConfirmChargeCardAdded * * 751 = SetAuthenticationList * * 800 = Debug * * 801 = GetPlcTopology * * 802 = ResetPlc * * 803 = RemoteCommand * * 804 = RunGridTest * * 805 = ClearObservationCache * * 901 = RunPostProductionTest * * 902 = GetFirmwareVersion * * 950 = DumpPilotCounter * * 951 = RunPilotTest * * 10000 = CombinedMin * * 10001 = DeauthorizeAndStop * * 10999 = CombinedMax * @format int32 */ var CommandId; (function (CommandId) { CommandId[CommandId["Unknown"] = 0] = "Unknown"; CommandId[CommandId["InChargePingReply"] = 1] = "InChargePingReply"; CommandId[CommandId["OfflineModeOverride"] = 2] = "OfflineModeOverride"; CommandId[CommandId["RestartCharger"] = 102] = "RestartCharger"; CommandId[CommandId["RestartMcu"] = 103] = "RestartMcu"; CommandId[CommandId["UpdateSettings"] = 104] = "UpdateSettings"; CommandId[CommandId["RestartNtp"] = 105] = "RestartNtp"; CommandId[CommandId["ExitAppWithCode"] = 106] = "ExitAppWithCode"; CommandId[CommandId["UpgradeFirmware"] = 200] = "UpgradeFirmware"; CommandId[CommandId["UpgradeFirmwareForced"] = 201] = "UpgradeFirmwareForced"; CommandId[CommandId["ResetComErrors"] = 260] = "ResetComErrors"; CommandId[CommandId["ResetNotifications"] = 261] = "ResetNotifications"; CommandId[CommandId["ResetComWarnings"] = 262] = "ResetComWarnings"; CommandId[CommandId["LocalSettings"] = 300] = "LocalSettings"; CommandId[CommandId["SetPlcNpw"] = 320] = "SetPlcNpw"; CommandId[CommandId["SetPlcCCoMode"] = 321] = "SetPlcCCoMode"; CommandId[CommandId["SetPlcNmk"] = 322] = "SetPlcNmk"; CommandId[CommandId["SetRemotePlcNmk"] = 323] = "SetRemotePlcNmk"; CommandId[CommandId["SetRemotePlcNpw"] = 324] = "SetRemotePlcNpw"; CommandId[CommandId["StartCharging"] = 501] = "StartCharging"; CommandId[CommandId["StopCharging"] = 502] = "StopCharging"; CommandId[CommandId["ReportChargingState"] = 503] = "ReportChargingState"; CommandId[CommandId["SetSessionId"] = 504] = "SetSessionId"; CommandId[CommandId["SetUserUuid"] = 505] = "SetUserUuid"; CommandId[CommandId["StopChargingFinal"] = 506] = "StopChargingFinal"; CommandId[CommandId["ResumeCharging"] = 507] = "ResumeCharging"; CommandId[CommandId["ShowGranted"] = 601] = "ShowGranted"; CommandId[CommandId["ShowDenied"] = 602] = "ShowDenied"; CommandId[CommandId["IndicateAppConnect"] = 603] = "IndicateAppConnect"; CommandId[CommandId["ConfirmChargeCardAdded"] = 750] = "ConfirmChargeCardAdded"; CommandId[CommandId["SetAuthenticationList"] = 751] = "SetAuthenticationList"; CommandId[CommandId["Debug"] = 800] = "Debug"; CommandId[CommandId["GetPlcTopology"] = 801] = "GetPlcTopology"; CommandId[CommandId["ResetPlc"] = 802] = "ResetPlc"; CommandId[CommandId["RemoteCommand"] = 803] = "RemoteCommand"; CommandId[CommandId["RunGridTest"] = 804] = "RunGridTest"; CommandId[CommandId["ClearObservationCache"] = 805] = "ClearObservationCache"; CommandId[CommandId["RunPostProductionTest"] = 901] = "RunPostProductionTest"; CommandId[CommandId["GetFirmwareVersion"] = 902] = "GetFirmwareVersion"; CommandId[CommandId["DumpPilotCounter"] = 950] = "DumpPilotCounter"; CommandId[CommandId["RunPilotTest"] = 951] = "RunPilotTest"; CommandId[CommandId["CombinedMin"] = 10000] = "CombinedMin"; CommandId[CommandId["DeauthorizeAndStop"] = 10001] = "DeauthorizeAndStop"; CommandId[CommandId["CombinedMax"] = 10999] = "CombinedMax"; })(CommandId = exports.CommandId || (exports.CommandId = {})); /** * * * 0 = None * * 1 = Online * * 2 = Offline * * 4 = ReliableClock * * 8 = StoppedByRFID * * 16 = Signed * * 32 = Void * * 64 = Aborted * @format int32 */ var CommitMetadata; (function (CommitMetadata) { CommitMetadata[CommitMetadata["None"] = 0] = "None"; CommitMetadata[CommitMetadata["Online"] = 1] = "Online"; CommitMetadata[CommitMetadata["Offline"] = 2] = "Offline"; CommitMetadata[CommitMetadata["ReliableClock"] = 4] = "ReliableClock"; CommitMetadata[CommitMetadata["StoppedByRFID"] = 8] = "StoppedByRFID"; CommitMetadata[CommitMetadata["Signed"] = 16] = "Signed"; CommitMetadata[CommitMetadata["Void"] = 32] = "Void"; CommitMetadata[CommitMetadata["Aborted"] = 64] = "Aborted"; })(CommitMetadata = exports.CommitMetadata || (exports.CommitMetadata = {})); /** * * * 0 = Amqp10 * @format int32 */ var ConnectionType; (function (ConnectionType) { ConnectionType[ConnectionType["Amqp10"] = 0] = "Amqp10"; })(ConnectionType = exports.ConnectionType || (exports.ConnectionType = {})); /** * * * 0 = Valid * * 1 = MaxCircuits * * 2 = MaxCircuitCurrent * * 4 = MaxChargers * * 8 = UnsupportedFeature * * 16 = IncompatibleCharger * @format int32 */ var ConstraintErrors; (function (ConstraintErrors) { ConstraintErrors[ConstraintErrors["Valid"] = 0] = "Valid"; ConstraintErrors[ConstraintErrors["MaxCircuits"] = 1] = "MaxCircuits"; ConstraintErrors[ConstraintErrors["MaxCircuitCurrent"] = 2] = "MaxCircuitCurrent"; ConstraintErrors[ConstraintErrors["MaxChargers"] = 4] = "MaxChargers"; ConstraintErrors[ConstraintErrors["UnsupportedFeature"] = 8] = "UnsupportedFeature"; ConstraintErrors[ConstraintErrors["IncompatibleCharger"] = 16] = "IncompatibleCharger"; })(ConstraintErrors = exports.ConstraintErrors || (exports.ConstraintErrors = {})); /** * * * 0 = Unknown * * 1 = NO1 * * 2 = NO2 * * 3 = NO3 * * 4 = NO4 * * 5 = NO5 * * 6 = SE1 * * 7 = SE2 * * 8 = SE3 * * 9 = SE4 * * 10 = DK1 * * 11 = DK2 * * 12 = FI * @format int32 */ var DeliveryArea; (function (DeliveryArea) { DeliveryArea[DeliveryArea["Unknown"] = 0] = "Unknown"; DeliveryArea[DeliveryArea["NO1"] = 1] = "NO1"; DeliveryArea[DeliveryArea["NO2"] = 2] = "NO2"; DeliveryArea[DeliveryArea["NO3"] = 3] = "NO3"; DeliveryArea[DeliveryArea["NO4"] = 4] = "NO4"; DeliveryArea[DeliveryArea["NO5"] = 5] = "NO5"; DeliveryArea[DeliveryArea["SE1"] = 6] = "SE1"; DeliveryArea[DeliveryArea["SE2"] = 7] = "SE2"; DeliveryArea[DeliveryArea["SE3"] = 8] = "SE3"; DeliveryArea[DeliveryArea["SE4"] = 9] = "SE4"; DeliveryArea[DeliveryArea["DK1"] = 10] = "DK1"; DeliveryArea[DeliveryArea["DK2"] = 11] = "DK2"; DeliveryArea[DeliveryArea["FI"] = 12] = "FI"; })(DeliveryArea = exports.DeliveryArea || (exports.DeliveryArea = {})); /** * Determines the detail level to return. * * 0 = Summary * * 1 = EnergyDetails * @format int32 */ var DetailLevelFlags; (function (DetailLevelFlags) { DetailLevelFlags[DetailLevelFlags["Summary"] = 0] = "Summary"; DetailLevelFlags[DetailLevelFlags["EnergyDetails"] = 1] = "EnergyDetails"; })(DetailLevelFlags = exports.DetailLevelFlags || (exports.DetailLevelFlags = {})); /** * * * 0 = OcppIn * * 1 = OcppOut * * 2 = OcppError * * 3 = OcppConnected * * 4 = OcppConnectionFailed * * 5 = OcppClientClose * * 6 = IotCommandExecuted * * 7 = IotCommandFailed * * 8 = IotCloudSettingUpdated * * 9 = SessionCommit * * 10 = OfflineSessionCommit * * 11 = AuthorizationRequest * * 12 = AuthorizationSuccess * * 13 = AuthorizationError * * 14 = AuthorizationFailed * @format int32 */ var DeviceLogType; (function (DeviceLogType) { DeviceLogType[DeviceLogType["OcppIn"] = 0] = "OcppIn"; DeviceLogType[DeviceLogType["OcppOut"] = 1] = "OcppOut"; DeviceLogType[DeviceLogType["OcppError"] = 2] = "OcppError"; DeviceLogType[DeviceLogType["OcppConnected"] = 3] = "OcppConnected"; DeviceLogType[DeviceLogType["OcppConnectionFailed"] = 4] = "OcppConnectionFailed"; DeviceLogType[DeviceLogType["OcppClientClose"] = 5] = "OcppClientClose"; DeviceLogType[DeviceLogType["IotCommandExecuted"] = 6] = "IotCommandExecuted"; DeviceLogType[DeviceLogType["IotCommandFailed"] = 7] = "IotCommandFailed"; DeviceLogType[DeviceLogType["IotCloudSettingUpdated"] = 8] = "IotCloudSettingUpdated"; DeviceLogType[DeviceLogType["SessionCommit"] = 9] = "SessionCommit"; DeviceLogType[DeviceLogType["OfflineSessionCommit"] = 10] = "OfflineSessionCommit"; DeviceLogType[DeviceLogType["AuthorizationRequest"] = 11] = "AuthorizationRequest"; DeviceLogType[DeviceLogType["AuthorizationSuccess"] = 12] = "AuthorizationSuccess"; DeviceLogType[DeviceLogType["AuthorizationError"] = 13] = "AuthorizationError"; DeviceLogType[DeviceLogType["AuthorizationFailed"] = 14] = "AuthorizationFailed"; })(DeviceLogType = exports.DeviceLogType || (exports.DeviceLogType = {})); /** * * * 0 = Unknown * * 1 = Smart * * 2 = Portable * * 3 = HomeApm * * 4 = Apollo * * 5 = OtherApm * * 6 = GenericApm * * 7 = HanApm * @format int32 */ var DeviceType; (function (DeviceType) { DeviceType[DeviceType["Unknown"] = 0] = "Unknown"; DeviceType[DeviceType["Smart"] = 1] = "Smart"; DeviceType[DeviceType["Portable"] = 2] = "Portable"; DeviceType[DeviceType["HomeApm"] = 3] = "HomeApm"; DeviceType[DeviceType["Apollo"] = 4] = "Apollo"; DeviceType[DeviceType["OtherApm"] = 5] = "OtherApm"; DeviceType[DeviceType["GenericApm"] = 6] = "GenericApm"; DeviceType[DeviceType["HanApm"] = 7] = "HanApm"; })(DeviceType = exports.DeviceType || (exports.DeviceType = {})); /** * * * 0 = Unknown * * 1 = Installation * * 2 = Charger * @format int32 */ var EntityType; (function (EntityType) { EntityType[EntityType["Unknown"] = 0] = "Unknown"; EntityType[EntityType["Installation"] = 1] = "Installation"; EntityType[EntityType["Charger"] = 2] = "Charger"; })(EntityType = exports.EntityType || (exports.EntityType = {})); /** * * * 500 = Unknown * * 503 = MissingRequiredData * * 504 = UnknownSetting * * 505 = OperationFailedForUnknownReasons * * 506 = NotApplicableForUser * * 507 = UnknownUser * * 508 = RfidTokenInUse * * 509 = SignUpTooManyRequests * * 510 = EmailInUse * * 511 = CellPhoneInUse * * 512 = UnknownObject * * 513 = InvalidPassword * * 514 = IncorrectPassword * * 515 = UserActivationLinkExpired * * 516 = LinkRequestExpired * * 517 = ChargerDeviceIdExists * * 518 = UnknownDeviceId * * 519 = UnknownCommand * * 520 = ErrorCommunicatingWithDevice * * 521 = StringIsNotAWellFormedVersion * * 522 = FirmwareVersionExists * * 523 = FirmwareFileExists * * 524 = CreateConflict * * 525 = DeviceFirmwareNotConfigured * * 526 = FeatureNotEnabled * * 527 = NotSupported * * 528 = DeviceCommandRejected * * 529 = InvalidFormat * * 530 = MailSendFailed * * 531 = ConcurrencyError * * 532 = ConfigurationError * * 533 = Forbidden * * 534 = InstallationTypeViolation * * 535 = PaymentFailed * * 536 = PaymentAuthorizationRequired * * 537 = OperationFailedActiveSubscriptions * * 538 = OperationFailedDueToChargerState * * 539 = InstallationConstraintViolation * * 540 = UnknownInstallationId * * 541 = UnknownEnergySensorId * @format int32 */ var ErrorCode; (function (ErrorCode) { ErrorCode[ErrorCode["Unknown"] = 500] = "Unknown"; ErrorCode[ErrorCode["MissingRequiredData"] = 503] = "MissingRequiredData"; ErrorCode[ErrorCode["UnknownSetting"] = 504] = "UnknownSetting"; ErrorCode[ErrorCode["OperationFailedForUnknownReasons"] = 505] = "OperationFailedForUnknownReasons"; ErrorCode[ErrorCode["NotApplicableForUser"] = 506] = "NotApplicableForUser"; ErrorCode[ErrorCode["UnknownUser"] = 507] = "UnknownUser"; ErrorCode[ErrorCode["RfidTokenInUse"] = 508] = "RfidTokenInUse"; ErrorCode[ErrorCode["SignUpTooManyRequests"] = 509] = "SignUpTooManyRequests"; ErrorCode[ErrorCode["EmailInUse"] = 510] = "EmailInUse"; ErrorCode[ErrorCode["CellPhoneInUse"] = 511] = "CellPhoneInUse"; ErrorCode[ErrorCode["UnknownObject"] = 512] = "UnknownObject"; ErrorCode[ErrorCode["InvalidPassword"] = 513] = "InvalidPassword"; ErrorCode[ErrorCode["IncorrectPassword"] = 514] = "IncorrectPassword"; ErrorCode[ErrorCode["UserActivationLinkExpired"] = 515] = "UserActivationLinkExpired"; ErrorCode[ErrorCode["LinkRequestExpired"] = 516] = "LinkRequestExpired"; ErrorCode[ErrorCode["ChargerDeviceIdExists"] = 517] = "ChargerDeviceIdExists"; ErrorCode[ErrorCode["UnknownDeviceId"] = 518] = "UnknownDeviceId"; ErrorCode[ErrorCode["UnknownCommand"] = 519] = "UnknownCommand"; ErrorCode[ErrorCode["ErrorCommunicatingWithDevice"] = 520] = "ErrorCommunicatingWithDevice"; ErrorCode[ErrorCode["StringIsNotAWellFormedVersion"] = 521] = "StringIsNotAWellFormedVersion"; ErrorCode[ErrorCode["FirmwareVersionExists"] = 522] = "FirmwareVersionExists"; ErrorCode[ErrorCode["FirmwareFileExists"] = 523] = "FirmwareFileExists"; ErrorCode[ErrorCode["CreateConflict"] = 524] = "CreateConflict"; ErrorCode[ErrorCode["DeviceFirmwareNotConfigured"] = 525] = "DeviceFirmwareNotConfigured"; ErrorCode[ErrorCode["FeatureNotEnabled"] = 526] = "FeatureNotEnabled"; ErrorCode[ErrorCode["NotSupported"] = 527] = "NotSupported"; ErrorCode[ErrorCode["DeviceCommandRejected"] = 528] = "DeviceCommandRejected"; ErrorCode[ErrorCode["InvalidFormat"] = 529] = "InvalidFormat"; ErrorCode[ErrorCode["MailSendFailed"] = 530] = "MailSendFailed"; ErrorCode[ErrorCode["ConcurrencyError"] = 531] = "ConcurrencyError"; ErrorCode[ErrorCode["ConfigurationError"] = 532] = "ConfigurationError"; ErrorCode[ErrorCode["Forbidden"] = 533] = "Forbidden"; ErrorCode[ErrorCode["InstallationTypeViolation"] = 534] = "InstallationTypeViolation"; ErrorCode[ErrorCode["PaymentFailed"] = 535] = "PaymentFailed"; ErrorCode[ErrorCode["PaymentAuthorizationRequired"] = 536] = "PaymentAuthorizationRequired"; ErrorCode[ErrorCode["OperationFailedActiveSubscriptions"] = 537] = "OperationFailedActiveSubscriptions"; ErrorCode[ErrorCode["OperationFailedDueToChargerState"] = 538] = "OperationFailedDueToChargerState"; ErrorCode[ErrorCode["InstallationConstraintViolation"] = 539] = "InstallationConstraintViolation"; ErrorCode[ErrorCode["UnknownInstallationId"] = 540] = "UnknownInstallationId"; ErrorCode[ErrorCode["UnknownEnergySensorId"] = 541] = "UnknownEnergySensorId"; })(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {})); /** * * * 0 = None * * 1 = Api_MessageSubscription * * 2 = Authentication_Internal * * 4 = PowerManagement_Apm * * 8 = PowerManagement_EcoMode * * 16 = PowerManagement_Schedule * * 32 = PowerManagement_Apm_PowerLimit * * 64 = Connectivity_4G * * 128 = Authentication_Ocpp * * 32768 = LoadBalacing * @format int32 */ var Features; (function (Features) { Features[Features["None"] = 0] = "None"; Features[Features["ApiMessageSubscription"] = 1] = "ApiMessageSubscription"; Features[Features["AuthenticationInternal"] = 2] = "AuthenticationInternal"; Features[Features["PowerManagementApm"] = 4] = "PowerManagementApm"; Features[Features["PowerManagementEcoMode"] = 8] = "PowerManagementEcoMode"; Features[Features["PowerManagementSchedule"] = 16] = "PowerManagementSchedule"; Features[Features["PowerManagementApmPowerLimit"] = 32] = "PowerManagementApmPowerLimit"; Features[Features["Connectivity4G"] = 64] = "Connectivity4G"; Features[Features["AuthenticationOcpp"] = 128] = "AuthenticationOcpp"; Features[Features["LoadBalacing"] = 32768] = "LoadBalacing"; })(Features = exports.Features || (exports.Features = {})); /** * * * 0 = User * * 1 = Charger * * 2 = ChargeCardName * @format int32 */ var GroupByOptions; (function (GroupByOptions) { GroupByOptions[GroupByOptions["User"] = 0] = "User"; GroupByOptions[GroupByOptions["Charger"] = 1] = "Charger"; GroupByOptions[GroupByOptions["ChargeCardName"] = 2] = "ChargeCardName"; })(GroupByOptions = exports.GroupByOptions || (exports.GroupByOptions = {})); /** * * * 0 = Native * * 1 = WebHooks * * 2 = Ocpp * @format int32 */ var InstallationAuthenticationType; (function (InstallationAuthenticationType) { InstallationAuthenticationType[InstallationAuthenticationType["Native"] = 0] = "Native"; InstallationAuthenticationType[InstallationAuthenticationType["WebHooks"] = 1] = "WebHooks"; InstallationAuthenticationType[InstallationAuthenticationType["Ocpp"] = 2] = "Ocpp"; })(InstallationAuthenticationType = exports.InstallationAuthenticationType || (exports.InstallationAuthenticationType = {})); /** * * * 0 = Manual * * 1 = Schedule * * 2 = Auto * @format int32 */ var InstallationAvailableCurrentMode; (function (InstallationAvailableCurrentMode) { InstallationAvailableCurrentMode[InstallationAvailableCurrentMode["Manual"] = 0] = "Manual"; InstallationAvailableCurrentMode[InstallationAvailableCurrentMode["Schedule"] = 1] = "Schedule"; InstallationAvailableCurrentMode[InstallationAvailableCurrentMode["Auto"] = 2] = "Auto"; })(InstallationAvailableCurrentMode = exports.InstallationAvailableCurrentMode || (exports.InstallationAvailableCurrentMode = {})); /** * Determines the detail level to return for an installation. * * 0 = Default * * 1 = UserDetails * @format int32 */ var InstallationDetailLevelFlags; (function (InstallationDetailLevelFlags) { InstallationDetailLevelFlags[InstallationDetailLevelFlags["Default"] = 0] = "Default"; InstallationDetailLevelFlags[InstallationDetailLevelFlags["UserDetails"] = 1] = "UserDetails"; })(InstallationDetailLevelFlags = exports.InstallationDetailLevelFlags || (exports.InstallationDetailLevelFlags = {})); /** * * * 0 = None * * 1 = ServicePaymentPastDue * * 2 = ServicePaymentUnpaid * @format int32 */ var InstallationNotifications; (function (InstallationNotifications) { InstallationNotifications[InstallationNotifications["None"] = 0] = "None"; InstallationNotifications[InstallationNotifications["ServicePaymentPastDue"] = 1] = "ServicePaymentPastDue"; InstallationNotifications[InstallationNotifications["ServicePaymentUnpaid"] = 2] = "ServicePaymentUnpaid"; })(InstallationNotifications = exports.InstallationNotifications || (exports.InstallationNotifications = {})); /** * * * 0 = Pro * * 1 = Smart * @format int32 */ var InstallationTypeCode; (function (InstallationTypeCode) { InstallationTypeCode[InstallationTypeCode["Pro"] = 0] = "Pro"; InstallationTypeCode[InstallationTypeCode["Smart"] = 1] = "Smart"; })(InstallationTypeCode = exports.InstallationTypeCode || (exports.InstallationTypeCode = {})); /** * * * 0 = Ok * * 1 = EcoScheduleUpdated * @format int32 */ var InstallationUpdateStatusCodes; (function (InstallationUpdateStatusCodes) { InstallationUpdateStatusCodes[InstallationUpdateStatusCodes["Ok"] = 0] = "Ok"; InstallationUpdateStatusCodes[InstallationUpdateStatusCodes["EcoScheduleUpdated"] = 1] = "EcoScheduleUpdated"; })(InstallationUpdateStatusCodes = exports.InstallationUpdateStatusCodes || (exports.InstallationUpdateStatusCodes = {})); /** * * * 1 = One * * 3 = Three * @format int32 */ var MaxPhase; (function (MaxPhase) { MaxPhase[MaxPhase["One"] = 1] = "One"; MaxPhase[MaxPhase["Three"] = 3] = "Three"; })(MaxPhase = exports.MaxPhase || (exports.MaxPhase = {})); /** * * * 0 = Success * * 1 = Error * * 2 = Information * * 3 = Warning * * 500 = KnownErrors * * 501 = UnknownObject * @format int32 */ var MessageCode; (function (MessageCode) { MessageCode[MessageCode["Success"] = 0] = "Success"; MessageCode[MessageCode["Error"] = 1] = "Error"; MessageCode[MessageCode["Information"] = 2] = "Information"; MessageCode[MessageCode["Warning"] = 3] = "Warning"; MessageCode[MessageCode["KnownErrors"] = 500] = "KnownErrors"; MessageCode[MessageCode["UnknownObject"] = 501] = "UnknownObject"; })(MessageCode = exports.MessageCode || (exports.MessageCode = {})); /** * * * 0 = Unknown * * 1 = IT_1_Phase * * 2 = IT_3_Phase * * 3 = TN_1_Phase * * 4 = TN_3_Phase * @format int32 */ var NetworkType; (function (NetworkType) { NetworkType[NetworkType["Unknown"] = 0] = "Unknown"; NetworkType[NetworkType["IT1Phase"] = 1] = "IT1Phase"; NetworkType[NetworkType["IT3Phase"] = 2] = "IT3Phase"; NetworkType[NetworkType["TN1Phase"] = 3] = "TN1Phase"; NetworkType[NetworkType["TN3Phase"] = 4] = "TN3Phase"; })(NetworkType = exports.NetworkType || (exports.NetworkType = {})); /** * * * 0 = Unknown * * 1 = Installation * * 2 = Circuit * * 3 = Charger * * 4 = User * * 5 = UserGroup * * 6 = InactiveUser * * 7 = InvitedUser * * 8 = Country * @format int32 */ var ObjectType; (function (ObjectType) { ObjectType[ObjectType["Unknown"] = 0] = "Unknown"; ObjectType[ObjectType["Installation"] = 1] = "Installation"; ObjectType[ObjectType["Circuit"] = 2] = "Circuit"; ObjectType[ObjectType["Charger"] = 3] = "Charger"; ObjectType[ObjectType["User"] = 4] = "User"; ObjectType[ObjectType["UserGroup"] = 5] = "UserGroup"; ObjectType[ObjectType["InactiveUser"] = 6] = "InactiveUser"; ObjectType[ObjectType["InvitedUser"] = 7] = "InvitedUser"; ObjectType[ObjectType["Country"] = 8] = "Country"; })(ObjectType = exports.ObjectType || (exports.ObjectType = {})); /** * * * 0 = Unknown * * 1 = OfflineMode * * 120 = AuthenticationRequired * * 130 = PaymentActive * * 131 = PaymentCurrency * * 132 = PaymentSessionUnitPrice * * 133 = PaymentEnergyUnitPrice * * 134 = PaymentTimeUnitPrice * * 150 = CommunicationMode * * 151 = PermanentCableLock * * 152 = ProductCode * * 153 = HmiBrightness * * 154 = LockCableWhenConnected * * 155 = SoftStartDisabled * * 156 = FirmwareApiHost * * 170 = MIDBlinkEnabled * * 180 = ProductionTesterEnabled * * 181 = ProductionTestStationOverride * * 201 = TemperatureInternal5 * * 202 = TemperatureInternal6 * * 203 = TemperatureInternalLimit * * 241 = TemperatureInternalMaxLimit * * 270 = Humidity * * 501 = VoltagePhase1 * * 502 = VoltagePhase2 * * 503 = VoltagePhase3 * * 507 = CurrentPhase1 * * 508 = CurrentPhase2 * * 509 = CurrentPhase3 * * 510 = ChargerMaxCurrent * * 511 = ChargerMinCurrent * * 512 = ActivePhases * * 513 = TotalChargePower * * 515 = RcdCurrent * * 517 = Internal12vCurrent * * 518 = PowerFactor * * 519 = SetPhases * * 520 = MaxPhases * * 522 = ChargerOfflinePhase * * 523 = ChargerOfflineCurrent * * 540 = RcdCalibration * * 541 = RcdCalibrationNoise * * 553 = TotalChargePowerSession * * 554 = SignedMeterValue * * 555 = SignedMeterValueInterval * * 560 = SessionEnergyCountExportActive * * 561 = SessionEnergyCountExportReactive * * 562 = SessionEnergyCountImportActive * * 563 = SessionEnergyCountImportReactive * * 570 = SoftStartTime * * 701 = ChargeDuration * * 702 = ChargeMode * * 703 = ChargePilotLevelInstant * * 704 = ChargePilotLevelAverage * * 706 = PilotVsProximityTime * * 707 = ChargeCurrentInstallationMaxLimit * * 708 = ChargeCurrentSet * * 710 = ChargerOperationMode * * 711 = IsEnabled * * 712 = IsStandAlone * * 713 = ChargerCurrentUserUuidDeprecated * * 714 = CableType * * 715 = NetworkType * * 716 = DetectedCar * * 717 = GridTestResult * * 718 = FinalStopActive * * 721 = SessionIdentifier * * 722 = ChargerCurrentUserUuid * * 723 = CompletedSession * * 750 = NewChargeCard * * 751 = AuthenticationListVersion * * 752 = EnabledNfcTechnologies * * 753 = LteRoamingDisabled * * 800 = InstallationId * * 801 = RoutingId * * 803 = Notifications * * 804 = Warnings * * 805 = DiagnosticsMode * * 807 = InternalDiagnosticsLog * * 808 = DiagnosticsString * * 809 = CommunicationSignalStrength * * 810 = CloudConnectionStatus * * 811 = McuResetSource * * 812 = McuRxErrors * * 813 = McuToVariscitePacketErrors * * 814 = VarisciteToMcuPacketErrors * * 820 = UptimeVariscite * * 821 = UptimeMCU * * 850 = CarSessionLog * * 851 = CommunicationModeConfigurationInconsistency * * 852 = RawPilotMonitor * * 853 = IT3PhaseDiagnosticsLog * * 854 = PilotTestResults * * 855 = UnconditionalNfcDetectionIndication * * 899 = EmcTestCounter * * 900 = ProductionTestResults * * 901 = PostProductionTestResults * * 908 = SmartMainboardSoftwareApplicationVersion * * 909 = SmartMainboardSoftwareBootloaderVersion * * 911 = SmartComputerSoftwareApplicationVersion * * 912 = SmartComputerSoftwareBootloaderVersion * * 913 = SmartComputerHardwareVersion * * 950 = MacMain * * 951 = MacPlcModuleGrid * * 952 = MacWiFi * * 953 = MacPlcModuleEv * * 960 = LteImsi * * 961 = LteMsisdn * * 962 = LteIccid * * 963 = LteImei * * 970 = ProductionTestStationNumber * * 980 = MIDCalibration * * -3 = IsOcppConnected * * -2 = IsOnline * * -1 = Pulse * @format int32 */ var ObservationId; (function (ObservationId) { ObservationId[ObservationId["Unknown"] = 0] = "Unknown"; ObservationId[ObservationId["OfflineMode"] = 1] = "OfflineMode"; ObservationId[ObservationId["AuthenticationRequired"] = 120] = "AuthenticationRequired"; ObservationId[ObservationId["PaymentActive"] = 130] = "PaymentActive"; ObservationId[ObservationId["PaymentCurrency"] = 131] = "PaymentCurrency"; ObservationId[ObservationId["PaymentSessionUnitPrice"] = 132] = "PaymentSessionUnitPrice"; ObservationId[ObservationId["PaymentEnergyUnitPrice"] = 133] = "PaymentEnergyUnitPrice"; ObservationId[ObservationId["PaymentTimeUnitPrice"] = 134] = "PaymentTimeUnitPrice"; ObservationId[ObservationId["CommunicationMode"] = 150] = "CommunicationMode"; ObservationId[ObservationId["PermanentCableLock"] = 151] = "PermanentCableLock"; ObservationId[ObservationId["ProductCode"] = 152] = "ProductCode"; ObservationId[ObservationId["HmiBrightness"] = 153] = "HmiBrightness"; ObservationId[ObservationId["LockCableWhenConnected"] = 154] = "LockCableWhenConnected"; ObservationId[ObservationId["SoftStartDisabled"] = 155] = "SoftStartDisabled"; ObservationId[ObservationId["FirmwareApiHost"] = 156] = "FirmwareApiHost"; ObservationId[ObservationId["MIDBlinkEnabled"] = 170] = "MIDBlinkEnabled"; ObservationId[ObservationId["ProductionTesterEnabled"] = 180] = "ProductionTesterEnabled"; ObservationId[ObservationId["ProductionTestStationOverride"] = 181] = "ProductionTestStationOverride"; ObservationId[ObservationId["TemperatureInternal5"] = 201] = "TemperatureInternal5"; ObservationId[ObservationId["TemperatureInternal6"] = 202] = "TemperatureInternal6"; ObservationId[ObservationId["TemperatureInternalLimit"] = 203] = "TemperatureInternalLimit"; ObservationId[ObservationId["TemperatureInternalMaxLimit"] = 241] = "TemperatureInternalMaxLimit"; ObservationId[ObservationId["Humidity"] = 270] = "Humidity"; ObservationId[ObservationId["VoltagePhase1"] = 501] = "VoltagePhase1"; ObservationId[ObservationId["VoltagePhase2"] = 502] = "VoltagePhase2"; ObservationId[ObservationId["VoltagePhase3"] = 503] = "VoltagePhase3"; ObservationId[ObservationId["CurrentPhase1"] = 507] = "CurrentPhase1"; ObservationId[ObservationId["CurrentPhase2"] = 508] = "CurrentPhase2"; ObservationId[ObservationId["CurrentPhase3"] = 509] = "CurrentPhase3"; ObservationId[ObservationId["ChargerMaxCurrent"] = 510] = "ChargerMaxCurrent"; ObservationId[ObservationId["ChargerMinCurrent"] = 511] = "ChargerMinCurrent"; ObservationId[ObservationId["ActivePhases"] = 512] = "ActivePhases"; ObservationId[ObservationId["TotalChargePower"] = 513] = "TotalChargePower"; ObservationId[ObservationId["RcdCurrent"] = 515] = "RcdCurrent"; ObservationId[ObservationId["Internal12VCurrent"] = 517] = "Internal12VCurrent"; ObservationId[ObservationId["PowerFactor"] = 518] = "PowerFactor"; ObservationId[ObservationId["SetPhases"] = 519] = "SetPhases"; ObservationId[ObservationId["MaxPhases"] = 520] = "MaxPhases"; ObservationId[ObservationId["ChargerOfflinePhase"] = 522] = "ChargerOfflinePhase"; ObservationId[ObservationId["ChargerOfflineCurrent"] = 523] = "ChargerOfflineCurrent"; ObservationId[ObservationId["RcdCalibration"] = 540] = "RcdCalibration"; ObservationId[ObservationId["RcdCalibrationNoise"] = 541] = "RcdCalibrationNoise"; ObservationId[ObservationId["TotalChargePowerSession"] = 553] = "TotalChargePowerSession"; ObservationId[ObservationId["SignedMeterValue"] = 554] = "SignedMeterValue"; ObservationId[ObservationId["SignedMeterValueInterval"] = 555] = "SignedMeterValueInterval"; ObservationId[ObservationId["SessionEnergyCountExportActive"] = 560] = "SessionEnergyCountExportActive"; ObservationId[ObservationId["SessionEnergyCountExportReactive"] = 561] = "SessionEnergyCountExportReactive"; ObservationId[ObservationId["SessionEnergyCountImportActive"] = 562] = "SessionEnergyCountImportActive"; ObservationId[ObservationId["SessionEnergyCountImportReactive"] = 563] = "SessionEnergyCountImportReactive"; ObservationId[ObservationId["SoftStartTime"] = 570] = "SoftStartTime"; ObservationId[ObservationId["ChargeDuration"] = 701] = "ChargeDuration"; ObservationId[ObservationId["ChargeMode"] = 702] = "ChargeMode"; ObservationId[ObservationId["ChargePilotLevelInstant"] = 703] = "ChargePilotLevelInstant"; ObservationId[ObservationId["ChargePilotLevelAverage"] = 704] = "ChargePilotLevelAverage"; ObservationId[ObservationId["PilotVsProximityTime"] = 706] = "PilotVsProximityTime"; ObservationId[ObservationId["ChargeCurrentInstallationMaxLimit"] = 707] = "ChargeCurrentInstallationMaxLimit"; ObservationId[ObservationId["ChargeCurrentSet"] = 708] = "ChargeCurrentSet"; ObservationId[ObservationId["ChargerOperationMode"] = 710] = "ChargerOperationMode"; ObservationId[ObservationId["IsEnabled"] = 711] = "IsEnabled"; ObservationId[ObservationId["IsStandAlone"] = 712] = "IsStandAlone"; ObservationId[ObservationId["ChargerCurrentUserUuidDeprecated"] = 713] = "ChargerCurrentUserUuidDeprecated"; ObservationId[ObservationId["CableType"] = 714] = "CableType"; ObservationId[ObservationId["NetworkType"] = 715] = "NetworkType"; ObservationId[ObservationId["DetectedCar"] = 716] = "DetectedCar"; ObservationId[ObservationId["GridTestResult"] = 717] = "GridTestResult"; ObservationId[ObservationId["FinalStopActive"] = 718] = "FinalStopActive"; ObservationId[ObservationId["SessionIdentifier"] = 721] = "SessionIdentifier"; ObservationId[ObservationId["ChargerCurrentUserUuid"] = 722] = "ChargerCurrentUserUuid"; ObservationId[ObservationId["CompletedSession"] = 723] = "CompletedSession"; ObservationId[ObservationId["NewChargeCard"] = 750] = "NewChargeCard"; ObservationId[ObservationId["AuthenticationListVersion"] = 751] = "AuthenticationListVersion"; ObservationId[ObservationId["EnabledNfcTechnologies"] = 752] = "EnabledNfcTechnologies"; ObservationId[ObservationId["LteRoamingDisabled"] = 753] = "LteRoamingDisabled"; ObservationId[ObservationId["InstallationId"] = 800] = "InstallationId"; ObservationId[ObservationId["RoutingId"] = 801] = "RoutingId"; ObservationId[ObservationId["Notifications"] = 803] = "Notifications"; ObservationId[ObservationId["Warnings"] = 804] = "Warnings"; ObservationId[ObservationId["DiagnosticsMode"] = 805] = "DiagnosticsMode"; ObservationId[ObservationId["InternalDiagnosticsLog"] = 807] = "InternalDiagnosticsLog"; ObservationId[ObservationId["DiagnosticsString"] = 808] = "DiagnosticsString"; ObservationId[ObservationId["CommunicationSignalStrength"] = 809] = "CommunicationSignalStrength"; ObservationId[ObservationId["CloudConnectionStatus"] = 810] = "CloudConnectionStatus"; ObservationId[ObservationId["McuResetSource"] = 811] = "McuResetSource"; ObservationId[ObservationId["McuRxErrors"] = 812] = "McuRxErrors"; ObservationId[ObservationId["McuToVariscitePacketErrors"] = 813] = "McuToVariscitePacketErrors"; ObservationId[ObservationId["VarisciteToMcuPacketErrors"] = 814] = "VarisciteToMcuPacketErrors"; ObservationId[ObservationId["UptimeVariscite"] = 820] = "UptimeVariscite"; ObservationId[ObservationId["UptimeMCU"] = 821] = "UptimeMCU"; ObservationId[ObservationId["CarSessionLog"] = 850] = "CarSessionLog"; ObservationId[ObservationId["CommunicationModeConfigurationInconsistency"] = 851] = "CommunicationModeConfigurationInconsistency"; ObservationId[ObservationId["RawPilotMonitor"] = 852] = "RawPilotMonitor"; ObservationId[ObservationId["IT3PhaseDiagnosticsLog"] = 853] = "IT3PhaseDiagnosticsLog"; ObservationId[ObservationId["PilotTestResults"] = 854] = "PilotTestResults"; ObservationId[ObservationId["UnconditionalNfcDetectionIndication"] = 855] = "UnconditionalNfcDetectionIndication"; ObservationId[ObservationId["EmcTestCounter"] = 899] = "EmcTestCounter"; ObservationId[ObservationId["ProductionTestResults"] = 900] = "ProductionTestResults"; ObservationId[ObservationId["PostProductionTestResults"] = 901] = "PostProductionTestResults"; ObservationId[ObservationId["SmartMainboardSoftwareApplicationVersion"] = 908] = "SmartMainboardSoftwareApplicationVersion"; ObservationId[ObservationId["SmartMainboardSoftwareBootloaderVersion"] = 909] = "SmartMainboardSoftwareBootloaderVersion"; ObservationId[ObservationId["SmartComputerSoftwareApplicationVersion"] = 911] = "SmartComputerSoftwareApplicationVersion"; ObservationId[ObservationId["SmartComputerSoftwareBootloaderVersion"] = 912] = "SmartComputerSoftwareBootloaderVersion"; ObservationId[ObservationId["SmartComputerHardwareVersion"] = 913] = "SmartComputerHardwareVersion"; ObservationId[ObservationId["MacMain"] = 950] = "MacMain"; ObservationId[ObservationId["MacPlcModuleGrid"] = 951] = "MacPlcModuleGrid"; ObservationId[ObservationId["MacWiFi"] = 952] = "MacWiFi"; ObservationId[ObservationId["MacPlcModuleEv"] = 953] = "MacPlcModuleEv"; ObservationId[ObservationId["LteImsi"] = 960] = "LteImsi"; ObservationId[ObservationId["LteMsisdn"] = 961] = "LteMsisdn"; ObservationId[ObservationId["LteIccid"] = 962] = "LteIccid"; ObservationId[ObservationId["LteImei"] = 963] = "LteImei"; ObservationId[ObservationId["ProductionTestStationNumber"] = 970] = "ProductionTestStationNumber"; ObservationId[ObservationId["MIDCalibration"] = 980] = "MIDCalibration"; ObservationId[ObservationId["IsOcppConnected"] = -3] = "IsOcppConnected"; ObservationId[ObservationId["IsOnline"] = -2] = "IsOnline"; ObservationId[ObservationId["Pulse"] = -1] = "Pulse"; })(ObservationId = exports.ObservationId || (exports.ObservationId = {})); /** * * * 0 = None * * 1 = Phase_1 * * 2 = Phase_2 * * 4 = Phase_3 * * 7 = All * @format int32 */ var Phases; (function (Phases) { Phases[Phases["None"] = 0] = "None"; Phases[Phases["Phase1"] = 1] = "Phase1"; Phases[Phases["Phase2"] = 2] = "Phase2"; Phases[Phases["Phase3"] = 4] = "Phase3"; Phases[Phases["All"] = 7] = "All"; })(Phases = exports.Phases || (exports.Phases = {})); /** * * * 0 = Unsupported * * 1 = EuroPerMWh * @format int32 */ var PriceUnit; (function (PriceUnit) { PriceUnit[PriceUnit["Unsupported"] = 0] = "Unsupported"; PriceUnit[PriceUnit["EuroPerMWh"] = 1] = "EuroPerMWh"; })(PriceUnit = exports.PriceUnit || (exports.PriceUnit = {})); /** * * * 0 = Unknown * * 1 = Energy * * 3 = EnergyWithRipple * @format int32 */ var SensorType; (function (SensorType) { SensorType[SensorType["Unknown"] = 0] = "Unknown"; SensorType[SensorType["Energy"] = 1] = "Energy"; SensorType[SensorType["EnergyWithRipple"] = 3] = "EnergyWithRipple"; })(SensorType = exports.SensorType || (exports.SensorType = {})); /** * * * 120 = AuthenticationRequired * * 130 = PaymentActive * * 131 = PaymentCurrency * * 132 = PaymentSessionUnitPrice * * 133 = PaymentEnergyUnitPrice * * 134 = PaymentTimeUnitPrice * * 150 = CommunicationMode * * 151 = PermanentCableLock * * 153 = HmiBrightness * * 154 = LockCableWhenConnected * * 155 = SoftStartDisabled * * 170 = MIDBlinkEnabled * * 510 = CurrentInMaximum * * 511 = CurrentInMinimum * * 520 = MaxPhases * * 522 = DefaultOfflinePhase * * 523 = DefaultOfflineCurrent * * 555 = SignedMeterValueInterval * * 707 = ChargeCurrentInstallationMaxLimit * * 711 = IsEnabled * * 712 = Standalone * * 715 = NetworkType * * 752 = EnabledNfcTechnologies * * 753 = LteRoamingDisabled * * 800 = InstallationId * * 801 = RoutingId * * 802 = ChargePointName * * 805 = DiagnosticsMode * * 806 = DisableBLEChargePointName * * 807 = InternalDiagnosticsLog * * 855 = UnconditionalNfcDetectionIndication * @format int32 */ var SettingId; (function (SettingId) { SettingId[SettingId["AuthenticationRequired"] = 120] = "AuthenticationRequired"; SettingId[SettingId["PaymentActive"] = 130] = "PaymentActive"; SettingId[SettingId["PaymentCurrency"] = 131] = "PaymentCurrency"; SettingId[SettingId["PaymentSessionUnitPrice"] = 132] = "PaymentSessionUnitPrice"; SettingId[SettingId["PaymentEnergyUnitPrice"] = 133] = "PaymentEnergyUnitPrice"; SettingId[SettingId["PaymentTimeUnitPrice"] = 134] = "PaymentTimeUnitPrice"; SettingId[SettingId["CommunicationMode"] = 150] = "CommunicationMode"; SettingId[SettingId["PermanentCableLock"] = 151] = "PermanentCableLock"; SettingId[SettingId["HmiBrightness"] = 153] = "HmiBrightness"; SettingId[SettingId["LockCableWhenConnected"] = 154] = "LockCableWhenConnected"; SettingId[SettingId["SoftStartDisabled"] = 155] = "SoftStartDisabled"; SettingId[SettingId["MIDBlinkEnabled"] = 170] = "MIDBlinkEnabled"; SettingId[SettingId["CurrentInMaximum"] = 510] = "CurrentInMaximum"; SettingId[SettingId["CurrentInMinimum"] = 511] = "CurrentInMinimum"; SettingId[SettingId["MaxPhases"] = 520] = "MaxPhases"; SettingId[SettingId["DefaultOfflinePhase"] = 522] = "DefaultOfflinePhase"; SettingId[SettingId["DefaultOfflineCurrent"] = 523] = "DefaultOfflineCurrent"; SettingId[SettingId["SignedMeterValueInterval"] = 555] = "SignedMeterValueInterval"; SettingId[SettingId["ChargeCurrentInstallationMaxLimit"] = 707] = "ChargeCurrentInstallationMaxLimit"; SettingId[SettingId["IsEnabled"] = 711] = "IsEnabled"; SettingId[SettingId["Standalone"] = 712] = "Standalone"; SettingId[SettingId["NetworkType"] = 715] = "NetworkType"; SettingId[SettingId["EnabledNfcTechnologies"] = 752] = "EnabledNfcTechnologies"; SettingId[SettingId["LteRoamingDisabled"] = 753] = "LteRoamingDisabled"; SettingId[SettingId["InstallationId"] = 800] = "InstallationId"; SettingId[SettingId["RoutingId"] = 801] = "RoutingId"; SettingId[SettingId["ChargePointName"] = 802] = "ChargePointName"; SettingId[SettingId["DiagnosticsMode"] = 805] = "DiagnosticsMode"; SettingId[SettingId["DisableBLEChargePointName"] = 806] = "DisableBLEChargePointName"; SettingId[SettingId["InternalDiagnosticsLog"] = 807] = "InternalDiagnosticsLog"; SettingId[SettingId["UnconditionalNfcDetectionIndication"] = 855] = "UnconditionalNfcDetectionIndication"; })(SettingId = exports.SettingId || (exports.SettingId = {})); /** * * * 1 = AddSense * @format int32 */ var UserActionType; (function (UserActionType) { UserActionType[UserActionType["AddSense"] = 1] = "AddSense"; })(UserActionType = exports.UserActionType || (exports.UserActionType = {})); /** * * * 0 = None * * 1 = User * * 2 = Owner * * 4 = Maintainer * * 8 = Administrator * * 15 = Any * * 16 = Onboarding * * 32 = DeviceAdministrator * * 64 = PartnerAdministrator * * 128 = Technical * * 256 = InternalData * @format int32 */ var UserRoles; (function (UserRoles) { UserRoles[UserRoles["None"] = 0] = "None"; UserRoles[UserRoles["User"] = 1] = "User"; UserRoles[UserRoles["Owner"] = 2] = "Owner"; UserRoles[UserRoles["Maintainer"] = 4] = "Maintainer"; UserRoles[UserRoles["Administrator"] = 8] = "Administrator"; UserRoles[UserRoles["Any"] = 15] = "Any"; UserRoles[UserRoles["Onboarding"] = 16] = "Onboarding"; UserRoles[UserRoles["DeviceAdministrator"] = 32] = "DeviceAdministrator"; UserRoles[UserRoles["PartnerAdministrator"] = 64] = "PartnerAdministrator"; UserRoles[UserRoles["Technical"] = 128] = "Technical"; UserRoles[UserRoles["InternalData"] = 256] = "InternalData"; })(UserRoles = exports.UserRoles || (exports.UserRoles = {})); /** * * * 1 = WARNING_MCU_BOOTLOADER * * 2 = WARNING_FPGA_INIT_FAILED * * 4 = WARNING_VARISCITE_ILLEGAL_PHASE * @format int32 */ var VarisciteWarnings; (function (VarisciteWarnings) { VarisciteWarnings[VarisciteWarnings["WARNING_MCU_BOOTLOADER"] = 1] = "WARNING_MCU_BOOTLOADER"; VarisciteWarnings[VarisciteWarnings["WARNING_FPGA_INIT_FAILED"] = 2] = "WARNING_FPGA_INIT_FAILED"; VarisciteWarnings[VarisciteWarnings["WARNING_VARISCITE_ILLEGAL_PHASE"] = 4] = "WARNING_VARISCITE_ILLEGAL_PHASE"; })(VarisciteWarnings = exports.VarisciteWarnings || (exports.VarisciteWarnings = {})); const axios_1 = __importDefault(require("axios")); var ContentType; (function (ContentType) { ContentType["Json"] = "application/json"; ContentType["FormData"] = "multipart/form-data"; ContentType["UrlEncoded"] = "application/x-www-form-urlencoded"; ContentType["Text"] = "text/plain"; })(ContentType = exports.ContentType || (exports.ContentType = {})); class HttpClient { constructor({ securityWorker, secure, format, ...axiosConfig } = {}) { this.securityData = null; this.setSecurityData = (data) => { this.securityData = data; }; this.request = async ({ secure, path, type, query, format, body, ...params }) => { const secureParams = ((typeof secure === "boolean" ? secure : this.secure) && this.securityWorker && (await this.securityWorker(this.securityData))) || {}; const requestParams = this.mergeRequestParams(params, secureParams); const responseFormat = format || this.format || undefined; if (type === ContentType.FormData && body && body !== null && typeof body === "object") { body = this.createFormData(body); } if (type === ContentType.Text && body && body !== null && typeof body !== "string") { body = JSON.stringify(body); } return this.instance .request({ ...requestParams, headers: { ...(requestParams.headers || {}), ...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}), }, params: query, responseType: responseFormat, data: body, url: path, }) .then((result) => (0, camel_case_response_1.camelCaseResponse)(result.data)); }; this.instance = axios_1.default.create({ ...axiosConfig, baseURL: axiosConfig.baseURL || "", }); this.secure = secure; this.format = format; this.securityWorker = securityWorker; } mergeRequestParams(params1, params2) { const method = params1.method || (params2 && params2.method); return { ...this.instance.defaults, ...params1, ...(params2 || {}), headers: { ...((method && this.instance.defaults.headers[method.toLowerCase()]) || {}), ...(params1.headers || {}), ...((params2 && params2.headers) || {}), }, }; } stringifyFormItem(formItem) { if (typeof formItem === "object" && formItem !== null) { return JSON.stringify(formItem); } else { return `${formItem}`; } } createFormData(input) { return Object.keys(input || {}).reduce((formData, key) => { const property = input[key]; const propertyContent = property instanceof Array ? property : [property]; for (const formItem of propertyContent) { const isFileType = formItem instanceof Buffer; formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem)); } return formData; }, new form_data_1.default()); } } exports.HttpClient = HttpClient; /** * @title Zaptec.ZapCloud.WebAPI * @version v1 */ class Api extends HttpClient { constructor() { super(...arguments); this.api = { /** * @description Default page size is 500 and maximum is 5000. * * @tags ChargeHistory * @name ChargehistoryList * @summary Get a list of all completed charge sessions accessible by the current user matching the filter options. * @request GET:/api/chargehistory * @secure */ chargehistoryList: (query, params = {}) => this.request({ path: `/api/chargehistory`, method: "GET", query: query, secure: true, format: "json", ...params, }), /** * @description Please note that this GET version of installationreport has been deprecated, use the POST version instead. GET requests are limited by 2048 character URL length, and will fail if the provided filted exceeds this length. * * @tags ChargeHistory * @name ChargehistoryInstallationreportList * @summary Get a usage report matching the provided filter options (require installation owner permissions). * @request GET:/api/chargehistory/installationreport * @deprecated * @secure */ chargehistoryInstallationreportList: (query, params = {}) => this.request({ path: `/api/chargehistory/installationreport`, method: "GET", query: query, secure: true, format: "json", ...params, }), /** * No description * * @tags ChargeHistory * @name ChargehistoryInstallationreportCreate * @summary Get a usage report matching the provided filter options (require installation owner permissions). * @request POST:/api/chargehistory/installationreport * @secure