order3000 1.0.2 → 1.2.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/schemas.mjs CHANGED
@@ -11,6 +11,12 @@ const abandonBasketResponseSchema = z.object({
11
11
 
12
12
  const actorTypeSchema = z.enum(["human", "robot"]);
13
13
 
14
+ const adChannelSchema = z.enum(["google"]);
15
+
16
+ const adOwnerTypeSchema = z.enum(["event"]);
17
+
18
+ const adStatusSchema = z.enum(["draft", "ready", "archived"]);
19
+
14
20
  const unitSchema = z.enum([
15
21
  "grams",
16
22
  "kilograms",
@@ -542,6 +548,41 @@ const countryCodeSchema = z.enum([
542
548
  "ZW"
543
549
  ]);
544
550
 
551
+ const createAdRequestSchema = z.object({
552
+ venueAccessor: z.string().min(1),
553
+ get ownerEntityType() {
554
+ return adOwnerTypeSchema;
555
+ },
556
+ ownerEntityId: z.string().min(1),
557
+ get channel() {
558
+ return adChannelSchema;
559
+ }
560
+ }).describe("Request payload for creating a new ad");
561
+
562
+ const createAdResponseSchema = z.object({
563
+ id: z.string(),
564
+ venueId: z.string(),
565
+ get ownerEntityType() {
566
+ return adOwnerTypeSchema;
567
+ },
568
+ ownerEntityId: z.string(),
569
+ get channel() {
570
+ return adChannelSchema;
571
+ },
572
+ get status() {
573
+ return adStatusSchema;
574
+ },
575
+ content: z.union([
576
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
577
+ z.array(z.any()),
578
+ z.object({}).catchall(z.any())
579
+ ]),
580
+ createdBy: z.nullable(z.string()),
581
+ updatedBy: z.nullable(z.string()),
582
+ createdAt: z.nullable(z.any()),
583
+ updatedAt: z.nullable(z.any())
584
+ }).describe("Successfully created ad");
585
+
545
586
  const createDeltaPaymentIntentRequestSchema = z.object({
546
587
  venueAccessor: z.string().min(1),
547
588
  basketId: z.string().min(1),
@@ -590,12 +631,12 @@ const createEventRequestSchema = z.object({
590
631
  z.object({}).catchall(z.any())
591
632
  ]).nullish(),
592
633
  scheduleId: z.string().nullish(),
634
+ occurrenceDate: z.string().nullish(),
593
635
  maxBookings: z.int().min(-2147483648).max(2147483647).nullish(),
594
636
  maxGuests: z.int().min(-2147483648).max(2147483647).nullish(),
595
637
  minPartySize: z.int().min(-2147483648).max(2147483647).nullish(),
596
638
  maxPartySize: z.int().min(-2147483648).max(2147483647).nullish(),
597
639
  isPublic: z.optional(z.boolean()),
598
- isRecurring: z.optional(z.boolean()),
599
640
  reservationsEnabled: z.optional(z.boolean()),
600
641
  bookingOpensAtDays: z.int().min(-2147483648).max(2147483647).nullish(),
601
642
  bookingClosesAtOffset: z.int().min(-2147483648).max(2147483647).nullish(),
@@ -642,12 +683,12 @@ const createEventResponseSchema = z.object({
642
683
  ),
643
684
  scheduleId: z.nullable(z.string()),
644
685
  ritualId: z.nullable(z.string()),
686
+ occurrenceDate: z.nullable(z.string()),
645
687
  maxBookings: z.nullable(z.int().min(-2147483648).max(2147483647)),
646
688
  maxGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
647
689
  minPartySize: z.nullable(z.int().min(-2147483648).max(2147483647)),
648
690
  maxPartySize: z.nullable(z.int().min(-2147483648).max(2147483647)),
649
691
  isPublic: z.boolean(),
650
- isRecurring: z.boolean(),
651
692
  reservationsEnabled: z.boolean(),
652
693
  bookingOpensAtDays: z.nullable(z.int().min(-2147483648).max(2147483647)),
653
694
  bookingClosesAtOffset: z.nullable(z.int().min(-2147483648).max(2147483647)),
@@ -728,6 +769,70 @@ const dayOfWeekSchema = z.enum([
728
769
  "sunday"
729
770
  ]);
730
771
 
772
+ const deleteAdResponseSchema = z.object({
773
+ id: z.string(),
774
+ venueId: z.string(),
775
+ get ownerEntityType() {
776
+ return adOwnerTypeSchema;
777
+ },
778
+ ownerEntityId: z.string(),
779
+ get channel() {
780
+ return adChannelSchema;
781
+ },
782
+ get status() {
783
+ return adStatusSchema;
784
+ },
785
+ content: z.union([
786
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
787
+ z.array(z.any()),
788
+ z.object({}).catchall(z.any())
789
+ ]),
790
+ createdBy: z.nullable(z.string()),
791
+ updatedBy: z.nullable(z.string()),
792
+ createdAt: z.nullable(z.any()),
793
+ updatedAt: z.nullable(z.any())
794
+ });
795
+
796
+ const deleteAssetResponseSchema = z.object({
797
+ success: z.boolean()
798
+ });
799
+
800
+ const deleteEventResponseSchema = z.object({
801
+ id: z.string(),
802
+ venueId: z.string(),
803
+ accessor: z.nullable(z.string()),
804
+ name: z.union([
805
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
806
+ z.array(z.any()),
807
+ z.object({}).catchall(z.any())
808
+ ]),
809
+ description: z.nullable(
810
+ z.union([
811
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
812
+ z.array(z.any()),
813
+ z.object({}).catchall(z.any())
814
+ ])
815
+ ),
816
+ scheduleId: z.nullable(z.string()),
817
+ ritualId: z.nullable(z.string()),
818
+ occurrenceDate: z.nullable(z.string()),
819
+ maxBookings: z.nullable(z.int().min(-2147483648).max(2147483647)),
820
+ maxGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
821
+ minPartySize: z.nullable(z.int().min(-2147483648).max(2147483647)),
822
+ maxPartySize: z.nullable(z.int().min(-2147483648).max(2147483647)),
823
+ isPublic: z.boolean(),
824
+ reservationsEnabled: z.boolean(),
825
+ bookingOpensAtDays: z.nullable(z.int().min(-2147483648).max(2147483647)),
826
+ bookingClosesAtOffset: z.nullable(z.int().min(-2147483648).max(2147483647)),
827
+ isActive: z.boolean(),
828
+ isFeatured: z.boolean(),
829
+ priority: z.int().min(-2147483648).max(2147483647),
830
+ createdBy: z.nullable(z.string()),
831
+ updatedBy: z.nullable(z.string()),
832
+ createdAt: z.nullable(z.any()),
833
+ updatedAt: z.nullable(z.any())
834
+ });
835
+
731
836
  const depositTransactionTypeSchema = z.enum([
732
837
  "charged",
733
838
  "refunded",
@@ -745,6 +850,47 @@ const depositwareStatusSchema = z.enum([
745
850
  "retired"
746
851
  ]);
747
852
 
853
+ const editAdRequestSchema = z.object({
854
+ venueAccessor: z.string().min(1),
855
+ id: z.string().min(1),
856
+ content: z.optional(
857
+ z.object({
858
+ businessName: z.object({}).catchall(z.string().max(25)),
859
+ headlines: z.object({}).catchall(z.array(z.string().max(30)).max(15)),
860
+ descriptions: z.object({}).catchall(z.array(z.string().max(90)).max(4)),
861
+ paths: z.object({}).catchall(z.array(z.string().max(15)).max(2)),
862
+ finalUrl: z.url()
863
+ })
864
+ ),
865
+ get status() {
866
+ return adStatusSchema.optional();
867
+ }
868
+ }).describe("Partial-update body for an existing ad");
869
+
870
+ const editAdResponseSchema = z.object({
871
+ id: z.string(),
872
+ venueId: z.string(),
873
+ get ownerEntityType() {
874
+ return adOwnerTypeSchema;
875
+ },
876
+ ownerEntityId: z.string(),
877
+ get channel() {
878
+ return adChannelSchema;
879
+ },
880
+ get status() {
881
+ return adStatusSchema;
882
+ },
883
+ content: z.union([
884
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
885
+ z.array(z.any()),
886
+ z.object({}).catchall(z.any())
887
+ ]),
888
+ createdBy: z.nullable(z.string()),
889
+ updatedBy: z.nullable(z.string()),
890
+ createdAt: z.nullable(z.any()),
891
+ updatedAt: z.nullable(z.any())
892
+ }).describe("Successfully updated ad");
893
+
748
894
  const editArticleRequestSchema = z.object({
749
895
  slug: z.optional(z.object({}).catchall(z.any())),
750
896
  title: z.optional(z.object({}).catchall(z.any())),
@@ -806,6 +952,150 @@ const editArticleResponseSchema = z.object({
806
952
  "A venue's article. `content` is a TipTap JSON document; treat it as opaque on the wire. `featureImage` is resolved per-locale with a fallback to the venue's primary locale. `ogImage` overrides the social-card image when set; `null` means it falls back to `featureImage`."
807
953
  );
808
954
 
955
+ const editEventRequestSchema = z.object({
956
+ accessor: z.string().nullish(),
957
+ name: z.optional(
958
+ z.union([
959
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
960
+ z.array(z.any()),
961
+ z.object({}).catchall(z.any())
962
+ ])
963
+ ),
964
+ description: z.union([
965
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
966
+ z.array(z.any()),
967
+ z.object({}).catchall(z.any())
968
+ ]).nullish(),
969
+ scheduleId: z.string().nullish(),
970
+ occurrenceDate: z.string().nullish(),
971
+ maxBookings: z.int().min(-2147483648).max(2147483647).nullish(),
972
+ maxGuests: z.int().min(-2147483648).max(2147483647).nullish(),
973
+ minPartySize: z.int().min(-2147483648).max(2147483647).nullish(),
974
+ maxPartySize: z.int().min(-2147483648).max(2147483647).nullish(),
975
+ isPublic: z.optional(z.boolean()),
976
+ reservationsEnabled: z.optional(z.boolean()),
977
+ bookingOpensAtDays: z.int().min(-2147483648).max(2147483647).nullish(),
978
+ bookingClosesAtOffset: z.int().min(-2147483648).max(2147483647).nullish(),
979
+ isActive: z.optional(z.boolean()),
980
+ isFeatured: z.optional(z.boolean()),
981
+ priority: z.optional(z.int().min(-2147483648).max(2147483647)),
982
+ schedule: z.object({
983
+ rrule: z.string().nullish(),
984
+ timezone: z.string().nullish(),
985
+ validFrom: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).nullish(),
986
+ validTo: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).nullish(),
987
+ timeRanges: z.array(
988
+ z.object({
989
+ startTime: z.string().regex(/^\d{2}:\d{2}$/),
990
+ endTime: z.string().regex(/^\d{2}:\d{2}$/),
991
+ lastSeatingTime: z.string().regex(/^\d{2}:\d{2}$/).nullish()
992
+ })
993
+ ).min(1),
994
+ get slotMode() {
995
+ return slotModeSchema.optional();
996
+ },
997
+ intervalDuration: z.number().nullish(),
998
+ duration: z.number().nullish()
999
+ }).nullish(),
1000
+ ritualAccessor: z.string().nullish()
1001
+ }).describe("Partial-update body for an existing event");
1002
+
1003
+ const editEventResponseSchema = z.object({
1004
+ id: z.string(),
1005
+ venueId: z.string(),
1006
+ accessor: z.nullable(z.string()),
1007
+ name: z.union([
1008
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
1009
+ z.array(z.any()),
1010
+ z.object({}).catchall(z.any())
1011
+ ]),
1012
+ description: z.nullable(
1013
+ z.union([
1014
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
1015
+ z.array(z.any()),
1016
+ z.object({}).catchall(z.any())
1017
+ ])
1018
+ ),
1019
+ scheduleId: z.nullable(z.string()),
1020
+ ritualId: z.nullable(z.string()),
1021
+ occurrenceDate: z.nullable(z.string()),
1022
+ maxBookings: z.nullable(z.int().min(-2147483648).max(2147483647)),
1023
+ maxGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
1024
+ minPartySize: z.nullable(z.int().min(-2147483648).max(2147483647)),
1025
+ maxPartySize: z.nullable(z.int().min(-2147483648).max(2147483647)),
1026
+ isPublic: z.boolean(),
1027
+ reservationsEnabled: z.boolean(),
1028
+ bookingOpensAtDays: z.nullable(z.int().min(-2147483648).max(2147483647)),
1029
+ bookingClosesAtOffset: z.nullable(z.int().min(-2147483648).max(2147483647)),
1030
+ isActive: z.boolean(),
1031
+ isFeatured: z.boolean(),
1032
+ priority: z.int().min(-2147483648).max(2147483647),
1033
+ createdBy: z.nullable(z.string()),
1034
+ updatedBy: z.nullable(z.string()),
1035
+ createdAt: z.nullable(z.any()),
1036
+ updatedAt: z.nullable(z.any()),
1037
+ schedule: z.nullable(
1038
+ z.object({
1039
+ id: z.string(),
1040
+ name: z.union([
1041
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
1042
+ z.array(z.any()),
1043
+ z.object({}).catchall(z.any())
1044
+ ]),
1045
+ description: z.nullable(
1046
+ z.union([
1047
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
1048
+ z.array(z.any()),
1049
+ z.object({}).catchall(z.any())
1050
+ ])
1051
+ ),
1052
+ timezone: z.string(),
1053
+ rrule: z.nullable(z.string()),
1054
+ exdates: z.nullable(z.array(z.string())),
1055
+ validFrom: z.nullable(z.string()),
1056
+ validTo: z.nullable(z.string()),
1057
+ priority: z.nullable(z.int().min(-2147483648).max(2147483647)),
1058
+ get slotMode() {
1059
+ return slotModeSchema;
1060
+ },
1061
+ intervalDuration: z.nullable(z.int().min(-2147483648).max(2147483647)),
1062
+ duration: z.nullable(z.int().min(-2147483648).max(2147483647)),
1063
+ isActive: z.boolean(),
1064
+ sortIndex: z.nullable(z.string().max(255)),
1065
+ updatedAt: z.nullable(z.any()),
1066
+ updatedBy: z.nullable(z.string()),
1067
+ createdAt: z.nullable(z.any()),
1068
+ createdBy: z.nullable(z.string()),
1069
+ scheduleTimeSlots: z.optional(
1070
+ z.array(
1071
+ z.object({
1072
+ scheduleId: z.nullable(z.string()),
1073
+ timeSlotId: z.nullable(z.string()),
1074
+ get dayOfWeek() {
1075
+ return dayOfWeekSchema;
1076
+ },
1077
+ sortIndex: z.nullable(z.string().max(255)),
1078
+ timeSlot: z.nullable(
1079
+ z.object({
1080
+ id: z.string(),
1081
+ startTime: z.string(),
1082
+ endTime: z.nullable(z.string()),
1083
+ isActive: z.nullable(z.boolean()),
1084
+ isSchedulable: z.nullable(z.boolean()),
1085
+ sortIndex: z.nullable(z.string().max(255)),
1086
+ updatedAt: z.nullable(z.any()),
1087
+ updatedBy: z.nullable(z.string()),
1088
+ createdAt: z.nullable(z.any()),
1089
+ createdBy: z.nullable(z.string())
1090
+ })
1091
+ )
1092
+ })
1093
+ )
1094
+ )
1095
+ })
1096
+ )
1097
+ }).describe("Successfully updated event with schedule");
1098
+
809
1099
  const entityOwnerTypeSchema = z.enum([
810
1100
  "event",
811
1101
  "dish",
@@ -820,6 +1110,8 @@ const enumFalseSchema = z.enum(["false"]);
820
1110
 
821
1111
  const enumTrueSchema = z.enum(["true"]);
822
1112
 
1113
+ const eventAssetSourceSchema = z.enum(["inherited", "manual"]);
1114
+
823
1115
  const extendDeadlineTeamOrderRequestSchema = z.object({
824
1116
  publicId: z.string().min(1),
825
1117
  sessionId: z.string().min(1),
@@ -857,6 +1149,56 @@ const featureStatusSchema = z.enum([
857
1149
  "released"
858
1150
  ]);
859
1151
 
1152
+ const fetchAdResponseSchema = z.object({
1153
+ id: z.string(),
1154
+ venueId: z.string(),
1155
+ get ownerEntityType() {
1156
+ return adOwnerTypeSchema;
1157
+ },
1158
+ ownerEntityId: z.string(),
1159
+ get channel() {
1160
+ return adChannelSchema;
1161
+ },
1162
+ get status() {
1163
+ return adStatusSchema;
1164
+ },
1165
+ content: z.union([
1166
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
1167
+ z.array(z.any()),
1168
+ z.object({}).catchall(z.any())
1169
+ ]),
1170
+ createdBy: z.nullable(z.string()),
1171
+ updatedBy: z.nullable(z.string()),
1172
+ createdAt: z.nullable(z.any()),
1173
+ updatedAt: z.nullable(z.any())
1174
+ });
1175
+
1176
+ const fetchAdsResponseSchema = z.array(
1177
+ z.object({
1178
+ id: z.string(),
1179
+ venueId: z.string(),
1180
+ get ownerEntityType() {
1181
+ return adOwnerTypeSchema;
1182
+ },
1183
+ ownerEntityId: z.string(),
1184
+ get channel() {
1185
+ return adChannelSchema;
1186
+ },
1187
+ get status() {
1188
+ return adStatusSchema;
1189
+ },
1190
+ content: z.union([
1191
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
1192
+ z.array(z.any()),
1193
+ z.object({}).catchall(z.any())
1194
+ ]),
1195
+ createdBy: z.nullable(z.string()),
1196
+ updatedBy: z.nullable(z.string()),
1197
+ createdAt: z.nullable(z.any()),
1198
+ updatedAt: z.nullable(z.any())
1199
+ })
1200
+ );
1201
+
860
1202
  const fetchAreaBookingsResponseSchema = z.array(
861
1203
  z.object({
862
1204
  id: z.string(),
@@ -1015,6 +1357,46 @@ const fetchArticlesResponseSchema = z.array(
1015
1357
  })
1016
1358
  );
1017
1359
 
1360
+ const fetchAssetsByTagResponseSchema = z.array(
1361
+ z.object({
1362
+ id: z.string(),
1363
+ get type() {
1364
+ return assetTypeSchema;
1365
+ },
1366
+ metadata: z.nullable(
1367
+ z.object({
1368
+ width: z.optional(z.number()),
1369
+ height: z.optional(z.number()),
1370
+ duration: z.optional(z.number())
1371
+ })
1372
+ ),
1373
+ isActive: z.boolean(),
1374
+ sortIndex: z.nullable(z.string()),
1375
+ updatedAt: z.nullable(z.any()),
1376
+ updatedBy: z.nullable(z.string()),
1377
+ createdAt: z.nullable(z.any()),
1378
+ createdBy: z.nullable(z.string()),
1379
+ venueId: z.nullable(z.string()),
1380
+ tags: z.nullable(z.array(z.string())),
1381
+ bucket: z.string(),
1382
+ storagePath: z.string(),
1383
+ filename: z.string(),
1384
+ contentType: z.string(),
1385
+ sizeBytes: z.number(),
1386
+ caption: z.object({}).catchall(z.any()),
1387
+ alt: z.object({}).catchall(z.any()),
1388
+ cropArea: z.nullable(
1389
+ z.object({
1390
+ x: z.number(),
1391
+ y: z.number(),
1392
+ width: z.number(),
1393
+ height: z.number()
1394
+ })
1395
+ ),
1396
+ publicUrl: z.string()
1397
+ })
1398
+ );
1399
+
1018
1400
  const fetchBasketResponseSchema = z.object({
1019
1401
  id: z.uuid(),
1020
1402
  sessionId: z.string(),
@@ -1132,7 +1514,7 @@ const fetchEventResponseSchema = z.object({
1132
1514
  })
1133
1515
  )
1134
1516
  ),
1135
- posters: z.optional(
1517
+ assets: z.optional(
1136
1518
  z.array(
1137
1519
  z.object({
1138
1520
  id: z.string(),
@@ -1157,6 +1539,8 @@ const promotionBenefitTypeSchema = z.enum([
1157
1539
  "buy_x_get_y"
1158
1540
  ]);
1159
1541
 
1542
+ const ritualTypeSchema = z.enum(["service", "special"]);
1543
+
1160
1544
  const fetchEventsResponseSchema = z.array(
1161
1545
  z.object({
1162
1546
  id: z.string(),
@@ -1166,6 +1550,10 @@ const fetchEventsResponseSchema = z.array(
1166
1550
  description: z.nullable(z.object({}).catchall(z.string())),
1167
1551
  scheduleId: z.nullable(z.string()),
1168
1552
  ritualId: z.nullable(z.string()),
1553
+ occurrenceDate: z.nullable(z.string()),
1554
+ get ritualType() {
1555
+ return ritualTypeSchema;
1556
+ },
1169
1557
  maxBookings: z.nullable(z.number()),
1170
1558
  maxGuests: z.nullable(z.number()),
1171
1559
  minPartySize: z.nullable(z.number()),
@@ -1264,7 +1652,7 @@ const fetchEventsResponseSchema = z.array(
1264
1652
  })
1265
1653
  ),
1266
1654
  nextOccurrence: z.nullable(z.string()),
1267
- posters: z.array(
1655
+ assets: z.array(
1268
1656
  z.object({
1269
1657
  id: z.string(),
1270
1658
  get type() {
@@ -1965,7 +2353,7 @@ const integrationNotificationTypeSchema = z.enum([
1965
2353
  "reservation_cancelled"
1966
2354
  ]);
1967
2355
 
1968
- const integrationTypeSchema = z.enum(["telegram"]);
2356
+ const integrationTypeSchema = z.enum(["telegram", "google_ads"]);
1969
2357
 
1970
2358
  const inventoryAssetStatusSchema = z.enum([
1971
2359
  "available",
@@ -2222,6 +2610,15 @@ const makeReservationRequestSchema = z.object({
2222
2610
  ).nullish(),
2223
2611
  tablePreference: z.string().max(100).describe(
2224
2612
  'Preferred seating area or table type (e.g., "window seat", "quiet area", "patio")'
2613
+ ).nullish(),
2614
+ gclid: z.string().describe(
2615
+ "Google Ads click identifier from the landing URL (auto-tagging). Stored for server-side conversion reporting."
2616
+ ).nullish(),
2617
+ gbraid: z.string().describe(
2618
+ "Google Ads click identifier for app/web (iOS) where `gclid` is unavailable."
2619
+ ).nullish(),
2620
+ wbraid: z.string().describe(
2621
+ "Google Ads click identifier for web-to-app (iOS) where `gclid` is unavailable."
2225
2622
  ).nullish()
2226
2623
  }).describe("Request payload for making a new reservation");
2227
2624
 
@@ -2280,6 +2677,9 @@ const makeReservationResponseSchema = z.object({
2280
2677
  get source() {
2281
2678
  return areaBookingRequestSourceSchema;
2282
2679
  },
2680
+ gclid: z.nullable(z.string()),
2681
+ gbraid: z.nullable(z.string()),
2682
+ wbraid: z.nullable(z.string()),
2283
2683
  specialRequests: z.nullable(
2284
2684
  z.string().describe("Any special requirements or notes")
2285
2685
  ),
@@ -2611,6 +3011,53 @@ const updateDeliveryAddressTeamOrderResponseSchema = z.object({
2611
3011
  deliveryAddressId: z.string()
2612
3012
  });
2613
3013
 
3014
+ const uploadAssetResponseSchema = z.object({
3015
+ asset: z.object({
3016
+ id: z.string(),
3017
+ get type() {
3018
+ return assetTypeSchema;
3019
+ },
3020
+ tags: z.nullable(z.array(z.string())),
3021
+ bucket: z.string(),
3022
+ storagePath: z.string(),
3023
+ filename: z.string(),
3024
+ contentType: z.string(),
3025
+ sizeBytes: z.int().min(-2147483648).max(2147483647),
3026
+ caption: z.union([
3027
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
3028
+ z.array(z.any()),
3029
+ z.object({}).catchall(z.any())
3030
+ ]),
3031
+ alt: z.union([
3032
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
3033
+ z.array(z.any()),
3034
+ z.object({}).catchall(z.any())
3035
+ ]),
3036
+ metadata: z.nullable(
3037
+ z.union([
3038
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
3039
+ z.array(z.any()),
3040
+ z.object({}).catchall(z.any())
3041
+ ])
3042
+ ),
3043
+ cropArea: z.nullable(
3044
+ z.union([
3045
+ z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
3046
+ z.array(z.any()),
3047
+ z.object({}).catchall(z.any())
3048
+ ])
3049
+ ),
3050
+ isActive: z.boolean(),
3051
+ sortIndex: z.nullable(z.string().max(255)),
3052
+ createdAt: z.nullable(z.any()),
3053
+ updatedAt: z.nullable(z.any()),
3054
+ createdBy: z.nullable(z.string()),
3055
+ updatedBy: z.nullable(z.string()),
3056
+ venueId: z.nullable(z.string())
3057
+ }),
3058
+ publicUrl: z.nullable(z.string())
3059
+ });
3060
+
2614
3061
  const venueAssetTypeSchema = z.enum([
2615
3062
  "logomark",
2616
3063
  "wordmark",
@@ -2633,6 +3080,9 @@ const schemas = {
2633
3080
  AbandonBasketRequest: abandonBasketRequestSchema,
2634
3081
  AbandonBasketResponse: abandonBasketResponseSchema,
2635
3082
  ActorType: actorTypeSchema,
3083
+ AdChannel: adChannelSchema,
3084
+ AdOwnerType: adOwnerTypeSchema,
3085
+ AdStatus: adStatusSchema,
2636
3086
  AddToBasketRequest: addToBasketRequestSchema,
2637
3087
  AddToBasketResponse: addToBasketResponseSchema,
2638
3088
  AdditiveFunction: additiveFunctionSchema,
@@ -2660,6 +3110,8 @@ const schemas = {
2660
3110
  ConfirmOrderResponse: confirmOrderResponseSchema,
2661
3111
  ContactPreference: contactPreferenceSchema,
2662
3112
  CountryCode: countryCodeSchema,
3113
+ CreateAdRequest: createAdRequestSchema,
3114
+ CreateAdResponse: createAdResponseSchema,
2663
3115
  CreateDeltaPaymentIntentRequest: createDeltaPaymentIntentRequestSchema,
2664
3116
  CreateDeltaPaymentIntentResponse: createDeltaPaymentIntentResponseSchema,
2665
3117
  CreateEventRequest: createEventRequestSchema,
@@ -2670,24 +3122,35 @@ const schemas = {
2670
3122
  CreateTeamOrderResponse: createTeamOrderResponseSchema,
2671
3123
  Currency: currencySchema,
2672
3124
  DayOfWeek: dayOfWeekSchema,
3125
+ DeleteAdResponse: deleteAdResponseSchema,
3126
+ DeleteAssetResponse: deleteAssetResponseSchema,
3127
+ DeleteEventResponse: deleteEventResponseSchema,
2673
3128
  DeliveryAddress: deliveryAddressSchema,
2674
3129
  DepositTransactionType: depositTransactionTypeSchema,
2675
3130
  DepositwareStatus: depositwareStatusSchema,
3131
+ EditAdRequest: editAdRequestSchema,
3132
+ EditAdResponse: editAdResponseSchema,
2676
3133
  EditArticleRequest: editArticleRequestSchema,
2677
3134
  EditArticleResponse: editArticleResponseSchema,
3135
+ EditEventRequest: editEventRequestSchema,
3136
+ EditEventResponse: editEventResponseSchema,
2678
3137
  EntityOwnerType: entityOwnerTypeSchema,
2679
3138
  EnumFalse: enumFalseSchema,
2680
3139
  EnumTrue: enumTrueSchema,
3140
+ EventAssetSource: eventAssetSourceSchema,
2681
3141
  ExtendDeadlineTeamOrderRequest: extendDeadlineTeamOrderRequestSchema,
2682
3142
  ExtendDeadlineTeamOrderResponse: extendDeadlineTeamOrderResponseSchema,
2683
3143
  FeatureCategory: featureCategorySchema,
2684
3144
  FeatureImage: featureImageSchema,
2685
3145
  FeatureStatus: featureStatusSchema,
3146
+ FetchAdResponse: fetchAdResponseSchema,
3147
+ FetchAdsResponse: fetchAdsResponseSchema,
2686
3148
  FetchAreaBookingsResponse: fetchAreaBookingsResponseSchema,
2687
3149
  FetchAreaResponse: fetchAreaResponseSchema,
2688
3150
  FetchAreasResponse: fetchAreasResponseSchema,
2689
3151
  FetchArticleResponse: fetchArticleResponseSchema,
2690
3152
  FetchArticlesResponse: fetchArticlesResponseSchema,
3153
+ FetchAssetsByTagResponse: fetchAssetsByTagResponseSchema,
2691
3154
  FetchBasketResponse: fetchBasketResponseSchema,
2692
3155
  FetchEventResponse: fetchEventResponseSchema,
2693
3156
  FetchEventsResponse: fetchEventsResponseSchema,
@@ -2733,6 +3196,7 @@ const schemas = {
2733
3196
  RemoveFromBasketResponse: removeFromBasketResponseSchema,
2734
3197
  ReservationPromotionStatus: reservationPromotionStatusSchema,
2735
3198
  ReservationStatus: reservationStatusSchema,
3199
+ RitualType: ritualTypeSchema,
2736
3200
  ScanTokenEntityType: scanTokenEntityTypeSchema,
2737
3201
  SetArticleFeatureImageUploadBody: setArticleFeatureImageUploadBodySchema,
2738
3202
  SetBasketDeclaredReturnsRequest: setBasketDeclaredReturnsRequestSchema,
@@ -2763,6 +3227,7 @@ const schemas = {
2763
3227
  Unit: unitSchema,
2764
3228
  UpdateDeliveryAddressTeamOrderRequest: updateDeliveryAddressTeamOrderRequestSchema,
2765
3229
  UpdateDeliveryAddressTeamOrderResponse: updateDeliveryAddressTeamOrderResponseSchema,
3230
+ UploadAssetResponse: uploadAssetResponseSchema,
2766
3231
  VenueAssetType: venueAssetTypeSchema,
2767
3232
  VenueChargeKind: venueChargeKindSchema,
2768
3233
  VenueType: venueTypeSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "order3000",
3
- "version": "1.0.2",
3
+ "version": "1.2.0",
4
4
  "description": "order3000 node.js sdk",
5
5
  "main": "./dist/client.cjs",
6
6
  "module": "./dist/client.mjs",
@@ -30,8 +30,6 @@
30
30
  "dependencies": {
31
31
  "@date-fns/tz": "^1.4.1",
32
32
  "@supabase/supabase-js": "^2.49.8",
33
- "i18next": "^25.6.0",
34
- "i18next-fs-backend": "^2.6.0",
35
33
  "react-type-animation": "^3.2.0",
36
34
  "zod": "^4.2.1",
37
35
  "@kolaveri/money": "1.1.4"
@@ -49,9 +47,9 @@
49
47
  "prettier": "^3.7.4",
50
48
  "tsx": "^4.19.2",
51
49
  "typescript": "^5.9.3",
52
- "@kolaveri/eslint-config": "1.8.9",
53
- "@kolaveri/tsconfig": "1.0.1",
54
- "@kolaveri/prettier-config": "1.0.6"
50
+ "@kolaveri/eslint-config": "1.10.1",
51
+ "@kolaveri/prettier-config": "1.0.6",
52
+ "@kolaveri/tsconfig": "1.0.1"
55
53
  },
56
54
  "files": [
57
55
  "dist"