@ecomweb/sdk 0.3.0 → 0.5.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 +487 -983
- package/dist/index.js +1730 -620
- 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>>>;
|
|
@@ -4019,6 +3094,380 @@ declare function resolveThemeSettings(schema: ThemeSchema, input: unknown): {
|
|
|
4019
3094
|
/** "Set" means not null, not "" and not false. */
|
|
4020
3095
|
declare function isSettingVisible(setting: ThemeSetting, values: ThemeValues): boolean;
|
|
4021
3096
|
|
|
3097
|
+
/**
|
|
3098
|
+
* Metafields and metaobjects: the type engine (spec 2026-10-05
|
|
3099
|
+
* metafields-metaobjects §5). Plain TypeScript with no imports and no I/O, so
|
|
3100
|
+
* it runs unchanged in the API, the dashboard and storefronts.
|
|
3101
|
+
*
|
|
3102
|
+
* ecomweb-api (src/modules/metafields/domain/metafield-engine.ts) and
|
|
3103
|
+
* ecomweb-dashboard (lib/metafields/engine.ts) keep VERBATIM copies of
|
|
3104
|
+
* everything below the marker line. To change the engine: edit it here, update
|
|
3105
|
+
* ENGINE_BODY_SHA256 in metafield-engine.body-hash.spec.ts, then re-copy the
|
|
3106
|
+
* body into both repos with the new hash in their headers.
|
|
3107
|
+
*/
|
|
3108
|
+
declare const METAFIELD_OWNER_TYPES: readonly ["product", "variant", "collection", "customer", "order", "page", "blog_post", "location", "shop"];
|
|
3109
|
+
type MetafieldOwnerType = (typeof METAFIELD_OWNER_TYPES)[number];
|
|
3110
|
+
declare const METAFIELD_BASE_TYPES: readonly ["single_line_text", "multi_line_text", "rich_text", "email", "integer", "decimal", "date", "date_time", "url", "link", "weight", "volume", "dimension", "boolean", "color", "rating", "money", "language", "json", "file", "image", "video", "product", "variant", "collection", "page", "blog_post", "customer", "order", "metaobject_reference", "mixed_reference"];
|
|
3111
|
+
type MetafieldBaseType = (typeof METAFIELD_BASE_TYPES)[number];
|
|
3112
|
+
type MetafieldListType = `list.${MetafieldBaseType}`;
|
|
3113
|
+
type MetafieldType = MetafieldBaseType | MetafieldListType;
|
|
3114
|
+
declare function isMetafieldType(value: unknown): value is MetafieldType;
|
|
3115
|
+
declare function isListType(type: MetafieldType): type is MetafieldListType;
|
|
3116
|
+
declare function baseTypeOf(type: MetafieldType): MetafieldBaseType;
|
|
3117
|
+
type MetafieldTypeGroup = "text" | "media" | "reference" | "link" | "date_time" | "number" | "measurement" | "other" | "advanced";
|
|
3118
|
+
/** Type picker groups in display order (spec §7.2). Labels are the consumer's. */
|
|
3119
|
+
declare const METAFIELD_TYPE_GROUPS: readonly {
|
|
3120
|
+
readonly group: MetafieldTypeGroup;
|
|
3121
|
+
readonly types: readonly MetafieldBaseType[];
|
|
3122
|
+
}[];
|
|
3123
|
+
declare const RESOURCE_REFERENCE_TYPES: readonly ["product", "variant", "collection", "page", "blog_post", "customer", "order"];
|
|
3124
|
+
declare const METAOBJECT_REFERENCE_TYPES: readonly ["metaobject_reference", "mixed_reference"];
|
|
3125
|
+
declare const MEDIA_TYPES: readonly ["file", "image", "video"];
|
|
3126
|
+
/** Never resolved outside the admin (spec §6.5). */
|
|
3127
|
+
declare const PRIVATE_REFERENCE_TYPES: readonly ["customer", "order"];
|
|
3128
|
+
declare const METAFIELD_LIMITS: {
|
|
3129
|
+
readonly definitions_per_owner_type: 100;
|
|
3130
|
+
readonly pinned_per_owner_type: 20;
|
|
3131
|
+
readonly metaobject_definitions: 100;
|
|
3132
|
+
readonly fields_per_metaobject: 40;
|
|
3133
|
+
readonly filter_keys: 5;
|
|
3134
|
+
readonly value_bytes: 65536;
|
|
3135
|
+
readonly list_items: 128;
|
|
3136
|
+
readonly choices: 128;
|
|
3137
|
+
readonly allowed_domains: 20;
|
|
3138
|
+
readonly regex_length: 200;
|
|
3139
|
+
readonly regex_value_length: 500;
|
|
3140
|
+
readonly single_line_text_length: 5000;
|
|
3141
|
+
readonly multi_line_text_length: 65000;
|
|
3142
|
+
readonly link_text_length: 255;
|
|
3143
|
+
readonly email_length: 254;
|
|
3144
|
+
readonly name_length: 255;
|
|
3145
|
+
readonly description_length: 5000;
|
|
3146
|
+
readonly mixed_reference_definitions_min: 2;
|
|
3147
|
+
readonly mixed_reference_definitions_max: 10;
|
|
3148
|
+
};
|
|
3149
|
+
type MetafieldIssueCode = "blank" | "required" | "unknown_key" | "duplicate" | "immutable" | "not_allowed" | "invalid_type" | "invalid_format" | "too_short" | "too_long" | "too_small" | "too_big" | "too_large" | "pattern_mismatch" | "not_a_choice" | "precision_exceeded" | "domain_not_allowed" | "invalid_unit" | "scale_mismatch" | "currency_mismatch" | "list_too_short" | "list_too_long" | "invalid_node" | "unsafe_url" | "invalid_validation" | "unsafe_regex";
|
|
3150
|
+
/** `path` is relative to the validated input: "", "[2]", "[2].amount", "fields[0].type". */
|
|
3151
|
+
interface MetafieldIssue {
|
|
3152
|
+
path: string;
|
|
3153
|
+
code: MetafieldIssueCode;
|
|
3154
|
+
message: string;
|
|
3155
|
+
}
|
|
3156
|
+
/** `errors` and `value` are optional-undefined on the other arm so both read cleanly without strictNullChecks. */
|
|
3157
|
+
type EngineResult<T> = {
|
|
3158
|
+
ok: true;
|
|
3159
|
+
value: T;
|
|
3160
|
+
errors?: undefined;
|
|
3161
|
+
} | {
|
|
3162
|
+
ok: false;
|
|
3163
|
+
errors: MetafieldIssue[];
|
|
3164
|
+
value?: undefined;
|
|
3165
|
+
};
|
|
3166
|
+
type FileKind = "image" | "video" | "document";
|
|
3167
|
+
interface MeasurementValue {
|
|
3168
|
+
value: string;
|
|
3169
|
+
unit: string;
|
|
3170
|
+
}
|
|
3171
|
+
interface LinkValue {
|
|
3172
|
+
url: string;
|
|
3173
|
+
text: string;
|
|
3174
|
+
}
|
|
3175
|
+
interface RatingValue {
|
|
3176
|
+
value: string;
|
|
3177
|
+
scale_min: string;
|
|
3178
|
+
scale_max: string;
|
|
3179
|
+
}
|
|
3180
|
+
interface MoneyValue {
|
|
3181
|
+
amount: string;
|
|
3182
|
+
currency_code: string;
|
|
3183
|
+
}
|
|
3184
|
+
/** integer: number; decimal: decimal string; date/date_time: canonical string; measurements: MeasurementValue. */
|
|
3185
|
+
type MetafieldBound = number | string | MeasurementValue;
|
|
3186
|
+
/** Canonical validations, as validateValidations returns them (spec §5.2). */
|
|
3187
|
+
interface MetafieldValidations {
|
|
3188
|
+
min_length?: number;
|
|
3189
|
+
max_length?: number;
|
|
3190
|
+
regex?: string;
|
|
3191
|
+
choices?: string[];
|
|
3192
|
+
min?: MetafieldBound;
|
|
3193
|
+
max?: MetafieldBound;
|
|
3194
|
+
max_precision?: number;
|
|
3195
|
+
allowed_domains?: string[];
|
|
3196
|
+
scale_min?: string;
|
|
3197
|
+
scale_max?: string;
|
|
3198
|
+
file_types?: FileKind[];
|
|
3199
|
+
metaobject_definition_id?: string;
|
|
3200
|
+
metaobject_definition_ids?: string[];
|
|
3201
|
+
list_min?: number;
|
|
3202
|
+
list_max?: number;
|
|
3203
|
+
}
|
|
3204
|
+
/** Store facts a value check needs. The engine never looks anything up. */
|
|
3205
|
+
interface MetafieldContext {
|
|
3206
|
+
currency_code: string;
|
|
3207
|
+
}
|
|
3208
|
+
declare const METAFIELD_KEY_PATTERN: RegExp;
|
|
3209
|
+
declare const METAOBJECT_TYPE_PATTERN: RegExp;
|
|
3210
|
+
declare const ENTRY_HANDLE_PATTERN: RegExp;
|
|
3211
|
+
/** "Đánh giá khách hàng" → "danh_gia_khach_hang". "" when nothing usable remains. */
|
|
3212
|
+
declare function toMetafieldKey(text: string): string;
|
|
3213
|
+
/** "Lan Anh – Hà Nội" → "lan-anh-ha-noi". "" when nothing usable remains. */
|
|
3214
|
+
declare function toEntryHandle(text: string): string;
|
|
3215
|
+
/** True for a well-formed entry handle that is not a reserved name. */
|
|
3216
|
+
declare function isValidEntryHandle(handle: string): boolean;
|
|
3217
|
+
declare function metafieldIdentifier(namespace: string, key: string): string;
|
|
3218
|
+
declare function parseMetafieldIdentifier(identifier: string): {
|
|
3219
|
+
namespace: string;
|
|
3220
|
+
key: string;
|
|
3221
|
+
} | null;
|
|
3222
|
+
/**
|
|
3223
|
+
* A canonical decimal string ("7.5", "-0.25", "0"), or null when the input is not a plain decimal.
|
|
3224
|
+
* Numbers JS prints in exponent form (1e-7, 1e21) are rejected; send them as decimal strings.
|
|
3225
|
+
*/
|
|
3226
|
+
declare function normalizeDecimal(input: unknown): string | null;
|
|
3227
|
+
/** Compares two canonical decimal strings exactly. */
|
|
3228
|
+
declare function compareDecimal(a: string, b: string): -1 | 0 | 1;
|
|
3229
|
+
/** "YYYY-MM-DD" when the input is a real calendar date, else null. */
|
|
3230
|
+
declare function normalizeDate(input: unknown): string | null;
|
|
3231
|
+
/** "YYYY-MM-DDTHH:mm:ssZ" in UTC, or null. Milliseconds are dropped. */
|
|
3232
|
+
declare function normalizeDateTime(input: unknown): string | null;
|
|
3233
|
+
interface RichTextText {
|
|
3234
|
+
type: "text";
|
|
3235
|
+
value: string;
|
|
3236
|
+
bold?: boolean;
|
|
3237
|
+
italic?: boolean;
|
|
3238
|
+
}
|
|
3239
|
+
interface RichTextLink {
|
|
3240
|
+
type: "link";
|
|
3241
|
+
url: string;
|
|
3242
|
+
title?: string;
|
|
3243
|
+
children: RichTextText[];
|
|
3244
|
+
}
|
|
3245
|
+
type RichTextInline = RichTextText | RichTextLink;
|
|
3246
|
+
interface RichTextParagraph {
|
|
3247
|
+
type: "paragraph";
|
|
3248
|
+
children: RichTextInline[];
|
|
3249
|
+
}
|
|
3250
|
+
interface RichTextHeading {
|
|
3251
|
+
type: "heading";
|
|
3252
|
+
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
3253
|
+
children: RichTextInline[];
|
|
3254
|
+
}
|
|
3255
|
+
interface RichTextListItem {
|
|
3256
|
+
type: "list-item";
|
|
3257
|
+
children: RichTextInline[];
|
|
3258
|
+
}
|
|
3259
|
+
interface RichTextList {
|
|
3260
|
+
type: "list";
|
|
3261
|
+
listType: "ordered" | "unordered";
|
|
3262
|
+
children: RichTextListItem[];
|
|
3263
|
+
}
|
|
3264
|
+
type RichTextBlock = RichTextParagraph | RichTextHeading | RichTextList;
|
|
3265
|
+
interface RichTextRoot {
|
|
3266
|
+
type: "root";
|
|
3267
|
+
children: RichTextBlock[];
|
|
3268
|
+
}
|
|
3269
|
+
type RichTextNode = RichTextRoot | RichTextBlock | RichTextListItem | RichTextInline;
|
|
3270
|
+
/** Validates a rich-text tree (spec §5.3). There is no HTML anywhere in it. */
|
|
3271
|
+
declare function validateRichText(input: unknown, path?: string): EngineResult<RichTextRoot>;
|
|
3272
|
+
/** Characters of text in the tree, links and list items included. */
|
|
3273
|
+
declare function richTextLength(root: RichTextRoot): number;
|
|
3274
|
+
/** Conversion factors to the first unit of each type (g, ml, mm). */
|
|
3275
|
+
declare const MEASUREMENT_UNITS: {
|
|
3276
|
+
readonly weight: {
|
|
3277
|
+
readonly g: 1;
|
|
3278
|
+
readonly kg: 1000;
|
|
3279
|
+
readonly oz: 28.349523125;
|
|
3280
|
+
readonly lb: 453.59237;
|
|
3281
|
+
};
|
|
3282
|
+
readonly volume: {
|
|
3283
|
+
readonly ml: 1;
|
|
3284
|
+
readonly cl: 10;
|
|
3285
|
+
readonly l: 1000;
|
|
3286
|
+
readonly m3: 1000000;
|
|
3287
|
+
readonly fl_oz: 29.5735295625;
|
|
3288
|
+
readonly pt: 473.176473;
|
|
3289
|
+
readonly qt: 946.352946;
|
|
3290
|
+
readonly gal: 3785.411784;
|
|
3291
|
+
};
|
|
3292
|
+
readonly dimension: {
|
|
3293
|
+
readonly mm: 1;
|
|
3294
|
+
readonly cm: 10;
|
|
3295
|
+
readonly m: 1000;
|
|
3296
|
+
readonly in: 25.4;
|
|
3297
|
+
readonly ft: 304.8;
|
|
3298
|
+
readonly yd: 914.4;
|
|
3299
|
+
};
|
|
3300
|
+
};
|
|
3301
|
+
type MeasurementType = keyof typeof MEASUREMENT_UNITS;
|
|
3302
|
+
/** The value in g, ml or mm, or null for an unknown unit. For bounds only: it uses floats. */
|
|
3303
|
+
declare function measurementInBaseUnit(measurement: MeasurementValue, type: MeasurementType): number | null;
|
|
3304
|
+
/** File kinds a media value may point at; null means any kind (or not a media type). */
|
|
3305
|
+
declare function allowedFileKinds(type: MetafieldType, validations: MetafieldValidations): readonly FileKind[] | null;
|
|
3306
|
+
/** A positive bigint id as a string, or null. */
|
|
3307
|
+
declare function normalizeId(input: unknown): string | null;
|
|
3308
|
+
/**
|
|
3309
|
+
* Values a caller without a type should treat as "clear this field": null,
|
|
3310
|
+
* undefined, "" and []. Use isBlankValueFor when the field's type is known.
|
|
3311
|
+
*/
|
|
3312
|
+
declare function isBlankValue(value: unknown): boolean;
|
|
3313
|
+
/**
|
|
3314
|
+
* Type-aware blank check: whitespace-only text is blank for text types, an
|
|
3315
|
+
* empty root is blank for rich_text, and neither is blank for json.
|
|
3316
|
+
*/
|
|
3317
|
+
declare function isBlankValueFor(type: MetafieldType, value: unknown): boolean;
|
|
3318
|
+
/**
|
|
3319
|
+
* Validates one value against its type and its definition's (already
|
|
3320
|
+
* validated) validations, returning the canonical value. Blank values fail
|
|
3321
|
+
* with "blank": callers decide whether blank means "delete" or "required".
|
|
3322
|
+
*/
|
|
3323
|
+
declare function validateMetafieldValue(type: MetafieldType, validations: MetafieldValidations, value: unknown, ctx: MetafieldContext, path?: string): EngineResult<unknown>;
|
|
3324
|
+
type MetafieldValidationKey = keyof MetafieldValidations;
|
|
3325
|
+
declare const VALIDATION_KEYS: Readonly<Record<MetafieldBaseType, readonly MetafieldValidationKey[]>>;
|
|
3326
|
+
/**
|
|
3327
|
+
* Restricts merchant regexes to a dialect whose work is bounded: no
|
|
3328
|
+
* backreferences or lookaround, nothing but "?" after a group, at most two
|
|
3329
|
+
* quantifiers (*, +, ?, {n,}, {n,m}; a lazy "?" is part of its quantifier,
|
|
3330
|
+
* exact {n} is free) and at most four alternatives. Deliberately conservative.
|
|
3331
|
+
*/
|
|
3332
|
+
declare function isSafeRegex(pattern: string): boolean;
|
|
3333
|
+
/**
|
|
3334
|
+
* Validates and canonicalises a definition's `validations` for its type
|
|
3335
|
+
* (spec §5.2). Unknown keys, unsafe regexes and contradictory bounds fail.
|
|
3336
|
+
*/
|
|
3337
|
+
declare function validateValidations(type: MetafieldType, input: unknown, path?: string): EngineResult<MetafieldValidations>;
|
|
3338
|
+
type CustomerAccess = "none" | "read" | "read_write";
|
|
3339
|
+
/** Customer, order and location data never reaches the public storefront (spec s.4.1). */
|
|
3340
|
+
declare function storefrontAccessAllowed(owner: MetafieldOwnerType): boolean;
|
|
3341
|
+
declare function allowedCustomerAccess(owner: MetafieldOwnerType): readonly CustomerAccess[];
|
|
3342
|
+
interface MetafieldDefinitionShape {
|
|
3343
|
+
owner_type: MetafieldOwnerType;
|
|
3344
|
+
namespace: string;
|
|
3345
|
+
key: string;
|
|
3346
|
+
name: string;
|
|
3347
|
+
description: string | null;
|
|
3348
|
+
type: MetafieldType;
|
|
3349
|
+
validations: MetafieldValidations;
|
|
3350
|
+
storefront_access: boolean;
|
|
3351
|
+
customer_access: CustomerAccess;
|
|
3352
|
+
}
|
|
3353
|
+
/** Validates a full metafield definition; the API merges a PATCH into the stored row first. */
|
|
3354
|
+
declare function validateMetafieldDefinition(input: unknown): EngineResult<MetafieldDefinitionShape>;
|
|
3355
|
+
interface MetaobjectFieldShape {
|
|
3356
|
+
key: string;
|
|
3357
|
+
name: string;
|
|
3358
|
+
description: string | null;
|
|
3359
|
+
type: MetafieldType;
|
|
3360
|
+
required: boolean;
|
|
3361
|
+
validations: MetafieldValidations;
|
|
3362
|
+
}
|
|
3363
|
+
/** Field types usable as filter keys (spec s.4.3). List types never are. */
|
|
3364
|
+
declare const FILTERABLE_TYPES: readonly MetafieldBaseType[];
|
|
3365
|
+
interface MetaobjectDefinitionShape {
|
|
3366
|
+
type: string;
|
|
3367
|
+
name: string;
|
|
3368
|
+
description: string | null;
|
|
3369
|
+
fields: MetaobjectFieldShape[];
|
|
3370
|
+
display_name_key: string | null;
|
|
3371
|
+
filter_keys: string[];
|
|
3372
|
+
has_status: boolean;
|
|
3373
|
+
storefront_access: boolean;
|
|
3374
|
+
customer_access: "none" | "read";
|
|
3375
|
+
}
|
|
3376
|
+
/** Validates a full metaobject definition; the API merges a PATCH into the stored row first. */
|
|
3377
|
+
declare function validateMetaobjectDefinition(input: unknown): EngineResult<MetaobjectDefinitionShape>;
|
|
3378
|
+
/** Validates an entry's field values against its definition; blank optional fields are omitted. */
|
|
3379
|
+
declare function validateMetaobjectEntry(fields: readonly MetaobjectFieldShape[], input: unknown, ctx: MetafieldContext): EngineResult<Record<string, unknown>>;
|
|
3380
|
+
/** The display-name field's text, else the handle (spec s.4.4). */
|
|
3381
|
+
declare function entryDisplayName(definition: Pick<MetaobjectDefinitionShape, "display_name_key">, fields: Record<string, unknown>, handle: string): string;
|
|
3382
|
+
/**
|
|
3383
|
+
* A field's type is fixed once saved (spec s.4.5). Reports removed keys so the
|
|
3384
|
+
* API can strip them from entries. Assumes `after` already passed
|
|
3385
|
+
* validateMetaobjectDefinition (unique keys).
|
|
3386
|
+
*/
|
|
3387
|
+
declare function checkMetaobjectFieldChanges(before: readonly MetaobjectFieldShape[], after: readonly MetaobjectFieldShape[]): EngineResult<{
|
|
3388
|
+
removed: string[];
|
|
3389
|
+
added: string[];
|
|
3390
|
+
}>;
|
|
3391
|
+
|
|
3392
|
+
/**
|
|
3393
|
+
* Metafields as the public and customer APIs return them (spec §6.4): only
|
|
3394
|
+
* definitions with storefront (or customer) access, keyed "namespace.key",
|
|
3395
|
+
* with references already resolved (spec §6.5).
|
|
3396
|
+
*/
|
|
3397
|
+
interface StorefrontMetafield<V = unknown> {
|
|
3398
|
+
type: MetafieldType;
|
|
3399
|
+
value: V;
|
|
3400
|
+
}
|
|
3401
|
+
type StorefrontMetafields = Record<string, StorefrontMetafield>;
|
|
3402
|
+
interface WithMetafields {
|
|
3403
|
+
metafields?: StorefrontMetafields;
|
|
3404
|
+
}
|
|
3405
|
+
/** One write in a customer PUT. `value: null` clears the metafield. */
|
|
3406
|
+
interface MetafieldWrite {
|
|
3407
|
+
namespace: string;
|
|
3408
|
+
key: string;
|
|
3409
|
+
value: unknown;
|
|
3410
|
+
}
|
|
3411
|
+
interface ResolvedImage {
|
|
3412
|
+
url: string;
|
|
3413
|
+
alt: string | null;
|
|
3414
|
+
width: number | null;
|
|
3415
|
+
height: number | null;
|
|
3416
|
+
}
|
|
3417
|
+
/** file, image and video values. */
|
|
3418
|
+
interface ResolvedAsset extends ResolvedImage {
|
|
3419
|
+
mime_type: string;
|
|
3420
|
+
}
|
|
3421
|
+
interface ResolvedProductRef {
|
|
3422
|
+
id: string;
|
|
3423
|
+
name: string;
|
|
3424
|
+
slug: string | null;
|
|
3425
|
+
image_url: string | null;
|
|
3426
|
+
min_price: number | null;
|
|
3427
|
+
max_price: number | null;
|
|
3428
|
+
available: boolean;
|
|
3429
|
+
}
|
|
3430
|
+
interface ResolvedVariantRef {
|
|
3431
|
+
id: string;
|
|
3432
|
+
product_id: string;
|
|
3433
|
+
product_slug: string | null;
|
|
3434
|
+
/** Option values joined with " / ", e.g. "Red / M". */
|
|
3435
|
+
title: string;
|
|
3436
|
+
price: number;
|
|
3437
|
+
image_url: string | null;
|
|
3438
|
+
available: boolean;
|
|
3439
|
+
}
|
|
3440
|
+
interface ResolvedCollectionRef {
|
|
3441
|
+
id: string;
|
|
3442
|
+
name: string;
|
|
3443
|
+
slug: string;
|
|
3444
|
+
image_url: string | null;
|
|
3445
|
+
}
|
|
3446
|
+
interface ResolvedPageRef {
|
|
3447
|
+
id: string;
|
|
3448
|
+
title: string;
|
|
3449
|
+
slug: string;
|
|
3450
|
+
}
|
|
3451
|
+
interface ResolvedBlogPostRef {
|
|
3452
|
+
id: string;
|
|
3453
|
+
title: string;
|
|
3454
|
+
slug: string;
|
|
3455
|
+
featured_image_url: string | null;
|
|
3456
|
+
published_at: string | null;
|
|
3457
|
+
}
|
|
3458
|
+
/** A metaobject reference beyond the resolution depth (2). */
|
|
3459
|
+
interface ResolvedMetaobjectStub {
|
|
3460
|
+
type: string;
|
|
3461
|
+
handle: string;
|
|
3462
|
+
}
|
|
3463
|
+
interface ResolvedMetaobjectRef extends ResolvedMetaobjectStub {
|
|
3464
|
+
display_name: string;
|
|
3465
|
+
fields: StorefrontMetafields;
|
|
3466
|
+
}
|
|
3467
|
+
interface StorefrontMetaobjectEntry extends ResolvedMetaobjectRef {
|
|
3468
|
+
updated_at: string;
|
|
3469
|
+
}
|
|
3470
|
+
|
|
4022
3471
|
type ResizeMode = "cover" | "contain" | "inside" | "outside";
|
|
4023
3472
|
type ImageFormat = "origin" | "avif" | "webp" | "png" | "jpeg";
|
|
4024
3473
|
interface ImageTransformOptions {
|
|
@@ -4130,6 +3579,7 @@ type ProductDetail = Product & {
|
|
|
4130
3579
|
}>;
|
|
4131
3580
|
promotions?: PromotionData[];
|
|
4132
3581
|
promotion_price?: number;
|
|
3582
|
+
metafields?: StorefrontMetafields;
|
|
4133
3583
|
})[];
|
|
4134
3584
|
} & {
|
|
4135
3585
|
categories: Category[];
|
|
@@ -4139,6 +3589,7 @@ type ProductDetail = Product & {
|
|
|
4139
3589
|
review_stats?: ProductReviewStats | null;
|
|
4140
3590
|
services?: ProductService[];
|
|
4141
3591
|
product_attributes?: AttributeLink[];
|
|
3592
|
+
metafields?: StorefrontMetafields;
|
|
4142
3593
|
} & WithSeoMetadata$3;
|
|
4143
3594
|
|
|
4144
3595
|
declare class ProductsApi {
|
|
@@ -4412,6 +3863,7 @@ interface Collection extends WithSeoMetadata$2 {
|
|
|
4412
3863
|
collection_sort: string | null;
|
|
4413
3864
|
created_at: string;
|
|
4414
3865
|
updated_at: string;
|
|
3866
|
+
metafields?: StorefrontMetafields;
|
|
4415
3867
|
}
|
|
4416
3868
|
interface CollectionQueryParams extends BaseQueryParams {
|
|
4417
3869
|
/** Fetch a specific set of collections — how collection_grid resolves its configured collection_ids. */
|
|
@@ -4626,7 +4078,7 @@ declare class OrdersApi {
|
|
|
4626
4078
|
* Full detail for one of the authenticated customer's orders. The API
|
|
4627
4079
|
* verifies ownership and returns 404 — not 403 — for someone else's order.
|
|
4628
4080
|
*/
|
|
4629
|
-
getCustomerOrder(storeRef: string, orderId: Id): Promise<OrderWithItems>;
|
|
4081
|
+
getCustomerOrder(storeRef: string, orderId: Id): Promise<OrderWithItems & WithMetafields>;
|
|
4630
4082
|
/**
|
|
4631
4083
|
* Customers may only cancel orders that are still pending, confirmed or
|
|
4632
4084
|
* processing; the API rejects anything else with ORDER_NOT_CANCELLABLE.
|
|
@@ -4641,7 +4093,7 @@ interface SeoMetadata$1 {
|
|
|
4641
4093
|
interface WithSeoMetadata$1 {
|
|
4642
4094
|
seo_metadata?: SeoMetadata$1 | null;
|
|
4643
4095
|
}
|
|
4644
|
-
type BlogPost = BlogPost$1 & WithSeoMetadata$1 & {
|
|
4096
|
+
type BlogPost = BlogPost$1 & WithSeoMetadata$1 & WithMetafields & {
|
|
4645
4097
|
product_ids?: number[];
|
|
4646
4098
|
};
|
|
4647
4099
|
interface BlogPostQueryParams extends BaseQueryParams {
|
|
@@ -4688,15 +4140,29 @@ declare class BlogApi {
|
|
|
4688
4140
|
interface PublishedStoreTheme {
|
|
4689
4141
|
id: string | null;
|
|
4690
4142
|
name: string;
|
|
4691
|
-
|
|
4143
|
+
/** `external`: the merchant's own site serves the storefront. */
|
|
4144
|
+
kind: "hosted" | "custom" | "external";
|
|
4145
|
+
/** Where the theme runs; absent from APIs older than external themes. */
|
|
4146
|
+
hosting?: "ecomweb" | "external";
|
|
4147
|
+
/** The external site's URL (https, no trailing slash); external themes only. */
|
|
4148
|
+
external_url?: string | null;
|
|
4692
4149
|
source_theme_id: string;
|
|
4693
4150
|
values: Record<string, unknown>;
|
|
4694
4151
|
}
|
|
4695
4152
|
type StoreConfigurationInfo = Store & {
|
|
4696
4153
|
config: StoreConfig;
|
|
4697
4154
|
settings: StoreSettings;
|
|
4698
|
-
theme_config?: ThemeConfig;
|
|
4699
4155
|
theme?: PublishedStoreTheme;
|
|
4156
|
+
/** Shop metafields with storefront access (spec §6.4). */
|
|
4157
|
+
metafields?: StorefrontMetafields;
|
|
4158
|
+
};
|
|
4159
|
+
/** `GET /public/stores/domain/:domain`: the store a host serves. */
|
|
4160
|
+
type StoreByDomainInfo = StoreConfigurationInfo & {
|
|
4161
|
+
/**
|
|
4162
|
+
* The live theme's URL when it is external (the shared storefront sends
|
|
4163
|
+
* shoppers there), else null. Absent from APIs older than external themes.
|
|
4164
|
+
*/
|
|
4165
|
+
storefront_url?: string | null;
|
|
4700
4166
|
};
|
|
4701
4167
|
|
|
4702
4168
|
declare class StoresApi {
|
|
@@ -4708,7 +4174,7 @@ declare class StoresApi {
|
|
|
4708
4174
|
includeEmbeddedScripts?: boolean;
|
|
4709
4175
|
}): Promise<StoreConfigurationInfo | null>;
|
|
4710
4176
|
getBySubdomain(subdomain: string): Promise<Store | null>;
|
|
4711
|
-
getByDomain(domain: string): Promise<
|
|
4177
|
+
getByDomain(domain: string): Promise<StoreByDomainInfo | null>;
|
|
4712
4178
|
}
|
|
4713
4179
|
|
|
4714
4180
|
declare class ThemesApi {
|
|
@@ -4718,6 +4184,36 @@ declare class ThemesApi {
|
|
|
4718
4184
|
getPreview(storeRef: string, token: string): Promise<PublishedStoreTheme | null>;
|
|
4719
4185
|
}
|
|
4720
4186
|
|
|
4187
|
+
interface MetaobjectListParams {
|
|
4188
|
+
/** Equality filters on the definition's filter keys (spec §6.4). */
|
|
4189
|
+
filter?: Record<string, string | number | boolean>;
|
|
4190
|
+
cursor?: string;
|
|
4191
|
+
/** At most 50. */
|
|
4192
|
+
limit?: number;
|
|
4193
|
+
/** Send the customer session, for definitions with customer access only. */
|
|
4194
|
+
as_customer?: boolean;
|
|
4195
|
+
}
|
|
4196
|
+
interface MetaobjectListResult {
|
|
4197
|
+
items: StorefrontMetaobjectEntry[];
|
|
4198
|
+
next_cursor: string | null;
|
|
4199
|
+
}
|
|
4200
|
+
|
|
4201
|
+
declare class MetaobjectsApi {
|
|
4202
|
+
private publicHttp;
|
|
4203
|
+
private authHttp;
|
|
4204
|
+
constructor(publicHttp: IHttpClient, authHttp: IHttpClient);
|
|
4205
|
+
/**
|
|
4206
|
+
* Active entries of a metaobject type. A type that is unknown or hidden
|
|
4207
|
+
* from this reader lists as empty: the API answers 404 for both, the same
|
|
4208
|
+
* as a missing type, so it never reveals which types exist.
|
|
4209
|
+
*/
|
|
4210
|
+
list(storeRef: string, type: string, params?: MetaobjectListParams): Promise<MetaobjectListResult>;
|
|
4211
|
+
/** One active entry by handle; null when it, or its type, is missing or hidden. */
|
|
4212
|
+
get(storeRef: string, type: string, handle: string, options?: {
|
|
4213
|
+
as_customer?: boolean;
|
|
4214
|
+
}): Promise<StorefrontMetaobjectEntry | null>;
|
|
4215
|
+
}
|
|
4216
|
+
|
|
4721
4217
|
declare const searchCatalogParamsSchema: z.ZodObject<{
|
|
4722
4218
|
q: z.ZodOptional<z.ZodString>;
|
|
4723
4219
|
collection: z.ZodString;
|
|
@@ -5297,6 +4793,13 @@ declare class CustomersApi {
|
|
|
5297
4793
|
private http;
|
|
5298
4794
|
constructor(http: IHttpClient);
|
|
5299
4795
|
upsertForAuth(storeRef: string, payload: UpsertCustomerForAuthPayload): Promise<ApiResponse<Customer>>;
|
|
4796
|
+
/** The signed-in customer's metafields with customer access (spec §6.6). */
|
|
4797
|
+
getMetafields(storeRef: string): Promise<StorefrontMetafields>;
|
|
4798
|
+
/**
|
|
4799
|
+
* Writes read_write metafields; `value: null` clears one. Throws
|
|
4800
|
+
* METAFIELD_VALUE_INVALID (details.errors[] by path) or METAFIELD_NOT_WRITABLE.
|
|
4801
|
+
*/
|
|
4802
|
+
updateMetafields(storeRef: string, values: MetafieldWrite[]): Promise<StorefrontMetafields>;
|
|
5300
4803
|
}
|
|
5301
4804
|
|
|
5302
4805
|
interface Address {
|
|
@@ -5354,7 +4857,7 @@ interface SeoMetadata {
|
|
|
5354
4857
|
interface WithSeoMetadata {
|
|
5355
4858
|
seo_metadata?: SeoMetadata | null;
|
|
5356
4859
|
}
|
|
5357
|
-
type ContentPage = ContentPage$1 & WithSeoMetadata;
|
|
4860
|
+
type ContentPage = ContentPage$1 & WithSeoMetadata & WithMetafields;
|
|
5358
4861
|
|
|
5359
4862
|
declare class ContentPagesApi {
|
|
5360
4863
|
private http;
|
|
@@ -5595,6 +5098,7 @@ declare function createEcomwebSdk(options: EcomwebSdkOptions): {
|
|
|
5595
5098
|
blog: BlogApi;
|
|
5596
5099
|
stores: StoresApi;
|
|
5597
5100
|
themes: ThemesApi;
|
|
5101
|
+
metaobjects: MetaobjectsApi;
|
|
5598
5102
|
search: SearchApi;
|
|
5599
5103
|
banners: BannersApi;
|
|
5600
5104
|
shipping: ShippingApi;
|
|
@@ -5610,4 +5114,4 @@ declare function createEcomwebSdk(options: EcomwebSdkOptions): {
|
|
|
5610
5114
|
};
|
|
5611
5115
|
type EcomwebSdk = ReturnType<typeof createEcomwebSdk>;
|
|
5612
5116
|
|
|
5613
|
-
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 PublishedStoreTheme, 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, THEME_HEX_COLOR, type TextWithImageConfig, type ThemeConfig, type ThemeDisplayItem, type ThemeSchema, type ThemeSchemaGroup, type ThemeSchemaItem, type ThemeSetting, type ThemeSettingType, type ThemeSettingsOf, type ThemeValue, type ThemeValueError, type ThemeValues, type ThemeVersion, 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, 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, isSettingVisible, isUnpublishedStatus, jsonSchema, legacyOrderStatusSchema, legacyProductStatusSchema, messageOutboxStatusSchema, moneySchema, newsletterSignupConfigSchema, onHand, operatorsForField, optionalTimestampSchema, optionalUrlSchema, orderItemSchema, orderSchema, orderStatusSchema, orderWithItemsSchema, paginatedResponseSchema, paginationMetaSchema, paginationSchema, parseSectionContent, 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, richTextConfigSchema, safeParseBaseQueryParams, safeParsePaginationMeta, sectionConfigSchema, sectionStyleSchema, sectionTypeSchema, shippingStatusSchema, slugSchema, sortOrderSchema, storeConfigSchema, storeIdSchema, storeSchema, storeSettingsSchema, storeStatusSchema, storeWithRelationsSchema, strictUrlSchema, textWithImageConfigSchema, themeConfigSchema, themeDefaults, themeSchemaSchema, themeSettings, 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, validateThemeValues, valueKindFor, variantOptionSchema, variantOptionValueSchema, variantStatusSchema };
|
|
5117
|
+
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 CustomerAccess, type CustomerOrderFilter, type CustomerOrderSummary, CustomersApi, DEFAULT_BUCKET, DISCOUNT_METHOD_LABELS, type DeleteApiFunction, type DeletedAt, DiscountMethod, DiscountMethodSchema, type DiscountMethodType, EMAIL_COLOR_PATTERN, EMAIL_PALETTE_DEFAULTS, ENTRY_HANDLE_PATTERN, type EcomwebSdk, type EcomwebSdkOptions, type EmbeddedScript, type EmbeddedScriptPlacement, type EngineResult, FILTERABLE_TYPES, type FileKind, 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 LinkValue, type LocationArea, type LocationAreaQuery, type LocationAreasResponse, type LoginPayload, MAX_RULES_PER_SET, MAX_RULE_VALUE_ENTRIES, MEASUREMENT_UNITS, MEDIA_TYPES, MERCHANT_ADJUSTMENT_REASONS, METAFIELD_BASE_TYPES, METAFIELD_KEY_PATTERN, METAFIELD_LIMITS, METAFIELD_OWNER_TYPES, METAFIELD_TYPE_GROUPS, METAOBJECT_REFERENCE_TYPES, METAOBJECT_TYPE_PATTERN, type MeasurementType, type MeasurementValue, MemoryTokenStorage, MenusApi, type MerchantAdjustmentReason, type MessageOutboxStatus, type MetafieldBaseType, type MetafieldBound, type MetafieldContext, type MetafieldDefinitionShape, type MetafieldIssue, type MetafieldIssueCode, type MetafieldListType, type MetafieldOwnerType, type MetafieldType, type MetafieldTypeGroup, type MetafieldValidationKey, type MetafieldValidations, type MetafieldWrite, type MetaobjectDefinitionShape, type MetaobjectFieldShape, type MetaobjectListParams, type MetaobjectListResult, MetaobjectsApi, type MoneyValue, 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, PRIVATE_REFERENCE_TYPES, 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, RESOURCE_REFERENCE_TYPES, RULE_FIELDS, type RatingValue, RedirectsApi, type RegisterPayload, type RequestOptions, type ResetPasswordPayload, type ResetResult, type ResizeMode, type ResolvedAsset, type ResolvedBlogPostRef, type ResolvedCollectionRef, type ResolvedImage, type ResolvedMetaobjectRef, type ResolvedMetaobjectStub, type ResolvedPageRef, type ResolvedProductRef, type ResolvedVariantRef, type ReviewInvitationPublicData, type ReviewStatus, ReviewsApi, type RichTextBlock, type RichTextHeading, type RichTextInline, type RichTextLink, type RichTextList, type RichTextListItem, type RichTextNode, type RichTextParagraph, type RichTextRoot, type RichTextText, 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 StoreByDomainInfo, type StoreConfig, type StoreConfigurationInfo, type StoreEmailBrandingSettings, type StoreMenu, type StoreMenuItem, type PaymentMethod as StorePaymentMethod, type StoreSettings, type StoreStatus, type StoreWithRelations, type StorefrontMetafield, type StorefrontMetafields, type StorefrontMetaobjectEntry, 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, VALIDATION_KEYS, type ValidatePromotionCodeRequest, type ValidatePromotionCodeResponse, type VariantOption, type VariantOptionValue, type VariantStatus, type VerifiedResult, type VerifyOtpPayload, type WithMetafields, type WithSeoMetadata$3 as WithSeoMetadata, allowedCustomerAccess, allowedFileKinds, allowedValuesFor, appliedPromotionSchema, assetBaseUrl, attributeLinkSchema, attributeLinkValueSchema, bannerSchema, baseDeleteOptionsSchema, baseDeleteResultSchema, baseQueryParamsSchema, baseTypeOf, blogCategorySchema, blogCommentSchema, blogCommentWithRepliesSchema, blogPostCategorySchema, blogPostSchema, blogPostStatusSchema, blogPostTagSchema, blogPostWithRelationsSchema, blogSettingsSchema, blogTagSchema, buildTransformQuery, categorySchema, categoryTreeSchema, categoryWithChildrenSchema, checkMetaobjectFieldChanges, colorSchema, compareDecimal, 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, entryDisplayName, fromObjectPublicUrlToRender, fulfillmentStatusSchema, idSchema, integrationStatusSchema, inventoryStatusSchema, isBlankValue, isBlankValueFor, isEditableStatus, isListType, isMetafieldType, isPublishableStatus, isRuleField, isSafeRegex, isSettingVisible, isUnpublishedStatus, isValidEntryHandle, jsonSchema, legacyOrderStatusSchema, legacyProductStatusSchema, legalLinksSchema, measurementInBaseUnit, messageOutboxStatusSchema, metafieldIdentifier, moneySchema, normalizeDate, normalizeDateTime, normalizeDecimal, normalizeId, onHand, operatorsForField, optionalTimestampSchema, optionalUrlSchema, orderItemSchema, orderSchema, orderStatusSchema, orderWithItemsSchema, paginatedResponseSchema, paginationMetaSchema, paginationSchema, parseMetafieldIdentifier, 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, richTextLength, safeParseBaseQueryParams, safeParsePaginationMeta, shippingStatusSchema, slugSchema, sortOrderSchema, storeConfigSchema, storeIdSchema, storeSchema, storeSettingsSchema, storeStatusSchema, storeWithRelationsSchema, storefrontAccessAllowed, strictUrlSchema, themeDefaults, themeSchemaSchema, themeSettings, timestampSchema, toEntryHandle, toMetafieldKey, 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, validateMetafieldDefinition, validateMetafieldValue, validateMetaobjectDefinition, validateMetaobjectEntry, validatePaginationMeta, validateRichText, validateThemeValues, validateValidations, valueKindFor, variantOptionSchema, variantOptionValueSchema, variantStatusSchema };
|