@tak-ps/node-tak 8.6.0 → 8.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,10 @@
10
10
 
11
11
  ## Version History
12
12
 
13
+ ### v8.7.0
14
+
15
+ - :tada: Add ability to delete Repeater
16
+
13
17
  ### v8.6.0
14
18
 
15
19
  - :tada: Add initial support for the Repeaters API
@@ -25,5 +25,16 @@ export default class {
25
25
  method: 'GET'
26
26
  });
27
27
  }
28
+ /**
29
+ * Delete a repeater by UID
30
+ *
31
+ * {@link https://docs.tak.gov/api/takserver/redoc#tag/repeater-api/operation/remove TAK Server Docs}.
32
+ */
33
+ async delete(uid) {
34
+ const url = new URL(`/Marti/api/repeater/remove/${uid}`, this.api.url);
35
+ await this.api.fetch(url, {
36
+ method: 'GET'
37
+ });
38
+ }
28
39
  }
29
40
  //# sourceMappingURL=repeater.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"repeater.js","sourceRoot":"","sources":["../../../lib/api/repeater.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,IAAI,EAAU,MAAM,mBAAmB,CAAC;AAEjD,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC;IAChC,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE;IAClB,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE;IACzB,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;IACtB,iBAAiB,EAAE,IAAI,CAAC,MAAM,EAAE;IAChC,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE;CAC1B,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAElD,MAAM,CAAC,OAAO;IACV,GAAG,CAAS;I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AC7B,MAAM,EAAE,KAAK;SAChB,CAAC,CAAC;IACP,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,MAAM,CAAC,GAAW;QACpB,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,8BAA8B,GAAG,EAAE,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAEvE,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE;YACtB,MAAM,EAAE,KAAK;SAChB,CAAC,CAAC;IACP,CAAC;CACJ"}
@@ -32,4 +32,17 @@ export default class {
32
32
  method: 'GET'
33
33
  });
34
34
  }
35
+
36
+ /**
37
+ * Delete a repeater by UID
38
+ *
39
+ * {@link https://docs.tak.gov/api/takserver/redoc#tag/repeater-api/operation/remove TAK Server Docs}.
40
+ */
41
+ async delete(uid: string): Promise<void> {
42
+ const url = new URL(`/Marti/api/repeater/remove/${uid}`, this.api.url);
43
+
44
+ await this.api.fetch(url, {
45
+ method: 'GET'
46
+ });
47
+ }
35
48
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/node-tak",
3
3
  "type": "module",
4
- "version": "8.6.0",
4
+ "version": "8.7.0",
5
5
  "description": "Lightweight JavaScript library for communicating with TAK Server",
6
6
  "author": "Nick Ingalls <nick@ingalls.ca>",
7
7
  "main": "dist/index.js",