@btst/stack 3.0.0 → 3.0.1
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/README.md +115 -223
- package/dist/packages/stack/src/plugins/blog/client/components/pages/post-page.internal.cjs +2 -2
- package/dist/packages/stack/src/plugins/blog/client/components/pages/post-page.internal.mjs +2 -2
- package/dist/packages/stack/src/plugins/blog/client/components/shared/format-post-date.cjs +13 -0
- package/dist/packages/stack/src/plugins/blog/client/components/shared/format-post-date.mjs +11 -0
- package/dist/packages/stack/src/plugins/blog/client/components/shared/post-card.cjs +4 -6
- package/dist/packages/stack/src/plugins/blog/client/components/shared/post-card.mjs +4 -6
- package/dist/plugins/blog/api/index.d.cts +2 -2
- package/dist/plugins/blog/api/index.d.mts +2 -2
- package/dist/plugins/blog/api/index.d.ts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.cts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.mts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.ts +2 -2
- package/dist/plugins/blog/client/index.d.cts +2 -2
- package/dist/plugins/blog/client/index.d.mts +2 -2
- package/dist/plugins/blog/client/index.d.ts +2 -2
- package/dist/plugins/blog/query-keys.d.cts +2 -2
- package/dist/plugins/blog/query-keys.d.mts +2 -2
- package/dist/plugins/blog/query-keys.d.ts +2 -2
- package/dist/plugins/kanban/api/index.d.cts +1 -1
- package/dist/plugins/kanban/api/index.d.mts +1 -1
- package/dist/plugins/kanban/api/index.d.ts +1 -1
- package/dist/plugins/kanban/client/hooks/index.d.cts +1 -1
- package/dist/plugins/kanban/client/hooks/index.d.mts +1 -1
- package/dist/plugins/kanban/client/hooks/index.d.ts +1 -1
- package/dist/plugins/kanban/client/index.d.cts +1 -1
- package/dist/plugins/kanban/client/index.d.mts +1 -1
- package/dist/plugins/kanban/client/index.d.ts +1 -1
- package/dist/plugins/kanban/query-keys.d.cts +1 -1
- package/dist/plugins/kanban/query-keys.d.mts +1 -1
- package/dist/plugins/kanban/query-keys.d.ts +1 -1
- package/dist/shared/{stack.D2y4gl03.d.mts → stack.94kN3pEK.d.mts} +5 -5
- package/dist/shared/{stack.rmWRtSjs.d.cts → stack.BTStHVTy.d.cts} +5 -5
- package/dist/shared/{stack.CZ1h_T4k.d.mts → stack.BggTHKlo.d.mts} +90 -90
- package/dist/shared/{stack.DiYg7Jw1.d.cts → stack.CtrnoQgH.d.cts} +90 -90
- package/dist/shared/{stack.CnDMBj4z.d.ts → stack.DfrRYOIl.d.ts} +5 -5
- package/dist/shared/{stack.DQpyA3Cq.d.ts → stack.lPKwd_v0.d.ts} +90 -90
- package/package.json +1 -1
- package/src/__tests__/initial-identity-hydration.test.tsx +72 -1
- package/src/plugins/blog/__tests__/date-hydration.test.tsx +78 -0
- package/src/plugins/blog/client/components/pages/post-page.internal.tsx +2 -2
- package/src/plugins/blog/client/components/shared/format-post-date.ts +12 -0
- package/src/plugins/blog/client/components/shared/post-card.tsx +4 -6
- package/dist/shared/{stack.Y91icYuv.d.ts → stack.0y6iTP03.d.ts} +75 -75
- package/dist/shared/{stack.CMc8mLyD.d.mts → stack.B1UrNoVl.d.mts} +75 -75
- package/dist/shared/{stack.DtZgEX84.d.cts → stack.CKc_Bais.d.cts} +6 -6
- package/dist/shared/{stack.DtZgEX84.d.mts → stack.CKc_Bais.d.mts} +6 -6
- package/dist/shared/{stack.DtZgEX84.d.ts → stack.CKc_Bais.d.ts} +6 -6
- package/dist/shared/{stack._CObfJbw.d.cts → stack.Mak7pzIV.d.cts} +75 -75
|
@@ -15,9 +15,9 @@ declare const BoardIdOperationInputSchema: z.ZodObject<{
|
|
|
15
15
|
declare const UpdateBoardOperationInputSchema: z.ZodObject<{
|
|
16
16
|
id: z.ZodString;
|
|
17
17
|
data: z.ZodObject<{
|
|
18
|
+
name: z.ZodOptional<z.ZodString>;
|
|
18
19
|
slug: z.ZodOptional<z.ZodString>;
|
|
19
20
|
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
20
|
-
name: z.ZodOptional<z.ZodString>;
|
|
21
21
|
}, z.core.$strip>;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
declare const ColumnIdOperationInputSchema: z.ZodObject<{
|
|
@@ -26,9 +26,9 @@ declare const ColumnIdOperationInputSchema: z.ZodObject<{
|
|
|
26
26
|
declare const UpdateColumnOperationInputSchema: z.ZodObject<{
|
|
27
27
|
id: z.ZodString;
|
|
28
28
|
data: z.ZodObject<{
|
|
29
|
+
order: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
29
30
|
title: z.ZodOptional<z.ZodString>;
|
|
30
31
|
boardId: z.ZodOptional<z.ZodString>;
|
|
31
|
-
order: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
}, z.core.$strip>;
|
|
34
34
|
declare const TaskIdOperationInputSchema: z.ZodObject<{
|
|
@@ -37,19 +37,19 @@ declare const TaskIdOperationInputSchema: z.ZodObject<{
|
|
|
37
37
|
declare const UpdateTaskOperationInputSchema: z.ZodObject<{
|
|
38
38
|
id: z.ZodString;
|
|
39
39
|
data: z.ZodObject<{
|
|
40
|
-
title: z.ZodOptional<z.ZodString>;
|
|
41
40
|
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
42
|
-
columnId: z.ZodOptional<z.ZodString>;
|
|
43
|
-
assigneeId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
44
|
-
isArchived: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
45
41
|
order: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
46
|
-
|
|
42
|
+
title: z.ZodOptional<z.ZodString>;
|
|
47
43
|
priority: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
48
44
|
LOW: "LOW";
|
|
49
45
|
MEDIUM: "MEDIUM";
|
|
50
46
|
HIGH: "HIGH";
|
|
51
47
|
URGENT: "URGENT";
|
|
52
48
|
}>>>;
|
|
49
|
+
isArchived: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
50
|
+
completedAt: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodISODateTime, z.ZodDate]>, z.ZodTransform<string, string | Date>>>>;
|
|
51
|
+
columnId: z.ZodOptional<z.ZodString>;
|
|
52
|
+
assigneeId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
53
53
|
}, z.core.$strip>;
|
|
54
54
|
}, z.core.$strip>;
|
|
55
55
|
interface KanbanBoardListResult {
|
|
@@ -129,20 +129,20 @@ declare const kanbanBackendPlugin: (options?: KanbanBackendOptions) => _btst_sta
|
|
|
129
129
|
readonly items: readonly {
|
|
130
130
|
readonly columns: readonly {
|
|
131
131
|
readonly id: string;
|
|
132
|
-
readonly title: string;
|
|
133
|
-
readonly boardId: string;
|
|
134
|
-
readonly order: number;
|
|
135
132
|
readonly createdAt: string;
|
|
136
133
|
readonly updatedAt: string;
|
|
134
|
+
readonly order: number;
|
|
135
|
+
readonly title: string;
|
|
136
|
+
readonly boardId: string;
|
|
137
137
|
}[];
|
|
138
|
-
readonly slug: string;
|
|
139
|
-
readonly ownerId?: string | undefined;
|
|
140
|
-
readonly organizationId?: string | undefined;
|
|
141
138
|
readonly id: string;
|
|
142
|
-
readonly description?: string | undefined;
|
|
143
|
-
readonly name: string;
|
|
144
139
|
readonly createdAt: string;
|
|
145
140
|
readonly updatedAt: string;
|
|
141
|
+
readonly name: string;
|
|
142
|
+
readonly slug: string;
|
|
143
|
+
readonly description?: string | undefined;
|
|
144
|
+
readonly ownerId?: string | undefined;
|
|
145
|
+
readonly organizationId?: string | undefined;
|
|
146
146
|
}[];
|
|
147
147
|
readonly total: number;
|
|
148
148
|
readonly limit?: number | undefined;
|
|
@@ -164,27 +164,27 @@ declare const kanbanBackendPlugin: (options?: KanbanBackendOptions) => _btst_sta
|
|
|
164
164
|
readonly createdAt: string;
|
|
165
165
|
readonly updatedAt: string;
|
|
166
166
|
readonly id: string;
|
|
167
|
-
readonly title: string;
|
|
168
167
|
readonly description?: string | undefined;
|
|
169
|
-
readonly columnId: string;
|
|
170
|
-
readonly assigneeId?: string | null | undefined;
|
|
171
|
-
readonly isArchived: boolean;
|
|
172
168
|
readonly order: number;
|
|
169
|
+
readonly title: string;
|
|
173
170
|
readonly priority: Priority;
|
|
171
|
+
readonly isArchived: boolean;
|
|
172
|
+
readonly columnId: string;
|
|
173
|
+
readonly assigneeId?: string | null | undefined;
|
|
174
174
|
}[] | undefined;
|
|
175
175
|
readonly id: string;
|
|
176
|
+
readonly order: number;
|
|
176
177
|
readonly title: string;
|
|
177
178
|
readonly boardId: string;
|
|
178
|
-
readonly order: number;
|
|
179
179
|
}[];
|
|
180
180
|
readonly createdAt: string;
|
|
181
181
|
readonly updatedAt: string;
|
|
182
|
+
readonly id: string;
|
|
183
|
+
readonly name: string;
|
|
182
184
|
readonly slug: string;
|
|
185
|
+
readonly description?: string | undefined;
|
|
183
186
|
readonly ownerId?: string | undefined;
|
|
184
187
|
readonly organizationId?: string | undefined;
|
|
185
|
-
readonly id: string;
|
|
186
|
-
readonly description?: string | undefined;
|
|
187
|
-
readonly name: string;
|
|
188
188
|
}>;
|
|
189
189
|
readonly createBoard: better_call.StrictEndpoint<"/boards", {
|
|
190
190
|
requireRequest: true;
|
|
@@ -208,40 +208,40 @@ declare const kanbanBackendPlugin: (options?: KanbanBackendOptions) => _btst_sta
|
|
|
208
208
|
readonly createdAt: string;
|
|
209
209
|
readonly updatedAt: string;
|
|
210
210
|
readonly id: string;
|
|
211
|
-
readonly title: string;
|
|
212
211
|
readonly description?: string | undefined;
|
|
213
|
-
readonly columnId: string;
|
|
214
|
-
readonly assigneeId?: string | null | undefined;
|
|
215
|
-
readonly isArchived: boolean;
|
|
216
212
|
readonly order: number;
|
|
213
|
+
readonly title: string;
|
|
217
214
|
readonly priority: Priority;
|
|
215
|
+
readonly isArchived: boolean;
|
|
216
|
+
readonly columnId: string;
|
|
217
|
+
readonly assigneeId?: string | null | undefined;
|
|
218
218
|
}[] | undefined;
|
|
219
219
|
readonly id: string;
|
|
220
|
+
readonly order: number;
|
|
220
221
|
readonly title: string;
|
|
221
222
|
readonly boardId: string;
|
|
222
|
-
readonly order: number;
|
|
223
223
|
}[];
|
|
224
224
|
readonly createdAt: string;
|
|
225
225
|
readonly updatedAt: string;
|
|
226
|
+
readonly id: string;
|
|
227
|
+
readonly name: string;
|
|
226
228
|
readonly slug: string;
|
|
229
|
+
readonly description?: string | undefined;
|
|
227
230
|
readonly ownerId?: string | undefined;
|
|
228
231
|
readonly organizationId?: string | undefined;
|
|
229
|
-
readonly id: string;
|
|
230
|
-
readonly description?: string | undefined;
|
|
231
|
-
readonly name: string;
|
|
232
232
|
}>;
|
|
233
233
|
readonly updateBoard: better_call.StrictEndpoint<"/boards/:id", {
|
|
234
234
|
requireRequest: true;
|
|
235
235
|
} & {
|
|
236
236
|
method: "PUT";
|
|
237
237
|
body: better_call.StandardSchemaV1<{
|
|
238
|
+
name?: string | undefined;
|
|
238
239
|
slug?: string | undefined;
|
|
239
240
|
description?: string | undefined;
|
|
240
|
-
name?: string | undefined;
|
|
241
241
|
}, {
|
|
242
|
+
name?: string | undefined;
|
|
242
243
|
slug?: string | undefined;
|
|
243
244
|
description?: string | undefined;
|
|
244
|
-
name?: string | undefined;
|
|
245
245
|
}>;
|
|
246
246
|
}, {
|
|
247
247
|
readonly createdAt: string;
|
|
@@ -254,25 +254,25 @@ declare const kanbanBackendPlugin: (options?: KanbanBackendOptions) => _btst_sta
|
|
|
254
254
|
readonly createdAt: string;
|
|
255
255
|
readonly updatedAt: string;
|
|
256
256
|
readonly id: string;
|
|
257
|
-
readonly title: string;
|
|
258
257
|
readonly description?: string | undefined;
|
|
259
|
-
readonly columnId: string;
|
|
260
|
-
readonly assigneeId?: string | null | undefined;
|
|
261
|
-
readonly isArchived: boolean;
|
|
262
258
|
readonly order: number;
|
|
259
|
+
readonly title: string;
|
|
263
260
|
readonly priority: Priority;
|
|
261
|
+
readonly isArchived: boolean;
|
|
262
|
+
readonly columnId: string;
|
|
263
|
+
readonly assigneeId?: string | null | undefined;
|
|
264
264
|
}[] | undefined;
|
|
265
265
|
readonly id: string;
|
|
266
|
+
readonly order: number;
|
|
266
267
|
readonly title: string;
|
|
267
268
|
readonly boardId: string;
|
|
268
|
-
readonly order: number;
|
|
269
269
|
}[] | undefined;
|
|
270
|
+
readonly id: string;
|
|
271
|
+
readonly name: string;
|
|
270
272
|
readonly slug: string;
|
|
273
|
+
readonly description?: string | undefined;
|
|
271
274
|
readonly ownerId?: string | undefined;
|
|
272
275
|
readonly organizationId?: string | undefined;
|
|
273
|
-
readonly id: string;
|
|
274
|
-
readonly description?: string | undefined;
|
|
275
|
-
readonly name: string;
|
|
276
276
|
}>;
|
|
277
277
|
readonly deleteBoard: better_call.StrictEndpoint<"/boards/:id", {
|
|
278
278
|
requireRequest: true;
|
|
@@ -303,31 +303,31 @@ declare const kanbanBackendPlugin: (options?: KanbanBackendOptions) => _btst_sta
|
|
|
303
303
|
readonly createdAt: string;
|
|
304
304
|
readonly updatedAt: string;
|
|
305
305
|
readonly id: string;
|
|
306
|
-
readonly title: string;
|
|
307
306
|
readonly description?: string | undefined;
|
|
308
|
-
readonly columnId: string;
|
|
309
|
-
readonly assigneeId?: string | null | undefined;
|
|
310
|
-
readonly isArchived: boolean;
|
|
311
307
|
readonly order: number;
|
|
308
|
+
readonly title: string;
|
|
312
309
|
readonly priority: Priority;
|
|
310
|
+
readonly isArchived: boolean;
|
|
311
|
+
readonly columnId: string;
|
|
312
|
+
readonly assigneeId?: string | null | undefined;
|
|
313
313
|
}[] | undefined;
|
|
314
314
|
readonly id: string;
|
|
315
|
+
readonly order: number;
|
|
315
316
|
readonly title: string;
|
|
316
317
|
readonly boardId: string;
|
|
317
|
-
readonly order: number;
|
|
318
318
|
}>;
|
|
319
319
|
readonly updateColumn: better_call.StrictEndpoint<"/columns/:id", {
|
|
320
320
|
requireRequest: true;
|
|
321
321
|
} & {
|
|
322
322
|
method: "PUT";
|
|
323
323
|
body: better_call.StandardSchemaV1<{
|
|
324
|
+
order?: number | undefined;
|
|
324
325
|
title?: string | undefined;
|
|
325
326
|
boardId?: string | undefined;
|
|
326
|
-
order?: number | undefined;
|
|
327
327
|
}, {
|
|
328
|
+
order?: number | undefined;
|
|
328
329
|
title?: string | undefined;
|
|
329
330
|
boardId?: string | undefined;
|
|
330
|
-
order?: number | undefined;
|
|
331
331
|
}>;
|
|
332
332
|
}, {
|
|
333
333
|
readonly createdAt: string;
|
|
@@ -337,18 +337,18 @@ declare const kanbanBackendPlugin: (options?: KanbanBackendOptions) => _btst_sta
|
|
|
337
337
|
readonly createdAt: string;
|
|
338
338
|
readonly updatedAt: string;
|
|
339
339
|
readonly id: string;
|
|
340
|
-
readonly title: string;
|
|
341
340
|
readonly description?: string | undefined;
|
|
342
|
-
readonly columnId: string;
|
|
343
|
-
readonly assigneeId?: string | null | undefined;
|
|
344
|
-
readonly isArchived: boolean;
|
|
345
341
|
readonly order: number;
|
|
342
|
+
readonly title: string;
|
|
346
343
|
readonly priority: Priority;
|
|
344
|
+
readonly isArchived: boolean;
|
|
345
|
+
readonly columnId: string;
|
|
346
|
+
readonly assigneeId?: string | null | undefined;
|
|
347
347
|
}[] | undefined;
|
|
348
348
|
readonly id: string;
|
|
349
|
+
readonly order: number;
|
|
349
350
|
readonly title: string;
|
|
350
351
|
readonly boardId: string;
|
|
351
|
-
readonly order: number;
|
|
352
352
|
}>;
|
|
353
353
|
readonly deleteColumn: better_call.StrictEndpoint<"/columns/:id", {
|
|
354
354
|
requireRequest: true;
|
|
@@ -400,49 +400,49 @@ declare const kanbanBackendPlugin: (options?: KanbanBackendOptions) => _btst_sta
|
|
|
400
400
|
readonly createdAt: string;
|
|
401
401
|
readonly updatedAt: string;
|
|
402
402
|
readonly id: string;
|
|
403
|
-
readonly title: string;
|
|
404
403
|
readonly description?: string | undefined;
|
|
405
|
-
readonly columnId: string;
|
|
406
|
-
readonly assigneeId?: string | null | undefined;
|
|
407
|
-
readonly isArchived: boolean;
|
|
408
404
|
readonly order: number;
|
|
405
|
+
readonly title: string;
|
|
409
406
|
readonly priority: Priority;
|
|
407
|
+
readonly isArchived: boolean;
|
|
408
|
+
readonly columnId: string;
|
|
409
|
+
readonly assigneeId?: string | null | undefined;
|
|
410
410
|
}>;
|
|
411
411
|
readonly updateTask: better_call.StrictEndpoint<"/tasks/:id", {
|
|
412
412
|
requireRequest: true;
|
|
413
413
|
} & {
|
|
414
414
|
method: "PUT";
|
|
415
415
|
body: better_call.StandardSchemaV1<{
|
|
416
|
-
title?: string | undefined;
|
|
417
416
|
description?: string | undefined;
|
|
418
|
-
columnId?: string | undefined;
|
|
419
|
-
assigneeId?: string | null | undefined;
|
|
420
|
-
isArchived?: boolean | undefined;
|
|
421
417
|
order?: number | undefined;
|
|
422
|
-
completedAt?: string | Date | undefined;
|
|
423
|
-
priority?: "LOW" | "MEDIUM" | "HIGH" | "URGENT" | undefined;
|
|
424
|
-
}, {
|
|
425
418
|
title?: string | undefined;
|
|
426
|
-
|
|
419
|
+
priority?: "LOW" | "MEDIUM" | "HIGH" | "URGENT" | undefined;
|
|
420
|
+
isArchived?: boolean | undefined;
|
|
421
|
+
completedAt?: string | Date | undefined;
|
|
427
422
|
columnId?: string | undefined;
|
|
428
423
|
assigneeId?: string | null | undefined;
|
|
429
|
-
|
|
424
|
+
}, {
|
|
425
|
+
description?: string | undefined;
|
|
430
426
|
order?: number | undefined;
|
|
431
|
-
|
|
427
|
+
title?: string | undefined;
|
|
432
428
|
priority?: "LOW" | "MEDIUM" | "HIGH" | "URGENT" | undefined;
|
|
429
|
+
isArchived?: boolean | undefined;
|
|
430
|
+
completedAt?: string | Date | undefined;
|
|
431
|
+
columnId?: string | undefined;
|
|
432
|
+
assigneeId?: string | null | undefined;
|
|
433
433
|
}>;
|
|
434
434
|
}, {
|
|
435
435
|
readonly completedAt?: string | undefined;
|
|
436
436
|
readonly createdAt: string;
|
|
437
437
|
readonly updatedAt: string;
|
|
438
438
|
readonly id: string;
|
|
439
|
-
readonly title: string;
|
|
440
439
|
readonly description?: string | undefined;
|
|
441
|
-
readonly columnId: string;
|
|
442
|
-
readonly assigneeId?: string | null | undefined;
|
|
443
|
-
readonly isArchived: boolean;
|
|
444
440
|
readonly order: number;
|
|
441
|
+
readonly title: string;
|
|
445
442
|
readonly priority: Priority;
|
|
443
|
+
readonly isArchived: boolean;
|
|
444
|
+
readonly columnId: string;
|
|
445
|
+
readonly assigneeId?: string | null | undefined;
|
|
446
446
|
}>;
|
|
447
447
|
readonly deleteTask: better_call.StrictEndpoint<"/tasks/:id", {
|
|
448
448
|
requireRequest: true;
|
|
@@ -470,13 +470,13 @@ declare const kanbanBackendPlugin: (options?: KanbanBackendOptions) => _btst_sta
|
|
|
470
470
|
readonly createdAt: string;
|
|
471
471
|
readonly updatedAt: string;
|
|
472
472
|
readonly id: string;
|
|
473
|
-
readonly title: string;
|
|
474
473
|
readonly description?: string | undefined;
|
|
475
|
-
readonly columnId: string;
|
|
476
|
-
readonly assigneeId?: string | null | undefined;
|
|
477
|
-
readonly isArchived: boolean;
|
|
478
474
|
readonly order: number;
|
|
475
|
+
readonly title: string;
|
|
479
476
|
readonly priority: Priority;
|
|
477
|
+
readonly isArchived: boolean;
|
|
478
|
+
readonly columnId: string;
|
|
479
|
+
readonly assigneeId?: string | null | undefined;
|
|
480
480
|
}>;
|
|
481
481
|
readonly reorderTasks: better_call.StrictEndpoint<"/tasks/reorder", {
|
|
482
482
|
requireRequest: true;
|
|
@@ -2,11 +2,14 @@ import { z } from 'zod';
|
|
|
2
2
|
|
|
3
3
|
declare const createPostSchema: z.ZodObject<{
|
|
4
4
|
slug: z.ZodOptional<z.ZodString>;
|
|
5
|
-
|
|
6
|
-
title: z.ZodString;
|
|
5
|
+
publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
7
6
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
8
7
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
9
|
-
|
|
8
|
+
title: z.ZodString;
|
|
9
|
+
content: z.ZodString;
|
|
10
|
+
excerpt: z.ZodString;
|
|
11
|
+
image: z.ZodOptional<z.ZodString>;
|
|
12
|
+
published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10
13
|
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
11
14
|
name: z.ZodString;
|
|
12
15
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -14,9 +17,6 @@ declare const createPostSchema: z.ZodObject<{
|
|
|
14
17
|
name: z.ZodString;
|
|
15
18
|
slug: z.ZodString;
|
|
16
19
|
}, z.core.$strip>]>>>>;
|
|
17
|
-
content: z.ZodString;
|
|
18
|
-
excerpt: z.ZodString;
|
|
19
|
-
image: z.ZodOptional<z.ZodString>;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
declare const updatePostSchema: z.ZodObject<{
|
|
22
22
|
publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -2,11 +2,14 @@ import { z } from 'zod';
|
|
|
2
2
|
|
|
3
3
|
declare const createPostSchema: z.ZodObject<{
|
|
4
4
|
slug: z.ZodOptional<z.ZodString>;
|
|
5
|
-
|
|
6
|
-
title: z.ZodString;
|
|
5
|
+
publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
7
6
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
8
7
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
9
|
-
|
|
8
|
+
title: z.ZodString;
|
|
9
|
+
content: z.ZodString;
|
|
10
|
+
excerpt: z.ZodString;
|
|
11
|
+
image: z.ZodOptional<z.ZodString>;
|
|
12
|
+
published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10
13
|
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
11
14
|
name: z.ZodString;
|
|
12
15
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -14,9 +17,6 @@ declare const createPostSchema: z.ZodObject<{
|
|
|
14
17
|
name: z.ZodString;
|
|
15
18
|
slug: z.ZodString;
|
|
16
19
|
}, z.core.$strip>]>>>>;
|
|
17
|
-
content: z.ZodString;
|
|
18
|
-
excerpt: z.ZodString;
|
|
19
|
-
image: z.ZodOptional<z.ZodString>;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
declare const updatePostSchema: z.ZodObject<{
|
|
22
22
|
publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -2,11 +2,14 @@ import { z } from 'zod';
|
|
|
2
2
|
|
|
3
3
|
declare const createPostSchema: z.ZodObject<{
|
|
4
4
|
slug: z.ZodOptional<z.ZodString>;
|
|
5
|
-
|
|
6
|
-
title: z.ZodString;
|
|
5
|
+
publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
7
6
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
8
7
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
9
|
-
|
|
8
|
+
title: z.ZodString;
|
|
9
|
+
content: z.ZodString;
|
|
10
|
+
excerpt: z.ZodString;
|
|
11
|
+
image: z.ZodOptional<z.ZodString>;
|
|
12
|
+
published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10
13
|
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
11
14
|
name: z.ZodString;
|
|
12
15
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -14,9 +17,6 @@ declare const createPostSchema: z.ZodObject<{
|
|
|
14
17
|
name: z.ZodString;
|
|
15
18
|
slug: z.ZodString;
|
|
16
19
|
}, z.core.$strip>]>>>>;
|
|
17
|
-
content: z.ZodString;
|
|
18
|
-
excerpt: z.ZodString;
|
|
19
|
-
image: z.ZodOptional<z.ZodString>;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
declare const updatePostSchema: z.ZodObject<{
|
|
22
22
|
publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|