c3nav 3.4.6 → 3.4.7

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 (123) hide show
  1. package/dist/Endpoints.d.ts +68 -0
  2. package/dist/Endpoints.js +237 -0
  3. package/dist/api/APIBase.d.ts +12 -0
  4. package/dist/api/APIBase.js +17 -0
  5. package/dist/api/AccessRestrictionGroupsAPI.d.ts +11 -0
  6. package/dist/api/AccessRestrictionGroupsAPI.js +37 -0
  7. package/dist/api/AccessRestrictionsAPI.d.ts +11 -0
  8. package/dist/api/AccessRestrictionsAPI.js +37 -0
  9. package/dist/api/AreasAPI.d.ts +11 -0
  10. package/dist/api/AreasAPI.js +37 -0
  11. package/dist/api/BuildingsAPI.d.ts +11 -0
  12. package/dist/api/BuildingsAPI.js +37 -0
  13. package/dist/api/ChangesetsAPI.d.ts +11 -0
  14. package/dist/api/ChangesetsAPI.js +37 -0
  15. package/dist/api/ColumnsAPI.d.ts +11 -0
  16. package/dist/api/ColumnsAPI.js +37 -0
  17. package/dist/api/CrossDescriptionsAPI.d.ts +11 -0
  18. package/dist/api/CrossDescriptionsAPI.js +37 -0
  19. package/dist/api/DoorsAPI.d.ts +11 -0
  20. package/dist/api/DoorsAPI.js +37 -0
  21. package/dist/api/EditorAPI.d.ts +11 -0
  22. package/dist/api/EditorAPI.js +37 -0
  23. package/dist/api/HolesAPI.d.ts +11 -0
  24. package/dist/api/HolesAPI.js +37 -0
  25. package/dist/api/LeaveDescriptionsAPI.d.ts +11 -0
  26. package/dist/api/LeaveDescriptionsAPI.js +37 -0
  27. package/dist/api/LevelListAPI.d.ts +11 -0
  28. package/dist/api/LevelListAPI.js +37 -0
  29. package/dist/api/LineObstaclesAPI.d.ts +11 -0
  30. package/dist/api/LineObstaclesAPI.js +37 -0
  31. package/dist/api/LocationGroupCategoriesAPI.d.ts +11 -0
  32. package/dist/api/LocationGroupCategoriesAPI.js +37 -0
  33. package/dist/api/LocationGroupsAPI.d.ts +11 -0
  34. package/dist/api/LocationGroupsAPI.js +37 -0
  35. package/dist/api/LocationsAPI.d.ts +23 -0
  36. package/dist/api/LocationsAPI.js +64 -0
  37. package/dist/api/MapAPI.d.ts +8 -0
  38. package/dist/api/MapAPI.js +28 -0
  39. package/dist/api/ObstaclesAPI.d.ts +11 -0
  40. package/dist/api/ObstaclesAPI.js +37 -0
  41. package/dist/api/POIs.d.ts +11 -0
  42. package/dist/api/POIs.js +37 -0
  43. package/dist/api/RampsAPI.d.ts +11 -0
  44. package/dist/api/RampsAPI.js +37 -0
  45. package/dist/api/RoutingAPI.d.ts +11 -0
  46. package/dist/api/RoutingAPI.js +37 -0
  47. package/dist/api/SessionAPI.d.ts +11 -0
  48. package/dist/api/SessionAPI.js +37 -0
  49. package/dist/api/SourcesAPI.d.ts +11 -0
  50. package/dist/api/SourcesAPI.js +37 -0
  51. package/dist/api/SpacesAPI.d.ts +11 -0
  52. package/dist/api/SpacesAPI.js +37 -0
  53. package/dist/api/StairsAPI.d.ts +11 -0
  54. package/dist/api/StairsAPI.js +37 -0
  55. package/dist/api/UpdatesAPI.d.ts +11 -0
  56. package/dist/api/UpdatesAPI.js +37 -0
  57. package/dist/api/index.d.ts +26 -0
  58. package/dist/api/index.js +42 -0
  59. package/dist/c3nav.d.ts +12 -0
  60. package/dist/c3nav.js +49 -0
  61. package/dist/index.d.ts +3 -0
  62. package/dist/index.js +19 -0
  63. package/dist/interfaces/API.d.ts +29 -0
  64. package/dist/interfaces/API.js +2 -0
  65. package/dist/interfaces/AccessRestrictionGroups.d.ts +2 -0
  66. package/dist/interfaces/AccessRestrictionGroups.js +2 -0
  67. package/dist/interfaces/AccessRestrictions.d.ts +2 -0
  68. package/dist/interfaces/AccessRestrictions.js +2 -0
  69. package/dist/interfaces/Areas.d.ts +2 -0
  70. package/dist/interfaces/Areas.js +2 -0
  71. package/dist/interfaces/Bounds.d.ts +3 -0
  72. package/dist/interfaces/Bounds.js +2 -0
  73. package/dist/interfaces/Buildings.d.ts +2 -0
  74. package/dist/interfaces/Buildings.js +2 -0
  75. package/dist/interfaces/Changesets.d.ts +2 -0
  76. package/dist/interfaces/Changesets.js +2 -0
  77. package/dist/interfaces/Columns.d.ts +2 -0
  78. package/dist/interfaces/Columns.js +2 -0
  79. package/dist/interfaces/CrossDescriptions.d.ts +2 -0
  80. package/dist/interfaces/CrossDescriptions.js +2 -0
  81. package/dist/interfaces/Doors.d.ts +2 -0
  82. package/dist/interfaces/Doors.js +2 -0
  83. package/dist/interfaces/Editor.d.ts +2 -0
  84. package/dist/interfaces/Editor.js +2 -0
  85. package/dist/interfaces/Holes.d.ts +2 -0
  86. package/dist/interfaces/Holes.js +2 -0
  87. package/dist/interfaces/LeaveDescriptions.d.ts +2 -0
  88. package/dist/interfaces/LeaveDescriptions.js +2 -0
  89. package/dist/interfaces/Level.d.ts +19 -0
  90. package/dist/interfaces/Level.js +2 -0
  91. package/dist/interfaces/LineObstacles.d.ts +2 -0
  92. package/dist/interfaces/LineObstacles.js +2 -0
  93. package/dist/interfaces/Location.d.ts +28 -0
  94. package/dist/interfaces/Location.js +2 -0
  95. package/dist/interfaces/LocationGroupCategories.d.ts +2 -0
  96. package/dist/interfaces/LocationGroupCategories.js +2 -0
  97. package/dist/interfaces/LocationGroups.d.ts +2 -0
  98. package/dist/interfaces/LocationGroups.js +2 -0
  99. package/dist/interfaces/Obstacles.d.ts +2 -0
  100. package/dist/interfaces/Obstacles.js +2 -0
  101. package/dist/interfaces/Options.d.ts +11 -0
  102. package/dist/interfaces/Options.js +2 -0
  103. package/dist/interfaces/POIs.d.ts +2 -0
  104. package/dist/interfaces/POIs.js +2 -0
  105. package/dist/interfaces/Ramps.d.ts +2 -0
  106. package/dist/interfaces/Ramps.js +2 -0
  107. package/dist/interfaces/Root.d.ts +135 -0
  108. package/dist/interfaces/Root.js +2 -0
  109. package/dist/interfaces/Routing.d.ts +2 -0
  110. package/dist/interfaces/Routing.js +2 -0
  111. package/dist/interfaces/Session.d.ts +2 -0
  112. package/dist/interfaces/Session.js +2 -0
  113. package/dist/interfaces/Sources.d.ts +2 -0
  114. package/dist/interfaces/Sources.js +2 -0
  115. package/dist/interfaces/Spaces.d.ts +2 -0
  116. package/dist/interfaces/Spaces.js +2 -0
  117. package/dist/interfaces/Stairs.d.ts +2 -0
  118. package/dist/interfaces/Stairs.js +2 -0
  119. package/dist/interfaces/Updates.d.ts +2 -0
  120. package/dist/interfaces/Updates.js +2 -0
  121. package/dist/interfaces/index.d.ts +29 -0
  122. package/dist/interfaces/index.js +45 -0
  123. package/package.json +4 -3
@@ -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,11 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { ClientOptions, Editor } from '../interfaces/';
3
+ import { APIBase } from './APIBase';
4
+ export declare class EditorAPI extends APIBase {
5
+ constructor(apiClient: APIClient, options: ClientOptions);
6
+ /**
7
+ * @param id The id to get
8
+ */
9
+ getById(id: number): Promise<Editor>;
10
+ getList(): Promise<Editor[]>;
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.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
+ /**
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.editor(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.editor();
32
+ const { data } = yield this.apiClient.get(endpoint);
33
+ return data;
34
+ });
35
+ }
36
+ }
37
+ 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(): Promise<Location[]>;
20
+ getLocation(id: number): Promise<Location>;
21
+ getLocation(slug: string): Promise<Location>;
22
+ getTypes(): Promise<LocationType[]>;
23
+ }
@@ -0,0 +1,64 @@
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() {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ const endpoint = Endpoints_1.Endpoint.Location.locations();
45
+ const { data } = yield this.apiClient.get(endpoint);
46
+ return data;
47
+ });
48
+ }
49
+ getLocation(id) {
50
+ return __awaiter(this, void 0, void 0, function* () {
51
+ const endpoint = Endpoints_1.Endpoint.Location.detail(id);
52
+ const { data } = yield this.apiClient.get(endpoint);
53
+ return data;
54
+ });
55
+ }
56
+ getTypes() {
57
+ return __awaiter(this, void 0, void 0, function* () {
58
+ const endpoint = Endpoints_1.Endpoint.Location.types();
59
+ const { data } = yield this.apiClient.get(endpoint);
60
+ return data;
61
+ });
62
+ }
63
+ }
64
+ exports.LocationsAPI = LocationsAPI;
@@ -0,0 +1,8 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { Bounds, ClientOptions } 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
+ }
@@ -0,0 +1,28 @@
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.MapAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ const APIBase_1 = require("./APIBase");
15
+ class MapAPI extends APIBase_1.APIBase {
16
+ constructor(apiClient, options) {
17
+ super(apiClient, options);
18
+ }
19
+ /** /bounds/ returns the maximum bounds of the map */
20
+ getBounds() {
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const endpoint = Endpoints_1.Endpoint.Map.bounds();
23
+ const { data } = yield this.apiClient.get(endpoint);
24
+ return data;
25
+ });
26
+ }
27
+ }
28
+ exports.MapAPI = MapAPI;
@@ -0,0 +1,11 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { ClientOptions, Obstacles } from '../interfaces/';
3
+ import { APIBase } from './APIBase';
4
+ export declare class ObstaclesAPI extends APIBase {
5
+ constructor(apiClient: APIClient, options: ClientOptions);
6
+ /**
7
+ * @param id The id to get
8
+ */
9
+ getById(id: number): Promise<Obstacles>;
10
+ getList(): Promise<Obstacles[]>;
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.ObstaclesAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ const APIBase_1 = require("./APIBase");
15
+ class ObstaclesAPI 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.obstacles(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.obstacles();
32
+ const { data } = yield this.apiClient.get(endpoint);
33
+ return data;
34
+ });
35
+ }
36
+ }
37
+ exports.ObstaclesAPI = ObstaclesAPI;
@@ -0,0 +1,11 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { ClientOptions, POIs } from '../interfaces';
3
+ import { APIBase } from './APIBase';
4
+ export declare class PoisAPI extends APIBase {
5
+ constructor(apiClient: APIClient, options: ClientOptions);
6
+ /**
7
+ * @param id The id to get
8
+ */
9
+ getById(id: number): Promise<POIs>;
10
+ getList(): Promise<POIs[]>;
11
+ }