order3000 0.19.1 → 0.21.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 +92 -1
- package/dist/client.d.cts +198 -4
- package/dist/client.d.mts +198 -4
- package/dist/client.mjs +92 -1
- package/dist/schemas.cjs +15 -1
- package/dist/schemas.d.cts +279 -14
- package/dist/schemas.d.mts +279 -14
- package/dist/schemas.mjs +15 -1
- package/package.json +2 -2
package/dist/schemas.d.mts
CHANGED
|
@@ -649,6 +649,234 @@ declare const schemas: {
|
|
|
649
649
|
createdAt: string | null;
|
|
650
650
|
updatedAt: string | null;
|
|
651
651
|
}>;
|
|
652
|
+
includeDrafts: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"true">, z.ZodLiteral<"false">]>>;
|
|
653
|
+
Article: z.ZodObject<{
|
|
654
|
+
id: z.ZodString;
|
|
655
|
+
venueId: z.ZodString;
|
|
656
|
+
accessor: z.ZodString;
|
|
657
|
+
slug: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
658
|
+
title: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
659
|
+
excerpt: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
660
|
+
content: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
661
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
662
|
+
featuredImageId: z.ZodNullable<z.ZodString>;
|
|
663
|
+
isActive: z.ZodBoolean;
|
|
664
|
+
isFeatured: z.ZodBoolean;
|
|
665
|
+
priority: z.ZodNumber;
|
|
666
|
+
publishedAt: z.ZodNullable<z.ZodUnknown>;
|
|
667
|
+
createdAt: z.ZodNullable<z.ZodUnknown>;
|
|
668
|
+
updatedAt: z.ZodNullable<z.ZodUnknown>;
|
|
669
|
+
}, "strict", z.ZodTypeAny, {
|
|
670
|
+
id: string;
|
|
671
|
+
venueId: string;
|
|
672
|
+
accessor: string;
|
|
673
|
+
tags: string[];
|
|
674
|
+
slug: Record<string, string>;
|
|
675
|
+
title: Record<string, string>;
|
|
676
|
+
excerpt: Record<string, string> | null;
|
|
677
|
+
content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
678
|
+
featuredImageId: string | null;
|
|
679
|
+
isActive: boolean;
|
|
680
|
+
isFeatured: boolean;
|
|
681
|
+
priority: number;
|
|
682
|
+
createdAt?: unknown;
|
|
683
|
+
updatedAt?: unknown;
|
|
684
|
+
publishedAt?: unknown;
|
|
685
|
+
}, {
|
|
686
|
+
id: string;
|
|
687
|
+
venueId: string;
|
|
688
|
+
accessor: string;
|
|
689
|
+
tags: string[];
|
|
690
|
+
slug: Record<string, string>;
|
|
691
|
+
title: Record<string, string>;
|
|
692
|
+
excerpt: Record<string, string> | null;
|
|
693
|
+
content: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
694
|
+
featuredImageId: string | null;
|
|
695
|
+
isActive: boolean;
|
|
696
|
+
isFeatured: boolean;
|
|
697
|
+
priority: number;
|
|
698
|
+
createdAt?: unknown;
|
|
699
|
+
updatedAt?: unknown;
|
|
700
|
+
publishedAt?: unknown;
|
|
701
|
+
}>;
|
|
702
|
+
ListArticlesResponse: z.ZodArray<z.ZodObject<{
|
|
703
|
+
id: z.ZodString;
|
|
704
|
+
venueId: z.ZodString;
|
|
705
|
+
accessor: z.ZodString;
|
|
706
|
+
slug: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
707
|
+
title: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
708
|
+
excerpt: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
709
|
+
content: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
710
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
711
|
+
featuredImageId: z.ZodNullable<z.ZodString>;
|
|
712
|
+
isActive: z.ZodBoolean;
|
|
713
|
+
isFeatured: z.ZodBoolean;
|
|
714
|
+
priority: z.ZodNumber;
|
|
715
|
+
publishedAt: z.ZodNullable<z.ZodUnknown>;
|
|
716
|
+
createdAt: z.ZodNullable<z.ZodUnknown>;
|
|
717
|
+
updatedAt: z.ZodNullable<z.ZodUnknown>;
|
|
718
|
+
}, "strict", z.ZodTypeAny, {
|
|
719
|
+
id: string;
|
|
720
|
+
venueId: string;
|
|
721
|
+
accessor: string;
|
|
722
|
+
tags: string[];
|
|
723
|
+
slug: Record<string, string>;
|
|
724
|
+
title: Record<string, string>;
|
|
725
|
+
excerpt: Record<string, string> | null;
|
|
726
|
+
content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
727
|
+
featuredImageId: string | null;
|
|
728
|
+
isActive: boolean;
|
|
729
|
+
isFeatured: boolean;
|
|
730
|
+
priority: number;
|
|
731
|
+
createdAt?: unknown;
|
|
732
|
+
updatedAt?: unknown;
|
|
733
|
+
publishedAt?: unknown;
|
|
734
|
+
}, {
|
|
735
|
+
id: string;
|
|
736
|
+
venueId: string;
|
|
737
|
+
accessor: string;
|
|
738
|
+
tags: string[];
|
|
739
|
+
slug: Record<string, string>;
|
|
740
|
+
title: Record<string, string>;
|
|
741
|
+
excerpt: Record<string, string> | null;
|
|
742
|
+
content: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
743
|
+
featuredImageId: string | null;
|
|
744
|
+
isActive: boolean;
|
|
745
|
+
isFeatured: boolean;
|
|
746
|
+
priority: number;
|
|
747
|
+
createdAt?: unknown;
|
|
748
|
+
updatedAt?: unknown;
|
|
749
|
+
publishedAt?: unknown;
|
|
750
|
+
}>, "many">;
|
|
751
|
+
GetArticleResponse: z.ZodObject<{
|
|
752
|
+
id: z.ZodString;
|
|
753
|
+
venueId: z.ZodString;
|
|
754
|
+
accessor: z.ZodString;
|
|
755
|
+
slug: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
756
|
+
title: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
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">>>;
|
|
759
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
760
|
+
featuredImageId: z.ZodNullable<z.ZodString>;
|
|
761
|
+
isActive: z.ZodBoolean;
|
|
762
|
+
isFeatured: z.ZodBoolean;
|
|
763
|
+
priority: z.ZodNumber;
|
|
764
|
+
publishedAt: z.ZodNullable<z.ZodUnknown>;
|
|
765
|
+
createdAt: z.ZodNullable<z.ZodUnknown>;
|
|
766
|
+
updatedAt: z.ZodNullable<z.ZodUnknown>;
|
|
767
|
+
}, "strict", z.ZodTypeAny, {
|
|
768
|
+
id: string;
|
|
769
|
+
venueId: string;
|
|
770
|
+
accessor: string;
|
|
771
|
+
tags: string[];
|
|
772
|
+
slug: Record<string, string>;
|
|
773
|
+
title: Record<string, string>;
|
|
774
|
+
excerpt: Record<string, string> | null;
|
|
775
|
+
content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
776
|
+
featuredImageId: string | null;
|
|
777
|
+
isActive: boolean;
|
|
778
|
+
isFeatured: boolean;
|
|
779
|
+
priority: number;
|
|
780
|
+
createdAt?: unknown;
|
|
781
|
+
updatedAt?: unknown;
|
|
782
|
+
publishedAt?: unknown;
|
|
783
|
+
}, {
|
|
784
|
+
id: string;
|
|
785
|
+
venueId: string;
|
|
786
|
+
accessor: string;
|
|
787
|
+
tags: string[];
|
|
788
|
+
slug: Record<string, string>;
|
|
789
|
+
title: Record<string, string>;
|
|
790
|
+
excerpt: Record<string, string> | null;
|
|
791
|
+
content: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
792
|
+
featuredImageId: string | null;
|
|
793
|
+
isActive: boolean;
|
|
794
|
+
isFeatured: boolean;
|
|
795
|
+
priority: number;
|
|
796
|
+
createdAt?: unknown;
|
|
797
|
+
updatedAt?: unknown;
|
|
798
|
+
publishedAt?: unknown;
|
|
799
|
+
}>;
|
|
800
|
+
PatchArticleRequest: z.ZodObject<{
|
|
801
|
+
slug: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
802
|
+
title: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
803
|
+
excerpt: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
804
|
+
content: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
805
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
806
|
+
featuredImageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
807
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
808
|
+
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
809
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
810
|
+
}, "strict", z.ZodTypeAny, {
|
|
811
|
+
tags?: string[] | undefined;
|
|
812
|
+
slug?: Record<string, string> | undefined;
|
|
813
|
+
title?: Record<string, string> | undefined;
|
|
814
|
+
excerpt?: Record<string, string> | undefined;
|
|
815
|
+
content?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
816
|
+
featuredImageId?: string | null | undefined;
|
|
817
|
+
isActive?: boolean | undefined;
|
|
818
|
+
isFeatured?: boolean | undefined;
|
|
819
|
+
priority?: number | undefined;
|
|
820
|
+
}, {
|
|
821
|
+
tags?: string[] | undefined;
|
|
822
|
+
slug?: Record<string, string> | undefined;
|
|
823
|
+
title?: Record<string, string> | undefined;
|
|
824
|
+
excerpt?: Record<string, string> | undefined;
|
|
825
|
+
content?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
826
|
+
featuredImageId?: string | null | undefined;
|
|
827
|
+
isActive?: boolean | undefined;
|
|
828
|
+
isFeatured?: boolean | undefined;
|
|
829
|
+
priority?: number | undefined;
|
|
830
|
+
}>;
|
|
831
|
+
PatchArticleResponse: z.ZodObject<{
|
|
832
|
+
id: z.ZodString;
|
|
833
|
+
venueId: z.ZodString;
|
|
834
|
+
accessor: z.ZodString;
|
|
835
|
+
slug: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
836
|
+
title: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
837
|
+
excerpt: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
838
|
+
content: z.ZodNullable<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
839
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
840
|
+
featuredImageId: z.ZodNullable<z.ZodString>;
|
|
841
|
+
isActive: z.ZodBoolean;
|
|
842
|
+
isFeatured: z.ZodBoolean;
|
|
843
|
+
priority: z.ZodNumber;
|
|
844
|
+
publishedAt: z.ZodNullable<z.ZodUnknown>;
|
|
845
|
+
createdAt: z.ZodNullable<z.ZodUnknown>;
|
|
846
|
+
updatedAt: z.ZodNullable<z.ZodUnknown>;
|
|
847
|
+
}, "strict", z.ZodTypeAny, {
|
|
848
|
+
id: string;
|
|
849
|
+
venueId: string;
|
|
850
|
+
accessor: string;
|
|
851
|
+
tags: string[];
|
|
852
|
+
slug: Record<string, string>;
|
|
853
|
+
title: Record<string, string>;
|
|
854
|
+
excerpt: Record<string, string> | null;
|
|
855
|
+
content: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
856
|
+
featuredImageId: string | null;
|
|
857
|
+
isActive: boolean;
|
|
858
|
+
isFeatured: boolean;
|
|
859
|
+
priority: number;
|
|
860
|
+
createdAt?: unknown;
|
|
861
|
+
updatedAt?: unknown;
|
|
862
|
+
publishedAt?: unknown;
|
|
863
|
+
}, {
|
|
864
|
+
id: string;
|
|
865
|
+
venueId: string;
|
|
866
|
+
accessor: string;
|
|
867
|
+
tags: string[];
|
|
868
|
+
slug: Record<string, string>;
|
|
869
|
+
title: Record<string, string>;
|
|
870
|
+
excerpt: Record<string, string> | null;
|
|
871
|
+
content: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
872
|
+
featuredImageId: string | null;
|
|
873
|
+
isActive: boolean;
|
|
874
|
+
isFeatured: boolean;
|
|
875
|
+
priority: number;
|
|
876
|
+
createdAt?: unknown;
|
|
877
|
+
updatedAt?: unknown;
|
|
878
|
+
publishedAt?: unknown;
|
|
879
|
+
}>;
|
|
652
880
|
AddToBasketRequest: z.ZodObject<{
|
|
653
881
|
venueId: z.ZodString;
|
|
654
882
|
sessionId: z.ZodString;
|
|
@@ -1082,6 +1310,9 @@ declare const schemas: {
|
|
|
1082
1310
|
venueAccessor: string;
|
|
1083
1311
|
accessor?: string | null | undefined;
|
|
1084
1312
|
description?: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
1313
|
+
isActive?: boolean | undefined;
|
|
1314
|
+
isFeatured?: boolean | undefined;
|
|
1315
|
+
priority?: number | undefined;
|
|
1085
1316
|
scheduleId?: string | null | undefined;
|
|
1086
1317
|
maxBookings?: number | null | undefined;
|
|
1087
1318
|
maxGuests?: number | null | undefined;
|
|
@@ -1092,9 +1323,6 @@ declare const schemas: {
|
|
|
1092
1323
|
reservationsEnabled?: boolean | undefined;
|
|
1093
1324
|
bookingOpensAtDays?: number | null | undefined;
|
|
1094
1325
|
bookingClosesAtHours?: number | null | undefined;
|
|
1095
|
-
isActive?: boolean | undefined;
|
|
1096
|
-
isFeatured?: boolean | undefined;
|
|
1097
|
-
priority?: number | undefined;
|
|
1098
1326
|
schedule?: {
|
|
1099
1327
|
timeRanges: {
|
|
1100
1328
|
startTime: string;
|
|
@@ -1115,6 +1343,9 @@ declare const schemas: {
|
|
|
1115
1343
|
venueAccessor: string;
|
|
1116
1344
|
accessor?: string | null | undefined;
|
|
1117
1345
|
description?: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
1346
|
+
isActive?: boolean | undefined;
|
|
1347
|
+
isFeatured?: boolean | undefined;
|
|
1348
|
+
priority?: number | undefined;
|
|
1118
1349
|
scheduleId?: string | null | undefined;
|
|
1119
1350
|
maxBookings?: number | null | undefined;
|
|
1120
1351
|
maxGuests?: number | null | undefined;
|
|
@@ -1125,9 +1356,6 @@ declare const schemas: {
|
|
|
1125
1356
|
reservationsEnabled?: boolean | undefined;
|
|
1126
1357
|
bookingOpensAtDays?: number | null | undefined;
|
|
1127
1358
|
bookingClosesAtHours?: number | null | undefined;
|
|
1128
|
-
isActive?: boolean | undefined;
|
|
1129
|
-
isFeatured?: boolean | undefined;
|
|
1130
|
-
priority?: number | undefined;
|
|
1131
1359
|
schedule?: {
|
|
1132
1360
|
timeRanges: {
|
|
1133
1361
|
startTime: string;
|
|
@@ -1174,6 +1402,9 @@ declare const schemas: {
|
|
|
1174
1402
|
accessor: string | null;
|
|
1175
1403
|
name: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
1176
1404
|
description: string | number | boolean | unknown[] | z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
1405
|
+
isActive: boolean;
|
|
1406
|
+
isFeatured: boolean;
|
|
1407
|
+
priority: number;
|
|
1177
1408
|
scheduleId: string | null;
|
|
1178
1409
|
maxBookings: number | null;
|
|
1179
1410
|
maxGuests: number | null;
|
|
@@ -1184,9 +1415,6 @@ declare const schemas: {
|
|
|
1184
1415
|
reservationsEnabled: boolean;
|
|
1185
1416
|
bookingOpensAtDays: number | null;
|
|
1186
1417
|
bookingClosesAtHours: number | null;
|
|
1187
|
-
isActive: boolean;
|
|
1188
|
-
isFeatured: boolean;
|
|
1189
|
-
priority: number;
|
|
1190
1418
|
ritualId: string | null;
|
|
1191
1419
|
createdBy: string | null;
|
|
1192
1420
|
updatedBy: string | null;
|
|
@@ -1198,6 +1426,9 @@ declare const schemas: {
|
|
|
1198
1426
|
accessor: string | null;
|
|
1199
1427
|
name: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
1200
1428
|
description: string | number | boolean | unknown[] | z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null;
|
|
1429
|
+
isActive: boolean;
|
|
1430
|
+
isFeatured: boolean;
|
|
1431
|
+
priority: number;
|
|
1201
1432
|
scheduleId: string | null;
|
|
1202
1433
|
maxBookings: number | null;
|
|
1203
1434
|
maxGuests: number | null;
|
|
@@ -1208,9 +1439,6 @@ declare const schemas: {
|
|
|
1208
1439
|
reservationsEnabled: boolean;
|
|
1209
1440
|
bookingOpensAtDays: number | null;
|
|
1210
1441
|
bookingClosesAtHours: number | null;
|
|
1211
|
-
isActive: boolean;
|
|
1212
|
-
isFeatured: boolean;
|
|
1213
|
-
priority: number;
|
|
1214
1442
|
ritualId: string | null;
|
|
1215
1443
|
createdBy: string | null;
|
|
1216
1444
|
updatedBy: string | null;
|
|
@@ -1743,8 +1971,8 @@ declare const schemas: {
|
|
|
1743
1971
|
name: Record<string, string>;
|
|
1744
1972
|
description: Record<string, string> | null;
|
|
1745
1973
|
currency: "EUR" | "CHF";
|
|
1746
|
-
scheduleId: string | null;
|
|
1747
1974
|
isActive: boolean;
|
|
1975
|
+
scheduleId: string | null;
|
|
1748
1976
|
menuId: string;
|
|
1749
1977
|
shortName: Record<string, string> | null;
|
|
1750
1978
|
allowance: number;
|
|
@@ -1772,8 +2000,8 @@ declare const schemas: {
|
|
|
1772
2000
|
name: Record<string, string>;
|
|
1773
2001
|
description: Record<string, string> | null;
|
|
1774
2002
|
currency: "EUR" | "CHF";
|
|
1775
|
-
scheduleId: string | null;
|
|
1776
2003
|
isActive: boolean;
|
|
2004
|
+
scheduleId: string | null;
|
|
1777
2005
|
menuId: string;
|
|
1778
2006
|
shortName: Record<string, string> | null;
|
|
1779
2007
|
allowance: number;
|
|
@@ -2748,6 +2976,43 @@ declare const schemas: {
|
|
|
2748
2976
|
teamOrderId: string;
|
|
2749
2977
|
deliveryAddressId: string;
|
|
2750
2978
|
}>;
|
|
2979
|
+
GetVenueResponse: z.ZodObject<{
|
|
2980
|
+
id: z.ZodString;
|
|
2981
|
+
accessor: z.ZodString;
|
|
2982
|
+
officialName: z.ZodString;
|
|
2983
|
+
legalName: z.ZodString;
|
|
2984
|
+
shortName: z.ZodString;
|
|
2985
|
+
brandName: z.ZodString;
|
|
2986
|
+
primaryLocale: z.ZodString;
|
|
2987
|
+
supportedLocales: z.ZodArray<z.ZodString, "many">;
|
|
2988
|
+
timezone: z.ZodString;
|
|
2989
|
+
createdAt: z.ZodNullable<z.ZodUnknown>;
|
|
2990
|
+
updatedAt: z.ZodNullable<z.ZodUnknown>;
|
|
2991
|
+
}, "strict", z.ZodTypeAny, {
|
|
2992
|
+
id: string;
|
|
2993
|
+
accessor: string;
|
|
2994
|
+
timezone: string;
|
|
2995
|
+
shortName: string;
|
|
2996
|
+
officialName: string;
|
|
2997
|
+
legalName: string;
|
|
2998
|
+
brandName: string;
|
|
2999
|
+
primaryLocale: string;
|
|
3000
|
+
supportedLocales: string[];
|
|
3001
|
+
createdAt?: unknown;
|
|
3002
|
+
updatedAt?: unknown;
|
|
3003
|
+
}, {
|
|
3004
|
+
id: string;
|
|
3005
|
+
accessor: string;
|
|
3006
|
+
timezone: string;
|
|
3007
|
+
shortName: string;
|
|
3008
|
+
officialName: string;
|
|
3009
|
+
legalName: string;
|
|
3010
|
+
brandName: string;
|
|
3011
|
+
primaryLocale: string;
|
|
3012
|
+
supportedLocales: string[];
|
|
3013
|
+
createdAt?: unknown;
|
|
3014
|
+
updatedAt?: unknown;
|
|
3015
|
+
}>;
|
|
2751
3016
|
};
|
|
2752
3017
|
|
|
2753
3018
|
export { schemas };
|
package/dist/schemas.mjs
CHANGED
|
@@ -6,6 +6,12 @@ const GetAreaResponse = z.object({ id: z.string(), venueId: z.string(), accessor
|
|
|
6
6
|
const GetAreaAvailabilityResponse = z.object({ from: z.string().regex(/^\d{4}-\d{2}-\d{2}$/), to: z.string().regex(/^\d{4}-\d{2}-\d{2}$/), bookingMode: z.enum(["slot", "day"]), occupied: z.array(z.object({ date: z.string().regex(/^\d{4}-\d{2}-\d{2}$/), startTime: z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/).nullable(), endTime: z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/).nullable() }).strict()) }).strict();
|
|
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
|
+
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()).nullable(), content: z.object({}).partial().strict().passthrough().nullable(), tags: z.array(z.string()), featuredImageId: z.string().nullable(), 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() }).strict();
|
|
11
|
+
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()), featuredImageId: z.string().nullable(), 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() }).strict();
|
|
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()), featuredImageId: z.string().nullable(), isActive: z.boolean(), isFeatured: z.boolean(), priority: z.number().int().gte(-9007199254740991).lte(9007199254740991) }).partial().strict();
|
|
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()), featuredImageId: z.string().nullable(), 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() }).strict();
|
|
9
15
|
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();
|
|
10
16
|
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();
|
|
11
17
|
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();
|
|
@@ -57,6 +63,7 @@ const SwitchFulfillmentTeamOrderRequest = z.object({ publicId: z.string().min(1)
|
|
|
57
63
|
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();
|
|
58
64
|
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();
|
|
59
65
|
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();
|
|
66
|
+
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();
|
|
60
67
|
const schemas = {
|
|
61
68
|
Area,
|
|
62
69
|
ListAreasResponse,
|
|
@@ -64,6 +71,12 @@ const schemas = {
|
|
|
64
71
|
GetAreaAvailabilityResponse,
|
|
65
72
|
SubmitAreaBookingRequest,
|
|
66
73
|
SubmitAreaBookingResponse,
|
|
74
|
+
includeDrafts,
|
|
75
|
+
Article,
|
|
76
|
+
ListArticlesResponse,
|
|
77
|
+
GetArticleResponse,
|
|
78
|
+
PatchArticleRequest,
|
|
79
|
+
PatchArticleResponse,
|
|
67
80
|
AddToBasketRequest,
|
|
68
81
|
AddToBasketResponse,
|
|
69
82
|
RemoveFromBasketResponse,
|
|
@@ -114,7 +127,8 @@ const schemas = {
|
|
|
114
127
|
SwitchFulfillmentTeamOrderRequest,
|
|
115
128
|
SwitchFulfillmentTeamOrderResponse,
|
|
116
129
|
UpdateDeliveryAddressTeamOrderRequest,
|
|
117
|
-
UpdateDeliveryAddressTeamOrderResponse
|
|
130
|
+
UpdateDeliveryAddressTeamOrderResponse,
|
|
131
|
+
GetVenueResponse
|
|
118
132
|
};
|
|
119
133
|
|
|
120
134
|
export { schemas };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "order3000",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "order3000 node.js sdk",
|
|
5
5
|
"main": "./dist/client.cjs",
|
|
6
6
|
"module": "./dist/client.mjs",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"prettier": "^3.7.4",
|
|
47
47
|
"tsx": "^4.19.2",
|
|
48
48
|
"typescript": "^5.9.3",
|
|
49
|
+
"@kolaveri/eslint-config": "1.6.0",
|
|
49
50
|
"@kolaveri/prettier-config": "1.0.6",
|
|
50
|
-
"@kolaveri/eslint-config": "1.5.2",
|
|
51
51
|
"@kolaveri/tsconfig": "1.0.1"
|
|
52
52
|
},
|
|
53
53
|
"files": [
|