@based/schema 2.6.0 → 2.7.0

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.
Files changed (36) hide show
  1. package/dist/src/compat/Untitled-1.d.ts +3 -0
  2. package/dist/src/compat/Untitled-1.js +205 -0
  3. package/dist/src/compat/newToOld.js +165 -28
  4. package/dist/src/compat/oldToNew.js +200 -25
  5. package/dist/src/display/number.d.ts +2 -1
  6. package/dist/src/display/number.js +10 -0
  7. package/dist/src/display/string.d.ts +3 -1
  8. package/dist/src/display/string.js +5 -0
  9. package/dist/src/display/timestamp.d.ts +3 -1
  10. package/dist/src/display/timestamp.js +9 -0
  11. package/dist/src/error.d.ts +3 -1
  12. package/dist/src/error.js +2 -0
  13. package/dist/src/index.d.ts +1 -1
  14. package/dist/src/index.js +1 -1
  15. package/dist/src/types.d.ts +4 -3
  16. package/dist/src/types.js +74 -0
  17. package/dist/src/validateSchema/basedSchemaTypeValidator.d.ts +3 -0
  18. package/dist/src/validateSchema/basedSchemaTypeValidator.js +45 -0
  19. package/dist/src/validateSchema/fieldValidators.d.ts +27 -0
  20. package/dist/src/validateSchema/fieldValidators.js +352 -0
  21. package/dist/src/validateSchema/index.d.ts +17 -0
  22. package/dist/src/validateSchema/index.js +109 -0
  23. package/dist/src/validateSchema/utils.d.ts +21 -0
  24. package/dist/src/validateSchema/utils.js +53 -0
  25. package/dist/test/compat.js +7 -3
  26. package/dist/test/data/oldSchemas.js +122 -122
  27. package/dist/test/validateSchema/basic.js +94 -0
  28. package/dist/test/validateSchema/fields.d.ts +1 -0
  29. package/dist/test/validateSchema/fields.js +366 -0
  30. package/dist/test/validateSchema/languages.d.ts +1 -0
  31. package/dist/test/validateSchema/languages.js +124 -0
  32. package/package.json +1 -1
  33. package/dist/src/validateSchema.d.ts +0 -4
  34. package/dist/src/validateSchema.js +0 -35
  35. package/dist/test/validateSchema.js +0 -38
  36. /package/dist/test/{validateSchema.d.ts → validateSchema/basic.d.ts} +0 -0
@@ -2,12 +2,13 @@ export const oldSchemas = [
2
2
  {
3
3
  languages: ['en', 'nl'],
4
4
  prefixToTypeMapping: {},
5
- rootType: {},
5
+ rootType: {
6
+ fields: {},
7
+ },
6
8
  types: {
7
9
  thing1: {
8
10
  meta: {
9
11
  name: 'name',
10
- index: 0,
11
12
  description: 'bla',
12
13
  },
13
14
  prefix: 'ti',
@@ -31,7 +32,6 @@ export const oldSchemas = [
31
32
  },
32
33
  },
33
34
  {
34
- sha: '40b87292d307d73e7255d418bb80083da1f00dfe',
35
35
  languages: ['en', 'nl', 'de'],
36
36
  rootType: {
37
37
  prefix: 'ro',
@@ -40,7 +40,7 @@ export const oldSchemas = [
40
40
  type: 'timestamp',
41
41
  },
42
42
  type: {
43
- type: 'type',
43
+ type: 'string',
44
44
  },
45
45
  id: {
46
46
  type: 'id',
@@ -140,7 +140,7 @@ export const oldSchemas = [
140
140
  type: 'string',
141
141
  },
142
142
  type: {
143
- type: 'type',
143
+ type: 'string',
144
144
  },
145
145
  parents: {
146
146
  type: 'references',
@@ -184,7 +184,7 @@ export const oldSchemas = [
184
184
  type: 'references',
185
185
  },
186
186
  type: {
187
- type: 'type',
187
+ type: 'string',
188
188
  },
189
189
  updatedAt: {
190
190
  type: 'timestamp',
@@ -222,7 +222,7 @@ export const oldSchemas = [
222
222
  type: 'references',
223
223
  },
224
224
  type: {
225
- type: 'type',
225
+ type: 'string',
226
226
  },
227
227
  updatedAt: {
228
228
  type: 'timestamp',
@@ -282,10 +282,10 @@ export const oldSchemas = [
282
282
  location: {
283
283
  properties: {
284
284
  lon: {
285
- type: 'float',
285
+ type: 'number',
286
286
  },
287
287
  lat: {
288
- type: 'float',
288
+ type: 'number',
289
289
  },
290
290
  },
291
291
  type: 'object',
@@ -334,7 +334,7 @@ export const oldSchemas = [
334
334
  type: 'array',
335
335
  },
336
336
  flightHeight: {
337
- type: 'float',
337
+ type: 'number',
338
338
  },
339
339
  losType: {
340
340
  type: 'string',
@@ -349,7 +349,7 @@ export const oldSchemas = [
349
349
  type: 'json',
350
350
  },
351
351
  type: {
352
- type: 'type',
352
+ type: 'string',
353
353
  },
354
354
  ancestors: {
355
355
  type: 'references',
@@ -387,10 +387,10 @@ export const oldSchemas = [
387
387
  location: {
388
388
  properties: {
389
389
  lon: {
390
- type: 'float',
390
+ type: 'number',
391
391
  },
392
392
  lat: {
393
- type: 'float',
393
+ type: 'number',
394
394
  },
395
395
  },
396
396
  type: 'object',
@@ -410,7 +410,7 @@ export const oldSchemas = [
410
410
  prefix: 'om',
411
411
  fields: {
412
412
  type: {
413
- type: 'type',
413
+ type: 'string',
414
414
  },
415
415
  id: {
416
416
  type: 'id',
@@ -481,7 +481,7 @@ export const oldSchemas = [
481
481
  type: 'references',
482
482
  },
483
483
  type: {
484
- type: 'type',
484
+ type: 'string',
485
485
  },
486
486
  updatedAt: {
487
487
  type: 'timestamp',
@@ -510,7 +510,7 @@ export const oldSchemas = [
510
510
  type: 'set',
511
511
  },
512
512
  type: {
513
- type: 'type',
513
+ type: 'string',
514
514
  },
515
515
  createdAt: {
516
516
  type: 'timestamp',
@@ -539,7 +539,7 @@ export const oldSchemas = [
539
539
  prefix: 'll',
540
540
  fields: {
541
541
  type: {
542
- type: 'type',
542
+ type: 'string',
543
543
  },
544
544
  disabled: {
545
545
  type: 'boolean',
@@ -598,7 +598,7 @@ export const oldSchemas = [
598
598
  prefix: 'po',
599
599
  fields: {
600
600
  type: {
601
- type: 'type',
601
+ type: 'string',
602
602
  },
603
603
  id: {
604
604
  type: 'id',
@@ -630,10 +630,10 @@ export const oldSchemas = [
630
630
  location: {
631
631
  properties: {
632
632
  lon: {
633
- type: 'float',
633
+ type: 'number',
634
634
  },
635
635
  lat: {
636
- type: 'float',
636
+ type: 'number',
637
637
  },
638
638
  },
639
639
  type: 'object',
@@ -668,7 +668,7 @@ export const oldSchemas = [
668
668
  type: 'references',
669
669
  },
670
670
  weight: {
671
- type: 'float',
671
+ type: 'number',
672
672
  },
673
673
  status: {
674
674
  type: 'string',
@@ -683,7 +683,7 @@ export const oldSchemas = [
683
683
  type: 'string',
684
684
  },
685
685
  type: {
686
- type: 'type',
686
+ type: 'string',
687
687
  },
688
688
  parents: {
689
689
  type: 'references',
@@ -757,7 +757,7 @@ export const oldSchemas = [
757
757
  type: 'references',
758
758
  },
759
759
  type: {
760
- type: 'type',
760
+ type: 'string',
761
761
  },
762
762
  updatedAt: {
763
763
  type: 'timestamp',
@@ -836,7 +836,7 @@ export const oldSchemas = [
836
836
  type: 'boolean',
837
837
  },
838
838
  type: {
839
- type: 'type',
839
+ type: 'string',
840
840
  },
841
841
  ancestors: {
842
842
  type: 'references',
@@ -861,7 +861,7 @@ export const oldSchemas = [
861
861
  },
862
862
  origin: {
863
863
  meta: {
864
- validation: 'url',
864
+ // validation: 'url',
865
865
  description: 'Original file',
866
866
  name: 'Origin',
867
867
  },
@@ -917,7 +917,7 @@ export const oldSchemas = [
917
917
  type: 'number',
918
918
  },
919
919
  type: {
920
- type: 'type',
920
+ type: 'string',
921
921
  },
922
922
  id: {
923
923
  meta: {
@@ -926,9 +926,6 @@ export const oldSchemas = [
926
926
  type: 'id',
927
927
  },
928
928
  progress: {
929
- meta: {
930
- format: 'progress',
931
- },
932
929
  type: 'number',
933
930
  },
934
931
  ancestors: {
@@ -936,10 +933,9 @@ export const oldSchemas = [
936
933
  },
937
934
  src: {
938
935
  meta: {
939
- ui: 'file',
940
936
  description: 'Transformed source of the file',
941
937
  name: 'Source',
942
- validation: 'url',
938
+ // validation: 'url',
943
939
  },
944
940
  type: 'string',
945
941
  },
@@ -965,7 +961,7 @@ export const oldSchemas = [
965
961
  },
966
962
  thumb: {
967
963
  meta: {
968
- format: 'bytes',
964
+ // format: 'bytes',
969
965
  index: 10,
970
966
  name: 'Thumbnail',
971
967
  },
@@ -1023,7 +1019,7 @@ export const oldSchemas = [
1023
1019
  type: 'references',
1024
1020
  },
1025
1021
  type: {
1026
- type: 'type',
1022
+ type: 'string',
1027
1023
  },
1028
1024
  postalCode: {
1029
1025
  type: 'string',
@@ -1100,7 +1096,7 @@ export const oldSchemas = [
1100
1096
  type: 'timestamp',
1101
1097
  },
1102
1098
  type: {
1103
- type: 'type',
1099
+ type: 'string',
1104
1100
  },
1105
1101
  file: {
1106
1102
  type: 'reference',
@@ -1129,7 +1125,7 @@ export const oldSchemas = [
1129
1125
  type: 'set',
1130
1126
  },
1131
1127
  type: {
1132
- type: 'type',
1128
+ type: 'string',
1133
1129
  },
1134
1130
  createdAt: {
1135
1131
  type: 'timestamp',
@@ -1200,7 +1196,7 @@ export const oldSchemas = [
1200
1196
  type: 'references',
1201
1197
  },
1202
1198
  type: {
1203
- type: 'type',
1199
+ type: 'string',
1204
1200
  },
1205
1201
  title: {
1206
1202
  type: 'string',
@@ -1256,7 +1252,7 @@ export const oldSchemas = [
1256
1252
  type: 'timestamp',
1257
1253
  },
1258
1254
  type: {
1259
- type: 'type',
1255
+ type: 'string',
1260
1256
  },
1261
1257
  file: {
1262
1258
  type: 'reference',
@@ -1300,7 +1296,7 @@ export const oldSchemas = [
1300
1296
  type: 'references',
1301
1297
  },
1302
1298
  type: {
1303
- type: 'type',
1299
+ type: 'string',
1304
1300
  },
1305
1301
  updatedAt: {
1306
1302
  type: 'timestamp',
@@ -1329,7 +1325,7 @@ export const oldSchemas = [
1329
1325
  type: 'references',
1330
1326
  },
1331
1327
  type: {
1332
- type: 'type',
1328
+ type: 'string',
1333
1329
  },
1334
1330
  aliases: {
1335
1331
  items: {
@@ -1388,7 +1384,7 @@ export const oldSchemas = [
1388
1384
  type: 'timestamp',
1389
1385
  },
1390
1386
  type: {
1391
- type: 'type',
1387
+ type: 'string',
1392
1388
  },
1393
1389
  aliases: {
1394
1390
  items: {
@@ -1411,13 +1407,13 @@ export const oldSchemas = [
1411
1407
  location: {
1412
1408
  properties: {
1413
1409
  lon: {
1414
- type: 'float',
1410
+ type: 'number',
1415
1411
  },
1416
1412
  lat: {
1417
- type: 'float',
1413
+ type: 'number',
1418
1414
  },
1419
1415
  alt: {
1420
- type: 'float',
1416
+ type: 'number',
1421
1417
  },
1422
1418
  },
1423
1419
  type: 'object',
@@ -1428,13 +1424,13 @@ export const oldSchemas = [
1428
1424
  attitude: {
1429
1425
  properties: {
1430
1426
  pitch: {
1431
- type: 'float',
1427
+ type: 'number',
1432
1428
  },
1433
1429
  roll: {
1434
- type: 'float',
1430
+ type: 'number',
1435
1431
  },
1436
1432
  yaw: {
1437
- type: 'float',
1433
+ type: 'number',
1438
1434
  },
1439
1435
  },
1440
1436
  type: 'object',
@@ -1463,7 +1459,7 @@ export const oldSchemas = [
1463
1459
  type: 'references',
1464
1460
  },
1465
1461
  weight: {
1466
- type: 'float',
1462
+ type: 'number',
1467
1463
  },
1468
1464
  archived: {
1469
1465
  type: 'boolean',
@@ -1487,7 +1483,7 @@ export const oldSchemas = [
1487
1483
  type: 'timestamp',
1488
1484
  },
1489
1485
  type: {
1490
- type: 'type',
1486
+ type: 'string',
1491
1487
  },
1492
1488
  name: {
1493
1489
  type: 'string',
@@ -1516,7 +1512,7 @@ export const oldSchemas = [
1516
1512
  type: 'string',
1517
1513
  },
1518
1514
  type: {
1519
- type: 'type',
1515
+ type: 'string',
1520
1516
  },
1521
1517
  children: {
1522
1518
  type: 'references',
@@ -1602,7 +1598,7 @@ export const oldSchemas = [
1602
1598
  type: 'references',
1603
1599
  },
1604
1600
  type: {
1605
- type: 'type',
1601
+ type: 'string',
1606
1602
  },
1607
1603
  updatedAt: {
1608
1604
  type: 'timestamp',
@@ -1631,7 +1627,7 @@ export const oldSchemas = [
1631
1627
  type: 'id',
1632
1628
  },
1633
1629
  type: {
1634
- type: 'type',
1630
+ type: 'string',
1635
1631
  },
1636
1632
  createdAt: {
1637
1633
  type: 'timestamp',
@@ -1711,7 +1707,7 @@ export const oldSchemas = [
1711
1707
  type: 'references',
1712
1708
  },
1713
1709
  type: {
1714
- type: 'type',
1710
+ type: 'string',
1715
1711
  },
1716
1712
  updatedAt: {
1717
1713
  type: 'timestamp',
@@ -1755,7 +1751,7 @@ export const oldSchemas = [
1755
1751
  type: 'references',
1756
1752
  },
1757
1753
  type: {
1758
- type: 'type',
1754
+ type: 'string',
1759
1755
  },
1760
1756
  updatedAt: {
1761
1757
  type: 'timestamp',
@@ -1805,7 +1801,7 @@ export const oldSchemas = [
1805
1801
  type: 'references',
1806
1802
  },
1807
1803
  type: {
1808
- type: 'type',
1804
+ type: 'string',
1809
1805
  },
1810
1806
  id: {
1811
1807
  type: 'id',
@@ -1884,7 +1880,7 @@ export const oldSchemas = [
1884
1880
  type: 'timestamp',
1885
1881
  },
1886
1882
  type: {
1887
- type: 'type',
1883
+ type: 'string',
1888
1884
  },
1889
1885
  parents: {
1890
1886
  type: 'references',
@@ -1932,13 +1928,13 @@ export const oldSchemas = [
1932
1928
  type: 'object',
1933
1929
  properties: {
1934
1930
  heading: {
1935
- type: 'float',
1931
+ type: 'number',
1936
1932
  },
1937
1933
  holdingTime: {
1938
1934
  type: 'int',
1939
1935
  },
1940
1936
  speed: {
1941
- type: 'float',
1937
+ type: 'number',
1942
1938
  },
1943
1939
  waypointType: {
1944
1940
  type: 'string',
@@ -1947,13 +1943,13 @@ export const oldSchemas = [
1947
1943
  type: 'object',
1948
1944
  properties: {
1949
1945
  lon: {
1950
- type: 'float',
1946
+ type: 'number',
1951
1947
  },
1952
1948
  lat: {
1953
- type: 'float',
1949
+ type: 'number',
1954
1950
  },
1955
1951
  alt: {
1956
- type: 'float',
1952
+ type: 'number',
1957
1953
  },
1958
1954
  },
1959
1955
  },
@@ -1962,7 +1958,7 @@ export const oldSchemas = [
1962
1958
  type: 'array',
1963
1959
  },
1964
1960
  type: {
1965
- type: 'type',
1961
+ type: 'string',
1966
1962
  },
1967
1963
  updatedAt: {
1968
1964
  type: 'timestamp',
@@ -2009,7 +2005,7 @@ export const oldSchemas = [
2009
2005
  type: 'reference',
2010
2006
  },
2011
2007
  type: {
2012
- type: 'type',
2008
+ type: 'string',
2013
2009
  },
2014
2010
  updatedAt: {
2015
2011
  type: 'timestamp',
@@ -2034,7 +2030,7 @@ export const oldSchemas = [
2034
2030
  type: 'string',
2035
2031
  },
2036
2032
  amount: {
2037
- type: 'float',
2033
+ type: 'number',
2038
2034
  },
2039
2035
  },
2040
2036
  type: 'object',
@@ -2061,7 +2057,7 @@ export const oldSchemas = [
2061
2057
  type: 'timestamp',
2062
2058
  },
2063
2059
  type: {
2064
- type: 'type',
2060
+ type: 'string',
2065
2061
  },
2066
2062
  parents: {
2067
2063
  type: 'references',
@@ -2084,7 +2080,7 @@ export const oldSchemas = [
2084
2080
  type: 'references',
2085
2081
  },
2086
2082
  type: {
2087
- type: 'type',
2083
+ type: 'string',
2088
2084
  },
2089
2085
  children: {
2090
2086
  type: 'references',
@@ -2172,7 +2168,7 @@ export const oldSchemas = [
2172
2168
  type: 'references',
2173
2169
  },
2174
2170
  type: {
2175
- type: 'type',
2171
+ type: 'string',
2176
2172
  },
2177
2173
  id: {
2178
2174
  type: 'id',
@@ -2261,7 +2257,7 @@ export const oldSchemas = [
2261
2257
  type: 'references',
2262
2258
  },
2263
2259
  type: {
2264
- type: 'type',
2260
+ type: 'string',
2265
2261
  },
2266
2262
  lastSessionDate: {
2267
2263
  type: 'timestamp',
@@ -2367,7 +2363,7 @@ export const oldSchemas = [
2367
2363
  type: 'text',
2368
2364
  },
2369
2365
  type: {
2370
- type: 'type',
2366
+ type: 'string',
2371
2367
  },
2372
2368
  notificationType: {
2373
2369
  type: 'number',
@@ -2399,7 +2395,7 @@ export const oldSchemas = [
2399
2395
  meta: {
2400
2396
  name: 'Elevation',
2401
2397
  },
2402
- type: 'float',
2398
+ type: 'number',
2403
2399
  },
2404
2400
  waypointIndex: {
2405
2401
  type: 'int',
@@ -2420,19 +2416,19 @@ export const oldSchemas = [
2420
2416
  meta: {
2421
2417
  name: 'Pitch',
2422
2418
  },
2423
- type: 'float',
2419
+ type: 'number',
2424
2420
  },
2425
2421
  roll: {
2426
2422
  meta: {
2427
2423
  name: 'Roll',
2428
2424
  },
2429
- type: 'float',
2425
+ type: 'number',
2430
2426
  },
2431
2427
  yaw: {
2432
2428
  meta: {
2433
2429
  name: 'Yaw',
2434
2430
  },
2435
- type: 'float',
2431
+ type: 'number',
2436
2432
  },
2437
2433
  },
2438
2434
  },
@@ -2446,7 +2442,7 @@ export const oldSchemas = [
2446
2442
  type: 'string',
2447
2443
  },
2448
2444
  percentage: {
2449
- type: 'float',
2445
+ type: 'number',
2450
2446
  },
2451
2447
  },
2452
2448
  },
@@ -2459,7 +2455,7 @@ export const oldSchemas = [
2459
2455
  meta: {
2460
2456
  name: 'HomeDistance',
2461
2457
  },
2462
- type: 'float',
2458
+ type: 'number',
2463
2459
  },
2464
2460
  location: {
2465
2461
  meta: {
@@ -2471,19 +2467,19 @@ export const oldSchemas = [
2471
2467
  meta: {
2472
2468
  name: 'Lon',
2473
2469
  },
2474
- type: 'float',
2470
+ type: 'number',
2475
2471
  },
2476
2472
  lat: {
2477
2473
  meta: {
2478
2474
  name: 'Lat',
2479
2475
  },
2480
- type: 'float',
2476
+ type: 'number',
2481
2477
  },
2482
2478
  alt: {
2483
2479
  meta: {
2484
2480
  name: 'Alt',
2485
2481
  },
2486
- type: 'float',
2482
+ type: 'number',
2487
2483
  },
2488
2484
  },
2489
2485
  },
@@ -2497,24 +2493,24 @@ export const oldSchemas = [
2497
2493
  meta: {
2498
2494
  name: 'Vertical',
2499
2495
  },
2500
- type: 'float',
2496
+ type: 'number',
2501
2497
  },
2502
2498
  horizontal: {
2503
2499
  meta: {
2504
2500
  name: 'Horizontal',
2505
2501
  },
2506
- type: 'float',
2502
+ type: 'number',
2507
2503
  },
2508
2504
  ned: {
2509
2505
  properties: {
2510
2506
  down: {
2511
- type: 'float',
2507
+ type: 'number',
2512
2508
  },
2513
2509
  east: {
2514
- type: 'float',
2510
+ type: 'number',
2515
2511
  },
2516
2512
  north: {
2517
- type: 'float',
2513
+ type: 'number',
2518
2514
  },
2519
2515
  },
2520
2516
  type: 'object',
@@ -2546,19 +2542,19 @@ export const oldSchemas = [
2546
2542
  meta: {
2547
2543
  name: 'Pitch',
2548
2544
  },
2549
- type: 'float',
2545
+ type: 'number',
2550
2546
  },
2551
2547
  roll: {
2552
2548
  meta: {
2553
2549
  name: 'Roll',
2554
2550
  },
2555
- type: 'float',
2551
+ type: 'number',
2556
2552
  },
2557
2553
  yaw: {
2558
2554
  meta: {
2559
2555
  name: 'Yaw',
2560
2556
  },
2561
- type: 'float',
2557
+ type: 'number',
2562
2558
  },
2563
2559
  },
2564
2560
  },
@@ -2703,10 +2699,10 @@ export const oldSchemas = [
2703
2699
  items: {
2704
2700
  properties: {
2705
2701
  lon: {
2706
- type: 'float',
2702
+ type: 'number',
2707
2703
  },
2708
2704
  lat: {
2709
- type: 'float',
2705
+ type: 'number',
2710
2706
  },
2711
2707
  },
2712
2708
  type: 'object',
@@ -2725,10 +2721,10 @@ export const oldSchemas = [
2725
2721
  location: {
2726
2722
  properties: {
2727
2723
  lon: {
2728
- type: 'float',
2724
+ type: 'number',
2729
2725
  },
2730
2726
  lat: {
2731
- type: 'float',
2727
+ type: 'number',
2732
2728
  },
2733
2729
  },
2734
2730
  type: 'object',
@@ -2748,10 +2744,10 @@ export const oldSchemas = [
2748
2744
  type: 'json',
2749
2745
  },
2750
2746
  type: {
2751
- type: 'type',
2747
+ type: 'string',
2752
2748
  },
2753
2749
  flightHeight: {
2754
- type: 'float',
2750
+ type: 'number',
2755
2751
  },
2756
2752
  archived: {
2757
2753
  type: 'boolean',
@@ -2786,13 +2782,13 @@ export const oldSchemas = [
2786
2782
  type: 'timestamp',
2787
2783
  },
2788
2784
  gpsAccuracy: {
2789
- type: 'float',
2785
+ type: 'number',
2790
2786
  },
2791
2787
  kpIndex: {
2792
2788
  type: 'int',
2793
2789
  },
2794
2790
  humidity: {
2795
- type: 'float',
2791
+ type: 'number',
2796
2792
  },
2797
2793
  sunset: {
2798
2794
  type: 'timestamp',
@@ -2801,42 +2797,42 @@ export const oldSchemas = [
2801
2797
  type: 'string',
2802
2798
  },
2803
2799
  cloudCover: {
2804
- type: 'float',
2800
+ type: 'number',
2805
2801
  },
2806
2802
  precipitation: {
2807
2803
  properties: {
2808
2804
  intensity: {
2809
- type: 'float',
2805
+ type: 'number',
2810
2806
  },
2811
2807
  accumulation: {
2812
- type: 'float',
2808
+ type: 'number',
2813
2809
  },
2814
2810
  probability: {
2815
- type: 'float',
2811
+ type: 'number',
2816
2812
  },
2817
2813
  },
2818
2814
  type: 'object',
2819
2815
  },
2820
2816
  pressure: {
2821
- type: 'float',
2817
+ type: 'number',
2822
2818
  },
2823
2819
  time: {
2824
2820
  type: 'timestamp',
2825
2821
  },
2826
2822
  windSpeed: {
2827
- type: 'float',
2823
+ type: 'number',
2828
2824
  },
2829
2825
  temperature: {
2830
- type: 'float',
2826
+ type: 'number',
2831
2827
  },
2832
2828
  windGusting: {
2833
- type: 'float',
2829
+ type: 'number',
2834
2830
  },
2835
2831
  visibility: {
2836
- type: 'float',
2832
+ type: 'number',
2837
2833
  },
2838
2834
  windBearing: {
2839
- type: 'float',
2835
+ type: 'number',
2840
2836
  },
2841
2837
  },
2842
2838
  type: 'object',
@@ -2864,10 +2860,10 @@ export const oldSchemas = [
2864
2860
  type: 'string',
2865
2861
  },
2866
2862
  startPercentage: {
2867
- type: 'float',
2863
+ type: 'number',
2868
2864
  },
2869
2865
  endPercentage: {
2870
- type: 'float',
2866
+ type: 'number',
2871
2867
  },
2872
2868
  },
2873
2869
  },
@@ -2876,10 +2872,10 @@ export const oldSchemas = [
2876
2872
  location: {
2877
2873
  properties: {
2878
2874
  lon: {
2879
- type: 'float',
2875
+ type: 'number',
2880
2876
  },
2881
2877
  lat: {
2882
- type: 'float',
2878
+ type: 'number',
2883
2879
  },
2884
2880
  },
2885
2881
  type: 'object',
@@ -2929,7 +2925,7 @@ export const oldSchemas = [
2929
2925
  type: 'string',
2930
2926
  },
2931
2927
  type: {
2932
- type: 'type',
2928
+ type: 'string',
2933
2929
  },
2934
2930
  parents: {
2935
2931
  type: 'references',
@@ -2982,7 +2978,7 @@ export const oldSchemas = [
2982
2978
  type: 'string',
2983
2979
  },
2984
2980
  type: {
2985
- type: 'type',
2981
+ type: 'string',
2986
2982
  },
2987
2983
  parents: {
2988
2984
  type: 'references',
@@ -3020,7 +3016,7 @@ export const oldSchemas = [
3020
3016
  type: 'references',
3021
3017
  },
3022
3018
  weight: {
3023
- type: 'float',
3019
+ type: 'number',
3024
3020
  },
3025
3021
  archived: {
3026
3022
  type: 'boolean',
@@ -3047,7 +3043,7 @@ export const oldSchemas = [
3047
3043
  type: 'timestamp',
3048
3044
  },
3049
3045
  type: {
3050
- type: 'type',
3046
+ type: 'string',
3051
3047
  },
3052
3048
  name: {
3053
3049
  type: 'string',
@@ -3082,7 +3078,7 @@ export const oldSchemas = [
3082
3078
  type: 'id',
3083
3079
  },
3084
3080
  type: {
3085
- type: 'type',
3081
+ type: 'string',
3086
3082
  },
3087
3083
  descendants: {
3088
3084
  type: 'references',
@@ -3150,7 +3146,7 @@ export const oldSchemas = [
3150
3146
  type: 'references',
3151
3147
  },
3152
3148
  type: {
3153
- type: 'type',
3149
+ type: 'string',
3154
3150
  },
3155
3151
  updatedAt: {
3156
3152
  type: 'timestamp',
@@ -3167,7 +3163,7 @@ export const oldSchemas = [
3167
3163
  prefix: 'ni',
3168
3164
  fields: {
3169
3165
  type: {
3170
- type: 'type',
3166
+ type: 'string',
3171
3167
  },
3172
3168
  id: {
3173
3169
  type: 'id',
@@ -3223,7 +3219,7 @@ export const oldSchemas = [
3223
3219
  type: 'id',
3224
3220
  },
3225
3221
  type: {
3226
- type: 'type',
3222
+ type: 'string',
3227
3223
  },
3228
3224
  descendants: {
3229
3225
  type: 'references',
@@ -3407,19 +3403,19 @@ export const oldSchemas = [
3407
3403
  location: {
3408
3404
  properties: {
3409
3405
  lon: {
3410
- type: 'float',
3406
+ type: 'number',
3411
3407
  },
3412
3408
  lat: {
3413
- type: 'float',
3409
+ type: 'number',
3414
3410
  },
3415
3411
  alt: {
3416
- type: 'float',
3412
+ type: 'number',
3417
3413
  },
3418
3414
  },
3419
3415
  type: 'object',
3420
3416
  },
3421
3417
  type: {
3422
- type: 'type',
3418
+ type: 'string',
3423
3419
  },
3424
3420
  serial: {
3425
3421
  type: 'string',
@@ -3454,7 +3450,7 @@ export const oldSchemas = [
3454
3450
  type: 'references',
3455
3451
  },
3456
3452
  type: {
3457
- type: 'type',
3453
+ type: 'string',
3458
3454
  },
3459
3455
  updatedAt: {
3460
3456
  type: 'timestamp',
@@ -3471,6 +3467,10 @@ export const oldSchemas = [
3471
3467
  },
3472
3468
  //@ts-ignore
3473
3469
  {
3470
+ rootType: {
3471
+ fields: {},
3472
+ },
3473
+ prefixToTypeMapping: {},
3474
3474
  languages: [
3475
3475
  'en',
3476
3476
  'de',
@@ -3740,7 +3740,7 @@ export const oldSchemas = [
3740
3740
  fontSize: { type: 'int' },
3741
3741
  x: { type: 'string' },
3742
3742
  y: { type: 'string' },
3743
- sizeMultiplier: { type: 'float' },
3743
+ sizeMultiplier: { type: 'number' },
3744
3744
  activeMinColor: { type: 'string' },
3745
3745
  activeMaxColor: { type: 'string' },
3746
3746
  inactiveColor: { type: 'string' },
@@ -4046,7 +4046,7 @@ export const oldSchemas = [
4046
4046
  fontSize: { type: 'int' },
4047
4047
  x: { type: 'string' },
4048
4048
  y: { type: 'string' },
4049
- sizeMultiplier: { type: 'float' },
4049
+ sizeMultiplier: { type: 'number' },
4050
4050
  activeMinColor: { type: 'string' },
4051
4051
  activeMaxColor: { type: 'string' },
4052
4052
  inactiveColor: { type: 'string' },