zinkee 0.1.24 → 0.1.25
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/.claude/settings.local.json +5 -1
- package/README.md +28 -4
- package/dist/index.js +270 -61
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/automations.ts +1 -1
- package/src/api/displays.ts +48 -0
- package/src/api/navigation.ts +0 -1
- package/src/command-registry.ts +35 -0
- package/src/commands/automations.test.ts +32 -0
- package/src/commands/automations.ts +9 -3
- package/src/commands/displays.test.ts +74 -0
- package/src/commands/displays.ts +143 -1
- package/src/commands/navigation.test.ts +2 -5
- package/src/commands/navigation.ts +11 -11
- package/src/commands/teamspace.ts +19 -13
- package/src/utils/examples.test.ts +13 -4
- package/src/utils/examples.ts +95 -50
package/src/utils/examples.ts
CHANGED
|
@@ -818,12 +818,12 @@ const specificExamples: Record<string, readonly CommandExample[]> = {
|
|
|
818
818
|
]),
|
|
819
819
|
"navigation resources move": buildCommandExamples([
|
|
820
820
|
{
|
|
821
|
-
description:
|
|
821
|
+
description:
|
|
822
|
+
"Move a schema into a navigation folder. Only schemas can be moved; the navigation menu holds databases.",
|
|
822
823
|
command:
|
|
823
|
-
'zinkee --json navigation resources move 2eb8bdcf-6d9c-4fbb-9018-7fa8180f4c5e --
|
|
824
|
+
'zinkee --json navigation resources move 2eb8bdcf-6d9c-4fbb-9018-7fa8180f4c5e --to Sales',
|
|
824
825
|
raw: `{
|
|
825
826
|
"resourceId": "2eb8bdcf-6d9c-4fbb-9018-7fa8180f4c5e",
|
|
826
|
-
"resourceType": "SCHEMA",
|
|
827
827
|
"targetFolderId": "84a0fca4-37ef-4c83-a8ed-9ef67ad9324a"
|
|
828
828
|
}`,
|
|
829
829
|
response: `{
|
|
@@ -832,43 +832,12 @@ const specificExamples: Record<string, readonly CommandExample[]> = {
|
|
|
832
832
|
}`,
|
|
833
833
|
},
|
|
834
834
|
{
|
|
835
|
-
description: "Move a
|
|
836
|
-
command:
|
|
837
|
-
'zinkee --json navigation resources move 3f8a2c1b-9d4e-4a5b-8c6d-7e8f90123456 --type WORKFLOW --to Operations',
|
|
838
|
-
raw: `{
|
|
839
|
-
"resourceId": "3f8a2c1b-9d4e-4a5b-8c6d-7e8f90123456",
|
|
840
|
-
"resourceType": "WORKFLOW",
|
|
841
|
-
"targetFolderId": "b8c9d0e1-f2a3-4b5c-6d7e-8f9012345678"
|
|
842
|
-
}`,
|
|
843
|
-
},
|
|
844
|
-
{
|
|
845
|
-
description: "Move a display.",
|
|
835
|
+
description: "Move a schema back to the root folder (root is always UUID 00000000-0000-0000-0000-000000000000).",
|
|
846
836
|
command:
|
|
847
|
-
'zinkee --json navigation resources move
|
|
848
|
-
raw: `{
|
|
849
|
-
"resourceId": "0f6f062f-1478-4df2-96a1-c495d037d260",
|
|
850
|
-
"resourceType": "DISPLAY",
|
|
851
|
-
"targetFolderId": "b8c9d0e1-f2a3-4b5c-6d7e-8f9012345678"
|
|
852
|
-
}`,
|
|
853
|
-
},
|
|
854
|
-
{
|
|
855
|
-
description: "Move a resource back to the root folder (root is always UUID 00000000-0000-0000-0000-000000000000).",
|
|
856
|
-
command:
|
|
857
|
-
'zinkee --json navigation resources move 5223cbc8-8c6c-4694-93bc-dd176364df9b --type SCHEMA --to 00000000-0000-0000-0000-000000000000',
|
|
837
|
+
'zinkee --json navigation resources move 5223cbc8-8c6c-4694-93bc-dd176364df9b --to 00000000-0000-0000-0000-000000000000',
|
|
858
838
|
raw: `{
|
|
859
839
|
"resourceId": "5223cbc8-8c6c-4694-93bc-dd176364df9b",
|
|
860
|
-
"resourceType": "SCHEMA",
|
|
861
840
|
"targetFolderId": "00000000-0000-0000-0000-000000000000"
|
|
862
|
-
}`,
|
|
863
|
-
},
|
|
864
|
-
{
|
|
865
|
-
description: "Move a schedule resource.",
|
|
866
|
-
command:
|
|
867
|
-
'zinkee --json navigation resources move a1b2c3d4-e5f6-7890-1234-567890abcdef --type SCHEDULE --to Operations',
|
|
868
|
-
raw: `{
|
|
869
|
-
"resourceId": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
|
|
870
|
-
"resourceType": "SCHEDULE",
|
|
871
|
-
"targetFolderId": "b8c9d0e1-f2a3-4b5c-6d7e-8f9012345678"
|
|
872
841
|
}`,
|
|
873
842
|
},
|
|
874
843
|
]),
|
|
@@ -2421,7 +2390,7 @@ const specificExamples: Record<string, readonly CommandExample[]> = {
|
|
|
2421
2390
|
"resources": [
|
|
2422
2391
|
{
|
|
2423
2392
|
"id": "2eb8bdcf-6d9c-4fbb-9018-7fa8180f4c5e",
|
|
2424
|
-
"name": "
|
|
2393
|
+
"name": "Customer records",
|
|
2425
2394
|
"type": "SCHEMA",
|
|
2426
2395
|
"isInSpace": false,
|
|
2427
2396
|
"additionalProperties": {}
|
|
@@ -2445,19 +2414,10 @@ const specificExamples: Record<string, readonly CommandExample[]> = {
|
|
|
2445
2414
|
"resources": [
|
|
2446
2415
|
{
|
|
2447
2416
|
"id": "3f8a2c1b-9d4e-4a5b-8c6d-7e8f90123456",
|
|
2448
|
-
"name": "
|
|
2449
|
-
"type": "
|
|
2417
|
+
"name": "Shipments",
|
|
2418
|
+
"type": "SCHEMA",
|
|
2450
2419
|
"isInSpace": false,
|
|
2451
2420
|
"additionalProperties": {}
|
|
2452
|
-
},
|
|
2453
|
-
{
|
|
2454
|
-
"id": "0f6f062f-1478-4df2-96a1-c495d037d260",
|
|
2455
|
-
"name": "Executive Revenue",
|
|
2456
|
-
"type": "DISPLAY",
|
|
2457
|
-
"isInSpace": true,
|
|
2458
|
-
"additionalProperties": {
|
|
2459
|
-
"pinned": true
|
|
2460
|
-
}
|
|
2461
2421
|
}
|
|
2462
2422
|
],
|
|
2463
2423
|
"additionalProperties": {
|
|
@@ -2504,8 +2464,13 @@ const specificExamples: Record<string, readonly CommandExample[]> = {
|
|
|
2504
2464
|
"name": "Shared Dashboards",
|
|
2505
2465
|
"order": 1,
|
|
2506
2466
|
"isRoot": false,
|
|
2507
|
-
"resourceCount":
|
|
2467
|
+
"resourceCount": 2,
|
|
2508
2468
|
"resources": [
|
|
2469
|
+
{
|
|
2470
|
+
"id": "2eb8bdcf-6d9c-4fbb-9018-7fa8180f4c5e",
|
|
2471
|
+
"name": "Customer records",
|
|
2472
|
+
"type": "SCHEMA"
|
|
2473
|
+
},
|
|
2509
2474
|
{
|
|
2510
2475
|
"id": "0f6f062f-1478-4df2-96a1-c495d037d260",
|
|
2511
2476
|
"name": "Executive Revenue",
|
|
@@ -2727,6 +2692,85 @@ const specificExamples: Record<string, readonly CommandExample[]> = {
|
|
|
2727
2692
|
command: "zinkee --json displays delete 0f6f062f-1478-4df2-96a1-c495d037d260",
|
|
2728
2693
|
},
|
|
2729
2694
|
]),
|
|
2695
|
+
"displays folders list": buildCommandExamples([
|
|
2696
|
+
{
|
|
2697
|
+
description: "List flat display folders (non-root folders plus the root bucket).",
|
|
2698
|
+
command: "zinkee --json displays folders list",
|
|
2699
|
+
response: `[
|
|
2700
|
+
{
|
|
2701
|
+
"id": "e7a1c3d2-5f4b-4a6c-9d8e-1f2a3b4c5d6e",
|
|
2702
|
+
"name": "Executive Dashboards",
|
|
2703
|
+
"isRoot": false,
|
|
2704
|
+
"displayCount": 2
|
|
2705
|
+
},
|
|
2706
|
+
{
|
|
2707
|
+
"id": "8b22282b-3db3-4dd7-87f7-b29365dcf3f6",
|
|
2708
|
+
"name": null,
|
|
2709
|
+
"isRoot": true,
|
|
2710
|
+
"displayCount": 4
|
|
2711
|
+
}
|
|
2712
|
+
]`,
|
|
2713
|
+
},
|
|
2714
|
+
]),
|
|
2715
|
+
"displays folders create": buildCommandExamples([
|
|
2716
|
+
{
|
|
2717
|
+
description: "Create one flat display folder.",
|
|
2718
|
+
command: 'zinkee --json displays folders create --name "Executive Dashboards"',
|
|
2719
|
+
raw: `{
|
|
2720
|
+
"name": "Executive Dashboards"
|
|
2721
|
+
}`,
|
|
2722
|
+
response: `{
|
|
2723
|
+
"id": "e7a1c3d2-5f4b-4a6c-9d8e-1f2a3b4c5d6e",
|
|
2724
|
+
"name": "Executive Dashboards",
|
|
2725
|
+
"isRoot": false,
|
|
2726
|
+
"displayCount": 0
|
|
2727
|
+
}`,
|
|
2728
|
+
},
|
|
2729
|
+
]),
|
|
2730
|
+
"displays folders update": buildCommandExamples([
|
|
2731
|
+
{
|
|
2732
|
+
description: "Rename a display folder. The folder argument accepts a UUID or an exact name.",
|
|
2733
|
+
command:
|
|
2734
|
+
'zinkee --json displays folders update "Executive Dashboards" --name "Executive Dashboards (2026)"',
|
|
2735
|
+
raw: `{
|
|
2736
|
+
"name": "Executive Dashboards (2026)"
|
|
2737
|
+
}`,
|
|
2738
|
+
response: `{
|
|
2739
|
+
"id": "e7a1c3d2-5f4b-4a6c-9d8e-1f2a3b4c5d6e",
|
|
2740
|
+
"name": "Executive Dashboards (2026)",
|
|
2741
|
+
"isRoot": false,
|
|
2742
|
+
"displayCount": 2
|
|
2743
|
+
}`,
|
|
2744
|
+
},
|
|
2745
|
+
]),
|
|
2746
|
+
"displays folders delete": buildCommandExamples([
|
|
2747
|
+
{
|
|
2748
|
+
description: "Delete a non-root display folder. Its displays move back to the root folder.",
|
|
2749
|
+
command: 'zinkee --json displays folders delete "Executive Dashboards"',
|
|
2750
|
+
response: `{
|
|
2751
|
+
"id": "e7a1c3d2-5f4b-4a6c-9d8e-1f2a3b4c5d6e",
|
|
2752
|
+
"name": "Executive Dashboards",
|
|
2753
|
+
"isRoot": false,
|
|
2754
|
+
"displayCount": 2
|
|
2755
|
+
}`,
|
|
2756
|
+
},
|
|
2757
|
+
]),
|
|
2758
|
+
"displays folders move": buildCommandExamples([
|
|
2759
|
+
{
|
|
2760
|
+
description: "Move one display into a target folder by exact folder name.",
|
|
2761
|
+
command:
|
|
2762
|
+
'zinkee --json displays folders move 0f6f062f-1478-4df2-96a1-c495d037d260 --to "Executive Dashboards"',
|
|
2763
|
+
raw: `{
|
|
2764
|
+
"displayId": "0f6f062f-1478-4df2-96a1-c495d037d260",
|
|
2765
|
+
"targetFolderId": "e7a1c3d2-5f4b-4a6c-9d8e-1f2a3b4c5d6e"
|
|
2766
|
+
}`,
|
|
2767
|
+
response: `{
|
|
2768
|
+
"id": "e7a1c3d2-5f4b-4a6c-9d8e-1f2a3b4c5d6e",
|
|
2769
|
+
"name": "Executive Dashboards",
|
|
2770
|
+
"isRoot": false
|
|
2771
|
+
}`,
|
|
2772
|
+
},
|
|
2773
|
+
]),
|
|
2730
2774
|
"displays layout get": buildCommandExamples([
|
|
2731
2775
|
{
|
|
2732
2776
|
description: "Get the layout block of a display (template + tabs/freeformLayouts/slots).",
|
|
@@ -3797,7 +3841,8 @@ const specificExamples: Record<string, readonly CommandExample[]> = {
|
|
|
3797
3841
|
description: "Move one automation into a target folder by exact folder name.",
|
|
3798
3842
|
command: 'zinkee --json automations folders move automation-1 --to "Codex Frontend Demo"',
|
|
3799
3843
|
raw: `{
|
|
3800
|
-
"automationId": "automation-1"
|
|
3844
|
+
"automationId": "automation-1",
|
|
3845
|
+
"targetFolderId": "cdfc14e3-3169-4ffb-8d9b-b11858a9240f"
|
|
3801
3846
|
}`,
|
|
3802
3847
|
response: `{
|
|
3803
3848
|
"id": "cdfc14e3-3169-4ffb-8d9b-b11858a9240f",
|