@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.
Files changed (49) hide show
  1. package/README.md +115 -223
  2. package/dist/packages/stack/src/plugins/blog/client/components/pages/post-page.internal.cjs +2 -2
  3. package/dist/packages/stack/src/plugins/blog/client/components/pages/post-page.internal.mjs +2 -2
  4. package/dist/packages/stack/src/plugins/blog/client/components/shared/format-post-date.cjs +13 -0
  5. package/dist/packages/stack/src/plugins/blog/client/components/shared/format-post-date.mjs +11 -0
  6. package/dist/packages/stack/src/plugins/blog/client/components/shared/post-card.cjs +4 -6
  7. package/dist/packages/stack/src/plugins/blog/client/components/shared/post-card.mjs +4 -6
  8. package/dist/plugins/blog/api/index.d.cts +2 -2
  9. package/dist/plugins/blog/api/index.d.mts +2 -2
  10. package/dist/plugins/blog/api/index.d.ts +2 -2
  11. package/dist/plugins/blog/client/hooks/index.d.cts +2 -2
  12. package/dist/plugins/blog/client/hooks/index.d.mts +2 -2
  13. package/dist/plugins/blog/client/hooks/index.d.ts +2 -2
  14. package/dist/plugins/blog/client/index.d.cts +2 -2
  15. package/dist/plugins/blog/client/index.d.mts +2 -2
  16. package/dist/plugins/blog/client/index.d.ts +2 -2
  17. package/dist/plugins/blog/query-keys.d.cts +2 -2
  18. package/dist/plugins/blog/query-keys.d.mts +2 -2
  19. package/dist/plugins/blog/query-keys.d.ts +2 -2
  20. package/dist/plugins/kanban/api/index.d.cts +1 -1
  21. package/dist/plugins/kanban/api/index.d.mts +1 -1
  22. package/dist/plugins/kanban/api/index.d.ts +1 -1
  23. package/dist/plugins/kanban/client/hooks/index.d.cts +1 -1
  24. package/dist/plugins/kanban/client/hooks/index.d.mts +1 -1
  25. package/dist/plugins/kanban/client/hooks/index.d.ts +1 -1
  26. package/dist/plugins/kanban/client/index.d.cts +1 -1
  27. package/dist/plugins/kanban/client/index.d.mts +1 -1
  28. package/dist/plugins/kanban/client/index.d.ts +1 -1
  29. package/dist/plugins/kanban/query-keys.d.cts +1 -1
  30. package/dist/plugins/kanban/query-keys.d.mts +1 -1
  31. package/dist/plugins/kanban/query-keys.d.ts +1 -1
  32. package/dist/shared/{stack.D2y4gl03.d.mts → stack.94kN3pEK.d.mts} +5 -5
  33. package/dist/shared/{stack.rmWRtSjs.d.cts → stack.BTStHVTy.d.cts} +5 -5
  34. package/dist/shared/{stack.CZ1h_T4k.d.mts → stack.BggTHKlo.d.mts} +90 -90
  35. package/dist/shared/{stack.DiYg7Jw1.d.cts → stack.CtrnoQgH.d.cts} +90 -90
  36. package/dist/shared/{stack.CnDMBj4z.d.ts → stack.DfrRYOIl.d.ts} +5 -5
  37. package/dist/shared/{stack.DQpyA3Cq.d.ts → stack.lPKwd_v0.d.ts} +90 -90
  38. package/package.json +1 -1
  39. package/src/__tests__/initial-identity-hydration.test.tsx +72 -1
  40. package/src/plugins/blog/__tests__/date-hydration.test.tsx +78 -0
  41. package/src/plugins/blog/client/components/pages/post-page.internal.tsx +2 -2
  42. package/src/plugins/blog/client/components/shared/format-post-date.ts +12 -0
  43. package/src/plugins/blog/client/components/shared/post-card.tsx +4 -6
  44. package/dist/shared/{stack.Y91icYuv.d.ts → stack.0y6iTP03.d.ts} +75 -75
  45. package/dist/shared/{stack.CMc8mLyD.d.mts → stack.B1UrNoVl.d.mts} +75 -75
  46. package/dist/shared/{stack.DtZgEX84.d.cts → stack.CKc_Bais.d.cts} +6 -6
  47. package/dist/shared/{stack.DtZgEX84.d.mts → stack.CKc_Bais.d.mts} +6 -6
  48. package/dist/shared/{stack.DtZgEX84.d.ts → stack.CKc_Bais.d.ts} +6 -6
  49. package/dist/shared/{stack._CObfJbw.d.cts → stack.Mak7pzIV.d.cts} +75 -75
@@ -2,7 +2,7 @@ import * as _btst_stack_plugins_client from '@btst/stack/plugins/client';
2
2
  import { createApiClient } from '@btst/stack/plugins/client';
3
3
  import * as zod from 'zod';
4
4
  import { z } from 'zod';
5
- import { c as createPostSchema, u as updatePostSchema } from './stack.DtZgEX84.cjs';
5
+ import { c as createPostSchema, u as updatePostSchema } from './stack.CKc_Bais.cjs';
6
6
  import { P as Post, T as Tag, S as SerializedPost, a as SerializedTag } from './stack.Dsatjh0B.cjs';
7
7
  import * as _btst_stack_plugins_api from '@btst/stack/plugins/api';
8
8
  import { DeepReadonly, OperationContext, OperationErrorContext } from '@btst/stack/plugins/api';
@@ -90,8 +90,11 @@ declare const NextPreviousPostsQuerySchema: z.ZodObject<{
90
90
  }, z.core.$strip>;
91
91
  declare const CreatePostOperationInputSchema: z.ZodObject<{
92
92
  slug: z.ZodOptional<z.ZodString>;
93
- published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
94
93
  title: z.ZodString;
94
+ content: z.ZodString;
95
+ excerpt: z.ZodString;
96
+ image: z.ZodOptional<z.ZodString>;
97
+ published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
95
98
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
96
99
  name: z.ZodString;
97
100
  }, z.core.$strip>, z.ZodObject<{
@@ -99,9 +102,6 @@ declare const CreatePostOperationInputSchema: z.ZodObject<{
99
102
  name: z.ZodString;
100
103
  slug: z.ZodString;
101
104
  }, z.core.$strip>]>>>>;
102
- content: z.ZodString;
103
- excerpt: z.ZodString;
104
- image: z.ZodOptional<z.ZodString>;
105
105
  publishedAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
106
106
  createdAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
107
107
  updatedAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
@@ -110,8 +110,11 @@ declare const UpdatePostOperationInputSchema: z.ZodObject<{
110
110
  id: z.ZodString;
111
111
  data: z.ZodObject<{
112
112
  slug: z.ZodString;
113
- published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
114
113
  title: z.ZodString;
114
+ content: z.ZodString;
115
+ excerpt: z.ZodString;
116
+ image: z.ZodOptional<z.ZodString>;
117
+ published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
115
118
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
116
119
  name: z.ZodString;
117
120
  }, z.core.$strip>, z.ZodObject<{
@@ -119,9 +122,6 @@ declare const UpdatePostOperationInputSchema: z.ZodObject<{
119
122
  name: z.ZodString;
120
123
  slug: z.ZodString;
121
124
  }, z.core.$strip>]>>>>;
122
- content: z.ZodString;
123
- excerpt: z.ZodString;
124
- image: z.ZodOptional<z.ZodString>;
125
125
  publishedAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
126
126
  createdAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
127
127
  updatedAt: z.ZodOptional<z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>>;
@@ -244,22 +244,22 @@ declare function serializeListResult(result: Awaited<ReturnType<typeof getAllPos
244
244
  tags: {
245
245
  createdAt: string;
246
246
  updatedAt: string;
247
- slug: string;
248
247
  id: string;
249
248
  name: string;
249
+ slug: string;
250
250
  }[];
251
251
  publishedAt?: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- slug: string;
255
- published: boolean;
256
254
  id: string;
255
+ slug: string;
257
256
  title: string;
258
- authorId?: string | undefined;
259
- defaultLocale?: string | undefined;
260
257
  content: string;
261
258
  excerpt: string;
262
259
  image?: string | undefined;
260
+ published: boolean;
261
+ authorId?: string | undefined;
262
+ defaultLocale?: string | undefined;
263
263
  status?: "DRAFT" | "PUBLISHED" | undefined;
264
264
  }[];
265
265
  total: number;
@@ -269,44 +269,44 @@ declare function findNextPreviousPosts(adapter: DBAdapter, date: Date): Promise<
269
269
  tags: {
270
270
  createdAt: string;
271
271
  updatedAt: string;
272
- slug: string;
273
272
  id: string;
274
273
  name: string;
274
+ slug: string;
275
275
  }[];
276
276
  publishedAt?: string;
277
277
  createdAt: string;
278
278
  updatedAt: string;
279
- slug: string;
280
- published: boolean;
281
279
  id: string;
280
+ slug: string;
282
281
  title: string;
283
- authorId?: string | undefined;
284
- defaultLocale?: string | undefined;
285
282
  content: string;
286
283
  excerpt: string;
287
284
  image?: string | undefined;
285
+ published: boolean;
286
+ authorId?: string | undefined;
287
+ defaultLocale?: string | undefined;
288
288
  status?: "DRAFT" | "PUBLISHED" | undefined;
289
289
  } | null;
290
290
  next: {
291
291
  tags: {
292
292
  createdAt: string;
293
293
  updatedAt: string;
294
- slug: string;
295
294
  id: string;
296
295
  name: string;
296
+ slug: string;
297
297
  }[];
298
298
  publishedAt?: string;
299
299
  createdAt: string;
300
300
  updatedAt: string;
301
- slug: string;
302
- published: boolean;
303
301
  id: string;
302
+ slug: string;
304
303
  title: string;
305
- authorId?: string | undefined;
306
- defaultLocale?: string | undefined;
307
304
  content: string;
308
305
  excerpt: string;
309
306
  image?: string | undefined;
307
+ published: boolean;
308
+ authorId?: string | undefined;
309
+ defaultLocale?: string | undefined;
310
310
  status?: "DRAFT" | "PUBLISHED" | undefined;
311
311
  } | null;
312
312
  }>;
@@ -358,22 +358,22 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
358
358
  readonly tags: readonly {
359
359
  readonly createdAt: string;
360
360
  readonly updatedAt: string;
361
- readonly slug: string;
362
361
  readonly id: string;
363
362
  readonly name: string;
363
+ readonly slug: string;
364
364
  }[];
365
365
  readonly publishedAt?: string | undefined;
366
366
  readonly createdAt: string;
367
367
  readonly updatedAt: string;
368
- readonly slug: string;
369
- readonly published: boolean;
370
368
  readonly id: string;
369
+ readonly slug: string;
371
370
  readonly title: string;
372
- readonly authorId?: string | undefined;
373
- readonly defaultLocale?: string | undefined;
374
371
  readonly content: string;
375
372
  readonly excerpt: string;
376
373
  readonly image?: string | undefined;
374
+ readonly published: boolean;
375
+ readonly authorId?: string | undefined;
376
+ readonly defaultLocale?: string | undefined;
377
377
  readonly status?: "DRAFT" | "PUBLISHED" | undefined;
378
378
  }[];
379
379
  readonly total: number;
@@ -387,6 +387,7 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
387
387
  content: string;
388
388
  excerpt: string;
389
389
  slug?: string | undefined;
390
+ image?: string | undefined;
390
391
  published?: boolean | undefined;
391
392
  tags?: ({
392
393
  name: string;
@@ -395,7 +396,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
395
396
  name: string;
396
397
  slug: string;
397
398
  })[] | undefined;
398
- image?: string | undefined;
399
399
  publishedAt?: unknown;
400
400
  createdAt?: unknown;
401
401
  updatedAt?: unknown;
@@ -404,6 +404,7 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
404
404
  content: string;
405
405
  excerpt: string;
406
406
  slug?: string | undefined;
407
+ image?: string | undefined;
407
408
  published?: boolean | undefined;
408
409
  tags?: ({
409
410
  name: string;
@@ -412,7 +413,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
412
413
  name: string;
413
414
  slug: string;
414
415
  })[] | undefined;
415
- image?: string | undefined;
416
416
  publishedAt?: unknown;
417
417
  createdAt?: unknown;
418
418
  updatedAt?: unknown;
@@ -421,22 +421,22 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
421
421
  readonly tags: readonly {
422
422
  readonly createdAt: string;
423
423
  readonly updatedAt: string;
424
- readonly slug: string;
425
424
  readonly id: string;
426
425
  readonly name: string;
426
+ readonly slug: string;
427
427
  }[];
428
428
  readonly publishedAt?: string | undefined;
429
429
  readonly createdAt: string;
430
430
  readonly updatedAt: string;
431
- readonly slug: string;
432
- readonly published: boolean;
433
431
  readonly id: string;
432
+ readonly slug: string;
434
433
  readonly title: string;
435
- readonly authorId?: string | undefined;
436
- readonly defaultLocale?: string | undefined;
437
434
  readonly content: string;
438
435
  readonly excerpt: string;
439
436
  readonly image?: string | undefined;
437
+ readonly published: boolean;
438
+ readonly authorId?: string | undefined;
439
+ readonly defaultLocale?: string | undefined;
440
440
  readonly status?: "DRAFT" | "PUBLISHED" | undefined;
441
441
  }>;
442
442
  readonly updatePost: better_call.StrictEndpoint<"/posts/:id", {
@@ -448,6 +448,7 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
448
448
  title: string;
449
449
  content: string;
450
450
  excerpt: string;
451
+ image?: string | undefined;
451
452
  published?: boolean | undefined;
452
453
  tags?: ({
453
454
  name: string;
@@ -456,7 +457,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
456
457
  name: string;
457
458
  slug: string;
458
459
  })[] | undefined;
459
- image?: string | undefined;
460
460
  publishedAt?: unknown;
461
461
  createdAt?: unknown;
462
462
  updatedAt?: unknown;
@@ -465,6 +465,7 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
465
465
  title: string;
466
466
  content: string;
467
467
  excerpt: string;
468
+ image?: string | undefined;
468
469
  published?: boolean | undefined;
469
470
  tags?: ({
470
471
  name: string;
@@ -473,7 +474,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
473
474
  name: string;
474
475
  slug: string;
475
476
  })[] | undefined;
476
- image?: string | undefined;
477
477
  publishedAt?: unknown;
478
478
  createdAt?: unknown;
479
479
  updatedAt?: unknown;
@@ -482,22 +482,22 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
482
482
  readonly tags: readonly {
483
483
  readonly createdAt: string;
484
484
  readonly updatedAt: string;
485
- readonly slug: string;
486
485
  readonly id: string;
487
486
  readonly name: string;
487
+ readonly slug: string;
488
488
  }[];
489
489
  readonly publishedAt?: string | undefined;
490
490
  readonly createdAt: string;
491
491
  readonly updatedAt: string;
492
- readonly slug: string;
493
- readonly published: boolean;
494
492
  readonly id: string;
493
+ readonly slug: string;
495
494
  readonly title: string;
496
- readonly authorId?: string | undefined;
497
- readonly defaultLocale?: string | undefined;
498
495
  readonly content: string;
499
496
  readonly excerpt: string;
500
497
  readonly image?: string | undefined;
498
+ readonly published: boolean;
499
+ readonly authorId?: string | undefined;
500
+ readonly defaultLocale?: string | undefined;
501
501
  readonly status?: "DRAFT" | "PUBLISHED" | undefined;
502
502
  }>;
503
503
  readonly deletePost: better_call.StrictEndpoint<"/posts/:id", {
@@ -523,44 +523,44 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
523
523
  readonly tags: readonly {
524
524
  readonly createdAt: string;
525
525
  readonly updatedAt: string;
526
- readonly slug: string;
527
526
  readonly id: string;
528
527
  readonly name: string;
528
+ readonly slug: string;
529
529
  }[];
530
530
  readonly publishedAt?: string | undefined;
531
531
  readonly createdAt: string;
532
532
  readonly updatedAt: string;
533
- readonly slug: string;
534
- readonly published: boolean;
535
533
  readonly id: string;
534
+ readonly slug: string;
536
535
  readonly title: string;
537
- readonly authorId?: string | undefined;
538
- readonly defaultLocale?: string | undefined;
539
536
  readonly content: string;
540
537
  readonly excerpt: string;
541
538
  readonly image?: string | undefined;
539
+ readonly published: boolean;
540
+ readonly authorId?: string | undefined;
541
+ readonly defaultLocale?: string | undefined;
542
542
  readonly status?: "DRAFT" | "PUBLISHED" | undefined;
543
543
  } | null;
544
544
  readonly next: {
545
545
  readonly tags: readonly {
546
546
  readonly createdAt: string;
547
547
  readonly updatedAt: string;
548
- readonly slug: string;
549
548
  readonly id: string;
550
549
  readonly name: string;
550
+ readonly slug: string;
551
551
  }[];
552
552
  readonly publishedAt?: string | undefined;
553
553
  readonly createdAt: string;
554
554
  readonly updatedAt: string;
555
- readonly slug: string;
556
- readonly published: boolean;
557
555
  readonly id: string;
556
+ readonly slug: string;
558
557
  readonly title: string;
559
- readonly authorId?: string | undefined;
560
- readonly defaultLocale?: string | undefined;
561
558
  readonly content: string;
562
559
  readonly excerpt: string;
563
560
  readonly image?: string | undefined;
561
+ readonly published: boolean;
562
+ readonly authorId?: string | undefined;
563
+ readonly defaultLocale?: string | undefined;
564
564
  readonly status?: "DRAFT" | "PUBLISHED" | undefined;
565
565
  } | null;
566
566
  }>;
@@ -571,9 +571,9 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
571
571
  }, readonly {
572
572
  readonly createdAt: string;
573
573
  readonly updatedAt: string;
574
- readonly slug: string;
575
574
  readonly id: string;
576
575
  readonly name: string;
576
+ readonly slug: string;
577
577
  }[]>;
578
578
  }, {
579
579
  prefetchForRoute: BlogPrefetchForRoute;
@@ -606,30 +606,33 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
606
606
  tags: {
607
607
  createdAt: string;
608
608
  updatedAt: string;
609
- slug: string;
610
609
  id: string;
611
610
  name: string;
611
+ slug: string;
612
612
  }[];
613
613
  publishedAt?: string;
614
614
  createdAt: string;
615
615
  updatedAt: string;
616
- slug: string;
617
- published: boolean;
618
616
  id: string;
617
+ slug: string;
619
618
  title: string;
620
- authorId?: string | undefined;
621
- defaultLocale?: string | undefined;
622
619
  content: string;
623
620
  excerpt: string;
624
621
  image?: string | undefined;
622
+ published: boolean;
623
+ authorId?: string | undefined;
624
+ defaultLocale?: string | undefined;
625
625
  status?: "DRAFT" | "PUBLISHED" | undefined;
626
626
  }[];
627
627
  total: number;
628
628
  }, false>;
629
629
  readonly createPost: _btst_stack_plugins_api.Operation<zod.ZodObject<{
630
630
  slug: zod.ZodOptional<zod.ZodString>;
631
- published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
632
631
  title: zod.ZodString;
632
+ content: zod.ZodString;
633
+ excerpt: zod.ZodString;
634
+ image: zod.ZodOptional<zod.ZodString>;
635
+ published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
633
636
  tags: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
634
637
  name: zod.ZodString;
635
638
  }, zod_v4_core.$strip>, zod.ZodObject<{
@@ -637,9 +640,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
637
640
  name: zod.ZodString;
638
641
  slug: zod.ZodString;
639
642
  }, zod_v4_core.$strip>]>>>>;
640
- content: zod.ZodString;
641
- excerpt: zod.ZodString;
642
- image: zod.ZodOptional<zod.ZodString>;
643
643
  publishedAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
644
644
  createdAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
645
645
  updatedAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
@@ -652,30 +652,33 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
652
652
  tags: {
653
653
  createdAt: string;
654
654
  updatedAt: string;
655
- slug: string;
656
655
  id: string;
657
656
  name: string;
657
+ slug: string;
658
658
  }[];
659
659
  publishedAt?: string;
660
660
  createdAt: string;
661
661
  updatedAt: string;
662
- slug: string;
663
- published: boolean;
664
662
  id: string;
663
+ slug: string;
665
664
  title: string;
666
- authorId?: string | undefined;
667
- defaultLocale?: string | undefined;
668
665
  content: string;
669
666
  excerpt: string;
670
667
  image?: string | undefined;
668
+ published: boolean;
669
+ authorId?: string | undefined;
670
+ defaultLocale?: string | undefined;
671
671
  status?: "DRAFT" | "PUBLISHED" | undefined;
672
672
  }, false>;
673
673
  readonly updatePost: _btst_stack_plugins_api.Operation<zod.ZodObject<{
674
674
  id: zod.ZodString;
675
675
  data: zod.ZodObject<{
676
676
  slug: zod.ZodString;
677
- published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
678
677
  title: zod.ZodString;
678
+ content: zod.ZodString;
679
+ excerpt: zod.ZodString;
680
+ image: zod.ZodOptional<zod.ZodString>;
681
+ published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
679
682
  tags: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
680
683
  name: zod.ZodString;
681
684
  }, zod_v4_core.$strip>, zod.ZodObject<{
@@ -683,9 +686,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
683
686
  name: zod.ZodString;
684
687
  slug: zod.ZodString;
685
688
  }, zod_v4_core.$strip>]>>>>;
686
- content: zod.ZodString;
687
- excerpt: zod.ZodString;
688
- image: zod.ZodOptional<zod.ZodString>;
689
689
  publishedAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
690
690
  createdAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
691
691
  updatedAt: zod.ZodOptional<zod.ZodPipe<zod.ZodCoercedDate<unknown>, zod.ZodTransform<string, Date>>>;
@@ -702,22 +702,22 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
702
702
  tags: {
703
703
  createdAt: string;
704
704
  updatedAt: string;
705
- slug: string;
706
705
  id: string;
707
706
  name: string;
707
+ slug: string;
708
708
  }[];
709
709
  publishedAt?: string;
710
710
  createdAt: string;
711
711
  updatedAt: string;
712
- slug: string;
713
- published: boolean;
714
712
  id: string;
713
+ slug: string;
715
714
  title: string;
716
- authorId?: string | undefined;
717
- defaultLocale?: string | undefined;
718
715
  content: string;
719
716
  excerpt: string;
720
717
  image?: string | undefined;
718
+ published: boolean;
719
+ authorId?: string | undefined;
720
+ defaultLocale?: string | undefined;
721
721
  status?: "DRAFT" | "PUBLISHED" | undefined;
722
722
  }, false>;
723
723
  readonly deletePost: _btst_stack_plugins_api.Operation<zod.ZodObject<{
@@ -746,53 +746,53 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
746
746
  tags: {
747
747
  createdAt: string;
748
748
  updatedAt: string;
749
- slug: string;
750
749
  id: string;
751
750
  name: string;
751
+ slug: string;
752
752
  }[];
753
753
  publishedAt?: string;
754
754
  createdAt: string;
755
755
  updatedAt: string;
756
- slug: string;
757
- published: boolean;
758
756
  id: string;
757
+ slug: string;
759
758
  title: string;
760
- authorId?: string | undefined;
761
- defaultLocale?: string | undefined;
762
759
  content: string;
763
760
  excerpt: string;
764
761
  image?: string | undefined;
762
+ published: boolean;
763
+ authorId?: string | undefined;
764
+ defaultLocale?: string | undefined;
765
765
  status?: "DRAFT" | "PUBLISHED" | undefined;
766
766
  } | null;
767
767
  next: {
768
768
  tags: {
769
769
  createdAt: string;
770
770
  updatedAt: string;
771
- slug: string;
772
771
  id: string;
773
772
  name: string;
773
+ slug: string;
774
774
  }[];
775
775
  publishedAt?: string;
776
776
  createdAt: string;
777
777
  updatedAt: string;
778
- slug: string;
779
- published: boolean;
780
778
  id: string;
779
+ slug: string;
781
780
  title: string;
782
- authorId?: string | undefined;
783
- defaultLocale?: string | undefined;
784
781
  content: string;
785
782
  excerpt: string;
786
783
  image?: string | undefined;
784
+ published: boolean;
785
+ authorId?: string | undefined;
786
+ defaultLocale?: string | undefined;
787
787
  status?: "DRAFT" | "PUBLISHED" | undefined;
788
788
  } | null;
789
789
  }, false>;
790
790
  readonly listTags: _btst_stack_plugins_api.Operation<zod.ZodObject<{}, zod_v4_core.$strip>, PermissionDescriptor<"blog:tag.read", undefined>, {
791
791
  createdAt: string;
792
792
  updatedAt: string;
793
- slug: string;
794
793
  id: string;
795
794
  name: string;
795
+ slug: string;
796
796
  }[], false>;
797
797
  }, "blog">;
798
798
  type BlogApiRouter = ReturnType<ReturnType<typeof blogBackendPlugin>["routes"]>;
@@ -900,8 +900,8 @@ declare const blogResources: {
900
900
  method: "POST";
901
901
  input: (vars: PostCreateInput) => {
902
902
  body: {
903
- title: string;
904
903
  published: boolean;
904
+ title: string;
905
905
  content: string;
906
906
  excerpt: string;
907
907
  tags: ({
@@ -1072,8 +1072,8 @@ declare function createBlogQueryKeys(client: ReturnType<typeof createApiClient<B
1072
1072
  method: "POST";
1073
1073
  input: (vars: PostCreateInput) => {
1074
1074
  body: {
1075
- title: string;
1076
1075
  published: boolean;
1076
+ title: string;
1077
1077
  content: string;
1078
1078
  excerpt: string;
1079
1079
  tags: ({
@@ -2,7 +2,7 @@ import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { z } from 'zod';
3
3
  import { ResourceFormConfig, ResourceFormResult } from '@btst/stack/plugins/client/hooks';
4
4
  import { S as SerializedPost, a as SerializedTag } from './stack.Dsatjh0B.js';
5
- import { c as createPostSchema, u as updatePostSchema } from './stack.DtZgEX84.js';
5
+ import { c as createPostSchema, u as updatePostSchema } from './stack.CKc_Bais.js';
6
6
 
7
7
  /**
8
8
  * Options for the usePosts hook
@@ -136,8 +136,10 @@ declare function useSuspenseTags(): {
136
136
  declare function usePostForm<TValues>(config: ResourceFormConfig<TValues, SerializedPost | null, SerializedPost | null>): ResourceFormResult<TValues, SerializedPost | null, SerializedPost | null>;
137
137
  /** Create a new post */
138
138
  declare function useCreatePost(): _tanstack_react_query.UseMutationResult<SerializedPost | null, Error, {
139
- published: boolean;
140
139
  title: string;
140
+ content: string;
141
+ excerpt: string;
142
+ published: boolean;
141
143
  tags: ({
142
144
  name: string;
143
145
  } | {
@@ -145,12 +147,10 @@ declare function useCreatePost(): _tanstack_react_query.UseMutationResult<Serial
145
147
  name: string;
146
148
  slug: string;
147
149
  })[];
148
- content: string;
149
- excerpt: string;
150
150
  slug?: string | undefined;
151
+ publishedAt?: Date | undefined;
151
152
  createdAt?: Date | undefined;
152
153
  updatedAt?: Date | undefined;
153
- publishedAt?: Date | undefined;
154
154
  image?: string | undefined;
155
155
  }>;
156
156
  /** Update an existing post by id */