@btst/stack 3.0.0-rc.3 → 3.0.0

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 (68) hide show
  1. package/README.md +1 -1
  2. package/dist/plugins/blog/api/index.d.cts +2 -2
  3. package/dist/plugins/blog/api/index.d.mts +2 -2
  4. package/dist/plugins/blog/api/index.d.ts +2 -2
  5. package/dist/plugins/blog/client/hooks/index.d.cts +2 -2
  6. package/dist/plugins/blog/client/hooks/index.d.mts +2 -2
  7. package/dist/plugins/blog/client/hooks/index.d.ts +2 -2
  8. package/dist/plugins/blog/client/index.d.cts +2 -2
  9. package/dist/plugins/blog/client/index.d.mts +2 -2
  10. package/dist/plugins/blog/client/index.d.ts +2 -2
  11. package/dist/plugins/blog/query-keys.d.cts +2 -2
  12. package/dist/plugins/blog/query-keys.d.mts +2 -2
  13. package/dist/plugins/blog/query-keys.d.ts +2 -2
  14. package/dist/plugins/cms/api/index.d.cts +1 -1
  15. package/dist/plugins/cms/api/index.d.mts +1 -1
  16. package/dist/plugins/cms/api/index.d.ts +1 -1
  17. package/dist/plugins/cms/query-keys.d.cts +1 -1
  18. package/dist/plugins/cms/query-keys.d.mts +1 -1
  19. package/dist/plugins/cms/query-keys.d.ts +1 -1
  20. package/dist/plugins/form-builder/api/index.d.cts +1 -1
  21. package/dist/plugins/form-builder/api/index.d.mts +1 -1
  22. package/dist/plugins/form-builder/api/index.d.ts +1 -1
  23. package/dist/plugins/form-builder/client/hooks/index.d.cts +1 -1
  24. package/dist/plugins/form-builder/client/hooks/index.d.mts +1 -1
  25. package/dist/plugins/form-builder/client/hooks/index.d.ts +1 -1
  26. package/dist/plugins/form-builder/query-keys.d.cts +1 -1
  27. package/dist/plugins/form-builder/query-keys.d.mts +1 -1
  28. package/dist/plugins/form-builder/query-keys.d.ts +1 -1
  29. package/dist/plugins/kanban/api/index.d.cts +1 -1
  30. package/dist/plugins/kanban/api/index.d.mts +1 -1
  31. package/dist/plugins/kanban/api/index.d.ts +1 -1
  32. package/dist/plugins/kanban/client/hooks/index.d.cts +1 -1
  33. package/dist/plugins/kanban/client/hooks/index.d.mts +1 -1
  34. package/dist/plugins/kanban/client/hooks/index.d.ts +1 -1
  35. package/dist/plugins/kanban/client/index.d.cts +1 -1
  36. package/dist/plugins/kanban/client/index.d.mts +1 -1
  37. package/dist/plugins/kanban/client/index.d.ts +1 -1
  38. package/dist/plugins/kanban/query-keys.d.cts +1 -1
  39. package/dist/plugins/kanban/query-keys.d.mts +1 -1
  40. package/dist/plugins/kanban/query-keys.d.ts +1 -1
  41. package/dist/plugins/ui-builder/client/hooks/index.d.cts +1 -1
  42. package/dist/plugins/ui-builder/client/hooks/index.d.mts +1 -1
  43. package/dist/plugins/ui-builder/client/hooks/index.d.ts +1 -1
  44. package/dist/plugins/ui-builder/client/index.d.cts +1 -1
  45. package/dist/plugins/ui-builder/client/index.d.mts +1 -1
  46. package/dist/plugins/ui-builder/client/index.d.ts +1 -1
  47. package/dist/plugins/ui-builder/query-keys.d.cts +1 -1
  48. package/dist/plugins/ui-builder/query-keys.d.mts +1 -1
  49. package/dist/plugins/ui-builder/query-keys.d.ts +1 -1
  50. package/dist/shared/{stack.Dvy7FmaA.d.mts → stack.CZ1h_T4k.d.mts} +88 -88
  51. package/dist/shared/{stack.Dpg_JjIo.d.ts → stack.CnDMBj4z.d.ts} +4 -4
  52. package/dist/shared/{stack.CjCSDfWy.d.mts → stack.D2y4gl03.d.mts} +4 -4
  53. package/dist/shared/{stack.DlBoNqYu.d.ts → stack.DQpyA3Cq.d.ts} +88 -88
  54. package/dist/shared/{stack.BOZRaVpu.d.cts → stack.DiYg7Jw1.d.cts} +88 -88
  55. package/dist/shared/{stack.BGzgFx3R.d.cts → stack.rmWRtSjs.d.cts} +4 -4
  56. package/package.json +1 -1
  57. package/dist/shared/{stack.CyalJ0j6.d.ts → stack.BMlTZnZp.d.ts} +16 -16
  58. package/dist/shared/{stack.D6Pg-ufX.d.cts → stack.BV0uNV4f.d.cts} +16 -16
  59. package/dist/shared/{stack.BuxUQqL8.d.ts → stack.CGmh-Lpe.d.ts} +12 -12
  60. package/dist/shared/{stack.B1UrNoVl.d.mts → stack.CMc8mLyD.d.mts} +75 -75
  61. package/dist/shared/{stack.Egr3RWhA.d.mts → stack.Doy2_wgl.d.mts} +12 -12
  62. package/dist/shared/{stack.Csi-4Mgz.d.cts → stack.DtZgEX84.d.cts} +6 -6
  63. package/dist/shared/{stack.Csi-4Mgz.d.mts → stack.DtZgEX84.d.mts} +6 -6
  64. package/dist/shared/{stack.Csi-4Mgz.d.ts → stack.DtZgEX84.d.ts} +6 -6
  65. package/dist/shared/{stack.0y6iTP03.d.ts → stack.Y91icYuv.d.ts} +75 -75
  66. package/dist/shared/{stack.Mak7pzIV.d.cts → stack._CObfJbw.d.cts} +75 -75
  67. package/dist/shared/{stack.B8PG21zX.d.mts → stack.lsbdKRj7.d.mts} +16 -16
  68. package/dist/shared/{stack.CX83YNuS.d.cts → stack.zch70Loj.d.cts} +12 -12
@@ -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.Csi-4Mgz.cjs';
5
+ import { c as createPostSchema, u as updatePostSchema } from './stack.DtZgEX84.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';
@@ -89,6 +89,9 @@ declare const NextPreviousPostsQuerySchema: z.ZodObject<{
89
89
  date: z.ZodPipe<z.ZodCoercedDate<unknown>, z.ZodTransform<string, Date>>;
90
90
  }, z.core.$strip>;
91
91
  declare const CreatePostOperationInputSchema: z.ZodObject<{
92
+ slug: z.ZodOptional<z.ZodString>;
93
+ published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
94
+ title: z.ZodString;
92
95
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
93
96
  name: z.ZodString;
94
97
  }, z.core.$strip>, z.ZodObject<{
@@ -96,12 +99,9 @@ declare const CreatePostOperationInputSchema: z.ZodObject<{
96
99
  name: z.ZodString;
97
100
  slug: z.ZodString;
98
101
  }, z.core.$strip>]>>>>;
99
- slug: z.ZodOptional<z.ZodString>;
100
- title: z.ZodString;
101
102
  content: z.ZodString;
102
103
  excerpt: z.ZodString;
103
104
  image: z.ZodOptional<z.ZodString>;
104
- published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
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>>>;
@@ -109,6 +109,9 @@ declare const CreatePostOperationInputSchema: z.ZodObject<{
109
109
  declare const UpdatePostOperationInputSchema: z.ZodObject<{
110
110
  id: z.ZodString;
111
111
  data: z.ZodObject<{
112
+ slug: z.ZodString;
113
+ published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
114
+ title: z.ZodString;
112
115
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
113
116
  name: z.ZodString;
114
117
  }, z.core.$strip>, z.ZodObject<{
@@ -116,12 +119,9 @@ declare const UpdatePostOperationInputSchema: z.ZodObject<{
116
119
  name: z.ZodString;
117
120
  slug: z.ZodString;
118
121
  }, z.core.$strip>]>>>>;
119
- slug: z.ZodString;
120
- title: z.ZodString;
121
122
  content: z.ZodString;
122
123
  excerpt: z.ZodString;
123
124
  image: z.ZodOptional<z.ZodString>;
124
- published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
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;
247
248
  id: string;
248
249
  name: string;
249
- slug: string;
250
250
  }[];
251
251
  publishedAt?: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- id: string;
255
254
  slug: string;
255
+ published: boolean;
256
+ id: string;
256
257
  title: string;
258
+ authorId?: string | undefined;
259
+ defaultLocale?: string | undefined;
257
260
  content: string;
258
261
  excerpt: string;
259
262
  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;
272
273
  id: string;
273
274
  name: string;
274
- slug: string;
275
275
  }[];
276
276
  publishedAt?: string;
277
277
  createdAt: string;
278
278
  updatedAt: string;
279
- id: string;
280
279
  slug: string;
280
+ published: boolean;
281
+ id: string;
281
282
  title: string;
283
+ authorId?: string | undefined;
284
+ defaultLocale?: string | undefined;
282
285
  content: string;
283
286
  excerpt: string;
284
287
  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;
294
295
  id: string;
295
296
  name: string;
296
- slug: string;
297
297
  }[];
298
298
  publishedAt?: string;
299
299
  createdAt: string;
300
300
  updatedAt: string;
301
- id: string;
302
301
  slug: string;
302
+ published: boolean;
303
+ id: string;
303
304
  title: string;
305
+ authorId?: string | undefined;
306
+ defaultLocale?: string | undefined;
304
307
  content: string;
305
308
  excerpt: string;
306
309
  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;
361
362
  readonly id: string;
362
363
  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 id: string;
369
368
  readonly slug: string;
369
+ readonly published: boolean;
370
+ readonly id: string;
370
371
  readonly title: string;
372
+ readonly authorId?: string | undefined;
373
+ readonly defaultLocale?: string | undefined;
371
374
  readonly content: string;
372
375
  readonly excerpt: string;
373
376
  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;
@@ -386,6 +386,8 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
386
386
  title: string;
387
387
  content: string;
388
388
  excerpt: string;
389
+ slug?: string | undefined;
390
+ published?: boolean | undefined;
389
391
  tags?: ({
390
392
  name: string;
391
393
  } | {
@@ -393,9 +395,7 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
393
395
  name: string;
394
396
  slug: string;
395
397
  })[] | undefined;
396
- slug?: string | undefined;
397
398
  image?: string | undefined;
398
- published?: boolean | undefined;
399
399
  publishedAt?: unknown;
400
400
  createdAt?: unknown;
401
401
  updatedAt?: unknown;
@@ -403,6 +403,8 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
403
403
  title: string;
404
404
  content: string;
405
405
  excerpt: string;
406
+ slug?: string | undefined;
407
+ published?: boolean | undefined;
406
408
  tags?: ({
407
409
  name: string;
408
410
  } | {
@@ -410,9 +412,7 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
410
412
  name: string;
411
413
  slug: string;
412
414
  })[] | undefined;
413
- slug?: string | undefined;
414
415
  image?: string | undefined;
415
- published?: boolean | 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;
424
425
  readonly id: string;
425
426
  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 id: string;
432
431
  readonly slug: string;
432
+ readonly published: boolean;
433
+ readonly id: string;
433
434
  readonly title: string;
435
+ readonly authorId?: string | undefined;
436
+ readonly defaultLocale?: string | undefined;
434
437
  readonly content: string;
435
438
  readonly excerpt: string;
436
439
  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
+ published?: boolean | undefined;
451
452
  tags?: ({
452
453
  name: string;
453
454
  } | {
@@ -456,7 +457,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
456
457
  slug: string;
457
458
  })[] | undefined;
458
459
  image?: string | undefined;
459
- published?: boolean | 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
+ published?: boolean | undefined;
468
469
  tags?: ({
469
470
  name: string;
470
471
  } | {
@@ -473,7 +474,6 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
473
474
  slug: string;
474
475
  })[] | undefined;
475
476
  image?: string | undefined;
476
- published?: boolean | 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;
485
486
  readonly id: string;
486
487
  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 id: string;
493
492
  readonly slug: string;
493
+ readonly published: boolean;
494
+ readonly id: string;
494
495
  readonly title: string;
496
+ readonly authorId?: string | undefined;
497
+ readonly defaultLocale?: string | undefined;
495
498
  readonly content: string;
496
499
  readonly excerpt: string;
497
500
  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;
526
527
  readonly id: string;
527
528
  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 id: string;
534
533
  readonly slug: string;
534
+ readonly published: boolean;
535
+ readonly id: string;
535
536
  readonly title: string;
537
+ readonly authorId?: string | undefined;
538
+ readonly defaultLocale?: string | undefined;
536
539
  readonly content: string;
537
540
  readonly excerpt: string;
538
541
  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;
548
549
  readonly id: string;
549
550
  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 id: string;
556
555
  readonly slug: string;
556
+ readonly published: boolean;
557
+ readonly id: string;
557
558
  readonly title: string;
559
+ readonly authorId?: string | undefined;
560
+ readonly defaultLocale?: string | undefined;
558
561
  readonly content: string;
559
562
  readonly excerpt: string;
560
563
  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;
574
575
  readonly id: string;
575
576
  readonly name: string;
576
- readonly slug: string;
577
577
  }[]>;
578
578
  }, {
579
579
  prefetchForRoute: BlogPrefetchForRoute;
@@ -606,27 +606,30 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
606
606
  tags: {
607
607
  createdAt: string;
608
608
  updatedAt: string;
609
+ slug: string;
609
610
  id: string;
610
611
  name: string;
611
- slug: string;
612
612
  }[];
613
613
  publishedAt?: string;
614
614
  createdAt: string;
615
615
  updatedAt: string;
616
- id: string;
617
616
  slug: string;
617
+ published: boolean;
618
+ id: string;
618
619
  title: string;
620
+ authorId?: string | undefined;
621
+ defaultLocale?: string | undefined;
619
622
  content: string;
620
623
  excerpt: string;
621
624
  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
+ slug: zod.ZodOptional<zod.ZodString>;
631
+ published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
632
+ title: zod.ZodString;
630
633
  tags: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
631
634
  name: zod.ZodString;
632
635
  }, zod_v4_core.$strip>, zod.ZodObject<{
@@ -634,12 +637,9 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
634
637
  name: zod.ZodString;
635
638
  slug: zod.ZodString;
636
639
  }, zod_v4_core.$strip>]>>>>;
637
- slug: zod.ZodOptional<zod.ZodString>;
638
- title: zod.ZodString;
639
640
  content: zod.ZodString;
640
641
  excerpt: zod.ZodString;
641
642
  image: zod.ZodOptional<zod.ZodString>;
642
- published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
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,27 +652,30 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
652
652
  tags: {
653
653
  createdAt: string;
654
654
  updatedAt: string;
655
+ slug: string;
655
656
  id: string;
656
657
  name: string;
657
- slug: string;
658
658
  }[];
659
659
  publishedAt?: string;
660
660
  createdAt: string;
661
661
  updatedAt: string;
662
- id: string;
663
662
  slug: string;
663
+ published: boolean;
664
+ id: string;
664
665
  title: string;
666
+ authorId?: string | undefined;
667
+ defaultLocale?: string | undefined;
665
668
  content: string;
666
669
  excerpt: string;
667
670
  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
+ slug: zod.ZodString;
677
+ published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
678
+ title: zod.ZodString;
676
679
  tags: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
677
680
  name: zod.ZodString;
678
681
  }, zod_v4_core.$strip>, zod.ZodObject<{
@@ -680,12 +683,9 @@ declare const blogBackendPlugin: (options?: BlogBackendOptions) => _btst_stack_p
680
683
  name: zod.ZodString;
681
684
  slug: zod.ZodString;
682
685
  }, zod_v4_core.$strip>]>>>>;
683
- slug: zod.ZodString;
684
- title: zod.ZodString;
685
686
  content: zod.ZodString;
686
687
  excerpt: zod.ZodString;
687
688
  image: zod.ZodOptional<zod.ZodString>;
688
- published: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
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;
705
706
  id: string;
706
707
  name: string;
707
- slug: string;
708
708
  }[];
709
709
  publishedAt?: string;
710
710
  createdAt: string;
711
711
  updatedAt: string;
712
- id: string;
713
712
  slug: string;
713
+ published: boolean;
714
+ id: string;
714
715
  title: string;
716
+ authorId?: string | undefined;
717
+ defaultLocale?: string | undefined;
715
718
  content: string;
716
719
  excerpt: string;
717
720
  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;
749
750
  id: string;
750
751
  name: string;
751
- slug: string;
752
752
  }[];
753
753
  publishedAt?: string;
754
754
  createdAt: string;
755
755
  updatedAt: string;
756
- id: string;
757
756
  slug: string;
757
+ published: boolean;
758
+ id: string;
758
759
  title: string;
760
+ authorId?: string | undefined;
761
+ defaultLocale?: string | undefined;
759
762
  content: string;
760
763
  excerpt: string;
761
764
  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;
771
772
  id: string;
772
773
  name: string;
773
- slug: string;
774
774
  }[];
775
775
  publishedAt?: string;
776
776
  createdAt: string;
777
777
  updatedAt: string;
778
- id: string;
779
778
  slug: string;
779
+ published: boolean;
780
+ id: string;
780
781
  title: string;
782
+ authorId?: string | undefined;
783
+ defaultLocale?: string | undefined;
781
784
  content: string;
782
785
  excerpt: string;
783
786
  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;
793
794
  id: string;
794
795
  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
- published: boolean;
904
903
  title: string;
904
+ published: boolean;
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
- published: boolean;
1076
1075
  title: string;
1076
+ published: boolean;
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.cjs';
5
- import { c as createPostSchema, u as updatePostSchema } from './stack.Csi-4Mgz.cjs';
5
+ import { c as createPostSchema, u as updatePostSchema } from './stack.DtZgEX84.cjs';
6
6
 
7
7
  /**
8
8
  * Options for the usePosts hook
@@ -136,6 +136,8 @@ 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
+ title: string;
139
141
  tags: ({
140
142
  name: string;
141
143
  } | {
@@ -143,14 +145,12 @@ declare function useCreatePost(): _tanstack_react_query.UseMutationResult<Serial
143
145
  name: string;
144
146
  slug: string;
145
147
  })[];
146
- title: string;
147
148
  content: string;
148
149
  excerpt: string;
149
- published: boolean;
150
150
  slug?: string | undefined;
151
- publishedAt?: Date | undefined;
152
151
  createdAt?: Date | undefined;
153
152
  updatedAt?: Date | undefined;
153
+ publishedAt?: Date | undefined;
154
154
  image?: string | undefined;
155
155
  }>;
156
156
  /** Update an existing post by id */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@btst/stack",
3
- "version": "3.0.0-rc.3",
3
+ "version": "3.0.0",
4
4
  "description": "A composable, plugin-based library for building full-stack applications.",
5
5
  "repository": {
6
6
  "type": "git",