From 3fce198d1e36e0b9c6979cb056e01abcd77195e0 Mon Sep 17 00:00:00 2001 From: Ryan Mullen Date: Thu, 16 Nov 2023 17:22:21 -0800 Subject: [PATCH] chore: add emergency version api --- src/InboundGarminWrapper.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/InboundGarminWrapper.ts b/src/InboundGarminWrapper.ts index 612d07c..5f057da 100644 --- a/src/InboundGarminWrapper.ts +++ b/src/InboundGarminWrapper.ts @@ -149,4 +149,14 @@ export class InboundGarminWrapper { const opts = Object.assign(this.baseGetOpts, options); return await request>(`https://${this.IPCUrl}/IPCInbound/V1/Emergency.svc/State`, opts); } + + /** + * @see https://explore.garmin.com/IPCInbound/docs/#!/Emergency.svc/VersionGET + * + * @params options + */ + public async getEmergencyVersion(options: RequestInit = {}) { + const opts = Object.assign(this.baseGetOpts, options); + return await request(`https://${this.IPCUrl}/IPCInbound/V1/Emergency.svc/State`, opts); + } }