@devpad/api 2.2.6 → 2.2.7
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/chunk-ZPEX7KVX.js +238 -0
- package/dist/{errors.d-DcjQAql-.d.ts → errors.d-ByyBTSwW.d.ts} +1 -1
- package/dist/index.d.ts +183 -6
- package/dist/index.js +827 -97
- package/dist/{media.d-CQ56ckoR.d.ts → media.d-R87HGuRp.d.ts} +1 -1
- package/dist/schema/blog.d.ts +1702 -2
- package/dist/schema/blog.js +11 -11
- package/dist/schema/index.d.ts +3 -3
- package/dist/schema/index.js +39 -1
- package/dist/schema/media.d.ts +4 -4
- package/dist/schema/media.js +330 -330
- package/dist/{schema.d-Bka8880l.d.ts → schema.d-DFyjWZV1.d.ts} +1679 -1
- package/dist/{types.d-DLE9TSql.d.ts → types.d-B3vp62jJ.d.ts} +7 -7
- package/dist/{types.d-VdW3W-u7.d.ts → types.d-YhCFiUtt.d.ts} +52 -52
- package/dist/types.d-i9gbGlha.d.ts +852 -0
- package/package.json +4 -3
- package/dist/chunk-7SQVSGWV.js +0 -105
- package/dist/types.d-CW-e2BrO.d.ts +0 -455
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devpad/api",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.7",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "f0rbit",
|
|
6
6
|
"url": "https://github.com/f0rbit"
|
|
@@ -23,11 +23,12 @@
|
|
|
23
23
|
"clean": "rm -rf dist"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@f0rbit/corpus": "^0.
|
|
26
|
+
"@f0rbit/corpus": "^0.6.0",
|
|
27
|
+
"drizzle-orm": "^0.44.7",
|
|
27
28
|
"zod": "^3.22.4"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
|
-
"@devpad/schema": "^2.2.
|
|
31
|
+
"@devpad/schema": "^2.2.7",
|
|
31
32
|
"@types/node": "^20.11.24",
|
|
32
33
|
"bun-types": "latest",
|
|
33
34
|
"eslint": "^8.57.0",
|
package/dist/chunk-7SQVSGWV.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
// ../schema/dist/validation.js
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
var upsert_project = z.object({
|
|
4
|
-
id: z.string().optional().nullable(),
|
|
5
|
-
project_id: z.string(),
|
|
6
|
-
owner_id: z.string().optional(),
|
|
7
|
-
name: z.string(),
|
|
8
|
-
description: z.string().nullable(),
|
|
9
|
-
specification: z.string().nullable(),
|
|
10
|
-
repo_url: z.string().nullable(),
|
|
11
|
-
repo_id: z.number().nullable(),
|
|
12
|
-
icon_url: z.string().nullable(),
|
|
13
|
-
status: z.union([z.literal("DEVELOPMENT"), z.literal("PAUSED"), z.literal("RELEASED"), z.literal("LIVE"), z.literal("FINISHED"), z.literal("ABANDONED"), z.literal("STOPPED")]).optional(),
|
|
14
|
-
deleted: z.boolean().optional().default(false),
|
|
15
|
-
link_url: z.string().nullable(),
|
|
16
|
-
link_text: z.string().nullable(),
|
|
17
|
-
visibility: z.union([z.literal("PUBLIC"), z.literal("PRIVATE"), z.literal("HIDDEN"), z.literal("ARCHIVED"), z.literal("DRAFT"), z.literal("DELETED")]).optional(),
|
|
18
|
-
current_version: z.string().nullable(),
|
|
19
|
-
force: z.boolean().optional().describe("Override protection on user-modified entities")
|
|
20
|
-
});
|
|
21
|
-
var upsert_todo = z.object({
|
|
22
|
-
id: z.string().optional().nullable(),
|
|
23
|
-
title: z.string().optional(),
|
|
24
|
-
summary: z.string().optional().nullable(),
|
|
25
|
-
description: z.string().optional().nullable(),
|
|
26
|
-
progress: z.union([z.literal("UNSTARTED"), z.literal("IN_PROGRESS"), z.literal("COMPLETED")]).optional(),
|
|
27
|
-
visibility: z.union([z.literal("PUBLIC"), z.literal("PRIVATE"), z.literal("HIDDEN"), z.literal("ARCHIVED"), z.literal("DRAFT"), z.literal("DELETED")]).optional(),
|
|
28
|
-
start_time: z.string().optional().nullable(),
|
|
29
|
-
end_time: z.string().optional().nullable(),
|
|
30
|
-
priority: z.union([z.literal("LOW"), z.literal("MEDIUM"), z.literal("HIGH")]).optional(),
|
|
31
|
-
owner_id: z.string(),
|
|
32
|
-
project_id: z.string().optional().nullable(),
|
|
33
|
-
goal_id: z.string().optional().nullable(),
|
|
34
|
-
force: z.boolean().optional().describe("Override protection on user-modified entities")
|
|
35
|
-
});
|
|
36
|
-
var update_action = z.union([z.literal("CONFIRM"), z.literal("UNLINK"), z.literal("CREATE"), z.literal("IGNORE"), z.literal("DELETE"), z.literal("COMPLETE")]);
|
|
37
|
-
var upsert_tag = z.object({
|
|
38
|
-
id: z.string().optional(),
|
|
39
|
-
title: z.string(),
|
|
40
|
-
color: z.union([z.literal("red"), z.literal("green"), z.literal("blue"), z.literal("yellow"), z.literal("purple"), z.literal("orange"), z.literal("teal"), z.literal("pink"), z.literal("gray"), z.literal("cyan"), z.literal("lime")]).nullable().optional(),
|
|
41
|
-
deleted: z.boolean().optional().default(false),
|
|
42
|
-
render: z.boolean().optional().default(true),
|
|
43
|
-
owner_id: z.string()
|
|
44
|
-
});
|
|
45
|
-
var project_config = z.object({
|
|
46
|
-
tags: z.array(z.object({
|
|
47
|
-
name: z.string(),
|
|
48
|
-
match: z.array(z.string())
|
|
49
|
-
})),
|
|
50
|
-
ignore: z.array(z.string())
|
|
51
|
-
});
|
|
52
|
-
var save_config_request = z.object({
|
|
53
|
-
id: z.string(),
|
|
54
|
-
config: project_config,
|
|
55
|
-
scan_branch: z.string().optional()
|
|
56
|
-
});
|
|
57
|
-
var save_tags_request = z.array(upsert_tag);
|
|
58
|
-
var update_user = z.object({
|
|
59
|
-
id: z.string(),
|
|
60
|
-
name: z.string().optional(),
|
|
61
|
-
image_url: z.string().optional(),
|
|
62
|
-
task_view: z.union([z.literal("list"), z.literal("grid")]).optional(),
|
|
63
|
-
email_verified: z.boolean().optional()
|
|
64
|
-
});
|
|
65
|
-
var config_schema = z.object({
|
|
66
|
-
tags: z.array(z.object({
|
|
67
|
-
name: z.string(),
|
|
68
|
-
match: z.array(z.string())
|
|
69
|
-
})),
|
|
70
|
-
ignore: z.array(z.string().regex(/^[^]*$/, "Invalid path"))
|
|
71
|
-
});
|
|
72
|
-
var upsert_milestone = z.object({
|
|
73
|
-
id: z.string().optional().nullable(),
|
|
74
|
-
project_id: z.string(),
|
|
75
|
-
name: z.string().min(1).max(200),
|
|
76
|
-
description: z.string().nullable().optional(),
|
|
77
|
-
target_time: z.string().nullable().optional(),
|
|
78
|
-
target_version: z.string().nullable().optional(),
|
|
79
|
-
finished_at: z.string().nullable().optional(),
|
|
80
|
-
after_id: z.string().nullable().optional(),
|
|
81
|
-
force: z.boolean().optional().describe("Override protection on user-modified entities")
|
|
82
|
-
});
|
|
83
|
-
var upsert_goal = z.object({
|
|
84
|
-
id: z.string().optional().nullable(),
|
|
85
|
-
milestone_id: z.string(),
|
|
86
|
-
name: z.string().min(1).max(200),
|
|
87
|
-
description: z.string().nullable().optional(),
|
|
88
|
-
target_time: z.string().nullable().optional(),
|
|
89
|
-
finished_at: z.string().nullable().optional(),
|
|
90
|
-
force: z.boolean().optional().describe("Override protection on user-modified entities")
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
export {
|
|
94
|
-
upsert_project,
|
|
95
|
-
upsert_todo,
|
|
96
|
-
update_action,
|
|
97
|
-
upsert_tag,
|
|
98
|
-
project_config,
|
|
99
|
-
save_config_request,
|
|
100
|
-
save_tags_request,
|
|
101
|
-
update_user,
|
|
102
|
-
config_schema,
|
|
103
|
-
upsert_milestone,
|
|
104
|
-
upsert_goal
|
|
105
|
-
};
|
|
@@ -1,455 +0,0 @@
|
|
|
1
|
-
import { InferSelectModel } from 'drizzle-orm';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { a as api_keys, p as project, m as milestone, g as goal, t as task, c as codebase_tasks, b as action, A as ActionType, d as tag, u as user, s as session, e as task_tag, f as todo_updates, h as tracker_result, i as tag_config, j as ignore_path } from './schema.d-Bka8880l.js';
|
|
4
|
-
|
|
5
|
-
declare const upsert_project: z.ZodObject<{
|
|
6
|
-
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
-
project_id: z.ZodString;
|
|
8
|
-
owner_id: z.ZodOptional<z.ZodString>;
|
|
9
|
-
name: z.ZodString;
|
|
10
|
-
description: z.ZodNullable<z.ZodString>;
|
|
11
|
-
specification: z.ZodNullable<z.ZodString>;
|
|
12
|
-
repo_url: z.ZodNullable<z.ZodString>;
|
|
13
|
-
repo_id: z.ZodNullable<z.ZodNumber>;
|
|
14
|
-
icon_url: z.ZodNullable<z.ZodString>;
|
|
15
|
-
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"DEVELOPMENT">, z.ZodLiteral<"PAUSED">, z.ZodLiteral<"RELEASED">, z.ZodLiteral<"LIVE">, z.ZodLiteral<"FINISHED">, z.ZodLiteral<"ABANDONED">, z.ZodLiteral<"STOPPED">]>>;
|
|
16
|
-
deleted: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
17
|
-
link_url: z.ZodNullable<z.ZodString>;
|
|
18
|
-
link_text: z.ZodNullable<z.ZodString>;
|
|
19
|
-
visibility: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PUBLIC">, z.ZodLiteral<"PRIVATE">, z.ZodLiteral<"HIDDEN">, z.ZodLiteral<"ARCHIVED">, z.ZodLiteral<"DRAFT">, z.ZodLiteral<"DELETED">]>>;
|
|
20
|
-
current_version: z.ZodNullable<z.ZodString>;
|
|
21
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
-
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
name: string;
|
|
24
|
-
deleted: boolean;
|
|
25
|
-
project_id: string;
|
|
26
|
-
description: string | null;
|
|
27
|
-
specification: string | null;
|
|
28
|
-
repo_url: string | null;
|
|
29
|
-
repo_id: number | null;
|
|
30
|
-
icon_url: string | null;
|
|
31
|
-
link_url: string | null;
|
|
32
|
-
link_text: string | null;
|
|
33
|
-
current_version: string | null;
|
|
34
|
-
id?: string | null | undefined;
|
|
35
|
-
owner_id?: string | undefined;
|
|
36
|
-
status?: "DEVELOPMENT" | "PAUSED" | "RELEASED" | "LIVE" | "FINISHED" | "ABANDONED" | "STOPPED" | undefined;
|
|
37
|
-
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
38
|
-
force?: boolean | undefined;
|
|
39
|
-
}, {
|
|
40
|
-
name: string;
|
|
41
|
-
project_id: string;
|
|
42
|
-
description: string | null;
|
|
43
|
-
specification: string | null;
|
|
44
|
-
repo_url: string | null;
|
|
45
|
-
repo_id: number | null;
|
|
46
|
-
icon_url: string | null;
|
|
47
|
-
link_url: string | null;
|
|
48
|
-
link_text: string | null;
|
|
49
|
-
current_version: string | null;
|
|
50
|
-
id?: string | null | undefined;
|
|
51
|
-
deleted?: boolean | undefined;
|
|
52
|
-
owner_id?: string | undefined;
|
|
53
|
-
status?: "DEVELOPMENT" | "PAUSED" | "RELEASED" | "LIVE" | "FINISHED" | "ABANDONED" | "STOPPED" | undefined;
|
|
54
|
-
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
55
|
-
force?: boolean | undefined;
|
|
56
|
-
}>;
|
|
57
|
-
declare const upsert_todo: z.ZodObject<{
|
|
58
|
-
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
59
|
-
title: z.ZodOptional<z.ZodString>;
|
|
60
|
-
summary: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
61
|
-
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
62
|
-
progress: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"UNSTARTED">, z.ZodLiteral<"IN_PROGRESS">, z.ZodLiteral<"COMPLETED">]>>;
|
|
63
|
-
visibility: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"PUBLIC">, z.ZodLiteral<"PRIVATE">, z.ZodLiteral<"HIDDEN">, z.ZodLiteral<"ARCHIVED">, z.ZodLiteral<"DRAFT">, z.ZodLiteral<"DELETED">]>>;
|
|
64
|
-
start_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
65
|
-
end_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
66
|
-
priority: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"LOW">, z.ZodLiteral<"MEDIUM">, z.ZodLiteral<"HIGH">]>>;
|
|
67
|
-
owner_id: z.ZodString;
|
|
68
|
-
project_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
69
|
-
goal_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
70
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
71
|
-
}, "strip", z.ZodTypeAny, {
|
|
72
|
-
owner_id: string;
|
|
73
|
-
id?: string | null | undefined;
|
|
74
|
-
project_id?: string | null | undefined;
|
|
75
|
-
description?: string | null | undefined;
|
|
76
|
-
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
77
|
-
title?: string | undefined;
|
|
78
|
-
progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
|
|
79
|
-
goal_id?: string | null | undefined;
|
|
80
|
-
start_time?: string | null | undefined;
|
|
81
|
-
end_time?: string | null | undefined;
|
|
82
|
-
summary?: string | null | undefined;
|
|
83
|
-
priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
|
|
84
|
-
force?: boolean | undefined;
|
|
85
|
-
}, {
|
|
86
|
-
owner_id: string;
|
|
87
|
-
id?: string | null | undefined;
|
|
88
|
-
project_id?: string | null | undefined;
|
|
89
|
-
description?: string | null | undefined;
|
|
90
|
-
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
91
|
-
title?: string | undefined;
|
|
92
|
-
progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
|
|
93
|
-
goal_id?: string | null | undefined;
|
|
94
|
-
start_time?: string | null | undefined;
|
|
95
|
-
end_time?: string | null | undefined;
|
|
96
|
-
summary?: string | null | undefined;
|
|
97
|
-
priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
|
|
98
|
-
force?: boolean | undefined;
|
|
99
|
-
}>;
|
|
100
|
-
declare const update_action: z.ZodUnion<[z.ZodLiteral<"CONFIRM">, z.ZodLiteral<"UNLINK">, z.ZodLiteral<"CREATE">, z.ZodLiteral<"IGNORE">, z.ZodLiteral<"DELETE">, z.ZodLiteral<"COMPLETE">]>;
|
|
101
|
-
declare const upsert_tag: z.ZodObject<{
|
|
102
|
-
id: z.ZodOptional<z.ZodString>;
|
|
103
|
-
title: z.ZodString;
|
|
104
|
-
color: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"red">, z.ZodLiteral<"green">, z.ZodLiteral<"blue">, z.ZodLiteral<"yellow">, z.ZodLiteral<"purple">, z.ZodLiteral<"orange">, z.ZodLiteral<"teal">, z.ZodLiteral<"pink">, z.ZodLiteral<"gray">, z.ZodLiteral<"cyan">, z.ZodLiteral<"lime">]>>>;
|
|
105
|
-
deleted: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
106
|
-
render: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
107
|
-
owner_id: z.ZodString;
|
|
108
|
-
}, "strip", z.ZodTypeAny, {
|
|
109
|
-
deleted: boolean;
|
|
110
|
-
owner_id: string;
|
|
111
|
-
title: string;
|
|
112
|
-
render: boolean;
|
|
113
|
-
id?: string | undefined;
|
|
114
|
-
color?: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "teal" | "pink" | "gray" | "cyan" | "lime" | null | undefined;
|
|
115
|
-
}, {
|
|
116
|
-
owner_id: string;
|
|
117
|
-
title: string;
|
|
118
|
-
id?: string | undefined;
|
|
119
|
-
deleted?: boolean | undefined;
|
|
120
|
-
color?: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "teal" | "pink" | "gray" | "cyan" | "lime" | null | undefined;
|
|
121
|
-
render?: boolean | undefined;
|
|
122
|
-
}>;
|
|
123
|
-
declare const project_config: z.ZodObject<{
|
|
124
|
-
tags: z.ZodArray<z.ZodObject<{
|
|
125
|
-
name: z.ZodString;
|
|
126
|
-
match: z.ZodArray<z.ZodString, "many">;
|
|
127
|
-
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
match: string[];
|
|
129
|
-
name: string;
|
|
130
|
-
}, {
|
|
131
|
-
match: string[];
|
|
132
|
-
name: string;
|
|
133
|
-
}>, "many">;
|
|
134
|
-
ignore: z.ZodArray<z.ZodString, "many">;
|
|
135
|
-
}, "strip", z.ZodTypeAny, {
|
|
136
|
-
tags: {
|
|
137
|
-
match: string[];
|
|
138
|
-
name: string;
|
|
139
|
-
}[];
|
|
140
|
-
ignore: string[];
|
|
141
|
-
}, {
|
|
142
|
-
tags: {
|
|
143
|
-
match: string[];
|
|
144
|
-
name: string;
|
|
145
|
-
}[];
|
|
146
|
-
ignore: string[];
|
|
147
|
-
}>;
|
|
148
|
-
declare const save_config_request: z.ZodObject<{
|
|
149
|
-
id: z.ZodString;
|
|
150
|
-
config: z.ZodObject<{
|
|
151
|
-
tags: z.ZodArray<z.ZodObject<{
|
|
152
|
-
name: z.ZodString;
|
|
153
|
-
match: z.ZodArray<z.ZodString, "many">;
|
|
154
|
-
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
match: string[];
|
|
156
|
-
name: string;
|
|
157
|
-
}, {
|
|
158
|
-
match: string[];
|
|
159
|
-
name: string;
|
|
160
|
-
}>, "many">;
|
|
161
|
-
ignore: z.ZodArray<z.ZodString, "many">;
|
|
162
|
-
}, "strip", z.ZodTypeAny, {
|
|
163
|
-
tags: {
|
|
164
|
-
match: string[];
|
|
165
|
-
name: string;
|
|
166
|
-
}[];
|
|
167
|
-
ignore: string[];
|
|
168
|
-
}, {
|
|
169
|
-
tags: {
|
|
170
|
-
match: string[];
|
|
171
|
-
name: string;
|
|
172
|
-
}[];
|
|
173
|
-
ignore: string[];
|
|
174
|
-
}>;
|
|
175
|
-
scan_branch: z.ZodOptional<z.ZodString>;
|
|
176
|
-
}, "strip", z.ZodTypeAny, {
|
|
177
|
-
id: string;
|
|
178
|
-
config: {
|
|
179
|
-
tags: {
|
|
180
|
-
match: string[];
|
|
181
|
-
name: string;
|
|
182
|
-
}[];
|
|
183
|
-
ignore: string[];
|
|
184
|
-
};
|
|
185
|
-
scan_branch?: string | undefined;
|
|
186
|
-
}, {
|
|
187
|
-
id: string;
|
|
188
|
-
config: {
|
|
189
|
-
tags: {
|
|
190
|
-
match: string[];
|
|
191
|
-
name: string;
|
|
192
|
-
}[];
|
|
193
|
-
ignore: string[];
|
|
194
|
-
};
|
|
195
|
-
scan_branch?: string | undefined;
|
|
196
|
-
}>;
|
|
197
|
-
declare const save_tags_request: z.ZodArray<z.ZodObject<{
|
|
198
|
-
id: z.ZodOptional<z.ZodString>;
|
|
199
|
-
title: z.ZodString;
|
|
200
|
-
color: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"red">, z.ZodLiteral<"green">, z.ZodLiteral<"blue">, z.ZodLiteral<"yellow">, z.ZodLiteral<"purple">, z.ZodLiteral<"orange">, z.ZodLiteral<"teal">, z.ZodLiteral<"pink">, z.ZodLiteral<"gray">, z.ZodLiteral<"cyan">, z.ZodLiteral<"lime">]>>>;
|
|
201
|
-
deleted: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
202
|
-
render: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
203
|
-
owner_id: z.ZodString;
|
|
204
|
-
}, "strip", z.ZodTypeAny, {
|
|
205
|
-
deleted: boolean;
|
|
206
|
-
owner_id: string;
|
|
207
|
-
title: string;
|
|
208
|
-
render: boolean;
|
|
209
|
-
id?: string | undefined;
|
|
210
|
-
color?: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "teal" | "pink" | "gray" | "cyan" | "lime" | null | undefined;
|
|
211
|
-
}, {
|
|
212
|
-
owner_id: string;
|
|
213
|
-
title: string;
|
|
214
|
-
id?: string | undefined;
|
|
215
|
-
deleted?: boolean | undefined;
|
|
216
|
-
color?: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "teal" | "pink" | "gray" | "cyan" | "lime" | null | undefined;
|
|
217
|
-
render?: boolean | undefined;
|
|
218
|
-
}>, "many">;
|
|
219
|
-
declare const update_user: z.ZodObject<{
|
|
220
|
-
id: z.ZodString;
|
|
221
|
-
name: z.ZodOptional<z.ZodString>;
|
|
222
|
-
image_url: z.ZodOptional<z.ZodString>;
|
|
223
|
-
task_view: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"list">, z.ZodLiteral<"grid">]>>;
|
|
224
|
-
email_verified: z.ZodOptional<z.ZodBoolean>;
|
|
225
|
-
}, "strip", z.ZodTypeAny, {
|
|
226
|
-
id: string;
|
|
227
|
-
name?: string | undefined;
|
|
228
|
-
email_verified?: boolean | undefined;
|
|
229
|
-
image_url?: string | undefined;
|
|
230
|
-
task_view?: "list" | "grid" | undefined;
|
|
231
|
-
}, {
|
|
232
|
-
id: string;
|
|
233
|
-
name?: string | undefined;
|
|
234
|
-
email_verified?: boolean | undefined;
|
|
235
|
-
image_url?: string | undefined;
|
|
236
|
-
task_view?: "list" | "grid" | undefined;
|
|
237
|
-
}>;
|
|
238
|
-
declare const config_schema: z.ZodObject<{
|
|
239
|
-
tags: z.ZodArray<z.ZodObject<{
|
|
240
|
-
name: z.ZodString;
|
|
241
|
-
match: z.ZodArray<z.ZodString, "many">;
|
|
242
|
-
}, "strip", z.ZodTypeAny, {
|
|
243
|
-
match: string[];
|
|
244
|
-
name: string;
|
|
245
|
-
}, {
|
|
246
|
-
match: string[];
|
|
247
|
-
name: string;
|
|
248
|
-
}>, "many">;
|
|
249
|
-
ignore: z.ZodArray<z.ZodString, "many">;
|
|
250
|
-
}, "strip", z.ZodTypeAny, {
|
|
251
|
-
tags: {
|
|
252
|
-
match: string[];
|
|
253
|
-
name: string;
|
|
254
|
-
}[];
|
|
255
|
-
ignore: string[];
|
|
256
|
-
}, {
|
|
257
|
-
tags: {
|
|
258
|
-
match: string[];
|
|
259
|
-
name: string;
|
|
260
|
-
}[];
|
|
261
|
-
ignore: string[];
|
|
262
|
-
}>;
|
|
263
|
-
declare const upsert_milestone: z.ZodObject<{
|
|
264
|
-
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
265
|
-
project_id: z.ZodString;
|
|
266
|
-
name: z.ZodString;
|
|
267
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
268
|
-
target_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
269
|
-
target_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
270
|
-
finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
271
|
-
after_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
272
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
273
|
-
}, "strip", z.ZodTypeAny, {
|
|
274
|
-
name: string;
|
|
275
|
-
project_id: string;
|
|
276
|
-
id?: string | null | undefined;
|
|
277
|
-
description?: string | null | undefined;
|
|
278
|
-
target_time?: string | null | undefined;
|
|
279
|
-
target_version?: string | null | undefined;
|
|
280
|
-
finished_at?: string | null | undefined;
|
|
281
|
-
after_id?: string | null | undefined;
|
|
282
|
-
force?: boolean | undefined;
|
|
283
|
-
}, {
|
|
284
|
-
name: string;
|
|
285
|
-
project_id: string;
|
|
286
|
-
id?: string | null | undefined;
|
|
287
|
-
description?: string | null | undefined;
|
|
288
|
-
target_time?: string | null | undefined;
|
|
289
|
-
target_version?: string | null | undefined;
|
|
290
|
-
finished_at?: string | null | undefined;
|
|
291
|
-
after_id?: string | null | undefined;
|
|
292
|
-
force?: boolean | undefined;
|
|
293
|
-
}>;
|
|
294
|
-
declare const upsert_goal: z.ZodObject<{
|
|
295
|
-
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
296
|
-
milestone_id: z.ZodString;
|
|
297
|
-
name: z.ZodString;
|
|
298
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
299
|
-
target_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
300
|
-
finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
302
|
-
}, "strip", z.ZodTypeAny, {
|
|
303
|
-
name: string;
|
|
304
|
-
milestone_id: string;
|
|
305
|
-
id?: string | null | undefined;
|
|
306
|
-
description?: string | null | undefined;
|
|
307
|
-
target_time?: string | null | undefined;
|
|
308
|
-
finished_at?: string | null | undefined;
|
|
309
|
-
force?: boolean | undefined;
|
|
310
|
-
}, {
|
|
311
|
-
name: string;
|
|
312
|
-
milestone_id: string;
|
|
313
|
-
id?: string | null | undefined;
|
|
314
|
-
description?: string | null | undefined;
|
|
315
|
-
target_time?: string | null | undefined;
|
|
316
|
-
finished_at?: string | null | undefined;
|
|
317
|
-
force?: boolean | undefined;
|
|
318
|
-
}>;
|
|
319
|
-
|
|
320
|
-
type User = InferSelectModel<typeof user>;
|
|
321
|
-
type Session = InferSelectModel<typeof session>;
|
|
322
|
-
type ApiKey = InferSelectModel<typeof api_keys>;
|
|
323
|
-
type Project = InferSelectModel<typeof project>;
|
|
324
|
-
type Task = InferSelectModel<typeof task>;
|
|
325
|
-
type Tag = InferSelectModel<typeof tag>;
|
|
326
|
-
type Milestone = InferSelectModel<typeof milestone>;
|
|
327
|
-
type Goal = InferSelectModel<typeof goal>;
|
|
328
|
-
type TaskTag = InferSelectModel<typeof task_tag>;
|
|
329
|
-
type Action = InferSelectModel<typeof action>;
|
|
330
|
-
type CodebaseTask = InferSelectModel<typeof codebase_tasks>;
|
|
331
|
-
type TodoUpdate = InferSelectModel<typeof todo_updates>;
|
|
332
|
-
type TrackerResult = InferSelectModel<typeof tracker_result>;
|
|
333
|
-
type TagConfig = InferSelectModel<typeof tag_config>;
|
|
334
|
-
type IgnorePath = InferSelectModel<typeof ignore_path>;
|
|
335
|
-
type UpsertProject = z.infer<typeof upsert_project>;
|
|
336
|
-
type UpsertTodo = z.infer<typeof upsert_todo>;
|
|
337
|
-
type UpsertTag = z.infer<typeof upsert_tag>;
|
|
338
|
-
type UpsertMilestone = z.infer<typeof upsert_milestone>;
|
|
339
|
-
type UpsertGoal = z.infer<typeof upsert_goal>;
|
|
340
|
-
type UpdateAction = z.infer<typeof update_action>;
|
|
341
|
-
type ProjectConfig = z.infer<typeof project_config>;
|
|
342
|
-
type SaveConfigRequest = z.infer<typeof save_config_request>;
|
|
343
|
-
interface TaskWithDetails {
|
|
344
|
-
task: Task;
|
|
345
|
-
codebase_tasks: CodebaseTask | null;
|
|
346
|
-
tags: string[];
|
|
347
|
-
}
|
|
348
|
-
interface ProjectWithTasks {
|
|
349
|
-
project: Project;
|
|
350
|
-
tasks: TaskWithDetails[];
|
|
351
|
-
}
|
|
352
|
-
interface TagWithColor {
|
|
353
|
-
id: string;
|
|
354
|
-
title: string;
|
|
355
|
-
color: string | null;
|
|
356
|
-
count?: number;
|
|
357
|
-
}
|
|
358
|
-
type GetConfigResult = {
|
|
359
|
-
config: ProjectConfig;
|
|
360
|
-
scan_branch: string;
|
|
361
|
-
};
|
|
362
|
-
declare const TAG_COLOURS: {
|
|
363
|
-
readonly red: {
|
|
364
|
-
readonly colour: "#F28B82";
|
|
365
|
-
readonly text: "#faeeef";
|
|
366
|
-
readonly border: "#F5A5A5";
|
|
367
|
-
};
|
|
368
|
-
readonly green: {
|
|
369
|
-
readonly colour: "#CCFF90";
|
|
370
|
-
readonly text: "#2E7D32";
|
|
371
|
-
readonly border: "#A5D6A7";
|
|
372
|
-
};
|
|
373
|
-
readonly blue: {
|
|
374
|
-
readonly colour: "#82B1FF";
|
|
375
|
-
readonly text: "#0D47A1";
|
|
376
|
-
readonly border: "#90CAF9";
|
|
377
|
-
};
|
|
378
|
-
readonly yellow: {
|
|
379
|
-
readonly colour: "#FFF176";
|
|
380
|
-
readonly text: "#F57F17";
|
|
381
|
-
readonly border: "#FFF59D";
|
|
382
|
-
};
|
|
383
|
-
readonly purple: {
|
|
384
|
-
readonly colour: "#E1BEE7";
|
|
385
|
-
readonly text: "#4A148C";
|
|
386
|
-
readonly border: "#CE93D8";
|
|
387
|
-
};
|
|
388
|
-
readonly orange: {
|
|
389
|
-
readonly colour: "#FFCC80";
|
|
390
|
-
readonly text: "#E65100";
|
|
391
|
-
readonly border: "#FFB74D";
|
|
392
|
-
};
|
|
393
|
-
readonly teal: {
|
|
394
|
-
readonly colour: "#80CBC4";
|
|
395
|
-
readonly text: "#004D40";
|
|
396
|
-
readonly border: "#4DB6AC";
|
|
397
|
-
};
|
|
398
|
-
readonly pink: {
|
|
399
|
-
readonly colour: "#F8BBD9";
|
|
400
|
-
readonly text: "#880E4F";
|
|
401
|
-
readonly border: "#F48FB1";
|
|
402
|
-
};
|
|
403
|
-
readonly gray: {
|
|
404
|
-
readonly colour: "#CFD8DC";
|
|
405
|
-
readonly text: "#37474F";
|
|
406
|
-
readonly border: "#B0BEC5";
|
|
407
|
-
};
|
|
408
|
-
readonly cyan: {
|
|
409
|
-
readonly colour: "#84FFFF";
|
|
410
|
-
readonly text: "#006064";
|
|
411
|
-
readonly border: "#4DD0E1";
|
|
412
|
-
};
|
|
413
|
-
readonly lime: {
|
|
414
|
-
readonly colour: "#ddf0bc";
|
|
415
|
-
readonly text: "#88b47f";
|
|
416
|
-
readonly border: "#becca5";
|
|
417
|
-
};
|
|
418
|
-
};
|
|
419
|
-
type TagColor = keyof typeof TAG_COLOURS;
|
|
420
|
-
type _FetchedTag = InferSelectModel<typeof tag>;
|
|
421
|
-
type TagWithTypedColor = Omit<_FetchedTag, "color"> & {
|
|
422
|
-
color: TagColor | null;
|
|
423
|
-
};
|
|
424
|
-
type Nullable<T> = {
|
|
425
|
-
[P in keyof T]: T[P] | null;
|
|
426
|
-
};
|
|
427
|
-
type TaskView = "list" | "grid";
|
|
428
|
-
type ScanStatus = "PENDING" | "ACCEPTED" | "REJECTED" | "IGNORED";
|
|
429
|
-
type HistoryAction = Omit<Action, "updated_at" | "owner_id" | "type"> & {
|
|
430
|
-
type: ActionType | "SCAN";
|
|
431
|
-
};
|
|
432
|
-
interface UpdateData {
|
|
433
|
-
id: string;
|
|
434
|
-
tag: string;
|
|
435
|
-
type: "SAME" | "UPDATE" | "DELETE" | "NEW" | "MOVE";
|
|
436
|
-
data: {
|
|
437
|
-
old: {
|
|
438
|
-
text: string;
|
|
439
|
-
line: number;
|
|
440
|
-
file: string;
|
|
441
|
-
context?: string[];
|
|
442
|
-
};
|
|
443
|
-
new: {
|
|
444
|
-
text: string;
|
|
445
|
-
line: number;
|
|
446
|
-
file: string;
|
|
447
|
-
context?: string[];
|
|
448
|
-
};
|
|
449
|
-
};
|
|
450
|
-
task?: TaskWithDetails;
|
|
451
|
-
}
|
|
452
|
-
type UpdateUser = z.infer<typeof update_user>;
|
|
453
|
-
type ConfigSchemaType = z.infer<typeof config_schema>;
|
|
454
|
-
|
|
455
|
-
export { type ApiKey as A, upsert_project as B, type CodebaseTask as C, upsert_todo as D, update_action as E, upsert_tag as F, type Goal as G, type HistoryAction as H, type IgnorePath as I, project_config as J, save_config_request as K, save_tags_request as L, type Milestone as M, type Nullable as N, update_user as O, type Project as P, config_schema as Q, upsert_milestone as R, type Session as S, type Task as T, type User as U, upsert_goal as V, type Tag as a, type TaskTag as b, type Action as c, type TodoUpdate as d, type TrackerResult as e, type TagConfig as f, type UpsertProject as g, type UpsertTodo as h, type UpsertTag as i, type UpsertMilestone as j, type UpsertGoal as k, type UpdateAction as l, type ProjectConfig as m, type SaveConfigRequest as n, type TaskWithDetails as o, type ProjectWithTasks as p, type TagWithColor as q, type GetConfigResult as r, TAG_COLOURS as s, type TagColor as t, type TagWithTypedColor as u, type TaskView as v, type ScanStatus as w, type UpdateData as x, type UpdateUser as y, type ConfigSchemaType as z };
|