c3nav 3.4.6 → 3.5.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.
Files changed (134) hide show
  1. package/README.md +1 -1
  2. package/dist/Endpoints.d.ts +112 -0
  3. package/dist/Endpoints.js +276 -0
  4. package/dist/api/APIBase.d.ts +12 -0
  5. package/dist/api/APIBase.js +17 -0
  6. package/dist/api/AccessRestrictionGroupsAPI.d.ts +11 -0
  7. package/dist/api/AccessRestrictionGroupsAPI.js +37 -0
  8. package/dist/api/AccessRestrictionsAPI.d.ts +11 -0
  9. package/dist/api/AccessRestrictionsAPI.js +37 -0
  10. package/dist/api/AreasAPI.d.ts +11 -0
  11. package/dist/api/AreasAPI.js +37 -0
  12. package/dist/api/BuildingsAPI.d.ts +11 -0
  13. package/dist/api/BuildingsAPI.js +37 -0
  14. package/dist/api/ChangesetsAPI.d.ts +11 -0
  15. package/dist/api/ChangesetsAPI.js +37 -0
  16. package/dist/api/ColumnsAPI.d.ts +11 -0
  17. package/dist/api/ColumnsAPI.js +37 -0
  18. package/dist/api/CrossDescriptionsAPI.d.ts +11 -0
  19. package/dist/api/CrossDescriptionsAPI.js +37 -0
  20. package/dist/api/DoorsAPI.d.ts +11 -0
  21. package/dist/api/DoorsAPI.js +37 -0
  22. package/dist/api/EditorAPI.d.ts +13 -0
  23. package/dist/api/EditorAPI.js +72 -0
  24. package/dist/api/HolesAPI.d.ts +11 -0
  25. package/dist/api/HolesAPI.js +37 -0
  26. package/dist/api/LeaveDescriptionsAPI.d.ts +11 -0
  27. package/dist/api/LeaveDescriptionsAPI.js +37 -0
  28. package/dist/api/LevelListAPI.d.ts +11 -0
  29. package/dist/api/LevelListAPI.js +37 -0
  30. package/dist/api/LineObstaclesAPI.d.ts +11 -0
  31. package/dist/api/LineObstaclesAPI.js +37 -0
  32. package/dist/api/LocationGroupCategoriesAPI.d.ts +11 -0
  33. package/dist/api/LocationGroupCategoriesAPI.js +37 -0
  34. package/dist/api/LocationGroupsAPI.d.ts +11 -0
  35. package/dist/api/LocationGroupsAPI.js +37 -0
  36. package/dist/api/LocationsAPI.d.ts +23 -0
  37. package/dist/api/LocationsAPI.js +65 -0
  38. package/dist/api/MapAPI.d.ts +23 -0
  39. package/dist/api/MapAPI.js +173 -0
  40. package/dist/api/MeshAPI.d.ts +10 -0
  41. package/dist/api/MeshAPI.js +64 -0
  42. package/dist/api/ObstaclesAPI.d.ts +11 -0
  43. package/dist/api/ObstaclesAPI.js +37 -0
  44. package/dist/api/POIs.d.ts +11 -0
  45. package/dist/api/POIs.js +37 -0
  46. package/dist/api/PositioningAPI.d.ts +8 -0
  47. package/dist/api/PositioningAPI.js +34 -0
  48. package/dist/api/RampsAPI.d.ts +11 -0
  49. package/dist/api/RampsAPI.js +37 -0
  50. package/dist/api/RoutingAPI.d.ts +15 -0
  51. package/dist/api/RoutingAPI.js +65 -0
  52. package/dist/api/SessionAPI.d.ts +10 -0
  53. package/dist/api/SessionAPI.js +45 -0
  54. package/dist/api/SourcesAPI.d.ts +11 -0
  55. package/dist/api/SourcesAPI.js +37 -0
  56. package/dist/api/SpacesAPI.d.ts +11 -0
  57. package/dist/api/SpacesAPI.js +37 -0
  58. package/dist/api/StairsAPI.d.ts +11 -0
  59. package/dist/api/StairsAPI.js +37 -0
  60. package/dist/api/UpdatesAPI.d.ts +9 -0
  61. package/dist/api/UpdatesAPI.js +38 -0
  62. package/dist/api/index.d.ts +28 -0
  63. package/dist/api/index.js +44 -0
  64. package/dist/c3nav.d.ts +14 -0
  65. package/dist/c3nav.js +54 -0
  66. package/dist/index.d.ts +3 -0
  67. package/dist/index.js +19 -0
  68. package/dist/interfaces/API.d.ts +31 -0
  69. package/dist/interfaces/API.js +2 -0
  70. package/dist/interfaces/AccessRestrictionGroups.d.ts +2 -0
  71. package/dist/interfaces/AccessRestrictionGroups.js +2 -0
  72. package/dist/interfaces/AccessRestrictions.d.ts +2 -0
  73. package/dist/interfaces/AccessRestrictions.js +2 -0
  74. package/dist/interfaces/Areas.d.ts +2 -0
  75. package/dist/interfaces/Areas.js +2 -0
  76. package/dist/interfaces/Bounds.d.ts +3 -0
  77. package/dist/interfaces/Bounds.js +2 -0
  78. package/dist/interfaces/Buildings.d.ts +2 -0
  79. package/dist/interfaces/Buildings.js +2 -0
  80. package/dist/interfaces/Changesets.d.ts +2 -0
  81. package/dist/interfaces/Changesets.js +2 -0
  82. package/dist/interfaces/Columns.d.ts +2 -0
  83. package/dist/interfaces/Columns.js +2 -0
  84. package/dist/interfaces/CrossDescriptions.d.ts +2 -0
  85. package/dist/interfaces/CrossDescriptions.js +2 -0
  86. package/dist/interfaces/Doors.d.ts +2 -0
  87. package/dist/interfaces/Doors.js +2 -0
  88. package/dist/interfaces/Editor.d.ts +9 -0
  89. package/dist/interfaces/Editor.js +2 -0
  90. package/dist/interfaces/Holes.d.ts +2 -0
  91. package/dist/interfaces/Holes.js +2 -0
  92. package/dist/interfaces/LeaveDescriptions.d.ts +2 -0
  93. package/dist/interfaces/LeaveDescriptions.js +2 -0
  94. package/dist/interfaces/Level.d.ts +19 -0
  95. package/dist/interfaces/Level.js +2 -0
  96. package/dist/interfaces/LineObstacles.d.ts +2 -0
  97. package/dist/interfaces/LineObstacles.js +2 -0
  98. package/dist/interfaces/Location.d.ts +28 -0
  99. package/dist/interfaces/Location.js +2 -0
  100. package/dist/interfaces/LocationGroupCategories.d.ts +2 -0
  101. package/dist/interfaces/LocationGroupCategories.js +2 -0
  102. package/dist/interfaces/LocationGroups.d.ts +2 -0
  103. package/dist/interfaces/LocationGroups.js +2 -0
  104. package/dist/interfaces/Map.d.ts +54 -0
  105. package/dist/interfaces/Map.js +2 -0
  106. package/dist/interfaces/Mesh.d.ts +24 -0
  107. package/dist/interfaces/Mesh.js +2 -0
  108. package/dist/interfaces/Obstacles.d.ts +2 -0
  109. package/dist/interfaces/Obstacles.js +2 -0
  110. package/dist/interfaces/Options.d.ts +11 -0
  111. package/dist/interfaces/Options.js +2 -0
  112. package/dist/interfaces/POIs.d.ts +2 -0
  113. package/dist/interfaces/POIs.js +2 -0
  114. package/dist/interfaces/Positioning.d.ts +13 -0
  115. package/dist/interfaces/Positioning.js +2 -0
  116. package/dist/interfaces/Ramps.d.ts +2 -0
  117. package/dist/interfaces/Ramps.js +2 -0
  118. package/dist/interfaces/Root.d.ts +135 -0
  119. package/dist/interfaces/Root.js +2 -0
  120. package/dist/interfaces/Routing.d.ts +48 -0
  121. package/dist/interfaces/Routing.js +2 -0
  122. package/dist/interfaces/Session.d.ts +8 -0
  123. package/dist/interfaces/Session.js +2 -0
  124. package/dist/interfaces/Sources.d.ts +2 -0
  125. package/dist/interfaces/Sources.js +2 -0
  126. package/dist/interfaces/Spaces.d.ts +2 -0
  127. package/dist/interfaces/Spaces.js +2 -0
  128. package/dist/interfaces/Stairs.d.ts +2 -0
  129. package/dist/interfaces/Stairs.js +2 -0
  130. package/dist/interfaces/Updates.d.ts +5 -0
  131. package/dist/interfaces/Updates.js +2 -0
  132. package/dist/interfaces/index.d.ts +32 -0
  133. package/dist/interfaces/index.js +48 -0
  134. package/package.json +10 -6
@@ -0,0 +1,11 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { ClientOptions, Columns } from '../interfaces/';
3
+ import { APIBase } from './APIBase';
4
+ export declare class ColumnsAPI extends APIBase {
5
+ constructor(apiClient: APIClient, options: ClientOptions);
6
+ /**
7
+ * @param id The id to get
8
+ */
9
+ getById(id: number): Promise<Columns>;
10
+ getList(): Promise<Columns[]>;
11
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ColumnsAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ const APIBase_1 = require("./APIBase");
15
+ class ColumnsAPI extends APIBase_1.APIBase {
16
+ constructor(apiClient, options) {
17
+ super(apiClient, options);
18
+ }
19
+ /**
20
+ * @param id The id to get
21
+ */
22
+ getById(id) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const endpoint = Endpoints_1.Endpoint.columns(id);
25
+ const { data } = yield this.apiClient.get(endpoint);
26
+ return data;
27
+ });
28
+ }
29
+ getList() {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ const endpoint = Endpoints_1.Endpoint.columns();
32
+ const { data } = yield this.apiClient.get(endpoint);
33
+ return data;
34
+ });
35
+ }
36
+ }
37
+ exports.ColumnsAPI = ColumnsAPI;
@@ -0,0 +1,11 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { ClientOptions, CrossDescriptions } from '../interfaces/';
3
+ import { APIBase } from './APIBase';
4
+ export declare class CrossDescriptionsAPI extends APIBase {
5
+ constructor(apiClient: APIClient, options: ClientOptions);
6
+ /**
7
+ * @param id The id to get
8
+ */
9
+ getById(id: number): Promise<CrossDescriptions>;
10
+ getList(): Promise<CrossDescriptions[]>;
11
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CrossDescriptionsAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ const APIBase_1 = require("./APIBase");
15
+ class CrossDescriptionsAPI extends APIBase_1.APIBase {
16
+ constructor(apiClient, options) {
17
+ super(apiClient, options);
18
+ }
19
+ /**
20
+ * @param id The id to get
21
+ */
22
+ getById(id) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const endpoint = Endpoints_1.Endpoint.crossDescriptions(id);
25
+ const { data } = yield this.apiClient.get(endpoint);
26
+ return data;
27
+ });
28
+ }
29
+ getList() {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ const endpoint = Endpoints_1.Endpoint.crossDescriptions();
32
+ const { data } = yield this.apiClient.get(endpoint);
33
+ return data;
34
+ });
35
+ }
36
+ }
37
+ exports.CrossDescriptionsAPI = CrossDescriptionsAPI;
@@ -0,0 +1,11 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { ClientOptions, Doors } from '../interfaces/';
3
+ import { APIBase } from './APIBase';
4
+ export declare class DoorsAPI extends APIBase {
5
+ constructor(apiClient: APIClient, options: ClientOptions);
6
+ /**
7
+ * @param id The id to get
8
+ */
9
+ getById(id: number): Promise<Doors>;
10
+ getList(): Promise<Doors[]>;
11
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.DoorsAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ const APIBase_1 = require("./APIBase");
15
+ class DoorsAPI extends APIBase_1.APIBase {
16
+ constructor(apiClient, options) {
17
+ super(apiClient, options);
18
+ }
19
+ /**
20
+ * @param id The id to get
21
+ */
22
+ getById(id) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const endpoint = Endpoints_1.Endpoint.doors(id);
25
+ const { data } = yield this.apiClient.get(endpoint);
26
+ return data;
27
+ });
28
+ }
29
+ getList() {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ const endpoint = Endpoints_1.Endpoint.doors();
32
+ const { data } = yield this.apiClient.get(endpoint);
33
+ return data;
34
+ });
35
+ }
36
+ }
37
+ exports.DoorsAPI = DoorsAPI;
@@ -0,0 +1,13 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { ClientOptions, Editor, EditorBeaconsLookup, EditorGeometries, GeometryStyles } from '../interfaces/';
3
+ import { APIBase } from './APIBase';
4
+ export declare class EditorAPI extends APIBase {
5
+ constructor(apiClient: APIClient, options: ClientOptions);
6
+ getBeaconsLookup(): Promise<EditorBeaconsLookup>;
7
+ getBounds(): Promise<Editor>;
8
+ getById(_id: number): Promise<Editor>;
9
+ getGeometryStyles(): Promise<GeometryStyles>;
10
+ getLevelGeometries(levelId: number | string, updateCacheKey?: string): Promise<EditorGeometries>;
11
+ getList(): Promise<Editor[]>;
12
+ getSpaceGeometries(spaceId: number | string, updateCacheKey?: string): Promise<EditorGeometries>;
13
+ }
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.EditorAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ const APIBase_1 = require("./APIBase");
15
+ class EditorAPI extends APIBase_1.APIBase {
16
+ constructor(apiClient, options) {
17
+ super(apiClient, options);
18
+ }
19
+ getBeaconsLookup() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const endpoint = Endpoints_1.Endpoint.Editor.beaconsLookup();
22
+ const { data } = yield this.apiClient.get(endpoint);
23
+ return data;
24
+ });
25
+ }
26
+ getBounds() {
27
+ return __awaiter(this, void 0, void 0, function* () {
28
+ const endpoint = Endpoints_1.Endpoint.Editor.bounds();
29
+ const { data } = yield this.apiClient.get(endpoint);
30
+ return data;
31
+ });
32
+ }
33
+ getById(_id) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ return this.getBounds();
36
+ });
37
+ }
38
+ getGeometryStyles() {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ const endpoint = Endpoints_1.Endpoint.Editor.geometryStyles();
41
+ const { data } = yield this.apiClient.get(endpoint);
42
+ return data;
43
+ });
44
+ }
45
+ getLevelGeometries(levelId, updateCacheKey) {
46
+ return __awaiter(this, void 0, void 0, function* () {
47
+ const endpoint = Endpoints_1.Endpoint.Editor.levelGeometries(levelId);
48
+ const requestPath = updateCacheKey
49
+ ? `${endpoint}?update_cache_key=${encodeURIComponent(updateCacheKey)}`
50
+ : endpoint;
51
+ const { data } = yield this.apiClient.get(requestPath);
52
+ return data;
53
+ });
54
+ }
55
+ getList() {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ const bounds = yield this.getBounds();
58
+ return [bounds];
59
+ });
60
+ }
61
+ getSpaceGeometries(spaceId, updateCacheKey) {
62
+ return __awaiter(this, void 0, void 0, function* () {
63
+ const endpoint = Endpoints_1.Endpoint.Editor.spaceGeometries(spaceId);
64
+ const requestPath = updateCacheKey
65
+ ? `${endpoint}?update_cache_key=${encodeURIComponent(updateCacheKey)}`
66
+ : endpoint;
67
+ const { data } = yield this.apiClient.get(requestPath);
68
+ return data;
69
+ });
70
+ }
71
+ }
72
+ exports.EditorAPI = EditorAPI;
@@ -0,0 +1,11 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { ClientOptions, Holes } from '../interfaces/';
3
+ import { APIBase } from './APIBase';
4
+ export declare class HolesAPI extends APIBase {
5
+ constructor(apiClient: APIClient, options: ClientOptions);
6
+ /**
7
+ * @param id The id to get
8
+ */
9
+ getById(id: number): Promise<Holes>;
10
+ getList(): Promise<Holes[]>;
11
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.HolesAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ const APIBase_1 = require("./APIBase");
15
+ class HolesAPI extends APIBase_1.APIBase {
16
+ constructor(apiClient, options) {
17
+ super(apiClient, options);
18
+ }
19
+ /**
20
+ * @param id The id to get
21
+ */
22
+ getById(id) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const endpoint = Endpoints_1.Endpoint.holes(id);
25
+ const { data } = yield this.apiClient.get(endpoint);
26
+ return data;
27
+ });
28
+ }
29
+ getList() {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ const endpoint = Endpoints_1.Endpoint.holes();
32
+ const { data } = yield this.apiClient.get(endpoint);
33
+ return data;
34
+ });
35
+ }
36
+ }
37
+ exports.HolesAPI = HolesAPI;
@@ -0,0 +1,11 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { ClientOptions, LeaveDescriptions } from '../interfaces/';
3
+ import { APIBase } from './APIBase';
4
+ export declare class LeaveDescriptionsAPI extends APIBase {
5
+ constructor(apiClient: APIClient, options: ClientOptions);
6
+ /**
7
+ * @param id The id to get
8
+ */
9
+ getById(id: number): Promise<LeaveDescriptions>;
10
+ getList(): Promise<LeaveDescriptions[]>;
11
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.LeaveDescriptionsAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ const APIBase_1 = require("./APIBase");
15
+ class LeaveDescriptionsAPI extends APIBase_1.APIBase {
16
+ constructor(apiClient, options) {
17
+ super(apiClient, options);
18
+ }
19
+ /**
20
+ * @param id The id to get
21
+ */
22
+ getById(id) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const endpoint = Endpoints_1.Endpoint.leaveDescriptions(id);
25
+ const { data } = yield this.apiClient.get(endpoint);
26
+ return data;
27
+ });
28
+ }
29
+ getList() {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ const endpoint = Endpoints_1.Endpoint.leaveDescriptions();
32
+ const { data } = yield this.apiClient.get(endpoint);
33
+ return data;
34
+ });
35
+ }
36
+ }
37
+ exports.LeaveDescriptionsAPI = LeaveDescriptionsAPI;
@@ -0,0 +1,11 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { ClientOptions, Level, LevelListOptions } from '../interfaces';
3
+ import { APIBase } from './APIBase';
4
+ /**
5
+ * A Level is a Location – so if it is visible, you can use its ID in the Location API as well.
6
+ */
7
+ export declare class LevelListAPI extends APIBase {
8
+ constructor(apiClient: APIClient, options: ClientOptions);
9
+ getDetail(id: number, options?: LevelListOptions): Promise<Level>;
10
+ getList(options?: LevelListOptions): Promise<Level[]>;
11
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.LevelListAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ const APIBase_1 = require("./APIBase");
15
+ /**
16
+ * A Level is a Location – so if it is visible, you can use its ID in the Location API as well.
17
+ */
18
+ class LevelListAPI extends APIBase_1.APIBase {
19
+ constructor(apiClient, options) {
20
+ super(apiClient, options);
21
+ }
22
+ getDetail(id, options) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const endpoint = Endpoints_1.Endpoint.Level.levels(id);
25
+ const { data } = yield this.apiClient.get(endpoint, { data: options });
26
+ return data;
27
+ });
28
+ }
29
+ getList(options) {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ const endpoint = Endpoints_1.Endpoint.Level.levels();
32
+ const { data } = yield this.apiClient.get(endpoint, { data: options });
33
+ return data;
34
+ });
35
+ }
36
+ }
37
+ exports.LevelListAPI = LevelListAPI;
@@ -0,0 +1,11 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { ClientOptions, LineObstacles } from '../interfaces/';
3
+ import { APIBase } from './APIBase';
4
+ export declare class LineObstaclesAPI extends APIBase {
5
+ constructor(apiClient: APIClient, options: ClientOptions);
6
+ /**
7
+ * @param id The id to get
8
+ */
9
+ getById(id: number): Promise<LineObstacles>;
10
+ getList(): Promise<LineObstacles[]>;
11
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.LineObstaclesAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ const APIBase_1 = require("./APIBase");
15
+ class LineObstaclesAPI extends APIBase_1.APIBase {
16
+ constructor(apiClient, options) {
17
+ super(apiClient, options);
18
+ }
19
+ /**
20
+ * @param id The id to get
21
+ */
22
+ getById(id) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const endpoint = Endpoints_1.Endpoint.lineObstacles(id);
25
+ const { data } = yield this.apiClient.get(endpoint);
26
+ return data;
27
+ });
28
+ }
29
+ getList() {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ const endpoint = Endpoints_1.Endpoint.lineObstacles();
32
+ const { data } = yield this.apiClient.get(endpoint);
33
+ return data;
34
+ });
35
+ }
36
+ }
37
+ exports.LineObstaclesAPI = LineObstaclesAPI;
@@ -0,0 +1,11 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { ClientOptions, LocationGroupCategories } from '../interfaces/';
3
+ import { APIBase } from './APIBase';
4
+ export declare class LocationGroupCategoriesAPI extends APIBase {
5
+ constructor(apiClient: APIClient, options: ClientOptions);
6
+ /**
7
+ * @param id The id to get
8
+ */
9
+ getById(id: number): Promise<LocationGroupCategories>;
10
+ getList(): Promise<LocationGroupCategories[]>;
11
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.LocationGroupCategoriesAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ const APIBase_1 = require("./APIBase");
15
+ class LocationGroupCategoriesAPI extends APIBase_1.APIBase {
16
+ constructor(apiClient, options) {
17
+ super(apiClient, options);
18
+ }
19
+ /**
20
+ * @param id The id to get
21
+ */
22
+ getById(id) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const endpoint = Endpoints_1.Endpoint.locationGroupCategories(id);
25
+ const { data } = yield this.apiClient.get(endpoint);
26
+ return data;
27
+ });
28
+ }
29
+ getList() {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ const endpoint = Endpoints_1.Endpoint.locationGroupCategories();
32
+ const { data } = yield this.apiClient.get(endpoint);
33
+ return data;
34
+ });
35
+ }
36
+ }
37
+ exports.LocationGroupCategoriesAPI = LocationGroupCategoriesAPI;
@@ -0,0 +1,11 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { ClientOptions, LocationGroups } from '../interfaces/';
3
+ import { APIBase } from './APIBase';
4
+ export declare class LocationGroupsAPI extends APIBase {
5
+ constructor(apiClient: APIClient, options: ClientOptions);
6
+ /**
7
+ * @param id The id to get
8
+ */
9
+ getById(id: number): Promise<LocationGroups>;
10
+ getList(): Promise<LocationGroups[]>;
11
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.LocationGroupsAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ const APIBase_1 = require("./APIBase");
15
+ class LocationGroupsAPI extends APIBase_1.APIBase {
16
+ constructor(apiClient, options) {
17
+ super(apiClient, options);
18
+ }
19
+ /**
20
+ * @param id The id to get
21
+ */
22
+ getById(id) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const endpoint = Endpoints_1.Endpoint.locationGroups(id);
25
+ const { data } = yield this.apiClient.get(endpoint);
26
+ return data;
27
+ });
28
+ }
29
+ getList() {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ const endpoint = Endpoints_1.Endpoint.locationGroups();
32
+ const { data } = yield this.apiClient.get(endpoint);
33
+ return data;
34
+ });
35
+ }
36
+ }
37
+ exports.LocationGroupsAPI = LocationGroupsAPI;
@@ -0,0 +1,23 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { ClientOptions, Location, LocationDetails, LocationGeometry, LocationType } from '../interfaces/';
3
+ import { APIBase } from './APIBase';
4
+ /**
5
+ * Locations are Levels, Spaces, Areas, POIs and Location Groups (see `/locations/types/`). They have a shared ID pool.
6
+ *
7
+ * This API endpoint only accesses locations that have `can_search` or `can_describe` set to `true`.
8
+ *
9
+ * If you want to access all of them, use the API endpoints for the Location Types.
10
+ *
11
+ * Additionally, you can access Custom Locations (Coordinates) by using `c:<level.short_label>:x:y` as an id or slug.
12
+ */
13
+ export declare class LocationsAPI extends APIBase {
14
+ constructor(apiClient: APIClient, options: ClientOptions);
15
+ getDetails(id: number): Promise<LocationDetails>;
16
+ getDetails(slug: string): Promise<LocationDetails>;
17
+ getGeometry(id: number): Promise<LocationGeometry>;
18
+ getGeometry(slug: string): Promise<LocationGeometry>;
19
+ getList(geometry?: boolean): Promise<Location[]>;
20
+ getLocation(id: number): Promise<Location>;
21
+ getLocation(slug: string): Promise<Location>;
22
+ getTypes(): Promise<LocationType[]>;
23
+ }
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.LocationsAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ const APIBase_1 = require("./APIBase");
15
+ /**
16
+ * Locations are Levels, Spaces, Areas, POIs and Location Groups (see `/locations/types/`). They have a shared ID pool.
17
+ *
18
+ * This API endpoint only accesses locations that have `can_search` or `can_describe` set to `true`.
19
+ *
20
+ * If you want to access all of them, use the API endpoints for the Location Types.
21
+ *
22
+ * Additionally, you can access Custom Locations (Coordinates) by using `c:<level.short_label>:x:y` as an id or slug.
23
+ */
24
+ class LocationsAPI extends APIBase_1.APIBase {
25
+ constructor(apiClient, options) {
26
+ super(apiClient, options);
27
+ }
28
+ getDetails(id) {
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ const endpoint = Endpoints_1.Endpoint.Location.details(id);
31
+ const { data } = yield this.apiClient.get(endpoint);
32
+ return data;
33
+ });
34
+ }
35
+ getGeometry(id) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ const endpoint = Endpoints_1.Endpoint.Location.geometry(id);
38
+ const { data } = yield this.apiClient.get(endpoint);
39
+ return data;
40
+ });
41
+ }
42
+ getList(geometry) {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ const endpoint = Endpoints_1.Endpoint.Location.locations();
45
+ const requestPath = geometry === undefined ? endpoint : `${endpoint}?geometry=${String(geometry)}`;
46
+ const { data } = yield this.apiClient.get(requestPath);
47
+ return data;
48
+ });
49
+ }
50
+ getLocation(id) {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ const endpoint = Endpoints_1.Endpoint.Location.detail(id);
53
+ const { data } = yield this.apiClient.get(endpoint);
54
+ return data;
55
+ });
56
+ }
57
+ getTypes() {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ const endpoint = Endpoints_1.Endpoint.Location.types();
60
+ const { data } = yield this.apiClient.get(endpoint);
61
+ return data;
62
+ });
63
+ }
64
+ }
65
+ exports.LocationsAPI = LocationsAPI;
@@ -0,0 +1,23 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { Bounds, ClientOptions, MapLegend, MapLocation, MapLocationDisplay, MapLocationGeometry, MapLocationOptions, MapLocationQueryOptions, MapSettings, Position, Projection, Quest } from '../interfaces/';
3
+ import { APIBase } from './APIBase';
4
+ export declare class MapAPI extends APIBase {
5
+ constructor(apiClient: APIClient, options: ClientOptions);
6
+ /** /bounds/ returns the maximum bounds of the map */
7
+ getBounds(): Promise<Bounds>;
8
+ getLegend(themeId: number | string): Promise<MapLegend>;
9
+ getLoad(): Promise<Record<string, number>>;
10
+ getLocation(idOrSlug: number | string, options?: MapLocationOptions): Promise<MapLocation>;
11
+ getLocationDisplay(idOrSlug: number | string): Promise<MapLocationDisplay>;
12
+ getLocationGeometry(idOrSlug: number | string): Promise<MapLocationGeometry>;
13
+ getLocations(options?: MapLocationQueryOptions): Promise<MapLocation[]>;
14
+ getLocationsFull(options?: MapLocationQueryOptions): Promise<MapLocation[]>;
15
+ getMyPositions(): Promise<Position[]>;
16
+ getPositionById(positionId: number | string): Promise<Position>;
17
+ getProjection(): Promise<Projection>;
18
+ getQuests(questType?: string, level?: number): Promise<Quest[]>;
19
+ getSettings(): Promise<MapSettings>;
20
+ getWifiData(): Promise<Record<string, unknown>>;
21
+ setPosition(positionId: number | string, coordinatesId: null | string, timeout?: null | number): Promise<Position>;
22
+ updateLoad(aps: Record<string, number>): Promise<void>;
23
+ }