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
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # c3nav [![npm version](https://img.shields.io/npm/v/c3nav.svg)](https://www.npmjs.com/package/c3nav)
2
2
 
3
- A [c3nav](https://c3nav.de) API client. For a documentation on the API see https://c3nav.de/api/.
3
+ A [c3nav](https://c3nav.de) API client. For a documentation on the API see [the c3nav API reference](https://39c3.c3nav.de/api/v2/).
4
4
 
5
5
  ### Installation
6
6
 
@@ -0,0 +1,112 @@
1
+ export declare const Endpoint: {
2
+ ACCESSRESTRICTIONGROUPS: string;
3
+ accessRestrictionGroups(id?: number | string): string;
4
+ ACCESSRESTRICTIONS: string;
5
+ accessRestrictions(id?: number | string): string;
6
+ AREAS: string;
7
+ areas(id?: number | string): string;
8
+ BOUNDS: string;
9
+ BUILDINGS: string;
10
+ buildings(id?: number | string): string;
11
+ CHANGESETS: string;
12
+ changesets(id?: number | string): string;
13
+ COLUMNS: string;
14
+ columns(id?: number | string): string;
15
+ CROSSDESCRIPTIONS: string;
16
+ crossDescriptions(id?: number | string): string;
17
+ DETAILS: string;
18
+ DOORS: string;
19
+ doors(id?: number | string): string;
20
+ EDITOR: string;
21
+ editor(id?: number | string): string;
22
+ Editor: {
23
+ beaconsLookup(): string;
24
+ bounds(): string;
25
+ geometryStyles(): string;
26
+ levelGeometries(levelId: number | string): string;
27
+ spaceGeometries(spaceId: number | string): string;
28
+ };
29
+ GEOMETRY: string;
30
+ HOLES: string;
31
+ holes(id?: number | string): string;
32
+ LEAVEDESCRIPTIONS: string;
33
+ leaveDescriptions(id?: number | string): string;
34
+ Level: {
35
+ levels(id?: number | string): string;
36
+ };
37
+ LEVELS: string;
38
+ LINEOBSTACLES: string;
39
+ lineObstacles(id?: number | string): string;
40
+ Location: {
41
+ detail(id: number | string): string;
42
+ details(id: number | string): string;
43
+ geometry(id: number | string): string;
44
+ locations(): string;
45
+ types(): string;
46
+ };
47
+ LOCATIONGROUPCATEGORIES: string;
48
+ locationGroupCategories(id?: number | string): string;
49
+ LOCATIONGROUPS: string;
50
+ locationGroups(id?: number | string): string;
51
+ LOCATIONS: string;
52
+ MAP: string;
53
+ Map: {
54
+ bounds(): string;
55
+ legend(themeId: number | string): string;
56
+ load(): string;
57
+ locationById(locationId: number | string, full?: boolean): string;
58
+ locationBySlug(locationSlug: string, full?: boolean): string;
59
+ locationDisplayById(locationId: number | string): string;
60
+ locationDisplayBySlug(locationSlug: string): string;
61
+ locationGeometryById(locationId: number | string): string;
62
+ locationGeometryBySlug(locationSlug: string): string;
63
+ locations(full?: boolean): string;
64
+ myPositions(): string;
65
+ position(positionId: number | string): string;
66
+ projection(): string;
67
+ quests(): string;
68
+ settings(): string;
69
+ wifidata(): string;
70
+ };
71
+ Mesh: {
72
+ firmwareById(firmwareId: number): string;
73
+ firmwares(): string;
74
+ map(levelId: number): string;
75
+ messages(): string;
76
+ };
77
+ OBSTACLES: string;
78
+ obstacles(id?: number | string): string;
79
+ POIS: string;
80
+ pois(id?: number | string): string;
81
+ Positioning: {
82
+ locate(): string;
83
+ locateTest(): string;
84
+ };
85
+ RAMPS: string;
86
+ ramps(id?: number | string): string;
87
+ ROUTING: string;
88
+ routing(id?: number | string): string;
89
+ Routing: {
90
+ options(): string;
91
+ optionsForm(): string;
92
+ route(): string;
93
+ };
94
+ SESSION: string;
95
+ session(id?: number | string): string;
96
+ Session: {
97
+ key(): string;
98
+ status(): string;
99
+ };
100
+ SOURCES: string;
101
+ sources(id?: number | string): string;
102
+ SPACES: string;
103
+ spaces(id?: number | string): string;
104
+ STAIRS: string;
105
+ stairs(id?: number | string): string;
106
+ TYPES: string;
107
+ UPDATES: string;
108
+ updates(id?: number | string): string;
109
+ Updates: {
110
+ fetch(): string;
111
+ };
112
+ };
@@ -0,0 +1,276 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Endpoint = void 0;
4
+ const encode = encodeURIComponent;
5
+ function mapDataEndpoint(path, id) {
6
+ let endpoint = `/api/v2/mapdata/${path}/`;
7
+ if (id !== undefined) {
8
+ endpoint += `${encode(String(id))}/`;
9
+ }
10
+ return endpoint;
11
+ }
12
+ exports.Endpoint = {
13
+ ACCESSRESTRICTIONGROUPS: 'accessrestrictiongroups',
14
+ accessRestrictionGroups(id) {
15
+ return mapDataEndpoint('accessrestrictiongroups', id);
16
+ },
17
+ ACCESSRESTRICTIONS: 'accessrestrictions',
18
+ accessRestrictions(id) {
19
+ return mapDataEndpoint('accessrestrictions', id);
20
+ },
21
+ AREAS: 'areas',
22
+ areas(id) {
23
+ return mapDataEndpoint('areas', id);
24
+ },
25
+ BOUNDS: 'bounds',
26
+ BUILDINGS: 'buildings',
27
+ buildings(id) {
28
+ return mapDataEndpoint('buildings', id);
29
+ },
30
+ CHANGESETS: 'changesets',
31
+ changesets(id) {
32
+ return mapDataEndpoint('changesets', id);
33
+ },
34
+ COLUMNS: 'columns',
35
+ columns(id) {
36
+ return mapDataEndpoint('columns', id);
37
+ },
38
+ CROSSDESCRIPTIONS: 'cross_descriptions',
39
+ crossDescriptions(id) {
40
+ return mapDataEndpoint('cross_descriptions', id);
41
+ },
42
+ DETAILS: 'display',
43
+ DOORS: 'doors',
44
+ doors(id) {
45
+ return mapDataEndpoint('doors', id);
46
+ },
47
+ EDITOR: 'editor',
48
+ editor(id) {
49
+ let endpoint = '/api/v2/editor/';
50
+ if (id !== undefined) {
51
+ endpoint += `${encode(String(id))}/`;
52
+ }
53
+ return endpoint;
54
+ },
55
+ Editor: {
56
+ beaconsLookup() {
57
+ return '/api/v2/editor/beacons-lookup/';
58
+ },
59
+ bounds() {
60
+ return '/api/v2/editor/bounds/';
61
+ },
62
+ geometryStyles() {
63
+ return '/api/v2/editor/geometrystyles/';
64
+ },
65
+ levelGeometries(levelId) {
66
+ return `/api/v2/editor/geometries/level/${encode(String(levelId))}/`;
67
+ },
68
+ spaceGeometries(spaceId) {
69
+ return `/api/v2/editor/geometries/space/${encode(String(spaceId))}/`;
70
+ },
71
+ },
72
+ GEOMETRY: 'geometry',
73
+ HOLES: 'holes',
74
+ holes(id) {
75
+ return mapDataEndpoint('holes', id);
76
+ },
77
+ LEAVEDESCRIPTIONS: 'leave_descriptions',
78
+ leaveDescriptions(id) {
79
+ return mapDataEndpoint('leave_descriptions', id);
80
+ },
81
+ Level: {
82
+ levels(id) {
83
+ return mapDataEndpoint('levels', id);
84
+ },
85
+ },
86
+ LEVELS: 'levels',
87
+ LINEOBSTACLES: 'lineobstacles',
88
+ lineObstacles(id) {
89
+ return mapDataEndpoint('lineobstacles', id);
90
+ },
91
+ Location: {
92
+ detail(id) {
93
+ if (typeof id === 'string') {
94
+ return `/api/v2/map/locations/by-slug/${encode(String(id))}/`;
95
+ }
96
+ return `/api/v2/map/locations/${encode(String(id))}/`;
97
+ },
98
+ details(id) {
99
+ if (typeof id === 'string') {
100
+ return `/api/v2/map/locations/by-slug/${encode(String(id))}/display/`;
101
+ }
102
+ return `/api/v2/map/locations/${encode(String(id))}/display/`;
103
+ },
104
+ geometry(id) {
105
+ if (typeof id === 'string') {
106
+ return `/api/v2/map/locations/by-slug/${encode(String(id))}/geometry/`;
107
+ }
108
+ return `/api/v2/map/locations/${encode(String(id))}/geometry/`;
109
+ },
110
+ locations() {
111
+ return '/api/v2/map/locations/';
112
+ },
113
+ types() {
114
+ return '/api/v2/locations/types/';
115
+ },
116
+ },
117
+ LOCATIONGROUPCATEGORIES: 'locationgroupcategories',
118
+ locationGroupCategories(id) {
119
+ return mapDataEndpoint('locationgroupcategories', id);
120
+ },
121
+ LOCATIONGROUPS: 'locationgroups',
122
+ locationGroups(id) {
123
+ return mapDataEndpoint('locationgroups', id);
124
+ },
125
+ LOCATIONS: 'locations',
126
+ MAP: 'map',
127
+ Map: {
128
+ bounds() {
129
+ return '/api/v2/map/bounds/';
130
+ },
131
+ legend(themeId) {
132
+ return `/api/v2/map/legend/${encode(String(themeId))}/`;
133
+ },
134
+ load() {
135
+ return '/api/v2/map/load/';
136
+ },
137
+ locationById(locationId, full = false) {
138
+ return full
139
+ ? `/api/v2/map/locations/${encode(String(locationId))}/full/`
140
+ : `/api/v2/map/locations/${encode(String(locationId))}/`;
141
+ },
142
+ locationBySlug(locationSlug, full = false) {
143
+ return full
144
+ ? `/api/v2/map/locations/by-slug/${encode(String(locationSlug))}/full/`
145
+ : `/api/v2/map/locations/by-slug/${encode(String(locationSlug))}/`;
146
+ },
147
+ locationDisplayById(locationId) {
148
+ return `/api/v2/map/locations/${encode(String(locationId))}/display/`;
149
+ },
150
+ locationDisplayBySlug(locationSlug) {
151
+ return `/api/v2/map/locations/by-slug/${encode(String(locationSlug))}/display/`;
152
+ },
153
+ locationGeometryById(locationId) {
154
+ return `/api/v2/map/locations/${encode(String(locationId))}/geometry/`;
155
+ },
156
+ locationGeometryBySlug(locationSlug) {
157
+ return `/api/v2/map/locations/by-slug/${encode(String(locationSlug))}/geometry/`;
158
+ },
159
+ locations(full = false) {
160
+ return full ? '/api/v2/map/locations/full/' : '/api/v2/map/locations/';
161
+ },
162
+ myPositions() {
163
+ return '/api/v2/map/positions/my/';
164
+ },
165
+ position(positionId) {
166
+ return `/api/v2/map/positions/${encode(String(positionId))}/`;
167
+ },
168
+ projection() {
169
+ return '/api/v2/map/projection/';
170
+ },
171
+ quests() {
172
+ return '/api/v2/map/quests/';
173
+ },
174
+ settings() {
175
+ return '/api/v2/map/settings/';
176
+ },
177
+ wifidata() {
178
+ return '/api/v2/map/wifidata/';
179
+ },
180
+ },
181
+ Mesh: {
182
+ firmwareById(firmwareId) {
183
+ return `/api/v2/mesh/firmwares/${encode(String(firmwareId))}/`;
184
+ },
185
+ firmwares() {
186
+ return '/api/v2/mesh/firmwares/';
187
+ },
188
+ map(levelId) {
189
+ return `/api/v2/mesh/map/${encode(String(levelId))}/`;
190
+ },
191
+ messages() {
192
+ return '/api/v2/mesh/messages/';
193
+ },
194
+ },
195
+ OBSTACLES: 'obstacles',
196
+ obstacles(id) {
197
+ return mapDataEndpoint('obstacles', id);
198
+ },
199
+ POIS: 'pois',
200
+ pois(id) {
201
+ return mapDataEndpoint('pois', id);
202
+ },
203
+ Positioning: {
204
+ locate() {
205
+ return '/api/v2/positioning/locate/';
206
+ },
207
+ locateTest() {
208
+ return '/api/v2/positioning/locate-test/';
209
+ },
210
+ },
211
+ RAMPS: 'ramps',
212
+ ramps(id) {
213
+ return mapDataEndpoint('ramps', id);
214
+ },
215
+ ROUTING: 'routing',
216
+ routing(id) {
217
+ let endpoint = '/api/v2/routing/';
218
+ if (id !== undefined) {
219
+ endpoint += `${encode(String(id))}/`;
220
+ }
221
+ return endpoint;
222
+ },
223
+ Routing: {
224
+ options() {
225
+ return '/api/v2/routing/options/';
226
+ },
227
+ optionsForm() {
228
+ return '/api/v2/routing/options/form/';
229
+ },
230
+ route() {
231
+ return '/api/v2/routing/route/';
232
+ },
233
+ },
234
+ SESSION: 'session',
235
+ session(id) {
236
+ let endpoint = '/api/v2/auth/session/';
237
+ if (id !== undefined) {
238
+ endpoint += `${encode(String(id))}/`;
239
+ }
240
+ return endpoint;
241
+ },
242
+ Session: {
243
+ key() {
244
+ return '/api/v2/auth/session/';
245
+ },
246
+ status() {
247
+ return '/api/v2/auth/status/';
248
+ },
249
+ },
250
+ SOURCES: 'sources',
251
+ sources(id) {
252
+ return mapDataEndpoint('sources', id);
253
+ },
254
+ SPACES: 'spaces',
255
+ spaces(id) {
256
+ return mapDataEndpoint('spaces', id);
257
+ },
258
+ STAIRS: 'stairs',
259
+ stairs(id) {
260
+ return mapDataEndpoint('stairs', id);
261
+ },
262
+ TYPES: 'types',
263
+ UPDATES: 'updates',
264
+ updates(id) {
265
+ let endpoint = '/api/v2/updates/';
266
+ if (id !== undefined) {
267
+ endpoint += `${encode(String(id))}/`;
268
+ }
269
+ return endpoint;
270
+ },
271
+ Updates: {
272
+ fetch() {
273
+ return '/api/v2/updates/fetch/';
274
+ },
275
+ },
276
+ };
@@ -0,0 +1,12 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { ClientOptions } from '../interfaces/';
3
+ export declare class APIBase {
4
+ protected readonly apiClient: APIClient;
5
+ protected readonly options: ClientOptions;
6
+ constructor(apiClient: APIClient, options: ClientOptions);
7
+ /**
8
+ * Set a new API URL.
9
+ * @param newURL The new API url
10
+ */
11
+ setApiUrl(newURL: string): void;
12
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.APIBase = void 0;
4
+ class APIBase {
5
+ constructor(apiClient, options) {
6
+ this.apiClient = apiClient;
7
+ this.options = options;
8
+ }
9
+ /**
10
+ * Set a new API URL.
11
+ * @param newURL The new API url
12
+ */
13
+ setApiUrl(newURL) {
14
+ this.apiClient.setBaseURL(newURL);
15
+ }
16
+ }
17
+ exports.APIBase = APIBase;
@@ -0,0 +1,11 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { AccessRestrictionGroups, ClientOptions } from '../interfaces/';
3
+ import { APIBase } from './APIBase';
4
+ export declare class AccessRestrictionGroupsAPI extends APIBase {
5
+ constructor(apiClient: APIClient, options: ClientOptions);
6
+ /**
7
+ * @param id The id to get
8
+ */
9
+ getById(id: number): Promise<AccessRestrictionGroups>;
10
+ getList(): Promise<AccessRestrictionGroups[]>;
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.AccessRestrictionGroupsAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ const APIBase_1 = require("./APIBase");
15
+ class AccessRestrictionGroupsAPI 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.accessRestrictionGroups(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.accessRestrictionGroups();
32
+ const { data } = yield this.apiClient.get(endpoint);
33
+ return data;
34
+ });
35
+ }
36
+ }
37
+ exports.AccessRestrictionGroupsAPI = AccessRestrictionGroupsAPI;
@@ -0,0 +1,11 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { AccessRestrictions, ClientOptions } from '../interfaces/';
3
+ import { APIBase } from './APIBase';
4
+ export declare class AccessRestrictionsAPI extends APIBase {
5
+ constructor(apiClient: APIClient, options: ClientOptions);
6
+ /**
7
+ * @param id The id to get
8
+ */
9
+ getById(id: number): Promise<AccessRestrictions>;
10
+ getList(): Promise<AccessRestrictions[]>;
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.AccessRestrictionsAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ const APIBase_1 = require("./APIBase");
15
+ class AccessRestrictionsAPI 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.accessRestrictions(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.accessRestrictions();
32
+ const { data } = yield this.apiClient.get(endpoint);
33
+ return data;
34
+ });
35
+ }
36
+ }
37
+ exports.AccessRestrictionsAPI = AccessRestrictionsAPI;
@@ -0,0 +1,11 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { Areas, ClientOptions } from '../interfaces/';
3
+ import { APIBase } from './APIBase';
4
+ export declare class AreasAPI extends APIBase {
5
+ constructor(apiClient: APIClient, options: ClientOptions);
6
+ /**
7
+ * @param id The id to get
8
+ */
9
+ getById(id: number): Promise<Areas>;
10
+ getList(): Promise<Areas[]>;
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.AreasAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ const APIBase_1 = require("./APIBase");
15
+ class AreasAPI 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.areas(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.areas();
32
+ const { data } = yield this.apiClient.get(endpoint);
33
+ return data;
34
+ });
35
+ }
36
+ }
37
+ exports.AreasAPI = AreasAPI;
@@ -0,0 +1,11 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { Buildings, ClientOptions } from '../interfaces/';
3
+ import { APIBase } from './APIBase';
4
+ export declare class BuildingsAPI extends APIBase {
5
+ constructor(apiClient: APIClient, options: ClientOptions);
6
+ /**
7
+ * @param id The id to get
8
+ */
9
+ getById(id: number): Promise<Buildings>;
10
+ getList(): Promise<Buildings[]>;
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.BuildingsAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ const APIBase_1 = require("./APIBase");
15
+ class BuildingsAPI 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.buildings(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.buildings();
32
+ const { data } = yield this.apiClient.get(endpoint);
33
+ return data;
34
+ });
35
+ }
36
+ }
37
+ exports.BuildingsAPI = BuildingsAPI;
@@ -0,0 +1,11 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { Changesets, ClientOptions } from '../interfaces/';
3
+ import { APIBase } from './APIBase';
4
+ export declare class ChangesetsAPI extends APIBase {
5
+ constructor(apiClient: APIClient, options: ClientOptions);
6
+ /**
7
+ * @param id The id to get
8
+ */
9
+ getById(id: number): Promise<Changesets>;
10
+ getList(): Promise<Changesets[]>;
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.ChangesetsAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ const APIBase_1 = require("./APIBase");
15
+ class ChangesetsAPI 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.changesets(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.changesets();
32
+ const { data } = yield this.apiClient.get(endpoint);
33
+ return data;
34
+ });
35
+ }
36
+ }
37
+ exports.ChangesetsAPI = ChangesetsAPI;