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.
- package/dist/Endpoints.d.ts +68 -0
- package/dist/Endpoints.js +237 -0
- package/dist/api/APIBase.d.ts +12 -0
- package/dist/api/APIBase.js +17 -0
- package/dist/api/AccessRestrictionGroupsAPI.d.ts +11 -0
- package/dist/api/AccessRestrictionGroupsAPI.js +37 -0
- package/dist/api/AccessRestrictionsAPI.d.ts +11 -0
- package/dist/api/AccessRestrictionsAPI.js +37 -0
- package/dist/api/AreasAPI.d.ts +11 -0
- package/dist/api/AreasAPI.js +37 -0
- package/dist/api/BuildingsAPI.d.ts +11 -0
- package/dist/api/BuildingsAPI.js +37 -0
- package/dist/api/ChangesetsAPI.d.ts +11 -0
- package/dist/api/ChangesetsAPI.js +37 -0
- package/dist/api/ColumnsAPI.d.ts +11 -0
- package/dist/api/ColumnsAPI.js +37 -0
- package/dist/api/CrossDescriptionsAPI.d.ts +11 -0
- package/dist/api/CrossDescriptionsAPI.js +37 -0
- package/dist/api/DoorsAPI.d.ts +11 -0
- package/dist/api/DoorsAPI.js +37 -0
- package/dist/api/EditorAPI.d.ts +11 -0
- package/dist/api/EditorAPI.js +37 -0
- package/dist/api/HolesAPI.d.ts +11 -0
- package/dist/api/HolesAPI.js +37 -0
- package/dist/api/LeaveDescriptionsAPI.d.ts +11 -0
- package/dist/api/LeaveDescriptionsAPI.js +37 -0
- package/dist/api/LevelListAPI.d.ts +11 -0
- package/dist/api/LevelListAPI.js +37 -0
- package/dist/api/LineObstaclesAPI.d.ts +11 -0
- package/dist/api/LineObstaclesAPI.js +37 -0
- package/dist/api/LocationGroupCategoriesAPI.d.ts +11 -0
- package/dist/api/LocationGroupCategoriesAPI.js +37 -0
- package/dist/api/LocationGroupsAPI.d.ts +11 -0
- package/dist/api/LocationGroupsAPI.js +37 -0
- package/dist/api/LocationsAPI.d.ts +23 -0
- package/dist/api/LocationsAPI.js +64 -0
- package/dist/api/MapAPI.d.ts +8 -0
- package/dist/api/MapAPI.js +28 -0
- package/dist/api/ObstaclesAPI.d.ts +11 -0
- package/dist/api/ObstaclesAPI.js +37 -0
- package/dist/api/POIs.d.ts +11 -0
- package/dist/api/POIs.js +37 -0
- package/dist/api/RampsAPI.d.ts +11 -0
- package/dist/api/RampsAPI.js +37 -0
- package/dist/api/RoutingAPI.d.ts +11 -0
- package/dist/api/RoutingAPI.js +37 -0
- package/dist/api/SessionAPI.d.ts +11 -0
- package/dist/api/SessionAPI.js +37 -0
- package/dist/api/SourcesAPI.d.ts +11 -0
- package/dist/api/SourcesAPI.js +37 -0
- package/dist/api/SpacesAPI.d.ts +11 -0
- package/dist/api/SpacesAPI.js +37 -0
- package/dist/api/StairsAPI.d.ts +11 -0
- package/dist/api/StairsAPI.js +37 -0
- package/dist/api/UpdatesAPI.d.ts +11 -0
- package/dist/api/UpdatesAPI.js +37 -0
- package/dist/api/index.d.ts +26 -0
- package/dist/api/index.js +42 -0
- package/dist/c3nav.d.ts +12 -0
- package/dist/c3nav.js +49 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +19 -0
- package/dist/interfaces/API.d.ts +29 -0
- package/dist/interfaces/API.js +2 -0
- package/dist/interfaces/AccessRestrictionGroups.d.ts +2 -0
- package/dist/interfaces/AccessRestrictionGroups.js +2 -0
- package/dist/interfaces/AccessRestrictions.d.ts +2 -0
- package/dist/interfaces/AccessRestrictions.js +2 -0
- package/dist/interfaces/Areas.d.ts +2 -0
- package/dist/interfaces/Areas.js +2 -0
- package/dist/interfaces/Bounds.d.ts +3 -0
- package/dist/interfaces/Bounds.js +2 -0
- package/dist/interfaces/Buildings.d.ts +2 -0
- package/dist/interfaces/Buildings.js +2 -0
- package/dist/interfaces/Changesets.d.ts +2 -0
- package/dist/interfaces/Changesets.js +2 -0
- package/dist/interfaces/Columns.d.ts +2 -0
- package/dist/interfaces/Columns.js +2 -0
- package/dist/interfaces/CrossDescriptions.d.ts +2 -0
- package/dist/interfaces/CrossDescriptions.js +2 -0
- package/dist/interfaces/Doors.d.ts +2 -0
- package/dist/interfaces/Doors.js +2 -0
- package/dist/interfaces/Editor.d.ts +2 -0
- package/dist/interfaces/Editor.js +2 -0
- package/dist/interfaces/Holes.d.ts +2 -0
- package/dist/interfaces/Holes.js +2 -0
- package/dist/interfaces/LeaveDescriptions.d.ts +2 -0
- package/dist/interfaces/LeaveDescriptions.js +2 -0
- package/dist/interfaces/Level.d.ts +19 -0
- package/dist/interfaces/Level.js +2 -0
- package/dist/interfaces/LineObstacles.d.ts +2 -0
- package/dist/interfaces/LineObstacles.js +2 -0
- package/dist/interfaces/Location.d.ts +28 -0
- package/dist/interfaces/Location.js +2 -0
- package/dist/interfaces/LocationGroupCategories.d.ts +2 -0
- package/dist/interfaces/LocationGroupCategories.js +2 -0
- package/dist/interfaces/LocationGroups.d.ts +2 -0
- package/dist/interfaces/LocationGroups.js +2 -0
- package/dist/interfaces/Obstacles.d.ts +2 -0
- package/dist/interfaces/Obstacles.js +2 -0
- package/dist/interfaces/Options.d.ts +11 -0
- package/dist/interfaces/Options.js +2 -0
- package/dist/interfaces/POIs.d.ts +2 -0
- package/dist/interfaces/POIs.js +2 -0
- package/dist/interfaces/Ramps.d.ts +2 -0
- package/dist/interfaces/Ramps.js +2 -0
- package/dist/interfaces/Root.d.ts +135 -0
- package/dist/interfaces/Root.js +2 -0
- package/dist/interfaces/Routing.d.ts +2 -0
- package/dist/interfaces/Routing.js +2 -0
- package/dist/interfaces/Session.d.ts +2 -0
- package/dist/interfaces/Session.js +2 -0
- package/dist/interfaces/Sources.d.ts +2 -0
- package/dist/interfaces/Sources.js +2 -0
- package/dist/interfaces/Spaces.d.ts +2 -0
- package/dist/interfaces/Spaces.js +2 -0
- package/dist/interfaces/Stairs.d.ts +2 -0
- package/dist/interfaces/Stairs.js +2 -0
- package/dist/interfaces/Updates.d.ts +2 -0
- package/dist/interfaces/Updates.js +2 -0
- package/dist/interfaces/index.d.ts +29 -0
- package/dist/interfaces/index.js +45 -0
- package/package.json +4 -3
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
GEOMETRY: string;
|
|
23
|
+
HOLES: string;
|
|
24
|
+
holes(id?: number | string): string;
|
|
25
|
+
LEAVEDESCRIPTIONS: string;
|
|
26
|
+
leaveDescriptions(id?: number | string): string;
|
|
27
|
+
Level: {
|
|
28
|
+
levels(id?: number | string): string;
|
|
29
|
+
};
|
|
30
|
+
LEVELS: string;
|
|
31
|
+
LINEOBSTACLES: string;
|
|
32
|
+
lineObstacles(id?: number | string): string;
|
|
33
|
+
Location: {
|
|
34
|
+
detail(id: number | string): string;
|
|
35
|
+
details(id: number | string): string;
|
|
36
|
+
geometry(id: number | string): string;
|
|
37
|
+
locations(): string;
|
|
38
|
+
types(): string;
|
|
39
|
+
};
|
|
40
|
+
LOCATIONGROUPCATEGORIES: string;
|
|
41
|
+
locationGroupCategories(id?: number | string): string;
|
|
42
|
+
LOCATIONGROUPS: string;
|
|
43
|
+
locationGroups(id?: number | string): string;
|
|
44
|
+
LOCATIONS: string;
|
|
45
|
+
MAP: string;
|
|
46
|
+
Map: {
|
|
47
|
+
bounds(): string;
|
|
48
|
+
};
|
|
49
|
+
OBSTACLES: string;
|
|
50
|
+
obstacles(id?: number | string): string;
|
|
51
|
+
POIS: string;
|
|
52
|
+
pois(id?: number | string): string;
|
|
53
|
+
RAMPS: string;
|
|
54
|
+
ramps(id?: number | string): string;
|
|
55
|
+
ROUTING: string;
|
|
56
|
+
routing(id?: number | string): string;
|
|
57
|
+
SESSION: string;
|
|
58
|
+
session(id?: number | string): string;
|
|
59
|
+
SOURCES: string;
|
|
60
|
+
sources(id?: number | string): string;
|
|
61
|
+
SPACES: string;
|
|
62
|
+
spaces(id?: number | string): string;
|
|
63
|
+
STAIRS: string;
|
|
64
|
+
stairs(id?: number | string): string;
|
|
65
|
+
TYPES: string;
|
|
66
|
+
UPDATES: string;
|
|
67
|
+
updates(id?: number | string): string;
|
|
68
|
+
};
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Endpoint = void 0;
|
|
4
|
+
const encode = encodeURIComponent;
|
|
5
|
+
exports.Endpoint = {
|
|
6
|
+
ACCESSRESTRICTIONGROUPS: 'accessrestrictiongroups',
|
|
7
|
+
accessRestrictionGroups(id) {
|
|
8
|
+
let endpoint = `/${exports.Endpoint.ACCESSRESTRICTIONGROUPS}/`;
|
|
9
|
+
if (id) {
|
|
10
|
+
endpoint += `${encode(String(id))}/`;
|
|
11
|
+
}
|
|
12
|
+
return endpoint;
|
|
13
|
+
},
|
|
14
|
+
ACCESSRESTRICTIONS: 'accessrestrictions',
|
|
15
|
+
accessRestrictions(id) {
|
|
16
|
+
let endpoint = `/${exports.Endpoint.ACCESSRESTRICTIONS}/`;
|
|
17
|
+
if (id) {
|
|
18
|
+
endpoint += `${encode(String(id))}/`;
|
|
19
|
+
}
|
|
20
|
+
return endpoint;
|
|
21
|
+
},
|
|
22
|
+
AREAS: 'areas',
|
|
23
|
+
areas(id) {
|
|
24
|
+
let endpoint = `/${exports.Endpoint.AREAS}/`;
|
|
25
|
+
if (id) {
|
|
26
|
+
endpoint += `${encode(String(id))}/`;
|
|
27
|
+
}
|
|
28
|
+
return endpoint;
|
|
29
|
+
},
|
|
30
|
+
BOUNDS: 'bounds',
|
|
31
|
+
BUILDINGS: 'buildings',
|
|
32
|
+
buildings(id) {
|
|
33
|
+
let endpoint = `/${exports.Endpoint.BUILDINGS}/`;
|
|
34
|
+
if (id) {
|
|
35
|
+
endpoint += `${encode(String(id))}/`;
|
|
36
|
+
}
|
|
37
|
+
return endpoint;
|
|
38
|
+
},
|
|
39
|
+
CHANGESETS: 'changesets',
|
|
40
|
+
changesets(id) {
|
|
41
|
+
let endpoint = `/${exports.Endpoint.CHANGESETS}/`;
|
|
42
|
+
if (id) {
|
|
43
|
+
endpoint += `${encode(String(id))}/`;
|
|
44
|
+
}
|
|
45
|
+
return endpoint;
|
|
46
|
+
},
|
|
47
|
+
COLUMNS: 'columns',
|
|
48
|
+
columns(id) {
|
|
49
|
+
let endpoint = `/${exports.Endpoint.COLUMNS}/`;
|
|
50
|
+
if (id) {
|
|
51
|
+
endpoint += `${encode(String(id))}/`;
|
|
52
|
+
}
|
|
53
|
+
return endpoint;
|
|
54
|
+
},
|
|
55
|
+
CROSSDESCRIPTIONS: 'crossdescriptions',
|
|
56
|
+
crossDescriptions(id) {
|
|
57
|
+
let endpoint = `/${exports.Endpoint.CROSSDESCRIPTIONS}/`;
|
|
58
|
+
if (id) {
|
|
59
|
+
endpoint += `${encode(String(id))}/`;
|
|
60
|
+
}
|
|
61
|
+
return endpoint;
|
|
62
|
+
},
|
|
63
|
+
DETAILS: 'details',
|
|
64
|
+
DOORS: 'doors',
|
|
65
|
+
doors(id) {
|
|
66
|
+
let endpoint = `/${exports.Endpoint.DOORS}/`;
|
|
67
|
+
if (id) {
|
|
68
|
+
endpoint += `${encode(String(id))}/`;
|
|
69
|
+
}
|
|
70
|
+
return endpoint;
|
|
71
|
+
},
|
|
72
|
+
EDITOR: 'editor',
|
|
73
|
+
editor(id) {
|
|
74
|
+
let endpoint = `/${exports.Endpoint.EDITOR}/`;
|
|
75
|
+
if (id) {
|
|
76
|
+
endpoint += `${encode(String(id))}/`;
|
|
77
|
+
}
|
|
78
|
+
return endpoint;
|
|
79
|
+
},
|
|
80
|
+
GEOMETRY: 'geometry',
|
|
81
|
+
HOLES: 'holes',
|
|
82
|
+
holes(id) {
|
|
83
|
+
let endpoint = `/${exports.Endpoint.HOLES}/`;
|
|
84
|
+
if (id) {
|
|
85
|
+
endpoint += `${encode(String(id))}/`;
|
|
86
|
+
}
|
|
87
|
+
return endpoint;
|
|
88
|
+
},
|
|
89
|
+
LEAVEDESCRIPTIONS: 'leavedescriptions',
|
|
90
|
+
leaveDescriptions(id) {
|
|
91
|
+
let endpoint = `/${exports.Endpoint.LEAVEDESCRIPTIONS}/`;
|
|
92
|
+
if (id) {
|
|
93
|
+
endpoint += `${encode(String(id))}/`;
|
|
94
|
+
}
|
|
95
|
+
return endpoint;
|
|
96
|
+
},
|
|
97
|
+
Level: {
|
|
98
|
+
levels(id) {
|
|
99
|
+
let endpoint = `/${exports.Endpoint.LEVELS}/`;
|
|
100
|
+
if (id) {
|
|
101
|
+
endpoint += `${encode(String(id))}/`;
|
|
102
|
+
}
|
|
103
|
+
return endpoint;
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
LEVELS: 'levels',
|
|
107
|
+
LINEOBSTACLES: 'lineobstacles',
|
|
108
|
+
lineObstacles(id) {
|
|
109
|
+
let endpoint = `/${exports.Endpoint.LINEOBSTACLES}/`;
|
|
110
|
+
if (id) {
|
|
111
|
+
endpoint += `${encode(String(id))}/`;
|
|
112
|
+
}
|
|
113
|
+
return endpoint;
|
|
114
|
+
},
|
|
115
|
+
Location: {
|
|
116
|
+
detail(id) {
|
|
117
|
+
let endpoint = `/${exports.Endpoint.LOCATIONS}/`;
|
|
118
|
+
endpoint += typeof id === 'string' ? 'by_slug/' : '';
|
|
119
|
+
endpoint += `${encode(String(id))}/`;
|
|
120
|
+
return endpoint;
|
|
121
|
+
},
|
|
122
|
+
details(id) {
|
|
123
|
+
let endpoint = `/${exports.Endpoint.LOCATIONS}/`;
|
|
124
|
+
endpoint += typeof id === 'string' ? 'by_slug/' : '';
|
|
125
|
+
endpoint += `${encode(String(id))}/${exports.Endpoint.DETAILS}/`;
|
|
126
|
+
return endpoint;
|
|
127
|
+
},
|
|
128
|
+
geometry(id) {
|
|
129
|
+
let endpoint = `/${exports.Endpoint.LOCATIONS}/`;
|
|
130
|
+
endpoint += typeof id === 'string' ? 'by_slug/' : '';
|
|
131
|
+
endpoint += `${encode(String(id))}/${exports.Endpoint.GEOMETRY}/`;
|
|
132
|
+
return endpoint;
|
|
133
|
+
},
|
|
134
|
+
locations() {
|
|
135
|
+
return `/${exports.Endpoint.LOCATIONS}/`;
|
|
136
|
+
},
|
|
137
|
+
types() {
|
|
138
|
+
return `/${exports.Endpoint.LOCATIONS}/${exports.Endpoint.TYPES}/`;
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
LOCATIONGROUPCATEGORIES: 'locationgroupcategories',
|
|
142
|
+
locationGroupCategories(id) {
|
|
143
|
+
let endpoint = `/${exports.Endpoint.LOCATIONGROUPCATEGORIES}/`;
|
|
144
|
+
if (id) {
|
|
145
|
+
endpoint += `${encode(String(id))}/`;
|
|
146
|
+
}
|
|
147
|
+
return endpoint;
|
|
148
|
+
},
|
|
149
|
+
LOCATIONGROUPS: 'locationgroups',
|
|
150
|
+
locationGroups(id) {
|
|
151
|
+
let endpoint = `/${exports.Endpoint.LOCATIONGROUPS}/`;
|
|
152
|
+
if (id) {
|
|
153
|
+
endpoint += `${encode(String(id))}/`;
|
|
154
|
+
}
|
|
155
|
+
return endpoint;
|
|
156
|
+
},
|
|
157
|
+
LOCATIONS: 'locations',
|
|
158
|
+
MAP: 'map',
|
|
159
|
+
Map: {
|
|
160
|
+
bounds() {
|
|
161
|
+
return `/${exports.Endpoint.MAP}/${exports.Endpoint.BOUNDS}/`;
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
OBSTACLES: 'obstacles',
|
|
165
|
+
obstacles(id) {
|
|
166
|
+
let endpoint = `/${exports.Endpoint.OBSTACLES}/`;
|
|
167
|
+
if (id) {
|
|
168
|
+
endpoint += `${encode(String(id))}/`;
|
|
169
|
+
}
|
|
170
|
+
return endpoint;
|
|
171
|
+
},
|
|
172
|
+
POIS: 'pois',
|
|
173
|
+
pois(id) {
|
|
174
|
+
let endpoint = `/${exports.Endpoint.POIS}/`;
|
|
175
|
+
if (id) {
|
|
176
|
+
endpoint += `${encode(String(id))}/`;
|
|
177
|
+
}
|
|
178
|
+
return endpoint;
|
|
179
|
+
},
|
|
180
|
+
RAMPS: 'ramps',
|
|
181
|
+
ramps(id) {
|
|
182
|
+
let endpoint = `/${exports.Endpoint.RAMPS}/`;
|
|
183
|
+
if (id) {
|
|
184
|
+
endpoint += `${encode(String(id))}/`;
|
|
185
|
+
}
|
|
186
|
+
return endpoint;
|
|
187
|
+
},
|
|
188
|
+
ROUTING: 'routing',
|
|
189
|
+
routing(id) {
|
|
190
|
+
let endpoint = `/${exports.Endpoint.ROUTING}/`;
|
|
191
|
+
if (id) {
|
|
192
|
+
endpoint += `${encode(String(id))}/`;
|
|
193
|
+
}
|
|
194
|
+
return endpoint;
|
|
195
|
+
},
|
|
196
|
+
SESSION: 'session',
|
|
197
|
+
session(id) {
|
|
198
|
+
let endpoint = `/${exports.Endpoint.SESSION}/`;
|
|
199
|
+
if (id) {
|
|
200
|
+
endpoint += `${encode(String(id))}/`;
|
|
201
|
+
}
|
|
202
|
+
return endpoint;
|
|
203
|
+
},
|
|
204
|
+
SOURCES: 'sources',
|
|
205
|
+
sources(id) {
|
|
206
|
+
let endpoint = `/${exports.Endpoint.SOURCES}/`;
|
|
207
|
+
if (id) {
|
|
208
|
+
endpoint += `${encode(String(id))}/`;
|
|
209
|
+
}
|
|
210
|
+
return endpoint;
|
|
211
|
+
},
|
|
212
|
+
SPACES: 'spaces',
|
|
213
|
+
spaces(id) {
|
|
214
|
+
let endpoint = `/${exports.Endpoint.SPACES}/`;
|
|
215
|
+
if (id) {
|
|
216
|
+
endpoint += `${encode(String(id))}/`;
|
|
217
|
+
}
|
|
218
|
+
return endpoint;
|
|
219
|
+
},
|
|
220
|
+
STAIRS: 'stairs',
|
|
221
|
+
stairs(id) {
|
|
222
|
+
let endpoint = `/${exports.Endpoint.STAIRS}/`;
|
|
223
|
+
if (id) {
|
|
224
|
+
endpoint += `${encode(String(id))}/`;
|
|
225
|
+
}
|
|
226
|
+
return endpoint;
|
|
227
|
+
},
|
|
228
|
+
TYPES: 'types',
|
|
229
|
+
UPDATES: 'updates',
|
|
230
|
+
updates(id) {
|
|
231
|
+
let endpoint = `/${exports.Endpoint.UPDATES}/`;
|
|
232
|
+
if (id) {
|
|
233
|
+
endpoint += `${encode(String(id))}/`;
|
|
234
|
+
}
|
|
235
|
+
return endpoint;
|
|
236
|
+
},
|
|
237
|
+
};
|
|
@@ -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;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { APIClient } from '@ffflorian/api-client';
|
|
2
|
+
import type { ClientOptions, Columns } from '../interfaces/';
|
|
3
|
+
import { APIBase } from './APIBase';
|
|
4
|
+
export declare class ColumnsAPI extends APIBase {
|
|
5
|
+
constructor(apiClient: APIClient, options: ClientOptions);
|
|
6
|
+
/**
|
|
7
|
+
* @param id The id to get
|
|
8
|
+
*/
|
|
9
|
+
getById(id: number): Promise<Columns>;
|
|
10
|
+
getList(): Promise<Columns[]>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ColumnsAPI = void 0;
|
|
13
|
+
const Endpoints_1 = require("../Endpoints");
|
|
14
|
+
const APIBase_1 = require("./APIBase");
|
|
15
|
+
class ColumnsAPI extends APIBase_1.APIBase {
|
|
16
|
+
constructor(apiClient, options) {
|
|
17
|
+
super(apiClient, options);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @param id The id to get
|
|
21
|
+
*/
|
|
22
|
+
getById(id) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
const endpoint = Endpoints_1.Endpoint.columns(id);
|
|
25
|
+
const { data } = yield this.apiClient.get(endpoint);
|
|
26
|
+
return data;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
getList() {
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
const endpoint = Endpoints_1.Endpoint.columns();
|
|
32
|
+
const { data } = yield this.apiClient.get(endpoint);
|
|
33
|
+
return data;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.ColumnsAPI = ColumnsAPI;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { APIClient } from '@ffflorian/api-client';
|
|
2
|
+
import type { ClientOptions, CrossDescriptions } from '../interfaces/';
|
|
3
|
+
import { APIBase } from './APIBase';
|
|
4
|
+
export declare class CrossDescriptionsAPI extends APIBase {
|
|
5
|
+
constructor(apiClient: APIClient, options: ClientOptions);
|
|
6
|
+
/**
|
|
7
|
+
* @param id The id to get
|
|
8
|
+
*/
|
|
9
|
+
getById(id: number): Promise<CrossDescriptions>;
|
|
10
|
+
getList(): Promise<CrossDescriptions[]>;
|
|
11
|
+
}
|