Skip to content

Commit

Permalink
Rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
BigThunderSR committed Apr 16, 2024
1 parent 11a4342 commit 183b328
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/deps/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
};

var appId = "OMB_CVY_iOS_6X1";
var appSecret = "HZ7xQfoHWhTWLj2gyHBMFzohCcZmnx4kmp2N";
var appId = "OMB_CVY_iOS_6Y0";
var appSecret = "mzLiswGw9NReBtmWQQH9V5TPYm6i8tSHxjyD";
var optionalClientScope = "";
var requiredClientScope = "onstar gmoc user_trailer user priv";
var serviceUrl = "https://api.gm.com";
Expand Down Expand Up @@ -353,40 +353,40 @@ class RequestService {
return this.sendRequest(request);
});
}
lockDoor(options = {}) {
return __awaiter(this, void 0, void 0, function* () {
lockDoor() {
return __awaiter(this, arguments, void 0, function* (options = {}) {
const request = this.getCommandRequest(OnStarApiCommand.LockDoor).setBody({
lockDoorRequest: Object.assign({ delay: 0 }, options),
});
return this.sendRequest(request);
});
}
unlockDoor(options = {}) {
return __awaiter(this, void 0, void 0, function* () {
unlockDoor() {
return __awaiter(this, arguments, void 0, function* (options = {}) {
const request = this.getCommandRequest(OnStarApiCommand.UnlockDoor).setBody({
unlockDoorRequest: Object.assign({ delay: 0 }, options),
});
return this.sendRequest(request);
});
}
lockTrunk(options = {}) {
return __awaiter(this, void 0, void 0, function* () {
lockTrunk() {
return __awaiter(this, arguments, void 0, function* (options = {}) {
const request = this.getCommandRequest(OnStarApiCommand.LockTrunk).setBody({
lockTrunkRequest: Object.assign({ delay: 0 }, options),
});
return this.sendRequest(request);
});
}
unlockTrunk(options = {}) {
return __awaiter(this, void 0, void 0, function* () {
unlockTrunk() {
return __awaiter(this, arguments, void 0, function* (options = {}) {
const request = this.getCommandRequest(OnStarApiCommand.UnlockTrunk).setBody({
unlockTrunkRequest: Object.assign({ delay: 0 }, options),
});
return this.sendRequest(request);
});
}
alert(options = {}) {
return __awaiter(this, void 0, void 0, function* () {
alert() {
return __awaiter(this, arguments, void 0, function* (options = {}) {
const request = this.getCommandRequest(OnStarApiCommand.Alert).setBody({
alertRequest: Object.assign({ action: [AlertRequestAction.Honk, AlertRequestAction.Flash], delay: 0, duration: 1, override: [
AlertRequestOverride.DoorOpen,
Expand All @@ -402,8 +402,8 @@ class RequestService {
return this.sendRequest(request);
});
}
chargeOverride(options = {}) {
return __awaiter(this, void 0, void 0, function* () {
chargeOverride() {
return __awaiter(this, arguments, void 0, function* (options = {}) {
const request = this.getCommandRequest(OnStarApiCommand.ChargeOverride).setBody({
chargeOverrideRequest: Object.assign({ mode: ChargeOverrideMode.ChargeNow }, options),
});
Expand All @@ -416,16 +416,16 @@ class RequestService {
return this.sendRequest(request);
});
}
setChargingProfile(options = {}) {
return __awaiter(this, void 0, void 0, function* () {
setChargingProfile() {
return __awaiter(this, arguments, void 0, function* (options = {}) {
const request = this.getCommandRequest(OnStarApiCommand.SetChargingProfile).setBody({
chargingProfile: Object.assign({ chargeMode: ChargingProfileChargeMode.Immediate, rateType: ChargingProfileRateType.Midpeak }, options),
});
return this.sendRequest(request);
});
}
diagnostics(options = {}) {
return __awaiter(this, void 0, void 0, function* () {
diagnostics() {
return __awaiter(this, arguments, void 0, function* (options = {}) {
const request = this.getCommandRequest(OnStarApiCommand.Diagnostics).setBody({
diagnosticsRequest: Object.assign({ diagnosticItem: [
DiagnosticRequestItem.Odometer,
Expand Down Expand Up @@ -567,8 +567,8 @@ class RequestService {
});
}
sendRequest(request) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
var _a;
try {
const response = yield this.makeClientRequest(request);
const { data } = response;
Expand Down

0 comments on commit 183b328

Please sign in to comment.