c3nav 3.4.4 → 3.4.6

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/package.json +5 -6
  2. package/dist/Endpoints.d.ts +0 -68
  3. package/dist/Endpoints.js +0 -237
  4. package/dist/api/APIBase.d.ts +0 -12
  5. package/dist/api/APIBase.js +0 -17
  6. package/dist/api/AccessRestrictionGroupsAPI.d.ts +0 -11
  7. package/dist/api/AccessRestrictionGroupsAPI.js +0 -37
  8. package/dist/api/AccessRestrictionsAPI.d.ts +0 -11
  9. package/dist/api/AccessRestrictionsAPI.js +0 -37
  10. package/dist/api/AreasAPI.d.ts +0 -11
  11. package/dist/api/AreasAPI.js +0 -37
  12. package/dist/api/BuildingsAPI.d.ts +0 -11
  13. package/dist/api/BuildingsAPI.js +0 -37
  14. package/dist/api/ChangesetsAPI.d.ts +0 -11
  15. package/dist/api/ChangesetsAPI.js +0 -37
  16. package/dist/api/ColumnsAPI.d.ts +0 -11
  17. package/dist/api/ColumnsAPI.js +0 -37
  18. package/dist/api/CrossDescriptionsAPI.d.ts +0 -11
  19. package/dist/api/CrossDescriptionsAPI.js +0 -37
  20. package/dist/api/DoorsAPI.d.ts +0 -11
  21. package/dist/api/DoorsAPI.js +0 -37
  22. package/dist/api/EditorAPI.d.ts +0 -11
  23. package/dist/api/EditorAPI.js +0 -37
  24. package/dist/api/HolesAPI.d.ts +0 -11
  25. package/dist/api/HolesAPI.js +0 -37
  26. package/dist/api/LeaveDescriptionsAPI.d.ts +0 -11
  27. package/dist/api/LeaveDescriptionsAPI.js +0 -37
  28. package/dist/api/LevelListAPI.d.ts +0 -11
  29. package/dist/api/LevelListAPI.js +0 -37
  30. package/dist/api/LineObstaclesAPI.d.ts +0 -11
  31. package/dist/api/LineObstaclesAPI.js +0 -37
  32. package/dist/api/LocationGroupCategoriesAPI.d.ts +0 -11
  33. package/dist/api/LocationGroupCategoriesAPI.js +0 -37
  34. package/dist/api/LocationGroupsAPI.d.ts +0 -11
  35. package/dist/api/LocationGroupsAPI.js +0 -37
  36. package/dist/api/LocationsAPI.d.ts +0 -23
  37. package/dist/api/LocationsAPI.js +0 -64
  38. package/dist/api/MapAPI.d.ts +0 -8
  39. package/dist/api/MapAPI.js +0 -28
  40. package/dist/api/ObstaclesAPI.d.ts +0 -11
  41. package/dist/api/ObstaclesAPI.js +0 -37
  42. package/dist/api/POIs.d.ts +0 -11
  43. package/dist/api/POIs.js +0 -37
  44. package/dist/api/RampsAPI.d.ts +0 -11
  45. package/dist/api/RampsAPI.js +0 -37
  46. package/dist/api/RoutingAPI.d.ts +0 -11
  47. package/dist/api/RoutingAPI.js +0 -37
  48. package/dist/api/SessionAPI.d.ts +0 -11
  49. package/dist/api/SessionAPI.js +0 -37
  50. package/dist/api/SourcesAPI.d.ts +0 -11
  51. package/dist/api/SourcesAPI.js +0 -37
  52. package/dist/api/SpacesAPI.d.ts +0 -11
  53. package/dist/api/SpacesAPI.js +0 -37
  54. package/dist/api/StairsAPI.d.ts +0 -11
  55. package/dist/api/StairsAPI.js +0 -37
  56. package/dist/api/UpdatesAPI.d.ts +0 -11
  57. package/dist/api/UpdatesAPI.js +0 -37
  58. package/dist/api/index.d.ts +0 -26
  59. package/dist/api/index.js +0 -42
  60. package/dist/c3nav.d.ts +0 -12
  61. package/dist/c3nav.js +0 -49
  62. package/dist/index.d.ts +0 -2
  63. package/dist/index.js +0 -18
  64. package/dist/interfaces/API.d.ts +0 -29
  65. package/dist/interfaces/API.js +0 -2
  66. package/dist/interfaces/AccessRestrictionGroups.d.ts +0 -2
  67. package/dist/interfaces/AccessRestrictionGroups.js +0 -2
  68. package/dist/interfaces/AccessRestrictions.d.ts +0 -2
  69. package/dist/interfaces/AccessRestrictions.js +0 -2
  70. package/dist/interfaces/Areas.d.ts +0 -2
  71. package/dist/interfaces/Areas.js +0 -2
  72. package/dist/interfaces/Bounds.d.ts +0 -3
  73. package/dist/interfaces/Bounds.js +0 -2
  74. package/dist/interfaces/Buildings.d.ts +0 -2
  75. package/dist/interfaces/Buildings.js +0 -2
  76. package/dist/interfaces/Changesets.d.ts +0 -2
  77. package/dist/interfaces/Changesets.js +0 -2
  78. package/dist/interfaces/Columns.d.ts +0 -2
  79. package/dist/interfaces/Columns.js +0 -2
  80. package/dist/interfaces/CrossDescriptions.d.ts +0 -2
  81. package/dist/interfaces/CrossDescriptions.js +0 -2
  82. package/dist/interfaces/Doors.d.ts +0 -2
  83. package/dist/interfaces/Doors.js +0 -2
  84. package/dist/interfaces/Editor.d.ts +0 -2
  85. package/dist/interfaces/Editor.js +0 -2
  86. package/dist/interfaces/Holes.d.ts +0 -2
  87. package/dist/interfaces/Holes.js +0 -2
  88. package/dist/interfaces/LeaveDescriptions.d.ts +0 -2
  89. package/dist/interfaces/LeaveDescriptions.js +0 -2
  90. package/dist/interfaces/Level.d.ts +0 -19
  91. package/dist/interfaces/Level.js +0 -2
  92. package/dist/interfaces/LineObstacles.d.ts +0 -2
  93. package/dist/interfaces/LineObstacles.js +0 -2
  94. package/dist/interfaces/Location.d.ts +0 -28
  95. package/dist/interfaces/Location.js +0 -2
  96. package/dist/interfaces/LocationGroupCategories.d.ts +0 -2
  97. package/dist/interfaces/LocationGroupCategories.js +0 -2
  98. package/dist/interfaces/LocationGroups.d.ts +0 -2
  99. package/dist/interfaces/LocationGroups.js +0 -2
  100. package/dist/interfaces/Obstacles.d.ts +0 -2
  101. package/dist/interfaces/Obstacles.js +0 -2
  102. package/dist/interfaces/Options.d.ts +0 -11
  103. package/dist/interfaces/Options.js +0 -2
  104. package/dist/interfaces/POIs.d.ts +0 -2
  105. package/dist/interfaces/POIs.js +0 -2
  106. package/dist/interfaces/Ramps.d.ts +0 -2
  107. package/dist/interfaces/Ramps.js +0 -2
  108. package/dist/interfaces/Root.d.ts +0 -135
  109. package/dist/interfaces/Root.js +0 -2
  110. package/dist/interfaces/Routing.d.ts +0 -2
  111. package/dist/interfaces/Routing.js +0 -2
  112. package/dist/interfaces/Session.d.ts +0 -2
  113. package/dist/interfaces/Session.js +0 -2
  114. package/dist/interfaces/Sources.d.ts +0 -2
  115. package/dist/interfaces/Sources.js +0 -2
  116. package/dist/interfaces/Spaces.d.ts +0 -2
  117. package/dist/interfaces/Spaces.js +0 -2
  118. package/dist/interfaces/Stairs.d.ts +0 -2
  119. package/dist/interfaces/Stairs.js +0 -2
  120. package/dist/interfaces/Updates.d.ts +0 -2
  121. package/dist/interfaces/Updates.js +0 -2
  122. package/dist/interfaces/index.d.ts +0 -29
  123. package/dist/interfaces/index.js +0 -45
package/dist/api/POIs.js DELETED
@@ -1,37 +0,0 @@
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.PoisAPI = void 0;
13
- const Endpoints_1 = require("../Endpoints");
14
- const APIBase_1 = require("./APIBase");
15
- class PoisAPI 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.pois(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.pois();
32
- const { data } = yield this.apiClient.get(endpoint);
33
- return data;
34
- });
35
- }
36
- }
37
- exports.PoisAPI = PoisAPI;
@@ -1,11 +0,0 @@
1
- import type { APIClient } from '@ffflorian/api-client';
2
- import type { ClientOptions, Ramps } from '../interfaces/';
3
- import { APIBase } from './APIBase';
4
- export declare class RampsAPI extends APIBase {
5
- constructor(apiClient: APIClient, options: ClientOptions);
6
- /**
7
- * @param id The id to get
8
- */
9
- getById(id: number): Promise<Ramps>;
10
- getList(): Promise<Ramps[]>;
11
- }
@@ -1,37 +0,0 @@
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.RampsAPI = void 0;
13
- const Endpoints_1 = require("../Endpoints");
14
- const APIBase_1 = require("./APIBase");
15
- class RampsAPI 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.ramps(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.ramps();
32
- const { data } = yield this.apiClient.get(endpoint);
33
- return data;
34
- });
35
- }
36
- }
37
- exports.RampsAPI = RampsAPI;
@@ -1,11 +0,0 @@
1
- import type { APIClient } from '@ffflorian/api-client';
2
- import type { ClientOptions, Routing } from '../interfaces/';
3
- import { APIBase } from './APIBase';
4
- export declare class RoutingAPI extends APIBase {
5
- constructor(apiClient: APIClient, options: ClientOptions);
6
- /**
7
- * @param id The id to get
8
- */
9
- getById(id: number): Promise<Routing>;
10
- getList(): Promise<Routing[]>;
11
- }
@@ -1,37 +0,0 @@
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.RoutingAPI = void 0;
13
- const Endpoints_1 = require("../Endpoints");
14
- const APIBase_1 = require("./APIBase");
15
- class RoutingAPI 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.routing(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.routing();
32
- const { data } = yield this.apiClient.get(endpoint);
33
- return data;
34
- });
35
- }
36
- }
37
- exports.RoutingAPI = RoutingAPI;
@@ -1,11 +0,0 @@
1
- import type { APIClient } from '@ffflorian/api-client';
2
- import type { ClientOptions, Session } from '../interfaces/';
3
- import { APIBase } from './APIBase';
4
- export declare class SessionAPI extends APIBase {
5
- constructor(apiClient: APIClient, options: ClientOptions);
6
- /**
7
- * @param id The id to get
8
- */
9
- getById(id: number): Promise<Session>;
10
- getList(): Promise<Session[]>;
11
- }
@@ -1,37 +0,0 @@
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.SessionAPI = void 0;
13
- const Endpoints_1 = require("../Endpoints");
14
- const APIBase_1 = require("./APIBase");
15
- class SessionAPI 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.session(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.session();
32
- const { data } = yield this.apiClient.get(endpoint);
33
- return data;
34
- });
35
- }
36
- }
37
- exports.SessionAPI = SessionAPI;
@@ -1,11 +0,0 @@
1
- import type { APIClient } from '@ffflorian/api-client';
2
- import type { ClientOptions, Sources } from '../interfaces/';
3
- import { APIBase } from './APIBase';
4
- export declare class SourcesAPI extends APIBase {
5
- constructor(apiClient: APIClient, options: ClientOptions);
6
- /**
7
- * @param id The id to get
8
- */
9
- getById(id: number): Promise<Sources>;
10
- getList(): Promise<Sources[]>;
11
- }
@@ -1,37 +0,0 @@
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.SourcesAPI = void 0;
13
- const Endpoints_1 = require("../Endpoints");
14
- const APIBase_1 = require("./APIBase");
15
- class SourcesAPI 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.sources(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.sources();
32
- const { data } = yield this.apiClient.get(endpoint);
33
- return data;
34
- });
35
- }
36
- }
37
- exports.SourcesAPI = SourcesAPI;
@@ -1,11 +0,0 @@
1
- import type { APIClient } from '@ffflorian/api-client';
2
- import type { ClientOptions, Spaces } from '../interfaces/';
3
- import { APIBase } from './APIBase';
4
- export declare class SpacesAPI extends APIBase {
5
- constructor(apiClient: APIClient, options: ClientOptions);
6
- /**
7
- * @param id The id to get
8
- */
9
- getById(id: number): Promise<Spaces>;
10
- getList(): Promise<Spaces[]>;
11
- }
@@ -1,37 +0,0 @@
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.SpacesAPI = void 0;
13
- const Endpoints_1 = require("../Endpoints");
14
- const APIBase_1 = require("./APIBase");
15
- class SpacesAPI 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.spaces(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.spaces();
32
- const { data } = yield this.apiClient.get(endpoint);
33
- return data;
34
- });
35
- }
36
- }
37
- exports.SpacesAPI = SpacesAPI;
@@ -1,11 +0,0 @@
1
- import type { APIClient } from '@ffflorian/api-client';
2
- import type { ClientOptions, Stairs } from '../interfaces/';
3
- import { APIBase } from './APIBase';
4
- export declare class StairsAPI extends APIBase {
5
- constructor(apiClient: APIClient, options: ClientOptions);
6
- /**
7
- * @param id The id to get
8
- */
9
- getById(id: number): Promise<Stairs>;
10
- getList(): Promise<Stairs[]>;
11
- }
@@ -1,37 +0,0 @@
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.StairsAPI = void 0;
13
- const Endpoints_1 = require("../Endpoints");
14
- const APIBase_1 = require("./APIBase");
15
- class StairsAPI 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.stairs(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.stairs();
32
- const { data } = yield this.apiClient.get(endpoint);
33
- return data;
34
- });
35
- }
36
- }
37
- exports.StairsAPI = StairsAPI;
@@ -1,11 +0,0 @@
1
- import type { APIClient } from '@ffflorian/api-client';
2
- import type { ClientOptions, Updates } from '../interfaces/';
3
- import { APIBase } from './APIBase';
4
- export declare class UpdatesAPI extends APIBase {
5
- constructor(apiClient: APIClient, options: ClientOptions);
6
- /**
7
- * @param id The id to get
8
- */
9
- getById(id: number): Promise<Updates>;
10
- getList(): Promise<Updates[]>;
11
- }
@@ -1,37 +0,0 @@
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.UpdatesAPI = void 0;
13
- const Endpoints_1 = require("../Endpoints");
14
- const APIBase_1 = require("./APIBase");
15
- class UpdatesAPI 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.updates(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.updates();
32
- const { data } = yield this.apiClient.get(endpoint);
33
- return data;
34
- });
35
- }
36
- }
37
- exports.UpdatesAPI = UpdatesAPI;
@@ -1,26 +0,0 @@
1
- export * from './AccessRestrictionGroupsAPI';
2
- export * from './AccessRestrictionsAPI';
3
- export * from './AreasAPI';
4
- export * from './BuildingsAPI';
5
- export * from './ChangesetsAPI';
6
- export * from './ColumnsAPI';
7
- export * from './CrossDescriptionsAPI';
8
- export * from './DoorsAPI';
9
- export * from './EditorAPI';
10
- export * from './HolesAPI';
11
- export * from './LeaveDescriptionsAPI';
12
- export * from './LevelListAPI';
13
- export * from './LineObstaclesAPI';
14
- export * from './LocationGroupCategoriesAPI';
15
- export * from './LocationGroupsAPI';
16
- export * from './LocationsAPI';
17
- export * from './MapAPI';
18
- export * from './ObstaclesAPI';
19
- export * from './POIs';
20
- export * from './RampsAPI';
21
- export * from './RoutingAPI';
22
- export * from './SessionAPI';
23
- export * from './SourcesAPI';
24
- export * from './SpacesAPI';
25
- export * from './StairsAPI';
26
- export * from './UpdatesAPI';
package/dist/api/index.js DELETED
@@ -1,42 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./AccessRestrictionGroupsAPI"), exports);
18
- __exportStar(require("./AccessRestrictionsAPI"), exports);
19
- __exportStar(require("./AreasAPI"), exports);
20
- __exportStar(require("./BuildingsAPI"), exports);
21
- __exportStar(require("./ChangesetsAPI"), exports);
22
- __exportStar(require("./ColumnsAPI"), exports);
23
- __exportStar(require("./CrossDescriptionsAPI"), exports);
24
- __exportStar(require("./DoorsAPI"), exports);
25
- __exportStar(require("./EditorAPI"), exports);
26
- __exportStar(require("./HolesAPI"), exports);
27
- __exportStar(require("./LeaveDescriptionsAPI"), exports);
28
- __exportStar(require("./LevelListAPI"), exports);
29
- __exportStar(require("./LineObstaclesAPI"), exports);
30
- __exportStar(require("./LocationGroupCategoriesAPI"), exports);
31
- __exportStar(require("./LocationGroupsAPI"), exports);
32
- __exportStar(require("./LocationsAPI"), exports);
33
- __exportStar(require("./MapAPI"), exports);
34
- __exportStar(require("./ObstaclesAPI"), exports);
35
- __exportStar(require("./POIs"), exports);
36
- __exportStar(require("./RampsAPI"), exports);
37
- __exportStar(require("./RoutingAPI"), exports);
38
- __exportStar(require("./SessionAPI"), exports);
39
- __exportStar(require("./SourcesAPI"), exports);
40
- __exportStar(require("./SpacesAPI"), exports);
41
- __exportStar(require("./StairsAPI"), exports);
42
- __exportStar(require("./UpdatesAPI"), exports);
package/dist/c3nav.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import type { API, ClientOptions } from './interfaces';
2
- export declare class LibrariesIO {
3
- readonly api: API;
4
- private readonly apiClient;
5
- constructor(apiUrl: string);
6
- constructor(options: ClientOptions);
7
- /**
8
- * Set a new API URL.
9
- * @param newURL The new API URL
10
- */
11
- setApiUrl(newURL: string): void;
12
- }
package/dist/c3nav.js DELETED
@@ -1,49 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LibrariesIO = void 0;
4
- const api_client_1 = require("@ffflorian/api-client");
5
- const api_1 = require("./api");
6
- class LibrariesIO {
7
- constructor(options) {
8
- if (typeof options === 'string') {
9
- options = { apiUrl: options };
10
- }
11
- this.apiClient = new api_client_1.APIClient('https://c3nav.de/api/');
12
- this.api = {
13
- accessRestrictionGroups: new api_1.AccessRestrictionGroupsAPI(this.apiClient, options),
14
- accessRestrictions: new api_1.AccessRestrictionsAPI(this.apiClient, options),
15
- areas: new api_1.AreasAPI(this.apiClient, options),
16
- buildings: new api_1.BuildingsAPI(this.apiClient, options),
17
- changesets: new api_1.ChangesetsAPI(this.apiClient, options),
18
- columns: new api_1.ColumnsAPI(this.apiClient, options),
19
- crossDescriptions: new api_1.CrossDescriptionsAPI(this.apiClient, options),
20
- doors: new api_1.DoorsAPI(this.apiClient, options),
21
- editor: new api_1.EditorAPI(this.apiClient, options),
22
- holes: new api_1.HolesAPI(this.apiClient, options),
23
- leaveDescriptions: new api_1.LeaveDescriptionsAPI(this.apiClient, options),
24
- levels: new api_1.LevelListAPI(this.apiClient, options),
25
- lineObstacles: new api_1.LineObstaclesAPI(this.apiClient, options),
26
- locationGroupCategories: new api_1.LocationGroupCategoriesAPI(this.apiClient, options),
27
- locationGroups: new api_1.LocationGroupsAPI(this.apiClient, options),
28
- locations: new api_1.LocationsAPI(this.apiClient, options),
29
- map: new api_1.MapAPI(this.apiClient, options),
30
- obstacles: new api_1.ObstaclesAPI(this.apiClient, options),
31
- pois: new api_1.PoisAPI(this.apiClient, options),
32
- ramps: new api_1.RampsAPI(this.apiClient, options),
33
- routing: new api_1.RoutingAPI(this.apiClient, options),
34
- session: new api_1.SessionAPI(this.apiClient, options),
35
- sources: new api_1.SourcesAPI(this.apiClient, options),
36
- spaces: new api_1.SpacesAPI(this.apiClient, options),
37
- stairs: new api_1.StairsAPI(this.apiClient, options),
38
- updates: new api_1.UpdatesAPI(this.apiClient, options),
39
- };
40
- }
41
- /**
42
- * Set a new API URL.
43
- * @param newURL The new API URL
44
- */
45
- setApiUrl(newURL) {
46
- this.apiClient.setBaseURL(newURL);
47
- }
48
- }
49
- exports.LibrariesIO = LibrariesIO;
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './c3nav';
2
- export * from './interfaces/';
package/dist/index.js DELETED
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./c3nav"), exports);
18
- __exportStar(require("./interfaces/"), exports);
@@ -1,29 +0,0 @@
1
- import type { AccessRestrictionGroupsAPI, AccessRestrictionsAPI, AreasAPI, BuildingsAPI, ChangesetsAPI, ColumnsAPI, CrossDescriptionsAPI, DoorsAPI, EditorAPI, HolesAPI, LeaveDescriptionsAPI, LevelListAPI, LineObstaclesAPI, LocationGroupCategoriesAPI, LocationGroupsAPI, LocationsAPI, MapAPI, ObstaclesAPI, PoisAPI, RampsAPI, RoutingAPI, SessionAPI, SourcesAPI, SpacesAPI, StairsAPI, UpdatesAPI } from '../api/';
2
- export interface API {
3
- accessRestrictionGroups: AccessRestrictionGroupsAPI;
4
- accessRestrictions: AccessRestrictionsAPI;
5
- areas: AreasAPI;
6
- buildings: BuildingsAPI;
7
- changesets: ChangesetsAPI;
8
- columns: ColumnsAPI;
9
- crossDescriptions: CrossDescriptionsAPI;
10
- doors: DoorsAPI;
11
- editor: EditorAPI;
12
- holes: HolesAPI;
13
- leaveDescriptions: LeaveDescriptionsAPI;
14
- levels: LevelListAPI;
15
- lineObstacles: LineObstaclesAPI;
16
- locationGroupCategories: LocationGroupCategoriesAPI;
17
- locationGroups: LocationGroupsAPI;
18
- locations: LocationsAPI;
19
- map: MapAPI;
20
- obstacles: ObstaclesAPI;
21
- pois: PoisAPI;
22
- ramps: RampsAPI;
23
- routing: RoutingAPI;
24
- session: SessionAPI;
25
- sources: SourcesAPI;
26
- spaces: SpacesAPI;
27
- stairs: StairsAPI;
28
- updates: UpdatesAPI;
29
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export interface AccessRestrictionGroups {
2
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export interface AccessRestrictions {
2
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export interface Areas {
2
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export interface Bounds {
2
- bounds: Array<[number, number]>;
3
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export interface Buildings {
2
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export interface Changesets {
2
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export interface Columns {
2
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export interface CrossDescriptions {
2
- }