@elastic/ems-client 8.4.1 → 8.5.1

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.
@@ -0,0 +1,307 @@
1
+ {
2
+ "openapi": "3.0.1",
3
+ "info": {
4
+ "title": "Elastic Maps Tile Service",
5
+ "description": "OpenAPI schema for the Elastic Maps Tile Service manifest endpoint",
6
+ "version": "0.1",
7
+ "contact": {
8
+ "name": "Presentation Team"
9
+ },
10
+ "license": {
11
+ "name": "Elastic License 2.0",
12
+ "url": "https://www.elastic.co/licensing/elastic-license"
13
+ }
14
+ },
15
+ "servers": [
16
+ {
17
+ "url": "https://tiles.maps.elastic.co",
18
+ "description": "Production"
19
+ },
20
+ {
21
+ "url": "https://tiles.maps.elastic.dev",
22
+ "description": "Staging"
23
+ }
24
+ ],
25
+ "security": [],
26
+ "tags": [
27
+ {
28
+ "name": "ems",
29
+ "description": "Elastic Maps Service."
30
+ }
31
+ ],
32
+ "paths": {
33
+ "/latest/manifest": {
34
+ "get": {
35
+ "operationId": "getTileManifest",
36
+ "tags": [
37
+ "ems"
38
+ ],
39
+ "summary": "Manifest of the EMS Tile Service",
40
+ "description": "Describes the basemap styles available",
41
+ "parameters": [],
42
+ "responses": {
43
+ "200": {
44
+ "description": "Manifest is returned",
45
+ "content": {
46
+ "application/json": {
47
+ "example": {
48
+ "version": "2023-10-31",
49
+ "services": [
50
+ {
51
+ "id": "road_map",
52
+ "name": {
53
+ "en": "Classic"
54
+ },
55
+ "attribution": [
56
+ {
57
+ "label": {
58
+ "en": "OpenStreetMap contributors"
59
+ },
60
+ "url": {
61
+ "en": "https://www.openstreetmap.org/copyright"
62
+ }
63
+ },
64
+ {
65
+ "label": {
66
+ "en": "OpenMapTiles"
67
+ },
68
+ "url": {
69
+ "en": "https://openmaptiles.org"
70
+ }
71
+ },
72
+ {
73
+ "label": {
74
+ "en": "Elastic Maps Service"
75
+ },
76
+ "url": {
77
+ "en": "https://www.elastic.co/elastic-maps-service"
78
+ }
79
+ }
80
+ ],
81
+ "formats": [
82
+ {
83
+ "locale": "en",
84
+ "format": "vector",
85
+ "url": "/2023-10-31/styles/osm-bright/style.json"
86
+ },
87
+ {
88
+ "locale": "en",
89
+ "format": "raster",
90
+ "url": "/2023-10-31/styles/osm-bright.json"
91
+ }
92
+ ]
93
+ },
94
+ {
95
+ "id": "road_map_desaturated",
96
+ "name": {
97
+ "en": "Light"
98
+ },
99
+ "attribution": [
100
+ {
101
+ "label": {
102
+ "en": "OpenStreetMap contributors"
103
+ },
104
+ "url": {
105
+ "en": "https://www.openstreetmap.org/copyright"
106
+ }
107
+ },
108
+ {
109
+ "label": {
110
+ "en": "OpenMapTiles"
111
+ },
112
+ "url": {
113
+ "en": "https://openmaptiles.org"
114
+ }
115
+ },
116
+ {
117
+ "label": {
118
+ "en": "Elastic Maps Service"
119
+ },
120
+ "url": {
121
+ "en": "https://www.elastic.co/elastic-maps-service"
122
+ }
123
+ }
124
+ ],
125
+ "formats": [
126
+ {
127
+ "locale": "en",
128
+ "format": "vector",
129
+ "url": "/2023-10-31/styles/osm-bright-desaturated/style.json"
130
+ },
131
+ {
132
+ "locale": "en",
133
+ "format": "raster",
134
+ "url": "/2023-10-31/styles/osm-bright-desaturated.json"
135
+ }
136
+ ]
137
+ },
138
+ {
139
+ "id": "dark_map",
140
+ "name": {
141
+ "en": "Dark"
142
+ },
143
+ "attribution": [
144
+ {
145
+ "label": {
146
+ "en": "OpenStreetMap contributors"
147
+ },
148
+ "url": {
149
+ "en": "https://www.openstreetmap.org/copyright"
150
+ }
151
+ },
152
+ {
153
+ "label": {
154
+ "en": "OpenMapTiles"
155
+ },
156
+ "url": {
157
+ "en": "https://openmaptiles.org"
158
+ }
159
+ },
160
+ {
161
+ "label": {
162
+ "en": "Elastic Maps Service"
163
+ },
164
+ "url": {
165
+ "en": "https://www.elastic.co/elastic-maps-service"
166
+ }
167
+ }
168
+ ],
169
+ "formats": [
170
+ {
171
+ "locale": "en",
172
+ "format": "vector",
173
+ "url": "/2023-10-31/styles/dark-matter/style.json"
174
+ },
175
+ {
176
+ "locale": "en",
177
+ "format": "raster",
178
+ "url": "/2023-10-31/styles/dark-matter.json"
179
+ }
180
+ ]
181
+ }
182
+ ]
183
+ },
184
+ "schema": {
185
+ "type": "object",
186
+ "properties": {
187
+ "version": {
188
+ "type": "string",
189
+ "description": "Version of the API as a date in YYYY-MM-DD format"
190
+ },
191
+ "services": {
192
+ "type": "array",
193
+ "minItems": 1,
194
+ "items": {
195
+ "type": "object",
196
+ "required": [
197
+ "id",
198
+ "name",
199
+ "attribution",
200
+ "formats"
201
+ ],
202
+ "properties": {
203
+ "id": {
204
+ "type": "string",
205
+ "description": "Identifier of the style"
206
+ },
207
+ "name": {
208
+ "type": "object",
209
+ "description": "A human readable label for the style",
210
+ "required": [
211
+ "en"
212
+ ],
213
+ "properties": {
214
+ "en": {
215
+ "type": "string"
216
+ }
217
+ }
218
+ },
219
+ "attribution": {
220
+ "$ref": "#/components/schemas/attribution"
221
+ },
222
+ "formats": {
223
+ "type": "array",
224
+ "description": "The different formats for this tile service",
225
+ "items": {
226
+ "type": "object",
227
+ "required": [
228
+ "locale",
229
+ "format",
230
+ "url"
231
+ ],
232
+ "properties": {
233
+ "locale": {
234
+ "type": "string"
235
+ },
236
+ "format": {
237
+ "type": "string",
238
+ "description": "The service can offer vector or raster tiles",
239
+ "enum": [
240
+ "raster",
241
+ "vector"
242
+ ]
243
+ },
244
+ "url": {
245
+ "type": "string",
246
+ "description": "Relative path to the MapBox style specification"
247
+ }
248
+ }
249
+ }
250
+ }
251
+ }
252
+ }
253
+ }
254
+ }
255
+ }
256
+ }
257
+ }
258
+ },
259
+ "404": {
260
+ "description": "Manifest is not found",
261
+ "content": {
262
+ "text/html": {
263
+ "example": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>Error</title>\n</head>\n<body>\n<pre>Cannot GET /snthstn</pre>\n</body>\n</html>\n",
264
+ "schema": {
265
+ "type": "string"
266
+ }
267
+ }
268
+ }
269
+ }
270
+ }
271
+ }
272
+ }
273
+ },
274
+ "components": {
275
+ "schemas": {
276
+ "attribution": {
277
+ "type": "array",
278
+ "description": "The attribution of this data",
279
+ "minItems": 1,
280
+ "items": {
281
+ "type": "object",
282
+ "properties": {
283
+ "label": {
284
+ "type": "object",
285
+ "properties": {
286
+ "en": {
287
+ "type": "string",
288
+ "description": "English attribution label"
289
+ }
290
+ }
291
+ },
292
+ "url": {
293
+ "type": "object",
294
+ "properties": {
295
+ "en": {
296
+ "type": "string",
297
+ "description": "Attribution details URL",
298
+ "format": "URL"
299
+ }
300
+ }
301
+ }
302
+ }
303
+ }
304
+ }
305
+ }
306
+ }
307
+ }
@@ -0,0 +1,195 @@
1
+ openapi: 3.0.1
2
+ info:
3
+ title: Elastic Maps Tile Service
4
+ description: OpenAPI schema for the Elastic Maps Tile Service manifest endpoint
5
+ version: '0.1'
6
+ contact:
7
+ name: Presentation Team
8
+ license:
9
+ name: Elastic License 2.0
10
+ url: https://www.elastic.co/licensing/elastic-license
11
+ servers:
12
+ - url: https://tiles.maps.elastic.co
13
+ description: Production
14
+ - url: https://tiles.maps.elastic.dev
15
+ description: Staging
16
+ security: []
17
+ tags:
18
+ - name: ems
19
+ description: Elastic Maps Service.
20
+ paths:
21
+ /latest/manifest:
22
+ get:
23
+ operationId: getTileManifest
24
+ tags:
25
+ - ems
26
+ summary: Manifest of the EMS Tile Service
27
+ description: Describes the basemap styles available
28
+ parameters: []
29
+ responses:
30
+ '200':
31
+ description: Manifest is returned
32
+ content:
33
+ application/json:
34
+ example:
35
+ version: '2023-10-31'
36
+ services:
37
+ - id: road_map
38
+ name:
39
+ en: Classic
40
+ attribution:
41
+ - label:
42
+ en: OpenStreetMap contributors
43
+ url:
44
+ en: https://www.openstreetmap.org/copyright
45
+ - label:
46
+ en: OpenMapTiles
47
+ url:
48
+ en: https://openmaptiles.org
49
+ - label:
50
+ en: Elastic Maps Service
51
+ url:
52
+ en: https://www.elastic.co/elastic-maps-service
53
+ formats:
54
+ - locale: en
55
+ format: vector
56
+ url: /2023-10-31/styles/osm-bright/style.json
57
+ - locale: en
58
+ format: raster
59
+ url: /2023-10-31/styles/osm-bright.json
60
+ - id: road_map_desaturated
61
+ name:
62
+ en: Light
63
+ attribution:
64
+ - label:
65
+ en: OpenStreetMap contributors
66
+ url:
67
+ en: https://www.openstreetmap.org/copyright
68
+ - label:
69
+ en: OpenMapTiles
70
+ url:
71
+ en: https://openmaptiles.org
72
+ - label:
73
+ en: Elastic Maps Service
74
+ url:
75
+ en: https://www.elastic.co/elastic-maps-service
76
+ formats:
77
+ - locale: en
78
+ format: vector
79
+ url: /2023-10-31/styles/osm-bright-desaturated/style.json
80
+ - locale: en
81
+ format: raster
82
+ url: /2023-10-31/styles/osm-bright-desaturated.json
83
+ - id: dark_map
84
+ name:
85
+ en: Dark
86
+ attribution:
87
+ - label:
88
+ en: OpenStreetMap contributors
89
+ url:
90
+ en: https://www.openstreetmap.org/copyright
91
+ - label:
92
+ en: OpenMapTiles
93
+ url:
94
+ en: https://openmaptiles.org
95
+ - label:
96
+ en: Elastic Maps Service
97
+ url:
98
+ en: https://www.elastic.co/elastic-maps-service
99
+ formats:
100
+ - locale: en
101
+ format: vector
102
+ url: /2023-10-31/styles/dark-matter/style.json
103
+ - locale: en
104
+ format: raster
105
+ url: /2023-10-31/styles/dark-matter.json
106
+ schema:
107
+ type: object
108
+ properties:
109
+ version:
110
+ type: string
111
+ description: Version of the API as a date in YYYY-MM-DD format
112
+ services:
113
+ type: array
114
+ minItems: 1
115
+ items:
116
+ type: object
117
+ required:
118
+ - id
119
+ - name
120
+ - attribution
121
+ - formats
122
+ properties:
123
+ id:
124
+ type: string
125
+ description: Identifier of the style
126
+ name:
127
+ type: object
128
+ description: A human readable label for the style
129
+ required:
130
+ - en
131
+ properties:
132
+ en:
133
+ type: string
134
+ attribution:
135
+ $ref: '#/components/schemas/attribution'
136
+ formats:
137
+ type: array
138
+ description: The different formats for this tile service
139
+ items:
140
+ type: object
141
+ required:
142
+ - locale
143
+ - format
144
+ - url
145
+ properties:
146
+ locale:
147
+ type: string
148
+ format:
149
+ type: string
150
+ description: The service can offer vector or raster tiles
151
+ enum:
152
+ - raster
153
+ - vector
154
+ url:
155
+ type: string
156
+ description: Relative path to the MapBox style specification
157
+ '404':
158
+ description: Manifest is not found
159
+ content:
160
+ text/html:
161
+ example: |
162
+ <!DOCTYPE html>
163
+ <html lang="en">
164
+ <head>
165
+ <meta charset="utf-8">
166
+ <title>Error</title>
167
+ </head>
168
+ <body>
169
+ <pre>Cannot GET /snthstn</pre>
170
+ </body>
171
+ </html>
172
+ schema:
173
+ type: string
174
+ components:
175
+ schemas:
176
+ attribution:
177
+ type: array
178
+ description: The attribution of this data
179
+ minItems: 1
180
+ items:
181
+ type: object
182
+ properties:
183
+ label:
184
+ type: object
185
+ properties:
186
+ en:
187
+ type: string
188
+ description: English attribution label
189
+ url:
190
+ type: object
191
+ properties:
192
+ en:
193
+ type: string
194
+ description: Attribution details URL
195
+ format: URL
@@ -0,0 +1,92 @@
1
+ openapi: 3.0.1
2
+ info:
3
+ title: Elastic Maps Tile Service
4
+ description: OpenAPI schema for the Elastic Maps Tile Service manifest endpoint
5
+ version: '0.1'
6
+ contact:
7
+ name: Presentation Team
8
+ license:
9
+ name: Elastic License 2.0
10
+ url: https://www.elastic.co/licensing/elastic-license
11
+ tags:
12
+ - name: ems
13
+ description: Elastic Maps Service.
14
+ servers:
15
+ - url: 'https://tiles.maps.elastic.co'
16
+ description: Production
17
+ - url: 'https://tiles.maps.elastic.dev'
18
+ description: Staging
19
+ security: []
20
+ paths:
21
+ '/latest/manifest':
22
+ get:
23
+ operationId: getTileManifest
24
+ tags: ['ems']
25
+ summary: "Manifest of the EMS Tile Service"
26
+ description: "Describes the basemap styles available"
27
+ parameters: []
28
+ responses:
29
+ "404":
30
+ description: "Manifest is not found"
31
+ content:
32
+ text/html:
33
+ example:
34
+ $ref: ../components/examples/tile_service_404.html
35
+ schema:
36
+ type: string
37
+ "200":
38
+ description: "Manifest is returned"
39
+ content:
40
+ application/json:
41
+ example:
42
+ $ref: ../components/examples/tile_service_200.json
43
+ schema:
44
+ type: object
45
+ properties:
46
+ version:
47
+ type: string
48
+ description: "Version of the API as a date in YYYY-MM-DD format"
49
+ services:
50
+ type: array
51
+ minItems: 1
52
+ items:
53
+ type: object
54
+ required:
55
+ - id
56
+ - name
57
+ - attribution
58
+ - formats
59
+ properties:
60
+ id:
61
+ type: string
62
+ description: Identifier of the style
63
+ name:
64
+ type: object
65
+ description: A human readable label for the style
66
+ required: [ 'en' ]
67
+ properties:
68
+ en:
69
+ type: string
70
+ attribution:
71
+ $ref: ../components/attribution.yaml
72
+ formats:
73
+ type: array
74
+ description: The different formats for this tile service
75
+ items:
76
+ type: object
77
+ required:
78
+ - locale
79
+ - format
80
+ - url
81
+ properties:
82
+ locale:
83
+ type: string
84
+ format:
85
+ type: string
86
+ description: The service can offer vector or raster tiles
87
+ enum: ['raster', 'vector']
88
+ url:
89
+ type: string
90
+ description: Relative path to the MapBox style specification
91
+
92
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elastic/ems-client",
3
- "version": "8.4.1",
3
+ "version": "8.5.1",
4
4
  "description": "JavaScript client library for the Elastic Maps Service",
5
5
  "main": "target/node/index.js",
6
6
  "browser": "target/web/index.js",