order3000 1.0.1 → 1.1.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.
@@ -693,6 +693,34 @@ declare const schemas: {
693
693
  saturday: "saturday";
694
694
  sunday: "sunday";
695
695
  }>;
696
+ readonly DeleteAssetResponse: zod.ZodObject<{
697
+ success: zod.ZodBoolean;
698
+ }, zod_v4_core.$strip>;
699
+ readonly DeleteEventResponse: zod.ZodObject<{
700
+ id: zod.ZodString;
701
+ venueId: zod.ZodString;
702
+ accessor: zod.ZodNullable<zod.ZodString>;
703
+ name: zod.ZodUnion<readonly [zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodString, zod.ZodNumber, zod.ZodEnum<{}>]>, zod.ZodArray<zod.ZodAny>, zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodAny>>]>;
704
+ description: zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodString, zod.ZodNumber, zod.ZodEnum<{}>]>, zod.ZodArray<zod.ZodAny>, zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodAny>>]>>;
705
+ scheduleId: zod.ZodNullable<zod.ZodString>;
706
+ ritualId: zod.ZodNullable<zod.ZodString>;
707
+ maxBookings: zod.ZodNullable<zod.ZodInt>;
708
+ maxGuests: zod.ZodNullable<zod.ZodInt>;
709
+ minPartySize: zod.ZodNullable<zod.ZodInt>;
710
+ maxPartySize: zod.ZodNullable<zod.ZodInt>;
711
+ isPublic: zod.ZodBoolean;
712
+ isRecurring: zod.ZodBoolean;
713
+ reservationsEnabled: zod.ZodBoolean;
714
+ bookingOpensAtDays: zod.ZodNullable<zod.ZodInt>;
715
+ bookingClosesAtOffset: zod.ZodNullable<zod.ZodInt>;
716
+ isActive: zod.ZodBoolean;
717
+ isFeatured: zod.ZodBoolean;
718
+ priority: zod.ZodInt;
719
+ createdBy: zod.ZodNullable<zod.ZodString>;
720
+ updatedBy: zod.ZodNullable<zod.ZodString>;
721
+ createdAt: zod.ZodNullable<zod.ZodAny>;
722
+ updatedAt: zod.ZodNullable<zod.ZodAny>;
723
+ }, zod_v4_core.$strip>;
696
724
  readonly DeliveryAddress: zod.ZodObject<{
697
725
  street: zod.ZodString;
698
726
  city: zod.ZodString;
@@ -763,6 +791,116 @@ declare const schemas: {
763
791
  locale: zod.ZodString;
764
792
  }, zod_v4_core.$strip>>>;
765
793
  }, zod_v4_core.$strip>;
794
+ readonly EditEventRequest: zod.ZodObject<{
795
+ accessor: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
796
+ name: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodString, zod.ZodNumber, zod.ZodEnum<{}>]>, zod.ZodArray<zod.ZodAny>, zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodAny>>]>>;
797
+ description: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodString, zod.ZodNumber, zod.ZodEnum<{}>]>, zod.ZodArray<zod.ZodAny>, zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodAny>>]>>>;
798
+ scheduleId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
799
+ maxBookings: zod.ZodOptional<zod.ZodNullable<zod.ZodInt>>;
800
+ maxGuests: zod.ZodOptional<zod.ZodNullable<zod.ZodInt>>;
801
+ minPartySize: zod.ZodOptional<zod.ZodNullable<zod.ZodInt>>;
802
+ maxPartySize: zod.ZodOptional<zod.ZodNullable<zod.ZodInt>>;
803
+ isPublic: zod.ZodOptional<zod.ZodBoolean>;
804
+ isRecurring: zod.ZodOptional<zod.ZodBoolean>;
805
+ reservationsEnabled: zod.ZodOptional<zod.ZodBoolean>;
806
+ bookingOpensAtDays: zod.ZodOptional<zod.ZodNullable<zod.ZodInt>>;
807
+ bookingClosesAtOffset: zod.ZodOptional<zod.ZodNullable<zod.ZodInt>>;
808
+ isActive: zod.ZodOptional<zod.ZodBoolean>;
809
+ isFeatured: zod.ZodOptional<zod.ZodBoolean>;
810
+ priority: zod.ZodOptional<zod.ZodInt>;
811
+ schedule: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
812
+ rrule: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
813
+ timezone: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
814
+ validFrom: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
815
+ validTo: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
816
+ timeRanges: zod.ZodArray<zod.ZodObject<{
817
+ startTime: zod.ZodString;
818
+ endTime: zod.ZodString;
819
+ lastSeatingTime: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
820
+ }, zod_v4_core.$strip>>;
821
+ slotMode: zod.ZodOptional<zod.ZodEnum<{
822
+ duration: "duration";
823
+ interval: "interval";
824
+ }>>;
825
+ intervalDuration: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
826
+ duration: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
827
+ }, zod_v4_core.$strip>>>;
828
+ ritualAccessor: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
829
+ }, zod_v4_core.$strip>;
830
+ readonly EditEventResponse: zod.ZodObject<{
831
+ id: zod.ZodString;
832
+ venueId: zod.ZodString;
833
+ accessor: zod.ZodNullable<zod.ZodString>;
834
+ name: zod.ZodUnion<readonly [zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodString, zod.ZodNumber, zod.ZodEnum<{}>]>, zod.ZodArray<zod.ZodAny>, zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodAny>>]>;
835
+ description: zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodString, zod.ZodNumber, zod.ZodEnum<{}>]>, zod.ZodArray<zod.ZodAny>, zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodAny>>]>>;
836
+ scheduleId: zod.ZodNullable<zod.ZodString>;
837
+ ritualId: zod.ZodNullable<zod.ZodString>;
838
+ maxBookings: zod.ZodNullable<zod.ZodInt>;
839
+ maxGuests: zod.ZodNullable<zod.ZodInt>;
840
+ minPartySize: zod.ZodNullable<zod.ZodInt>;
841
+ maxPartySize: zod.ZodNullable<zod.ZodInt>;
842
+ isPublic: zod.ZodBoolean;
843
+ isRecurring: zod.ZodBoolean;
844
+ reservationsEnabled: zod.ZodBoolean;
845
+ bookingOpensAtDays: zod.ZodNullable<zod.ZodInt>;
846
+ bookingClosesAtOffset: zod.ZodNullable<zod.ZodInt>;
847
+ isActive: zod.ZodBoolean;
848
+ isFeatured: zod.ZodBoolean;
849
+ priority: zod.ZodInt;
850
+ createdBy: zod.ZodNullable<zod.ZodString>;
851
+ updatedBy: zod.ZodNullable<zod.ZodString>;
852
+ createdAt: zod.ZodNullable<zod.ZodAny>;
853
+ updatedAt: zod.ZodNullable<zod.ZodAny>;
854
+ schedule: zod.ZodNullable<zod.ZodObject<{
855
+ id: zod.ZodString;
856
+ name: zod.ZodUnion<readonly [zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodString, zod.ZodNumber, zod.ZodEnum<{}>]>, zod.ZodArray<zod.ZodAny>, zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodAny>>]>;
857
+ description: zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodString, zod.ZodNumber, zod.ZodEnum<{}>]>, zod.ZodArray<zod.ZodAny>, zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodAny>>]>>;
858
+ timezone: zod.ZodString;
859
+ rrule: zod.ZodNullable<zod.ZodString>;
860
+ exdates: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
861
+ validFrom: zod.ZodNullable<zod.ZodString>;
862
+ validTo: zod.ZodNullable<zod.ZodString>;
863
+ priority: zod.ZodNullable<zod.ZodInt>;
864
+ slotMode: zod.ZodEnum<{
865
+ duration: "duration";
866
+ interval: "interval";
867
+ }>;
868
+ intervalDuration: zod.ZodNullable<zod.ZodInt>;
869
+ duration: zod.ZodNullable<zod.ZodInt>;
870
+ isActive: zod.ZodBoolean;
871
+ sortIndex: zod.ZodNullable<zod.ZodString>;
872
+ updatedAt: zod.ZodNullable<zod.ZodAny>;
873
+ updatedBy: zod.ZodNullable<zod.ZodString>;
874
+ createdAt: zod.ZodNullable<zod.ZodAny>;
875
+ createdBy: zod.ZodNullable<zod.ZodString>;
876
+ scheduleTimeSlots: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
877
+ scheduleId: zod.ZodNullable<zod.ZodString>;
878
+ timeSlotId: zod.ZodNullable<zod.ZodString>;
879
+ dayOfWeek: zod.ZodEnum<{
880
+ monday: "monday";
881
+ tuesday: "tuesday";
882
+ wednesday: "wednesday";
883
+ thursday: "thursday";
884
+ friday: "friday";
885
+ saturday: "saturday";
886
+ sunday: "sunday";
887
+ }>;
888
+ sortIndex: zod.ZodNullable<zod.ZodString>;
889
+ timeSlot: zod.ZodNullable<zod.ZodObject<{
890
+ id: zod.ZodString;
891
+ startTime: zod.ZodString;
892
+ endTime: zod.ZodNullable<zod.ZodString>;
893
+ isActive: zod.ZodNullable<zod.ZodBoolean>;
894
+ isSchedulable: zod.ZodNullable<zod.ZodBoolean>;
895
+ sortIndex: zod.ZodNullable<zod.ZodString>;
896
+ updatedAt: zod.ZodNullable<zod.ZodAny>;
897
+ updatedBy: zod.ZodNullable<zod.ZodString>;
898
+ createdAt: zod.ZodNullable<zod.ZodAny>;
899
+ createdBy: zod.ZodNullable<zod.ZodString>;
900
+ }, zod_v4_core.$strip>>;
901
+ }, zod_v4_core.$strip>>>;
902
+ }, zod_v4_core.$strip>>;
903
+ }, zod_v4_core.$strip>;
766
904
  readonly EntityOwnerType: zod.ZodEnum<{
767
905
  event: "event";
768
906
  dish: "dish";
@@ -2664,6 +2802,34 @@ declare const schemas: {
2664
2802
  teamOrderId: zod.ZodUUID;
2665
2803
  deliveryAddressId: zod.ZodString;
2666
2804
  }, zod_v4_core.$strip>;
2805
+ readonly UploadAssetResponse: zod.ZodObject<{
2806
+ asset: zod.ZodObject<{
2807
+ id: zod.ZodString;
2808
+ type: zod.ZodEnum<{
2809
+ image: "image";
2810
+ video: "video";
2811
+ document: "document";
2812
+ }>;
2813
+ tags: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
2814
+ bucket: zod.ZodString;
2815
+ storagePath: zod.ZodString;
2816
+ filename: zod.ZodString;
2817
+ contentType: zod.ZodString;
2818
+ sizeBytes: zod.ZodInt;
2819
+ caption: zod.ZodUnion<readonly [zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodString, zod.ZodNumber, zod.ZodEnum<{}>]>, zod.ZodArray<zod.ZodAny>, zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodAny>>]>;
2820
+ alt: zod.ZodUnion<readonly [zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodString, zod.ZodNumber, zod.ZodEnum<{}>]>, zod.ZodArray<zod.ZodAny>, zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodAny>>]>;
2821
+ metadata: zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodString, zod.ZodNumber, zod.ZodEnum<{}>]>, zod.ZodArray<zod.ZodAny>, zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodAny>>]>>;
2822
+ cropArea: zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodString, zod.ZodNumber, zod.ZodEnum<{}>]>, zod.ZodArray<zod.ZodAny>, zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodAny>>]>>;
2823
+ isActive: zod.ZodBoolean;
2824
+ sortIndex: zod.ZodNullable<zod.ZodString>;
2825
+ createdAt: zod.ZodNullable<zod.ZodAny>;
2826
+ updatedAt: zod.ZodNullable<zod.ZodAny>;
2827
+ createdBy: zod.ZodNullable<zod.ZodString>;
2828
+ updatedBy: zod.ZodNullable<zod.ZodString>;
2829
+ venueId: zod.ZodNullable<zod.ZodString>;
2830
+ }, zod_v4_core.$strip>;
2831
+ publicUrl: zod.ZodNullable<zod.ZodString>;
2832
+ }, zod_v4_core.$strip>;
2667
2833
  readonly VenueAssetType: zod.ZodEnum<{
2668
2834
  logomark: "logomark";
2669
2835
  wordmark: "wordmark";
package/dist/schemas.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod/v4';
2
- import { t as teamOrderStatusSchema, f as fulfillmentTypeSchema, p as paymentMethodSchema, d as deliveryAddressSchema, a as participantStatusSchema } from './deliveryAddressSchema-8YX7yh5X.mjs';
2
+ import { t as teamOrderStatusSchema, f as fulfillmentTypeSchema, a as paymentMethodSchema, d as deliveryAddressSchema, p as participantStatusSchema } from './deliveryAddressSchema-DZlkW-QX.mjs';
3
3
 
4
4
  const abandonBasketRequestSchema = z.object({
5
5
  sessionId: z.string().min(1)
@@ -563,7 +563,7 @@ const createDeltaPaymentIntentResponseSchema = z.object({
563
563
  clientSecret: z.nullable(z.string()),
564
564
  paymentIntentId: z.string(),
565
565
  orderId: z.string(),
566
- amount: z.int().max(9007199254740991),
566
+ amount: z.int().max(9007199254740991).gt(0),
567
567
  status: z.enum([
568
568
  "requires_payment_method",
569
569
  "requires_confirmation",
@@ -728,6 +728,46 @@ const dayOfWeekSchema = z.enum([
728
728
  "sunday"
729
729
  ]);
730
730
 
731
+ const deleteAssetResponseSchema = z.object({
732
+ success: z.boolean()
733
+ });
734
+
735
+ const deleteEventResponseSchema = z.object({
736
+ id: z.string(),
737
+ venueId: z.string(),
738
+ accessor: z.nullable(z.string()),
739
+ name: z.union([
740
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
741
+ z.array(z.any()),
742
+ z.object({}).catchall(z.any())
743
+ ]),
744
+ description: z.nullable(
745
+ z.union([
746
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
747
+ z.array(z.any()),
748
+ z.object({}).catchall(z.any())
749
+ ])
750
+ ),
751
+ scheduleId: z.nullable(z.string()),
752
+ ritualId: z.nullable(z.string()),
753
+ maxBookings: z.nullable(z.int().min(-2147483648).max(2147483647)),
754
+ maxGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
755
+ minPartySize: z.nullable(z.int().min(-2147483648).max(2147483647)),
756
+ maxPartySize: z.nullable(z.int().min(-2147483648).max(2147483647)),
757
+ isPublic: z.boolean(),
758
+ isRecurring: z.boolean(),
759
+ reservationsEnabled: z.boolean(),
760
+ bookingOpensAtDays: z.nullable(z.int().min(-2147483648).max(2147483647)),
761
+ bookingClosesAtOffset: z.nullable(z.int().min(-2147483648).max(2147483647)),
762
+ isActive: z.boolean(),
763
+ isFeatured: z.boolean(),
764
+ priority: z.int().min(-2147483648).max(2147483647),
765
+ createdBy: z.nullable(z.string()),
766
+ updatedBy: z.nullable(z.string()),
767
+ createdAt: z.nullable(z.any()),
768
+ updatedAt: z.nullable(z.any())
769
+ });
770
+
731
771
  const depositTransactionTypeSchema = z.enum([
732
772
  "charged",
733
773
  "refunded",
@@ -806,6 +846,150 @@ const editArticleResponseSchema = z.object({
806
846
  "A venue's article. `content` is a TipTap JSON document; treat it as opaque on the wire. `featureImage` is resolved per-locale with a fallback to the venue's primary locale. `ogImage` overrides the social-card image when set; `null` means it falls back to `featureImage`."
807
847
  );
808
848
 
849
+ const editEventRequestSchema = z.object({
850
+ accessor: z.string().nullish(),
851
+ name: z.optional(
852
+ z.union([
853
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
854
+ z.array(z.any()),
855
+ z.object({}).catchall(z.any())
856
+ ])
857
+ ),
858
+ description: z.union([
859
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
860
+ z.array(z.any()),
861
+ z.object({}).catchall(z.any())
862
+ ]).nullish(),
863
+ scheduleId: z.string().nullish(),
864
+ maxBookings: z.int().min(-2147483648).max(2147483647).nullish(),
865
+ maxGuests: z.int().min(-2147483648).max(2147483647).nullish(),
866
+ minPartySize: z.int().min(-2147483648).max(2147483647).nullish(),
867
+ maxPartySize: z.int().min(-2147483648).max(2147483647).nullish(),
868
+ isPublic: z.optional(z.boolean()),
869
+ isRecurring: z.optional(z.boolean()),
870
+ reservationsEnabled: z.optional(z.boolean()),
871
+ bookingOpensAtDays: z.int().min(-2147483648).max(2147483647).nullish(),
872
+ bookingClosesAtOffset: z.int().min(-2147483648).max(2147483647).nullish(),
873
+ isActive: z.optional(z.boolean()),
874
+ isFeatured: z.optional(z.boolean()),
875
+ priority: z.optional(z.int().min(-2147483648).max(2147483647)),
876
+ schedule: z.object({
877
+ rrule: z.string().nullish(),
878
+ timezone: z.string().nullish(),
879
+ validFrom: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).nullish(),
880
+ validTo: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).nullish(),
881
+ timeRanges: z.array(
882
+ z.object({
883
+ startTime: z.string().regex(/^\d{2}:\d{2}$/),
884
+ endTime: z.string().regex(/^\d{2}:\d{2}$/),
885
+ lastSeatingTime: z.string().regex(/^\d{2}:\d{2}$/).nullish()
886
+ })
887
+ ).min(1),
888
+ get slotMode() {
889
+ return slotModeSchema.optional();
890
+ },
891
+ intervalDuration: z.number().nullish(),
892
+ duration: z.number().nullish()
893
+ }).nullish(),
894
+ ritualAccessor: z.string().nullish()
895
+ }).describe("Partial-update body for an existing event");
896
+
897
+ const editEventResponseSchema = z.object({
898
+ id: z.string(),
899
+ venueId: z.string(),
900
+ accessor: z.nullable(z.string()),
901
+ name: z.union([
902
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
903
+ z.array(z.any()),
904
+ z.object({}).catchall(z.any())
905
+ ]),
906
+ description: z.nullable(
907
+ z.union([
908
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
909
+ z.array(z.any()),
910
+ z.object({}).catchall(z.any())
911
+ ])
912
+ ),
913
+ scheduleId: z.nullable(z.string()),
914
+ ritualId: z.nullable(z.string()),
915
+ maxBookings: z.nullable(z.int().min(-2147483648).max(2147483647)),
916
+ maxGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
917
+ minPartySize: z.nullable(z.int().min(-2147483648).max(2147483647)),
918
+ maxPartySize: z.nullable(z.int().min(-2147483648).max(2147483647)),
919
+ isPublic: z.boolean(),
920
+ isRecurring: z.boolean(),
921
+ reservationsEnabled: z.boolean(),
922
+ bookingOpensAtDays: z.nullable(z.int().min(-2147483648).max(2147483647)),
923
+ bookingClosesAtOffset: z.nullable(z.int().min(-2147483648).max(2147483647)),
924
+ isActive: z.boolean(),
925
+ isFeatured: z.boolean(),
926
+ priority: z.int().min(-2147483648).max(2147483647),
927
+ createdBy: z.nullable(z.string()),
928
+ updatedBy: z.nullable(z.string()),
929
+ createdAt: z.nullable(z.any()),
930
+ updatedAt: z.nullable(z.any()),
931
+ schedule: z.nullable(
932
+ z.object({
933
+ id: z.string(),
934
+ name: z.union([
935
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
936
+ z.array(z.any()),
937
+ z.object({}).catchall(z.any())
938
+ ]),
939
+ description: z.nullable(
940
+ z.union([
941
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
942
+ z.array(z.any()),
943
+ z.object({}).catchall(z.any())
944
+ ])
945
+ ),
946
+ timezone: z.string(),
947
+ rrule: z.nullable(z.string()),
948
+ exdates: z.nullable(z.array(z.string())),
949
+ validFrom: z.nullable(z.string()),
950
+ validTo: z.nullable(z.string()),
951
+ priority: z.nullable(z.int().min(-2147483648).max(2147483647)),
952
+ get slotMode() {
953
+ return slotModeSchema;
954
+ },
955
+ intervalDuration: z.nullable(z.int().min(-2147483648).max(2147483647)),
956
+ duration: z.nullable(z.int().min(-2147483648).max(2147483647)),
957
+ isActive: z.boolean(),
958
+ sortIndex: z.nullable(z.string().max(255)),
959
+ updatedAt: z.nullable(z.any()),
960
+ updatedBy: z.nullable(z.string()),
961
+ createdAt: z.nullable(z.any()),
962
+ createdBy: z.nullable(z.string()),
963
+ scheduleTimeSlots: z.optional(
964
+ z.array(
965
+ z.object({
966
+ scheduleId: z.nullable(z.string()),
967
+ timeSlotId: z.nullable(z.string()),
968
+ get dayOfWeek() {
969
+ return dayOfWeekSchema;
970
+ },
971
+ sortIndex: z.nullable(z.string().max(255)),
972
+ timeSlot: z.nullable(
973
+ z.object({
974
+ id: z.string(),
975
+ startTime: z.string(),
976
+ endTime: z.nullable(z.string()),
977
+ isActive: z.nullable(z.boolean()),
978
+ isSchedulable: z.nullable(z.boolean()),
979
+ sortIndex: z.nullable(z.string().max(255)),
980
+ updatedAt: z.nullable(z.any()),
981
+ updatedBy: z.nullable(z.string()),
982
+ createdAt: z.nullable(z.any()),
983
+ createdBy: z.nullable(z.string())
984
+ })
985
+ )
986
+ })
987
+ )
988
+ )
989
+ })
990
+ )
991
+ }).describe("Successfully updated event with schedule");
992
+
809
993
  const entityOwnerTypeSchema = z.enum([
810
994
  "event",
811
995
  "dish",
@@ -1754,7 +1938,7 @@ const fetchTeamOrderResponseSchema = z.object({
1754
1938
  customerId: z.string(),
1755
1939
  basketId: z.nullable(z.string()),
1756
1940
  orderId: z.nullable(z.string()),
1757
- participantNumber: z.nullable(z.int().max(9007199254740991)),
1941
+ participantNumber: z.nullable(z.int().max(9007199254740991).gt(0)),
1758
1942
  displayName: z.nullable(z.string()),
1759
1943
  get status() {
1760
1944
  return participantStatusSchema;
@@ -1908,7 +2092,7 @@ const getSubscriptionResponseSchema = z.object({
1908
2092
  shortName: z.nullable(z.object({}).catchall(z.string())),
1909
2093
  description: z.nullable(z.object({}).catchall(z.string())),
1910
2094
  scheduleId: z.nullable(z.string()),
1911
- allowance: z.int().max(9007199254740991),
2095
+ allowance: z.int().max(9007199254740991).gt(0),
1912
2096
  get billingPeriod() {
1913
2097
  return subscriptionPeriodSchema;
1914
2098
  },
@@ -1916,7 +2100,7 @@ const getSubscriptionResponseSchema = z.object({
1916
2100
  return subscriptionPeriodSchema;
1917
2101
  },
1918
2102
  redeemableTagSets: z.array(z.array(z.string())),
1919
- expiryInDays: z.nullable(z.int().max(9007199254740991)),
2103
+ expiryInDays: z.nullable(z.int().max(9007199254740991).gt(0)),
1920
2104
  price: z.int().min(0).max(9007199254740991),
1921
2105
  get currency() {
1922
2106
  return currencySchema;
@@ -2494,7 +2678,7 @@ const submitAreaBookingPayloadSchema = z.object({
2494
2678
  requestedDate: z.string().regex(/^\d{4}-\d{2}-\d{2}$/),
2495
2679
  requestedStartTime: z.optional(z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/)),
2496
2680
  requestedEndTime: z.optional(z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/)),
2497
- partySize: z.int().max(9007199254740991),
2681
+ partySize: z.int().max(9007199254740991).gt(0),
2498
2682
  customerFirstName: z.string().min(1),
2499
2683
  customerLastName: z.string().min(1),
2500
2684
  customerEmail: z.email(),
@@ -2611,6 +2795,53 @@ const updateDeliveryAddressTeamOrderResponseSchema = z.object({
2611
2795
  deliveryAddressId: z.string()
2612
2796
  });
2613
2797
 
2798
+ const uploadAssetResponseSchema = z.object({
2799
+ asset: z.object({
2800
+ id: z.string(),
2801
+ get type() {
2802
+ return assetTypeSchema;
2803
+ },
2804
+ tags: z.nullable(z.array(z.string())),
2805
+ bucket: z.string(),
2806
+ storagePath: z.string(),
2807
+ filename: z.string(),
2808
+ contentType: z.string(),
2809
+ sizeBytes: z.int().min(-2147483648).max(2147483647),
2810
+ caption: z.union([
2811
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
2812
+ z.array(z.any()),
2813
+ z.object({}).catchall(z.any())
2814
+ ]),
2815
+ alt: z.union([
2816
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
2817
+ z.array(z.any()),
2818
+ z.object({}).catchall(z.any())
2819
+ ]),
2820
+ metadata: z.nullable(
2821
+ z.union([
2822
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
2823
+ z.array(z.any()),
2824
+ z.object({}).catchall(z.any())
2825
+ ])
2826
+ ),
2827
+ cropArea: z.nullable(
2828
+ z.union([
2829
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
2830
+ z.array(z.any()),
2831
+ z.object({}).catchall(z.any())
2832
+ ])
2833
+ ),
2834
+ isActive: z.boolean(),
2835
+ sortIndex: z.nullable(z.string().max(255)),
2836
+ createdAt: z.nullable(z.any()),
2837
+ updatedAt: z.nullable(z.any()),
2838
+ createdBy: z.nullable(z.string()),
2839
+ updatedBy: z.nullable(z.string()),
2840
+ venueId: z.nullable(z.string())
2841
+ }),
2842
+ publicUrl: z.nullable(z.string())
2843
+ });
2844
+
2614
2845
  const venueAssetTypeSchema = z.enum([
2615
2846
  "logomark",
2616
2847
  "wordmark",
@@ -2670,11 +2901,15 @@ const schemas = {
2670
2901
  CreateTeamOrderResponse: createTeamOrderResponseSchema,
2671
2902
  Currency: currencySchema,
2672
2903
  DayOfWeek: dayOfWeekSchema,
2904
+ DeleteAssetResponse: deleteAssetResponseSchema,
2905
+ DeleteEventResponse: deleteEventResponseSchema,
2673
2906
  DeliveryAddress: deliveryAddressSchema,
2674
2907
  DepositTransactionType: depositTransactionTypeSchema,
2675
2908
  DepositwareStatus: depositwareStatusSchema,
2676
2909
  EditArticleRequest: editArticleRequestSchema,
2677
2910
  EditArticleResponse: editArticleResponseSchema,
2911
+ EditEventRequest: editEventRequestSchema,
2912
+ EditEventResponse: editEventResponseSchema,
2678
2913
  EntityOwnerType: entityOwnerTypeSchema,
2679
2914
  EnumFalse: enumFalseSchema,
2680
2915
  EnumTrue: enumTrueSchema,
@@ -2763,6 +2998,7 @@ const schemas = {
2763
2998
  Unit: unitSchema,
2764
2999
  UpdateDeliveryAddressTeamOrderRequest: updateDeliveryAddressTeamOrderRequestSchema,
2765
3000
  UpdateDeliveryAddressTeamOrderResponse: updateDeliveryAddressTeamOrderResponseSchema,
3001
+ UploadAssetResponse: uploadAssetResponseSchema,
2766
3002
  VenueAssetType: venueAssetTypeSchema,
2767
3003
  VenueChargeKind: venueChargeKindSchema,
2768
3004
  VenueType: venueTypeSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "order3000",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "order3000 node.js sdk",
5
5
  "main": "./dist/client.cjs",
6
6
  "module": "./dist/client.mjs",
@@ -30,8 +30,6 @@
30
30
  "dependencies": {
31
31
  "@date-fns/tz": "^1.4.1",
32
32
  "@supabase/supabase-js": "^2.49.8",
33
- "i18next": "^25.6.0",
34
- "i18next-fs-backend": "^2.6.0",
35
33
  "react-type-animation": "^3.2.0",
36
34
  "zod": "^4.2.1",
37
35
  "@kolaveri/money": "1.1.4"
@@ -49,7 +47,7 @@
49
47
  "prettier": "^3.7.4",
50
48
  "tsx": "^4.19.2",
51
49
  "typescript": "^5.9.3",
52
- "@kolaveri/eslint-config": "1.8.3",
50
+ "@kolaveri/eslint-config": "1.8.12",
53
51
  "@kolaveri/prettier-config": "1.0.6",
54
52
  "@kolaveri/tsconfig": "1.0.1"
55
53
  },