@apet97/clockify-cli-115 0.1.0 → 0.3.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.
- package/README.md +9 -5
- package/dist/commands/api.js +2 -2
- package/dist/commands/auditlog.js +10 -4
- package/dist/commands/clients.js +82 -22
- package/dist/commands/doctor.js +7 -11
- package/dist/commands/entries.js +3 -4
- package/dist/commands/expenses.js +22 -17
- package/dist/commands/invoices.js +3 -4
- package/dist/commands/leaf-command.js +45 -0
- package/dist/commands/log.js +5 -4
- package/dist/commands/projects.js +7 -11
- package/dist/commands/reports.js +45 -13
- package/dist/commands/scheduling.js +3 -4
- package/dist/commands/sharedReports.js +214 -39
- package/dist/commands/start.js +2 -2
- package/dist/commands/status.js +27 -3
- package/dist/commands/stop.js +2 -2
- package/dist/commands/tags.js +7 -6
- package/dist/commands/tasks.js +156 -32
- package/dist/commands/timeoff.js +12 -8
- package/dist/commands/users.js +5 -8
- package/dist/commands/webhooks.js +131 -24
- package/dist/config.js +5 -4
- package/dist/error-codes.js +2 -1
- package/dist/generated/version.js +1 -0
- package/dist/index.js +11 -13
- package/dist/output.js +2 -2
- package/package.json +12 -11
package/dist/output.js
CHANGED
|
@@ -99,11 +99,11 @@ export function selectValue(value, selector) {
|
|
|
99
99
|
return current;
|
|
100
100
|
}
|
|
101
101
|
export function printJson(value, options = {}) {
|
|
102
|
-
const selected = selectValue(value, options.select);
|
|
102
|
+
const selected = selectValue(value, options.select) ?? null;
|
|
103
103
|
console.log(JSON.stringify(selected, null, options.compact ? 0 : 2));
|
|
104
104
|
}
|
|
105
105
|
export function printNdjson(value, options = {}) {
|
|
106
|
-
const selected = selectValue(value, options.select);
|
|
106
|
+
const selected = selectValue(value, options.select) ?? null;
|
|
107
107
|
if (Array.isArray(selected)) {
|
|
108
108
|
for (const item of selected) {
|
|
109
109
|
console.log(JSON.stringify(item));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apet97/clockify-cli-115",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Unofficial, community-built — not affiliated with CAKE.com or Clockify. Command-line interface for Clockify, built on clockify-sdk-ts-115.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Aleksandar Petković <petkovic.aleksandar037@gmail.com>",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
23
|
"engines": {
|
|
24
|
-
"node": ">=
|
|
24
|
+
"node": ">=22.13.0"
|
|
25
25
|
},
|
|
26
26
|
"bin": {
|
|
27
27
|
"clockify115": "./dist/index.js",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"LICENSE"
|
|
37
37
|
],
|
|
38
38
|
"scripts": {
|
|
39
|
-
"build": "tsc -p tsconfig.json",
|
|
40
|
-
"dev": "tsx src/index.ts",
|
|
41
|
-
"test": "vitest run",
|
|
42
|
-
"test:coverage": "vitest run --coverage",
|
|
43
|
-
"test:watch": "vitest",
|
|
44
|
-
"type-check": "tsc --noEmit",
|
|
39
|
+
"build": "node ../scripts/generate-package-versions.mjs && tsc -p tsconfig.build.json",
|
|
40
|
+
"dev": "node ../scripts/generate-package-versions.mjs && tsx src/index.ts",
|
|
41
|
+
"test": "node ../scripts/generate-package-versions.mjs && vitest run",
|
|
42
|
+
"test:coverage": "node ../scripts/generate-package-versions.mjs && vitest run --coverage",
|
|
43
|
+
"test:watch": "node ../scripts/generate-package-versions.mjs && vitest",
|
|
44
|
+
"type-check": "node ../scripts/generate-package-versions.mjs && tsc -p tsconfig.json --noEmit",
|
|
45
45
|
"lint": "eslint .",
|
|
46
46
|
"lint:fix": "eslint . --fix",
|
|
47
47
|
"prepublishOnly": "npm run type-check && npm test && npm run build"
|
|
@@ -49,13 +49,14 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"cli-table3": "^0.6.5",
|
|
51
51
|
"commander": "^12.1.0",
|
|
52
|
-
"picocolors": "^1.1.1"
|
|
52
|
+
"picocolors": "^1.1.1",
|
|
53
|
+
"zod": "^3.25.0"
|
|
53
54
|
},
|
|
54
55
|
"peerDependencies": {
|
|
55
|
-
"clockify-sdk-ts-115": ">=0.
|
|
56
|
+
"clockify-sdk-ts-115": ">=0.12.0 <1"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
58
|
-
"@types/node": "^
|
|
59
|
+
"@types/node": "^22",
|
|
59
60
|
"@vitest/coverage-v8": "^4.1.9",
|
|
60
61
|
"clockify-sdk-ts-115": "*",
|
|
61
62
|
"eslint": "^10.5.0",
|