@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/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
type Comment = {
|
|
2
|
+
id: string;
|
|
3
|
+
todo_id: string;
|
|
4
|
+
user_id: string;
|
|
5
|
+
org_id: string;
|
|
6
|
+
content: string;
|
|
7
|
+
created_at: number;
|
|
8
|
+
updated_at: number;
|
|
9
|
+
deleted_at?: number;
|
|
10
|
+
};
|
|
1
11
|
type CreateProjectBody = {
|
|
2
12
|
name: string;
|
|
3
13
|
default_todo_type_id?: string;
|
|
@@ -111,6 +121,30 @@ type TodoType = {
|
|
|
111
121
|
updated_at: number;
|
|
112
122
|
deleted_at?: number;
|
|
113
123
|
};
|
|
124
|
+
type TodoWithRelations = {
|
|
125
|
+
id: string;
|
|
126
|
+
user_id: string;
|
|
127
|
+
/**
|
|
128
|
+
* Project id this todo belongs to. Use /todo/projects/{id} to inspect the project.
|
|
129
|
+
*/
|
|
130
|
+
project_id: string;
|
|
131
|
+
title: string;
|
|
132
|
+
description?: string;
|
|
133
|
+
status: 'open' | 'in_progress' | 'done' | 'cancelled';
|
|
134
|
+
parent_id: string | null;
|
|
135
|
+
child_count: number;
|
|
136
|
+
version: number;
|
|
137
|
+
created_at: number;
|
|
138
|
+
updated_at: number;
|
|
139
|
+
deleted_at?: number;
|
|
140
|
+
due_at?: string;
|
|
141
|
+
type_id: string;
|
|
142
|
+
custom_fields?: {
|
|
143
|
+
[key: string]: string | Array<string>;
|
|
144
|
+
};
|
|
145
|
+
children?: Array<Todo>;
|
|
146
|
+
comments?: Array<Comment>;
|
|
147
|
+
};
|
|
114
148
|
type ListRecurrenceRulesResponse = {
|
|
115
149
|
rules: Array<RecurrenceRule>;
|
|
116
150
|
};
|
|
@@ -536,9 +570,9 @@ interface TDataShape {
|
|
|
536
570
|
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
537
571
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
538
572
|
|
|
539
|
-
declare const VERSION = "0.0.
|
|
540
|
-
declare const SPEC_SHA = "
|
|
541
|
-
declare const SPEC_FETCHED_AT = "2026-06-
|
|
573
|
+
declare const VERSION = "0.0.9";
|
|
574
|
+
declare const SPEC_SHA = "15a30e63";
|
|
575
|
+
declare const SPEC_FETCHED_AT = "2026-06-08T09:36:22.810Z";
|
|
542
576
|
declare const API_BASE = "https://api.wspc.ai";
|
|
543
577
|
|
|
544
578
|
type WspcClientOptions = {
|
|
@@ -577,7 +611,7 @@ declare class TodosResource {
|
|
|
577
611
|
constructor(client: Client);
|
|
578
612
|
create(body: TodoCreateData["body"]): Promise<Todo | undefined>;
|
|
579
613
|
list(query: TodoListData["query"]): Promise<ListTodosResponse | undefined>;
|
|
580
|
-
get(id: string): Promise<
|
|
614
|
+
get(id: string): Promise<TodoWithRelations | undefined>;
|
|
581
615
|
update(id: string, body: TodoUpdateData["body"]): Promise<Todo | undefined>;
|
|
582
616
|
delete(id: string): Promise<void>;
|
|
583
617
|
}
|
package/dist/index.js
CHANGED
|
@@ -902,9 +902,9 @@ var todoUpdate = (options) => (options.client ?? client).patch({
|
|
|
902
902
|
});
|
|
903
903
|
|
|
904
904
|
// src/version.ts
|
|
905
|
-
var VERSION = "0.0.
|
|
906
|
-
var SPEC_SHA = "
|
|
907
|
-
var SPEC_FETCHED_AT = "2026-06-
|
|
905
|
+
var VERSION = "0.0.9";
|
|
906
|
+
var SPEC_SHA = "15a30e63";
|
|
907
|
+
var SPEC_FETCHED_AT = "2026-06-08T09:36:22.810Z";
|
|
908
908
|
var API_BASE = "https://api.wspc.ai";
|
|
909
909
|
|
|
910
910
|
// src/index.ts
|