datatruck 0.32.3 → 0.34.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 (2) hide show
  1. package/config.schema.json +377 -31
  2. package/package.json +2 -2
@@ -4,6 +4,9 @@
4
4
  "$schema": {
5
5
  "type": "string"
6
6
  },
7
+ "hostname": {
8
+ "type": "string"
9
+ },
7
10
  "tempDir": {
8
11
  "type": "string"
9
12
  },
@@ -493,7 +496,7 @@
493
496
  }
494
497
  },
495
498
  "prunePolicy": {
496
- "$ref": "#/definitions/PrunePolicyConfig"
499
+ "$ref": "#/definitions/DatatruckPolicyConfig"
497
500
  },
498
501
  "repositoryConfigs": {
499
502
  "type": "array",
@@ -717,7 +720,7 @@
717
720
  }
718
721
  },
719
722
  "prunePolicy": {
720
- "$ref": "#/definitions/PrunePolicyConfig"
723
+ "$ref": "#/definitions/DatatruckPolicyConfig"
721
724
  }
722
725
  },
723
726
  "additionalProperties": false,
@@ -894,7 +897,7 @@
894
897
  "RepositoryEnabledObject": {
895
898
  "type": "object",
896
899
  "properties": {
897
- "snapshots": {
900
+ "backup": {
898
901
  "type": "boolean"
899
902
  },
900
903
  "init": {
@@ -903,10 +906,10 @@
903
906
  "prune": {
904
907
  "type": "boolean"
905
908
  },
906
- "backup": {
909
+ "restore": {
907
910
  "type": "boolean"
908
911
  },
909
- "restore": {
912
+ "snapshots": {
910
913
  "type": "boolean"
911
914
  },
912
915
  "defaults": {
@@ -959,21 +962,21 @@
959
962
  "path": {
960
963
  "type": "string"
961
964
  },
962
- "protocol": {
963
- "enum": [
964
- "http",
965
- "https"
966
- ],
965
+ "username": {
967
966
  "type": "string"
968
967
  },
969
968
  "host": {
970
969
  "type": "string"
971
970
  },
972
- "username": {
973
- "type": "string"
974
- },
975
971
  "port": {
976
972
  "type": "number"
973
+ },
974
+ "protocol": {
975
+ "enum": [
976
+ "http",
977
+ "https"
978
+ ],
979
+ "type": "string"
977
980
  }
978
981
  }
979
982
  },
@@ -1188,7 +1191,7 @@
1188
1191
  }
1189
1192
  }
1190
1193
  },
1191
- "PrunePolicyConfig": {
1194
+ "DatatruckPolicyConfig": {
1192
1195
  "type": "object",
1193
1196
  "properties": {
1194
1197
  "tags": {
@@ -1197,6 +1200,17 @@
1197
1200
  "type": "string"
1198
1201
  }
1199
1202
  },
1203
+ "groupBy": {
1204
+ "type": "array",
1205
+ "items": {
1206
+ "enum": [
1207
+ "packageName",
1208
+ "repositoryName",
1209
+ "repositoryType"
1210
+ ],
1211
+ "type": "string"
1212
+ }
1213
+ },
1200
1214
  "keepDaily": {
1201
1215
  "type": "number"
1202
1216
  },
@@ -1217,17 +1231,6 @@
1217
1231
  },
1218
1232
  "keepYearly": {
1219
1233
  "type": "number"
1220
- },
1221
- "groupBy": {
1222
- "type": "array",
1223
- "items": {
1224
- "enum": [
1225
- "packageName",
1226
- "repositoryName",
1227
- "repositoryType"
1228
- ],
1229
- "type": "string"
1230
- }
1231
1234
  }
1232
1235
  },
1233
1236
  "additionalProperties": false
@@ -1392,10 +1395,101 @@
1392
1395
  "CronAction": {
1393
1396
  "anyOf": [
1394
1397
  {
1398
+ "additionalProperties": false,
1395
1399
  "type": "object",
1396
1400
  "properties": {
1397
1401
  "schedule": {
1398
- "type": "string"
1402
+ "anyOf": [
1403
+ {
1404
+ "type": "object",
1405
+ "properties": {
1406
+ "minute": {
1407
+ "anyOf": [
1408
+ {
1409
+ "type": "object",
1410
+ "properties": {
1411
+ "each": {
1412
+ "type": "number"
1413
+ }
1414
+ },
1415
+ "additionalProperties": false
1416
+ },
1417
+ {
1418
+ "type": "number"
1419
+ }
1420
+ ]
1421
+ },
1422
+ "hour": {
1423
+ "anyOf": [
1424
+ {
1425
+ "type": "object",
1426
+ "properties": {
1427
+ "each": {
1428
+ "type": "number"
1429
+ }
1430
+ },
1431
+ "additionalProperties": false
1432
+ },
1433
+ {
1434
+ "type": "number"
1435
+ }
1436
+ ]
1437
+ },
1438
+ "day": {
1439
+ "anyOf": [
1440
+ {
1441
+ "type": "object",
1442
+ "properties": {
1443
+ "each": {
1444
+ "type": "number"
1445
+ }
1446
+ },
1447
+ "additionalProperties": false
1448
+ },
1449
+ {
1450
+ "type": "number"
1451
+ }
1452
+ ]
1453
+ },
1454
+ "month": {
1455
+ "anyOf": [
1456
+ {
1457
+ "type": "object",
1458
+ "properties": {
1459
+ "each": {
1460
+ "type": "number"
1461
+ }
1462
+ },
1463
+ "additionalProperties": false
1464
+ },
1465
+ {
1466
+ "type": "number"
1467
+ }
1468
+ ]
1469
+ },
1470
+ "weekDay": {
1471
+ "anyOf": [
1472
+ {
1473
+ "type": "object",
1474
+ "properties": {
1475
+ "each": {
1476
+ "type": "number"
1477
+ }
1478
+ },
1479
+ "additionalProperties": false
1480
+ },
1481
+ {
1482
+ "type": "number"
1483
+ }
1484
+ ]
1485
+ }
1486
+ },
1487
+ "additionalProperties": false
1488
+ },
1489
+ {
1490
+ "type": "string"
1491
+ }
1492
+ ]
1399
1493
  },
1400
1494
  "name": {
1401
1495
  "type": "string",
@@ -1431,14 +1525,104 @@
1431
1525
  },
1432
1526
  "additionalProperties": false
1433
1527
  }
1434
- },
1435
- "additionalProperties": false
1528
+ }
1436
1529
  },
1437
1530
  {
1531
+ "additionalProperties": false,
1438
1532
  "type": "object",
1439
1533
  "properties": {
1440
1534
  "schedule": {
1441
- "type": "string"
1535
+ "anyOf": [
1536
+ {
1537
+ "type": "object",
1538
+ "properties": {
1539
+ "minute": {
1540
+ "anyOf": [
1541
+ {
1542
+ "type": "object",
1543
+ "properties": {
1544
+ "each": {
1545
+ "type": "number"
1546
+ }
1547
+ },
1548
+ "additionalProperties": false
1549
+ },
1550
+ {
1551
+ "type": "number"
1552
+ }
1553
+ ]
1554
+ },
1555
+ "hour": {
1556
+ "anyOf": [
1557
+ {
1558
+ "type": "object",
1559
+ "properties": {
1560
+ "each": {
1561
+ "type": "number"
1562
+ }
1563
+ },
1564
+ "additionalProperties": false
1565
+ },
1566
+ {
1567
+ "type": "number"
1568
+ }
1569
+ ]
1570
+ },
1571
+ "day": {
1572
+ "anyOf": [
1573
+ {
1574
+ "type": "object",
1575
+ "properties": {
1576
+ "each": {
1577
+ "type": "number"
1578
+ }
1579
+ },
1580
+ "additionalProperties": false
1581
+ },
1582
+ {
1583
+ "type": "number"
1584
+ }
1585
+ ]
1586
+ },
1587
+ "month": {
1588
+ "anyOf": [
1589
+ {
1590
+ "type": "object",
1591
+ "properties": {
1592
+ "each": {
1593
+ "type": "number"
1594
+ }
1595
+ },
1596
+ "additionalProperties": false
1597
+ },
1598
+ {
1599
+ "type": "number"
1600
+ }
1601
+ ]
1602
+ },
1603
+ "weekDay": {
1604
+ "anyOf": [
1605
+ {
1606
+ "type": "object",
1607
+ "properties": {
1608
+ "each": {
1609
+ "type": "number"
1610
+ }
1611
+ },
1612
+ "additionalProperties": false
1613
+ },
1614
+ {
1615
+ "type": "number"
1616
+ }
1617
+ ]
1618
+ }
1619
+ },
1620
+ "additionalProperties": false
1621
+ },
1622
+ {
1623
+ "type": "string"
1624
+ }
1625
+ ]
1442
1626
  },
1443
1627
  "name": {
1444
1628
  "type": "string",
@@ -1468,10 +1652,172 @@
1468
1652
  },
1469
1653
  "additionalProperties": false
1470
1654
  }
1471
- },
1472
- "additionalProperties": false
1655
+ }
1656
+ },
1657
+ {
1658
+ "additionalProperties": false,
1659
+ "type": "object",
1660
+ "properties": {
1661
+ "schedule": {
1662
+ "anyOf": [
1663
+ {
1664
+ "type": "object",
1665
+ "properties": {
1666
+ "minute": {
1667
+ "anyOf": [
1668
+ {
1669
+ "type": "object",
1670
+ "properties": {
1671
+ "each": {
1672
+ "type": "number"
1673
+ }
1674
+ },
1675
+ "additionalProperties": false
1676
+ },
1677
+ {
1678
+ "type": "number"
1679
+ }
1680
+ ]
1681
+ },
1682
+ "hour": {
1683
+ "anyOf": [
1684
+ {
1685
+ "type": "object",
1686
+ "properties": {
1687
+ "each": {
1688
+ "type": "number"
1689
+ }
1690
+ },
1691
+ "additionalProperties": false
1692
+ },
1693
+ {
1694
+ "type": "number"
1695
+ }
1696
+ ]
1697
+ },
1698
+ "day": {
1699
+ "anyOf": [
1700
+ {
1701
+ "type": "object",
1702
+ "properties": {
1703
+ "each": {
1704
+ "type": "number"
1705
+ }
1706
+ },
1707
+ "additionalProperties": false
1708
+ },
1709
+ {
1710
+ "type": "number"
1711
+ }
1712
+ ]
1713
+ },
1714
+ "month": {
1715
+ "anyOf": [
1716
+ {
1717
+ "type": "object",
1718
+ "properties": {
1719
+ "each": {
1720
+ "type": "number"
1721
+ }
1722
+ },
1723
+ "additionalProperties": false
1724
+ },
1725
+ {
1726
+ "type": "number"
1727
+ }
1728
+ ]
1729
+ },
1730
+ "weekDay": {
1731
+ "anyOf": [
1732
+ {
1733
+ "type": "object",
1734
+ "properties": {
1735
+ "each": {
1736
+ "type": "number"
1737
+ }
1738
+ },
1739
+ "additionalProperties": false
1740
+ },
1741
+ {
1742
+ "type": "number"
1743
+ }
1744
+ ]
1745
+ }
1746
+ },
1747
+ "additionalProperties": false
1748
+ },
1749
+ {
1750
+ "type": "string"
1751
+ }
1752
+ ]
1753
+ },
1754
+ "name": {
1755
+ "type": "string",
1756
+ "const": "prune"
1757
+ },
1758
+ "options": {
1759
+ "$ref": "#/definitions/PruneCommandOptions"
1760
+ }
1761
+ }
1473
1762
  }
1474
1763
  ]
1764
+ },
1765
+ "PruneCommandOptions": {
1766
+ "additionalProperties": false,
1767
+ "type": "object",
1768
+ "properties": {
1769
+ "keepLast": {
1770
+ "type": "number"
1771
+ },
1772
+ "keepMinutely": {
1773
+ "type": "number"
1774
+ },
1775
+ "keepHourly": {
1776
+ "type": "number"
1777
+ },
1778
+ "keepDaily": {
1779
+ "type": "number"
1780
+ },
1781
+ "keepWeekly": {
1782
+ "type": "number"
1783
+ },
1784
+ "keepMonthly": {
1785
+ "type": "number"
1786
+ },
1787
+ "keepYearly": {
1788
+ "type": "number"
1789
+ },
1790
+ "id": {
1791
+ "type": "string"
1792
+ },
1793
+ "longId": {
1794
+ "type": "boolean"
1795
+ },
1796
+ "package": {
1797
+ "type": "string"
1798
+ },
1799
+ "repository": {
1800
+ "type": "string"
1801
+ },
1802
+ "repositoryType": {
1803
+ "type": "string"
1804
+ },
1805
+ "tag": {
1806
+ "type": "string"
1807
+ },
1808
+ "groupBy": {
1809
+ "type": "string"
1810
+ },
1811
+ "dryRun": {
1812
+ "type": "boolean"
1813
+ },
1814
+ "showAll": {
1815
+ "type": "boolean"
1816
+ },
1817
+ "confirm": {
1818
+ "type": "boolean"
1819
+ }
1820
+ }
1475
1821
  }
1476
1822
  },
1477
1823
  "$schema": "http://json-schema.org/draft-07/schema#"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datatruck",
3
- "version": "0.32.3",
3
+ "version": "0.34.0",
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.32.3"
29
+ "@datatruck/cli": "0.34.0"
30
30
  },
31
31
  "engine": {
32
32
  "node": ">=20.0.0"