jmapcloud-types 0.0.1 → 2.0.23-qa.10

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,382 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+
6
+ export interface paths {
7
+ "/rest/v1/organizations/{organization}/metrics": {
8
+ parameters: {
9
+ query?: never
10
+ header?: never
11
+ path?: never
12
+ cookie?: never
13
+ }
14
+ /**
15
+ * Get metrics
16
+ * @description ### Role required
17
+ * `ORG_ADMIN`
18
+ */
19
+ get: operations["getMetrics"]
20
+ put?: never
21
+ post?: never
22
+ delete?: never
23
+ options?: never
24
+ head?: never
25
+ patch?: never
26
+ trace?: never
27
+ }
28
+ "/rest/v1/organizations/{organization}/projects/{project}/metrics": {
29
+ parameters: {
30
+ query?: never
31
+ header?: never
32
+ path?: never
33
+ cookie?: never
34
+ }
35
+ /**
36
+ * Get project metrics
37
+ * @description ### Role required
38
+ * `ORG_ADMIN`
39
+ */
40
+ get: operations["getProjectsMetrics"]
41
+ put?: never
42
+ post?: never
43
+ delete?: never
44
+ options?: never
45
+ head?: never
46
+ patch?: never
47
+ trace?: never
48
+ }
49
+ "/rest/v1/organizations/{organization}/projects/{project}/mvt/{x}/{y}/{z}": {
50
+ parameters: {
51
+ query?: never
52
+ header?: never
53
+ path?: never
54
+ cookie?: never
55
+ }
56
+ /**
57
+ * Get MVT tile
58
+ * @description ### Role required
59
+ * `ORG_VIEWER`
60
+ */
61
+ get: operations["getMvt"]
62
+ put?: never
63
+ post?: never
64
+ delete?: never
65
+ options?: never
66
+ head?: never
67
+ patch?: never
68
+ trace?: never
69
+ }
70
+ }
71
+ export type webhooks = Record<string, never>
72
+ export interface components {
73
+ schemas: {
74
+ ResponseBody400: {
75
+ errors?: string[]
76
+ message?: string
77
+ }
78
+ ResponseBody401: {
79
+ errors?: string[]
80
+ message?: string
81
+ }
82
+ ResponseBody403: {
83
+ errors?: string[]
84
+ message?: string
85
+ }
86
+ ResponseBody404: {
87
+ errors?: string[]
88
+ /** @example ORGANIZATION: 95f6ea8d-e8f0-4b7d-adfb-8bf7059b4d95 */
89
+ message?: string
90
+ /** @example 95f6ea8d-e8f0-4b7d-adfb-8bf7059b4d95 */
91
+ resourceId?: string
92
+ /**
93
+ * @example ORGANIZATION
94
+ * @enum {string}
95
+ */
96
+ resourceType?:
97
+ | "API_KEY"
98
+ | "ATTACHMENT"
99
+ | "CONDITION_EXPRESSION"
100
+ | "DATA_SOURCE"
101
+ | "DOCUMENT"
102
+ | "DYNAMIC_FILTER"
103
+ | "EXTENSION"
104
+ | "FEATURE"
105
+ | "FILE"
106
+ | "FORM"
107
+ | "GROUP"
108
+ | "GROUP_MEMBER"
109
+ | "LAYER"
110
+ | "LAYER_GROUP"
111
+ | "MEMBER_RESOURCE"
112
+ | "MOUSE_OVER_CONFIGURATION"
113
+ | "ORGANIZATION"
114
+ | "ORGANIZATION_EXTENSION"
115
+ | "ORGANIZATION_MEMBER"
116
+ | "PROCESS"
117
+ | "PROCESS_JOB"
118
+ | "PROJECT"
119
+ | "RELATIONSHIP"
120
+ | "REPORT"
121
+ | "ROW"
122
+ | "RULE_CONDITION"
123
+ | "SEARCH_FORM"
124
+ | "STYLE"
125
+ | "STYLE_MAP_SCALE"
126
+ | "STYLE_RULE"
127
+ | "SYMBOLOGY_RESOURCE"
128
+ | "TABLE_DATASET"
129
+ | "TAG"
130
+ | "TAGGED_RESOURCE"
131
+ | "USER"
132
+ | "USER_METADATA"
133
+ }
134
+ ResponseBody500: {
135
+ errors?: string[]
136
+ message?: string
137
+ }
138
+ ResponseGetMetrics: {
139
+ /** @example The result is metrics */
140
+ message?: string
141
+ /**
142
+ * @example {
143
+ * "totalDataSize": 404240
144
+ * }
145
+ */
146
+ result?: {
147
+ [key: string]: unknown
148
+ }
149
+ }
150
+ }
151
+ responses: never
152
+ parameters: never
153
+ requestBodies: never
154
+ headers: never
155
+ pathItems: never
156
+ }
157
+ export type $defs = Record<string, never>
158
+ export interface operations {
159
+ getMetrics: {
160
+ parameters: {
161
+ query?: never
162
+ header?: never
163
+ path: {
164
+ /** @description The id of the organization */
165
+ organization: string
166
+ }
167
+ cookie?: never
168
+ }
169
+ requestBody?: never
170
+ responses: {
171
+ /** @description Successfully retrieved metrics */
172
+ 200: {
173
+ headers: {
174
+ [name: string]: unknown
175
+ }
176
+ content: {
177
+ "application/json": components["schemas"]["ResponseGetMetrics"]
178
+ }
179
+ }
180
+ /** @description Parameter(s) has not a good data format */
181
+ 400: {
182
+ headers: {
183
+ [name: string]: unknown
184
+ }
185
+ content: {
186
+ "application/json": components["schemas"]["ResponseBody400"]
187
+ }
188
+ }
189
+ /** @description You are not authorized to view the resource */
190
+ 401: {
191
+ headers: {
192
+ [name: string]: unknown
193
+ }
194
+ content: {
195
+ "application/json": components["schemas"]["ResponseBody401"]
196
+ }
197
+ }
198
+ /** @description Accessing the resource you were trying to reach is forbidden */
199
+ 403: {
200
+ headers: {
201
+ [name: string]: unknown
202
+ }
203
+ content: {
204
+ "application/json": components["schemas"]["ResponseBody403"]
205
+ }
206
+ }
207
+ /** @description The resource you were trying to reach is not found */
208
+ 404: {
209
+ headers: {
210
+ [name: string]: unknown
211
+ }
212
+ content: {
213
+ "application/json": components["schemas"]["ResponseBody404"]
214
+ }
215
+ }
216
+ /** @description The server encounters an unexpected internal error */
217
+ 500: {
218
+ headers: {
219
+ [name: string]: unknown
220
+ }
221
+ content: {
222
+ "application/json": components["schemas"]["ResponseBody500"]
223
+ }
224
+ }
225
+ }
226
+ }
227
+ getProjectsMetrics: {
228
+ parameters: {
229
+ query?: never
230
+ header?: never
231
+ path: {
232
+ /** @description The id of the organization */
233
+ organization: string
234
+ /** @description The id of the project */
235
+ project: string
236
+ }
237
+ cookie?: never
238
+ }
239
+ requestBody?: never
240
+ responses: {
241
+ /** @description Successfully retrieved project metrics */
242
+ 200: {
243
+ headers: {
244
+ [name: string]: unknown
245
+ }
246
+ content: {
247
+ "application/json": components["schemas"]["ResponseGetMetrics"]
248
+ }
249
+ }
250
+ /** @description Parameter(s) has not a good data format */
251
+ 400: {
252
+ headers: {
253
+ [name: string]: unknown
254
+ }
255
+ content: {
256
+ "application/json": components["schemas"]["ResponseBody400"]
257
+ }
258
+ }
259
+ /** @description You are not authorized to view the resource */
260
+ 401: {
261
+ headers: {
262
+ [name: string]: unknown
263
+ }
264
+ content: {
265
+ "application/json": components["schemas"]["ResponseBody401"]
266
+ }
267
+ }
268
+ /** @description Accessing the resource you were trying to reach is forbidden */
269
+ 403: {
270
+ headers: {
271
+ [name: string]: unknown
272
+ }
273
+ content: {
274
+ "application/json": components["schemas"]["ResponseBody403"]
275
+ }
276
+ }
277
+ /** @description The resource you were trying to reach is not found */
278
+ 404: {
279
+ headers: {
280
+ [name: string]: unknown
281
+ }
282
+ content: {
283
+ "application/json": components["schemas"]["ResponseBody404"]
284
+ }
285
+ }
286
+ /** @description The server encounters an unexpected internal error */
287
+ 500: {
288
+ headers: {
289
+ [name: string]: unknown
290
+ }
291
+ content: {
292
+ "application/json": components["schemas"]["ResponseBody500"]
293
+ }
294
+ }
295
+ }
296
+ }
297
+ getMvt: {
298
+ parameters: {
299
+ query?: never
300
+ header?: never
301
+ path: {
302
+ /** @description The id of the organization */
303
+ organization: string
304
+ /** @description The id of the project */
305
+ project: string
306
+ /**
307
+ * @description x
308
+ * @example 0
309
+ */
310
+ x: number
311
+ /**
312
+ * @description y
313
+ * @example 0
314
+ */
315
+ y: number
316
+ /**
317
+ * @description z
318
+ * @example 0
319
+ */
320
+ z: number
321
+ }
322
+ cookie?: never
323
+ }
324
+ requestBody?: never
325
+ responses: {
326
+ /** @description Successfully retrieved tile */
327
+ 200: {
328
+ headers: {
329
+ [name: string]: unknown
330
+ }
331
+ content: {
332
+ "application/x-protobuf": unknown
333
+ }
334
+ }
335
+ /** @description Parameter(s) has not a good data format */
336
+ 400: {
337
+ headers: {
338
+ [name: string]: unknown
339
+ }
340
+ content: {
341
+ "application/json": components["schemas"]["ResponseBody400"]
342
+ }
343
+ }
344
+ /** @description You are not authorized to view the resource */
345
+ 401: {
346
+ headers: {
347
+ [name: string]: unknown
348
+ }
349
+ content: {
350
+ "application/json": components["schemas"]["ResponseBody401"]
351
+ }
352
+ }
353
+ /** @description Accessing the resource you were trying to reach is forbidden */
354
+ 403: {
355
+ headers: {
356
+ [name: string]: unknown
357
+ }
358
+ content: {
359
+ "application/json": components["schemas"]["ResponseBody403"]
360
+ }
361
+ }
362
+ /** @description The resource you were trying to reach is not found */
363
+ 404: {
364
+ headers: {
365
+ [name: string]: unknown
366
+ }
367
+ content: {
368
+ "application/json": components["schemas"]["ResponseBody404"]
369
+ }
370
+ }
371
+ /** @description The server encounters an unexpected internal error */
372
+ 500: {
373
+ headers: {
374
+ [name: string]: unknown
375
+ }
376
+ content: {
377
+ "application/json": components["schemas"]["ResponseBody500"]
378
+ }
379
+ }
380
+ }
381
+ }
382
+ }
@@ -0,0 +1,153 @@
1
+ query GetStyleRules($organizationId: String!, $projectId: String!, $locale: String) {
2
+ getStyleRules(organizationId: $organizationId, projectId: $projectId, locale: $locale) {
3
+ id
4
+ layerId
5
+ name
6
+ active
7
+ conditions {
8
+ id
9
+ name
10
+ styleMapScales {
11
+ id
12
+ styleId
13
+ minimumZoom
14
+ maximumZoom
15
+ }
16
+ }
17
+ }
18
+ }
19
+
20
+ query GetBasemaps($organizationId: String!, $projectId: String!, $locale: String) {
21
+ getBasemaps(organizationId: $organizationId, projectId: $projectId, locale: $locale) {
22
+ id
23
+ attributions {
24
+ id
25
+ href
26
+ imageUrl
27
+ text
28
+ }
29
+ name
30
+ imageUrl
31
+ selected
32
+ }
33
+ }
34
+
35
+ query GetAvailableBasemaps($organizationId: String!, $projectId: String!, $locale: String) {
36
+ getAvailableBasemaps(organizationId: $organizationId, projectId: $projectId, locale: $locale) {
37
+ id
38
+ attributions {
39
+ id
40
+ href
41
+ imageUrl
42
+ text
43
+ }
44
+ name
45
+ imageUrl
46
+ }
47
+ }
48
+
49
+ query GetNgLayersConfiguration($organizationId: String!, $projectId: String!, $locale: String, $sampleSize: Int) {
50
+ getLayers(organizationId: $organizationId, projectId: $projectId, locale: $locale) {
51
+ id
52
+ spatialDataSourceId
53
+ spatialDataSourceOrganizationId
54
+ name
55
+ type
56
+ includeInLegend
57
+ elementType
58
+ visible
59
+ listed
60
+ selectable
61
+ allowClientSideEditing
62
+ minimumZoom
63
+ maximumZoom
64
+ permissions
65
+ selectionStyleId
66
+ tags
67
+ baseFilter
68
+ forms
69
+ mouseOverConfiguration {
70
+ active
71
+ text
72
+ preventDuplication
73
+ backgroundColor
74
+ minimumZoom
75
+ maximumZoom
76
+ url
77
+ }
78
+ attributes {
79
+ id
80
+ name
81
+ type
82
+ title
83
+ indexed
84
+ visible
85
+ }
86
+ userMetadata {
87
+ id
88
+ type
89
+ title
90
+ value
91
+ }
92
+ }
93
+
94
+ getLayerDynamicFilters(organizationId: $organizationId, projectId: $projectId, locale: $locale) {
95
+ id
96
+ name
97
+ resourceId
98
+ active
99
+ filter
100
+ }
101
+
102
+ getTablesDataset(organizationId: $organizationId, projectId: $projectId, locale: $locale) {
103
+ id
104
+ dataSourceId
105
+ dataSourceOrganizationId
106
+ name
107
+ tags
108
+ listed
109
+ indexed
110
+ allowClientSideEditing
111
+ permissions
112
+ baseFilter
113
+ forms
114
+ attributes {
115
+ id
116
+ name
117
+ title
118
+ type
119
+ indexed
120
+ visible
121
+ }
122
+ }
123
+
124
+ getTableDatasetDynamicFilters(organizationId: $organizationId, projectId: $projectId, locale: $locale) {
125
+ id
126
+ name
127
+ resourceId
128
+ active
129
+ filter
130
+ }
131
+
132
+ getStyleSamples(organizationId: $organizationId, projectId: $projectId, sampleWidth: $sampleSize, sampleHeight: $sampleSize) {
133
+ styleId
134
+ base64Image
135
+ }
136
+
137
+ getStyleRules(organizationId: $organizationId, projectId: $projectId, locale: $locale) {
138
+ id
139
+ layerId
140
+ name
141
+ active
142
+ conditions {
143
+ id
144
+ name
145
+ styleMapScales {
146
+ id
147
+ styleId
148
+ minimumZoom
149
+ maximumZoom
150
+ }
151
+ }
152
+ }
153
+ }
package/index.d.ts CHANGED
@@ -2,6 +2,8 @@ export * from "./das"
2
2
  export * from "./geography"
3
3
  export * from "./language"
4
4
  export * from "./mcs"
5
+ export * from "./server"
6
+ export * from "./ss"
5
7
  export * from "./theme"
6
8
 
7
9
  export {}
package/index.js ADDED
@@ -0,0 +1,5 @@
1
+ // Types-only package — no runtime values.
2
+ // This empty module exists so bundlers (Vite/esbuild dep-scan) can resolve a
3
+ // JS entry when following type-only re-exports such as
4
+ // `export { type Foo } from "jmapcloud-types"`.
5
+ export {}
package/language.d.ts CHANGED
@@ -8,13 +8,14 @@ export type LocaleSubscriber = (locale: LOCALES) => void
8
8
 
9
9
  export interface JLanguageService {
10
10
  addBundle(bundle: JTranslationBundle): void
11
+ addLocaleTranslations(bundleId: string, locale: LOCALES, translations: JLocaleTranslation): void
11
12
  // new methods to implement
12
13
  //
13
- // bundleExitsById(bundleId: string): boolean
14
14
  // getBundleById(bundleId: string): JTranslationBundle
15
15
  // getAllBundleIds(): string[]
16
16
  // getBundles(): JTranslationBundleById
17
17
  //
18
+ bundleExitsById(bundleId: string): boolean
18
19
  subscribeToLocaleChange(callback: LocaleSubscriber): () => void
19
20
  getLocales(): LOCALES[]
20
21
  getLocale(): LOCALES