@ecomweb/sdk 0.2.0 → 0.4.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.
- package/dist/index.d.ts +323 -978
- package/dist/index.js +571 -568
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -386,489 +386,6 @@ declare const updateEmbeddedScriptSchema: z.ZodObject<{
|
|
|
386
386
|
}, z.core.$strip>;
|
|
387
387
|
type UpdateEmbeddedScript = z.infer<typeof updateEmbeddedScriptSchema>;
|
|
388
388
|
|
|
389
|
-
/**
|
|
390
|
-
* Storefront Builder schemas
|
|
391
|
-
*
|
|
392
|
-
* Elementor-style widget system with:
|
|
393
|
-
* - Widget registry (metadata, defaults, categories)
|
|
394
|
-
* - Content/Style split per section
|
|
395
|
-
* - Inline banner items (no separate DB table)
|
|
396
|
-
*/
|
|
397
|
-
declare const sectionTypeSchema: z.ZodEnum<{
|
|
398
|
-
hero_banner: "hero_banner";
|
|
399
|
-
category_grid: "category_grid";
|
|
400
|
-
collection_grid: "collection_grid";
|
|
401
|
-
featured_products: "featured_products";
|
|
402
|
-
text_with_image: "text_with_image";
|
|
403
|
-
rich_text: "rich_text";
|
|
404
|
-
newsletter_signup: "newsletter_signup";
|
|
405
|
-
}>;
|
|
406
|
-
type SectionType = z.infer<typeof sectionTypeSchema>;
|
|
407
|
-
declare const sectionStyleSchema: z.ZodObject<{
|
|
408
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
409
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
410
|
-
padding_top: z.ZodOptional<z.ZodString>;
|
|
411
|
-
padding_right: z.ZodOptional<z.ZodString>;
|
|
412
|
-
padding_bottom: z.ZodOptional<z.ZodString>;
|
|
413
|
-
padding_left: z.ZodOptional<z.ZodString>;
|
|
414
|
-
margin_top: z.ZodOptional<z.ZodString>;
|
|
415
|
-
margin_right: z.ZodOptional<z.ZodString>;
|
|
416
|
-
margin_bottom: z.ZodOptional<z.ZodString>;
|
|
417
|
-
margin_left: z.ZodOptional<z.ZodString>;
|
|
418
|
-
text_align: z.ZodOptional<z.ZodEnum<{
|
|
419
|
-
left: "left";
|
|
420
|
-
center: "center";
|
|
421
|
-
right: "right";
|
|
422
|
-
justify: "justify";
|
|
423
|
-
}>>;
|
|
424
|
-
max_width: z.ZodOptional<z.ZodEnum<{
|
|
425
|
-
full: "full";
|
|
426
|
-
xl: "xl";
|
|
427
|
-
lg: "lg";
|
|
428
|
-
md: "md";
|
|
429
|
-
}>>;
|
|
430
|
-
}, z.core.$strip>;
|
|
431
|
-
type SectionStyle = z.infer<typeof sectionStyleSchema>;
|
|
432
|
-
declare const heroBannerItemSchema: z.ZodObject<{
|
|
433
|
-
id: z.ZodString;
|
|
434
|
-
title: z.ZodOptional<z.ZodString>;
|
|
435
|
-
subtitle: z.ZodOptional<z.ZodString>;
|
|
436
|
-
image_url: z.ZodString;
|
|
437
|
-
link_url: z.ZodOptional<z.ZodString>;
|
|
438
|
-
button_text: z.ZodOptional<z.ZodString>;
|
|
439
|
-
}, z.core.$strip>;
|
|
440
|
-
type HeroBannerItem = z.infer<typeof heroBannerItemSchema>;
|
|
441
|
-
declare const heroBannerConfigSchema: z.ZodObject<{
|
|
442
|
-
banners: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
443
|
-
id: z.ZodString;
|
|
444
|
-
title: z.ZodOptional<z.ZodString>;
|
|
445
|
-
subtitle: z.ZodOptional<z.ZodString>;
|
|
446
|
-
image_url: z.ZodString;
|
|
447
|
-
link_url: z.ZodOptional<z.ZodString>;
|
|
448
|
-
button_text: z.ZodOptional<z.ZodString>;
|
|
449
|
-
}, z.core.$strip>>>;
|
|
450
|
-
autoplay: z.ZodDefault<z.ZodBoolean>;
|
|
451
|
-
autoplay_interval: z.ZodDefault<z.ZodNumber>;
|
|
452
|
-
}, z.core.$strip>;
|
|
453
|
-
declare const categoryGridConfigSchema: z.ZodObject<{
|
|
454
|
-
category_ids: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
455
|
-
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<6>]>>;
|
|
456
|
-
show_names: z.ZodDefault<z.ZodBoolean>;
|
|
457
|
-
show_count: z.ZodDefault<z.ZodBoolean>;
|
|
458
|
-
title: z.ZodOptional<z.ZodString>;
|
|
459
|
-
}, z.core.$strip>;
|
|
460
|
-
/**
|
|
461
|
-
* Replaces `category_grid` as the browse-entry-point block.
|
|
462
|
-
*
|
|
463
|
-
* Categories lose their storefront presence in this refactor — they become an
|
|
464
|
-
* admin-and-schema concept — so collections become the only browse surface. An
|
|
465
|
-
* empty `collection_ids` means "show all", matching category_grid's behaviour
|
|
466
|
-
* so a migrated section keeps rendering the same way.
|
|
467
|
-
*/
|
|
468
|
-
declare const collectionGridConfigSchema: z.ZodObject<{
|
|
469
|
-
collection_ids: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
470
|
-
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<6>]>>;
|
|
471
|
-
show_names: z.ZodDefault<z.ZodBoolean>;
|
|
472
|
-
show_count: z.ZodDefault<z.ZodBoolean>;
|
|
473
|
-
title: z.ZodOptional<z.ZodString>;
|
|
474
|
-
}, z.core.$strip>;
|
|
475
|
-
declare const featuredProductsConfigSchema: z.ZodObject<{
|
|
476
|
-
collection_slug: z.ZodOptional<z.ZodString>;
|
|
477
|
-
product_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
478
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
479
|
-
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<6>]>>;
|
|
480
|
-
title: z.ZodOptional<z.ZodString>;
|
|
481
|
-
}, z.core.$strip>;
|
|
482
|
-
declare const textWithImageConfigSchema: z.ZodObject<{
|
|
483
|
-
content: z.ZodDefault<z.ZodString>;
|
|
484
|
-
image_url: z.ZodDefault<z.ZodString>;
|
|
485
|
-
image_position: z.ZodDefault<z.ZodEnum<{
|
|
486
|
-
left: "left";
|
|
487
|
-
right: "right";
|
|
488
|
-
}>>;
|
|
489
|
-
}, z.core.$strip>;
|
|
490
|
-
declare const richTextConfigSchema: z.ZodObject<{
|
|
491
|
-
content: z.ZodDefault<z.ZodString>;
|
|
492
|
-
}, z.core.$strip>;
|
|
493
|
-
declare const newsletterSignupConfigSchema: z.ZodObject<{
|
|
494
|
-
title: z.ZodOptional<z.ZodString>;
|
|
495
|
-
description: z.ZodOptional<z.ZodString>;
|
|
496
|
-
button_text: z.ZodOptional<z.ZodString>;
|
|
497
|
-
}, z.core.$strip>;
|
|
498
|
-
/**
|
|
499
|
-
* @deprecated This union CANNOT discriminate between section configs.
|
|
500
|
-
*
|
|
501
|
-
* Zod unions return the first member that parses, and `heroBannerConfigSchema`
|
|
502
|
-
* — first in this union — has a default for every field, so it matches ANY
|
|
503
|
-
* object. Parsing a `collection_grid`, `category_grid`, or `featured_products`
|
|
504
|
-
* payload through this schema silently returns it reinterpreted as a
|
|
505
|
-
* `hero_banner` config (`{ banners: [], autoplay: true, autoplay_interval:
|
|
506
|
-
* 5000 }`), discarding the real content. Reordering the union does not fix
|
|
507
|
-
* this — the per-section shapes are structurally ambiguous, so there is no
|
|
508
|
-
* ordering that lets zod pick the right one.
|
|
509
|
-
*
|
|
510
|
-
* Kept exported only because removing it is a breaking change for anything
|
|
511
|
-
* outside this package that may import it. Do not parse section content with
|
|
512
|
-
* this schema. Use {@link parseSectionContent} instead, which dispatches on
|
|
513
|
-
* the section's `type` (already known from the section wrapper) via
|
|
514
|
-
* {@link SECTION_CONFIG_SCHEMAS}.
|
|
515
|
-
*/
|
|
516
|
-
declare const sectionConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
517
|
-
banners: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
518
|
-
id: z.ZodString;
|
|
519
|
-
title: z.ZodOptional<z.ZodString>;
|
|
520
|
-
subtitle: z.ZodOptional<z.ZodString>;
|
|
521
|
-
image_url: z.ZodString;
|
|
522
|
-
link_url: z.ZodOptional<z.ZodString>;
|
|
523
|
-
button_text: z.ZodOptional<z.ZodString>;
|
|
524
|
-
}, z.core.$strip>>>;
|
|
525
|
-
autoplay: z.ZodDefault<z.ZodBoolean>;
|
|
526
|
-
autoplay_interval: z.ZodDefault<z.ZodNumber>;
|
|
527
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
528
|
-
category_ids: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
529
|
-
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<6>]>>;
|
|
530
|
-
show_names: z.ZodDefault<z.ZodBoolean>;
|
|
531
|
-
show_count: z.ZodDefault<z.ZodBoolean>;
|
|
532
|
-
title: z.ZodOptional<z.ZodString>;
|
|
533
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
534
|
-
collection_ids: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
535
|
-
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<6>]>>;
|
|
536
|
-
show_names: z.ZodDefault<z.ZodBoolean>;
|
|
537
|
-
show_count: z.ZodDefault<z.ZodBoolean>;
|
|
538
|
-
title: z.ZodOptional<z.ZodString>;
|
|
539
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
540
|
-
collection_slug: z.ZodOptional<z.ZodString>;
|
|
541
|
-
product_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
542
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
543
|
-
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<6>]>>;
|
|
544
|
-
title: z.ZodOptional<z.ZodString>;
|
|
545
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
546
|
-
content: z.ZodDefault<z.ZodString>;
|
|
547
|
-
image_url: z.ZodDefault<z.ZodString>;
|
|
548
|
-
image_position: z.ZodDefault<z.ZodEnum<{
|
|
549
|
-
left: "left";
|
|
550
|
-
right: "right";
|
|
551
|
-
}>>;
|
|
552
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
553
|
-
content: z.ZodDefault<z.ZodString>;
|
|
554
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
555
|
-
title: z.ZodOptional<z.ZodString>;
|
|
556
|
-
description: z.ZodOptional<z.ZodString>;
|
|
557
|
-
button_text: z.ZodOptional<z.ZodString>;
|
|
558
|
-
}, z.core.$strip>]>;
|
|
559
|
-
declare const builderSectionSchema: z.ZodObject<{
|
|
560
|
-
id: z.ZodString;
|
|
561
|
-
type: z.ZodEnum<{
|
|
562
|
-
hero_banner: "hero_banner";
|
|
563
|
-
category_grid: "category_grid";
|
|
564
|
-
collection_grid: "collection_grid";
|
|
565
|
-
featured_products: "featured_products";
|
|
566
|
-
text_with_image: "text_with_image";
|
|
567
|
-
rich_text: "rich_text";
|
|
568
|
-
newsletter_signup: "newsletter_signup";
|
|
569
|
-
}>;
|
|
570
|
-
title: z.ZodOptional<z.ZodString>;
|
|
571
|
-
is_visible: z.ZodDefault<z.ZodBoolean>;
|
|
572
|
-
content: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
573
|
-
style: z.ZodDefault<z.ZodObject<{
|
|
574
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
575
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
576
|
-
padding_top: z.ZodOptional<z.ZodString>;
|
|
577
|
-
padding_right: z.ZodOptional<z.ZodString>;
|
|
578
|
-
padding_bottom: z.ZodOptional<z.ZodString>;
|
|
579
|
-
padding_left: z.ZodOptional<z.ZodString>;
|
|
580
|
-
margin_top: z.ZodOptional<z.ZodString>;
|
|
581
|
-
margin_right: z.ZodOptional<z.ZodString>;
|
|
582
|
-
margin_bottom: z.ZodOptional<z.ZodString>;
|
|
583
|
-
margin_left: z.ZodOptional<z.ZodString>;
|
|
584
|
-
text_align: z.ZodOptional<z.ZodEnum<{
|
|
585
|
-
left: "left";
|
|
586
|
-
center: "center";
|
|
587
|
-
right: "right";
|
|
588
|
-
justify: "justify";
|
|
589
|
-
}>>;
|
|
590
|
-
max_width: z.ZodOptional<z.ZodEnum<{
|
|
591
|
-
full: "full";
|
|
592
|
-
xl: "xl";
|
|
593
|
-
lg: "lg";
|
|
594
|
-
md: "md";
|
|
595
|
-
}>>;
|
|
596
|
-
}, z.core.$strip>>;
|
|
597
|
-
}, z.core.$strip>;
|
|
598
|
-
type BuilderSection = z.infer<typeof builderSectionSchema>;
|
|
599
|
-
type HeroBannerConfig = z.infer<typeof heroBannerConfigSchema>;
|
|
600
|
-
type CategoryGridConfig = z.infer<typeof categoryGridConfigSchema>;
|
|
601
|
-
type CollectionGridConfig = z.infer<typeof collectionGridConfigSchema>;
|
|
602
|
-
type FeaturedProductsConfig = z.infer<typeof featuredProductsConfigSchema>;
|
|
603
|
-
type TextWithImageConfig = z.infer<typeof textWithImageConfigSchema>;
|
|
604
|
-
type RichTextConfig = z.infer<typeof richTextConfigSchema>;
|
|
605
|
-
type NewsletterSignupConfig = z.infer<typeof newsletterSignupConfigSchema>;
|
|
606
|
-
type SectionConfigMap = {
|
|
607
|
-
hero_banner: HeroBannerConfig;
|
|
608
|
-
category_grid: CategoryGridConfig;
|
|
609
|
-
collection_grid: CollectionGridConfig;
|
|
610
|
-
featured_products: FeaturedProductsConfig;
|
|
611
|
-
text_with_image: TextWithImageConfig;
|
|
612
|
-
rich_text: RichTextConfig;
|
|
613
|
-
newsletter_signup: NewsletterSignupConfig;
|
|
614
|
-
};
|
|
615
|
-
declare const SECTION_CONFIG_SCHEMAS: {
|
|
616
|
-
readonly hero_banner: z.ZodObject<{
|
|
617
|
-
banners: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
618
|
-
id: z.ZodString;
|
|
619
|
-
title: z.ZodOptional<z.ZodString>;
|
|
620
|
-
subtitle: z.ZodOptional<z.ZodString>;
|
|
621
|
-
image_url: z.ZodString;
|
|
622
|
-
link_url: z.ZodOptional<z.ZodString>;
|
|
623
|
-
button_text: z.ZodOptional<z.ZodString>;
|
|
624
|
-
}, z.core.$strip>>>;
|
|
625
|
-
autoplay: z.ZodDefault<z.ZodBoolean>;
|
|
626
|
-
autoplay_interval: z.ZodDefault<z.ZodNumber>;
|
|
627
|
-
}, z.core.$strip>;
|
|
628
|
-
readonly category_grid: z.ZodObject<{
|
|
629
|
-
category_ids: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
630
|
-
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<6>]>>;
|
|
631
|
-
show_names: z.ZodDefault<z.ZodBoolean>;
|
|
632
|
-
show_count: z.ZodDefault<z.ZodBoolean>;
|
|
633
|
-
title: z.ZodOptional<z.ZodString>;
|
|
634
|
-
}, z.core.$strip>;
|
|
635
|
-
readonly collection_grid: z.ZodObject<{
|
|
636
|
-
collection_ids: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
637
|
-
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<6>]>>;
|
|
638
|
-
show_names: z.ZodDefault<z.ZodBoolean>;
|
|
639
|
-
show_count: z.ZodDefault<z.ZodBoolean>;
|
|
640
|
-
title: z.ZodOptional<z.ZodString>;
|
|
641
|
-
}, z.core.$strip>;
|
|
642
|
-
readonly featured_products: z.ZodObject<{
|
|
643
|
-
collection_slug: z.ZodOptional<z.ZodString>;
|
|
644
|
-
product_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
645
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
646
|
-
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<6>]>>;
|
|
647
|
-
title: z.ZodOptional<z.ZodString>;
|
|
648
|
-
}, z.core.$strip>;
|
|
649
|
-
readonly text_with_image: z.ZodObject<{
|
|
650
|
-
content: z.ZodDefault<z.ZodString>;
|
|
651
|
-
image_url: z.ZodDefault<z.ZodString>;
|
|
652
|
-
image_position: z.ZodDefault<z.ZodEnum<{
|
|
653
|
-
left: "left";
|
|
654
|
-
right: "right";
|
|
655
|
-
}>>;
|
|
656
|
-
}, z.core.$strip>;
|
|
657
|
-
readonly rich_text: z.ZodObject<{
|
|
658
|
-
content: z.ZodDefault<z.ZodString>;
|
|
659
|
-
}, z.core.$strip>;
|
|
660
|
-
readonly newsletter_signup: z.ZodObject<{
|
|
661
|
-
title: z.ZodOptional<z.ZodString>;
|
|
662
|
-
description: z.ZodOptional<z.ZodString>;
|
|
663
|
-
button_text: z.ZodOptional<z.ZodString>;
|
|
664
|
-
}, z.core.$strip>;
|
|
665
|
-
};
|
|
666
|
-
/**
|
|
667
|
-
* Parses a section's `content` using the schema registered for its `type`.
|
|
668
|
-
*
|
|
669
|
-
* This is the safe replacement for `sectionConfigSchema`: dispatching on
|
|
670
|
-
* `type` (which callers already have from the section wrapper) instead of
|
|
671
|
-
* asking zod to guess the shape from a bare union. Throws a `ZodError` if
|
|
672
|
-
* `content` doesn't satisfy the named type's schema.
|
|
673
|
-
*/
|
|
674
|
-
declare function parseSectionContent<T extends SectionType>(type: T, content: unknown): SectionConfigMap[T];
|
|
675
|
-
type WidgetCategory = "media" | "content" | "commerce" | "engagement";
|
|
676
|
-
interface WidgetDefinition {
|
|
677
|
-
type: SectionType;
|
|
678
|
-
name: string;
|
|
679
|
-
icon: string;
|
|
680
|
-
description: string;
|
|
681
|
-
category: WidgetCategory;
|
|
682
|
-
defaultContent: Record<string, any>;
|
|
683
|
-
defaultStyle: SectionStyle;
|
|
684
|
-
}
|
|
685
|
-
declare const WIDGET_REGISTRY: Record<SectionType, WidgetDefinition>;
|
|
686
|
-
declare const headerConfigSchema: z.ZodObject<{
|
|
687
|
-
show_logo: z.ZodDefault<z.ZodBoolean>;
|
|
688
|
-
show_search: z.ZodDefault<z.ZodBoolean>;
|
|
689
|
-
show_cart: z.ZodDefault<z.ZodBoolean>;
|
|
690
|
-
show_auth: z.ZodDefault<z.ZodBoolean>;
|
|
691
|
-
main_menu_ref: z.ZodOptional<z.ZodString>;
|
|
692
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
693
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
694
|
-
topbar_message: z.ZodOptional<z.ZodString>;
|
|
695
|
-
topbar_container_class: z.ZodOptional<z.ZodString>;
|
|
696
|
-
}, z.core.$strip>;
|
|
697
|
-
type HeaderConfig = z.infer<typeof headerConfigSchema>;
|
|
698
|
-
declare const footerConfigSchema: z.ZodObject<{
|
|
699
|
-
show_logo: z.ZodDefault<z.ZodBoolean>;
|
|
700
|
-
show_social_links: z.ZodDefault<z.ZodBoolean>;
|
|
701
|
-
customer_support_menu_ref: z.ZodOptional<z.ZodString>;
|
|
702
|
-
about_us_menu_ref: z.ZodOptional<z.ZodString>;
|
|
703
|
-
copyright_text: z.ZodOptional<z.ZodString>;
|
|
704
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
705
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
706
|
-
}, z.core.$strip>;
|
|
707
|
-
type FooterConfig = z.infer<typeof footerConfigSchema>;
|
|
708
|
-
declare const builderThemeConfigSchema: z.ZodObject<{
|
|
709
|
-
menu: z.ZodOptional<z.ZodObject<{
|
|
710
|
-
main_menu: z.ZodOptional<z.ZodString>;
|
|
711
|
-
customer_support_menu: z.ZodOptional<z.ZodString>;
|
|
712
|
-
about_us_menu: z.ZodOptional<z.ZodString>;
|
|
713
|
-
}, z.core.$strip>>;
|
|
714
|
-
topbar: z.ZodOptional<z.ZodObject<{
|
|
715
|
-
message: z.ZodOptional<z.ZodString>;
|
|
716
|
-
container_class: z.ZodOptional<z.ZodString>;
|
|
717
|
-
}, z.core.$strip>>;
|
|
718
|
-
homepage: z.ZodOptional<z.ZodObject<{
|
|
719
|
-
collection_slug: z.ZodOptional<z.ZodString>;
|
|
720
|
-
}, z.core.$strip>>;
|
|
721
|
-
checkout: z.ZodOptional<z.ZodObject<{
|
|
722
|
-
term_link: z.ZodOptional<z.ZodString>;
|
|
723
|
-
policy_link: z.ZodOptional<z.ZodString>;
|
|
724
|
-
}, z.core.$strip>>;
|
|
725
|
-
sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
726
|
-
id: z.ZodString;
|
|
727
|
-
type: z.ZodEnum<{
|
|
728
|
-
hero_banner: "hero_banner";
|
|
729
|
-
category_grid: "category_grid";
|
|
730
|
-
collection_grid: "collection_grid";
|
|
731
|
-
featured_products: "featured_products";
|
|
732
|
-
text_with_image: "text_with_image";
|
|
733
|
-
rich_text: "rich_text";
|
|
734
|
-
newsletter_signup: "newsletter_signup";
|
|
735
|
-
}>;
|
|
736
|
-
title: z.ZodOptional<z.ZodString>;
|
|
737
|
-
is_visible: z.ZodDefault<z.ZodBoolean>;
|
|
738
|
-
content: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
739
|
-
style: z.ZodDefault<z.ZodObject<{
|
|
740
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
741
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
742
|
-
padding_top: z.ZodOptional<z.ZodString>;
|
|
743
|
-
padding_right: z.ZodOptional<z.ZodString>;
|
|
744
|
-
padding_bottom: z.ZodOptional<z.ZodString>;
|
|
745
|
-
padding_left: z.ZodOptional<z.ZodString>;
|
|
746
|
-
margin_top: z.ZodOptional<z.ZodString>;
|
|
747
|
-
margin_right: z.ZodOptional<z.ZodString>;
|
|
748
|
-
margin_bottom: z.ZodOptional<z.ZodString>;
|
|
749
|
-
margin_left: z.ZodOptional<z.ZodString>;
|
|
750
|
-
text_align: z.ZodOptional<z.ZodEnum<{
|
|
751
|
-
left: "left";
|
|
752
|
-
center: "center";
|
|
753
|
-
right: "right";
|
|
754
|
-
justify: "justify";
|
|
755
|
-
}>>;
|
|
756
|
-
max_width: z.ZodOptional<z.ZodEnum<{
|
|
757
|
-
full: "full";
|
|
758
|
-
xl: "xl";
|
|
759
|
-
lg: "lg";
|
|
760
|
-
md: "md";
|
|
761
|
-
}>>;
|
|
762
|
-
}, z.core.$strip>>;
|
|
763
|
-
}, z.core.$strip>>>;
|
|
764
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
765
|
-
show_logo: z.ZodDefault<z.ZodBoolean>;
|
|
766
|
-
show_search: z.ZodDefault<z.ZodBoolean>;
|
|
767
|
-
show_cart: z.ZodDefault<z.ZodBoolean>;
|
|
768
|
-
show_auth: z.ZodDefault<z.ZodBoolean>;
|
|
769
|
-
main_menu_ref: z.ZodOptional<z.ZodString>;
|
|
770
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
771
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
772
|
-
topbar_message: z.ZodOptional<z.ZodString>;
|
|
773
|
-
topbar_container_class: z.ZodOptional<z.ZodString>;
|
|
774
|
-
}, z.core.$strip>>;
|
|
775
|
-
footer: z.ZodOptional<z.ZodObject<{
|
|
776
|
-
show_logo: z.ZodDefault<z.ZodBoolean>;
|
|
777
|
-
show_social_links: z.ZodDefault<z.ZodBoolean>;
|
|
778
|
-
customer_support_menu_ref: z.ZodOptional<z.ZodString>;
|
|
779
|
-
about_us_menu_ref: z.ZodOptional<z.ZodString>;
|
|
780
|
-
copyright_text: z.ZodOptional<z.ZodString>;
|
|
781
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
782
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
783
|
-
}, z.core.$strip>>;
|
|
784
|
-
}, z.core.$loose>;
|
|
785
|
-
type BuilderThemeConfig = z.infer<typeof builderThemeConfigSchema>;
|
|
786
|
-
declare const themeVersionSchema: z.ZodObject<{
|
|
787
|
-
id: z.ZodNumber;
|
|
788
|
-
name: z.ZodString;
|
|
789
|
-
theme_config_snapshot: z.ZodObject<{
|
|
790
|
-
menu: z.ZodOptional<z.ZodObject<{
|
|
791
|
-
main_menu: z.ZodOptional<z.ZodString>;
|
|
792
|
-
customer_support_menu: z.ZodOptional<z.ZodString>;
|
|
793
|
-
about_us_menu: z.ZodOptional<z.ZodString>;
|
|
794
|
-
}, z.core.$strip>>;
|
|
795
|
-
topbar: z.ZodOptional<z.ZodObject<{
|
|
796
|
-
message: z.ZodOptional<z.ZodString>;
|
|
797
|
-
container_class: z.ZodOptional<z.ZodString>;
|
|
798
|
-
}, z.core.$strip>>;
|
|
799
|
-
homepage: z.ZodOptional<z.ZodObject<{
|
|
800
|
-
collection_slug: z.ZodOptional<z.ZodString>;
|
|
801
|
-
}, z.core.$strip>>;
|
|
802
|
-
checkout: z.ZodOptional<z.ZodObject<{
|
|
803
|
-
term_link: z.ZodOptional<z.ZodString>;
|
|
804
|
-
policy_link: z.ZodOptional<z.ZodString>;
|
|
805
|
-
}, z.core.$strip>>;
|
|
806
|
-
sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
807
|
-
id: z.ZodString;
|
|
808
|
-
type: z.ZodEnum<{
|
|
809
|
-
hero_banner: "hero_banner";
|
|
810
|
-
category_grid: "category_grid";
|
|
811
|
-
collection_grid: "collection_grid";
|
|
812
|
-
featured_products: "featured_products";
|
|
813
|
-
text_with_image: "text_with_image";
|
|
814
|
-
rich_text: "rich_text";
|
|
815
|
-
newsletter_signup: "newsletter_signup";
|
|
816
|
-
}>;
|
|
817
|
-
title: z.ZodOptional<z.ZodString>;
|
|
818
|
-
is_visible: z.ZodDefault<z.ZodBoolean>;
|
|
819
|
-
content: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
820
|
-
style: z.ZodDefault<z.ZodObject<{
|
|
821
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
822
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
823
|
-
padding_top: z.ZodOptional<z.ZodString>;
|
|
824
|
-
padding_right: z.ZodOptional<z.ZodString>;
|
|
825
|
-
padding_bottom: z.ZodOptional<z.ZodString>;
|
|
826
|
-
padding_left: z.ZodOptional<z.ZodString>;
|
|
827
|
-
margin_top: z.ZodOptional<z.ZodString>;
|
|
828
|
-
margin_right: z.ZodOptional<z.ZodString>;
|
|
829
|
-
margin_bottom: z.ZodOptional<z.ZodString>;
|
|
830
|
-
margin_left: z.ZodOptional<z.ZodString>;
|
|
831
|
-
text_align: z.ZodOptional<z.ZodEnum<{
|
|
832
|
-
left: "left";
|
|
833
|
-
center: "center";
|
|
834
|
-
right: "right";
|
|
835
|
-
justify: "justify";
|
|
836
|
-
}>>;
|
|
837
|
-
max_width: z.ZodOptional<z.ZodEnum<{
|
|
838
|
-
full: "full";
|
|
839
|
-
xl: "xl";
|
|
840
|
-
lg: "lg";
|
|
841
|
-
md: "md";
|
|
842
|
-
}>>;
|
|
843
|
-
}, z.core.$strip>>;
|
|
844
|
-
}, z.core.$strip>>>;
|
|
845
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
846
|
-
show_logo: z.ZodDefault<z.ZodBoolean>;
|
|
847
|
-
show_search: z.ZodDefault<z.ZodBoolean>;
|
|
848
|
-
show_cart: z.ZodDefault<z.ZodBoolean>;
|
|
849
|
-
show_auth: z.ZodDefault<z.ZodBoolean>;
|
|
850
|
-
main_menu_ref: z.ZodOptional<z.ZodString>;
|
|
851
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
852
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
853
|
-
topbar_message: z.ZodOptional<z.ZodString>;
|
|
854
|
-
topbar_container_class: z.ZodOptional<z.ZodString>;
|
|
855
|
-
}, z.core.$strip>>;
|
|
856
|
-
footer: z.ZodOptional<z.ZodObject<{
|
|
857
|
-
show_logo: z.ZodDefault<z.ZodBoolean>;
|
|
858
|
-
show_social_links: z.ZodDefault<z.ZodBoolean>;
|
|
859
|
-
customer_support_menu_ref: z.ZodOptional<z.ZodString>;
|
|
860
|
-
about_us_menu_ref: z.ZodOptional<z.ZodString>;
|
|
861
|
-
copyright_text: z.ZodOptional<z.ZodString>;
|
|
862
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
863
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
864
|
-
}, z.core.$strip>>;
|
|
865
|
-
}, z.core.$loose>;
|
|
866
|
-
created_by: z.ZodString;
|
|
867
|
-
created_at: z.ZodString;
|
|
868
|
-
updated_at: z.ZodString;
|
|
869
|
-
}, z.core.$strip>;
|
|
870
|
-
type ThemeVersion = z.infer<typeof themeVersionSchema>;
|
|
871
|
-
|
|
872
389
|
/**
|
|
873
390
|
* Store-related schemas based on Prisma models
|
|
874
391
|
*/
|
|
@@ -894,83 +411,11 @@ declare const storeConfigSchema: z.ZodObject<{
|
|
|
894
411
|
created_at: z.ZodISODateTime;
|
|
895
412
|
updated_at: z.ZodISODateTime;
|
|
896
413
|
}, z.core.$strip>;
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
}, z.core.$strip>>;
|
|
903
|
-
topbar: z.ZodOptional<z.ZodObject<{
|
|
904
|
-
message: z.ZodOptional<z.ZodString>;
|
|
905
|
-
container_class: z.ZodOptional<z.ZodString>;
|
|
906
|
-
}, z.core.$strip>>;
|
|
907
|
-
homepage: z.ZodOptional<z.ZodObject<{
|
|
908
|
-
collection_slug: z.ZodOptional<z.ZodString>;
|
|
909
|
-
}, z.core.$strip>>;
|
|
910
|
-
checkout: z.ZodOptional<z.ZodObject<{
|
|
911
|
-
term_link: z.ZodOptional<z.ZodString>;
|
|
912
|
-
policy_link: z.ZodOptional<z.ZodString>;
|
|
913
|
-
}, z.core.$strip>>;
|
|
914
|
-
sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
915
|
-
id: z.ZodString;
|
|
916
|
-
type: z.ZodEnum<{
|
|
917
|
-
hero_banner: "hero_banner";
|
|
918
|
-
category_grid: "category_grid";
|
|
919
|
-
collection_grid: "collection_grid";
|
|
920
|
-
featured_products: "featured_products";
|
|
921
|
-
text_with_image: "text_with_image";
|
|
922
|
-
rich_text: "rich_text";
|
|
923
|
-
newsletter_signup: "newsletter_signup";
|
|
924
|
-
}>;
|
|
925
|
-
title: z.ZodOptional<z.ZodString>;
|
|
926
|
-
is_visible: z.ZodDefault<z.ZodBoolean>;
|
|
927
|
-
content: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
928
|
-
style: z.ZodDefault<z.ZodObject<{
|
|
929
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
930
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
931
|
-
padding_top: z.ZodOptional<z.ZodString>;
|
|
932
|
-
padding_right: z.ZodOptional<z.ZodString>;
|
|
933
|
-
padding_bottom: z.ZodOptional<z.ZodString>;
|
|
934
|
-
padding_left: z.ZodOptional<z.ZodString>;
|
|
935
|
-
margin_top: z.ZodOptional<z.ZodString>;
|
|
936
|
-
margin_right: z.ZodOptional<z.ZodString>;
|
|
937
|
-
margin_bottom: z.ZodOptional<z.ZodString>;
|
|
938
|
-
margin_left: z.ZodOptional<z.ZodString>;
|
|
939
|
-
text_align: z.ZodOptional<z.ZodEnum<{
|
|
940
|
-
left: "left";
|
|
941
|
-
center: "center";
|
|
942
|
-
right: "right";
|
|
943
|
-
justify: "justify";
|
|
944
|
-
}>>;
|
|
945
|
-
max_width: z.ZodOptional<z.ZodEnum<{
|
|
946
|
-
full: "full";
|
|
947
|
-
xl: "xl";
|
|
948
|
-
lg: "lg";
|
|
949
|
-
md: "md";
|
|
950
|
-
}>>;
|
|
951
|
-
}, z.core.$strip>>;
|
|
952
|
-
}, z.core.$strip>>>;
|
|
953
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
954
|
-
show_logo: z.ZodDefault<z.ZodBoolean>;
|
|
955
|
-
show_search: z.ZodDefault<z.ZodBoolean>;
|
|
956
|
-
show_cart: z.ZodDefault<z.ZodBoolean>;
|
|
957
|
-
show_auth: z.ZodDefault<z.ZodBoolean>;
|
|
958
|
-
main_menu_ref: z.ZodOptional<z.ZodString>;
|
|
959
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
960
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
961
|
-
topbar_message: z.ZodOptional<z.ZodString>;
|
|
962
|
-
topbar_container_class: z.ZodOptional<z.ZodString>;
|
|
963
|
-
}, z.core.$strip>>;
|
|
964
|
-
footer: z.ZodOptional<z.ZodObject<{
|
|
965
|
-
show_logo: z.ZodDefault<z.ZodBoolean>;
|
|
966
|
-
show_social_links: z.ZodDefault<z.ZodBoolean>;
|
|
967
|
-
customer_support_menu_ref: z.ZodOptional<z.ZodString>;
|
|
968
|
-
about_us_menu_ref: z.ZodOptional<z.ZodString>;
|
|
969
|
-
copyright_text: z.ZodOptional<z.ZodString>;
|
|
970
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
971
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
972
|
-
}, z.core.$strip>>;
|
|
973
|
-
}, z.core.$loose>>>;
|
|
414
|
+
/** Checkout and register links: a store path or an absolute URL each. */
|
|
415
|
+
declare const legalLinksSchema: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
416
|
+
terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
417
|
+
privacy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
418
|
+
}, z.core.$strip>>>;
|
|
974
419
|
declare const storeSettingsSchema: z.ZodObject<{
|
|
975
420
|
id: z.ZodInt32;
|
|
976
421
|
store_id: z.ZodInt32;
|
|
@@ -990,83 +435,10 @@ declare const storeSettingsSchema: z.ZodObject<{
|
|
|
990
435
|
review_requests_enabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
991
436
|
order_number_prefix: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
992
437
|
order_number_suffix: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
about_us_menu: z.ZodOptional<z.ZodString>;
|
|
998
|
-
}, z.core.$strip>>;
|
|
999
|
-
topbar: z.ZodOptional<z.ZodObject<{
|
|
1000
|
-
message: z.ZodOptional<z.ZodString>;
|
|
1001
|
-
container_class: z.ZodOptional<z.ZodString>;
|
|
1002
|
-
}, z.core.$strip>>;
|
|
1003
|
-
homepage: z.ZodOptional<z.ZodObject<{
|
|
1004
|
-
collection_slug: z.ZodOptional<z.ZodString>;
|
|
1005
|
-
}, z.core.$strip>>;
|
|
1006
|
-
checkout: z.ZodOptional<z.ZodObject<{
|
|
1007
|
-
term_link: z.ZodOptional<z.ZodString>;
|
|
1008
|
-
policy_link: z.ZodOptional<z.ZodString>;
|
|
1009
|
-
}, z.core.$strip>>;
|
|
1010
|
-
sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1011
|
-
id: z.ZodString;
|
|
1012
|
-
type: z.ZodEnum<{
|
|
1013
|
-
hero_banner: "hero_banner";
|
|
1014
|
-
category_grid: "category_grid";
|
|
1015
|
-
collection_grid: "collection_grid";
|
|
1016
|
-
featured_products: "featured_products";
|
|
1017
|
-
text_with_image: "text_with_image";
|
|
1018
|
-
rich_text: "rich_text";
|
|
1019
|
-
newsletter_signup: "newsletter_signup";
|
|
1020
|
-
}>;
|
|
1021
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1022
|
-
is_visible: z.ZodDefault<z.ZodBoolean>;
|
|
1023
|
-
content: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1024
|
-
style: z.ZodDefault<z.ZodObject<{
|
|
1025
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
1026
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
1027
|
-
padding_top: z.ZodOptional<z.ZodString>;
|
|
1028
|
-
padding_right: z.ZodOptional<z.ZodString>;
|
|
1029
|
-
padding_bottom: z.ZodOptional<z.ZodString>;
|
|
1030
|
-
padding_left: z.ZodOptional<z.ZodString>;
|
|
1031
|
-
margin_top: z.ZodOptional<z.ZodString>;
|
|
1032
|
-
margin_right: z.ZodOptional<z.ZodString>;
|
|
1033
|
-
margin_bottom: z.ZodOptional<z.ZodString>;
|
|
1034
|
-
margin_left: z.ZodOptional<z.ZodString>;
|
|
1035
|
-
text_align: z.ZodOptional<z.ZodEnum<{
|
|
1036
|
-
left: "left";
|
|
1037
|
-
center: "center";
|
|
1038
|
-
right: "right";
|
|
1039
|
-
justify: "justify";
|
|
1040
|
-
}>>;
|
|
1041
|
-
max_width: z.ZodOptional<z.ZodEnum<{
|
|
1042
|
-
full: "full";
|
|
1043
|
-
xl: "xl";
|
|
1044
|
-
lg: "lg";
|
|
1045
|
-
md: "md";
|
|
1046
|
-
}>>;
|
|
1047
|
-
}, z.core.$strip>>;
|
|
1048
|
-
}, z.core.$strip>>>;
|
|
1049
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
1050
|
-
show_logo: z.ZodDefault<z.ZodBoolean>;
|
|
1051
|
-
show_search: z.ZodDefault<z.ZodBoolean>;
|
|
1052
|
-
show_cart: z.ZodDefault<z.ZodBoolean>;
|
|
1053
|
-
show_auth: z.ZodDefault<z.ZodBoolean>;
|
|
1054
|
-
main_menu_ref: z.ZodOptional<z.ZodString>;
|
|
1055
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
1056
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
1057
|
-
topbar_message: z.ZodOptional<z.ZodString>;
|
|
1058
|
-
topbar_container_class: z.ZodOptional<z.ZodString>;
|
|
1059
|
-
}, z.core.$strip>>;
|
|
1060
|
-
footer: z.ZodOptional<z.ZodObject<{
|
|
1061
|
-
show_logo: z.ZodDefault<z.ZodBoolean>;
|
|
1062
|
-
show_social_links: z.ZodDefault<z.ZodBoolean>;
|
|
1063
|
-
customer_support_menu_ref: z.ZodOptional<z.ZodString>;
|
|
1064
|
-
about_us_menu_ref: z.ZodOptional<z.ZodString>;
|
|
1065
|
-
copyright_text: z.ZodOptional<z.ZodString>;
|
|
1066
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
1067
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
1068
|
-
}, z.core.$strip>>;
|
|
1069
|
-
}, z.core.$loose>>>;
|
|
438
|
+
legal_links: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
439
|
+
terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
440
|
+
privacy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
441
|
+
}, z.core.$strip>>>;
|
|
1070
442
|
email_accent_color: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1071
443
|
email_bg_color: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1072
444
|
email_body_bg_color: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -1081,8 +453,8 @@ declare const storeSettingsSchema: z.ZodObject<{
|
|
|
1081
453
|
}, z.core.$strip>;
|
|
1082
454
|
declare const createStoreSchema: z.ZodObject<{
|
|
1083
455
|
name: z.ZodString;
|
|
1084
|
-
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1085
456
|
user_id: z.ZodUUID;
|
|
457
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1086
458
|
status: z.ZodDefault<z.ZodEnum<{
|
|
1087
459
|
active: "active";
|
|
1088
460
|
pending: "pending";
|
|
@@ -1091,8 +463,8 @@ declare const createStoreSchema: z.ZodObject<{
|
|
|
1091
463
|
}, z.core.$strip>;
|
|
1092
464
|
declare const updateStoreSchema: z.ZodObject<{
|
|
1093
465
|
name: z.ZodOptional<z.ZodString>;
|
|
1094
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
1095
466
|
user_id: z.ZodOptional<z.ZodUUID>;
|
|
467
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
1096
468
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
1097
469
|
active: "active";
|
|
1098
470
|
pending: "pending";
|
|
@@ -1126,83 +498,10 @@ declare const createStoreSettingsSchema: z.ZodObject<{
|
|
|
1126
498
|
shopee_link: z.ZodNullable<z.ZodOptional<z.ZodURL>>;
|
|
1127
499
|
facebook_link: z.ZodNullable<z.ZodOptional<z.ZodURL>>;
|
|
1128
500
|
instagram_link: z.ZodNullable<z.ZodOptional<z.ZodURL>>;
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
about_us_menu: z.ZodOptional<z.ZodString>;
|
|
1134
|
-
}, z.core.$strip>>;
|
|
1135
|
-
topbar: z.ZodOptional<z.ZodObject<{
|
|
1136
|
-
message: z.ZodOptional<z.ZodString>;
|
|
1137
|
-
container_class: z.ZodOptional<z.ZodString>;
|
|
1138
|
-
}, z.core.$strip>>;
|
|
1139
|
-
homepage: z.ZodOptional<z.ZodObject<{
|
|
1140
|
-
collection_slug: z.ZodOptional<z.ZodString>;
|
|
1141
|
-
}, z.core.$strip>>;
|
|
1142
|
-
checkout: z.ZodOptional<z.ZodObject<{
|
|
1143
|
-
term_link: z.ZodOptional<z.ZodString>;
|
|
1144
|
-
policy_link: z.ZodOptional<z.ZodString>;
|
|
1145
|
-
}, z.core.$strip>>;
|
|
1146
|
-
sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1147
|
-
id: z.ZodString;
|
|
1148
|
-
type: z.ZodEnum<{
|
|
1149
|
-
hero_banner: "hero_banner";
|
|
1150
|
-
category_grid: "category_grid";
|
|
1151
|
-
collection_grid: "collection_grid";
|
|
1152
|
-
featured_products: "featured_products";
|
|
1153
|
-
text_with_image: "text_with_image";
|
|
1154
|
-
rich_text: "rich_text";
|
|
1155
|
-
newsletter_signup: "newsletter_signup";
|
|
1156
|
-
}>;
|
|
1157
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1158
|
-
is_visible: z.ZodDefault<z.ZodBoolean>;
|
|
1159
|
-
content: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1160
|
-
style: z.ZodDefault<z.ZodObject<{
|
|
1161
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
1162
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
1163
|
-
padding_top: z.ZodOptional<z.ZodString>;
|
|
1164
|
-
padding_right: z.ZodOptional<z.ZodString>;
|
|
1165
|
-
padding_bottom: z.ZodOptional<z.ZodString>;
|
|
1166
|
-
padding_left: z.ZodOptional<z.ZodString>;
|
|
1167
|
-
margin_top: z.ZodOptional<z.ZodString>;
|
|
1168
|
-
margin_right: z.ZodOptional<z.ZodString>;
|
|
1169
|
-
margin_bottom: z.ZodOptional<z.ZodString>;
|
|
1170
|
-
margin_left: z.ZodOptional<z.ZodString>;
|
|
1171
|
-
text_align: z.ZodOptional<z.ZodEnum<{
|
|
1172
|
-
left: "left";
|
|
1173
|
-
center: "center";
|
|
1174
|
-
right: "right";
|
|
1175
|
-
justify: "justify";
|
|
1176
|
-
}>>;
|
|
1177
|
-
max_width: z.ZodOptional<z.ZodEnum<{
|
|
1178
|
-
full: "full";
|
|
1179
|
-
xl: "xl";
|
|
1180
|
-
lg: "lg";
|
|
1181
|
-
md: "md";
|
|
1182
|
-
}>>;
|
|
1183
|
-
}, z.core.$strip>>;
|
|
1184
|
-
}, z.core.$strip>>>;
|
|
1185
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
1186
|
-
show_logo: z.ZodDefault<z.ZodBoolean>;
|
|
1187
|
-
show_search: z.ZodDefault<z.ZodBoolean>;
|
|
1188
|
-
show_cart: z.ZodDefault<z.ZodBoolean>;
|
|
1189
|
-
show_auth: z.ZodDefault<z.ZodBoolean>;
|
|
1190
|
-
main_menu_ref: z.ZodOptional<z.ZodString>;
|
|
1191
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
1192
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
1193
|
-
topbar_message: z.ZodOptional<z.ZodString>;
|
|
1194
|
-
topbar_container_class: z.ZodOptional<z.ZodString>;
|
|
1195
|
-
}, z.core.$strip>>;
|
|
1196
|
-
footer: z.ZodOptional<z.ZodObject<{
|
|
1197
|
-
show_logo: z.ZodDefault<z.ZodBoolean>;
|
|
1198
|
-
show_social_links: z.ZodDefault<z.ZodBoolean>;
|
|
1199
|
-
customer_support_menu_ref: z.ZodOptional<z.ZodString>;
|
|
1200
|
-
about_us_menu_ref: z.ZodOptional<z.ZodString>;
|
|
1201
|
-
copyright_text: z.ZodOptional<z.ZodString>;
|
|
1202
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
1203
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
1204
|
-
}, z.core.$strip>>;
|
|
1205
|
-
}, z.core.$loose>>>;
|
|
501
|
+
legal_links: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
502
|
+
terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
503
|
+
privacy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
504
|
+
}, z.core.$strip>>>;
|
|
1206
505
|
google_analytics_key: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1207
506
|
shop_introduction: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1208
507
|
tagline: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -1230,83 +529,10 @@ declare const updateStoreSettingsSchema: z.ZodObject<{
|
|
|
1230
529
|
shopee_link: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodURL>>>;
|
|
1231
530
|
facebook_link: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodURL>>>;
|
|
1232
531
|
instagram_link: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodURL>>>;
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
about_us_menu: z.ZodOptional<z.ZodString>;
|
|
1238
|
-
}, z.core.$strip>>;
|
|
1239
|
-
topbar: z.ZodOptional<z.ZodObject<{
|
|
1240
|
-
message: z.ZodOptional<z.ZodString>;
|
|
1241
|
-
container_class: z.ZodOptional<z.ZodString>;
|
|
1242
|
-
}, z.core.$strip>>;
|
|
1243
|
-
homepage: z.ZodOptional<z.ZodObject<{
|
|
1244
|
-
collection_slug: z.ZodOptional<z.ZodString>;
|
|
1245
|
-
}, z.core.$strip>>;
|
|
1246
|
-
checkout: z.ZodOptional<z.ZodObject<{
|
|
1247
|
-
term_link: z.ZodOptional<z.ZodString>;
|
|
1248
|
-
policy_link: z.ZodOptional<z.ZodString>;
|
|
1249
|
-
}, z.core.$strip>>;
|
|
1250
|
-
sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1251
|
-
id: z.ZodString;
|
|
1252
|
-
type: z.ZodEnum<{
|
|
1253
|
-
hero_banner: "hero_banner";
|
|
1254
|
-
category_grid: "category_grid";
|
|
1255
|
-
collection_grid: "collection_grid";
|
|
1256
|
-
featured_products: "featured_products";
|
|
1257
|
-
text_with_image: "text_with_image";
|
|
1258
|
-
rich_text: "rich_text";
|
|
1259
|
-
newsletter_signup: "newsletter_signup";
|
|
1260
|
-
}>;
|
|
1261
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1262
|
-
is_visible: z.ZodDefault<z.ZodBoolean>;
|
|
1263
|
-
content: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1264
|
-
style: z.ZodDefault<z.ZodObject<{
|
|
1265
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
1266
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
1267
|
-
padding_top: z.ZodOptional<z.ZodString>;
|
|
1268
|
-
padding_right: z.ZodOptional<z.ZodString>;
|
|
1269
|
-
padding_bottom: z.ZodOptional<z.ZodString>;
|
|
1270
|
-
padding_left: z.ZodOptional<z.ZodString>;
|
|
1271
|
-
margin_top: z.ZodOptional<z.ZodString>;
|
|
1272
|
-
margin_right: z.ZodOptional<z.ZodString>;
|
|
1273
|
-
margin_bottom: z.ZodOptional<z.ZodString>;
|
|
1274
|
-
margin_left: z.ZodOptional<z.ZodString>;
|
|
1275
|
-
text_align: z.ZodOptional<z.ZodEnum<{
|
|
1276
|
-
left: "left";
|
|
1277
|
-
center: "center";
|
|
1278
|
-
right: "right";
|
|
1279
|
-
justify: "justify";
|
|
1280
|
-
}>>;
|
|
1281
|
-
max_width: z.ZodOptional<z.ZodEnum<{
|
|
1282
|
-
full: "full";
|
|
1283
|
-
xl: "xl";
|
|
1284
|
-
lg: "lg";
|
|
1285
|
-
md: "md";
|
|
1286
|
-
}>>;
|
|
1287
|
-
}, z.core.$strip>>;
|
|
1288
|
-
}, z.core.$strip>>>;
|
|
1289
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
1290
|
-
show_logo: z.ZodDefault<z.ZodBoolean>;
|
|
1291
|
-
show_search: z.ZodDefault<z.ZodBoolean>;
|
|
1292
|
-
show_cart: z.ZodDefault<z.ZodBoolean>;
|
|
1293
|
-
show_auth: z.ZodDefault<z.ZodBoolean>;
|
|
1294
|
-
main_menu_ref: z.ZodOptional<z.ZodString>;
|
|
1295
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
1296
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
1297
|
-
topbar_message: z.ZodOptional<z.ZodString>;
|
|
1298
|
-
topbar_container_class: z.ZodOptional<z.ZodString>;
|
|
1299
|
-
}, z.core.$strip>>;
|
|
1300
|
-
footer: z.ZodOptional<z.ZodObject<{
|
|
1301
|
-
show_logo: z.ZodDefault<z.ZodBoolean>;
|
|
1302
|
-
show_social_links: z.ZodDefault<z.ZodBoolean>;
|
|
1303
|
-
customer_support_menu_ref: z.ZodOptional<z.ZodString>;
|
|
1304
|
-
about_us_menu_ref: z.ZodOptional<z.ZodString>;
|
|
1305
|
-
copyright_text: z.ZodOptional<z.ZodString>;
|
|
1306
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
1307
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
1308
|
-
}, z.core.$strip>>;
|
|
1309
|
-
}, z.core.$loose>>>>;
|
|
532
|
+
legal_links: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
533
|
+
terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
534
|
+
privacy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
535
|
+
}, z.core.$strip>>>>;
|
|
1310
536
|
google_analytics_key: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
1311
537
|
shop_introduction: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
1312
538
|
tagline: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -1357,83 +583,10 @@ declare const storeWithRelationsSchema: z.ZodObject<{
|
|
|
1357
583
|
review_requests_enabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
1358
584
|
order_number_prefix: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1359
585
|
order_number_suffix: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
about_us_menu: z.ZodOptional<z.ZodString>;
|
|
1365
|
-
}, z.core.$strip>>;
|
|
1366
|
-
topbar: z.ZodOptional<z.ZodObject<{
|
|
1367
|
-
message: z.ZodOptional<z.ZodString>;
|
|
1368
|
-
container_class: z.ZodOptional<z.ZodString>;
|
|
1369
|
-
}, z.core.$strip>>;
|
|
1370
|
-
homepage: z.ZodOptional<z.ZodObject<{
|
|
1371
|
-
collection_slug: z.ZodOptional<z.ZodString>;
|
|
1372
|
-
}, z.core.$strip>>;
|
|
1373
|
-
checkout: z.ZodOptional<z.ZodObject<{
|
|
1374
|
-
term_link: z.ZodOptional<z.ZodString>;
|
|
1375
|
-
policy_link: z.ZodOptional<z.ZodString>;
|
|
1376
|
-
}, z.core.$strip>>;
|
|
1377
|
-
sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1378
|
-
id: z.ZodString;
|
|
1379
|
-
type: z.ZodEnum<{
|
|
1380
|
-
hero_banner: "hero_banner";
|
|
1381
|
-
category_grid: "category_grid";
|
|
1382
|
-
collection_grid: "collection_grid";
|
|
1383
|
-
featured_products: "featured_products";
|
|
1384
|
-
text_with_image: "text_with_image";
|
|
1385
|
-
rich_text: "rich_text";
|
|
1386
|
-
newsletter_signup: "newsletter_signup";
|
|
1387
|
-
}>;
|
|
1388
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1389
|
-
is_visible: z.ZodDefault<z.ZodBoolean>;
|
|
1390
|
-
content: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1391
|
-
style: z.ZodDefault<z.ZodObject<{
|
|
1392
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
1393
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
1394
|
-
padding_top: z.ZodOptional<z.ZodString>;
|
|
1395
|
-
padding_right: z.ZodOptional<z.ZodString>;
|
|
1396
|
-
padding_bottom: z.ZodOptional<z.ZodString>;
|
|
1397
|
-
padding_left: z.ZodOptional<z.ZodString>;
|
|
1398
|
-
margin_top: z.ZodOptional<z.ZodString>;
|
|
1399
|
-
margin_right: z.ZodOptional<z.ZodString>;
|
|
1400
|
-
margin_bottom: z.ZodOptional<z.ZodString>;
|
|
1401
|
-
margin_left: z.ZodOptional<z.ZodString>;
|
|
1402
|
-
text_align: z.ZodOptional<z.ZodEnum<{
|
|
1403
|
-
left: "left";
|
|
1404
|
-
center: "center";
|
|
1405
|
-
right: "right";
|
|
1406
|
-
justify: "justify";
|
|
1407
|
-
}>>;
|
|
1408
|
-
max_width: z.ZodOptional<z.ZodEnum<{
|
|
1409
|
-
full: "full";
|
|
1410
|
-
xl: "xl";
|
|
1411
|
-
lg: "lg";
|
|
1412
|
-
md: "md";
|
|
1413
|
-
}>>;
|
|
1414
|
-
}, z.core.$strip>>;
|
|
1415
|
-
}, z.core.$strip>>>;
|
|
1416
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
1417
|
-
show_logo: z.ZodDefault<z.ZodBoolean>;
|
|
1418
|
-
show_search: z.ZodDefault<z.ZodBoolean>;
|
|
1419
|
-
show_cart: z.ZodDefault<z.ZodBoolean>;
|
|
1420
|
-
show_auth: z.ZodDefault<z.ZodBoolean>;
|
|
1421
|
-
main_menu_ref: z.ZodOptional<z.ZodString>;
|
|
1422
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
1423
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
1424
|
-
topbar_message: z.ZodOptional<z.ZodString>;
|
|
1425
|
-
topbar_container_class: z.ZodOptional<z.ZodString>;
|
|
1426
|
-
}, z.core.$strip>>;
|
|
1427
|
-
footer: z.ZodOptional<z.ZodObject<{
|
|
1428
|
-
show_logo: z.ZodDefault<z.ZodBoolean>;
|
|
1429
|
-
show_social_links: z.ZodDefault<z.ZodBoolean>;
|
|
1430
|
-
customer_support_menu_ref: z.ZodOptional<z.ZodString>;
|
|
1431
|
-
about_us_menu_ref: z.ZodOptional<z.ZodString>;
|
|
1432
|
-
copyright_text: z.ZodOptional<z.ZodString>;
|
|
1433
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
1434
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
1435
|
-
}, z.core.$strip>>;
|
|
1436
|
-
}, z.core.$loose>>>;
|
|
586
|
+
legal_links: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
587
|
+
terms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
588
|
+
privacy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
589
|
+
}, z.core.$strip>>>;
|
|
1437
590
|
email_accent_color: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1438
591
|
email_bg_color: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1439
592
|
email_body_bg_color: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -1446,83 +599,6 @@ declare const storeWithRelationsSchema: z.ZodObject<{
|
|
|
1446
599
|
created_at: z.ZodNullable<z.ZodOptional<z.ZodISODateTime>>;
|
|
1447
600
|
updated_at: z.ZodNullable<z.ZodOptional<z.ZodISODateTime>>;
|
|
1448
601
|
}, z.core.$strip>>>;
|
|
1449
|
-
theme_config: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1450
|
-
menu: z.ZodOptional<z.ZodObject<{
|
|
1451
|
-
main_menu: z.ZodOptional<z.ZodString>;
|
|
1452
|
-
customer_support_menu: z.ZodOptional<z.ZodString>;
|
|
1453
|
-
about_us_menu: z.ZodOptional<z.ZodString>;
|
|
1454
|
-
}, z.core.$strip>>;
|
|
1455
|
-
topbar: z.ZodOptional<z.ZodObject<{
|
|
1456
|
-
message: z.ZodOptional<z.ZodString>;
|
|
1457
|
-
container_class: z.ZodOptional<z.ZodString>;
|
|
1458
|
-
}, z.core.$strip>>;
|
|
1459
|
-
homepage: z.ZodOptional<z.ZodObject<{
|
|
1460
|
-
collection_slug: z.ZodOptional<z.ZodString>;
|
|
1461
|
-
}, z.core.$strip>>;
|
|
1462
|
-
checkout: z.ZodOptional<z.ZodObject<{
|
|
1463
|
-
term_link: z.ZodOptional<z.ZodString>;
|
|
1464
|
-
policy_link: z.ZodOptional<z.ZodString>;
|
|
1465
|
-
}, z.core.$strip>>;
|
|
1466
|
-
sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1467
|
-
id: z.ZodString;
|
|
1468
|
-
type: z.ZodEnum<{
|
|
1469
|
-
hero_banner: "hero_banner";
|
|
1470
|
-
category_grid: "category_grid";
|
|
1471
|
-
collection_grid: "collection_grid";
|
|
1472
|
-
featured_products: "featured_products";
|
|
1473
|
-
text_with_image: "text_with_image";
|
|
1474
|
-
rich_text: "rich_text";
|
|
1475
|
-
newsletter_signup: "newsletter_signup";
|
|
1476
|
-
}>;
|
|
1477
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1478
|
-
is_visible: z.ZodDefault<z.ZodBoolean>;
|
|
1479
|
-
content: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1480
|
-
style: z.ZodDefault<z.ZodObject<{
|
|
1481
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
1482
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
1483
|
-
padding_top: z.ZodOptional<z.ZodString>;
|
|
1484
|
-
padding_right: z.ZodOptional<z.ZodString>;
|
|
1485
|
-
padding_bottom: z.ZodOptional<z.ZodString>;
|
|
1486
|
-
padding_left: z.ZodOptional<z.ZodString>;
|
|
1487
|
-
margin_top: z.ZodOptional<z.ZodString>;
|
|
1488
|
-
margin_right: z.ZodOptional<z.ZodString>;
|
|
1489
|
-
margin_bottom: z.ZodOptional<z.ZodString>;
|
|
1490
|
-
margin_left: z.ZodOptional<z.ZodString>;
|
|
1491
|
-
text_align: z.ZodOptional<z.ZodEnum<{
|
|
1492
|
-
left: "left";
|
|
1493
|
-
center: "center";
|
|
1494
|
-
right: "right";
|
|
1495
|
-
justify: "justify";
|
|
1496
|
-
}>>;
|
|
1497
|
-
max_width: z.ZodOptional<z.ZodEnum<{
|
|
1498
|
-
full: "full";
|
|
1499
|
-
xl: "xl";
|
|
1500
|
-
lg: "lg";
|
|
1501
|
-
md: "md";
|
|
1502
|
-
}>>;
|
|
1503
|
-
}, z.core.$strip>>;
|
|
1504
|
-
}, z.core.$strip>>>;
|
|
1505
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
1506
|
-
show_logo: z.ZodDefault<z.ZodBoolean>;
|
|
1507
|
-
show_search: z.ZodDefault<z.ZodBoolean>;
|
|
1508
|
-
show_cart: z.ZodDefault<z.ZodBoolean>;
|
|
1509
|
-
show_auth: z.ZodDefault<z.ZodBoolean>;
|
|
1510
|
-
main_menu_ref: z.ZodOptional<z.ZodString>;
|
|
1511
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
1512
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
1513
|
-
topbar_message: z.ZodOptional<z.ZodString>;
|
|
1514
|
-
topbar_container_class: z.ZodOptional<z.ZodString>;
|
|
1515
|
-
}, z.core.$strip>>;
|
|
1516
|
-
footer: z.ZodOptional<z.ZodObject<{
|
|
1517
|
-
show_logo: z.ZodDefault<z.ZodBoolean>;
|
|
1518
|
-
show_social_links: z.ZodDefault<z.ZodBoolean>;
|
|
1519
|
-
customer_support_menu_ref: z.ZodOptional<z.ZodString>;
|
|
1520
|
-
about_us_menu_ref: z.ZodOptional<z.ZodString>;
|
|
1521
|
-
copyright_text: z.ZodOptional<z.ZodString>;
|
|
1522
|
-
background_color: z.ZodOptional<z.ZodString>;
|
|
1523
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
1524
|
-
}, z.core.$strip>>;
|
|
1525
|
-
}, z.core.$loose>>>;
|
|
1526
602
|
embedded_scripts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1527
603
|
id: z.ZodInt32;
|
|
1528
604
|
name: z.ZodString;
|
|
@@ -1547,7 +623,6 @@ type Store = {
|
|
|
1547
623
|
deleted_at: string | null;
|
|
1548
624
|
embedded_scripts?: EmbeddedScript[];
|
|
1549
625
|
};
|
|
1550
|
-
type ThemeConfig = BuilderThemeConfig | null | undefined;
|
|
1551
626
|
type StoreConfig = z.infer<typeof storeConfigSchema>;
|
|
1552
627
|
type StoreSettings = z.infer<typeof storeSettingsSchema>;
|
|
1553
628
|
type CreateStore = z.infer<typeof createStoreSchema>;
|
|
@@ -1577,19 +652,19 @@ declare const productReviewReplySchema: z.ZodObject<{
|
|
|
1577
652
|
deleted_at: z.ZodNullable<z.ZodOptional<z.ZodISODateTime>>;
|
|
1578
653
|
}, z.core.$strip>;
|
|
1579
654
|
declare const createProductReviewReplySchema: z.ZodObject<{
|
|
1580
|
-
content: z.ZodString;
|
|
1581
|
-
is_visible: z.ZodDefault<z.ZodBoolean>;
|
|
1582
655
|
review_id: z.ZodUUID;
|
|
1583
656
|
author_id: z.ZodUUID;
|
|
657
|
+
content: z.ZodString;
|
|
1584
658
|
author_name: z.ZodString;
|
|
659
|
+
is_visible: z.ZodDefault<z.ZodBoolean>;
|
|
1585
660
|
}, z.core.$strip>;
|
|
1586
661
|
declare const updateProductReviewReplySchema: z.ZodObject<{
|
|
1587
662
|
updated_at: z.ZodOptional<z.ZodISODateTime>;
|
|
1588
663
|
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodISODateTime>>>;
|
|
1589
|
-
content: z.ZodOptional<z.ZodString>;
|
|
1590
|
-
is_visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1591
664
|
author_id: z.ZodOptional<z.ZodUUID>;
|
|
665
|
+
content: z.ZodOptional<z.ZodString>;
|
|
1592
666
|
author_name: z.ZodOptional<z.ZodString>;
|
|
667
|
+
is_visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1593
668
|
}, z.core.$strip>;
|
|
1594
669
|
declare const productReviewSchema: z.ZodObject<{
|
|
1595
670
|
id: z.ZodUUID;
|
|
@@ -1629,9 +704,6 @@ declare const productReviewSchema: z.ZodObject<{
|
|
|
1629
704
|
deleted_at: z.ZodNullable<z.ZodOptional<z.ZodISODateTime>>;
|
|
1630
705
|
}, z.core.$strip>;
|
|
1631
706
|
declare const createProductReviewSchema: z.ZodObject<{
|
|
1632
|
-
title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1633
|
-
content: z.ZodString;
|
|
1634
|
-
media: z.ZodDefault<z.ZodArray<z.ZodAny>>;
|
|
1635
707
|
user_id: z.ZodNullable<z.ZodOptional<z.ZodUUID>>;
|
|
1636
708
|
status: z.ZodDefault<z.ZodEnum<{
|
|
1637
709
|
PENDING: "PENDING";
|
|
@@ -1639,6 +711,7 @@ declare const createProductReviewSchema: z.ZodObject<{
|
|
|
1639
711
|
REJECTED: "REJECTED";
|
|
1640
712
|
HIDDEN: "HIDDEN";
|
|
1641
713
|
}>>;
|
|
714
|
+
content: z.ZodString;
|
|
1642
715
|
reviewer_email: z.ZodEmail;
|
|
1643
716
|
product_id: z.ZodBigInt;
|
|
1644
717
|
product_name: z.ZodString;
|
|
@@ -1650,8 +723,10 @@ declare const createProductReviewSchema: z.ZodObject<{
|
|
|
1650
723
|
reviewer_avatar: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1651
724
|
is_verified_buyer: z.ZodDefault<z.ZodBoolean>;
|
|
1652
725
|
rating: z.ZodInt32;
|
|
726
|
+
title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1653
727
|
pros: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1654
728
|
cons: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
729
|
+
media: z.ZodDefault<z.ZodArray<z.ZodAny>>;
|
|
1655
730
|
moderation_notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1656
731
|
approved_by: z.ZodNullable<z.ZodOptional<z.ZodUUID>>;
|
|
1657
732
|
approved_at: z.ZodNullable<z.ZodOptional<z.ZodISODateTime>>;
|
|
@@ -1664,9 +739,6 @@ declare const createProductReviewSchema: z.ZodObject<{
|
|
|
1664
739
|
declare const updateProductReviewSchema: z.ZodObject<{
|
|
1665
740
|
updated_at: z.ZodOptional<z.ZodISODateTime>;
|
|
1666
741
|
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodISODateTime>>>;
|
|
1667
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
1668
|
-
content: z.ZodOptional<z.ZodString>;
|
|
1669
|
-
media: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodAny>>>;
|
|
1670
742
|
user_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUUID>>>;
|
|
1671
743
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
1672
744
|
PENDING: "PENDING";
|
|
@@ -1674,6 +746,7 @@ declare const updateProductReviewSchema: z.ZodObject<{
|
|
|
1674
746
|
REJECTED: "REJECTED";
|
|
1675
747
|
HIDDEN: "HIDDEN";
|
|
1676
748
|
}>>>;
|
|
749
|
+
content: z.ZodOptional<z.ZodString>;
|
|
1677
750
|
reviewer_email: z.ZodOptional<z.ZodEmail>;
|
|
1678
751
|
product_id: z.ZodOptional<z.ZodBigInt>;
|
|
1679
752
|
product_name: z.ZodOptional<z.ZodString>;
|
|
@@ -1685,8 +758,10 @@ declare const updateProductReviewSchema: z.ZodObject<{
|
|
|
1685
758
|
reviewer_avatar: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
1686
759
|
is_verified_buyer: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1687
760
|
rating: z.ZodOptional<z.ZodInt32>;
|
|
761
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
1688
762
|
pros: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
1689
763
|
cons: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
764
|
+
media: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodAny>>>;
|
|
1690
765
|
moderation_notes: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
1691
766
|
approved_by: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUUID>>>;
|
|
1692
767
|
approved_at: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodISODateTime>>>;
|
|
@@ -2562,20 +1637,20 @@ declare const categorySchema: z.ZodObject<{
|
|
|
2562
1637
|
}, z.core.$strip>;
|
|
2563
1638
|
declare const createCategorySchema: z.ZodObject<{
|
|
2564
1639
|
name: z.ZodString;
|
|
2565
|
-
image_url: z.ZodNullable<z.ZodOptional<z.ZodURL>>;
|
|
2566
1640
|
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2567
1641
|
sort_order: z.ZodDefault<z.ZodInt32>;
|
|
2568
1642
|
slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1643
|
+
image_url: z.ZodNullable<z.ZodOptional<z.ZodURL>>;
|
|
2569
1644
|
parent_id: z.ZodNullable<z.ZodOptional<z.ZodInt32>>;
|
|
2570
1645
|
is_active: z.ZodDefault<z.ZodBoolean>;
|
|
2571
1646
|
external_cat_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2572
1647
|
}, z.core.$strip>;
|
|
2573
1648
|
declare const updateCategorySchema: z.ZodObject<{
|
|
2574
1649
|
name: z.ZodOptional<z.ZodString>;
|
|
2575
|
-
image_url: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodURL>>>;
|
|
2576
1650
|
description: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
2577
1651
|
sort_order: z.ZodOptional<z.ZodDefault<z.ZodInt32>>;
|
|
2578
1652
|
slug: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
1653
|
+
image_url: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodURL>>>;
|
|
2579
1654
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodInt32>>>;
|
|
2580
1655
|
is_active: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2581
1656
|
external_cat_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -3418,8 +2493,6 @@ declare const createBlogTagSchema: z.ZodObject<{
|
|
|
3418
2493
|
slug: z.ZodString;
|
|
3419
2494
|
}, z.core.$strip>;
|
|
3420
2495
|
declare const createBlogPostSchema: z.ZodObject<{
|
|
3421
|
-
title: z.ZodString;
|
|
3422
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3423
2496
|
status: z.ZodDefault<z.ZodEnum<{
|
|
3424
2497
|
draft: "draft";
|
|
3425
2498
|
unlisted: "unlisted";
|
|
@@ -3427,6 +2500,8 @@ declare const createBlogPostSchema: z.ZodObject<{
|
|
|
3427
2500
|
scheduled: "scheduled";
|
|
3428
2501
|
}>>;
|
|
3429
2502
|
author_id: z.ZodNullable<z.ZodOptional<z.ZodUUID>>;
|
|
2503
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2504
|
+
title: z.ZodString;
|
|
3430
2505
|
is_featured: z.ZodDefault<z.ZodBoolean>;
|
|
3431
2506
|
slug: z.ZodString;
|
|
3432
2507
|
toc: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3474,8 +2549,6 @@ declare const updateBlogTagSchema: z.ZodObject<{
|
|
|
3474
2549
|
slug: z.ZodOptional<z.ZodString>;
|
|
3475
2550
|
}, z.core.$strip>;
|
|
3476
2551
|
declare const updateBlogPostSchema: z.ZodObject<{
|
|
3477
|
-
title: z.ZodOptional<z.ZodString>;
|
|
3478
|
-
content: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
3479
2552
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
3480
2553
|
draft: "draft";
|
|
3481
2554
|
unlisted: "unlisted";
|
|
@@ -3483,6 +2556,8 @@ declare const updateBlogPostSchema: z.ZodObject<{
|
|
|
3483
2556
|
scheduled: "scheduled";
|
|
3484
2557
|
}>>>;
|
|
3485
2558
|
author_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodUUID>>>;
|
|
2559
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
2560
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3486
2561
|
is_featured: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3487
2562
|
slug: z.ZodOptional<z.ZodString>;
|
|
3488
2563
|
toc: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3569,24 +2644,24 @@ interface CreateBanner extends Omit<Banner, "id" | keyof OptionalTimestamp> {
|
|
|
3569
2644
|
}
|
|
3570
2645
|
declare const createBannerSchema: z.ZodObject<{
|
|
3571
2646
|
title: z.ZodString;
|
|
3572
|
-
subtitle: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3573
2647
|
image_url: z.ZodURL;
|
|
3574
|
-
link_url: z.ZodNullable<z.ZodOptional<z.ZodURL>>;
|
|
3575
|
-
button_text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3576
|
-
metadata: z.ZodAny;
|
|
3577
2648
|
position: z.ZodDefault<z.ZodInt32>;
|
|
3578
2649
|
is_active: z.ZodDefault<z.ZodBoolean>;
|
|
2650
|
+
metadata: z.ZodAny;
|
|
2651
|
+
subtitle: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2652
|
+
link_url: z.ZodNullable<z.ZodOptional<z.ZodURL>>;
|
|
2653
|
+
button_text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3579
2654
|
}, z.core.$strip>;
|
|
3580
2655
|
type UpdateBanner = Partial<CreateBanner>;
|
|
3581
2656
|
declare const updateBannerSchema: z.ZodObject<{
|
|
3582
2657
|
title: z.ZodOptional<z.ZodString>;
|
|
3583
|
-
subtitle: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
3584
2658
|
image_url: z.ZodOptional<z.ZodURL>;
|
|
3585
|
-
link_url: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodURL>>>;
|
|
3586
|
-
button_text: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
3587
|
-
metadata: z.ZodOptional<z.ZodAny>;
|
|
3588
2659
|
position: z.ZodOptional<z.ZodDefault<z.ZodInt32>>;
|
|
3589
2660
|
is_active: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2661
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2662
|
+
subtitle: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
2663
|
+
link_url: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodURL>>>;
|
|
2664
|
+
button_text: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
3590
2665
|
}, z.core.$strip>;
|
|
3591
2666
|
interface UpdateBannerPosition {
|
|
3592
2667
|
id: Id;
|
|
@@ -3623,17 +2698,17 @@ declare const contentPageSchema: z.ZodObject<{
|
|
|
3623
2698
|
updated_at: z.ZodISODateTime;
|
|
3624
2699
|
}, z.core.$strip>;
|
|
3625
2700
|
declare const createContentPageSchema: z.ZodObject<{
|
|
3626
|
-
title: z.ZodString;
|
|
3627
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3628
2701
|
sort_order: z.ZodDefault<z.ZodInt32>;
|
|
2702
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2703
|
+
title: z.ZodString;
|
|
3629
2704
|
slug: z.ZodString;
|
|
3630
2705
|
is_published: z.ZodDefault<z.ZodBoolean>;
|
|
3631
2706
|
page_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3632
2707
|
}, z.core.$strip>;
|
|
3633
2708
|
declare const updateContentPageSchema: z.ZodObject<{
|
|
3634
|
-
title: z.ZodOptional<z.ZodString>;
|
|
3635
|
-
content: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
3636
2709
|
sort_order: z.ZodOptional<z.ZodDefault<z.ZodInt32>>;
|
|
2710
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
2711
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3637
2712
|
slug: z.ZodOptional<z.ZodString>;
|
|
3638
2713
|
is_published: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3639
2714
|
page_type: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -3765,6 +2840,260 @@ declare const safeParseBaseQueryParams: (data: unknown) => z.ZodSafeParseResult<
|
|
|
3765
2840
|
} | undefined;
|
|
3766
2841
|
}>;
|
|
3767
2842
|
|
|
2843
|
+
/**
|
|
2844
|
+
* Theme settings: a theme declares its own settings (spec: schema-driven
|
|
2845
|
+
* themes §5.2), merchants fill in values, and the storefront reads them.
|
|
2846
|
+
* The types below are the authoring shape; `themeSchemaSchema` checks the same
|
|
2847
|
+
* shape at runtime (schemas uploaded by deploys, published by CI).
|
|
2848
|
+
*/
|
|
2849
|
+
/** Hex only: theme colors are interpolated into a <style> tag. */
|
|
2850
|
+
declare const THEME_HEX_COLOR: RegExp;
|
|
2851
|
+
type Primitive = string | number | boolean;
|
|
2852
|
+
interface ThemeVisibleIf {
|
|
2853
|
+
readonly setting: string;
|
|
2854
|
+
readonly equals?: Primitive;
|
|
2855
|
+
readonly not_equals?: Primitive;
|
|
2856
|
+
readonly is_set?: boolean;
|
|
2857
|
+
}
|
|
2858
|
+
interface SettingBase<T extends string> {
|
|
2859
|
+
readonly type: T;
|
|
2860
|
+
readonly id: string;
|
|
2861
|
+
readonly label: string;
|
|
2862
|
+
readonly info?: string;
|
|
2863
|
+
readonly visible_if?: ThemeVisibleIf;
|
|
2864
|
+
}
|
|
2865
|
+
type ThemeSetting = (SettingBase<"text" | "textarea"> & {
|
|
2866
|
+
readonly default?: string;
|
|
2867
|
+
readonly placeholder?: string;
|
|
2868
|
+
}) | (SettingBase<"richtext" | "url" | "color" | "menu"> & {
|
|
2869
|
+
readonly default?: string;
|
|
2870
|
+
}) | SettingBase<"image_picker" | "collection"> | (SettingBase<"checkbox"> & {
|
|
2871
|
+
readonly default?: boolean;
|
|
2872
|
+
}) | (SettingBase<"number"> & {
|
|
2873
|
+
readonly default?: number;
|
|
2874
|
+
readonly min?: number;
|
|
2875
|
+
readonly max?: number;
|
|
2876
|
+
}) | (SettingBase<"range"> & {
|
|
2877
|
+
readonly min: number;
|
|
2878
|
+
readonly max: number;
|
|
2879
|
+
readonly step: number;
|
|
2880
|
+
readonly unit?: string;
|
|
2881
|
+
readonly default: number;
|
|
2882
|
+
}) | (SettingBase<"select"> & {
|
|
2883
|
+
readonly options: readonly {
|
|
2884
|
+
readonly value: string;
|
|
2885
|
+
readonly label: string;
|
|
2886
|
+
}[];
|
|
2887
|
+
readonly default?: string;
|
|
2888
|
+
});
|
|
2889
|
+
type ThemeSettingType = ThemeSetting["type"];
|
|
2890
|
+
interface ThemeDisplayItem {
|
|
2891
|
+
readonly type: "header" | "paragraph";
|
|
2892
|
+
readonly content: string;
|
|
2893
|
+
}
|
|
2894
|
+
type ThemeSchemaItem = ThemeSetting | ThemeDisplayItem;
|
|
2895
|
+
interface ThemeSchemaGroup {
|
|
2896
|
+
readonly name: string;
|
|
2897
|
+
readonly settings: readonly ThemeSchemaItem[];
|
|
2898
|
+
}
|
|
2899
|
+
type ThemeSchema = readonly ThemeSchemaGroup[];
|
|
2900
|
+
type ThemeValue = string | number | boolean;
|
|
2901
|
+
type ThemeValues = Record<string, ThemeValue | null>;
|
|
2902
|
+
interface ThemeValueError {
|
|
2903
|
+
key: string;
|
|
2904
|
+
message: string;
|
|
2905
|
+
}
|
|
2906
|
+
type ValueOf<T extends ThemeSettingType> = T extends "checkbox" ? boolean : T extends "number" | "range" ? number : string;
|
|
2907
|
+
type SettingsIn<S extends ThemeSchema> = Extract<S[number]["settings"][number], ThemeSetting>;
|
|
2908
|
+
/** The values a schema produces: settings with a default are never null. */
|
|
2909
|
+
type ThemeSettingsOf<S extends ThemeSchema> = {
|
|
2910
|
+
[K in SettingsIn<S> as K["id"]]: K extends {
|
|
2911
|
+
readonly default: unknown;
|
|
2912
|
+
} ? ValueOf<K["type"]> : ValueOf<K["type"]> | null;
|
|
2913
|
+
};
|
|
2914
|
+
declare const themeSchemaSchema: z.ZodArray<z.ZodObject<{
|
|
2915
|
+
name: z.ZodString;
|
|
2916
|
+
settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2917
|
+
type: z.ZodLiteral<"text">;
|
|
2918
|
+
default: z.ZodOptional<z.ZodString>;
|
|
2919
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
2920
|
+
id: z.ZodString;
|
|
2921
|
+
label: z.ZodString;
|
|
2922
|
+
info: z.ZodOptional<z.ZodString>;
|
|
2923
|
+
visible_if: z.ZodOptional<z.ZodObject<{
|
|
2924
|
+
setting: z.ZodString;
|
|
2925
|
+
equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2926
|
+
not_equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2927
|
+
is_set: z.ZodOptional<z.ZodBoolean>;
|
|
2928
|
+
}, z.core.$strip>>;
|
|
2929
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2930
|
+
type: z.ZodLiteral<"textarea">;
|
|
2931
|
+
default: z.ZodOptional<z.ZodString>;
|
|
2932
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
2933
|
+
id: z.ZodString;
|
|
2934
|
+
label: z.ZodString;
|
|
2935
|
+
info: z.ZodOptional<z.ZodString>;
|
|
2936
|
+
visible_if: z.ZodOptional<z.ZodObject<{
|
|
2937
|
+
setting: z.ZodString;
|
|
2938
|
+
equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2939
|
+
not_equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2940
|
+
is_set: z.ZodOptional<z.ZodBoolean>;
|
|
2941
|
+
}, z.core.$strip>>;
|
|
2942
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2943
|
+
type: z.ZodLiteral<"richtext">;
|
|
2944
|
+
default: z.ZodOptional<z.ZodString>;
|
|
2945
|
+
id: z.ZodString;
|
|
2946
|
+
label: z.ZodString;
|
|
2947
|
+
info: z.ZodOptional<z.ZodString>;
|
|
2948
|
+
visible_if: z.ZodOptional<z.ZodObject<{
|
|
2949
|
+
setting: z.ZodString;
|
|
2950
|
+
equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2951
|
+
not_equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2952
|
+
is_set: z.ZodOptional<z.ZodBoolean>;
|
|
2953
|
+
}, z.core.$strip>>;
|
|
2954
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2955
|
+
type: z.ZodLiteral<"url">;
|
|
2956
|
+
default: z.ZodOptional<z.ZodString>;
|
|
2957
|
+
id: z.ZodString;
|
|
2958
|
+
label: z.ZodString;
|
|
2959
|
+
info: z.ZodOptional<z.ZodString>;
|
|
2960
|
+
visible_if: z.ZodOptional<z.ZodObject<{
|
|
2961
|
+
setting: z.ZodString;
|
|
2962
|
+
equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2963
|
+
not_equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2964
|
+
is_set: z.ZodOptional<z.ZodBoolean>;
|
|
2965
|
+
}, z.core.$strip>>;
|
|
2966
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2967
|
+
type: z.ZodLiteral<"color">;
|
|
2968
|
+
default: z.ZodOptional<z.ZodString>;
|
|
2969
|
+
id: z.ZodString;
|
|
2970
|
+
label: z.ZodString;
|
|
2971
|
+
info: z.ZodOptional<z.ZodString>;
|
|
2972
|
+
visible_if: z.ZodOptional<z.ZodObject<{
|
|
2973
|
+
setting: z.ZodString;
|
|
2974
|
+
equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2975
|
+
not_equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2976
|
+
is_set: z.ZodOptional<z.ZodBoolean>;
|
|
2977
|
+
}, z.core.$strip>>;
|
|
2978
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2979
|
+
type: z.ZodLiteral<"menu">;
|
|
2980
|
+
default: z.ZodOptional<z.ZodString>;
|
|
2981
|
+
id: z.ZodString;
|
|
2982
|
+
label: z.ZodString;
|
|
2983
|
+
info: z.ZodOptional<z.ZodString>;
|
|
2984
|
+
visible_if: z.ZodOptional<z.ZodObject<{
|
|
2985
|
+
setting: z.ZodString;
|
|
2986
|
+
equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2987
|
+
not_equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2988
|
+
is_set: z.ZodOptional<z.ZodBoolean>;
|
|
2989
|
+
}, z.core.$strip>>;
|
|
2990
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2991
|
+
type: z.ZodLiteral<"image_picker">;
|
|
2992
|
+
id: z.ZodString;
|
|
2993
|
+
label: z.ZodString;
|
|
2994
|
+
info: z.ZodOptional<z.ZodString>;
|
|
2995
|
+
visible_if: z.ZodOptional<z.ZodObject<{
|
|
2996
|
+
setting: z.ZodString;
|
|
2997
|
+
equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2998
|
+
not_equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2999
|
+
is_set: z.ZodOptional<z.ZodBoolean>;
|
|
3000
|
+
}, z.core.$strip>>;
|
|
3001
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3002
|
+
type: z.ZodLiteral<"collection">;
|
|
3003
|
+
id: z.ZodString;
|
|
3004
|
+
label: z.ZodString;
|
|
3005
|
+
info: z.ZodOptional<z.ZodString>;
|
|
3006
|
+
visible_if: z.ZodOptional<z.ZodObject<{
|
|
3007
|
+
setting: z.ZodString;
|
|
3008
|
+
equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3009
|
+
not_equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3010
|
+
is_set: z.ZodOptional<z.ZodBoolean>;
|
|
3011
|
+
}, z.core.$strip>>;
|
|
3012
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3013
|
+
type: z.ZodLiteral<"checkbox">;
|
|
3014
|
+
default: z.ZodOptional<z.ZodBoolean>;
|
|
3015
|
+
id: z.ZodString;
|
|
3016
|
+
label: z.ZodString;
|
|
3017
|
+
info: z.ZodOptional<z.ZodString>;
|
|
3018
|
+
visible_if: z.ZodOptional<z.ZodObject<{
|
|
3019
|
+
setting: z.ZodString;
|
|
3020
|
+
equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3021
|
+
not_equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3022
|
+
is_set: z.ZodOptional<z.ZodBoolean>;
|
|
3023
|
+
}, z.core.$strip>>;
|
|
3024
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3025
|
+
type: z.ZodLiteral<"number">;
|
|
3026
|
+
default: z.ZodOptional<z.ZodNumber>;
|
|
3027
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
3028
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
3029
|
+
id: z.ZodString;
|
|
3030
|
+
label: z.ZodString;
|
|
3031
|
+
info: z.ZodOptional<z.ZodString>;
|
|
3032
|
+
visible_if: z.ZodOptional<z.ZodObject<{
|
|
3033
|
+
setting: z.ZodString;
|
|
3034
|
+
equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3035
|
+
not_equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3036
|
+
is_set: z.ZodOptional<z.ZodBoolean>;
|
|
3037
|
+
}, z.core.$strip>>;
|
|
3038
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3039
|
+
type: z.ZodLiteral<"range">;
|
|
3040
|
+
min: z.ZodNumber;
|
|
3041
|
+
max: z.ZodNumber;
|
|
3042
|
+
step: z.ZodNumber;
|
|
3043
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
3044
|
+
default: z.ZodNumber;
|
|
3045
|
+
id: z.ZodString;
|
|
3046
|
+
label: z.ZodString;
|
|
3047
|
+
info: z.ZodOptional<z.ZodString>;
|
|
3048
|
+
visible_if: z.ZodOptional<z.ZodObject<{
|
|
3049
|
+
setting: z.ZodString;
|
|
3050
|
+
equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3051
|
+
not_equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3052
|
+
is_set: z.ZodOptional<z.ZodBoolean>;
|
|
3053
|
+
}, z.core.$strip>>;
|
|
3054
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3055
|
+
type: z.ZodLiteral<"select">;
|
|
3056
|
+
options: z.ZodArray<z.ZodObject<{
|
|
3057
|
+
value: z.ZodString;
|
|
3058
|
+
label: z.ZodString;
|
|
3059
|
+
}, z.core.$strip>>;
|
|
3060
|
+
default: z.ZodOptional<z.ZodString>;
|
|
3061
|
+
id: z.ZodString;
|
|
3062
|
+
label: z.ZodString;
|
|
3063
|
+
info: z.ZodOptional<z.ZodString>;
|
|
3064
|
+
visible_if: z.ZodOptional<z.ZodObject<{
|
|
3065
|
+
setting: z.ZodString;
|
|
3066
|
+
equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3067
|
+
not_equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3068
|
+
is_set: z.ZodOptional<z.ZodBoolean>;
|
|
3069
|
+
}, z.core.$strip>>;
|
|
3070
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3071
|
+
type: z.ZodLiteral<"header">;
|
|
3072
|
+
content: z.ZodString;
|
|
3073
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3074
|
+
type: z.ZodLiteral<"paragraph">;
|
|
3075
|
+
content: z.ZodString;
|
|
3076
|
+
}, z.core.$strip>], "type">>;
|
|
3077
|
+
}, z.core.$strip>>;
|
|
3078
|
+
/**
|
|
3079
|
+
* Validates a schema from outside the code (CI upload, deploy upload). Throws
|
|
3080
|
+
* an Error whose message lists every problem, readable in a build log.
|
|
3081
|
+
*/
|
|
3082
|
+
declare function parseThemeSchema(input: unknown): ThemeSchema;
|
|
3083
|
+
declare function themeSettings(schema: ThemeSchema): ThemeSetting[];
|
|
3084
|
+
declare function themeDefaults(schema: ThemeSchema): ThemeValues;
|
|
3085
|
+
declare function validateThemeValues(schema: ThemeSchema, input: unknown): {
|
|
3086
|
+
values: Record<string, ThemeValue>;
|
|
3087
|
+
errors: ThemeValueError[];
|
|
3088
|
+
};
|
|
3089
|
+
/** Defaults under the valid values; invalid values fall back to defaults. */
|
|
3090
|
+
declare function resolveThemeSettings(schema: ThemeSchema, input: unknown): {
|
|
3091
|
+
settings: ThemeValues;
|
|
3092
|
+
errors: ThemeValueError[];
|
|
3093
|
+
};
|
|
3094
|
+
/** "Set" means not null, not "" and not false. */
|
|
3095
|
+
declare function isSettingVisible(setting: ThemeSetting, values: ThemeValues): boolean;
|
|
3096
|
+
|
|
3768
3097
|
type ResizeMode = "cover" | "contain" | "inside" | "outside";
|
|
3769
3098
|
type ImageFormat = "origin" | "avif" | "webp" | "png" | "jpeg";
|
|
3770
3099
|
interface ImageTransformOptions {
|
|
@@ -4430,10 +3759,18 @@ declare class BlogApi {
|
|
|
4430
3759
|
}): Promise<any>;
|
|
4431
3760
|
}
|
|
4432
3761
|
|
|
3762
|
+
/** The theme the storefront renders (themes spec §5.3); values are unvalidated. */
|
|
3763
|
+
interface PublishedStoreTheme {
|
|
3764
|
+
id: string | null;
|
|
3765
|
+
name: string;
|
|
3766
|
+
kind: "hosted" | "custom";
|
|
3767
|
+
source_theme_id: string;
|
|
3768
|
+
values: Record<string, unknown>;
|
|
3769
|
+
}
|
|
4433
3770
|
type StoreConfigurationInfo = Store & {
|
|
4434
3771
|
config: StoreConfig;
|
|
4435
3772
|
settings: StoreSettings;
|
|
4436
|
-
|
|
3773
|
+
theme?: PublishedStoreTheme;
|
|
4437
3774
|
};
|
|
4438
3775
|
|
|
4439
3776
|
declare class StoresApi {
|
|
@@ -4448,6 +3785,13 @@ declare class StoresApi {
|
|
|
4448
3785
|
getByDomain(domain: string): Promise<StoreConfigurationInfo | null>;
|
|
4449
3786
|
}
|
|
4450
3787
|
|
|
3788
|
+
declare class ThemesApi {
|
|
3789
|
+
private http;
|
|
3790
|
+
constructor(http: IHttpClient);
|
|
3791
|
+
/** The store theme a dashboard preview link points to; null if refused. */
|
|
3792
|
+
getPreview(storeRef: string, token: string): Promise<PublishedStoreTheme | null>;
|
|
3793
|
+
}
|
|
3794
|
+
|
|
4451
3795
|
declare const searchCatalogParamsSchema: z.ZodObject<{
|
|
4452
3796
|
q: z.ZodOptional<z.ZodString>;
|
|
4453
3797
|
collection: z.ZodString;
|
|
@@ -5324,6 +4668,7 @@ declare function createEcomwebSdk(options: EcomwebSdkOptions): {
|
|
|
5324
4668
|
orders: OrdersApi;
|
|
5325
4669
|
blog: BlogApi;
|
|
5326
4670
|
stores: StoresApi;
|
|
4671
|
+
themes: ThemesApi;
|
|
5327
4672
|
search: SearchApi;
|
|
5328
4673
|
banners: BannersApi;
|
|
5329
4674
|
shipping: ShippingApi;
|
|
@@ -5339,4 +4684,4 @@ declare function createEcomwebSdk(options: EcomwebSdkOptions): {
|
|
|
5339
4684
|
};
|
|
5340
4685
|
type EcomwebSdk = ReturnType<typeof createEcomwebSdk>;
|
|
5341
4686
|
|
|
5342
|
-
export { ADJUSTABLE_STATES, ADMIN_ORDER_SOURCES, type AddToCartRequest, type Address, AddressesApi, type AdjustQuantitiesRequest, type AdjustableState, type AdminOrderSource, ApiClientError, type ApiError, type ApiResponse, type AppliedPromotion, type AttributeLink, AuthApi, type AuthErrorCode, type AuthIdentity, type AuthResult, type AuthTokens, type AutocompleteParams, type BankAccount, type Banner, type BannerQueryParams, BannersApi, type BaseDeleteOptions, type BaseDeleteResult, type BaseQueryParams, type BatchOrderReviewInvitationsResult, BlogApi, type BlogCategory, type BlogCategoryQueryParams, type BlogComment, type BlogCommentWithReplies, type BlogPost, type BlogPostCategory, type BlogPostQueryParams, type BlogPostStatus, type BlogPostTag, type BlogPostWithRelations, type BlogSearchParams, type BlogSearchResponse, type BlogSettings, type BlogTag, type BlogTagQueryParams, type BuilderSection, type BuilderThemeConfig, COLLECTION_RULE_MATRIX, CONDITION_TYPE_LABELS, CartApi, type CartApiItem, type CartApiResponse, CategoriesApi, type Category, type CategoryGridConfig, type CategoryQueryParams, type CategorySearchResponse, type CategoryTree, type CategoryWithChildren, type ChangeEmailPayload, type ChangePasswordPayload, type ChangedResult, type Collection, type CollectionGridConfig, type CollectionQueryParams, type CollectionRule, type CollectionRuleSet, type CollectionRuleSetCriteria, type CollectionSearchCriteria, CollectionsApi, ConditionType, ConditionTypeSchema, type ConditionTypeType, type ContentPage, ContentPagesApi, type CreateAddressDto, type CreateBanner, type CreateBlogCategory, type CreateBlogComment, type CreateBlogPost, type CreateBlogSettings, type CreateBlogTag, type CreateCategory, type CreateContentPage, type CreateEmbeddedScript, type CreateOrder, type CreateOrderItem, type CreateOrderItemRequest, type CreateOrderRequest, type CreateProduct, type CreateProductReview, type CreateProductReviewReply, type CreateProductVariant, type CreatePromotion, CreatePromotionSchema, type CreateStore, type CreateStoreConfig, type CreateStoreSettings, type CreateVariantOption, type CreateVariantOptionValue, type CurrentIdentity, type Customer, type CustomerOrderFilter, type CustomerOrderSummary, CustomersApi, DEFAULT_BUCKET, DISCOUNT_METHOD_LABELS, type DeleteApiFunction, type DeletedAt, DiscountMethod, DiscountMethodSchema, type DiscountMethodType, EMAIL_COLOR_PATTERN, EMAIL_PALETTE_DEFAULTS, type EcomwebSdk, type EcomwebSdkOptions, type EmbeddedScript, type EmbeddedScriptPlacement, type FeaturedProductsConfig, type FooterConfig, type FulfillmentStatus, type GoogleAuthUrl, type GuestOrderLookupParams, type GuestOrderLookupResult, type HeaderConfig, type HeroBannerConfig, type HeroBannerItem, type IHttpClient, INVENTORY_ADJUSTMENT_REASONS, INVENTORY_ERROR_CODES, INVENTORY_POLICIES, INVENTORY_STATES, INVENTORY_STATUS_LABELS, type Id, type ImageFormat, type ImageTransformOptions, type InitiatePaymentResult, type InsufficientInventoryItem, type IntegrationStatus, type InventoryActor, type InventoryAdjustmentReason, type InventoryErrorCode, type InventoryHistoryEntry, type InventoryImportResponse, type InventoryLevelRow, type InventoryLocation, type InventoryPolicy, type InventoryQuantities, type InventoryState, InventoryStatus, KNOWN_PAYMENT_METHODS, LEGACY_STATUS_MIGRATION_MAP, LEVEL_PROVINCE, LEVEL_WARD, type LegacyOrderStatus, type LegacyProductStatus, type LocationArea, type LocationAreaQuery, type LocationAreasResponse, type LoginPayload, MAX_RULES_PER_SET, MAX_RULE_VALUE_ENTRIES, MERCHANT_ADJUSTMENT_REASONS, MemoryTokenStorage, MenusApi, type MerchantAdjustmentReason, type MessageOutboxStatus, type MoveQuantitiesRequest, type MutationApiFunction, type NewsletterSignupConfig, OBJECT_PREFIX, ORDER_ACTOR_TYPES, ORDER_EVENT_TYPES, ORDER_SOURCES, type OptionalTimestamp, type Order, type OrderActorType, type OrderCommentMutationResult, type OrderCreatedBy, type OrderEventType, type OrderItem, type PaymentMethod$1 as OrderPaymentMethod, type OrderReviewInvitationSummary, type OrderSource, type OrderStatus, type OrderTimelineActor, type OrderTimelineComment, type OrderTimelineCommentAuthor, type OrderTimelineEntry, type OrderTimelineEvent, type OrderTimelineResponse, type OrderWithItems, OrdersApi, PAGINATION_DEFAULTS, PRODUCT_STATUS_LABELS, PROMOTION_MODE_COLORS, PROMOTION_MODE_LABELS, PROMOTION_STATUS_COLORS, PROMOTION_STATUS_LABELS, PROMOTION_TYPE_COLORS, PROMOTION_TYPE_LABELS, type PaginatedApiFunction, type PaginatedPromotionsResponse, PaginatedPromotionsResponseSchema, type PaginatedResponse, type PaginatedReviewsResponse, type PaginationMeta, type PasswordPolicy, type PaymentCredentialStatus, type PaymentMethod$1 as PaymentMethod, PaymentMethodsApi, type PaymentStateResult, type PaymentStatus, PaymentsApi, type Product, type ProductDetail, type ProductImage, type ProductQueryParams, type ProductReview, type ProductReviewFilters, type ProductReviewReply, type ProductReviewReplyFilters, type ProductReviewStats, type ProductReviewWithReplies, type ProductSearchParams, type ProductSearchResponse, type ProductService, ProductStatus, type ProductVariant, type ProductVariantCombination, type ProductVariantCombinationEntry, type ProductVariantWithCombinations, type ProductVideo, type ProductWithReviewStats, type ProductWithVariants, ProductsApi, type Promotion, type PromotionData, PromotionMode, PromotionModeSchema, type PromotionModeType, type PromotionQueryParams, PromotionQueryParamsSchema, PromotionSchema, type PromotionStatistics, PromotionStatisticsSchema, PromotionStatus, PromotionStatusSchema, type PromotionStatusType, type PromotionSuggestion, type PromotionSuggestionsResponse, PromotionType, PromotionTypeSchema, type PromotionTypeType, type PromotionWithDiscount, PromotionWithDiscountSchema, PromotionsApi, type PublicAuthConfig, type QuantitiesResponse, RENDER_PREFIX, RULE_FIELDS, RedirectsApi, type RegisterPayload, type RequestOptions, type ResetPasswordPayload, type ResetResult, type ResizeMode, type ReviewInvitationPublicData, type ReviewStatus, ReviewsApi, type RichTextConfig, type RuleField, type RuleFieldSpec, type RuleOperator, type RuleOperatorSpec, type RuleValueKind, SECTION_CONFIG_SCHEMAS, SHIPPING_CONDITION_TYPES, SHIPPING_DELIVERY_TYPES, SHIPPING_RATE_TYPES, SearchApi, type SearchCategory, type SearchProduct, type SectionConfigMap, type SectionStyle, type SectionType, type SentResult, type SeoMetadata$3 as SeoMetadata, type ServerComputedOrderAmounts, type SetQuantitiesRequest, type SetQuantitiesResponse, ShippingApi, type ShippingCalculationRequest, type ShippingConditionType, type ShippingDeliveryType, type ShippingOption, type ShippingRate, type ShippingRateType, type ShippingStatus, type ShippingZone, type SingleEntityApiFunction, type StaleQuantity, type Store, type StoreConfig, type StoreConfigurationInfo, type StoreEmailBrandingSettings, type StoreMenu, type StoreMenuItem, type PaymentMethod as StorePaymentMethod, type StoreSettings, type StoreStatus, type StoreWithRelations, StoresApi, type SubmitReviewInvitationPayload, type TextWithImageConfig, type ThemeConfig, type ThemeVersion, type Timestamp, type TocItem, type TokenStorage, UNAVAILABLE_STATES, type UnavailableState, type UpdateAddressDto, type UpdateBanner, type UpdateBannerPosition, type UpdateBlogCategory, type UpdateBlogComment, type UpdateBlogPost, type UpdateBlogSettings, type UpdateBlogTag, type UpdateCartItemRequest, type UpdateCategory, type UpdateContentPage, type UpdateEmbeddedScript, type UpdateOrder, type UpdateOrderItem, type UpdateProduct, type UpdateProductReview, type UpdateProductReviewReply, type UpdateProductVariant, type UpdatePromotion, UpdatePromotionSchema, type UpdateStore, type UpdateStoreConfig, type UpdateStoreSettings, type UpdateVariantOption, type UpdateVariantOptionValue, type UpsertCustomerForAuthPayload, type UrlRedirect, type ValidatePromotionCodeRequest, type ValidatePromotionCodeResponse, type VariantOption, type VariantOptionValue, type VariantStatus, type VerifiedResult, type VerifyOtpPayload, WIDGET_REGISTRY, type WidgetCategory, type WidgetDefinition, type WithSeoMetadata$3 as WithSeoMetadata, allowedValuesFor, appliedPromotionSchema, assetBaseUrl, attributeLinkSchema, attributeLinkValueSchema, bannerSchema, baseDeleteOptionsSchema, baseDeleteResultSchema, baseQueryParamsSchema, blogCategorySchema, blogCommentSchema, blogCommentWithRepliesSchema, blogPostCategorySchema, blogPostSchema, blogPostStatusSchema, blogPostTagSchema, blogPostWithRelationsSchema, blogSettingsSchema, blogTagSchema, buildTransformQuery, builderSectionSchema, builderThemeConfigSchema, categoryGridConfigSchema, categorySchema, categoryTreeSchema, categoryWithChildrenSchema, collectionGridConfigSchema, colorSchema, contentPageSchema, createAuthAwareHttpClient, createBannerSchema, createBlogCategorySchema, createBlogCommentSchema, createBlogPostSchema, createBlogSettingsSchema, createBlogTagSchema, createCategorySchema, createContentPageSchema, createEcomwebSdk, createEmbeddedScriptSchema, createOrderItemSchema, createOrderSchema, createProductReviewReplySchema, createProductReviewSchema, createProductSchema, createProductVariantSchema, createStoreConfigSchema, createStoreSchema, createStoreSettingsSchema, createVariantOptionSchema, createVariantOptionValueSchema, customerOrderSummarySchema, decimalSchema, deletedAtSchema, dimensionsSchema, emailBrandingSchema, emailBrandingShape, emailSchema, embeddedScriptPlacementSchema, embeddedScriptSchema, ensureSuccess, featuredProductsConfigSchema, footerConfigSchema, fromObjectPublicUrlToRender, fulfillmentStatusSchema, headerConfigSchema, heroBannerConfigSchema, heroBannerItemSchema, idSchema, integrationStatusSchema, inventoryStatusSchema, isEditableStatus, isPublishableStatus, isRuleField, isUnpublishedStatus, jsonSchema, legacyOrderStatusSchema, legacyProductStatusSchema, messageOutboxStatusSchema, moneySchema, newsletterSignupConfigSchema, onHand, operatorsForField, optionalTimestampSchema, optionalUrlSchema, orderItemSchema, orderSchema, orderStatusSchema, orderWithItemsSchema, paginatedResponseSchema, paginationMetaSchema, paginationSchema, parseSectionContent, parseStorageUrl, paymentMethodSchema, paymentStatusSchema, phoneSchema, positionOrderSchema, productReviewFiltersSchema, productReviewReplyFiltersSchema, productReviewReplySchema, productReviewSchema, productReviewStatsSchema, productReviewWithRepliesSchema, productSchema, productStatusSchema, productVariantCombinationEntrySchema, productVariantCombinationSchema, productVariantSchema, productVariantWithCombinationsSchema, productWithReviewStatsSchema, productWithVariantsAndReviewStatsSchema, productWithVariantsSchema, resolveAssetUrl, reviewStatusSchema, rewriteSupabaseUrl, richTextConfigSchema, safeParseBaseQueryParams, safeParsePaginationMeta, sectionConfigSchema, sectionStyleSchema, sectionTypeSchema, shippingStatusSchema, slugSchema, sortOrderSchema, storeConfigSchema, storeIdSchema, storeSchema, storeSettingsSchema, storeStatusSchema, storeWithRelationsSchema, strictUrlSchema, textWithImageConfigSchema, themeConfigSchema, themeVersionSchema, timestampSchema, toObjectUrl, toRenderUrl, tocItemSchema, transformationsEnabled, unavailable, unwrap, unwrapOrNull, updateBannerPositionSchema, updateBannerSchema, updateBlogCategorySchema, updateBlogCommentSchema, updateBlogPostSchema, updateBlogSettingsSchema, updateBlogTagSchema, updateCategorySchema, updateContentPageSchema, updateEmbeddedScriptSchema, updateOrderItemSchema, updateOrderSchema, updateProductReviewReplySchema, updateProductReviewSchema, updateProductSchema, updateProductVariantSchema, updateStoreConfigSchema, updateStoreSchema, updateStoreSettingsSchema, updateVariantOptionSchema, updateVariantOptionValueSchema, urlSchema, uuidSchema, validatePaginationMeta, valueKindFor, variantOptionSchema, variantOptionValueSchema, variantStatusSchema };
|
|
4687
|
+
export { ADJUSTABLE_STATES, ADMIN_ORDER_SOURCES, type AddToCartRequest, type Address, AddressesApi, type AdjustQuantitiesRequest, type AdjustableState, type AdminOrderSource, ApiClientError, type ApiError, type ApiResponse, type AppliedPromotion, type AttributeLink, AuthApi, type AuthErrorCode, type AuthIdentity, type AuthResult, type AuthTokens, type AutocompleteParams, type BankAccount, type Banner, type BannerQueryParams, BannersApi, type BaseDeleteOptions, type BaseDeleteResult, type BaseQueryParams, type BatchOrderReviewInvitationsResult, BlogApi, type BlogCategory, type BlogCategoryQueryParams, type BlogComment, type BlogCommentWithReplies, type BlogPost, type BlogPostCategory, type BlogPostQueryParams, type BlogPostStatus, type BlogPostTag, type BlogPostWithRelations, type BlogSearchParams, type BlogSearchResponse, type BlogSettings, type BlogTag, type BlogTagQueryParams, COLLECTION_RULE_MATRIX, CONDITION_TYPE_LABELS, CartApi, type CartApiItem, type CartApiResponse, CategoriesApi, type Category, type CategoryQueryParams, type CategorySearchResponse, type CategoryTree, type CategoryWithChildren, type ChangeEmailPayload, type ChangePasswordPayload, type ChangedResult, type Collection, type CollectionQueryParams, type CollectionRule, type CollectionRuleSet, type CollectionRuleSetCriteria, type CollectionSearchCriteria, CollectionsApi, ConditionType, ConditionTypeSchema, type ConditionTypeType, type ContentPage, ContentPagesApi, type CreateAddressDto, type CreateBanner, type CreateBlogCategory, type CreateBlogComment, type CreateBlogPost, type CreateBlogSettings, type CreateBlogTag, type CreateCategory, type CreateContentPage, type CreateEmbeddedScript, type CreateOrder, type CreateOrderItem, type CreateOrderItemRequest, type CreateOrderRequest, type CreateProduct, type CreateProductReview, type CreateProductReviewReply, type CreateProductVariant, type CreatePromotion, CreatePromotionSchema, type CreateStore, type CreateStoreConfig, type CreateStoreSettings, type CreateVariantOption, type CreateVariantOptionValue, type CurrentIdentity, type Customer, type CustomerOrderFilter, type CustomerOrderSummary, CustomersApi, DEFAULT_BUCKET, DISCOUNT_METHOD_LABELS, type DeleteApiFunction, type DeletedAt, DiscountMethod, DiscountMethodSchema, type DiscountMethodType, EMAIL_COLOR_PATTERN, EMAIL_PALETTE_DEFAULTS, type EcomwebSdk, type EcomwebSdkOptions, type EmbeddedScript, type EmbeddedScriptPlacement, type FulfillmentStatus, type GoogleAuthUrl, type GuestOrderLookupParams, type GuestOrderLookupResult, type IHttpClient, INVENTORY_ADJUSTMENT_REASONS, INVENTORY_ERROR_CODES, INVENTORY_POLICIES, INVENTORY_STATES, INVENTORY_STATUS_LABELS, type Id, type ImageFormat, type ImageTransformOptions, type InitiatePaymentResult, type InsufficientInventoryItem, type IntegrationStatus, type InventoryActor, type InventoryAdjustmentReason, type InventoryErrorCode, type InventoryHistoryEntry, type InventoryImportResponse, type InventoryLevelRow, type InventoryLocation, type InventoryPolicy, type InventoryQuantities, type InventoryState, InventoryStatus, KNOWN_PAYMENT_METHODS, LEGACY_STATUS_MIGRATION_MAP, LEVEL_PROVINCE, LEVEL_WARD, type LegacyOrderStatus, type LegacyProductStatus, type LocationArea, type LocationAreaQuery, type LocationAreasResponse, type LoginPayload, MAX_RULES_PER_SET, MAX_RULE_VALUE_ENTRIES, MERCHANT_ADJUSTMENT_REASONS, MemoryTokenStorage, MenusApi, type MerchantAdjustmentReason, type MessageOutboxStatus, type MoveQuantitiesRequest, type MutationApiFunction, OBJECT_PREFIX, ORDER_ACTOR_TYPES, ORDER_EVENT_TYPES, ORDER_SOURCES, type OptionalTimestamp, type Order, type OrderActorType, type OrderCommentMutationResult, type OrderCreatedBy, type OrderEventType, type OrderItem, type PaymentMethod$1 as OrderPaymentMethod, type OrderReviewInvitationSummary, type OrderSource, type OrderStatus, type OrderTimelineActor, type OrderTimelineComment, type OrderTimelineCommentAuthor, type OrderTimelineEntry, type OrderTimelineEvent, type OrderTimelineResponse, type OrderWithItems, OrdersApi, PAGINATION_DEFAULTS, PRODUCT_STATUS_LABELS, PROMOTION_MODE_COLORS, PROMOTION_MODE_LABELS, PROMOTION_STATUS_COLORS, PROMOTION_STATUS_LABELS, PROMOTION_TYPE_COLORS, PROMOTION_TYPE_LABELS, type PaginatedApiFunction, type PaginatedPromotionsResponse, PaginatedPromotionsResponseSchema, type PaginatedResponse, type PaginatedReviewsResponse, type PaginationMeta, type PasswordPolicy, type PaymentCredentialStatus, type PaymentMethod$1 as PaymentMethod, PaymentMethodsApi, type PaymentStateResult, type PaymentStatus, PaymentsApi, type Product, type ProductDetail, type ProductImage, type ProductQueryParams, type ProductReview, type ProductReviewFilters, type ProductReviewReply, type ProductReviewReplyFilters, type ProductReviewStats, type ProductReviewWithReplies, type ProductSearchParams, type ProductSearchResponse, type ProductService, ProductStatus, type ProductVariant, type ProductVariantCombination, type ProductVariantCombinationEntry, type ProductVariantWithCombinations, type ProductVideo, type ProductWithReviewStats, type ProductWithVariants, ProductsApi, type Promotion, type PromotionData, PromotionMode, PromotionModeSchema, type PromotionModeType, type PromotionQueryParams, PromotionQueryParamsSchema, PromotionSchema, type PromotionStatistics, PromotionStatisticsSchema, PromotionStatus, PromotionStatusSchema, type PromotionStatusType, type PromotionSuggestion, type PromotionSuggestionsResponse, PromotionType, PromotionTypeSchema, type PromotionTypeType, type PromotionWithDiscount, PromotionWithDiscountSchema, PromotionsApi, type PublicAuthConfig, type PublishedStoreTheme, type QuantitiesResponse, RENDER_PREFIX, RULE_FIELDS, RedirectsApi, type RegisterPayload, type RequestOptions, type ResetPasswordPayload, type ResetResult, type ResizeMode, type ReviewInvitationPublicData, type ReviewStatus, ReviewsApi, type RuleField, type RuleFieldSpec, type RuleOperator, type RuleOperatorSpec, type RuleValueKind, SHIPPING_CONDITION_TYPES, SHIPPING_DELIVERY_TYPES, SHIPPING_RATE_TYPES, SearchApi, type SearchCategory, type SearchProduct, type SentResult, type SeoMetadata$3 as SeoMetadata, type ServerComputedOrderAmounts, type SetQuantitiesRequest, type SetQuantitiesResponse, ShippingApi, type ShippingCalculationRequest, type ShippingConditionType, type ShippingDeliveryType, type ShippingOption, type ShippingRate, type ShippingRateType, type ShippingStatus, type ShippingZone, type SingleEntityApiFunction, type StaleQuantity, type Store, type StoreConfig, type StoreConfigurationInfo, type StoreEmailBrandingSettings, type StoreMenu, type StoreMenuItem, type PaymentMethod as StorePaymentMethod, type StoreSettings, type StoreStatus, type StoreWithRelations, StoresApi, type SubmitReviewInvitationPayload, THEME_HEX_COLOR, type ThemeDisplayItem, type ThemeSchema, type ThemeSchemaGroup, type ThemeSchemaItem, type ThemeSetting, type ThemeSettingType, type ThemeSettingsOf, type ThemeValue, type ThemeValueError, type ThemeValues, type ThemeVisibleIf, ThemesApi, type Timestamp, type TocItem, type TokenStorage, UNAVAILABLE_STATES, type UnavailableState, type UpdateAddressDto, type UpdateBanner, type UpdateBannerPosition, type UpdateBlogCategory, type UpdateBlogComment, type UpdateBlogPost, type UpdateBlogSettings, type UpdateBlogTag, type UpdateCartItemRequest, type UpdateCategory, type UpdateContentPage, type UpdateEmbeddedScript, type UpdateOrder, type UpdateOrderItem, type UpdateProduct, type UpdateProductReview, type UpdateProductReviewReply, type UpdateProductVariant, type UpdatePromotion, UpdatePromotionSchema, type UpdateStore, type UpdateStoreConfig, type UpdateStoreSettings, type UpdateVariantOption, type UpdateVariantOptionValue, type UpsertCustomerForAuthPayload, type UrlRedirect, type ValidatePromotionCodeRequest, type ValidatePromotionCodeResponse, type VariantOption, type VariantOptionValue, type VariantStatus, type VerifiedResult, type VerifyOtpPayload, type WithSeoMetadata$3 as WithSeoMetadata, allowedValuesFor, appliedPromotionSchema, assetBaseUrl, attributeLinkSchema, attributeLinkValueSchema, bannerSchema, baseDeleteOptionsSchema, baseDeleteResultSchema, baseQueryParamsSchema, blogCategorySchema, blogCommentSchema, blogCommentWithRepliesSchema, blogPostCategorySchema, blogPostSchema, blogPostStatusSchema, blogPostTagSchema, blogPostWithRelationsSchema, blogSettingsSchema, blogTagSchema, buildTransformQuery, categorySchema, categoryTreeSchema, categoryWithChildrenSchema, colorSchema, contentPageSchema, createAuthAwareHttpClient, createBannerSchema, createBlogCategorySchema, createBlogCommentSchema, createBlogPostSchema, createBlogSettingsSchema, createBlogTagSchema, createCategorySchema, createContentPageSchema, createEcomwebSdk, createEmbeddedScriptSchema, createOrderItemSchema, createOrderSchema, createProductReviewReplySchema, createProductReviewSchema, createProductSchema, createProductVariantSchema, createStoreConfigSchema, createStoreSchema, createStoreSettingsSchema, createVariantOptionSchema, createVariantOptionValueSchema, customerOrderSummarySchema, decimalSchema, deletedAtSchema, dimensionsSchema, emailBrandingSchema, emailBrandingShape, emailSchema, embeddedScriptPlacementSchema, embeddedScriptSchema, ensureSuccess, fromObjectPublicUrlToRender, fulfillmentStatusSchema, idSchema, integrationStatusSchema, inventoryStatusSchema, isEditableStatus, isPublishableStatus, isRuleField, isSettingVisible, isUnpublishedStatus, jsonSchema, legacyOrderStatusSchema, legacyProductStatusSchema, legalLinksSchema, messageOutboxStatusSchema, moneySchema, onHand, operatorsForField, optionalTimestampSchema, optionalUrlSchema, orderItemSchema, orderSchema, orderStatusSchema, orderWithItemsSchema, paginatedResponseSchema, paginationMetaSchema, paginationSchema, parseStorageUrl, parseThemeSchema, paymentMethodSchema, paymentStatusSchema, phoneSchema, positionOrderSchema, productReviewFiltersSchema, productReviewReplyFiltersSchema, productReviewReplySchema, productReviewSchema, productReviewStatsSchema, productReviewWithRepliesSchema, productSchema, productStatusSchema, productVariantCombinationEntrySchema, productVariantCombinationSchema, productVariantSchema, productVariantWithCombinationsSchema, productWithReviewStatsSchema, productWithVariantsAndReviewStatsSchema, productWithVariantsSchema, resolveAssetUrl, resolveThemeSettings, reviewStatusSchema, rewriteSupabaseUrl, safeParseBaseQueryParams, safeParsePaginationMeta, shippingStatusSchema, slugSchema, sortOrderSchema, storeConfigSchema, storeIdSchema, storeSchema, storeSettingsSchema, storeStatusSchema, storeWithRelationsSchema, strictUrlSchema, themeDefaults, themeSchemaSchema, themeSettings, timestampSchema, toObjectUrl, toRenderUrl, tocItemSchema, transformationsEnabled, unavailable, unwrap, unwrapOrNull, updateBannerPositionSchema, updateBannerSchema, updateBlogCategorySchema, updateBlogCommentSchema, updateBlogPostSchema, updateBlogSettingsSchema, updateBlogTagSchema, updateCategorySchema, updateContentPageSchema, updateEmbeddedScriptSchema, updateOrderItemSchema, updateOrderSchema, updateProductReviewReplySchema, updateProductReviewSchema, updateProductSchema, updateProductVariantSchema, updateStoreConfigSchema, updateStoreSchema, updateStoreSettingsSchema, updateVariantOptionSchema, updateVariantOptionValueSchema, urlSchema, uuidSchema, validatePaginationMeta, validateThemeValues, valueKindFor, variantOptionSchema, variantOptionValueSchema, variantStatusSchema };
|