'use strict'; const GIGYA_URL = "https://accounts.eu1.gigya.com"; const GIGYA_API_KEY = "3_4LKbCcMMcvjDm3X89LU4z4mNKYKdl_W0oD9w-Jvih21WqgJKtFZAnb9YdUgWT9_a"; const ACCOUNTS_URL = `${GIGYA_URL}/accounts`; const LOGIN_URL = `${ACCOUNTS_URL}.login`; const GET_ACCOUNT_INFO_URL = `${ACCOUNTS_URL}.getAccountInfo`; const GET_JWT_URL = `${ACCOUNTS_URL}.getJWT`; const GET_JWT_PUBLIC_KEY_URL = `${ACCOUNTS_URL}.getJWTPublicKey`; const LOGOUT_URL = `${ACCOUNTS_URL}.logout`; const GigyaApi = { /** * Gigya API KEY. * * For every request, put it as value for the param "apikey". */ KEY: GIGYA_API_KEY, /** * __Description__ : Login to Gigya service. Required to retrieve **login_token**. * * __Method__ : POST * * __Params__ : * - **apikey** : GigyaApi.KEY * - **loginID** : (user login) * - **password** : (user password) * * __Response Model__ : LoginInfo * (**login_token** stored in LoginInfo.SessionInfo.cookieValue) */ LOGIN_URL, /** * __Description__ : Get account info. Required to retrieve **personId**. * * __Method__ : POST * * __Params__ : * - **apikey** : GigyaApi.KEY * - **login_token** : (Gigya token retrieved with login API) * * __Response Model__ : AccountInfo * (**personId** stored in AccountInfo.AccountData.personId) */ GET_ACCOUNT_INFO_URL, /** * __Description__ : Get JWT. Required to retrieve **id_token** to use Kamereon API. * * __Method__ : POST * * __Params__ : * - **apikey** : GigyaApi.KEY * - **login_token** : (Gigya token retrieved with login API) * - **fields** : "data.personId,data.gigyaDataCenter" * - **expiration** : (expiration of JWT in millisecond) * * __Response Model__ : TokenInfo * (**id_token** stored in TokenInfo.id_token) */ GET_JWT_URL, /** * __Description__ : Get public info about JWT key. * * __Method__ : POST * * __Params__ : * - **apikey** : GigyaApi.KEY * - **login_token** : (Gigya token retrieved with login API) * * __Response Model__ : TokenPublicInfo */ GET_JWT_PUBLIC_KEY_URL, /** * __Description__ : Logout from Gigya service. * * __Method__ : POST * * __Params__ : * - **apikey** : GigyaApi.KEY * - **login_token** : (Gigya token retrieved with login API) * * __Response Model__ : LogoutInfo */ LOGOUT_URL }; var ChargingStatus = /* @__PURE__ */ ((ChargingStatus2) => { ChargingStatus2[ChargingStatus2["CHARGE_NOT_BLOCKED"] = -1] = "CHARGE_NOT_BLOCKED"; ChargingStatus2[ChargingStatus2["CHARGE_BLOCKED"] = 0] = "CHARGE_BLOCKED"; ChargingStatus2[ChargingStatus2["NEXT_CHARGE_BLOCKED"] = 1] = "NEXT_CHARGE_BLOCKED"; return ChargingStatus2; })(ChargingStatus || {}); var PlugStatus = /* @__PURE__ */ ((PlugStatus2) => { PlugStatus2[PlugStatus2["NOT_PLUGGED"] = 0] = "NOT_PLUGGED"; PlugStatus2[PlugStatus2["PLUGGED"] = 1] = "PLUGGED"; return PlugStatus2; })(PlugStatus || {}); const KCA_READ_ENDPOINTS = { "": { version: 2 }, "battery-inhibition-status": { version: 1 }, "battery-status": { version: 2 }, "charge-history": { version: 1 }, "charge-mode": { version: 1 }, "charge-schedule": { version: 1 }, "charges": { version: 1 }, "charging-settings": { version: 1 }, "cockpit": { version: 2 }, "hvac-history": { version: 1 }, "hvac-sessions": { version: 1 }, "hvac-settings": { version: 1 }, "hvac-status": { version: 1 }, "location": { version: 1 }, "lock-status": { version: 1 }, "notification-settings": { version: 1 }, "res-state": { version: 1 } }; const KCA_ACTION_ENDPOINTS = { "actions/charge-mode": { version: 1, type: "ChargeMode" }, "actions/charge-schedule": { version: 2, type: "ChargeSchedule" }, "actions/charging-start": { version: 1, type: "ChargingStart" }, "actions/hvac-schedule": { version: 2, type: "HvacSchedule" }, "actions/hvac-start": { version: 1, type: "HvacStart" }, "actions/refresh-battery-status": { version: 1, type: "RefreshBatteryStatus" }, "actions/refresh-hvac-status": { version: 1, type: "RefreshHvacStatus" }, "actions/refresh-location": { version: 1, type: "RefreshLocation" }, "actions/send-navigation": { version: 1, type: "SendNavigation" } }; const KCM_ACTION_ENDPOINTS = { "charge/pause-resume": { version: 1, type: "ChargePauseResume" } }; const PERIOD_FORMATS = { day: "YYYYMMDD", month: "YYYYMM" }; const PERIOD_TZ_FORMAT = "YYYY-MM-DDTHH:mm:ssZ"; const IMAGE_ORIENTATION_KEY = { iso: "mybrand_2", profile: "mybrand_5" }; const KAMEREON_URL = "https://api-wired-prod-1-euw1.wrd-aws.com"; const KAMEREON_API_KEY = "YjkKtHmGfaceeuExUDKGxrLZGGvtVS0J"; const COMMERCE_URL = `${KAMEREON_URL}/commerce/v1`; const ACCOUNT_URL = (accountId) => `${COMMERCE_URL}/accounts/${accountId}`; const CAR_KCA_ADAPTER_URL = (accountId, vin, version) => `${ACCOUNT_URL(accountId)}/kamereon/kca/car-adapter/v${version}/cars/${vin}`; const CAR_KCM_ADAPTER_URL = (accountId, vin, version) => `${ACCOUNT_URL(accountId)}/kamereon/kcm/v${version}/vehicles/${vin}`; const PERSON_URL = (personId) => `${COMMERCE_URL}/persons/${personId}`; const ACCOUNT_VEHICLES_URL = (accountId) => `${ACCOUNT_URL(accountId)}/vehicles`; const VEHICLE_CONTRACTS_URL = (accountId, vin) => `${ACCOUNT_URL(accountId)}/vehicles/${vin}/contracts`; const VEHICLE_DETAILS_URL = (accountId, vin) => `${ACCOUNT_URL(accountId)}/vehicles/${vin}/details`; const READ_VEHICLE_KCA_DATA_URL = (accountId, vin, version, endpoint) => `${CAR_KCA_ADAPTER_URL(accountId, vin, version)}/${endpoint}`; const READ_ADAPTER_URL = (accountId, vin) => READ_VEHICLE_KCA_DATA_URL(accountId, vin, KCA_READ_ENDPOINTS[""].version, ""); const READ_BATTERY_INHIBITION_STATUS_URL = (accountId, vin) => READ_VEHICLE_KCA_DATA_URL(accountId, vin, KCA_READ_ENDPOINTS["battery-inhibition-status"].version, "battery-inhibition-status"); const READ_BATTERY_STATUS_URL = (accountId, vin) => READ_VEHICLE_KCA_DATA_URL(accountId, vin, KCA_READ_ENDPOINTS["battery-status"].version, "battery-status"); const READ_CHARGE_HISTORY_URL = (accountId, vin) => READ_VEHICLE_KCA_DATA_URL(accountId, vin, KCA_READ_ENDPOINTS["charge-history"].version, "charge-history"); const READ_CHARGE_MODE_URL = (accountId, vin) => READ_VEHICLE_KCA_DATA_URL(accountId, vin, KCA_READ_ENDPOINTS["charge-mode"].version, "charge-mode"); const READ_CHARGE_SCHEDULE_URL = (accountId, vin) => READ_VEHICLE_KCA_DATA_URL(accountId, vin, KCA_READ_ENDPOINTS["charge-schedule"].version, "charge-schedule"); const READ_CHARGES_URL = (accountId, vin) => READ_VEHICLE_KCA_DATA_URL(accountId, vin, KCA_READ_ENDPOINTS["charges"].version, "charges"); const READ_CHARGING_SETTINGS_URL = (accountId, vin) => READ_VEHICLE_KCA_DATA_URL(accountId, vin, KCA_READ_ENDPOINTS["charging-settings"].version, "charging-settings"); const READ_COCKPIT_URL = (accountId, vin) => READ_VEHICLE_KCA_DATA_URL(accountId, vin, KCA_READ_ENDPOINTS["cockpit"].version, "cockpit"); const READ_HVAC_HISTORY_URL = (accountId, vin) => READ_VEHICLE_KCA_DATA_URL(accountId, vin, KCA_READ_ENDPOINTS["hvac-history"].version, "hvac-history"); const READ_HVAC_SESSIONS_URL = (accountId, vin) => READ_VEHICLE_KCA_DATA_URL(accountId, vin, KCA_READ_ENDPOINTS["hvac-sessions"].version, "hvac-sessions"); const READ_HVAC_SETTINGS_URL = (accountId, vin) => READ_VEHICLE_KCA_DATA_URL(accountId, vin, KCA_READ_ENDPOINTS["hvac-settings"].version, "hvac-settings"); const READ_HVAC_STATUS_URL = (accountId, vin) => READ_VEHICLE_KCA_DATA_URL(accountId, vin, KCA_READ_ENDPOINTS["hvac-status"].version, "hvac-status"); const READ_LOCATION_URL = (accountId, vin) => READ_VEHICLE_KCA_DATA_URL(accountId, vin, KCA_READ_ENDPOINTS["location"].version, "location"); const READ_LOCK_STATUS_URL = (accountId, vin) => READ_VEHICLE_KCA_DATA_URL(accountId, vin, KCA_READ_ENDPOINTS["lock-status"].version, "lock-status"); const READ_NOTIFICATION_SETTINGS_URL = (accountId, vin) => READ_VEHICLE_KCA_DATA_URL(accountId, vin, KCA_READ_ENDPOINTS["notification-settings"].version, "notification-settings"); const READ_RES_STATE_URL = (accountId, vin) => READ_VEHICLE_KCA_DATA_URL(accountId, vin, KCA_READ_ENDPOINTS["res-state"].version, "res-state"); const PERFORM_VEHICLE_KCA_ACTION_URL = (accountId, vin, version, endpoint) => `${CAR_KCA_ADAPTER_URL(accountId, vin, version)}/${endpoint}`; const PERFORM_VEHICLE_KCM_ACTION_URL = (accountId, vin, version, endpoint) => `${CAR_KCM_ADAPTER_URL(accountId, vin, version)}/${endpoint}`; const PERFORM_CHARGE_MODE_URL = (accountId, vin) => PERFORM_VEHICLE_KCA_ACTION_URL(accountId, vin, KCA_ACTION_ENDPOINTS["actions/charge-mode"].version, "actions/charge-mode"); const PERFORM_CHARGE_SCHEDULE_URL = (accountId, vin) => PERFORM_VEHICLE_KCA_ACTION_URL(accountId, vin, KCA_ACTION_ENDPOINTS["actions/charge-schedule"].version, "actions/charge-schedule"); const PERFORM_CHARGING_START_URL = (accountId, vin) => PERFORM_VEHICLE_KCA_ACTION_URL(accountId, vin, KCA_ACTION_ENDPOINTS["actions/charging-start"].version, "actions/charging-start"); const PERFORM_HVAC_SCHEDULE_URL = (accountId, vin) => PERFORM_VEHICLE_KCA_ACTION_URL(accountId, vin, KCA_ACTION_ENDPOINTS["actions/hvac-schedule"].version, "actions/hvac-schedule"); const PERFORM_HVAC_START_URL = (accountId, vin) => PERFORM_VEHICLE_KCA_ACTION_URL(accountId, vin, KCA_ACTION_ENDPOINTS["actions/hvac-start"].version, "actions/hvac-start"); const PERFORM_PAUSE_RESUME_URL = (accountId, vin) => PERFORM_VEHICLE_KCM_ACTION_URL(accountId, vin, KCM_ACTION_ENDPOINTS["charge/pause-resume"].version, "charge/pause-resume"); const PERFORM_REFRESH_BATTERY_STATUS = (accountId, vin) => PERFORM_VEHICLE_KCA_ACTION_URL(accountId, vin, KCA_ACTION_ENDPOINTS["actions/refresh-battery-status"].version, "actions/refresh-battery-status"); const PERFORM_REFRESH_HVAC_STATUS = (accountId, vin) => PERFORM_VEHICLE_KCA_ACTION_URL(accountId, vin, KCA_ACTION_ENDPOINTS["actions/refresh-hvac-status"].version, "actions/refresh-hvac-status"); const PERFORM_REFRESH_LOCATION = (accountId, vin) => PERFORM_VEHICLE_KCA_ACTION_URL(accountId, vin, KCA_ACTION_ENDPOINTS["actions/refresh-location"].version, "actions/refresh-location"); const KamereonApi = { /** * Kamereon API KEY. * * For every request, put it as value for the header "apikey". */ KEY: KAMEREON_API_KEY, /** * __Description__ : Get info of authenticated person. Required to retrieve **accountId**. * * __Method__ : GET * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * * __Params__ : * - **country** : "FR" * * __Response Model__ : Person * (**accountId** stored in Person.Accounts[i].accountId) */ PERSON_URL, /** * __Description__ : Get vehicles by accountId. * * __Method__ : GET * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * * __Params__ : * - **country** : "FR" * * __Response Model__ : Vehicles */ ACCOUNT_VEHICLES_URL, /** * __Description__ : Get vehicle contracts by vin. * * __Method__ : GET * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * * __Params__ : * - **country** : "FR" * - **local** : "fr_FR" * - **brand** : "RENAULT" * - **connectedServicesContracts** : "true" * - **warranty** : "true" * - **warrantyMaintenanceContracts** : "true" * * __Response Model__ : VehicleContract[] */ VEHICLE_CONTRACTS_URL, /** * __Description__ : Get vehicle details info by vin. * * __Method__ : GET * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * * __Params__ : * - **country** : "FR" * * __Response Model__ : VehicleDetails */ VEHICLE_DETAILS_URL, /** * __Description__ : Get vehicle adapter info. * * __Method__ : GET * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * * __Params__ : * - **country** : "FR" * * __Response Model__ : AdapterInfo */ READ_ADAPTER_URL, /** * __Description__ : Get vehicle battery status. * * __Method__ : GET * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * * __Params__ : * - **country** : "FR" * * __Response Model__ : BatteryStatus */ READ_BATTERY_INHIBITION_STATUS_URL, /** * __Description__ : Get vehicle battery status. * * __Method__ : GET * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * * __Params__ : * - **country** : "FR" * * __Response Model__ : BatteryStatus */ READ_BATTERY_STATUS_URL, /** * __Description__ : Get vehicle charge history. * * __Method__ : GET * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * * __Params__ : * - **country** : "FR" * - **type** : "day" | "month" * - **start**: (start date format YYYYMMDD) * - **end**: (end date format YYYYMMDD) * * __Response Model__ : ChargeHistory */ READ_CHARGE_HISTORY_URL, /** * __Description__ : Get vehicle current charge mode. * * __Method__ : GET * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * * __Params__ : * - **country** : "FR" * * __Response Model__ : ChargeMode */ READ_CHARGE_MODE_URL, /** * __Description__ : Get vehicle charge schedule. * * __Method__ : GET * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * * __Params__ : * - **country** : "FR" * * __Response Model__ : ChargeSchedule */ READ_CHARGE_SCHEDULE_URL, /** * __Description__ : Get vehicle charges. * * __Method__ : GET * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * * __Params__ : * - **country** : "FR" * - **start**: (start date format YYYYMMDD) * - **end**: (end date format YYYYMMDD) * * __Response Model__ : Charges */ READ_CHARGES_URL, /** * __Description__ : Get vehicle current charging settings. * * __Method__ : GET * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * * __Params__ : * - **country** : "FR" * * __Response Model__ : ChargingSettings */ READ_CHARGING_SETTINGS_URL, /** * __Description__ : Get vehicle cockpit info. * * __Method__ : GET * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * * __Params__ : * - **country** : "FR" * * __Response Model__ : Cockpit */ READ_COCKPIT_URL, /** * __Description__ : Get vehicle hvac history. * * __Method__ : GET * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * * __Params__ : * - **country** : "FR" * - **type** : "day" | "month" * - **start**: (start date format YYYYMMDD) * - **end**: (end date format YYYYMMDD) * * __Response Model__ : HvacHistory */ READ_HVAC_HISTORY_URL, /** * __Description__ : Get vehicle hvac sessions. * * __Method__ : GET * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * * __Params__ : * - **country** : "FR" * - **start**: (start date format YYYYMMDD) * - **end**: (end date format YYYYMMDD) * * __Response Model__ : HvacSessions */ READ_HVAC_SESSIONS_URL, /** * __Description__ : Get vehicle current hvac status. * * __Method__ : GET * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * * __Params__ : * - **country** : "FR" * * __Response Model__ : HvacStatus */ READ_HVAC_STATUS_URL, /** * __Description__ : Get vehicle hvac settings. * * __Method__ : GET * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * * __Params__ : * - **country** : "FR" * * __Response Model__ : HvacSettings */ READ_HVAC_SETTINGS_URL, /** * __Description__ : Get vehicle current location. * * __Method__ : GET * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * * __Params__ : * - **country** : "FR" * * __Response Model__ : VehicleLocation */ READ_LOCATION_URL, /** * __Description__ : Get vehicle current lock status. * * __Method__ : GET * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * * __Params__ : * - **country** : "FR" * * __Response Model__ : LockStatus * * __\/!\\__ Does not work for Megane E-Tech __\/!\\__ */ READ_LOCK_STATUS_URL, /** * __Description__ : Get vehicle notification settings. * * __Method__ : GET * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * * __Params__ : * - **country** : "FR" * * __Response Model__ : NotificationSettings */ READ_NOTIFICATION_SETTINGS_URL, /** * __Description__ : Get vehicle res state. * * __Method__ : GET * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * * __Params__ : * - **country** : "FR" * * __Response Model__ : ResState */ READ_RES_STATE_URL, /** * __Description__ : Change vehicle charge mode. * * __Method__ : POST * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * - **content-type** : "application/vnd.api+json" * * __Params__ : * - **country** : "FR" * * __Body__ : * { * data: { * "type": "ChargeMode", * "attributes": { * "action": **("always_charging" | "schedule_mode")** * } * } * } * * __Response Model__ : ActionChargeMode */ PERFORM_CHARGE_MODE_URL, /** * __Description__ : Schedule vehicle charge. * * __Method__ : POST * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * - **content-type** : "application/vnd.api+json" * * __Params__ : * - **country** : "FR" * * __Body__ : * { * data: { * "type": "ChargeSchedule", * "attributes": { * "schedules": { * "activated": **(boolean)**; * "monday": DaySchedule, * "tuesday": DaySchedule, * "wednesday": DaySchedule, * "thursday": DaySchedule, * "friday": DaySchedule, * "saturday": DaySchedule, * "sunday": DaySchedule * } * } * } * } * * DaySchedule = { * "startTime": **(time format THH:MMZ)**, * "duration": **(minutes as number)** * } * * __Response Model__ : ActionChargeSchedule */ PERFORM_CHARGE_SCHEDULE_URL, /** * __Description__ : Start or stop vehicle charge. * * __Method__ : POST * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * - **content-type** : "application/vnd.api+json" * * __Params__ : * - **country** : "FR" * * __Body__ : * { * data: { * "type": "ChargingStart", * "attributes": { * "action": **("start" | "stop")** * } * } * } * * __Response Model__ : ActionChargingStart */ PERFORM_CHARGING_START_URL, /** * __Description__ : Schedule vehicle hvac. * * __Method__ : POST * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * - **content-type** : "application/vnd.api+json" * * __Params__ : * - **country** : "FR" * * __Body__ : * { * data: { * "type": "HvacSchedule", * "attributes": { * "schedules": { * "activated": **(boolean)**; * "monday": HvacDaySchedule, * "tuesday": HvacDaySchedule, * "wednesday": HvacDaySchedule, * "thursday": HvacDaySchedule, * "friday": HvacDaySchedule, * "saturday": HvacDaySchedule, * "sunday": HvacDaySchedule * } * } * } * } * * HvacDaySchedule : { "readyAtTime": **(date)** } * * __Response Model__ : ActionHvacSchedule */ PERFORM_HVAC_SCHEDULE_URL, /** * __Description__ : Start or stop vehicle hvac. * * __Method__ : POST * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * - **content-type** : "application/vnd.api+json" * * __Params__ : * - **country** : "FR" * * __Body__ : * { * data: { * "type": "HvacStart", * "attributes": { * "action": "start", * "targetTemperature": **(temperature as number)**, * "startDateTime"?: **(date format YYYY-MM-DDTHH:mm:ssZ)** * } * } * } * * OR * * { * data: { * "type": "HvacStart", * "attributes": { * "action": "cancel" * } * } * } * * __Response Model__ : ActionHvacStart */ PERFORM_HVAC_START_URL, /** * __Description__ : Start or stop vehicle charge (Dacia Spring ONLY). * * __Method__ : POST * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * - **content-type** : "application/vnd.api+json" * * __Params__ : * - **country** : "FR" * * __Body__ : * { * data: { * "type": "ChargePauseResume", * "attributes": { * "action": **("resume" | "pause")** * } * } * } * * __Response Model__ : ActionPauseResume */ PERFORM_PAUSE_RESUME_URL, /** * __Description__ : Refresh vehicle battery status. * * __Method__ : POST * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * - **content-type** : "application/vnd.api+json" * * __Params__ : * - **country** : "FR" * * __Body__ : * { * data: { * "type": "RefreshBatteryStatus" * } * } * * __Response Model__ : ActionRefreshBatteryStatus */ PERFORM_REFRESH_BATTERY_STATUS, /** * __Description__ : Refresh vehicle hvac status. * * __Method__ : POST * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * - **content-type** : "application/vnd.api+json" * * __Params__ : * - **country** : "FR" * * __Body__ : * { * data: { * "type": "RefreshHvacStatus" * } * } * * __Response Model__ : ActionRefreshHvacStatus */ PERFORM_REFRESH_HVAC_STATUS, /** * __Description__ : Refresh vehicle location. * * __Method__ : POST * * __Headers__ : * - **apikey** : KamereonApi.KEY * - **x-gigya-id_token** : (token retrieved with Gigya getJWT API) * - **accept** : "application/json" * - **content-type** : "application/vnd.api+json" * * __Params__ : * - **country** : "FR" * * __Body__ : * { * data: { * "type": "RefreshLocation" * } * } * * __Response Model__ : ActionRefreshLocation */ PERFORM_REFRESH_LOCATION }; exports.ChargingStatus = ChargingStatus; exports.GigyaApi = GigyaApi; exports.IMAGE_ORIENTATION_KEY = IMAGE_ORIENTATION_KEY; exports.KCA_ACTION_ENDPOINTS = KCA_ACTION_ENDPOINTS; exports.KCA_READ_ENDPOINTS = KCA_READ_ENDPOINTS; exports.KCM_ACTION_ENDPOINTS = KCM_ACTION_ENDPOINTS; exports.KamereonApi = KamereonApi; exports.PERIOD_FORMATS = PERIOD_FORMATS; exports.PERIOD_TZ_FORMAT = PERIOD_TZ_FORMAT; exports.PlugStatus = PlugStatus; //# sourceMappingURL=index.cjs.map