@wspc/cli 0.0.8 → 0.0.9
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/dist/cli.js +110 -21
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +38 -4
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/spec/openapi.json +146 -16
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -2598,9 +2598,112 @@
|
|
|
2598
2598
|
}
|
|
2599
2599
|
}
|
|
2600
2600
|
]
|
|
2601
|
+
},
|
|
2602
|
+
"include": {
|
|
2603
|
+
"type": "string"
|
|
2601
2604
|
}
|
|
2602
2605
|
}
|
|
2603
2606
|
},
|
|
2607
|
+
"TodoWithRelations": {
|
|
2608
|
+
"type": "object",
|
|
2609
|
+
"properties": {
|
|
2610
|
+
"id": {
|
|
2611
|
+
"type": "string"
|
|
2612
|
+
},
|
|
2613
|
+
"user_id": {
|
|
2614
|
+
"type": "string"
|
|
2615
|
+
},
|
|
2616
|
+
"project_id": {
|
|
2617
|
+
"type": "string",
|
|
2618
|
+
"description": "Project id this todo belongs to. Use /todo/projects/{id} to inspect the project."
|
|
2619
|
+
},
|
|
2620
|
+
"title": {
|
|
2621
|
+
"type": "string"
|
|
2622
|
+
},
|
|
2623
|
+
"description": {
|
|
2624
|
+
"type": "string"
|
|
2625
|
+
},
|
|
2626
|
+
"status": {
|
|
2627
|
+
"type": "string",
|
|
2628
|
+
"enum": [
|
|
2629
|
+
"open",
|
|
2630
|
+
"in_progress",
|
|
2631
|
+
"done",
|
|
2632
|
+
"cancelled"
|
|
2633
|
+
]
|
|
2634
|
+
},
|
|
2635
|
+
"parent_id": {
|
|
2636
|
+
"type": [
|
|
2637
|
+
"string",
|
|
2638
|
+
"null"
|
|
2639
|
+
]
|
|
2640
|
+
},
|
|
2641
|
+
"child_count": {
|
|
2642
|
+
"type": "integer",
|
|
2643
|
+
"minimum": 0
|
|
2644
|
+
},
|
|
2645
|
+
"version": {
|
|
2646
|
+
"type": "integer",
|
|
2647
|
+
"minimum": 0
|
|
2648
|
+
},
|
|
2649
|
+
"created_at": {
|
|
2650
|
+
"type": "number"
|
|
2651
|
+
},
|
|
2652
|
+
"updated_at": {
|
|
2653
|
+
"type": "number"
|
|
2654
|
+
},
|
|
2655
|
+
"deleted_at": {
|
|
2656
|
+
"type": "number"
|
|
2657
|
+
},
|
|
2658
|
+
"due_at": {
|
|
2659
|
+
"type": "string"
|
|
2660
|
+
},
|
|
2661
|
+
"type_id": {
|
|
2662
|
+
"type": "string"
|
|
2663
|
+
},
|
|
2664
|
+
"custom_fields": {
|
|
2665
|
+
"type": "object",
|
|
2666
|
+
"additionalProperties": {
|
|
2667
|
+
"anyOf": [
|
|
2668
|
+
{
|
|
2669
|
+
"type": "string"
|
|
2670
|
+
},
|
|
2671
|
+
{
|
|
2672
|
+
"type": "array",
|
|
2673
|
+
"items": {
|
|
2674
|
+
"type": "string"
|
|
2675
|
+
}
|
|
2676
|
+
}
|
|
2677
|
+
]
|
|
2678
|
+
}
|
|
2679
|
+
},
|
|
2680
|
+
"children": {
|
|
2681
|
+
"type": "array",
|
|
2682
|
+
"items": {
|
|
2683
|
+
"$ref": "#/components/schemas/Todo"
|
|
2684
|
+
}
|
|
2685
|
+
},
|
|
2686
|
+
"comments": {
|
|
2687
|
+
"type": "array",
|
|
2688
|
+
"items": {
|
|
2689
|
+
"$ref": "#/components/schemas/Comment"
|
|
2690
|
+
}
|
|
2691
|
+
}
|
|
2692
|
+
},
|
|
2693
|
+
"required": [
|
|
2694
|
+
"id",
|
|
2695
|
+
"user_id",
|
|
2696
|
+
"project_id",
|
|
2697
|
+
"title",
|
|
2698
|
+
"status",
|
|
2699
|
+
"parent_id",
|
|
2700
|
+
"child_count",
|
|
2701
|
+
"version",
|
|
2702
|
+
"created_at",
|
|
2703
|
+
"updated_at",
|
|
2704
|
+
"type_id"
|
|
2705
|
+
]
|
|
2706
|
+
},
|
|
2604
2707
|
"ListRecurrenceRulesQuery": {
|
|
2605
2708
|
"type": "object",
|
|
2606
2709
|
"properties": {
|
|
@@ -19545,7 +19648,6 @@
|
|
|
19545
19648
|
"id": "id-short",
|
|
19546
19649
|
"todo_id": "id-short",
|
|
19547
19650
|
"user_id": "id-short",
|
|
19548
|
-
"content": "truncate",
|
|
19549
19651
|
"created_at": "relative-time",
|
|
19550
19652
|
"updated_at": "relative-time",
|
|
19551
19653
|
"deleted_at": "relative-time"
|
|
@@ -22135,8 +22237,6 @@
|
|
|
22135
22237
|
"project_id": "id-short",
|
|
22136
22238
|
"parent_id": "id-short",
|
|
22137
22239
|
"type_id": "id-short",
|
|
22138
|
-
"title": "truncate",
|
|
22139
|
-
"description": "truncate",
|
|
22140
22240
|
"status": "status-badge",
|
|
22141
22241
|
"due_at": "relative-time",
|
|
22142
22242
|
"created_at": "relative-time",
|
|
@@ -23937,7 +24037,6 @@
|
|
|
23937
24037
|
"id": "id-short",
|
|
23938
24038
|
"todo_id": "id-short",
|
|
23939
24039
|
"user_id": "id-short",
|
|
23940
|
-
"content": "truncate",
|
|
23941
24040
|
"created_at": "relative-time",
|
|
23942
24041
|
"updated_at": "relative-time",
|
|
23943
24042
|
"deleted_at": "relative-time"
|
|
@@ -24347,7 +24446,6 @@
|
|
|
24347
24446
|
"id": "id-short",
|
|
24348
24447
|
"todo_id": "id-short",
|
|
24349
24448
|
"user_id": "id-short",
|
|
24350
|
-
"content": "truncate",
|
|
24351
24449
|
"created_at": "relative-time",
|
|
24352
24450
|
"updated_at": "relative-time",
|
|
24353
24451
|
"deleted_at": "relative-time"
|
|
@@ -27211,8 +27309,6 @@
|
|
|
27211
27309
|
"project_id": "id-short",
|
|
27212
27310
|
"parent_id": "id-short",
|
|
27213
27311
|
"type_id": "id-short",
|
|
27214
|
-
"title": "truncate",
|
|
27215
|
-
"description": "truncate",
|
|
27216
27312
|
"status": "status-badge",
|
|
27217
27313
|
"due_at": "relative-time",
|
|
27218
27314
|
"created_at": "relative-time",
|
|
@@ -27645,14 +27741,15 @@
|
|
|
27645
27741
|
"project_id": "id-short",
|
|
27646
27742
|
"parent_id": "id-short",
|
|
27647
27743
|
"type_id": "id-short",
|
|
27648
|
-
"title": "truncate",
|
|
27649
|
-
"description": "truncate",
|
|
27650
27744
|
"status": "status-badge",
|
|
27651
27745
|
"due_at": "relative-time",
|
|
27652
27746
|
"created_at": "relative-time",
|
|
27653
27747
|
"updated_at": "relative-time",
|
|
27654
27748
|
"deleted_at": "relative-time"
|
|
27655
27749
|
}
|
|
27750
|
+
},
|
|
27751
|
+
"fixedQuery": {
|
|
27752
|
+
"include": "children,comments"
|
|
27656
27753
|
}
|
|
27657
27754
|
},
|
|
27658
27755
|
"summary": "Get a todo by id",
|
|
@@ -27718,19 +27815,27 @@
|
|
|
27718
27815
|
"required": false,
|
|
27719
27816
|
"name": "include_orphan_fields",
|
|
27720
27817
|
"in": "query"
|
|
27818
|
+
},
|
|
27819
|
+
{
|
|
27820
|
+
"schema": {
|
|
27821
|
+
"type": "string"
|
|
27822
|
+
},
|
|
27823
|
+
"required": false,
|
|
27824
|
+
"name": "include",
|
|
27825
|
+
"in": "query"
|
|
27721
27826
|
}
|
|
27722
27827
|
],
|
|
27723
27828
|
"responses": {
|
|
27724
27829
|
"200": {
|
|
27725
|
-
"description": "The requested todo. Includes `deleted_at` only when fetched with `include_deleted=true` on a soft-deleted row.",
|
|
27830
|
+
"description": "The requested todo. Includes `children` (first-level) when `include=children`, `comments` when `include=comments`, and `deleted_at` only when fetched with `include_deleted=true` on a soft-deleted row.",
|
|
27726
27831
|
"content": {
|
|
27727
27832
|
"application/json": {
|
|
27728
27833
|
"schema": {
|
|
27729
|
-
"$ref": "#/components/schemas/
|
|
27834
|
+
"$ref": "#/components/schemas/TodoWithRelations"
|
|
27730
27835
|
},
|
|
27731
27836
|
"examples": {
|
|
27732
27837
|
"happyPath": {
|
|
27733
|
-
"summary": "
|
|
27838
|
+
"summary": "Todo with first-level children and comments expanded",
|
|
27734
27839
|
"value": {
|
|
27735
27840
|
"id": "tod_01HW3K4N9V5G6Z8C2Q7B1Y0M3F",
|
|
27736
27841
|
"user_id": "usr_01HW3K4N9V5G6Z8C2Q7B1Y0M3F",
|
|
@@ -27739,11 +27844,38 @@
|
|
|
27739
27844
|
"description": "Use refundable rate",
|
|
27740
27845
|
"status": "open",
|
|
27741
27846
|
"parent_id": null,
|
|
27742
|
-
"child_count":
|
|
27847
|
+
"child_count": 1,
|
|
27743
27848
|
"version": 1,
|
|
27744
27849
|
"created_at": 1748736000000,
|
|
27745
27850
|
"updated_at": 1748736000000,
|
|
27746
|
-
"due_at": "2026-06-01"
|
|
27851
|
+
"due_at": "2026-06-01",
|
|
27852
|
+
"children": [
|
|
27853
|
+
{
|
|
27854
|
+
"id": "tod_child",
|
|
27855
|
+
"user_id": "usr_01HW3K4N9V5G6Z8C2Q7B1Y0M3F",
|
|
27856
|
+
"project_id": "prj_01HW3K4N9V5G6Z8C2Q7B1Y0M3F",
|
|
27857
|
+
"title": "Buy milk",
|
|
27858
|
+
"description": "Use refundable rate",
|
|
27859
|
+
"status": "open",
|
|
27860
|
+
"parent_id": "tod_01HW3K4N9V5G6Z8C2Q7B1Y0M3F",
|
|
27861
|
+
"child_count": 0,
|
|
27862
|
+
"version": 1,
|
|
27863
|
+
"created_at": 1748736000000,
|
|
27864
|
+
"updated_at": 1748736000000,
|
|
27865
|
+
"due_at": "2026-06-01"
|
|
27866
|
+
}
|
|
27867
|
+
],
|
|
27868
|
+
"comments": [
|
|
27869
|
+
{
|
|
27870
|
+
"id": "tdc_01HW3K4N9V5G6Z8C2Q7B1Y0M3F",
|
|
27871
|
+
"todo_id": "tod_01HW3K4N9V5G6Z8C2Q7B1Y0M3F",
|
|
27872
|
+
"user_id": "usr_01HW3K4N9V5G6Z8C2Q7B1Y0M3F",
|
|
27873
|
+
"org_id": "org_01HW3K4N9V5G6Z8C2Q7B1Y0M3F",
|
|
27874
|
+
"content": "Looks good",
|
|
27875
|
+
"created_at": 1748736000000,
|
|
27876
|
+
"updated_at": 1748736000000
|
|
27877
|
+
}
|
|
27878
|
+
]
|
|
27747
27879
|
}
|
|
27748
27880
|
}
|
|
27749
27881
|
}
|
|
@@ -28097,8 +28229,6 @@
|
|
|
28097
28229
|
"project_id": "id-short",
|
|
28098
28230
|
"parent_id": "id-short",
|
|
28099
28231
|
"type_id": "id-short",
|
|
28100
|
-
"title": "truncate",
|
|
28101
|
-
"description": "truncate",
|
|
28102
28232
|
"status": "status-badge",
|
|
28103
28233
|
"due_at": "relative-time",
|
|
28104
28234
|
"created_at": "relative-time",
|