@devpad/api 2.0.3 → 2.0.4
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-5X36WMYQ.js → chunk-5ALH7B5B.js} +7 -1
- package/dist/{chunk-INGCIUMX.js → chunk-XGQQPYSB.js} +8 -4
- package/dist/{errors.d-C73AkrdX.d.ts → errors.d-DcjQAql-.d.ts} +12 -2
- package/dist/index.d.ts +12 -4
- package/dist/index.js +81 -221
- package/dist/schema/blog.d.ts +525 -0
- package/dist/schema/index.d.ts +3 -3
- package/dist/schema/index.js +6 -2
- package/dist/schema/media.d.ts +5 -5
- package/dist/schema/media.js +5 -1
- package/dist/{schema.d-DALWdx-o.d.ts → schema.d-DcPuyqgh.d.ts} +404 -0
- package/dist/{types.d-B1VbnHQT.d.ts → types.d-BgSkvLhS.d.ts} +4284 -4284
- package/dist/{types.d-Bj4FU9Op.d.ts → types.d-CeY2wsr4.d.ts} +13 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InferSelectModel, InferInsertModel } from 'drizzle-orm';
|
|
2
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-
|
|
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-DcPuyqgh.js';
|
|
4
4
|
|
|
5
5
|
declare const upsert_project: z.ZodObject<{
|
|
6
6
|
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -18,6 +18,7 @@ declare const upsert_project: z.ZodObject<{
|
|
|
18
18
|
link_text: z.ZodNullable<z.ZodString>;
|
|
19
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
20
|
current_version: z.ZodNullable<z.ZodString>;
|
|
21
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
21
22
|
}, "strip", z.ZodTypeAny, {
|
|
22
23
|
name: string;
|
|
23
24
|
deleted: boolean;
|
|
@@ -34,6 +35,7 @@ declare const upsert_project: z.ZodObject<{
|
|
|
34
35
|
owner_id?: string | undefined;
|
|
35
36
|
status?: "DEVELOPMENT" | "PAUSED" | "RELEASED" | "LIVE" | "FINISHED" | "ABANDONED" | "STOPPED" | undefined;
|
|
36
37
|
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
38
|
+
force?: boolean | undefined;
|
|
37
39
|
}, {
|
|
38
40
|
name: string;
|
|
39
41
|
project_id: string;
|
|
@@ -50,6 +52,7 @@ declare const upsert_project: z.ZodObject<{
|
|
|
50
52
|
owner_id?: string | undefined;
|
|
51
53
|
status?: "DEVELOPMENT" | "PAUSED" | "RELEASED" | "LIVE" | "FINISHED" | "ABANDONED" | "STOPPED" | undefined;
|
|
52
54
|
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
55
|
+
force?: boolean | undefined;
|
|
53
56
|
}>;
|
|
54
57
|
declare const upsert_todo: z.ZodObject<{
|
|
55
58
|
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -64,6 +67,7 @@ declare const upsert_todo: z.ZodObject<{
|
|
|
64
67
|
owner_id: z.ZodString;
|
|
65
68
|
project_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
66
69
|
goal_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
70
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
67
71
|
}, "strip", z.ZodTypeAny, {
|
|
68
72
|
owner_id: string;
|
|
69
73
|
id?: string | null | undefined;
|
|
@@ -77,6 +81,7 @@ declare const upsert_todo: z.ZodObject<{
|
|
|
77
81
|
end_time?: string | null | undefined;
|
|
78
82
|
summary?: string | null | undefined;
|
|
79
83
|
priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
|
|
84
|
+
force?: boolean | undefined;
|
|
80
85
|
}, {
|
|
81
86
|
owner_id: string;
|
|
82
87
|
id?: string | null | undefined;
|
|
@@ -90,6 +95,7 @@ declare const upsert_todo: z.ZodObject<{
|
|
|
90
95
|
end_time?: string | null | undefined;
|
|
91
96
|
summary?: string | null | undefined;
|
|
92
97
|
priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
|
|
98
|
+
force?: boolean | undefined;
|
|
93
99
|
}>;
|
|
94
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">]>;
|
|
95
101
|
declare const ConfigSchema: z.ZodObject<{
|
|
@@ -288,6 +294,7 @@ declare const upsert_milestone: z.ZodObject<{
|
|
|
288
294
|
target_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
289
295
|
finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
290
296
|
after_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
297
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
291
298
|
}, "strip", z.ZodTypeAny, {
|
|
292
299
|
name: string;
|
|
293
300
|
project_id: string;
|
|
@@ -297,6 +304,7 @@ declare const upsert_milestone: z.ZodObject<{
|
|
|
297
304
|
target_version?: string | null | undefined;
|
|
298
305
|
finished_at?: string | null | undefined;
|
|
299
306
|
after_id?: string | null | undefined;
|
|
307
|
+
force?: boolean | undefined;
|
|
300
308
|
}, {
|
|
301
309
|
name: string;
|
|
302
310
|
project_id: string;
|
|
@@ -306,6 +314,7 @@ declare const upsert_milestone: z.ZodObject<{
|
|
|
306
314
|
target_version?: string | null | undefined;
|
|
307
315
|
finished_at?: string | null | undefined;
|
|
308
316
|
after_id?: string | null | undefined;
|
|
317
|
+
force?: boolean | undefined;
|
|
309
318
|
}>;
|
|
310
319
|
declare const upsert_goal: z.ZodObject<{
|
|
311
320
|
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -314,6 +323,7 @@ declare const upsert_goal: z.ZodObject<{
|
|
|
314
323
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
315
324
|
target_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
316
325
|
finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
326
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
317
327
|
}, "strip", z.ZodTypeAny, {
|
|
318
328
|
name: string;
|
|
319
329
|
milestone_id: string;
|
|
@@ -321,6 +331,7 @@ declare const upsert_goal: z.ZodObject<{
|
|
|
321
331
|
description?: string | null | undefined;
|
|
322
332
|
target_time?: string | null | undefined;
|
|
323
333
|
finished_at?: string | null | undefined;
|
|
334
|
+
force?: boolean | undefined;
|
|
324
335
|
}, {
|
|
325
336
|
name: string;
|
|
326
337
|
milestone_id: string;
|
|
@@ -328,6 +339,7 @@ declare const upsert_goal: z.ZodObject<{
|
|
|
328
339
|
description?: string | null | undefined;
|
|
329
340
|
target_time?: string | null | undefined;
|
|
330
341
|
finished_at?: string | null | undefined;
|
|
342
|
+
force?: boolean | undefined;
|
|
331
343
|
}>;
|
|
332
344
|
|
|
333
345
|
type User = InferSelectModel<typeof user>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devpad/api",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "f0rbit",
|
|
6
6
|
"url": "https://github.com/f0rbit"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"zod": "^3.22.4"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@devpad/schema": "^2.0.
|
|
30
|
+
"@devpad/schema": "^2.0.4",
|
|
31
31
|
"@types/node": "^20.11.24",
|
|
32
32
|
"bun-types": "latest",
|
|
33
33
|
"eslint": "^8.57.0",
|