bmw-connected-drive
Version:
This package can be used to access the BMW ConnectedDrive services.
43 lines • 2.09 kB
JavaScript
;
var _a;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Constants = void 0;
const CarBrand_1 = require("./CarBrand");
class Constants {
}
exports.Constants = Constants;
_a = Constants;
Constants.ServerEndpoints = {
NorthAmerica: "cocoapi.bmwgroup.us",
RestOfWorld: "cocoapi.bmwgroup.com",
China: "myprofile.bmw.com.cn"
};
Constants.ApimSubscriptionKey = {
NorthAmerica: "31e102f5-6f7e-7ef3-9044-ddce63891362",
RestOfWorld: "4f1c85a3-758f-a37d-bbb6-f8704494acfa",
China: "blF2NkNxdHhKdVhXUDc0eGYzQ0p3VUVQOjF6REh4NnVuNGNEanliTEVOTjNreWZ1bVgya0VZaWdXUGNRcGR2RFJwSUJrN3JPSg=="
};
Constants.AppVersions = {
NorthAmerica: "3.11.1(29513)",
RestOfWorld: "3.11.1(29513)",
China: "3.11.1(29513)",
};
Constants.RegionCodes = {
NorthAmerica: "na",
RestOfWorld: "row",
China: "cn",
};
Constants.User_Agent = "Dart/2.19 (dart:io)";
Constants.X_User_Agent = (region, brand = CarBrand_1.CarBrand.Bmw) => `android(TQ2A.230405.003.B2);${brand.toLowerCase()};${_a.AppVersions[region]};${_a.RegionCodes[region]}`;
Constants.getVehicles = "/eadrax-vcs/v4/vehicles";
Constants.remoteServicesBaseUrl = "/eadrax-vrccs/v3/presentation/remote-commands";
Constants.executeRemoteServices = Constants.remoteServicesBaseUrl + "/{vehicleVin}/{serviceType}";
Constants.statusRemoteServices = Constants.remoteServicesBaseUrl + "/eventStatus?eventId={eventId}";
Constants.statusRemoteServicePostion = Constants.remoteServicesBaseUrl + "/eventPosition?eventId={eventId}";
Constants.getImages = "/eadrax-ics/v5/presentation/vehicles/images?carView={carView}&toCrop=true";
Constants.vehicleChargingDetailsUrl = "/eadrax-crccs/v2/vehicles";
Constants.vehicleChargingBaseUrl = "/eadrax-crccs/v1/vehicles/{vehicleVin}";
Constants.vehicleChargingSettingsSetUrl = Constants.vehicleChargingBaseUrl + "/charging-settings";
Constants.vehicleChargingProfileSetUrl = Constants.vehicleChargingBaseUrl + "/charging-profile";
Constants.vehicleChargingStartStopUrl = Constants.vehicleChargingBaseUrl + "/{serviceType}";
//# sourceMappingURL=Constants.js.map