order3000 0.20.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.
@@ -650,58 +650,103 @@ 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;
656
675
  accessor: z.ZodString;
657
676
  slug: z.ZodRecord<z.ZodString, z.ZodString>;
658
677
  title: z.ZodRecord<z.ZodString, z.ZodString>;
659
- excerpt: z.ZodRecord<z.ZodString, z.ZodString>;
660
- content: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
678
+ excerpt: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
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
- publishedAt: z.ZodNullable<z.ZodString>;
667
- createdAt: z.ZodNullable<z.ZodString>;
668
- updatedAt: z.ZodNullable<z.ZodString>;
684
+ publishedAt: z.ZodNullable<z.ZodUnknown>;
685
+ createdAt: z.ZodNullable<z.ZodUnknown>;
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;
672
709
  accessor: string;
673
710
  tags: string[];
674
- createdAt: string | null;
675
- updatedAt: string | null;
676
711
  slug: Record<string, string>;
677
712
  title: Record<string, string>;
678
- excerpt: Record<string, string>;
679
- content: {} & {
680
- [k: string]: unknown;
681
- };
682
- featuredImageId: string | null;
713
+ excerpt: Record<string, string> | null;
714
+ content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
683
715
  isActive: boolean;
684
716
  isFeatured: boolean;
685
717
  priority: number;
686
- publishedAt: string | null;
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;
725
+ createdAt?: unknown;
726
+ updatedAt?: unknown;
727
+ publishedAt?: unknown;
687
728
  }, {
688
729
  id: string;
689
730
  venueId: string;
690
731
  accessor: string;
691
732
  tags: string[];
692
- createdAt: string | null;
693
- updatedAt: string | null;
694
733
  slug: Record<string, string>;
695
734
  title: Record<string, string>;
696
- excerpt: Record<string, string>;
697
- content: {} & {
698
- [k: string]: unknown;
699
- };
700
- featuredImageId: string | null;
735
+ excerpt: Record<string, string> | null;
736
+ content: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
701
737
  isActive: boolean;
702
738
  isFeatured: boolean;
703
739
  priority: number;
704
- publishedAt: string | null;
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;
747
+ createdAt?: unknown;
748
+ updatedAt?: unknown;
749
+ publishedAt?: unknown;
705
750
  }>;
706
751
  ListArticlesResponse: z.ZodArray<z.ZodObject<{
707
752
  id: z.ZodString;
@@ -709,53 +754,282 @@ declare const schemas: {
709
754
  accessor: z.ZodString;
710
755
  slug: z.ZodRecord<z.ZodString, z.ZodString>;
711
756
  title: z.ZodRecord<z.ZodString, z.ZodString>;
712
- excerpt: z.ZodRecord<z.ZodString, z.ZodString>;
713
- content: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
757
+ excerpt: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
758
+ content: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
714
759
  tags: z.ZodArray<z.ZodString, "many">;
715
- featuredImageId: z.ZodNullable<z.ZodString>;
716
760
  isActive: z.ZodBoolean;
717
761
  isFeatured: z.ZodBoolean;
718
762
  priority: z.ZodNumber;
719
- publishedAt: z.ZodNullable<z.ZodString>;
720
- createdAt: z.ZodNullable<z.ZodString>;
721
- updatedAt: z.ZodNullable<z.ZodString>;
763
+ publishedAt: z.ZodNullable<z.ZodUnknown>;
764
+ createdAt: z.ZodNullable<z.ZodUnknown>;
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
+ }>>;
722
785
  }, "strict", z.ZodTypeAny, {
723
786
  id: string;
724
787
  venueId: string;
725
788
  accessor: string;
726
789
  tags: string[];
727
- createdAt: string | null;
728
- updatedAt: string | null;
729
790
  slug: Record<string, string>;
730
791
  title: Record<string, string>;
731
- excerpt: Record<string, string>;
732
- content: {} & {
733
- [k: string]: unknown;
734
- };
735
- featuredImageId: string | null;
792
+ excerpt: Record<string, string> | null;
793
+ content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
736
794
  isActive: boolean;
737
795
  isFeatured: boolean;
738
796
  priority: number;
739
- publishedAt: string | null;
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;
804
+ createdAt?: unknown;
805
+ updatedAt?: unknown;
806
+ publishedAt?: unknown;
740
807
  }, {
741
808
  id: string;
742
809
  venueId: string;
743
810
  accessor: string;
744
811
  tags: string[];
745
- createdAt: string | null;
746
- updatedAt: string | null;
747
812
  slug: Record<string, string>;
748
813
  title: Record<string, string>;
749
- excerpt: Record<string, string>;
750
- content: {} & {
751
- [k: string]: unknown;
752
- };
753
- featuredImageId: string | null;
814
+ excerpt: Record<string, string> | null;
815
+ content: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
754
816
  isActive: boolean;
755
817
  isFeatured: boolean;
756
818
  priority: number;
757
- publishedAt: string | null;
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;
826
+ createdAt?: unknown;
827
+ updatedAt?: unknown;
828
+ publishedAt?: unknown;
758
829
  }>, "many">;
830
+ GetArticleResponse: z.ZodObject<{
831
+ id: z.ZodString;
832
+ venueId: z.ZodString;
833
+ accessor: z.ZodString;
834
+ slug: z.ZodRecord<z.ZodString, z.ZodString>;
835
+ title: z.ZodRecord<z.ZodString, z.ZodString>;
836
+ excerpt: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
837
+ content: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
838
+ tags: z.ZodArray<z.ZodString, "many">;
839
+ isActive: z.ZodBoolean;
840
+ isFeatured: z.ZodBoolean;
841
+ priority: z.ZodNumber;
842
+ publishedAt: z.ZodNullable<z.ZodUnknown>;
843
+ createdAt: z.ZodNullable<z.ZodUnknown>;
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
+ }>>;
864
+ }, "strict", z.ZodTypeAny, {
865
+ id: string;
866
+ venueId: string;
867
+ accessor: string;
868
+ tags: string[];
869
+ slug: Record<string, string>;
870
+ title: Record<string, string>;
871
+ excerpt: Record<string, string> | null;
872
+ content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
873
+ isActive: boolean;
874
+ isFeatured: boolean;
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;
883
+ createdAt?: unknown;
884
+ updatedAt?: unknown;
885
+ publishedAt?: unknown;
886
+ }, {
887
+ id: string;
888
+ venueId: string;
889
+ accessor: string;
890
+ tags: string[];
891
+ slug: Record<string, string>;
892
+ title: Record<string, string>;
893
+ excerpt: Record<string, string> | null;
894
+ content: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
895
+ isActive: boolean;
896
+ isFeatured: boolean;
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;
905
+ createdAt?: unknown;
906
+ updatedAt?: unknown;
907
+ publishedAt?: unknown;
908
+ }>;
909
+ PatchArticleRequest: z.ZodObject<{
910
+ slug: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
911
+ title: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
912
+ excerpt: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
913
+ content: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
914
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
915
+ isActive: z.ZodOptional<z.ZodBoolean>;
916
+ isFeatured: z.ZodOptional<z.ZodBoolean>;
917
+ priority: z.ZodOptional<z.ZodNumber>;
918
+ }, "strict", z.ZodTypeAny, {
919
+ tags?: string[] | undefined;
920
+ slug?: Record<string, string> | undefined;
921
+ title?: Record<string, string> | undefined;
922
+ excerpt?: Record<string, string> | undefined;
923
+ content?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
924
+ isActive?: boolean | undefined;
925
+ isFeatured?: boolean | undefined;
926
+ priority?: number | undefined;
927
+ }, {
928
+ tags?: string[] | undefined;
929
+ slug?: Record<string, string> | undefined;
930
+ title?: Record<string, string> | undefined;
931
+ excerpt?: Record<string, string> | undefined;
932
+ content?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
933
+ isActive?: boolean | undefined;
934
+ isFeatured?: boolean | undefined;
935
+ priority?: number | undefined;
936
+ }>;
937
+ PatchArticleResponse: z.ZodObject<{
938
+ id: z.ZodString;
939
+ venueId: z.ZodString;
940
+ accessor: z.ZodString;
941
+ slug: z.ZodRecord<z.ZodString, z.ZodString>;
942
+ title: z.ZodRecord<z.ZodString, z.ZodString>;
943
+ excerpt: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
944
+ content: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
945
+ tags: z.ZodArray<z.ZodString, "many">;
946
+ isActive: z.ZodBoolean;
947
+ isFeatured: z.ZodBoolean;
948
+ priority: z.ZodNumber;
949
+ publishedAt: z.ZodNullable<z.ZodUnknown>;
950
+ createdAt: z.ZodNullable<z.ZodUnknown>;
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
+ }>>;
971
+ }, "strict", z.ZodTypeAny, {
972
+ id: string;
973
+ venueId: string;
974
+ accessor: string;
975
+ tags: string[];
976
+ slug: Record<string, string>;
977
+ title: Record<string, string>;
978
+ excerpt: Record<string, string> | null;
979
+ content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
980
+ isActive: boolean;
981
+ isFeatured: boolean;
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;
990
+ createdAt?: unknown;
991
+ updatedAt?: unknown;
992
+ publishedAt?: unknown;
993
+ }, {
994
+ id: string;
995
+ venueId: string;
996
+ accessor: string;
997
+ tags: string[];
998
+ slug: Record<string, string>;
999
+ title: Record<string, string>;
1000
+ excerpt: Record<string, string> | null;
1001
+ content: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
1002
+ isActive: boolean;
1003
+ isFeatured: boolean;
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;
1012
+ createdAt?: unknown;
1013
+ updatedAt?: unknown;
1014
+ publishedAt?: unknown;
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
+ }>;
759
1033
  AddToBasketRequest: z.ZodObject<{
760
1034
  venueId: z.ZodString;
761
1035
  sessionId: z.ZodString;
@@ -2855,6 +3129,43 @@ declare const schemas: {
2855
3129
  teamOrderId: string;
2856
3130
  deliveryAddressId: string;
2857
3131
  }>;
3132
+ GetVenueResponse: z.ZodObject<{
3133
+ id: z.ZodString;
3134
+ accessor: z.ZodString;
3135
+ officialName: z.ZodString;
3136
+ legalName: z.ZodString;
3137
+ shortName: z.ZodString;
3138
+ brandName: z.ZodString;
3139
+ primaryLocale: z.ZodString;
3140
+ supportedLocales: z.ZodArray<z.ZodString, "many">;
3141
+ timezone: z.ZodString;
3142
+ createdAt: z.ZodNullable<z.ZodUnknown>;
3143
+ updatedAt: z.ZodNullable<z.ZodUnknown>;
3144
+ }, "strict", z.ZodTypeAny, {
3145
+ id: string;
3146
+ accessor: string;
3147
+ timezone: string;
3148
+ shortName: string;
3149
+ officialName: string;
3150
+ legalName: string;
3151
+ brandName: string;
3152
+ primaryLocale: string;
3153
+ supportedLocales: string[];
3154
+ createdAt?: unknown;
3155
+ updatedAt?: unknown;
3156
+ }, {
3157
+ id: string;
3158
+ accessor: string;
3159
+ timezone: string;
3160
+ shortName: string;
3161
+ officialName: string;
3162
+ legalName: string;
3163
+ brandName: string;
3164
+ primaryLocale: string;
3165
+ supportedLocales: string[];
3166
+ createdAt?: unknown;
3167
+ updatedAt?: unknown;
3168
+ }>;
2858
3169
  };
2859
3170
 
2860
3171
  export { schemas };
package/dist/schemas.mjs CHANGED
@@ -7,8 +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 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()), content: z.object({}).partial().strict().passthrough(), tags: z.array(z.string()), featuredImageId: z.string().nullable(), isActive: z.boolean(), isFeatured: z.boolean(), priority: z.number().int().gte(-9007199254740991).lte(9007199254740991), publishedAt: z.string().nullable(), createdAt: z.string().nullable(), updatedAt: z.string().nullable() }).strict();
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);
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();
12
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();
13
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();
14
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();
@@ -60,6 +66,7 @@ const SwitchFulfillmentTeamOrderRequest = z.object({ publicId: z.string().min(1)
60
66
  const SwitchFulfillmentTeamOrderResponse = z.object({ teamOrderId: 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(), status: z.enum(["draft", "collecting", "locked", "placed", "ready", "completed", "cancelled"]), fulfillmentType: z.enum(["pickup", "delivery"]), deliveryAddressId: z.string().nullable() }).strict();
61
67
  const UpdateDeliveryAddressTeamOrderRequest = z.object({ publicId: z.string().min(1), sessionId: z.string().min(1), deliveryAddress: z.object({ street: z.string(), city: z.string(), state: z.string(), postalCode: z.string(), country: z.string() }).strict() }).strict();
62
68
  const UpdateDeliveryAddressTeamOrderResponse = z.object({ teamOrderId: 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(), deliveryAddressId: z.string() }).strict();
69
+ const GetVenueResponse = z.object({ id: z.string(), accessor: z.string(), officialName: z.string(), legalName: z.string(), shortName: z.string(), brandName: z.string(), primaryLocale: z.string(), supportedLocales: z.array(z.string()), timezone: z.string(), createdAt: z.unknown().nullable(), updatedAt: z.unknown().nullable() }).strict();
63
70
  const schemas = {
64
71
  Area,
65
72
  ListAreasResponse,
@@ -68,8 +75,14 @@ const schemas = {
68
75
  SubmitAreaBookingRequest,
69
76
  SubmitAreaBookingResponse,
70
77
  includeDrafts,
78
+ FeatureImage,
71
79
  Article,
72
80
  ListArticlesResponse,
81
+ GetArticleResponse,
82
+ PatchArticleRequest,
83
+ PatchArticleResponse,
84
+ UploadFeatureImageRequest,
85
+ PatchFeatureImageRequest,
73
86
  AddToBasketRequest,
74
87
  AddToBasketResponse,
75
88
  RemoveFromBasketResponse,
@@ -120,7 +133,8 @@ const schemas = {
120
133
  SwitchFulfillmentTeamOrderRequest,
121
134
  SwitchFulfillmentTeamOrderResponse,
122
135
  UpdateDeliveryAddressTeamOrderRequest,
123
- UpdateDeliveryAddressTeamOrderResponse
136
+ UpdateDeliveryAddressTeamOrderResponse,
137
+ GetVenueResponse
124
138
  };
125
139
 
126
140
  export { schemas };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "order3000",
3
- "version": "0.20.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/prettier-config": "1.0.6",
51
- "@kolaveri/tsconfig": "1.0.1"
50
+ "@kolaveri/tsconfig": "1.0.1",
51
+ "@kolaveri/prettier-config": "1.0.6"
52
52
  },
53
53
  "files": [
54
54
  "dist"