datatruck 0.36.7 → 0.37.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 +87 -79
  2. package/package.json +2 -2
@@ -689,6 +689,10 @@
689
689
  "keepAliveTimeout": {
690
690
  "type": "number"
691
691
  },
692
+ "contentLength": {
693
+ "default": true,
694
+ "type": "boolean"
695
+ },
692
696
  "allowlist": {
693
697
  "type": "object",
694
698
  "properties": {
@@ -755,11 +759,12 @@
755
759
  "enabled": {
756
760
  "type": "boolean"
757
761
  },
758
- "actions": {
759
- "type": "array",
760
- "items": {
761
- "$ref": "#/definitions/CronAction"
762
- }
762
+ "logPath": {
763
+ "default": "'/var/logs/datatruck'",
764
+ "type": [
765
+ "string",
766
+ "boolean"
767
+ ]
763
768
  }
764
769
  },
765
770
  "additionalProperties": false
@@ -767,6 +772,12 @@
767
772
  },
768
773
  "additionalProperties": false
769
774
  },
775
+ "jobs": {
776
+ "type": "object",
777
+ "additionalProperties": {
778
+ "$ref": "#/definitions/Job"
779
+ }
780
+ },
770
781
  "reports": {
771
782
  "type": "array",
772
783
  "items": {
@@ -1654,12 +1665,46 @@
1654
1665
  }
1655
1666
  ]
1656
1667
  },
1657
- "CronAction": {
1668
+ "Job": {
1658
1669
  "anyOf": [
1659
1670
  {
1660
1671
  "additionalProperties": false,
1661
1672
  "type": "object",
1662
1673
  "properties": {
1674
+ "action": {
1675
+ "type": "string",
1676
+ "const": "backup"
1677
+ },
1678
+ "options": {
1679
+ "type": "object",
1680
+ "properties": {
1681
+ "package": {
1682
+ "type": "string"
1683
+ },
1684
+ "packageTask": {
1685
+ "type": "string"
1686
+ },
1687
+ "repository": {
1688
+ "type": "string"
1689
+ },
1690
+ "repositoryType": {
1691
+ "type": "string"
1692
+ },
1693
+ "tag": {
1694
+ "type": "string"
1695
+ },
1696
+ "dryRun": {
1697
+ "type": "boolean"
1698
+ },
1699
+ "date": {
1700
+ "type": "string"
1701
+ },
1702
+ "prune": {
1703
+ "type": "boolean"
1704
+ }
1705
+ },
1706
+ "additionalProperties": false
1707
+ },
1663
1708
  "schedule": {
1664
1709
  "anyOf": [
1665
1710
  {
@@ -1767,52 +1812,48 @@
1767
1812
  "type": "string"
1768
1813
  }
1769
1814
  ]
1770
- },
1771
- "name": {
1815
+ }
1816
+ },
1817
+ "required": [
1818
+ "action",
1819
+ "options"
1820
+ ]
1821
+ },
1822
+ {
1823
+ "additionalProperties": false,
1824
+ "type": "object",
1825
+ "properties": {
1826
+ "action": {
1772
1827
  "type": "string",
1773
- "const": "backup"
1828
+ "const": "copy"
1774
1829
  },
1775
1830
  "options": {
1776
1831
  "type": "object",
1777
1832
  "properties": {
1778
- "package": {
1833
+ "id": {
1779
1834
  "type": "string"
1780
1835
  },
1781
- "packageTask": {
1782
- "type": "string"
1836
+ "last": {
1837
+ "type": "number"
1783
1838
  },
1784
- "repository": {
1839
+ "package": {
1785
1840
  "type": "string"
1786
1841
  },
1787
- "repositoryType": {
1842
+ "packageTask": {
1788
1843
  "type": "string"
1789
1844
  },
1790
- "tag": {
1845
+ "repository": {
1791
1846
  "type": "string"
1792
1847
  },
1793
- "dryRun": {
1794
- "type": "boolean"
1795
- },
1796
- "date": {
1848
+ "repository2": {
1797
1849
  "type": "string"
1798
- },
1799
- "prune": {
1800
- "type": "boolean"
1801
1850
  }
1802
1851
  },
1803
- "additionalProperties": false
1804
- }
1805
- },
1806
- "required": [
1807
- "name",
1808
- "options",
1809
- "schedule"
1810
- ]
1811
- },
1812
- {
1813
- "additionalProperties": false,
1814
- "type": "object",
1815
- "properties": {
1852
+ "additionalProperties": false,
1853
+ "required": [
1854
+ "repository"
1855
+ ]
1856
+ },
1816
1857
  "schedule": {
1817
1858
  "anyOf": [
1818
1859
  {
@@ -1920,49 +1961,24 @@
1920
1961
  "type": "string"
1921
1962
  }
1922
1963
  ]
1923
- },
1924
- "name": {
1925
- "type": "string",
1926
- "const": "copy"
1927
- },
1928
- "options": {
1929
- "type": "object",
1930
- "properties": {
1931
- "id": {
1932
- "type": "string"
1933
- },
1934
- "last": {
1935
- "type": "number"
1936
- },
1937
- "package": {
1938
- "type": "string"
1939
- },
1940
- "packageTask": {
1941
- "type": "string"
1942
- },
1943
- "repository": {
1944
- "type": "string"
1945
- },
1946
- "repository2": {
1947
- "type": "string"
1948
- }
1949
- },
1950
- "additionalProperties": false,
1951
- "required": [
1952
- "repository"
1953
- ]
1954
1964
  }
1955
1965
  },
1956
1966
  "required": [
1957
- "name",
1958
- "options",
1959
- "schedule"
1967
+ "action",
1968
+ "options"
1960
1969
  ]
1961
1970
  },
1962
1971
  {
1963
1972
  "additionalProperties": false,
1964
1973
  "type": "object",
1965
1974
  "properties": {
1975
+ "action": {
1976
+ "type": "string",
1977
+ "const": "prune"
1978
+ },
1979
+ "options": {
1980
+ "$ref": "#/definitions/Omit<PruneCommandOptions,\"confirm\">"
1981
+ },
1966
1982
  "schedule": {
1967
1983
  "anyOf": [
1968
1984
  {
@@ -2070,19 +2086,11 @@
2070
2086
  "type": "string"
2071
2087
  }
2072
2088
  ]
2073
- },
2074
- "name": {
2075
- "type": "string",
2076
- "const": "prune"
2077
- },
2078
- "options": {
2079
- "$ref": "#/definitions/Omit<PruneCommandOptions,\"confirm\">"
2080
2089
  }
2081
2090
  },
2082
2091
  "required": [
2083
- "name",
2084
- "options",
2085
- "schedule"
2092
+ "action",
2093
+ "options"
2086
2094
  ]
2087
2095
  }
2088
2096
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datatruck",
3
- "version": "0.36.7",
3
+ "version": "0.37.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.36.7"
29
+ "@datatruck/cli": "0.37.0"
30
30
  },
31
31
  "engine": {
32
32
  "node": ">=20.0.0"