datatruck 0.34.0 → 0.34.2

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 (2) hide show
  1. package/config.schema.json +337 -72
  2. package/package.json +2 -2
@@ -102,7 +102,11 @@
102
102
  "additionalProperties": false
103
103
  }
104
104
  },
105
- "additionalProperties": false
105
+ "additionalProperties": false,
106
+ "required": [
107
+ "config",
108
+ "name"
109
+ ]
106
110
  },
107
111
  {
108
112
  "type": "object",
@@ -132,7 +136,10 @@
132
136
  "type": "string"
133
137
  }
134
138
  },
135
- "additionalProperties": false
139
+ "additionalProperties": false,
140
+ "required": [
141
+ "path"
142
+ ]
136
143
  },
137
144
  {
138
145
  "type": "string"
@@ -190,7 +197,10 @@
190
197
  }
191
198
  }
192
199
  },
193
- "additionalProperties": false
200
+ "additionalProperties": false,
201
+ "required": [
202
+ "command"
203
+ ]
194
204
  },
195
205
  {
196
206
  "type": "object",
@@ -209,15 +219,27 @@
209
219
  }
210
220
  }
211
221
  },
212
- "additionalProperties": false
222
+ "additionalProperties": false,
223
+ "required": [
224
+ "type"
225
+ ]
213
226
  }
214
227
  ]
215
228
  }
216
229
  },
217
- "additionalProperties": false
230
+ "additionalProperties": false,
231
+ "required": [
232
+ "hostname",
233
+ "password",
234
+ "username"
235
+ ]
218
236
  }
219
237
  },
220
- "additionalProperties": false
238
+ "additionalProperties": false,
239
+ "required": [
240
+ "config",
241
+ "name"
242
+ ]
221
243
  },
222
244
  {
223
245
  "type": "object",
@@ -260,7 +282,11 @@
260
282
  "additionalProperties": false
261
283
  }
262
284
  },
263
- "additionalProperties": false
285
+ "additionalProperties": false,
286
+ "required": [
287
+ "config",
288
+ "name"
289
+ ]
264
290
  },
265
291
  {
266
292
  "type": "object",
@@ -273,7 +299,11 @@
273
299
  "$ref": "#/definitions/MysqlDumpTaskConfig"
274
300
  }
275
301
  },
276
- "additionalProperties": false
302
+ "additionalProperties": false,
303
+ "required": [
304
+ "config",
305
+ "name"
306
+ ]
277
307
  },
278
308
  {
279
309
  "type": "object",
@@ -294,7 +324,10 @@
294
324
  "type": "string"
295
325
  }
296
326
  },
297
- "additionalProperties": false
327
+ "additionalProperties": false,
328
+ "required": [
329
+ "path"
330
+ ]
298
331
  },
299
332
  {
300
333
  "type": "string"
@@ -330,7 +363,10 @@
330
363
  "type": "string"
331
364
  }
332
365
  },
333
- "additionalProperties": false
366
+ "additionalProperties": false,
367
+ "required": [
368
+ "name"
369
+ ]
334
370
  },
335
371
  "includeTables": {
336
372
  "type": "array",
@@ -348,10 +384,20 @@
348
384
  "type": "boolean"
349
385
  }
350
386
  },
351
- "additionalProperties": false
387
+ "additionalProperties": false,
388
+ "required": [
389
+ "database",
390
+ "hostname",
391
+ "password",
392
+ "username"
393
+ ]
352
394
  }
353
395
  },
354
- "additionalProperties": false
396
+ "additionalProperties": false,
397
+ "required": [
398
+ "config",
399
+ "name"
400
+ ]
355
401
  },
356
402
  {
357
403
  "type": "object",
@@ -382,10 +428,18 @@
382
428
  }
383
429
  }
384
430
  },
385
- "additionalProperties": false
431
+ "additionalProperties": false,
432
+ "required": [
433
+ "backupSteps",
434
+ "restoreSteps"
435
+ ]
386
436
  }
387
437
  },
388
- "additionalProperties": false
438
+ "additionalProperties": false,
439
+ "required": [
440
+ "config",
441
+ "name"
442
+ ]
389
443
  }
390
444
  ]
391
445
  },
@@ -415,7 +469,11 @@
415
469
  ]
416
470
  }
417
471
  },
418
- "additionalProperties": false
472
+ "additionalProperties": false,
473
+ "required": [
474
+ "gid",
475
+ "uid"
476
+ ]
419
477
  },
420
478
  "include": {
421
479
  "type": "array",
@@ -432,7 +490,11 @@
432
490
  "$ref": "#/definitions/ProcessStepConfig"
433
491
  }
434
492
  },
435
- "additionalProperties": false
493
+ "additionalProperties": false,
494
+ "required": [
495
+ "config",
496
+ "type"
497
+ ]
436
498
  },
437
499
  {
438
500
  "type": "object",
@@ -445,7 +507,11 @@
445
507
  "$ref": "#/definitions/NodeStepConfig"
446
508
  }
447
509
  },
448
- "additionalProperties": false
510
+ "additionalProperties": false,
511
+ "required": [
512
+ "config",
513
+ "type"
514
+ ]
449
515
  },
450
516
  {
451
517
  "type": "string"
@@ -468,7 +534,11 @@
468
534
  "$ref": "#/definitions/ProcessStepConfig"
469
535
  }
470
536
  },
471
- "additionalProperties": false
537
+ "additionalProperties": false,
538
+ "required": [
539
+ "config",
540
+ "type"
541
+ ]
472
542
  },
473
543
  {
474
544
  "type": "object",
@@ -481,7 +551,11 @@
481
551
  "$ref": "#/definitions/NodeStepConfig"
482
552
  }
483
553
  },
484
- "additionalProperties": false
554
+ "additionalProperties": false,
555
+ "required": [
556
+ "config",
557
+ "type"
558
+ ]
485
559
  },
486
560
  {
487
561
  "type": "string"
@@ -505,7 +579,10 @@
505
579
  }
506
580
  }
507
581
  },
508
- "additionalProperties": false
582
+ "additionalProperties": false,
583
+ "required": [
584
+ "name"
585
+ ]
509
586
  }
510
587
  },
511
588
  "server": {
@@ -541,7 +618,10 @@
541
618
  "type": "string"
542
619
  }
543
620
  },
544
- "additionalProperties": false
621
+ "additionalProperties": false,
622
+ "required": [
623
+ "remoteAddressHeader"
624
+ ]
545
625
  },
546
626
  {
547
627
  "const": true,
@@ -591,11 +671,19 @@
591
671
  "type": "string"
592
672
  }
593
673
  },
594
- "additionalProperties": false
674
+ "additionalProperties": false,
675
+ "required": [
676
+ "name",
677
+ "password"
678
+ ]
595
679
  }
596
680
  }
597
681
  },
598
- "additionalProperties": false
682
+ "additionalProperties": false,
683
+ "required": [
684
+ "name",
685
+ "path"
686
+ ]
599
687
  }
600
688
  }
601
689
  },
@@ -654,7 +742,11 @@
654
742
  "$ref": "#/definitions/ProcessStepConfig"
655
743
  }
656
744
  },
657
- "additionalProperties": false
745
+ "additionalProperties": false,
746
+ "required": [
747
+ "config",
748
+ "type"
749
+ ]
658
750
  },
659
751
  {
660
752
  "type": "object",
@@ -667,7 +759,11 @@
667
759
  "$ref": "#/definitions/NodeStepConfig"
668
760
  }
669
761
  },
670
- "additionalProperties": false
762
+ "additionalProperties": false,
763
+ "required": [
764
+ "config",
765
+ "type"
766
+ ]
671
767
  },
672
768
  {
673
769
  "type": "object",
@@ -686,10 +782,18 @@
686
782
  "type": "number"
687
783
  }
688
784
  },
689
- "additionalProperties": false
785
+ "additionalProperties": false,
786
+ "required": [
787
+ "bot",
788
+ "chatId"
789
+ ]
690
790
  }
691
791
  },
692
- "additionalProperties": false
792
+ "additionalProperties": false,
793
+ "required": [
794
+ "config",
795
+ "type"
796
+ ]
693
797
  },
694
798
  {
695
799
  "type": "object",
@@ -708,15 +812,25 @@
708
812
  "type": "string"
709
813
  }
710
814
  },
711
- "additionalProperties": false
815
+ "additionalProperties": false,
816
+ "required": [
817
+ "token"
818
+ ]
712
819
  }
713
820
  },
714
- "additionalProperties": false
821
+ "additionalProperties": false,
822
+ "required": [
823
+ "config",
824
+ "type"
825
+ ]
715
826
  }
716
827
  ]
717
828
  }
718
829
  },
719
- "additionalProperties": false
830
+ "additionalProperties": false,
831
+ "required": [
832
+ "run"
833
+ ]
720
834
  }
721
835
  },
722
836
  "prunePolicy": {
@@ -724,6 +838,10 @@
724
838
  }
725
839
  },
726
840
  "additionalProperties": false,
841
+ "required": [
842
+ "packages",
843
+ "repositories"
844
+ ],
727
845
  "definitions": {
728
846
  "RepositoryConfig": {
729
847
  "anyOf": [
@@ -766,7 +884,10 @@
766
884
  "type": "string"
767
885
  }
768
886
  },
769
- "additionalProperties": false
887
+ "additionalProperties": false,
888
+ "required": [
889
+ "path"
890
+ ]
770
891
  },
771
892
  {
772
893
  "type": "string"
@@ -777,9 +898,18 @@
777
898
  "$ref": "#/definitions/ResticRepositoryUri"
778
899
  }
779
900
  },
780
- "additionalProperties": false
901
+ "additionalProperties": false,
902
+ "required": [
903
+ "password",
904
+ "repository"
905
+ ]
781
906
  }
782
- }
907
+ },
908
+ "required": [
909
+ "config",
910
+ "name",
911
+ "type"
912
+ ]
783
913
  },
784
914
  {
785
915
  "additionalProperties": false,
@@ -831,7 +961,10 @@
831
961
  "type": "number"
832
962
  }
833
963
  },
834
- "additionalProperties": false
964
+ "additionalProperties": false,
965
+ "required": [
966
+ "percent"
967
+ ]
835
968
  },
836
969
  {
837
970
  "type": "number"
@@ -847,9 +980,17 @@
847
980
  ]
848
981
  }
849
982
  },
850
- "additionalProperties": false
983
+ "additionalProperties": false,
984
+ "required": [
985
+ "backend"
986
+ ]
851
987
  }
852
- }
988
+ },
989
+ "required": [
990
+ "config",
991
+ "name",
992
+ "type"
993
+ ]
853
994
  },
854
995
  {
855
996
  "additionalProperties": false,
@@ -888,9 +1029,17 @@
888
1029
  "type": "string"
889
1030
  }
890
1031
  },
891
- "additionalProperties": false
1032
+ "additionalProperties": false,
1033
+ "required": [
1034
+ "repo"
1035
+ ]
892
1036
  }
893
- }
1037
+ },
1038
+ "required": [
1039
+ "config",
1040
+ "name",
1041
+ "type"
1042
+ ]
894
1043
  }
895
1044
  ]
896
1045
  },
@@ -940,7 +1089,10 @@
940
1089
  "type": "string"
941
1090
  }
942
1091
  },
943
- "additionalProperties": false
1092
+ "additionalProperties": false,
1093
+ "required": [
1094
+ "path"
1095
+ ]
944
1096
  },
945
1097
  {
946
1098
  "type": "string"
@@ -978,7 +1130,10 @@
978
1130
  ],
979
1131
  "type": "string"
980
1132
  }
981
- }
1133
+ },
1134
+ "required": [
1135
+ "backend"
1136
+ ]
982
1137
  },
983
1138
  "MysqlDumpTaskConfig": {
984
1139
  "additionalProperties": false,
@@ -1016,7 +1171,10 @@
1016
1171
  "type": "number"
1017
1172
  }
1018
1173
  },
1019
- "additionalProperties": false
1174
+ "additionalProperties": false,
1175
+ "required": [
1176
+ "percent"
1177
+ ]
1020
1178
  },
1021
1179
  {
1022
1180
  "type": "number"
@@ -1040,7 +1198,10 @@
1040
1198
  "type": "string"
1041
1199
  }
1042
1200
  },
1043
- "additionalProperties": false
1201
+ "additionalProperties": false,
1202
+ "required": [
1203
+ "path"
1204
+ ]
1044
1205
  },
1045
1206
  {
1046
1207
  "type": "string"
@@ -1076,7 +1237,10 @@
1076
1237
  "type": "string"
1077
1238
  }
1078
1239
  },
1079
- "additionalProperties": false
1240
+ "additionalProperties": false,
1241
+ "required": [
1242
+ "name"
1243
+ ]
1080
1244
  },
1081
1245
  "includeTables": {
1082
1246
  "type": "array",
@@ -1093,7 +1257,13 @@
1093
1257
  "oneFileByTable": {
1094
1258
  "type": "boolean"
1095
1259
  }
1096
- }
1260
+ },
1261
+ "required": [
1262
+ "database",
1263
+ "hostname",
1264
+ "password",
1265
+ "username"
1266
+ ]
1097
1267
  },
1098
1268
  "SpawnStep": {
1099
1269
  "anyOf": [
@@ -1108,7 +1278,11 @@
1108
1278
  "$ref": "#/definitions/ProcessStepConfig"
1109
1279
  }
1110
1280
  },
1111
- "additionalProperties": false
1281
+ "additionalProperties": false,
1282
+ "required": [
1283
+ "config",
1284
+ "type"
1285
+ ]
1112
1286
  },
1113
1287
  {
1114
1288
  "type": "object",
@@ -1121,7 +1295,11 @@
1121
1295
  "$ref": "#/definitions/NodeStepConfig"
1122
1296
  }
1123
1297
  },
1124
- "additionalProperties": false
1298
+ "additionalProperties": false,
1299
+ "required": [
1300
+ "config",
1301
+ "type"
1302
+ ]
1125
1303
  }
1126
1304
  ]
1127
1305
  },
@@ -1151,7 +1329,10 @@
1151
1329
  "command": {
1152
1330
  "type": "string"
1153
1331
  }
1154
- }
1332
+ },
1333
+ "required": [
1334
+ "command"
1335
+ ]
1155
1336
  },
1156
1337
  "NodeStepConfig": {
1157
1338
  "additionalProperties": false,
@@ -1189,7 +1370,10 @@
1189
1370
  }
1190
1371
  ]
1191
1372
  }
1192
- }
1373
+ },
1374
+ "required": [
1375
+ "code"
1376
+ ]
1193
1377
  },
1194
1378
  "DatatruckPolicyConfig": {
1195
1379
  "type": "object",
@@ -1255,7 +1439,11 @@
1255
1439
  "type": "object",
1256
1440
  "properties": {}
1257
1441
  }
1258
- }
1442
+ },
1443
+ "required": [
1444
+ "config",
1445
+ "type"
1446
+ ]
1259
1447
  },
1260
1448
  {
1261
1449
  "additionalProperties": false,
@@ -1291,7 +1479,10 @@
1291
1479
  "type": "number"
1292
1480
  }
1293
1481
  },
1294
- "additionalProperties": false
1482
+ "additionalProperties": false,
1483
+ "required": [
1484
+ "percent"
1485
+ ]
1295
1486
  },
1296
1487
  {
1297
1488
  "type": "number"
@@ -1331,7 +1522,10 @@
1331
1522
  "type": "number"
1332
1523
  }
1333
1524
  },
1334
- "additionalProperties": false
1525
+ "additionalProperties": false,
1526
+ "required": [
1527
+ "percent"
1528
+ ]
1335
1529
  },
1336
1530
  {
1337
1531
  "type": "number"
@@ -1368,7 +1562,11 @@
1368
1562
  },
1369
1563
  "additionalProperties": false
1370
1564
  }
1371
- }
1565
+ },
1566
+ "required": [
1567
+ "config",
1568
+ "type"
1569
+ ]
1372
1570
  },
1373
1571
  {
1374
1572
  "additionalProperties": false,
@@ -1388,7 +1586,11 @@
1388
1586
  "type": "object",
1389
1587
  "properties": {}
1390
1588
  }
1391
- }
1589
+ },
1590
+ "required": [
1591
+ "config",
1592
+ "type"
1593
+ ]
1392
1594
  }
1393
1595
  ]
1394
1596
  },
@@ -1412,7 +1614,10 @@
1412
1614
  "type": "number"
1413
1615
  }
1414
1616
  },
1415
- "additionalProperties": false
1617
+ "additionalProperties": false,
1618
+ "required": [
1619
+ "each"
1620
+ ]
1416
1621
  },
1417
1622
  {
1418
1623
  "type": "number"
@@ -1428,7 +1633,10 @@
1428
1633
  "type": "number"
1429
1634
  }
1430
1635
  },
1431
- "additionalProperties": false
1636
+ "additionalProperties": false,
1637
+ "required": [
1638
+ "each"
1639
+ ]
1432
1640
  },
1433
1641
  {
1434
1642
  "type": "number"
@@ -1444,7 +1652,10 @@
1444
1652
  "type": "number"
1445
1653
  }
1446
1654
  },
1447
- "additionalProperties": false
1655
+ "additionalProperties": false,
1656
+ "required": [
1657
+ "each"
1658
+ ]
1448
1659
  },
1449
1660
  {
1450
1661
  "type": "number"
@@ -1460,7 +1671,10 @@
1460
1671
  "type": "number"
1461
1672
  }
1462
1673
  },
1463
- "additionalProperties": false
1674
+ "additionalProperties": false,
1675
+ "required": [
1676
+ "each"
1677
+ ]
1464
1678
  },
1465
1679
  {
1466
1680
  "type": "number"
@@ -1476,7 +1690,10 @@
1476
1690
  "type": "number"
1477
1691
  }
1478
1692
  },
1479
- "additionalProperties": false
1693
+ "additionalProperties": false,
1694
+ "required": [
1695
+ "each"
1696
+ ]
1480
1697
  },
1481
1698
  {
1482
1699
  "type": "number"
@@ -1525,7 +1742,12 @@
1525
1742
  },
1526
1743
  "additionalProperties": false
1527
1744
  }
1528
- }
1745
+ },
1746
+ "required": [
1747
+ "name",
1748
+ "options",
1749
+ "schedule"
1750
+ ]
1529
1751
  },
1530
1752
  {
1531
1753
  "additionalProperties": false,
@@ -1545,7 +1767,10 @@
1545
1767
  "type": "number"
1546
1768
  }
1547
1769
  },
1548
- "additionalProperties": false
1770
+ "additionalProperties": false,
1771
+ "required": [
1772
+ "each"
1773
+ ]
1549
1774
  },
1550
1775
  {
1551
1776
  "type": "number"
@@ -1561,7 +1786,10 @@
1561
1786
  "type": "number"
1562
1787
  }
1563
1788
  },
1564
- "additionalProperties": false
1789
+ "additionalProperties": false,
1790
+ "required": [
1791
+ "each"
1792
+ ]
1565
1793
  },
1566
1794
  {
1567
1795
  "type": "number"
@@ -1577,7 +1805,10 @@
1577
1805
  "type": "number"
1578
1806
  }
1579
1807
  },
1580
- "additionalProperties": false
1808
+ "additionalProperties": false,
1809
+ "required": [
1810
+ "each"
1811
+ ]
1581
1812
  },
1582
1813
  {
1583
1814
  "type": "number"
@@ -1593,7 +1824,10 @@
1593
1824
  "type": "number"
1594
1825
  }
1595
1826
  },
1596
- "additionalProperties": false
1827
+ "additionalProperties": false,
1828
+ "required": [
1829
+ "each"
1830
+ ]
1597
1831
  },
1598
1832
  {
1599
1833
  "type": "number"
@@ -1609,7 +1843,10 @@
1609
1843
  "type": "number"
1610
1844
  }
1611
1845
  },
1612
- "additionalProperties": false
1846
+ "additionalProperties": false,
1847
+ "required": [
1848
+ "each"
1849
+ ]
1613
1850
  },
1614
1851
  {
1615
1852
  "type": "number"
@@ -1650,9 +1887,17 @@
1650
1887
  "type": "string"
1651
1888
  }
1652
1889
  },
1653
- "additionalProperties": false
1890
+ "additionalProperties": false,
1891
+ "required": [
1892
+ "repository"
1893
+ ]
1654
1894
  }
1655
- }
1895
+ },
1896
+ "required": [
1897
+ "name",
1898
+ "options",
1899
+ "schedule"
1900
+ ]
1656
1901
  },
1657
1902
  {
1658
1903
  "additionalProperties": false,
@@ -1672,7 +1917,10 @@
1672
1917
  "type": "number"
1673
1918
  }
1674
1919
  },
1675
- "additionalProperties": false
1920
+ "additionalProperties": false,
1921
+ "required": [
1922
+ "each"
1923
+ ]
1676
1924
  },
1677
1925
  {
1678
1926
  "type": "number"
@@ -1688,7 +1936,10 @@
1688
1936
  "type": "number"
1689
1937
  }
1690
1938
  },
1691
- "additionalProperties": false
1939
+ "additionalProperties": false,
1940
+ "required": [
1941
+ "each"
1942
+ ]
1692
1943
  },
1693
1944
  {
1694
1945
  "type": "number"
@@ -1704,7 +1955,10 @@
1704
1955
  "type": "number"
1705
1956
  }
1706
1957
  },
1707
- "additionalProperties": false
1958
+ "additionalProperties": false,
1959
+ "required": [
1960
+ "each"
1961
+ ]
1708
1962
  },
1709
1963
  {
1710
1964
  "type": "number"
@@ -1720,7 +1974,10 @@
1720
1974
  "type": "number"
1721
1975
  }
1722
1976
  },
1723
- "additionalProperties": false
1977
+ "additionalProperties": false,
1978
+ "required": [
1979
+ "each"
1980
+ ]
1724
1981
  },
1725
1982
  {
1726
1983
  "type": "number"
@@ -1736,7 +1993,10 @@
1736
1993
  "type": "number"
1737
1994
  }
1738
1995
  },
1739
- "additionalProperties": false
1996
+ "additionalProperties": false,
1997
+ "required": [
1998
+ "each"
1999
+ ]
1740
2000
  },
1741
2001
  {
1742
2002
  "type": "number"
@@ -1758,7 +2018,12 @@
1758
2018
  "options": {
1759
2019
  "$ref": "#/definitions/PruneCommandOptions"
1760
2020
  }
1761
- }
2021
+ },
2022
+ "required": [
2023
+ "name",
2024
+ "options",
2025
+ "schedule"
2026
+ ]
1762
2027
  }
1763
2028
  ]
1764
2029
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datatruck",
3
- "version": "0.34.0",
3
+ "version": "0.34.2",
4
4
  "description": "Tool for creating and managing backups",
5
5
  "homepage": "https://github.com/swordev/datatruck#readme",
6
6
  "bugs": {
@@ -26,7 +26,7 @@
26
26
  "config.schema.json"
27
27
  ],
28
28
  "dependencies": {
29
- "@datatruck/cli": "0.34.0"
29
+ "@datatruck/cli": "0.34.2"
30
30
  },
31
31
  "engine": {
32
32
  "node": ">=20.0.0"