datatruck 0.37.0 → 0.38.1

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 +130 -74
  2. package/package.json +2 -2
@@ -1466,13 +1466,13 @@
1466
1466
  "type": "string"
1467
1467
  }
1468
1468
  },
1469
- "keepDaily": {
1469
+ "keepMinutely": {
1470
1470
  "type": "number"
1471
1471
  },
1472
- "keepHourly": {
1472
+ "keepDaily": {
1473
1473
  "type": "number"
1474
1474
  },
1475
- "keepMinutely": {
1475
+ "keepHourly": {
1476
1476
  "type": "number"
1477
1477
  },
1478
1478
  "keepLast": {
@@ -1676,34 +1676,7 @@
1676
1676
  "const": "backup"
1677
1677
  },
1678
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
1679
+ "$ref": "#/definitions/BackupCommandOptions"
1707
1680
  },
1708
1681
  "schedule": {
1709
1682
  "anyOf": [
@@ -1828,31 +1801,7 @@
1828
1801
  "const": "copy"
1829
1802
  },
1830
1803
  "options": {
1831
- "type": "object",
1832
- "properties": {
1833
- "id": {
1834
- "type": "string"
1835
- },
1836
- "last": {
1837
- "type": "number"
1838
- },
1839
- "package": {
1840
- "type": "string"
1841
- },
1842
- "packageTask": {
1843
- "type": "string"
1844
- },
1845
- "repository": {
1846
- "type": "string"
1847
- },
1848
- "repository2": {
1849
- "type": "string"
1850
- }
1851
- },
1852
- "additionalProperties": false,
1853
- "required": [
1854
- "repository"
1855
- ]
1804
+ "$ref": "#/definitions/CopyCommandOptions"
1856
1805
  },
1857
1806
  "schedule": {
1858
1807
  "anyOf": [
@@ -2095,31 +2044,147 @@
2095
2044
  }
2096
2045
  ]
2097
2046
  },
2098
- "Omit<PruneCommandOptions,\"confirm\">": {
2047
+ "BackupCommandOptions": {
2048
+ "additionalProperties": false,
2099
2049
  "type": "object",
2100
2050
  "properties": {
2101
- "repository": {
2102
- "type": "string"
2051
+ "dryRun": {
2052
+ "type": "boolean"
2103
2053
  },
2104
- "repositoryType": {
2054
+ "date": {
2105
2055
  "type": "string"
2106
2056
  },
2107
- "id": {
2057
+ "prune": {
2058
+ "type": "boolean"
2059
+ },
2060
+ "repositoryNames": {
2061
+ "type": "array",
2062
+ "items": {
2063
+ "type": "string"
2064
+ }
2065
+ },
2066
+ "repositoryTypes": {
2067
+ "type": "array",
2068
+ "items": {
2069
+ "type": "string"
2070
+ }
2071
+ },
2072
+ "packageNames": {
2073
+ "type": "array",
2074
+ "items": {
2075
+ "type": "string"
2076
+ }
2077
+ },
2078
+ "packageTaskNames": {
2079
+ "type": "array",
2080
+ "items": {
2081
+ "type": "string"
2082
+ }
2083
+ },
2084
+ "tags": {
2085
+ "type": "array",
2086
+ "items": {
2087
+ "type": "string"
2088
+ }
2089
+ }
2090
+ }
2091
+ },
2092
+ "CopyCommandOptions": {
2093
+ "additionalProperties": false,
2094
+ "type": "object",
2095
+ "properties": {
2096
+ "repositoryName": {
2108
2097
  "type": "string"
2109
2098
  },
2099
+ "repositoryNames2": {
2100
+ "type": "array",
2101
+ "items": {
2102
+ "type": "string"
2103
+ }
2104
+ },
2105
+ "packageNames": {
2106
+ "type": "array",
2107
+ "items": {
2108
+ "type": "string"
2109
+ }
2110
+ },
2111
+ "packageTaskNames": {
2112
+ "type": "array",
2113
+ "items": {
2114
+ "type": "string"
2115
+ }
2116
+ },
2117
+ "ids": {
2118
+ "type": "array",
2119
+ "items": {
2120
+ "type": "string"
2121
+ }
2122
+ },
2123
+ "last": {
2124
+ "type": "number"
2125
+ }
2126
+ },
2127
+ "required": [
2128
+ "repositoryName"
2129
+ ]
2130
+ },
2131
+ "Omit<PruneCommandOptions,\"confirm\">": {
2132
+ "type": "object",
2133
+ "properties": {
2134
+ "tags": {
2135
+ "type": "array",
2136
+ "items": {
2137
+ "type": "string"
2138
+ }
2139
+ },
2140
+ "ids": {
2141
+ "type": "array",
2142
+ "items": {
2143
+ "type": "string"
2144
+ }
2145
+ },
2146
+ "repositoryNames": {
2147
+ "type": "array",
2148
+ "items": {
2149
+ "type": "string"
2150
+ }
2151
+ },
2152
+ "repositoryTypes": {
2153
+ "type": "array",
2154
+ "items": {
2155
+ "type": "string"
2156
+ }
2157
+ },
2158
+ "packageNames": {
2159
+ "type": "array",
2160
+ "items": {
2161
+ "type": "string"
2162
+ }
2163
+ },
2110
2164
  "groupBy": {
2111
- "type": "string"
2165
+ "type": "array",
2166
+ "items": {
2167
+ "enum": [
2168
+ "packageName",
2169
+ "repositoryName",
2170
+ "repositoryType"
2171
+ ],
2172
+ "type": "string"
2173
+ }
2112
2174
  },
2113
2175
  "dryRun": {
2114
2176
  "type": "boolean"
2115
2177
  },
2116
- "keepDaily": {
2178
+ "showAll": {
2179
+ "type": "string"
2180
+ },
2181
+ "keepMinutely": {
2117
2182
  "type": "number"
2118
2183
  },
2119
- "keepHourly": {
2184
+ "keepDaily": {
2120
2185
  "type": "number"
2121
2186
  },
2122
- "keepMinutely": {
2187
+ "keepHourly": {
2123
2188
  "type": "number"
2124
2189
  },
2125
2190
  "keepLast": {
@@ -2134,17 +2199,8 @@
2134
2199
  "keepYearly": {
2135
2200
  "type": "number"
2136
2201
  },
2137
- "package": {
2138
- "type": "string"
2139
- },
2140
- "tag": {
2141
- "type": "string"
2142
- },
2143
2202
  "longId": {
2144
2203
  "type": "boolean"
2145
- },
2146
- "showAll": {
2147
- "type": "boolean"
2148
2204
  }
2149
2205
  },
2150
2206
  "additionalProperties": false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datatruck",
3
- "version": "0.37.0",
3
+ "version": "0.38.1",
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.37.0"
29
+ "@datatruck/cli": "0.38.1"
30
30
  },
31
31
  "engine": {
32
32
  "node": ">=20.0.0"