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,19 @@
|
|
|
1
|
+
export interface Level {
|
|
2
|
+
access_restriction: null;
|
|
3
|
+
base_altitude: number;
|
|
4
|
+
can_describe: boolean;
|
|
5
|
+
can_search: boolean;
|
|
6
|
+
default_height: number;
|
|
7
|
+
door_height: number;
|
|
8
|
+
groups: {};
|
|
9
|
+
icon: string;
|
|
10
|
+
id: number;
|
|
11
|
+
on_top_of: null | number;
|
|
12
|
+
short_label: string;
|
|
13
|
+
slug: string;
|
|
14
|
+
subtitle: string;
|
|
15
|
+
title: string;
|
|
16
|
+
titles: {
|
|
17
|
+
[lang: string]: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface Location {
|
|
2
|
+
icon: string;
|
|
3
|
+
id: number;
|
|
4
|
+
on_top_of: null | number;
|
|
5
|
+
slug: string;
|
|
6
|
+
subtitle: string;
|
|
7
|
+
title: string;
|
|
8
|
+
type: string;
|
|
9
|
+
}
|
|
10
|
+
export interface LocationDetails {
|
|
11
|
+
display: Array<[string, null | number | string]>;
|
|
12
|
+
editor_url: string;
|
|
13
|
+
id: number;
|
|
14
|
+
}
|
|
15
|
+
export interface LocationGeometry {
|
|
16
|
+
geometry: {
|
|
17
|
+
coordinates: number[] | number[][];
|
|
18
|
+
type: string;
|
|
19
|
+
};
|
|
20
|
+
id: number;
|
|
21
|
+
level: null | number;
|
|
22
|
+
}
|
|
23
|
+
export interface LocationType {
|
|
24
|
+
name: string;
|
|
25
|
+
name_plural: string;
|
|
26
|
+
title: string;
|
|
27
|
+
title_plural: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ClientOptions {
|
|
2
|
+
apiUrl?: string;
|
|
3
|
+
}
|
|
4
|
+
export type HttpMethod = 'get' | 'head' | 'options' | 'post' | 'put';
|
|
5
|
+
export interface LevelListOptions {
|
|
6
|
+
/** filter by group */
|
|
7
|
+
group?: number | string;
|
|
8
|
+
/** filter by on_top_of */
|
|
9
|
+
on_top_of?: null | number | string;
|
|
10
|
+
}
|
|
11
|
+
export type RequestOptions = LevelListOptions;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
export interface Root {
|
|
2
|
+
accessrestrictiongroups: {
|
|
3
|
+
detail: string;
|
|
4
|
+
list: string;
|
|
5
|
+
};
|
|
6
|
+
accessrestrictions: {
|
|
7
|
+
detail: string;
|
|
8
|
+
list: string;
|
|
9
|
+
};
|
|
10
|
+
areas: {
|
|
11
|
+
detail: string;
|
|
12
|
+
list: string;
|
|
13
|
+
};
|
|
14
|
+
buildings: {
|
|
15
|
+
detail: string;
|
|
16
|
+
list: string;
|
|
17
|
+
};
|
|
18
|
+
changesets: {
|
|
19
|
+
activate: string;
|
|
20
|
+
apply: string;
|
|
21
|
+
changes: string;
|
|
22
|
+
current: string;
|
|
23
|
+
deactivate: string;
|
|
24
|
+
delete: string;
|
|
25
|
+
detail: string;
|
|
26
|
+
'direct-editing': string;
|
|
27
|
+
edit: string;
|
|
28
|
+
list: string;
|
|
29
|
+
'pending-review': string;
|
|
30
|
+
propose: string;
|
|
31
|
+
reject: string;
|
|
32
|
+
'restore-object': string;
|
|
33
|
+
review: string;
|
|
34
|
+
reviewing: string;
|
|
35
|
+
unpropose: string;
|
|
36
|
+
unreject: string;
|
|
37
|
+
user: string;
|
|
38
|
+
};
|
|
39
|
+
columns: {
|
|
40
|
+
detail: string;
|
|
41
|
+
list: string;
|
|
42
|
+
};
|
|
43
|
+
crossdescriptions: {
|
|
44
|
+
detail: string;
|
|
45
|
+
list: string;
|
|
46
|
+
};
|
|
47
|
+
doors: {
|
|
48
|
+
detail: string;
|
|
49
|
+
list: string;
|
|
50
|
+
};
|
|
51
|
+
editor: {
|
|
52
|
+
api: string;
|
|
53
|
+
bounds: string;
|
|
54
|
+
geometries: string;
|
|
55
|
+
geometrystyles: string;
|
|
56
|
+
};
|
|
57
|
+
holes: {
|
|
58
|
+
detail: string;
|
|
59
|
+
list: string;
|
|
60
|
+
};
|
|
61
|
+
leavedescriptions: {
|
|
62
|
+
detail: string;
|
|
63
|
+
list: string;
|
|
64
|
+
};
|
|
65
|
+
levels: {
|
|
66
|
+
detail: string;
|
|
67
|
+
geometrytypes: string;
|
|
68
|
+
list: string;
|
|
69
|
+
};
|
|
70
|
+
lineobstacles: {
|
|
71
|
+
detail: string;
|
|
72
|
+
list: string;
|
|
73
|
+
};
|
|
74
|
+
locationgroupcategories: {
|
|
75
|
+
detail: string;
|
|
76
|
+
list: string;
|
|
77
|
+
};
|
|
78
|
+
locationgroups: {
|
|
79
|
+
detail: string;
|
|
80
|
+
list: string;
|
|
81
|
+
};
|
|
82
|
+
locations: {
|
|
83
|
+
'by-slug-detail': string;
|
|
84
|
+
'by-slug-details': string;
|
|
85
|
+
'by-slug-geometry': string;
|
|
86
|
+
detail: string;
|
|
87
|
+
details: string;
|
|
88
|
+
geometry: string;
|
|
89
|
+
list: string;
|
|
90
|
+
types: string;
|
|
91
|
+
};
|
|
92
|
+
map: {
|
|
93
|
+
bounds: string;
|
|
94
|
+
};
|
|
95
|
+
obstacles: {
|
|
96
|
+
detail: string;
|
|
97
|
+
list: string;
|
|
98
|
+
};
|
|
99
|
+
pois: {
|
|
100
|
+
detail: string;
|
|
101
|
+
list: string;
|
|
102
|
+
};
|
|
103
|
+
ramps: {
|
|
104
|
+
detail: string;
|
|
105
|
+
list: string;
|
|
106
|
+
};
|
|
107
|
+
routing: {
|
|
108
|
+
locate: string;
|
|
109
|
+
options: string;
|
|
110
|
+
route: string;
|
|
111
|
+
};
|
|
112
|
+
session: {
|
|
113
|
+
'get-token': string;
|
|
114
|
+
info: string;
|
|
115
|
+
login: string;
|
|
116
|
+
logout: string;
|
|
117
|
+
};
|
|
118
|
+
sources: {
|
|
119
|
+
detail: string;
|
|
120
|
+
image: string;
|
|
121
|
+
list: string;
|
|
122
|
+
};
|
|
123
|
+
spaces: {
|
|
124
|
+
detail: string;
|
|
125
|
+
geometrytypes: string;
|
|
126
|
+
list: string;
|
|
127
|
+
};
|
|
128
|
+
stairs: {
|
|
129
|
+
detail: string;
|
|
130
|
+
list: string;
|
|
131
|
+
};
|
|
132
|
+
updates: {
|
|
133
|
+
fetch: string;
|
|
134
|
+
};
|
|
135
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export * from './AccessRestrictionGroups';
|
|
2
|
+
export * from './AccessRestrictions';
|
|
3
|
+
export * from './API';
|
|
4
|
+
export * from './Areas';
|
|
5
|
+
export * from './Bounds';
|
|
6
|
+
export * from './Buildings';
|
|
7
|
+
export * from './Changesets';
|
|
8
|
+
export * from './Columns';
|
|
9
|
+
export * from './CrossDescriptions';
|
|
10
|
+
export * from './Doors';
|
|
11
|
+
export * from './Editor';
|
|
12
|
+
export * from './Holes';
|
|
13
|
+
export * from './LeaveDescriptions';
|
|
14
|
+
export * from './Level';
|
|
15
|
+
export * from './LineObstacles';
|
|
16
|
+
export * from './Location';
|
|
17
|
+
export * from './LocationGroupCategories';
|
|
18
|
+
export * from './LocationGroups';
|
|
19
|
+
export * from './Obstacles';
|
|
20
|
+
export * from './Options';
|
|
21
|
+
export * from './POIs';
|
|
22
|
+
export * from './Ramps';
|
|
23
|
+
export * from './Root';
|
|
24
|
+
export * from './Routing';
|
|
25
|
+
export * from './Session';
|
|
26
|
+
export * from './Sources';
|
|
27
|
+
export * from './Spaces';
|
|
28
|
+
export * from './Stairs';
|
|
29
|
+
export * from './Updates';
|
|
@@ -0,0 +1,45 @@
|
|
|
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("./AccessRestrictionGroups"), exports);
|
|
18
|
+
__exportStar(require("./AccessRestrictions"), exports);
|
|
19
|
+
__exportStar(require("./API"), exports);
|
|
20
|
+
__exportStar(require("./Areas"), exports);
|
|
21
|
+
__exportStar(require("./Bounds"), exports);
|
|
22
|
+
__exportStar(require("./Buildings"), exports);
|
|
23
|
+
__exportStar(require("./Changesets"), exports);
|
|
24
|
+
__exportStar(require("./Columns"), exports);
|
|
25
|
+
__exportStar(require("./CrossDescriptions"), exports);
|
|
26
|
+
__exportStar(require("./Doors"), exports);
|
|
27
|
+
__exportStar(require("./Editor"), exports);
|
|
28
|
+
__exportStar(require("./Holes"), exports);
|
|
29
|
+
__exportStar(require("./LeaveDescriptions"), exports);
|
|
30
|
+
__exportStar(require("./Level"), exports);
|
|
31
|
+
__exportStar(require("./LineObstacles"), exports);
|
|
32
|
+
__exportStar(require("./Location"), exports);
|
|
33
|
+
__exportStar(require("./LocationGroupCategories"), exports);
|
|
34
|
+
__exportStar(require("./LocationGroups"), exports);
|
|
35
|
+
__exportStar(require("./Obstacles"), exports);
|
|
36
|
+
__exportStar(require("./Options"), exports);
|
|
37
|
+
__exportStar(require("./POIs"), exports);
|
|
38
|
+
__exportStar(require("./Ramps"), exports);
|
|
39
|
+
__exportStar(require("./Root"), exports);
|
|
40
|
+
__exportStar(require("./Routing"), exports);
|
|
41
|
+
__exportStar(require("./Session"), exports);
|
|
42
|
+
__exportStar(require("./Sources"), exports);
|
|
43
|
+
__exportStar(require("./Spaces"), exports);
|
|
44
|
+
__exportStar(require("./Stairs"), exports);
|
|
45
|
+
__exportStar(require("./Updates"), exports);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Florian Imdahl <git@ffflorian.de>",
|
|
3
3
|
"dependencies": {
|
|
4
|
-
"@ffflorian/api-client": "2.5.
|
|
4
|
+
"@ffflorian/api-client": "2.5.1"
|
|
5
5
|
},
|
|
6
6
|
"description": "A c3nav API client",
|
|
7
7
|
"devDependencies": {
|
|
@@ -28,12 +28,13 @@
|
|
|
28
28
|
"readme": "https://github.com/ffflorian/api-clients#readme",
|
|
29
29
|
"repository": "https://github.com/ffflorian/api-clients.git",
|
|
30
30
|
"scripts": {
|
|
31
|
+
"build": "yarn build:ts",
|
|
31
32
|
"build:ts": "tsc -p tsconfig.build.json",
|
|
32
33
|
"build:docs": "typedoc --tsconfig tsconfig.build.json --options ../../typedoc.json --out ../../docs/packages/c3nav src/index.ts",
|
|
33
34
|
"clean": "rimraf dist",
|
|
34
|
-
"dist": "yarn clean && yarn build
|
|
35
|
+
"dist": "yarn clean && yarn build",
|
|
35
36
|
"test": "exit 0"
|
|
36
37
|
},
|
|
37
38
|
"types": "dist/index.d.ts",
|
|
38
|
-
"version": "3.4.
|
|
39
|
+
"version": "3.4.7"
|
|
39
40
|
}
|