@opengis/gis 0.2.173 → 0.2.175

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.
@@ -1,125 +1,128 @@
1
- {
2
- "style": {
3
- "navigation": true
4
- },
5
- "schema": {
6
- "d0": {
7
- "type": "HTML",
8
- "title": "Загальна інформація",
9
- "text": "<h2 class='text-xl font-bold text-left'>Загальна інформація про реєстр</h2>",
10
- "col": 12
11
- },
12
- "name": {
13
- "ua": "Назва",
14
- "col": 12,
15
- "type": "Text",
16
- "validators": [
17
- "required"
18
- ]
19
- },
20
- "service_id": {
21
- "ua": "Шар на мапі",
22
- "type": "Autocomplete",
23
- "data": "service_id"
24
- },
25
- "description": {
26
- "ua": "Опис",
27
- "col": 12,
28
- "type": "TextArea"
29
- },
30
- "holder": {
31
- "ua": "Власник/Утримувач/Відповідальний",
32
- "col": 6,
33
- "type": "Text"
34
- },
35
- "register_key": {
36
- "ua": "Аліас реєстру",
37
- "col": 6,
38
- "i": "Унікальний аліас реєстру",
39
- "type": "Text"
40
- },
41
- "keywords": {
42
- "ua": "Ключові слова",
43
- "col": 6,
44
- "type": "Tags"
45
- },
46
- "view": {
47
- "ua": "Вигляд реєстру",
48
- "col": 6,
49
- "defaultValue": "1",
50
- "data": "view",
51
- "type": "Select",
52
- "validators": [
53
- "required"
54
- ]
55
- },
56
- "is_public": {
57
- "ua": "Чи публічний реєстр?",
58
- "col": 6,
59
- "type": "Switcher",
60
- "data": "yes_no"
61
- },
62
- "is_active": {
63
- "ua": "Чи активний?",
64
- "col": 6,
65
- "type": "Switcher",
66
- "data": "yes_no"
67
- },
68
- "is_map": {
69
- "ua": "Наявність переходу на карту",
70
- "col": 6,
71
- "type": "Switcher",
72
- "data": "bool.yes_no"
73
- },
74
- "is_register": {
75
- "ua": "Наявність переходу до реєстру",
76
- "col": 6,
77
- "type": "Switcher",
78
- "data": "bool.yes_no"
79
- },
80
- "is_downloadable": {
81
- "ua": "Чи можна завантажити дані?",
82
- "col": 6,
83
- "type": "Switcher",
84
- "data": "bool.yes_no"
85
- },
86
- "is_files": {
87
- "ua": "Чи відображати віджет файлів?",
88
- "col": 6,
89
- "type": "Switcher",
90
- "defaultValue": false
91
- },
92
- "image": {
93
- "ua": "Фото",
94
- "col": 6,
95
- "type": "File"
96
- },
97
- "d1": {
98
- "type": "HTML",
99
- "title": "Інформація про джерело",
100
- "text": "<h2 class='text-xl font-bold text-left'>Інформація про джерело</h2>",
101
- "col": 12
102
- },
103
- "table_name": {
104
- "ua": "Таблиця в базі даних",
105
- "type": "Autocomplete",
106
- "data": "pg.table_name",
107
- "col": 12,
108
- "validators": [
109
- "required"
110
- ]
111
- },
112
- "query": {
113
- "ua": "Умова для відображення",
114
- "type": "Text",
115
- "syntax": "sql",
116
- "col": 6
117
- },
118
- "order": {
119
- "ua": "Сортування",
120
- "type": "Text",
121
- "syntax": "sql",
122
- "col": 6
123
- }
124
- }
1
+ {
2
+ "style": {
3
+ "navigation": true
4
+ },
5
+ "schema": {
6
+ "d0": {
7
+ "type": "HTML",
8
+ "title": "Загальна інформація",
9
+ "text": "<h2 class='text-xl font-bold text-left'>Загальна інформація про реєстр</h2>",
10
+ "col": 12
11
+ },
12
+ "name": {
13
+ "ua": "Назва",
14
+ "col": 12,
15
+ "type": "Text",
16
+ "validators": [
17
+ "required"
18
+ ]
19
+ },
20
+ "service_id": {
21
+ "ua": "Шар на мапі",
22
+ "type": "Autocomplete",
23
+ "data": "service_id"
24
+ },
25
+ "description": {
26
+ "ua": "Опис",
27
+ "col": 12,
28
+ "type": "TextArea"
29
+ },
30
+ "holder": {
31
+ "ua": "Власник/Утримувач/Відповідальний",
32
+ "col": 6,
33
+ "type": "Text"
34
+ },
35
+ "register_key": {
36
+ "ua": "Аліас реєстру",
37
+ "col": 6,
38
+ "i": "Унікальний аліас реєстру",
39
+ "type": "Text",
40
+ "validators": [
41
+ "required"
42
+ ]
43
+ },
44
+ "keywords": {
45
+ "ua": "Ключові слова",
46
+ "col": 6,
47
+ "type": "Tags"
48
+ },
49
+ "view": {
50
+ "ua": "Вигляд реєстру",
51
+ "col": 6,
52
+ "defaultValue": "1",
53
+ "data": "view",
54
+ "type": "Select",
55
+ "validators": [
56
+ "required"
57
+ ]
58
+ },
59
+ "is_public": {
60
+ "ua": "Чи публічний реєстр?",
61
+ "col": 6,
62
+ "type": "Switcher",
63
+ "data": "yes_no"
64
+ },
65
+ "is_active": {
66
+ "ua": "Чи активний?",
67
+ "col": 6,
68
+ "type": "Switcher",
69
+ "data": "yes_no"
70
+ },
71
+ "is_map": {
72
+ "ua": "Наявність переходу на карту",
73
+ "col": 6,
74
+ "type": "Switcher",
75
+ "data": "bool.yes_no"
76
+ },
77
+ "is_register": {
78
+ "ua": "Наявність переходу до реєстру",
79
+ "col": 6,
80
+ "type": "Switcher",
81
+ "data": "bool.yes_no"
82
+ },
83
+ "is_downloadable": {
84
+ "ua": "Чи можна завантажити дані?",
85
+ "col": 6,
86
+ "type": "Switcher",
87
+ "data": "bool.yes_no"
88
+ },
89
+ "is_files": {
90
+ "ua": "Чи відображати віджет файлів?",
91
+ "col": 6,
92
+ "type": "Switcher",
93
+ "defaultValue": false
94
+ },
95
+ "image": {
96
+ "ua": "Фото",
97
+ "col": 6,
98
+ "type": "File"
99
+ },
100
+ "d1": {
101
+ "type": "HTML",
102
+ "title": "Інформація про джерело",
103
+ "text": "<h2 class='text-xl font-bold text-left'>Інформація про джерело</h2>",
104
+ "col": 12
105
+ },
106
+ "table_name": {
107
+ "ua": "Таблиця в базі даних",
108
+ "type": "Autocomplete",
109
+ "data": "pg.table_name",
110
+ "col": 12,
111
+ "validators": [
112
+ "required"
113
+ ]
114
+ },
115
+ "query": {
116
+ "ua": "Умова для відображення",
117
+ "type": "Text",
118
+ "syntax": "sql",
119
+ "col": 6
120
+ },
121
+ "order": {
122
+ "ua": "Сортування",
123
+ "type": "Text",
124
+ "syntax": "sql",
125
+ "col": 6
126
+ }
127
+ }
125
128
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/gis",
3
- "version": "0.2.173",
3
+ "version": "0.2.175",
4
4
  "type": "module",
5
5
  "author": "Softpro",
6
6
  "main": "./dist/index.js",
@@ -25,7 +25,7 @@ const cssBodySchema = {
25
25
  additionalProperties: true,
26
26
 
27
27
  properties: {
28
- id: { type: "string", pattern: '^([\\d\\w]+)$' },
28
+ id: { type: "string", pattern: '^([\\d\\w._-]+)$' },
29
29
  name: { type: "string" },
30
30
  group_id: { type: "string" },
31
31
  cartocss_key: { type: "string" },
@@ -46,7 +46,7 @@ export const getCartocssSchema = {
46
46
  type: 'object',
47
47
  required: ['id'],
48
48
  properties: {
49
- id: { type: 'string', pattern: '^([\\d\\w]+)$' }
49
+ id: { type: 'string', pattern: '^([\\d\\w._-]+)$' }
50
50
  }
51
51
  },
52
52
  querystring: {
@@ -64,7 +64,7 @@ export const addCartocssSchema = {
64
64
  type: 'object',
65
65
  required: ['id'],
66
66
  properties: {
67
- id: { type: 'string', pattern: '^([\\d\\w]+)$' }
67
+ id: { type: 'string', pattern: '^([\\d\\w._-]+)$' }
68
68
  }
69
69
  },
70
70
  body: cssBodySchema,
@@ -259,7 +259,7 @@ export const clearTilesSchema = {
259
259
  type: 'object',
260
260
  properties: {
261
261
  id: {
262
- type: 'string', pattern: '^([\\d\\w]+)$'
262
+ type: 'string', pattern: '^([\\d\\w._-]+)$'
263
263
  },
264
264
  },
265
265
  },
@@ -10,7 +10,7 @@ export const pretileSchema = {
10
10
  params: {
11
11
  type: "object",
12
12
  properties: {
13
- id: { type: "string", pattern: '^([\\d\\w]+)$', },
13
+ id: { type: "string", pattern: '^([\\d\\w._-]+)$', },
14
14
  },
15
15
  required: ["id"],
16
16
  },
@@ -29,7 +29,7 @@ export const uploadRasterSchema = {
29
29
  params: {
30
30
  type: "object",
31
31
  properties: {
32
- id: { type: "string", pattern: '^([\\d\\w]+)$', },
32
+ id: { type: "string", pattern: '^([\\d\\w._-]+)$', },
33
33
  },
34
34
  required: ["id"],
35
35
  },
@@ -39,7 +39,7 @@ export const gisXmlSchema = {
39
39
  params: {
40
40
  type: "object",
41
41
  properties: {
42
- id: { type: "string", pattern: '^([\\d\\w]+)$', },
42
+ id: { type: "string", pattern: '^([\\d\\w._-]+)$', },
43
43
  },
44
44
  required: ["id"],
45
45
  },
@@ -64,7 +64,7 @@ export const gisRtileSchema = {
64
64
  params: {
65
65
  type: "object",
66
66
  properties: {
67
- id: { type: "string", pattern: '^([\\d\\w]+)$', },
67
+ id: { type: "string", pattern: '^([\\d\\w._-]+)$', },
68
68
  z: {
69
69
  type: 'number',
70
70
  },
@@ -103,7 +103,7 @@ export const gisRasterSchema = {
103
103
  params: {
104
104
  type: "object",
105
105
  properties: {
106
- id: { type: "string", pattern: '^([\\d\\w]+)$', },
106
+ id: { type: "string", pattern: '^([\\d\\w._-]+)$', },
107
107
  },
108
108
  required: ["id"],
109
109
  },
@@ -120,7 +120,7 @@ export const createXmlMultiSchema = {
120
120
  params: {
121
121
  type: "object",
122
122
  properties: {
123
- id: { type: "string", pattern: '^([\\d\\w]+)$', },
123
+ id: { type: "string", pattern: '^([\\d\\w._-]+)$', },
124
124
  },
125
125
  },
126
126
  querystring: {
@@ -180,7 +180,7 @@ export const clearTilesSchema = {
180
180
  params: {
181
181
  type: "object",
182
182
  properties: {
183
- id: { type: "string", pattern: '^([\\d\\w]+)$', },
183
+ id: { type: "string", pattern: '^([\\d\\w._-]+)$', },
184
184
  },
185
185
  },
186
186
  querystring: {
@@ -2,7 +2,7 @@ export const schemaInfo = {
2
2
  params: {
3
3
  type: 'object',
4
4
  properties: {
5
- id: { type: "string", pattern: '^([\\d\\w]+)$' },
5
+ id: { type: "string", pattern: '^([\\d\\w._-]+)$' },
6
6
  },
7
7
  },
8
8
  };
@@ -4,7 +4,7 @@ export const editMetadataSchema = {
4
4
  required: ['type', 'id'],
5
5
  properties: {
6
6
  type: { type: 'string', enum: ['raster', 'css', 'dataset', 'service'] },
7
- id: { type: 'string', pattern: '^([\\d\\w]+)$' },
7
+ id: { type: 'string', pattern: '^([\\d\\w._-]+)$' },
8
8
  },
9
9
  },
10
10
  body: {
@@ -45,7 +45,7 @@ export const metadataXMLSchema = {
45
45
  type: 'object',
46
46
  required: ['id'],
47
47
  properties: {
48
- id: { type: 'string', pattern: '^([\\d\\w]+)$' },
48
+ id: { type: 'string', pattern: '^([\\d\\w._-]+)$' },
49
49
  },
50
50
  },
51
51
  };
@@ -4,7 +4,7 @@ export const getCatalogPermissionsSchema = {
4
4
  required: ['uid'],
5
5
  properties: {
6
6
  uid: {
7
- type: 'string', pattern: '^([\\d\\w]+)$'
7
+ type: 'string', pattern: '^([\\d\\w._-]+)$'
8
8
  },
9
9
  },
10
10
  },
@@ -16,7 +16,7 @@ export const editCatalogPermissionsSchema = {
16
16
  required: ['uid'],
17
17
  properties: {
18
18
  uid: {
19
- type: 'string', pattern: '^([\\d\\w]+)$'
19
+ type: 'string', pattern: '^([\\d\\w._-]+)$'
20
20
  },
21
21
  },
22
22
  },
@@ -27,7 +27,7 @@ export const editCatalogPermissionsSchema = {
27
27
  required: ['service_id', 'actions'],
28
28
  properties: {
29
29
  service_id: {
30
- type: 'string', pattern: '^([\\d\\w]+)$'
30
+ type: 'string', pattern: '^([\\d\\w._-]+)$'
31
31
  },
32
32
  actions: {
33
33
  type: 'array',
@@ -5,9 +5,9 @@ const registerSchema = {
5
5
  type: 'object',
6
6
  additionalProperties: false,
7
7
  properties: {
8
- id: { type: 'string', pattern: '^([\\d\\w]+)$' },
9
- register_id: { type: 'string', pattern: '^([\\d\\w]+)$' },
10
- service_id: { type: ['string', 'null'], pattern: '^([\\d\\w]+)$' },
8
+ id: { type: 'string', pattern: '^([\\d\\w._-]+)$' },
9
+ register_id: { type: 'string', pattern: '^([\\d\\w._-]+)$' },
10
+ service_id: { type: ['string', 'null'], pattern: '^([\\d\\w._-]+)$' },
11
11
 
12
12
  name: { type: 'string' },
13
13
  description: { type: ['string', 'null'] },
@@ -105,7 +105,7 @@ const registerSchema = {
105
105
  additionalProperties: false,
106
106
  required: ['id', 'text'],
107
107
  properties: {
108
- id: { type: 'string', pattern: '^([\\d\\w]+)$' },
108
+ id: { type: 'string', pattern: '^([\\d\\w._-]+)$' },
109
109
  text: { type: 'string' },
110
110
  icon: { type: ['string', 'null'] },
111
111
  color: { type: 'string' },
@@ -119,7 +119,7 @@ const registerSchema = {
119
119
  additionalProperties: false,
120
120
  required: ['id', 'text'],
121
121
  properties: {
122
- id: { type: 'string', pattern: '^([\\d\\w]+)$' },
122
+ id: { type: 'string', pattern: '^([\\d\\w._-]+)$' },
123
123
  text: { type: 'string' },
124
124
  icon: { type: ['string', 'null'] },
125
125
  color: { type: 'string' },
@@ -131,7 +131,7 @@ const registerSchema = {
131
131
  additionalProperties: false,
132
132
  required: ['id', 'text'],
133
133
  properties: {
134
- id: { type: 'string', pattern: '^([\\d\\w]+)$' },
134
+ id: { type: 'string', pattern: '^([\\d\\w._-]+)$' },
135
135
  text: { type: 'string' },
136
136
  icon: { type: ['string', 'null'] },
137
137
  color: { type: 'string' },
@@ -156,7 +156,7 @@ export const gisRegistrySchema = {
156
156
  required: ['slug'],
157
157
  properties: {
158
158
  slug: { type: 'string' },
159
- objectId: { type: 'string', pattern: '^([\\d\\w]+)$' },
159
+ objectId: { type: 'string', pattern: '^([\\d\\w._-]+)$' },
160
160
  },
161
161
  },
162
162
  querystring: {
@@ -4,7 +4,7 @@ const serviceBodySchema = {
4
4
  type: 'object',
5
5
  additionalProperties: false,
6
6
  properties: {
7
- service_id: { type: 'string', pattern: '^([\\d\\w]+)$' },
7
+ service_id: { type: 'string', pattern: '^([\\d\\w._-]+)$' },
8
8
  service_key: { type: 'string' },
9
9
  name: { type: 'string' },
10
10
  description: { type: ['string', 'null'] },
@@ -188,7 +188,7 @@ export const getServicesSchema = {
188
188
  params: {
189
189
  type: 'object',
190
190
  properties: {
191
- id: { type: 'string', pattern: '^([\\d\\w]+)$' },
191
+ id: { type: 'string', pattern: '^([\\d\\w._-]+)$' },
192
192
  },
193
193
  },
194
194
  };
@@ -198,7 +198,7 @@ export const getServicesColSchema = {
198
198
  type: 'object',
199
199
  required: ['id', 'col'],
200
200
  properties: {
201
- id: { type: 'string', pattern: '^([\\d\\w]+)$' },
201
+ id: { type: 'string', pattern: '^([\\d\\w._-]+)$' },
202
202
  col: { type: 'string', pattern: '^([\\d\\w_]+)$' },
203
203
  },
204
204
  },
@@ -207,7 +207,7 @@ export const addServiceSchema = {
207
207
  params: {
208
208
  type: 'object',
209
209
  properties: {
210
- id: { type: 'string', pattern: '^([\\d\\w]+)$' },
210
+ id: { type: 'string', pattern: '^([\\d\\w._-]+)$' },
211
211
  },
212
212
  },
213
213
  body: { ...serviceBodySchema, required: ['name', 'service_type'] }
@@ -217,7 +217,7 @@ export const editServiceSchema = {
217
217
  type: 'object',
218
218
  required: ['id'],
219
219
  properties: {
220
- id: { type: 'string', pattern: '^([\\d\\w]+)$' },
220
+ id: { type: 'string', pattern: '^([\\d\\w._-]+)$' },
221
221
  },
222
222
  },
223
223
  body: serviceBodySchema
@@ -227,7 +227,7 @@ export const deleteServiceSchema = {
227
227
  type: 'object',
228
228
  required: ['id'],
229
229
  properties: {
230
- id: { type: 'string', pattern: '^([\\d\\w]+)$' },
230
+ id: { type: 'string', pattern: '^([\\d\\w._-]+)$' },
231
231
  },
232
232
  },
233
233
  };
@@ -236,7 +236,7 @@ export const getServiceUsersSchema = {
236
236
  params: {
237
237
  type: 'object',
238
238
  properties: {
239
- id: { type: 'string', pattern: '^([\\d\\w]+)$' },
239
+ id: { type: 'string', pattern: '^([\\d\\w._-]+)$' },
240
240
  },
241
241
  },
242
242
  querystring: {