order3000 0.21.0 → 0.22.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/client.cjs +85 -0
- package/dist/client.d.cts +83 -8
- package/dist/client.d.mts +83 -8
- package/dist/client.mjs +85 -0
- package/dist/schemas.cjs +10 -4
- package/dist/schemas.d.cts +168 -15
- package/dist/schemas.d.mts +168 -15
- package/dist/schemas.mjs +10 -4
- package/package.json +3 -3
package/dist/schemas.d.mts
CHANGED
|
@@ -650,6 +650,25 @@ declare const schemas: {
|
|
|
650
650
|
updatedAt: string | null;
|
|
651
651
|
}>;
|
|
652
652
|
includeDrafts: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"true">, z.ZodLiteral<"false">]>>;
|
|
653
|
+
FeatureImage: z.ZodObject<{
|
|
654
|
+
id: z.ZodString;
|
|
655
|
+
publicUrl: z.ZodNullable<z.ZodString>;
|
|
656
|
+
locale: z.ZodString;
|
|
657
|
+
caption: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
658
|
+
alt: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
659
|
+
}, "strict", z.ZodTypeAny, {
|
|
660
|
+
id: string;
|
|
661
|
+
publicUrl: string | null;
|
|
662
|
+
locale: string;
|
|
663
|
+
caption: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
664
|
+
alt: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
665
|
+
}, {
|
|
666
|
+
id: string;
|
|
667
|
+
publicUrl: string | null;
|
|
668
|
+
locale: string;
|
|
669
|
+
caption: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
670
|
+
alt: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
671
|
+
}>;
|
|
653
672
|
Article: z.ZodObject<{
|
|
654
673
|
id: z.ZodString;
|
|
655
674
|
venueId: z.ZodString;
|
|
@@ -659,13 +678,31 @@ declare const schemas: {
|
|
|
659
678
|
excerpt: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
660
679
|
content: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
661
680
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
662
|
-
featuredImageId: z.ZodNullable<z.ZodString>;
|
|
663
681
|
isActive: z.ZodBoolean;
|
|
664
682
|
isFeatured: z.ZodBoolean;
|
|
665
683
|
priority: z.ZodNumber;
|
|
666
684
|
publishedAt: z.ZodNullable<z.ZodUnknown>;
|
|
667
685
|
createdAt: z.ZodNullable<z.ZodUnknown>;
|
|
668
686
|
updatedAt: z.ZodNullable<z.ZodUnknown>;
|
|
687
|
+
featureImage: z.ZodNullable<z.ZodObject<{
|
|
688
|
+
id: z.ZodString;
|
|
689
|
+
publicUrl: z.ZodNullable<z.ZodString>;
|
|
690
|
+
locale: z.ZodString;
|
|
691
|
+
caption: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
692
|
+
alt: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
693
|
+
}, "strict", z.ZodTypeAny, {
|
|
694
|
+
id: string;
|
|
695
|
+
publicUrl: string | null;
|
|
696
|
+
locale: string;
|
|
697
|
+
caption: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
698
|
+
alt: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
699
|
+
}, {
|
|
700
|
+
id: string;
|
|
701
|
+
publicUrl: string | null;
|
|
702
|
+
locale: string;
|
|
703
|
+
caption: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
704
|
+
alt: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
705
|
+
}>>;
|
|
669
706
|
}, "strict", z.ZodTypeAny, {
|
|
670
707
|
id: string;
|
|
671
708
|
venueId: string;
|
|
@@ -675,10 +712,16 @@ declare const schemas: {
|
|
|
675
712
|
title: Record<string, string>;
|
|
676
713
|
excerpt: Record<string, string> | null;
|
|
677
714
|
content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
678
|
-
featuredImageId: string | null;
|
|
679
715
|
isActive: boolean;
|
|
680
716
|
isFeatured: boolean;
|
|
681
717
|
priority: number;
|
|
718
|
+
featureImage: {
|
|
719
|
+
id: string;
|
|
720
|
+
publicUrl: string | null;
|
|
721
|
+
locale: string;
|
|
722
|
+
caption: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
723
|
+
alt: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
724
|
+
} | null;
|
|
682
725
|
createdAt?: unknown;
|
|
683
726
|
updatedAt?: unknown;
|
|
684
727
|
publishedAt?: unknown;
|
|
@@ -691,10 +734,16 @@ declare const schemas: {
|
|
|
691
734
|
title: Record<string, string>;
|
|
692
735
|
excerpt: Record<string, string> | null;
|
|
693
736
|
content: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
694
|
-
featuredImageId: string | null;
|
|
695
737
|
isActive: boolean;
|
|
696
738
|
isFeatured: boolean;
|
|
697
739
|
priority: number;
|
|
740
|
+
featureImage: {
|
|
741
|
+
id: string;
|
|
742
|
+
publicUrl: string | null;
|
|
743
|
+
locale: string;
|
|
744
|
+
caption: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
745
|
+
alt: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
746
|
+
} | null;
|
|
698
747
|
createdAt?: unknown;
|
|
699
748
|
updatedAt?: unknown;
|
|
700
749
|
publishedAt?: unknown;
|
|
@@ -708,13 +757,31 @@ declare const schemas: {
|
|
|
708
757
|
excerpt: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
709
758
|
content: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
710
759
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
711
|
-
featuredImageId: z.ZodNullable<z.ZodString>;
|
|
712
760
|
isActive: z.ZodBoolean;
|
|
713
761
|
isFeatured: z.ZodBoolean;
|
|
714
762
|
priority: z.ZodNumber;
|
|
715
763
|
publishedAt: z.ZodNullable<z.ZodUnknown>;
|
|
716
764
|
createdAt: z.ZodNullable<z.ZodUnknown>;
|
|
717
765
|
updatedAt: z.ZodNullable<z.ZodUnknown>;
|
|
766
|
+
featureImage: z.ZodNullable<z.ZodObject<{
|
|
767
|
+
id: z.ZodString;
|
|
768
|
+
publicUrl: z.ZodNullable<z.ZodString>;
|
|
769
|
+
locale: z.ZodString;
|
|
770
|
+
caption: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
771
|
+
alt: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
772
|
+
}, "strict", z.ZodTypeAny, {
|
|
773
|
+
id: string;
|
|
774
|
+
publicUrl: string | null;
|
|
775
|
+
locale: string;
|
|
776
|
+
caption: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
777
|
+
alt: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
778
|
+
}, {
|
|
779
|
+
id: string;
|
|
780
|
+
publicUrl: string | null;
|
|
781
|
+
locale: string;
|
|
782
|
+
caption: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
783
|
+
alt: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
784
|
+
}>>;
|
|
718
785
|
}, "strict", z.ZodTypeAny, {
|
|
719
786
|
id: string;
|
|
720
787
|
venueId: string;
|
|
@@ -724,10 +791,16 @@ declare const schemas: {
|
|
|
724
791
|
title: Record<string, string>;
|
|
725
792
|
excerpt: Record<string, string> | null;
|
|
726
793
|
content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
727
|
-
featuredImageId: string | null;
|
|
728
794
|
isActive: boolean;
|
|
729
795
|
isFeatured: boolean;
|
|
730
796
|
priority: number;
|
|
797
|
+
featureImage: {
|
|
798
|
+
id: string;
|
|
799
|
+
publicUrl: string | null;
|
|
800
|
+
locale: string;
|
|
801
|
+
caption: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
802
|
+
alt: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
803
|
+
} | null;
|
|
731
804
|
createdAt?: unknown;
|
|
732
805
|
updatedAt?: unknown;
|
|
733
806
|
publishedAt?: unknown;
|
|
@@ -740,10 +813,16 @@ declare const schemas: {
|
|
|
740
813
|
title: Record<string, string>;
|
|
741
814
|
excerpt: Record<string, string> | null;
|
|
742
815
|
content: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
743
|
-
featuredImageId: string | null;
|
|
744
816
|
isActive: boolean;
|
|
745
817
|
isFeatured: boolean;
|
|
746
818
|
priority: number;
|
|
819
|
+
featureImage: {
|
|
820
|
+
id: string;
|
|
821
|
+
publicUrl: string | null;
|
|
822
|
+
locale: string;
|
|
823
|
+
caption: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
824
|
+
alt: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
825
|
+
} | null;
|
|
747
826
|
createdAt?: unknown;
|
|
748
827
|
updatedAt?: unknown;
|
|
749
828
|
publishedAt?: unknown;
|
|
@@ -757,13 +836,31 @@ declare const schemas: {
|
|
|
757
836
|
excerpt: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
758
837
|
content: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
759
838
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
760
|
-
featuredImageId: z.ZodNullable<z.ZodString>;
|
|
761
839
|
isActive: z.ZodBoolean;
|
|
762
840
|
isFeatured: z.ZodBoolean;
|
|
763
841
|
priority: z.ZodNumber;
|
|
764
842
|
publishedAt: z.ZodNullable<z.ZodUnknown>;
|
|
765
843
|
createdAt: z.ZodNullable<z.ZodUnknown>;
|
|
766
844
|
updatedAt: z.ZodNullable<z.ZodUnknown>;
|
|
845
|
+
featureImage: z.ZodNullable<z.ZodObject<{
|
|
846
|
+
id: z.ZodString;
|
|
847
|
+
publicUrl: z.ZodNullable<z.ZodString>;
|
|
848
|
+
locale: z.ZodString;
|
|
849
|
+
caption: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
850
|
+
alt: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
851
|
+
}, "strict", z.ZodTypeAny, {
|
|
852
|
+
id: string;
|
|
853
|
+
publicUrl: string | null;
|
|
854
|
+
locale: string;
|
|
855
|
+
caption: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
856
|
+
alt: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
857
|
+
}, {
|
|
858
|
+
id: string;
|
|
859
|
+
publicUrl: string | null;
|
|
860
|
+
locale: string;
|
|
861
|
+
caption: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
862
|
+
alt: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
863
|
+
}>>;
|
|
767
864
|
}, "strict", z.ZodTypeAny, {
|
|
768
865
|
id: string;
|
|
769
866
|
venueId: string;
|
|
@@ -773,10 +870,16 @@ declare const schemas: {
|
|
|
773
870
|
title: Record<string, string>;
|
|
774
871
|
excerpt: Record<string, string> | null;
|
|
775
872
|
content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
776
|
-
featuredImageId: string | null;
|
|
777
873
|
isActive: boolean;
|
|
778
874
|
isFeatured: boolean;
|
|
779
875
|
priority: number;
|
|
876
|
+
featureImage: {
|
|
877
|
+
id: string;
|
|
878
|
+
publicUrl: string | null;
|
|
879
|
+
locale: string;
|
|
880
|
+
caption: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
881
|
+
alt: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
882
|
+
} | null;
|
|
780
883
|
createdAt?: unknown;
|
|
781
884
|
updatedAt?: unknown;
|
|
782
885
|
publishedAt?: unknown;
|
|
@@ -789,10 +892,16 @@ declare const schemas: {
|
|
|
789
892
|
title: Record<string, string>;
|
|
790
893
|
excerpt: Record<string, string> | null;
|
|
791
894
|
content: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
792
|
-
featuredImageId: string | null;
|
|
793
895
|
isActive: boolean;
|
|
794
896
|
isFeatured: boolean;
|
|
795
897
|
priority: number;
|
|
898
|
+
featureImage: {
|
|
899
|
+
id: string;
|
|
900
|
+
publicUrl: string | null;
|
|
901
|
+
locale: string;
|
|
902
|
+
caption: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
903
|
+
alt: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
904
|
+
} | null;
|
|
796
905
|
createdAt?: unknown;
|
|
797
906
|
updatedAt?: unknown;
|
|
798
907
|
publishedAt?: unknown;
|
|
@@ -803,7 +912,6 @@ declare const schemas: {
|
|
|
803
912
|
excerpt: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
804
913
|
content: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
805
914
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
806
|
-
featuredImageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
807
915
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
808
916
|
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
809
917
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
@@ -813,7 +921,6 @@ declare const schemas: {
|
|
|
813
921
|
title?: Record<string, string> | undefined;
|
|
814
922
|
excerpt?: Record<string, string> | undefined;
|
|
815
923
|
content?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
816
|
-
featuredImageId?: string | null | undefined;
|
|
817
924
|
isActive?: boolean | undefined;
|
|
818
925
|
isFeatured?: boolean | undefined;
|
|
819
926
|
priority?: number | undefined;
|
|
@@ -823,7 +930,6 @@ declare const schemas: {
|
|
|
823
930
|
title?: Record<string, string> | undefined;
|
|
824
931
|
excerpt?: Record<string, string> | undefined;
|
|
825
932
|
content?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
826
|
-
featuredImageId?: string | null | undefined;
|
|
827
933
|
isActive?: boolean | undefined;
|
|
828
934
|
isFeatured?: boolean | undefined;
|
|
829
935
|
priority?: number | undefined;
|
|
@@ -837,13 +943,31 @@ declare const schemas: {
|
|
|
837
943
|
excerpt: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
838
944
|
content: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
839
945
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
840
|
-
featuredImageId: z.ZodNullable<z.ZodString>;
|
|
841
946
|
isActive: z.ZodBoolean;
|
|
842
947
|
isFeatured: z.ZodBoolean;
|
|
843
948
|
priority: z.ZodNumber;
|
|
844
949
|
publishedAt: z.ZodNullable<z.ZodUnknown>;
|
|
845
950
|
createdAt: z.ZodNullable<z.ZodUnknown>;
|
|
846
951
|
updatedAt: z.ZodNullable<z.ZodUnknown>;
|
|
952
|
+
featureImage: z.ZodNullable<z.ZodObject<{
|
|
953
|
+
id: z.ZodString;
|
|
954
|
+
publicUrl: z.ZodNullable<z.ZodString>;
|
|
955
|
+
locale: z.ZodString;
|
|
956
|
+
caption: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
957
|
+
alt: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
958
|
+
}, "strict", z.ZodTypeAny, {
|
|
959
|
+
id: string;
|
|
960
|
+
publicUrl: string | null;
|
|
961
|
+
locale: string;
|
|
962
|
+
caption: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
963
|
+
alt: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
964
|
+
}, {
|
|
965
|
+
id: string;
|
|
966
|
+
publicUrl: string | null;
|
|
967
|
+
locale: string;
|
|
968
|
+
caption: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
969
|
+
alt: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
970
|
+
}>>;
|
|
847
971
|
}, "strict", z.ZodTypeAny, {
|
|
848
972
|
id: string;
|
|
849
973
|
venueId: string;
|
|
@@ -853,10 +977,16 @@ declare const schemas: {
|
|
|
853
977
|
title: Record<string, string>;
|
|
854
978
|
excerpt: Record<string, string> | null;
|
|
855
979
|
content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
856
|
-
featuredImageId: string | null;
|
|
857
980
|
isActive: boolean;
|
|
858
981
|
isFeatured: boolean;
|
|
859
982
|
priority: number;
|
|
983
|
+
featureImage: {
|
|
984
|
+
id: string;
|
|
985
|
+
publicUrl: string | null;
|
|
986
|
+
locale: string;
|
|
987
|
+
caption: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
988
|
+
alt: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
989
|
+
} | null;
|
|
860
990
|
createdAt?: unknown;
|
|
861
991
|
updatedAt?: unknown;
|
|
862
992
|
publishedAt?: unknown;
|
|
@@ -869,14 +999,37 @@ declare const schemas: {
|
|
|
869
999
|
title: Record<string, string>;
|
|
870
1000
|
excerpt: Record<string, string> | null;
|
|
871
1001
|
content: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
872
|
-
featuredImageId: string | null;
|
|
873
1002
|
isActive: boolean;
|
|
874
1003
|
isFeatured: boolean;
|
|
875
1004
|
priority: number;
|
|
1005
|
+
featureImage: {
|
|
1006
|
+
id: string;
|
|
1007
|
+
publicUrl: string | null;
|
|
1008
|
+
locale: string;
|
|
1009
|
+
caption: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
1010
|
+
alt: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
1011
|
+
} | null;
|
|
876
1012
|
createdAt?: unknown;
|
|
877
1013
|
updatedAt?: unknown;
|
|
878
1014
|
publishedAt?: unknown;
|
|
879
1015
|
}>;
|
|
1016
|
+
UploadFeatureImageRequest: z.ZodObject<{
|
|
1017
|
+
file: z.ZodUnknown;
|
|
1018
|
+
}, "strict", z.ZodTypeAny, {
|
|
1019
|
+
file?: unknown;
|
|
1020
|
+
}, {
|
|
1021
|
+
file?: unknown;
|
|
1022
|
+
}>;
|
|
1023
|
+
PatchFeatureImageRequest: z.ZodObject<{
|
|
1024
|
+
caption: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1025
|
+
alt: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1026
|
+
}, "strict", z.ZodTypeAny, {
|
|
1027
|
+
caption?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1028
|
+
alt?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1029
|
+
}, {
|
|
1030
|
+
caption?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1031
|
+
alt?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1032
|
+
}>;
|
|
880
1033
|
AddToBasketRequest: z.ZodObject<{
|
|
881
1034
|
venueId: z.ZodString;
|
|
882
1035
|
sessionId: z.ZodString;
|
package/dist/schemas.mjs
CHANGED
|
@@ -7,11 +7,14 @@ const GetAreaAvailabilityResponse = z.object({ from: z.string().regex(/^\d{4}-\d
|
|
|
7
7
|
const SubmitAreaBookingRequest = z.object({ requestedDate: z.string().regex(/^\d{4}-\d{2}-\d{2}$/), requestedStartTime: z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/).optional(), requestedEndTime: z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/).optional(), partySize: z.number().int().lte(9007199254740991), customerFirstName: z.string().min(1), customerLastName: z.string().min(1), customerEmail: z.string().regex(/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/).email(), customerPhone: z.string().optional(), message: z.string().optional(), source: z.enum(["website", "phone", "walk_in"]).optional() }).strict();
|
|
8
8
|
const SubmitAreaBookingResponse = z.object({ id: z.string(), venueId: z.string(), areaId: z.string(), requestedDate: z.string().regex(/^\d{4}-\d{2}-\d{2}$/), requestedStartTime: z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/).nullable(), requestedEndTime: z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/).nullable(), partySize: z.number().int().gte(-9007199254740991).lte(9007199254740991), customerFirstName: z.string(), customerLastName: z.string(), customerEmail: z.string(), customerPhone: z.string().nullable(), message: z.string().nullable(), source: z.enum(["website", "phone", "walk_in"]), status: z.enum(["pending", "approved", "rejected", "cancelled"]), areaBookingId: z.string().nullable(), createdAt: z.string().nullable(), updatedAt: z.string().nullable() }).strict();
|
|
9
9
|
const includeDrafts = z.union([z.literal("true"), z.literal("false")]).optional();
|
|
10
|
-
const
|
|
10
|
+
const FeatureImage = z.object({ id: z.string(), publicUrl: z.string().nullable(), locale: z.string(), caption: z.object({}).partial().strict().passthrough().nullable(), alt: z.object({}).partial().strict().passthrough().nullable() }).strict();
|
|
11
|
+
const Article = z.object({ id: z.string(), venueId: z.string(), accessor: z.string(), slug: z.record(z.string()), title: z.record(z.string()), excerpt: z.record(z.string()).nullable(), content: z.object({}).partial().strict().passthrough().nullable(), tags: z.array(z.string()), isActive: z.boolean(), isFeatured: z.boolean(), priority: z.number().int().gte(-2147483648).lte(2147483647), publishedAt: z.unknown().nullable(), createdAt: z.unknown().nullable(), updatedAt: z.unknown().nullable(), featureImage: FeatureImage.nullable() }).strict();
|
|
11
12
|
const ListArticlesResponse = z.array(Article);
|
|
12
|
-
const GetArticleResponse = z.object({ id: z.string(), venueId: z.string(), accessor: z.string(), slug: z.record(z.string()), title: z.record(z.string()), excerpt: z.record(z.string()).nullable(), content: z.object({}).partial().strict().passthrough().nullable(), tags: z.array(z.string()),
|
|
13
|
-
const PatchArticleRequest = z.object({ slug: z.record(z.string()), title: z.record(z.string()), excerpt: z.record(z.string()), content: z.object({}).partial().strict().passthrough(), tags: z.array(z.string()),
|
|
14
|
-
const PatchArticleResponse = z.object({ id: z.string(), venueId: z.string(), accessor: z.string(), slug: z.record(z.string()), title: z.record(z.string()), excerpt: z.record(z.string()).nullable(), content: z.object({}).partial().strict().passthrough().nullable(), tags: z.array(z.string()),
|
|
13
|
+
const GetArticleResponse = z.object({ id: z.string(), venueId: z.string(), accessor: z.string(), slug: z.record(z.string()), title: z.record(z.string()), excerpt: z.record(z.string()).nullable(), content: z.object({}).partial().strict().passthrough().nullable(), tags: z.array(z.string()), isActive: z.boolean(), isFeatured: z.boolean(), priority: z.number().int().gte(-2147483648).lte(2147483647), publishedAt: z.unknown().nullable(), createdAt: z.unknown().nullable(), updatedAt: z.unknown().nullable(), featureImage: FeatureImage.nullable() }).strict();
|
|
14
|
+
const PatchArticleRequest = z.object({ slug: z.record(z.string()), title: z.record(z.string()), excerpt: z.record(z.string()), content: z.object({}).partial().strict().passthrough(), tags: z.array(z.string()), isActive: z.boolean(), isFeatured: z.boolean(), priority: z.number().int().gte(-9007199254740991).lte(9007199254740991) }).partial().strict();
|
|
15
|
+
const PatchArticleResponse = z.object({ id: z.string(), venueId: z.string(), accessor: z.string(), slug: z.record(z.string()), title: z.record(z.string()), excerpt: z.record(z.string()).nullable(), content: z.object({}).partial().strict().passthrough().nullable(), tags: z.array(z.string()), isActive: z.boolean(), isFeatured: z.boolean(), priority: z.number().int().gte(-2147483648).lte(2147483647), publishedAt: z.unknown().nullable(), createdAt: z.unknown().nullable(), updatedAt: z.unknown().nullable(), featureImage: FeatureImage.nullable() }).strict();
|
|
16
|
+
const UploadFeatureImageRequest = z.object({ file: z.unknown() }).strict();
|
|
17
|
+
const PatchFeatureImageRequest = z.object({ caption: z.object({}).partial().strict().passthrough(), alt: z.object({}).partial().strict().passthrough() }).partial().strict();
|
|
15
18
|
const AddToBasketRequest = z.object({ venueId: z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), sessionId: z.string().min(1), menuItems: z.array(z.object({ menuItemId: z.string().min(1), role: z.string().optional(), quantity: z.number().gt(0).optional(), unit: z.enum(["grams", "kilograms", "liters", "milliliters", "pieces"]).optional() }).strict()).min(1), metadata: z.object({}).partial().strict().passthrough().optional() }).strict();
|
|
16
19
|
const AddToBasketResponse = z.object({ basketItemId: z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), itemCount: z.number().int().gte(0).lte(9007199254740991), deposit: z.object({ depositwareTemplateId: z.string(), name: z.record(z.string()), amount: z.number().int().gte(0).lte(9007199254740991), currency: z.enum(["EUR", "CHF"]) }).strict().nullable(), totals: z.object({ currency: z.enum(["EUR", "CHF"]), itemsTotal: z.number().int().gte(0).lte(9007199254740991), taxAmount: z.number().int().gte(0).lte(9007199254740991), depositCharge: z.number().int().gte(0).lte(9007199254740991), grossTotal: z.number().int().gte(0).lte(9007199254740991), depositCredit: z.number().int().gte(0).lte(9007199254740991), effectiveTotal: z.number().int().gte(0).lte(9007199254740991), cashRefund: z.number().int().gte(0).lte(9007199254740991), returnable: z.array(z.object({ depositwareTemplateId: z.string(), count: z.number().int().gte(0).lte(9007199254740991) }).strict()) }).strict() }).strict();
|
|
17
20
|
const RemoveFromBasketResponse = z.object({ success: z.boolean(), basketItemId: z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), itemCount: z.number().int().gte(0).lte(9007199254740991), totals: z.object({ currency: z.enum(["EUR", "CHF"]), itemsTotal: z.number().int().gte(0).lte(9007199254740991), taxAmount: z.number().int().gte(0).lte(9007199254740991), depositCharge: z.number().int().gte(0).lte(9007199254740991), grossTotal: z.number().int().gte(0).lte(9007199254740991), depositCredit: z.number().int().gte(0).lte(9007199254740991), effectiveTotal: z.number().int().gte(0).lte(9007199254740991), cashRefund: z.number().int().gte(0).lte(9007199254740991), returnable: z.array(z.object({ depositwareTemplateId: z.string(), count: z.number().int().gte(0).lte(9007199254740991) }).strict()) }).strict().nullable() }).strict();
|
|
@@ -72,11 +75,14 @@ const schemas = {
|
|
|
72
75
|
SubmitAreaBookingRequest,
|
|
73
76
|
SubmitAreaBookingResponse,
|
|
74
77
|
includeDrafts,
|
|
78
|
+
FeatureImage,
|
|
75
79
|
Article,
|
|
76
80
|
ListArticlesResponse,
|
|
77
81
|
GetArticleResponse,
|
|
78
82
|
PatchArticleRequest,
|
|
79
83
|
PatchArticleResponse,
|
|
84
|
+
UploadFeatureImageRequest,
|
|
85
|
+
PatchFeatureImageRequest,
|
|
80
86
|
AddToBasketRequest,
|
|
81
87
|
AddToBasketResponse,
|
|
82
88
|
RemoveFromBasketResponse,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "order3000",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "order3000 node.js sdk",
|
|
5
5
|
"main": "./dist/client.cjs",
|
|
6
6
|
"module": "./dist/client.mjs",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"tsx": "^4.19.2",
|
|
48
48
|
"typescript": "^5.9.3",
|
|
49
49
|
"@kolaveri/eslint-config": "1.6.0",
|
|
50
|
-
"@kolaveri/
|
|
51
|
-
"@kolaveri/
|
|
50
|
+
"@kolaveri/tsconfig": "1.0.1",
|
|
51
|
+
"@kolaveri/prettier-config": "1.0.6"
|
|
52
52
|
},
|
|
53
53
|
"files": [
|
|
54
54
|
"dist"
|