order3000 1.8.0 → 1.10.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 +188 -2
- package/dist/client.d.cts +506 -1
- package/dist/client.d.mts +506 -1
- package/dist/client.mjs +188 -2
- package/dist/schemas.cjs +490 -4
- package/dist/schemas.d.cts +310 -1
- package/dist/schemas.d.mts +310 -1
- package/dist/schemas.mjs +490 -4
- package/package.json +4 -4
package/dist/schemas.mjs
CHANGED
|
@@ -13,7 +13,14 @@ const actorTypeSchema = z.enum(["human", "robot"]);
|
|
|
13
13
|
|
|
14
14
|
const adChannelSchema = z.enum(["google", "facebook", "instagram"]);
|
|
15
15
|
|
|
16
|
-
const adOwnerTypeSchema = z.enum([
|
|
16
|
+
const adOwnerTypeSchema = z.enum([
|
|
17
|
+
"event",
|
|
18
|
+
"ritual",
|
|
19
|
+
"venue",
|
|
20
|
+
"dish",
|
|
21
|
+
"beverage",
|
|
22
|
+
"menu"
|
|
23
|
+
]);
|
|
17
24
|
|
|
18
25
|
const adStatusSchema = z.enum(["draft", "ready", "archived"]);
|
|
19
26
|
|
|
@@ -631,11 +638,31 @@ const createAdResponseSchema = z.object({
|
|
|
631
638
|
z.array(z.any()),
|
|
632
639
|
z.object({}).catchall(z.any())
|
|
633
640
|
]),
|
|
641
|
+
disabledVenueNegativeKeywords: z.union([
|
|
642
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
643
|
+
z.array(z.any()),
|
|
644
|
+
z.object({}).catchall(z.any())
|
|
645
|
+
]),
|
|
634
646
|
dismissedKeywords: z.union([
|
|
635
647
|
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
636
648
|
z.array(z.any()),
|
|
637
649
|
z.object({}).catchall(z.any())
|
|
638
650
|
]),
|
|
651
|
+
keywordMetrics: z.union([
|
|
652
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
653
|
+
z.array(z.any()),
|
|
654
|
+
z.object({}).catchall(z.any())
|
|
655
|
+
]),
|
|
656
|
+
websitePageIds: z.union([
|
|
657
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
658
|
+
z.array(z.any()),
|
|
659
|
+
z.object({}).catchall(z.any())
|
|
660
|
+
]),
|
|
661
|
+
calloutIds: z.union([
|
|
662
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
663
|
+
z.array(z.any()),
|
|
664
|
+
z.object({}).catchall(z.any())
|
|
665
|
+
]),
|
|
639
666
|
publishedContentHash: z.nullable(z.string()),
|
|
640
667
|
publishedAt: z.nullable(z.any()),
|
|
641
668
|
pushedKeywords: z.nullable(
|
|
@@ -645,12 +672,33 @@ const createAdResponseSchema = z.object({
|
|
|
645
672
|
z.object({}).catchall(z.any())
|
|
646
673
|
])
|
|
647
674
|
),
|
|
675
|
+
dailyBudget: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
648
676
|
createdBy: z.nullable(z.string()),
|
|
649
677
|
updatedBy: z.nullable(z.string()),
|
|
650
678
|
createdAt: z.nullable(z.any()),
|
|
651
679
|
updatedAt: z.nullable(z.any())
|
|
652
680
|
}).describe("Successfully created ad");
|
|
653
681
|
|
|
682
|
+
const createCalloutRequestSchema = z.object({
|
|
683
|
+
venueAccessor: z.string().min(1),
|
|
684
|
+
id: z.optional(z.string().min(1)),
|
|
685
|
+
label: z.object({}).catchall(z.string().max(25))
|
|
686
|
+
});
|
|
687
|
+
|
|
688
|
+
const createCalloutResponseSchema = z.object({
|
|
689
|
+
id: z.string(),
|
|
690
|
+
venueId: z.string(),
|
|
691
|
+
label: z.union([
|
|
692
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
693
|
+
z.array(z.any()),
|
|
694
|
+
z.object({}).catchall(z.any())
|
|
695
|
+
]),
|
|
696
|
+
createdBy: z.nullable(z.string()),
|
|
697
|
+
updatedBy: z.nullable(z.string()),
|
|
698
|
+
createdAt: z.any(),
|
|
699
|
+
updatedAt: z.any()
|
|
700
|
+
});
|
|
701
|
+
|
|
654
702
|
const createDeltaPaymentIntentRequestSchema = z.object({
|
|
655
703
|
venueAccessor: z.string().min(1),
|
|
656
704
|
basketId: z.string().min(1),
|
|
@@ -851,6 +899,49 @@ const createTeamOrderResponseSchema = z.object({
|
|
|
851
899
|
teamOrderId: z.uuid()
|
|
852
900
|
});
|
|
853
901
|
|
|
902
|
+
const websitePageOwnerTypeSchema = z.enum([
|
|
903
|
+
"venue",
|
|
904
|
+
"menu",
|
|
905
|
+
"dish",
|
|
906
|
+
"beverage",
|
|
907
|
+
"ingredient",
|
|
908
|
+
"event",
|
|
909
|
+
"ritual"
|
|
910
|
+
]);
|
|
911
|
+
|
|
912
|
+
const createWebsitePageRequestSchema = z.object({
|
|
913
|
+
venueAccessor: z.string().min(1),
|
|
914
|
+
id: z.optional(z.string().min(1)),
|
|
915
|
+
get ownerType() {
|
|
916
|
+
return websitePageOwnerTypeSchema.optional();
|
|
917
|
+
},
|
|
918
|
+
ownerId: z.string().min(1).nullish(),
|
|
919
|
+
label: z.object({}).catchall(z.string()).nullish(),
|
|
920
|
+
target: z.string().min(1)
|
|
921
|
+
});
|
|
922
|
+
|
|
923
|
+
const createWebsitePageResponseSchema = z.object({
|
|
924
|
+
id: z.string(),
|
|
925
|
+
venueId: z.string(),
|
|
926
|
+
get ownerType() {
|
|
927
|
+
return websitePageOwnerTypeSchema;
|
|
928
|
+
},
|
|
929
|
+
ownerId: z.nullable(z.string()),
|
|
930
|
+
label: z.nullable(
|
|
931
|
+
z.union([
|
|
932
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
933
|
+
z.array(z.any()),
|
|
934
|
+
z.object({}).catchall(z.any())
|
|
935
|
+
])
|
|
936
|
+
),
|
|
937
|
+
path: z.nullable(z.string()),
|
|
938
|
+
externalUrl: z.nullable(z.string()),
|
|
939
|
+
createdBy: z.nullable(z.string()),
|
|
940
|
+
updatedBy: z.nullable(z.string()),
|
|
941
|
+
createdAt: z.any(),
|
|
942
|
+
updatedAt: z.any()
|
|
943
|
+
});
|
|
944
|
+
|
|
854
945
|
const dayOfWeekSchema = z.enum([
|
|
855
946
|
"monday",
|
|
856
947
|
"tuesday",
|
|
@@ -916,11 +1007,31 @@ const deleteAdResponseSchema = z.object({
|
|
|
916
1007
|
z.array(z.any()),
|
|
917
1008
|
z.object({}).catchall(z.any())
|
|
918
1009
|
]),
|
|
1010
|
+
disabledVenueNegativeKeywords: z.union([
|
|
1011
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1012
|
+
z.array(z.any()),
|
|
1013
|
+
z.object({}).catchall(z.any())
|
|
1014
|
+
]),
|
|
919
1015
|
dismissedKeywords: z.union([
|
|
920
1016
|
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
921
1017
|
z.array(z.any()),
|
|
922
1018
|
z.object({}).catchall(z.any())
|
|
923
1019
|
]),
|
|
1020
|
+
keywordMetrics: z.union([
|
|
1021
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1022
|
+
z.array(z.any()),
|
|
1023
|
+
z.object({}).catchall(z.any())
|
|
1024
|
+
]),
|
|
1025
|
+
websitePageIds: z.union([
|
|
1026
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1027
|
+
z.array(z.any()),
|
|
1028
|
+
z.object({}).catchall(z.any())
|
|
1029
|
+
]),
|
|
1030
|
+
calloutIds: z.union([
|
|
1031
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1032
|
+
z.array(z.any()),
|
|
1033
|
+
z.object({}).catchall(z.any())
|
|
1034
|
+
]),
|
|
924
1035
|
publishedContentHash: z.nullable(z.string()),
|
|
925
1036
|
publishedAt: z.nullable(z.any()),
|
|
926
1037
|
pushedKeywords: z.nullable(
|
|
@@ -930,6 +1041,7 @@ const deleteAdResponseSchema = z.object({
|
|
|
930
1041
|
z.object({}).catchall(z.any())
|
|
931
1042
|
])
|
|
932
1043
|
),
|
|
1044
|
+
dailyBudget: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
933
1045
|
createdBy: z.nullable(z.string()),
|
|
934
1046
|
updatedBy: z.nullable(z.string()),
|
|
935
1047
|
createdAt: z.nullable(z.any()),
|
|
@@ -937,7 +1049,22 @@ const deleteAdResponseSchema = z.object({
|
|
|
937
1049
|
});
|
|
938
1050
|
|
|
939
1051
|
const deleteAssetResponseSchema = z.object({
|
|
940
|
-
success: z.boolean()
|
|
1052
|
+
success: z.boolean(),
|
|
1053
|
+
deleted: z.boolean()
|
|
1054
|
+
});
|
|
1055
|
+
|
|
1056
|
+
const deleteCalloutResponseSchema = z.object({
|
|
1057
|
+
id: z.string(),
|
|
1058
|
+
venueId: z.string(),
|
|
1059
|
+
label: z.union([
|
|
1060
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1061
|
+
z.array(z.any()),
|
|
1062
|
+
z.object({}).catchall(z.any())
|
|
1063
|
+
]),
|
|
1064
|
+
createdBy: z.nullable(z.string()),
|
|
1065
|
+
updatedBy: z.nullable(z.string()),
|
|
1066
|
+
createdAt: z.any(),
|
|
1067
|
+
updatedAt: z.any()
|
|
941
1068
|
});
|
|
942
1069
|
|
|
943
1070
|
const deleteEventResponseSchema = z.object({
|
|
@@ -990,6 +1117,28 @@ const deleteEventResponseSchema = z.object({
|
|
|
990
1117
|
updatedAt: z.nullable(z.any())
|
|
991
1118
|
});
|
|
992
1119
|
|
|
1120
|
+
const deleteWebsitePageResponseSchema = z.object({
|
|
1121
|
+
id: z.string(),
|
|
1122
|
+
venueId: z.string(),
|
|
1123
|
+
get ownerType() {
|
|
1124
|
+
return websitePageOwnerTypeSchema;
|
|
1125
|
+
},
|
|
1126
|
+
ownerId: z.nullable(z.string()),
|
|
1127
|
+
label: z.nullable(
|
|
1128
|
+
z.union([
|
|
1129
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1130
|
+
z.array(z.any()),
|
|
1131
|
+
z.object({}).catchall(z.any())
|
|
1132
|
+
])
|
|
1133
|
+
),
|
|
1134
|
+
path: z.nullable(z.string()),
|
|
1135
|
+
externalUrl: z.nullable(z.string()),
|
|
1136
|
+
createdBy: z.nullable(z.string()),
|
|
1137
|
+
updatedBy: z.nullable(z.string()),
|
|
1138
|
+
createdAt: z.any(),
|
|
1139
|
+
updatedAt: z.any()
|
|
1140
|
+
});
|
|
1141
|
+
|
|
993
1142
|
const depositTransactionTypeSchema = z.enum([
|
|
994
1143
|
"charged",
|
|
995
1144
|
"refunded",
|
|
@@ -1079,11 +1228,31 @@ const editAdResponseSchema = z.object({
|
|
|
1079
1228
|
z.array(z.any()),
|
|
1080
1229
|
z.object({}).catchall(z.any())
|
|
1081
1230
|
]),
|
|
1231
|
+
disabledVenueNegativeKeywords: z.union([
|
|
1232
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1233
|
+
z.array(z.any()),
|
|
1234
|
+
z.object({}).catchall(z.any())
|
|
1235
|
+
]),
|
|
1082
1236
|
dismissedKeywords: z.union([
|
|
1083
1237
|
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1084
1238
|
z.array(z.any()),
|
|
1085
1239
|
z.object({}).catchall(z.any())
|
|
1086
1240
|
]),
|
|
1241
|
+
keywordMetrics: z.union([
|
|
1242
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1243
|
+
z.array(z.any()),
|
|
1244
|
+
z.object({}).catchall(z.any())
|
|
1245
|
+
]),
|
|
1246
|
+
websitePageIds: z.union([
|
|
1247
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1248
|
+
z.array(z.any()),
|
|
1249
|
+
z.object({}).catchall(z.any())
|
|
1250
|
+
]),
|
|
1251
|
+
calloutIds: z.union([
|
|
1252
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1253
|
+
z.array(z.any()),
|
|
1254
|
+
z.object({}).catchall(z.any())
|
|
1255
|
+
]),
|
|
1087
1256
|
publishedContentHash: z.nullable(z.string()),
|
|
1088
1257
|
publishedAt: z.nullable(z.any()),
|
|
1089
1258
|
pushedKeywords: z.nullable(
|
|
@@ -1093,6 +1262,7 @@ const editAdResponseSchema = z.object({
|
|
|
1093
1262
|
z.object({}).catchall(z.any())
|
|
1094
1263
|
])
|
|
1095
1264
|
),
|
|
1265
|
+
dailyBudget: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1096
1266
|
createdBy: z.nullable(z.string()),
|
|
1097
1267
|
updatedBy: z.nullable(z.string()),
|
|
1098
1268
|
createdAt: z.nullable(z.any()),
|
|
@@ -1462,11 +1632,31 @@ const editMetaAdResponseSchema = z.object({
|
|
|
1462
1632
|
z.array(z.any()),
|
|
1463
1633
|
z.object({}).catchall(z.any())
|
|
1464
1634
|
]),
|
|
1635
|
+
disabledVenueNegativeKeywords: z.union([
|
|
1636
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1637
|
+
z.array(z.any()),
|
|
1638
|
+
z.object({}).catchall(z.any())
|
|
1639
|
+
]),
|
|
1465
1640
|
dismissedKeywords: z.union([
|
|
1466
1641
|
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1467
1642
|
z.array(z.any()),
|
|
1468
1643
|
z.object({}).catchall(z.any())
|
|
1469
1644
|
]),
|
|
1645
|
+
keywordMetrics: z.union([
|
|
1646
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1647
|
+
z.array(z.any()),
|
|
1648
|
+
z.object({}).catchall(z.any())
|
|
1649
|
+
]),
|
|
1650
|
+
websitePageIds: z.union([
|
|
1651
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1652
|
+
z.array(z.any()),
|
|
1653
|
+
z.object({}).catchall(z.any())
|
|
1654
|
+
]),
|
|
1655
|
+
calloutIds: z.union([
|
|
1656
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1657
|
+
z.array(z.any()),
|
|
1658
|
+
z.object({}).catchall(z.any())
|
|
1659
|
+
]),
|
|
1470
1660
|
publishedContentHash: z.nullable(z.string()),
|
|
1471
1661
|
publishedAt: z.nullable(z.any()),
|
|
1472
1662
|
pushedKeywords: z.nullable(
|
|
@@ -1476,6 +1666,7 @@ const editMetaAdResponseSchema = z.object({
|
|
|
1476
1666
|
z.object({}).catchall(z.any())
|
|
1477
1667
|
])
|
|
1478
1668
|
),
|
|
1669
|
+
dailyBudget: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1479
1670
|
createdBy: z.nullable(z.string()),
|
|
1480
1671
|
updatedBy: z.nullable(z.string()),
|
|
1481
1672
|
createdAt: z.nullable(z.any()),
|
|
@@ -1590,11 +1781,31 @@ const fetchAdResponseSchema = z.object({
|
|
|
1590
1781
|
z.array(z.any()),
|
|
1591
1782
|
z.object({}).catchall(z.any())
|
|
1592
1783
|
]),
|
|
1784
|
+
disabledVenueNegativeKeywords: z.union([
|
|
1785
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1786
|
+
z.array(z.any()),
|
|
1787
|
+
z.object({}).catchall(z.any())
|
|
1788
|
+
]),
|
|
1593
1789
|
dismissedKeywords: z.union([
|
|
1594
1790
|
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1595
1791
|
z.array(z.any()),
|
|
1596
1792
|
z.object({}).catchall(z.any())
|
|
1597
1793
|
]),
|
|
1794
|
+
keywordMetrics: z.union([
|
|
1795
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1796
|
+
z.array(z.any()),
|
|
1797
|
+
z.object({}).catchall(z.any())
|
|
1798
|
+
]),
|
|
1799
|
+
websitePageIds: z.union([
|
|
1800
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1801
|
+
z.array(z.any()),
|
|
1802
|
+
z.object({}).catchall(z.any())
|
|
1803
|
+
]),
|
|
1804
|
+
calloutIds: z.union([
|
|
1805
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1806
|
+
z.array(z.any()),
|
|
1807
|
+
z.object({}).catchall(z.any())
|
|
1808
|
+
]),
|
|
1598
1809
|
publishedContentHash: z.nullable(z.string()),
|
|
1599
1810
|
publishedAt: z.nullable(z.any()),
|
|
1600
1811
|
pushedKeywords: z.nullable(
|
|
@@ -1604,6 +1815,7 @@ const fetchAdResponseSchema = z.object({
|
|
|
1604
1815
|
z.object({}).catchall(z.any())
|
|
1605
1816
|
])
|
|
1606
1817
|
),
|
|
1818
|
+
dailyBudget: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1607
1819
|
createdBy: z.nullable(z.string()),
|
|
1608
1820
|
updatedBy: z.nullable(z.string()),
|
|
1609
1821
|
createdAt: z.nullable(z.any()),
|
|
@@ -1666,11 +1878,31 @@ const fetchAdsResponseSchema = z.array(
|
|
|
1666
1878
|
z.array(z.any()),
|
|
1667
1879
|
z.object({}).catchall(z.any())
|
|
1668
1880
|
]),
|
|
1881
|
+
disabledVenueNegativeKeywords: z.union([
|
|
1882
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1883
|
+
z.array(z.any()),
|
|
1884
|
+
z.object({}).catchall(z.any())
|
|
1885
|
+
]),
|
|
1669
1886
|
dismissedKeywords: z.union([
|
|
1670
1887
|
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1671
1888
|
z.array(z.any()),
|
|
1672
1889
|
z.object({}).catchall(z.any())
|
|
1673
1890
|
]),
|
|
1891
|
+
keywordMetrics: z.union([
|
|
1892
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1893
|
+
z.array(z.any()),
|
|
1894
|
+
z.object({}).catchall(z.any())
|
|
1895
|
+
]),
|
|
1896
|
+
websitePageIds: z.union([
|
|
1897
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1898
|
+
z.array(z.any()),
|
|
1899
|
+
z.object({}).catchall(z.any())
|
|
1900
|
+
]),
|
|
1901
|
+
calloutIds: z.union([
|
|
1902
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1903
|
+
z.array(z.any()),
|
|
1904
|
+
z.object({}).catchall(z.any())
|
|
1905
|
+
]),
|
|
1674
1906
|
publishedContentHash: z.nullable(z.string()),
|
|
1675
1907
|
publishedAt: z.nullable(z.any()),
|
|
1676
1908
|
pushedKeywords: z.nullable(
|
|
@@ -1680,6 +1912,7 @@ const fetchAdsResponseSchema = z.array(
|
|
|
1680
1912
|
z.object({}).catchall(z.any())
|
|
1681
1913
|
])
|
|
1682
1914
|
),
|
|
1915
|
+
dailyBudget: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1683
1916
|
createdBy: z.nullable(z.string()),
|
|
1684
1917
|
updatedBy: z.nullable(z.string()),
|
|
1685
1918
|
createdAt: z.nullable(z.any()),
|
|
@@ -2691,6 +2924,7 @@ const fetchRitualResponseSchema = z.object({
|
|
|
2691
2924
|
createdBy: z.nullable(z.string()),
|
|
2692
2925
|
updatedBy: z.nullable(z.string()),
|
|
2693
2926
|
venueId: z.nullable(z.string()),
|
|
2927
|
+
contentHash: z.nullable(z.string()),
|
|
2694
2928
|
publicUrl: z.string()
|
|
2695
2929
|
})
|
|
2696
2930
|
),
|
|
@@ -2951,6 +3185,22 @@ const getBasketTotalsResponseSchema = z.object({
|
|
|
2951
3185
|
)
|
|
2952
3186
|
});
|
|
2953
3187
|
|
|
3188
|
+
const getCalloutsResponseSchema = z.array(
|
|
3189
|
+
z.object({
|
|
3190
|
+
id: z.string(),
|
|
3191
|
+
venueId: z.string(),
|
|
3192
|
+
label: z.union([
|
|
3193
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3194
|
+
z.array(z.any()),
|
|
3195
|
+
z.object({}).catchall(z.any())
|
|
3196
|
+
]),
|
|
3197
|
+
createdBy: z.nullable(z.string()),
|
|
3198
|
+
updatedBy: z.nullable(z.string()),
|
|
3199
|
+
createdAt: z.any(),
|
|
3200
|
+
updatedAt: z.any()
|
|
3201
|
+
})
|
|
3202
|
+
);
|
|
3203
|
+
|
|
2954
3204
|
const subscriptionCreditStatusSchema = z.enum([
|
|
2955
3205
|
"available",
|
|
2956
3206
|
"redeemed",
|
|
@@ -3028,6 +3278,30 @@ const getVenueResponseSchema = z.object({
|
|
|
3028
3278
|
"A venue. The public API exposes only the minimal id + accessor + naming + locale fields the CLI's `venues use` / `auth whoami` consume."
|
|
3029
3279
|
);
|
|
3030
3280
|
|
|
3281
|
+
const getWebsitePagesResponseSchema = z.array(
|
|
3282
|
+
z.object({
|
|
3283
|
+
id: z.string(),
|
|
3284
|
+
venueId: z.string(),
|
|
3285
|
+
get ownerType() {
|
|
3286
|
+
return websitePageOwnerTypeSchema;
|
|
3287
|
+
},
|
|
3288
|
+
ownerId: z.nullable(z.string()),
|
|
3289
|
+
label: z.nullable(
|
|
3290
|
+
z.union([
|
|
3291
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3292
|
+
z.array(z.any()),
|
|
3293
|
+
z.object({}).catchall(z.any())
|
|
3294
|
+
])
|
|
3295
|
+
),
|
|
3296
|
+
path: z.nullable(z.string()),
|
|
3297
|
+
externalUrl: z.nullable(z.string()),
|
|
3298
|
+
createdBy: z.nullable(z.string()),
|
|
3299
|
+
updatedBy: z.nullable(z.string()),
|
|
3300
|
+
createdAt: z.any(),
|
|
3301
|
+
updatedAt: z.any()
|
|
3302
|
+
})
|
|
3303
|
+
);
|
|
3304
|
+
|
|
3031
3305
|
const integrationNotificationTypeSchema = z.enum([
|
|
3032
3306
|
"order_created",
|
|
3033
3307
|
"order_cancelled",
|
|
@@ -3084,6 +3358,8 @@ const joinTeamOrderResponseSchema = z.object({
|
|
|
3084
3358
|
|
|
3085
3359
|
const jurisdictionSchema = z.enum(["DE", "CH", "FR", "IT"]);
|
|
3086
3360
|
|
|
3361
|
+
const keywordPolaritySchema = z.enum(["positive", "negative"]);
|
|
3362
|
+
|
|
3087
3363
|
const localeSchema = z.enum([
|
|
3088
3364
|
"aa",
|
|
3089
3365
|
"ab",
|
|
@@ -3520,6 +3796,17 @@ const roleSchema = z.enum([
|
|
|
3520
3796
|
"rider"
|
|
3521
3797
|
]);
|
|
3522
3798
|
|
|
3799
|
+
const saveAdCalloutsRequestSchema = z.object({
|
|
3800
|
+
venueAccessor: z.string().min(1),
|
|
3801
|
+
adId: z.string().min(1),
|
|
3802
|
+
calloutIds: z.array(z.string().min(1))
|
|
3803
|
+
});
|
|
3804
|
+
|
|
3805
|
+
const saveAdCalloutsResponseSchema = z.object({
|
|
3806
|
+
success: z.boolean(),
|
|
3807
|
+
calloutIds: z.array(z.string())
|
|
3808
|
+
});
|
|
3809
|
+
|
|
3523
3810
|
const saveAdKeywordsRequestSchema = z.object({
|
|
3524
3811
|
venueAccessor: z.string().min(1),
|
|
3525
3812
|
adId: z.string().min(1),
|
|
@@ -3535,8 +3822,135 @@ const saveAdKeywordsResponseSchema = z.object({
|
|
|
3535
3822
|
disabledVenueKeywords: z.array(z.string())
|
|
3536
3823
|
});
|
|
3537
3824
|
|
|
3825
|
+
const saveAdNegativeKeywordsRequestSchema = z.object({
|
|
3826
|
+
venueAccessor: z.string().min(1),
|
|
3827
|
+
adId: z.string().min(1),
|
|
3828
|
+
negativeKeywords: z.array(z.string().min(1)),
|
|
3829
|
+
disabledVenueNegativeKeywords: z.array(z.string().min(1))
|
|
3830
|
+
});
|
|
3831
|
+
|
|
3832
|
+
const saveAdNegativeKeywordsResponseSchema = z.object({
|
|
3833
|
+
success: z.boolean(),
|
|
3834
|
+
negativeKeywords: z.array(z.string()),
|
|
3835
|
+
disabledVenueNegativeKeywords: z.array(z.string()),
|
|
3836
|
+
syncedToGoogle: z.boolean()
|
|
3837
|
+
});
|
|
3838
|
+
|
|
3839
|
+
const saveAdWebsitePagesRequestSchema = z.object({
|
|
3840
|
+
venueAccessor: z.string().min(1),
|
|
3841
|
+
adId: z.string().min(1),
|
|
3842
|
+
websitePageIds: z.array(z.string().min(1))
|
|
3843
|
+
});
|
|
3844
|
+
|
|
3845
|
+
const saveAdWebsitePagesResponseSchema = z.object({
|
|
3846
|
+
success: z.boolean(),
|
|
3847
|
+
websitePageIds: z.array(z.string())
|
|
3848
|
+
});
|
|
3849
|
+
|
|
3538
3850
|
const scanTokenEntityTypeSchema = z.enum(["order", "depositware"]);
|
|
3539
3851
|
|
|
3852
|
+
const setAdBudgetRequestSchema = z.object({
|
|
3853
|
+
venueAccessor: z.string().min(1),
|
|
3854
|
+
adId: z.string().min(1),
|
|
3855
|
+
dailyBudget: z.int().max(9007199254740991).gt(0)
|
|
3856
|
+
});
|
|
3857
|
+
|
|
3858
|
+
const setAdBudgetResponseSchema = z.object({
|
|
3859
|
+
id: z.string(),
|
|
3860
|
+
venueId: z.string(),
|
|
3861
|
+
get ownerEntityType() {
|
|
3862
|
+
return adOwnerTypeSchema;
|
|
3863
|
+
},
|
|
3864
|
+
ownerEntityId: z.string(),
|
|
3865
|
+
get channel() {
|
|
3866
|
+
return adChannelSchema;
|
|
3867
|
+
},
|
|
3868
|
+
get status() {
|
|
3869
|
+
return adStatusSchema;
|
|
3870
|
+
},
|
|
3871
|
+
campaignId: z.nullable(z.string()),
|
|
3872
|
+
content: z.union([
|
|
3873
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3874
|
+
z.array(z.any()),
|
|
3875
|
+
z.object({}).catchall(z.any())
|
|
3876
|
+
]),
|
|
3877
|
+
metaContent: z.nullable(
|
|
3878
|
+
z.union([
|
|
3879
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3880
|
+
z.array(z.any()),
|
|
3881
|
+
z.object({}).catchall(z.any())
|
|
3882
|
+
])
|
|
3883
|
+
),
|
|
3884
|
+
metaRefs: z.nullable(
|
|
3885
|
+
z.union([
|
|
3886
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3887
|
+
z.array(z.any()),
|
|
3888
|
+
z.object({}).catchall(z.any())
|
|
3889
|
+
])
|
|
3890
|
+
),
|
|
3891
|
+
servedMarket: z.nullable(
|
|
3892
|
+
z.union([
|
|
3893
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3894
|
+
z.array(z.any()),
|
|
3895
|
+
z.object({}).catchall(z.any())
|
|
3896
|
+
])
|
|
3897
|
+
),
|
|
3898
|
+
keywords: z.union([
|
|
3899
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3900
|
+
z.array(z.any()),
|
|
3901
|
+
z.object({}).catchall(z.any())
|
|
3902
|
+
]),
|
|
3903
|
+
negativeKeywords: z.union([
|
|
3904
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3905
|
+
z.array(z.any()),
|
|
3906
|
+
z.object({}).catchall(z.any())
|
|
3907
|
+
]),
|
|
3908
|
+
disabledVenueKeywords: z.union([
|
|
3909
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3910
|
+
z.array(z.any()),
|
|
3911
|
+
z.object({}).catchall(z.any())
|
|
3912
|
+
]),
|
|
3913
|
+
disabledVenueNegativeKeywords: z.union([
|
|
3914
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3915
|
+
z.array(z.any()),
|
|
3916
|
+
z.object({}).catchall(z.any())
|
|
3917
|
+
]),
|
|
3918
|
+
dismissedKeywords: z.union([
|
|
3919
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3920
|
+
z.array(z.any()),
|
|
3921
|
+
z.object({}).catchall(z.any())
|
|
3922
|
+
]),
|
|
3923
|
+
keywordMetrics: z.union([
|
|
3924
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3925
|
+
z.array(z.any()),
|
|
3926
|
+
z.object({}).catchall(z.any())
|
|
3927
|
+
]),
|
|
3928
|
+
websitePageIds: z.union([
|
|
3929
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3930
|
+
z.array(z.any()),
|
|
3931
|
+
z.object({}).catchall(z.any())
|
|
3932
|
+
]),
|
|
3933
|
+
calloutIds: z.union([
|
|
3934
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3935
|
+
z.array(z.any()),
|
|
3936
|
+
z.object({}).catchall(z.any())
|
|
3937
|
+
]),
|
|
3938
|
+
publishedContentHash: z.nullable(z.string()),
|
|
3939
|
+
publishedAt: z.nullable(z.any()),
|
|
3940
|
+
pushedKeywords: z.nullable(
|
|
3941
|
+
z.union([
|
|
3942
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3943
|
+
z.array(z.any()),
|
|
3944
|
+
z.object({}).catchall(z.any())
|
|
3945
|
+
])
|
|
3946
|
+
),
|
|
3947
|
+
dailyBudget: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3948
|
+
createdBy: z.nullable(z.string()),
|
|
3949
|
+
updatedBy: z.nullable(z.string()),
|
|
3950
|
+
createdAt: z.nullable(z.any()),
|
|
3951
|
+
updatedAt: z.nullable(z.any())
|
|
3952
|
+
});
|
|
3953
|
+
|
|
3540
3954
|
const setArticleFeatureImageUploadBodySchema = z.object({
|
|
3541
3955
|
file: z.string().describe("Image file (multipart/form-data field)")
|
|
3542
3956
|
});
|
|
@@ -3729,6 +4143,26 @@ const teamOrderPaymentStatusSchema = z.enum([
|
|
|
3729
4143
|
"failed"
|
|
3730
4144
|
]);
|
|
3731
4145
|
|
|
4146
|
+
const updateCalloutRequestSchema = z.object({
|
|
4147
|
+
venueAccessor: z.string().min(1),
|
|
4148
|
+
id: z.string().min(1),
|
|
4149
|
+
label: z.object({}).catchall(z.string().max(25))
|
|
4150
|
+
});
|
|
4151
|
+
|
|
4152
|
+
const updateCalloutResponseSchema = z.object({
|
|
4153
|
+
id: z.string(),
|
|
4154
|
+
venueId: z.string(),
|
|
4155
|
+
label: z.union([
|
|
4156
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
4157
|
+
z.array(z.any()),
|
|
4158
|
+
z.object({}).catchall(z.any())
|
|
4159
|
+
]),
|
|
4160
|
+
createdBy: z.nullable(z.string()),
|
|
4161
|
+
updatedBy: z.nullable(z.string()),
|
|
4162
|
+
createdAt: z.any(),
|
|
4163
|
+
updatedAt: z.any()
|
|
4164
|
+
});
|
|
4165
|
+
|
|
3732
4166
|
const updateDeliveryAddressTeamOrderRequestSchema = z.object({
|
|
3733
4167
|
publicId: z.string().min(1),
|
|
3734
4168
|
sessionId: z.string().min(1),
|
|
@@ -3742,6 +4176,35 @@ const updateDeliveryAddressTeamOrderResponseSchema = z.object({
|
|
|
3742
4176
|
deliveryAddressId: z.string()
|
|
3743
4177
|
});
|
|
3744
4178
|
|
|
4179
|
+
const updateWebsitePageRequestSchema = z.object({
|
|
4180
|
+
venueAccessor: z.string().min(1),
|
|
4181
|
+
id: z.string().min(1),
|
|
4182
|
+
label: z.object({}).catchall(z.string()).nullish(),
|
|
4183
|
+
target: z.string().min(1)
|
|
4184
|
+
});
|
|
4185
|
+
|
|
4186
|
+
const updateWebsitePageResponseSchema = z.object({
|
|
4187
|
+
id: z.string(),
|
|
4188
|
+
venueId: z.string(),
|
|
4189
|
+
get ownerType() {
|
|
4190
|
+
return websitePageOwnerTypeSchema;
|
|
4191
|
+
},
|
|
4192
|
+
ownerId: z.nullable(z.string()),
|
|
4193
|
+
label: z.nullable(
|
|
4194
|
+
z.union([
|
|
4195
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
4196
|
+
z.array(z.any()),
|
|
4197
|
+
z.object({}).catchall(z.any())
|
|
4198
|
+
])
|
|
4199
|
+
),
|
|
4200
|
+
path: z.nullable(z.string()),
|
|
4201
|
+
externalUrl: z.nullable(z.string()),
|
|
4202
|
+
createdBy: z.nullable(z.string()),
|
|
4203
|
+
updatedBy: z.nullable(z.string()),
|
|
4204
|
+
createdAt: z.any(),
|
|
4205
|
+
updatedAt: z.any()
|
|
4206
|
+
});
|
|
4207
|
+
|
|
3745
4208
|
const uploadAssetResponseSchema = z.object({
|
|
3746
4209
|
asset: z.object({
|
|
3747
4210
|
id: z.string(),
|
|
@@ -3784,7 +4247,8 @@ const uploadAssetResponseSchema = z.object({
|
|
|
3784
4247
|
updatedAt: z.nullable(z.any()),
|
|
3785
4248
|
createdBy: z.nullable(z.string()),
|
|
3786
4249
|
updatedBy: z.nullable(z.string()),
|
|
3787
|
-
venueId: z.nullable(z.string())
|
|
4250
|
+
venueId: z.nullable(z.string()),
|
|
4251
|
+
contentHash: z.nullable(z.string())
|
|
3788
4252
|
}),
|
|
3789
4253
|
publicUrl: z.nullable(z.string())
|
|
3790
4254
|
});
|
|
@@ -3851,6 +4315,8 @@ const schemas = {
|
|
|
3851
4315
|
CountryCode: countryCodeSchema,
|
|
3852
4316
|
CreateAdRequest: createAdRequestSchema,
|
|
3853
4317
|
CreateAdResponse: createAdResponseSchema,
|
|
4318
|
+
CreateCalloutRequest: createCalloutRequestSchema,
|
|
4319
|
+
CreateCalloutResponse: createCalloutResponseSchema,
|
|
3854
4320
|
CreateDeltaPaymentIntentRequest: createDeltaPaymentIntentRequestSchema,
|
|
3855
4321
|
CreateDeltaPaymentIntentResponse: createDeltaPaymentIntentResponseSchema,
|
|
3856
4322
|
CreateEventRequest: createEventRequestSchema,
|
|
@@ -3859,11 +4325,15 @@ const schemas = {
|
|
|
3859
4325
|
CreatePaymentIntentResponse: createPaymentIntentResponseSchema,
|
|
3860
4326
|
CreateTeamOrderRequest: createTeamOrderRequestSchema,
|
|
3861
4327
|
CreateTeamOrderResponse: createTeamOrderResponseSchema,
|
|
4328
|
+
CreateWebsitePageRequest: createWebsitePageRequestSchema,
|
|
4329
|
+
CreateWebsitePageResponse: createWebsitePageResponseSchema,
|
|
3862
4330
|
Currency: currencySchema,
|
|
3863
4331
|
DayOfWeek: dayOfWeekSchema,
|
|
3864
4332
|
DeleteAdResponse: deleteAdResponseSchema,
|
|
3865
4333
|
DeleteAssetResponse: deleteAssetResponseSchema,
|
|
4334
|
+
DeleteCalloutResponse: deleteCalloutResponseSchema,
|
|
3866
4335
|
DeleteEventResponse: deleteEventResponseSchema,
|
|
4336
|
+
DeleteWebsitePageResponse: deleteWebsitePageResponseSchema,
|
|
3867
4337
|
DeliveryAddress: deliveryAddressSchema,
|
|
3868
4338
|
DepositTransactionType: depositTransactionTypeSchema,
|
|
3869
4339
|
DepositwareStatus: depositwareStatusSchema,
|
|
@@ -3909,9 +4379,11 @@ const schemas = {
|
|
|
3909
4379
|
GetAreaAvailabilityResponse: getAreaAvailabilityResponseSchema,
|
|
3910
4380
|
GetBasketTotalsRequest: getBasketTotalsRequestSchema,
|
|
3911
4381
|
GetBasketTotalsResponse: getBasketTotalsResponseSchema,
|
|
4382
|
+
GetCalloutsResponse: getCalloutsResponseSchema,
|
|
3912
4383
|
GetSubscriptionCreditsResponse: getSubscriptionCreditsResponseSchema,
|
|
3913
4384
|
GetSubscriptionResponse: getSubscriptionResponseSchema,
|
|
3914
4385
|
GetVenueResponse: getVenueResponseSchema,
|
|
4386
|
+
GetWebsitePagesResponse: getWebsitePagesResponseSchema,
|
|
3915
4387
|
IntegrationNotificationType: integrationNotificationTypeSchema,
|
|
3916
4388
|
IntegrationType: integrationTypeSchema,
|
|
3917
4389
|
InventoryAssetStatus: inventoryAssetStatusSchema,
|
|
@@ -3920,6 +4392,7 @@ const schemas = {
|
|
|
3920
4392
|
JoinTeamOrderRequest: joinTeamOrderRequestSchema,
|
|
3921
4393
|
JoinTeamOrderResponse: joinTeamOrderResponseSchema,
|
|
3922
4394
|
Jurisdiction: jurisdictionSchema,
|
|
4395
|
+
KeywordPolarity: keywordPolaritySchema,
|
|
3923
4396
|
Locale: localeSchema,
|
|
3924
4397
|
MakeReservationRequest: makeReservationRequestSchema,
|
|
3925
4398
|
MakeReservationResponse: makeReservationResponseSchema,
|
|
@@ -3949,10 +4422,18 @@ const schemas = {
|
|
|
3949
4422
|
ReservationStatus: reservationStatusSchema,
|
|
3950
4423
|
RitualType: ritualTypeSchema,
|
|
3951
4424
|
Role: roleSchema,
|
|
4425
|
+
SaveAdCalloutsRequest: saveAdCalloutsRequestSchema,
|
|
4426
|
+
SaveAdCalloutsResponse: saveAdCalloutsResponseSchema,
|
|
3952
4427
|
SaveAdKeywordsRequest: saveAdKeywordsRequestSchema,
|
|
3953
4428
|
SaveAdKeywordsResponse: saveAdKeywordsResponseSchema,
|
|
4429
|
+
SaveAdNegativeKeywordsRequest: saveAdNegativeKeywordsRequestSchema,
|
|
4430
|
+
SaveAdNegativeKeywordsResponse: saveAdNegativeKeywordsResponseSchema,
|
|
4431
|
+
SaveAdWebsitePagesRequest: saveAdWebsitePagesRequestSchema,
|
|
4432
|
+
SaveAdWebsitePagesResponse: saveAdWebsitePagesResponseSchema,
|
|
3954
4433
|
ScanTokenEntityType: scanTokenEntityTypeSchema,
|
|
3955
4434
|
Schedule: scheduleSchema,
|
|
4435
|
+
SetAdBudgetRequest: setAdBudgetRequestSchema,
|
|
4436
|
+
SetAdBudgetResponse: setAdBudgetResponseSchema,
|
|
3956
4437
|
SetArticleFeatureImageUploadBody: setArticleFeatureImageUploadBodySchema,
|
|
3957
4438
|
SetBasketDeclaredReturnsRequest: setBasketDeclaredReturnsRequestSchema,
|
|
3958
4439
|
SetBasketDeclaredReturnsResponse: setBasketDeclaredReturnsResponseSchema,
|
|
@@ -3980,14 +4461,19 @@ const schemas = {
|
|
|
3980
4461
|
TeamOrderPaymentStatus: teamOrderPaymentStatusSchema,
|
|
3981
4462
|
TeamOrderStatus: teamOrderStatusSchema,
|
|
3982
4463
|
Unit: unitSchema,
|
|
4464
|
+
UpdateCalloutRequest: updateCalloutRequestSchema,
|
|
4465
|
+
UpdateCalloutResponse: updateCalloutResponseSchema,
|
|
3983
4466
|
UpdateDeliveryAddressTeamOrderRequest: updateDeliveryAddressTeamOrderRequestSchema,
|
|
3984
4467
|
UpdateDeliveryAddressTeamOrderResponse: updateDeliveryAddressTeamOrderResponseSchema,
|
|
4468
|
+
UpdateWebsitePageRequest: updateWebsitePageRequestSchema,
|
|
4469
|
+
UpdateWebsitePageResponse: updateWebsitePageResponseSchema,
|
|
3985
4470
|
UploadAssetResponse: uploadAssetResponseSchema,
|
|
3986
4471
|
VenueAssetType: venueAssetTypeSchema,
|
|
3987
4472
|
VenueChargeType: venueChargeTypeSchema,
|
|
3988
4473
|
VenueEmailSenderStatus: venueEmailSenderStatusSchema,
|
|
3989
4474
|
VenueType: venueTypeSchema,
|
|
3990
|
-
VenueUserStatus: venueUserStatusSchema
|
|
4475
|
+
VenueUserStatus: venueUserStatusSchema,
|
|
4476
|
+
WebsitePageOwnerType: websitePageOwnerTypeSchema
|
|
3991
4477
|
};
|
|
3992
4478
|
|
|
3993
4479
|
export { schemas };
|