order3000 1.8.0 → 1.9.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 +148 -0
- package/dist/client.d.cts +447 -1
- package/dist/client.d.mts +447 -1
- package/dist/client.mjs +148 -0
- package/dist/schemas.cjs +485 -2
- package/dist/schemas.d.cts +307 -1
- package/dist/schemas.d.mts +307 -1
- package/dist/schemas.mjs +485 -2
- package/package.json +2 -2
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()),
|
|
@@ -940,6 +1052,20 @@ const deleteAssetResponseSchema = z.object({
|
|
|
940
1052
|
success: z.boolean()
|
|
941
1053
|
});
|
|
942
1054
|
|
|
1055
|
+
const deleteCalloutResponseSchema = z.object({
|
|
1056
|
+
id: z.string(),
|
|
1057
|
+
venueId: z.string(),
|
|
1058
|
+
label: z.union([
|
|
1059
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1060
|
+
z.array(z.any()),
|
|
1061
|
+
z.object({}).catchall(z.any())
|
|
1062
|
+
]),
|
|
1063
|
+
createdBy: z.nullable(z.string()),
|
|
1064
|
+
updatedBy: z.nullable(z.string()),
|
|
1065
|
+
createdAt: z.any(),
|
|
1066
|
+
updatedAt: z.any()
|
|
1067
|
+
});
|
|
1068
|
+
|
|
943
1069
|
const deleteEventResponseSchema = z.object({
|
|
944
1070
|
id: z.string(),
|
|
945
1071
|
venueId: z.string(),
|
|
@@ -990,6 +1116,28 @@ const deleteEventResponseSchema = z.object({
|
|
|
990
1116
|
updatedAt: z.nullable(z.any())
|
|
991
1117
|
});
|
|
992
1118
|
|
|
1119
|
+
const deleteWebsitePageResponseSchema = z.object({
|
|
1120
|
+
id: z.string(),
|
|
1121
|
+
venueId: z.string(),
|
|
1122
|
+
get ownerType() {
|
|
1123
|
+
return websitePageOwnerTypeSchema;
|
|
1124
|
+
},
|
|
1125
|
+
ownerId: z.nullable(z.string()),
|
|
1126
|
+
label: z.nullable(
|
|
1127
|
+
z.union([
|
|
1128
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1129
|
+
z.array(z.any()),
|
|
1130
|
+
z.object({}).catchall(z.any())
|
|
1131
|
+
])
|
|
1132
|
+
),
|
|
1133
|
+
path: z.nullable(z.string()),
|
|
1134
|
+
externalUrl: z.nullable(z.string()),
|
|
1135
|
+
createdBy: z.nullable(z.string()),
|
|
1136
|
+
updatedBy: z.nullable(z.string()),
|
|
1137
|
+
createdAt: z.any(),
|
|
1138
|
+
updatedAt: z.any()
|
|
1139
|
+
});
|
|
1140
|
+
|
|
993
1141
|
const depositTransactionTypeSchema = z.enum([
|
|
994
1142
|
"charged",
|
|
995
1143
|
"refunded",
|
|
@@ -1079,11 +1227,31 @@ const editAdResponseSchema = z.object({
|
|
|
1079
1227
|
z.array(z.any()),
|
|
1080
1228
|
z.object({}).catchall(z.any())
|
|
1081
1229
|
]),
|
|
1230
|
+
disabledVenueNegativeKeywords: z.union([
|
|
1231
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1232
|
+
z.array(z.any()),
|
|
1233
|
+
z.object({}).catchall(z.any())
|
|
1234
|
+
]),
|
|
1082
1235
|
dismissedKeywords: z.union([
|
|
1083
1236
|
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1084
1237
|
z.array(z.any()),
|
|
1085
1238
|
z.object({}).catchall(z.any())
|
|
1086
1239
|
]),
|
|
1240
|
+
keywordMetrics: z.union([
|
|
1241
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1242
|
+
z.array(z.any()),
|
|
1243
|
+
z.object({}).catchall(z.any())
|
|
1244
|
+
]),
|
|
1245
|
+
websitePageIds: z.union([
|
|
1246
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1247
|
+
z.array(z.any()),
|
|
1248
|
+
z.object({}).catchall(z.any())
|
|
1249
|
+
]),
|
|
1250
|
+
calloutIds: z.union([
|
|
1251
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1252
|
+
z.array(z.any()),
|
|
1253
|
+
z.object({}).catchall(z.any())
|
|
1254
|
+
]),
|
|
1087
1255
|
publishedContentHash: z.nullable(z.string()),
|
|
1088
1256
|
publishedAt: z.nullable(z.any()),
|
|
1089
1257
|
pushedKeywords: z.nullable(
|
|
@@ -1093,6 +1261,7 @@ const editAdResponseSchema = z.object({
|
|
|
1093
1261
|
z.object({}).catchall(z.any())
|
|
1094
1262
|
])
|
|
1095
1263
|
),
|
|
1264
|
+
dailyBudget: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1096
1265
|
createdBy: z.nullable(z.string()),
|
|
1097
1266
|
updatedBy: z.nullable(z.string()),
|
|
1098
1267
|
createdAt: z.nullable(z.any()),
|
|
@@ -1462,11 +1631,31 @@ const editMetaAdResponseSchema = z.object({
|
|
|
1462
1631
|
z.array(z.any()),
|
|
1463
1632
|
z.object({}).catchall(z.any())
|
|
1464
1633
|
]),
|
|
1634
|
+
disabledVenueNegativeKeywords: z.union([
|
|
1635
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1636
|
+
z.array(z.any()),
|
|
1637
|
+
z.object({}).catchall(z.any())
|
|
1638
|
+
]),
|
|
1465
1639
|
dismissedKeywords: z.union([
|
|
1466
1640
|
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1467
1641
|
z.array(z.any()),
|
|
1468
1642
|
z.object({}).catchall(z.any())
|
|
1469
1643
|
]),
|
|
1644
|
+
keywordMetrics: z.union([
|
|
1645
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1646
|
+
z.array(z.any()),
|
|
1647
|
+
z.object({}).catchall(z.any())
|
|
1648
|
+
]),
|
|
1649
|
+
websitePageIds: z.union([
|
|
1650
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1651
|
+
z.array(z.any()),
|
|
1652
|
+
z.object({}).catchall(z.any())
|
|
1653
|
+
]),
|
|
1654
|
+
calloutIds: z.union([
|
|
1655
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1656
|
+
z.array(z.any()),
|
|
1657
|
+
z.object({}).catchall(z.any())
|
|
1658
|
+
]),
|
|
1470
1659
|
publishedContentHash: z.nullable(z.string()),
|
|
1471
1660
|
publishedAt: z.nullable(z.any()),
|
|
1472
1661
|
pushedKeywords: z.nullable(
|
|
@@ -1476,6 +1665,7 @@ const editMetaAdResponseSchema = z.object({
|
|
|
1476
1665
|
z.object({}).catchall(z.any())
|
|
1477
1666
|
])
|
|
1478
1667
|
),
|
|
1668
|
+
dailyBudget: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1479
1669
|
createdBy: z.nullable(z.string()),
|
|
1480
1670
|
updatedBy: z.nullable(z.string()),
|
|
1481
1671
|
createdAt: z.nullable(z.any()),
|
|
@@ -1590,11 +1780,31 @@ const fetchAdResponseSchema = z.object({
|
|
|
1590
1780
|
z.array(z.any()),
|
|
1591
1781
|
z.object({}).catchall(z.any())
|
|
1592
1782
|
]),
|
|
1783
|
+
disabledVenueNegativeKeywords: z.union([
|
|
1784
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1785
|
+
z.array(z.any()),
|
|
1786
|
+
z.object({}).catchall(z.any())
|
|
1787
|
+
]),
|
|
1593
1788
|
dismissedKeywords: z.union([
|
|
1594
1789
|
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1595
1790
|
z.array(z.any()),
|
|
1596
1791
|
z.object({}).catchall(z.any())
|
|
1597
1792
|
]),
|
|
1793
|
+
keywordMetrics: z.union([
|
|
1794
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1795
|
+
z.array(z.any()),
|
|
1796
|
+
z.object({}).catchall(z.any())
|
|
1797
|
+
]),
|
|
1798
|
+
websitePageIds: z.union([
|
|
1799
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1800
|
+
z.array(z.any()),
|
|
1801
|
+
z.object({}).catchall(z.any())
|
|
1802
|
+
]),
|
|
1803
|
+
calloutIds: z.union([
|
|
1804
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1805
|
+
z.array(z.any()),
|
|
1806
|
+
z.object({}).catchall(z.any())
|
|
1807
|
+
]),
|
|
1598
1808
|
publishedContentHash: z.nullable(z.string()),
|
|
1599
1809
|
publishedAt: z.nullable(z.any()),
|
|
1600
1810
|
pushedKeywords: z.nullable(
|
|
@@ -1604,6 +1814,7 @@ const fetchAdResponseSchema = z.object({
|
|
|
1604
1814
|
z.object({}).catchall(z.any())
|
|
1605
1815
|
])
|
|
1606
1816
|
),
|
|
1817
|
+
dailyBudget: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1607
1818
|
createdBy: z.nullable(z.string()),
|
|
1608
1819
|
updatedBy: z.nullable(z.string()),
|
|
1609
1820
|
createdAt: z.nullable(z.any()),
|
|
@@ -1666,11 +1877,31 @@ const fetchAdsResponseSchema = z.array(
|
|
|
1666
1877
|
z.array(z.any()),
|
|
1667
1878
|
z.object({}).catchall(z.any())
|
|
1668
1879
|
]),
|
|
1880
|
+
disabledVenueNegativeKeywords: z.union([
|
|
1881
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1882
|
+
z.array(z.any()),
|
|
1883
|
+
z.object({}).catchall(z.any())
|
|
1884
|
+
]),
|
|
1669
1885
|
dismissedKeywords: z.union([
|
|
1670
1886
|
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1671
1887
|
z.array(z.any()),
|
|
1672
1888
|
z.object({}).catchall(z.any())
|
|
1673
1889
|
]),
|
|
1890
|
+
keywordMetrics: z.union([
|
|
1891
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1892
|
+
z.array(z.any()),
|
|
1893
|
+
z.object({}).catchall(z.any())
|
|
1894
|
+
]),
|
|
1895
|
+
websitePageIds: z.union([
|
|
1896
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1897
|
+
z.array(z.any()),
|
|
1898
|
+
z.object({}).catchall(z.any())
|
|
1899
|
+
]),
|
|
1900
|
+
calloutIds: z.union([
|
|
1901
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1902
|
+
z.array(z.any()),
|
|
1903
|
+
z.object({}).catchall(z.any())
|
|
1904
|
+
]),
|
|
1674
1905
|
publishedContentHash: z.nullable(z.string()),
|
|
1675
1906
|
publishedAt: z.nullable(z.any()),
|
|
1676
1907
|
pushedKeywords: z.nullable(
|
|
@@ -1680,6 +1911,7 @@ const fetchAdsResponseSchema = z.array(
|
|
|
1680
1911
|
z.object({}).catchall(z.any())
|
|
1681
1912
|
])
|
|
1682
1913
|
),
|
|
1914
|
+
dailyBudget: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1683
1915
|
createdBy: z.nullable(z.string()),
|
|
1684
1916
|
updatedBy: z.nullable(z.string()),
|
|
1685
1917
|
createdAt: z.nullable(z.any()),
|
|
@@ -2951,6 +3183,22 @@ const getBasketTotalsResponseSchema = z.object({
|
|
|
2951
3183
|
)
|
|
2952
3184
|
});
|
|
2953
3185
|
|
|
3186
|
+
const getCalloutsResponseSchema = z.array(
|
|
3187
|
+
z.object({
|
|
3188
|
+
id: z.string(),
|
|
3189
|
+
venueId: z.string(),
|
|
3190
|
+
label: z.union([
|
|
3191
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3192
|
+
z.array(z.any()),
|
|
3193
|
+
z.object({}).catchall(z.any())
|
|
3194
|
+
]),
|
|
3195
|
+
createdBy: z.nullable(z.string()),
|
|
3196
|
+
updatedBy: z.nullable(z.string()),
|
|
3197
|
+
createdAt: z.any(),
|
|
3198
|
+
updatedAt: z.any()
|
|
3199
|
+
})
|
|
3200
|
+
);
|
|
3201
|
+
|
|
2954
3202
|
const subscriptionCreditStatusSchema = z.enum([
|
|
2955
3203
|
"available",
|
|
2956
3204
|
"redeemed",
|
|
@@ -3028,6 +3276,30 @@ const getVenueResponseSchema = z.object({
|
|
|
3028
3276
|
"A venue. The public API exposes only the minimal id + accessor + naming + locale fields the CLI's `venues use` / `auth whoami` consume."
|
|
3029
3277
|
);
|
|
3030
3278
|
|
|
3279
|
+
const getWebsitePagesResponseSchema = z.array(
|
|
3280
|
+
z.object({
|
|
3281
|
+
id: z.string(),
|
|
3282
|
+
venueId: z.string(),
|
|
3283
|
+
get ownerType() {
|
|
3284
|
+
return websitePageOwnerTypeSchema;
|
|
3285
|
+
},
|
|
3286
|
+
ownerId: z.nullable(z.string()),
|
|
3287
|
+
label: z.nullable(
|
|
3288
|
+
z.union([
|
|
3289
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3290
|
+
z.array(z.any()),
|
|
3291
|
+
z.object({}).catchall(z.any())
|
|
3292
|
+
])
|
|
3293
|
+
),
|
|
3294
|
+
path: z.nullable(z.string()),
|
|
3295
|
+
externalUrl: z.nullable(z.string()),
|
|
3296
|
+
createdBy: z.nullable(z.string()),
|
|
3297
|
+
updatedBy: z.nullable(z.string()),
|
|
3298
|
+
createdAt: z.any(),
|
|
3299
|
+
updatedAt: z.any()
|
|
3300
|
+
})
|
|
3301
|
+
);
|
|
3302
|
+
|
|
3031
3303
|
const integrationNotificationTypeSchema = z.enum([
|
|
3032
3304
|
"order_created",
|
|
3033
3305
|
"order_cancelled",
|
|
@@ -3084,6 +3356,8 @@ const joinTeamOrderResponseSchema = z.object({
|
|
|
3084
3356
|
|
|
3085
3357
|
const jurisdictionSchema = z.enum(["DE", "CH", "FR", "IT"]);
|
|
3086
3358
|
|
|
3359
|
+
const keywordPolaritySchema = z.enum(["positive", "negative"]);
|
|
3360
|
+
|
|
3087
3361
|
const localeSchema = z.enum([
|
|
3088
3362
|
"aa",
|
|
3089
3363
|
"ab",
|
|
@@ -3520,6 +3794,17 @@ const roleSchema = z.enum([
|
|
|
3520
3794
|
"rider"
|
|
3521
3795
|
]);
|
|
3522
3796
|
|
|
3797
|
+
const saveAdCalloutsRequestSchema = z.object({
|
|
3798
|
+
venueAccessor: z.string().min(1),
|
|
3799
|
+
adId: z.string().min(1),
|
|
3800
|
+
calloutIds: z.array(z.string().min(1))
|
|
3801
|
+
});
|
|
3802
|
+
|
|
3803
|
+
const saveAdCalloutsResponseSchema = z.object({
|
|
3804
|
+
success: z.boolean(),
|
|
3805
|
+
calloutIds: z.array(z.string())
|
|
3806
|
+
});
|
|
3807
|
+
|
|
3523
3808
|
const saveAdKeywordsRequestSchema = z.object({
|
|
3524
3809
|
venueAccessor: z.string().min(1),
|
|
3525
3810
|
adId: z.string().min(1),
|
|
@@ -3535,8 +3820,135 @@ const saveAdKeywordsResponseSchema = z.object({
|
|
|
3535
3820
|
disabledVenueKeywords: z.array(z.string())
|
|
3536
3821
|
});
|
|
3537
3822
|
|
|
3823
|
+
const saveAdNegativeKeywordsRequestSchema = z.object({
|
|
3824
|
+
venueAccessor: z.string().min(1),
|
|
3825
|
+
adId: z.string().min(1),
|
|
3826
|
+
negativeKeywords: z.array(z.string().min(1)),
|
|
3827
|
+
disabledVenueNegativeKeywords: z.array(z.string().min(1))
|
|
3828
|
+
});
|
|
3829
|
+
|
|
3830
|
+
const saveAdNegativeKeywordsResponseSchema = z.object({
|
|
3831
|
+
success: z.boolean(),
|
|
3832
|
+
negativeKeywords: z.array(z.string()),
|
|
3833
|
+
disabledVenueNegativeKeywords: z.array(z.string()),
|
|
3834
|
+
syncedToGoogle: z.boolean()
|
|
3835
|
+
});
|
|
3836
|
+
|
|
3837
|
+
const saveAdWebsitePagesRequestSchema = z.object({
|
|
3838
|
+
venueAccessor: z.string().min(1),
|
|
3839
|
+
adId: z.string().min(1),
|
|
3840
|
+
websitePageIds: z.array(z.string().min(1))
|
|
3841
|
+
});
|
|
3842
|
+
|
|
3843
|
+
const saveAdWebsitePagesResponseSchema = z.object({
|
|
3844
|
+
success: z.boolean(),
|
|
3845
|
+
websitePageIds: z.array(z.string())
|
|
3846
|
+
});
|
|
3847
|
+
|
|
3538
3848
|
const scanTokenEntityTypeSchema = z.enum(["order", "depositware"]);
|
|
3539
3849
|
|
|
3850
|
+
const setAdBudgetRequestSchema = z.object({
|
|
3851
|
+
venueAccessor: z.string().min(1),
|
|
3852
|
+
adId: z.string().min(1),
|
|
3853
|
+
dailyBudget: z.int().max(9007199254740991).gt(0)
|
|
3854
|
+
});
|
|
3855
|
+
|
|
3856
|
+
const setAdBudgetResponseSchema = z.object({
|
|
3857
|
+
id: z.string(),
|
|
3858
|
+
venueId: z.string(),
|
|
3859
|
+
get ownerEntityType() {
|
|
3860
|
+
return adOwnerTypeSchema;
|
|
3861
|
+
},
|
|
3862
|
+
ownerEntityId: z.string(),
|
|
3863
|
+
get channel() {
|
|
3864
|
+
return adChannelSchema;
|
|
3865
|
+
},
|
|
3866
|
+
get status() {
|
|
3867
|
+
return adStatusSchema;
|
|
3868
|
+
},
|
|
3869
|
+
campaignId: z.nullable(z.string()),
|
|
3870
|
+
content: z.union([
|
|
3871
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3872
|
+
z.array(z.any()),
|
|
3873
|
+
z.object({}).catchall(z.any())
|
|
3874
|
+
]),
|
|
3875
|
+
metaContent: z.nullable(
|
|
3876
|
+
z.union([
|
|
3877
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3878
|
+
z.array(z.any()),
|
|
3879
|
+
z.object({}).catchall(z.any())
|
|
3880
|
+
])
|
|
3881
|
+
),
|
|
3882
|
+
metaRefs: z.nullable(
|
|
3883
|
+
z.union([
|
|
3884
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3885
|
+
z.array(z.any()),
|
|
3886
|
+
z.object({}).catchall(z.any())
|
|
3887
|
+
])
|
|
3888
|
+
),
|
|
3889
|
+
servedMarket: z.nullable(
|
|
3890
|
+
z.union([
|
|
3891
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3892
|
+
z.array(z.any()),
|
|
3893
|
+
z.object({}).catchall(z.any())
|
|
3894
|
+
])
|
|
3895
|
+
),
|
|
3896
|
+
keywords: z.union([
|
|
3897
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3898
|
+
z.array(z.any()),
|
|
3899
|
+
z.object({}).catchall(z.any())
|
|
3900
|
+
]),
|
|
3901
|
+
negativeKeywords: z.union([
|
|
3902
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3903
|
+
z.array(z.any()),
|
|
3904
|
+
z.object({}).catchall(z.any())
|
|
3905
|
+
]),
|
|
3906
|
+
disabledVenueKeywords: z.union([
|
|
3907
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3908
|
+
z.array(z.any()),
|
|
3909
|
+
z.object({}).catchall(z.any())
|
|
3910
|
+
]),
|
|
3911
|
+
disabledVenueNegativeKeywords: z.union([
|
|
3912
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3913
|
+
z.array(z.any()),
|
|
3914
|
+
z.object({}).catchall(z.any())
|
|
3915
|
+
]),
|
|
3916
|
+
dismissedKeywords: z.union([
|
|
3917
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3918
|
+
z.array(z.any()),
|
|
3919
|
+
z.object({}).catchall(z.any())
|
|
3920
|
+
]),
|
|
3921
|
+
keywordMetrics: z.union([
|
|
3922
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3923
|
+
z.array(z.any()),
|
|
3924
|
+
z.object({}).catchall(z.any())
|
|
3925
|
+
]),
|
|
3926
|
+
websitePageIds: z.union([
|
|
3927
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3928
|
+
z.array(z.any()),
|
|
3929
|
+
z.object({}).catchall(z.any())
|
|
3930
|
+
]),
|
|
3931
|
+
calloutIds: z.union([
|
|
3932
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3933
|
+
z.array(z.any()),
|
|
3934
|
+
z.object({}).catchall(z.any())
|
|
3935
|
+
]),
|
|
3936
|
+
publishedContentHash: z.nullable(z.string()),
|
|
3937
|
+
publishedAt: z.nullable(z.any()),
|
|
3938
|
+
pushedKeywords: z.nullable(
|
|
3939
|
+
z.union([
|
|
3940
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3941
|
+
z.array(z.any()),
|
|
3942
|
+
z.object({}).catchall(z.any())
|
|
3943
|
+
])
|
|
3944
|
+
),
|
|
3945
|
+
dailyBudget: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3946
|
+
createdBy: z.nullable(z.string()),
|
|
3947
|
+
updatedBy: z.nullable(z.string()),
|
|
3948
|
+
createdAt: z.nullable(z.any()),
|
|
3949
|
+
updatedAt: z.nullable(z.any())
|
|
3950
|
+
});
|
|
3951
|
+
|
|
3540
3952
|
const setArticleFeatureImageUploadBodySchema = z.object({
|
|
3541
3953
|
file: z.string().describe("Image file (multipart/form-data field)")
|
|
3542
3954
|
});
|
|
@@ -3729,6 +4141,26 @@ const teamOrderPaymentStatusSchema = z.enum([
|
|
|
3729
4141
|
"failed"
|
|
3730
4142
|
]);
|
|
3731
4143
|
|
|
4144
|
+
const updateCalloutRequestSchema = z.object({
|
|
4145
|
+
venueAccessor: z.string().min(1),
|
|
4146
|
+
id: z.string().min(1),
|
|
4147
|
+
label: z.object({}).catchall(z.string().max(25))
|
|
4148
|
+
});
|
|
4149
|
+
|
|
4150
|
+
const updateCalloutResponseSchema = z.object({
|
|
4151
|
+
id: z.string(),
|
|
4152
|
+
venueId: z.string(),
|
|
4153
|
+
label: z.union([
|
|
4154
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
4155
|
+
z.array(z.any()),
|
|
4156
|
+
z.object({}).catchall(z.any())
|
|
4157
|
+
]),
|
|
4158
|
+
createdBy: z.nullable(z.string()),
|
|
4159
|
+
updatedBy: z.nullable(z.string()),
|
|
4160
|
+
createdAt: z.any(),
|
|
4161
|
+
updatedAt: z.any()
|
|
4162
|
+
});
|
|
4163
|
+
|
|
3732
4164
|
const updateDeliveryAddressTeamOrderRequestSchema = z.object({
|
|
3733
4165
|
publicId: z.string().min(1),
|
|
3734
4166
|
sessionId: z.string().min(1),
|
|
@@ -3742,6 +4174,35 @@ const updateDeliveryAddressTeamOrderResponseSchema = z.object({
|
|
|
3742
4174
|
deliveryAddressId: z.string()
|
|
3743
4175
|
});
|
|
3744
4176
|
|
|
4177
|
+
const updateWebsitePageRequestSchema = z.object({
|
|
4178
|
+
venueAccessor: z.string().min(1),
|
|
4179
|
+
id: z.string().min(1),
|
|
4180
|
+
label: z.object({}).catchall(z.string()).nullish(),
|
|
4181
|
+
target: z.string().min(1)
|
|
4182
|
+
});
|
|
4183
|
+
|
|
4184
|
+
const updateWebsitePageResponseSchema = z.object({
|
|
4185
|
+
id: z.string(),
|
|
4186
|
+
venueId: z.string(),
|
|
4187
|
+
get ownerType() {
|
|
4188
|
+
return websitePageOwnerTypeSchema;
|
|
4189
|
+
},
|
|
4190
|
+
ownerId: z.nullable(z.string()),
|
|
4191
|
+
label: z.nullable(
|
|
4192
|
+
z.union([
|
|
4193
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
4194
|
+
z.array(z.any()),
|
|
4195
|
+
z.object({}).catchall(z.any())
|
|
4196
|
+
])
|
|
4197
|
+
),
|
|
4198
|
+
path: z.nullable(z.string()),
|
|
4199
|
+
externalUrl: z.nullable(z.string()),
|
|
4200
|
+
createdBy: z.nullable(z.string()),
|
|
4201
|
+
updatedBy: z.nullable(z.string()),
|
|
4202
|
+
createdAt: z.any(),
|
|
4203
|
+
updatedAt: z.any()
|
|
4204
|
+
});
|
|
4205
|
+
|
|
3745
4206
|
const uploadAssetResponseSchema = z.object({
|
|
3746
4207
|
asset: z.object({
|
|
3747
4208
|
id: z.string(),
|
|
@@ -3851,6 +4312,8 @@ const schemas = {
|
|
|
3851
4312
|
CountryCode: countryCodeSchema,
|
|
3852
4313
|
CreateAdRequest: createAdRequestSchema,
|
|
3853
4314
|
CreateAdResponse: createAdResponseSchema,
|
|
4315
|
+
CreateCalloutRequest: createCalloutRequestSchema,
|
|
4316
|
+
CreateCalloutResponse: createCalloutResponseSchema,
|
|
3854
4317
|
CreateDeltaPaymentIntentRequest: createDeltaPaymentIntentRequestSchema,
|
|
3855
4318
|
CreateDeltaPaymentIntentResponse: createDeltaPaymentIntentResponseSchema,
|
|
3856
4319
|
CreateEventRequest: createEventRequestSchema,
|
|
@@ -3859,11 +4322,15 @@ const schemas = {
|
|
|
3859
4322
|
CreatePaymentIntentResponse: createPaymentIntentResponseSchema,
|
|
3860
4323
|
CreateTeamOrderRequest: createTeamOrderRequestSchema,
|
|
3861
4324
|
CreateTeamOrderResponse: createTeamOrderResponseSchema,
|
|
4325
|
+
CreateWebsitePageRequest: createWebsitePageRequestSchema,
|
|
4326
|
+
CreateWebsitePageResponse: createWebsitePageResponseSchema,
|
|
3862
4327
|
Currency: currencySchema,
|
|
3863
4328
|
DayOfWeek: dayOfWeekSchema,
|
|
3864
4329
|
DeleteAdResponse: deleteAdResponseSchema,
|
|
3865
4330
|
DeleteAssetResponse: deleteAssetResponseSchema,
|
|
4331
|
+
DeleteCalloutResponse: deleteCalloutResponseSchema,
|
|
3866
4332
|
DeleteEventResponse: deleteEventResponseSchema,
|
|
4333
|
+
DeleteWebsitePageResponse: deleteWebsitePageResponseSchema,
|
|
3867
4334
|
DeliveryAddress: deliveryAddressSchema,
|
|
3868
4335
|
DepositTransactionType: depositTransactionTypeSchema,
|
|
3869
4336
|
DepositwareStatus: depositwareStatusSchema,
|
|
@@ -3909,9 +4376,11 @@ const schemas = {
|
|
|
3909
4376
|
GetAreaAvailabilityResponse: getAreaAvailabilityResponseSchema,
|
|
3910
4377
|
GetBasketTotalsRequest: getBasketTotalsRequestSchema,
|
|
3911
4378
|
GetBasketTotalsResponse: getBasketTotalsResponseSchema,
|
|
4379
|
+
GetCalloutsResponse: getCalloutsResponseSchema,
|
|
3912
4380
|
GetSubscriptionCreditsResponse: getSubscriptionCreditsResponseSchema,
|
|
3913
4381
|
GetSubscriptionResponse: getSubscriptionResponseSchema,
|
|
3914
4382
|
GetVenueResponse: getVenueResponseSchema,
|
|
4383
|
+
GetWebsitePagesResponse: getWebsitePagesResponseSchema,
|
|
3915
4384
|
IntegrationNotificationType: integrationNotificationTypeSchema,
|
|
3916
4385
|
IntegrationType: integrationTypeSchema,
|
|
3917
4386
|
InventoryAssetStatus: inventoryAssetStatusSchema,
|
|
@@ -3920,6 +4389,7 @@ const schemas = {
|
|
|
3920
4389
|
JoinTeamOrderRequest: joinTeamOrderRequestSchema,
|
|
3921
4390
|
JoinTeamOrderResponse: joinTeamOrderResponseSchema,
|
|
3922
4391
|
Jurisdiction: jurisdictionSchema,
|
|
4392
|
+
KeywordPolarity: keywordPolaritySchema,
|
|
3923
4393
|
Locale: localeSchema,
|
|
3924
4394
|
MakeReservationRequest: makeReservationRequestSchema,
|
|
3925
4395
|
MakeReservationResponse: makeReservationResponseSchema,
|
|
@@ -3949,10 +4419,18 @@ const schemas = {
|
|
|
3949
4419
|
ReservationStatus: reservationStatusSchema,
|
|
3950
4420
|
RitualType: ritualTypeSchema,
|
|
3951
4421
|
Role: roleSchema,
|
|
4422
|
+
SaveAdCalloutsRequest: saveAdCalloutsRequestSchema,
|
|
4423
|
+
SaveAdCalloutsResponse: saveAdCalloutsResponseSchema,
|
|
3952
4424
|
SaveAdKeywordsRequest: saveAdKeywordsRequestSchema,
|
|
3953
4425
|
SaveAdKeywordsResponse: saveAdKeywordsResponseSchema,
|
|
4426
|
+
SaveAdNegativeKeywordsRequest: saveAdNegativeKeywordsRequestSchema,
|
|
4427
|
+
SaveAdNegativeKeywordsResponse: saveAdNegativeKeywordsResponseSchema,
|
|
4428
|
+
SaveAdWebsitePagesRequest: saveAdWebsitePagesRequestSchema,
|
|
4429
|
+
SaveAdWebsitePagesResponse: saveAdWebsitePagesResponseSchema,
|
|
3954
4430
|
ScanTokenEntityType: scanTokenEntityTypeSchema,
|
|
3955
4431
|
Schedule: scheduleSchema,
|
|
4432
|
+
SetAdBudgetRequest: setAdBudgetRequestSchema,
|
|
4433
|
+
SetAdBudgetResponse: setAdBudgetResponseSchema,
|
|
3956
4434
|
SetArticleFeatureImageUploadBody: setArticleFeatureImageUploadBodySchema,
|
|
3957
4435
|
SetBasketDeclaredReturnsRequest: setBasketDeclaredReturnsRequestSchema,
|
|
3958
4436
|
SetBasketDeclaredReturnsResponse: setBasketDeclaredReturnsResponseSchema,
|
|
@@ -3980,14 +4458,19 @@ const schemas = {
|
|
|
3980
4458
|
TeamOrderPaymentStatus: teamOrderPaymentStatusSchema,
|
|
3981
4459
|
TeamOrderStatus: teamOrderStatusSchema,
|
|
3982
4460
|
Unit: unitSchema,
|
|
4461
|
+
UpdateCalloutRequest: updateCalloutRequestSchema,
|
|
4462
|
+
UpdateCalloutResponse: updateCalloutResponseSchema,
|
|
3983
4463
|
UpdateDeliveryAddressTeamOrderRequest: updateDeliveryAddressTeamOrderRequestSchema,
|
|
3984
4464
|
UpdateDeliveryAddressTeamOrderResponse: updateDeliveryAddressTeamOrderResponseSchema,
|
|
4465
|
+
UpdateWebsitePageRequest: updateWebsitePageRequestSchema,
|
|
4466
|
+
UpdateWebsitePageResponse: updateWebsitePageResponseSchema,
|
|
3985
4467
|
UploadAssetResponse: uploadAssetResponseSchema,
|
|
3986
4468
|
VenueAssetType: venueAssetTypeSchema,
|
|
3987
4469
|
VenueChargeType: venueChargeTypeSchema,
|
|
3988
4470
|
VenueEmailSenderStatus: venueEmailSenderStatusSchema,
|
|
3989
4471
|
VenueType: venueTypeSchema,
|
|
3990
|
-
VenueUserStatus: venueUserStatusSchema
|
|
4472
|
+
VenueUserStatus: venueUserStatusSchema,
|
|
4473
|
+
WebsitePageOwnerType: websitePageOwnerTypeSchema
|
|
3991
4474
|
};
|
|
3992
4475
|
|
|
3993
4476
|
export { schemas };
|