order3000 1.12.0 → 1.13.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 +63 -0
- package/dist/client.d.cts +39 -2
- package/dist/client.d.mts +39 -2
- package/dist/client.mjs +63 -0
- package/dist/{index-bbg7Ev_r.d.cts → index-CJebGltI.d.cts} +300 -3
- package/dist/{index-bbg7Ev_r.d.mts → index-CJebGltI.d.mts} +300 -3
- package/dist/menu.d.cts +1 -1
- package/dist/menu.d.mts +1 -1
- package/dist/schemas.cjs +464 -2
- package/dist/schemas.d.cts +417 -1
- package/dist/schemas.d.mts +417 -1
- package/dist/schemas.mjs +464 -2
- package/package.json +3 -3
package/dist/schemas.mjs
CHANGED
|
@@ -327,6 +327,12 @@ const billingModeSchema = z.enum(["single_anchor", "split"]);
|
|
|
327
327
|
|
|
328
328
|
const bookingChannelSchema = z.enum(["reservation", "order"]);
|
|
329
329
|
|
|
330
|
+
const bookletSectionInputSchema = z.object({
|
|
331
|
+
publicationAccessor: z.string().min(1),
|
|
332
|
+
pageStart: z.optional(z.int().min(1).max(9007199254740991)),
|
|
333
|
+
pageEnd: z.optional(z.int().min(1).max(9007199254740991))
|
|
334
|
+
});
|
|
335
|
+
|
|
330
336
|
const cancelSubscriptionRequestSchema = z.object({
|
|
331
337
|
subscriberId: z.string().min(1)
|
|
332
338
|
});
|
|
@@ -355,6 +361,21 @@ const cancellationReasonSchema = z.enum([
|
|
|
355
361
|
"restaurant_request"
|
|
356
362
|
]);
|
|
357
363
|
|
|
364
|
+
const composeMenuPublicationBookletRequestSchema = z.object({
|
|
365
|
+
venueAccessor: z.string().min(1),
|
|
366
|
+
bookletAccessor: z.optional(z.string().min(1)),
|
|
367
|
+
get sections() {
|
|
368
|
+
return z.array(bookletSectionInputSchema).min(1).optional();
|
|
369
|
+
},
|
|
370
|
+
locale: z.optional(z.string().min(2).max(5))
|
|
371
|
+
});
|
|
372
|
+
|
|
373
|
+
const composeMenuPublicationBookletResponseSchema = z.object({
|
|
374
|
+
fileName: z.string(),
|
|
375
|
+
pages: z.int().min(1).max(9007199254740991),
|
|
376
|
+
pdfBase64: z.string()
|
|
377
|
+
});
|
|
378
|
+
|
|
358
379
|
const confirmOrderRequestSchema = z.object({
|
|
359
380
|
venueAccessor: z.string().min(1),
|
|
360
381
|
orderId: z.string().min(1),
|
|
@@ -905,6 +926,72 @@ const createEventResponseSchema = z.object({
|
|
|
905
926
|
updatedAt: z.nullable(z.any())
|
|
906
927
|
}).describe("Successfully created event");
|
|
907
928
|
|
|
929
|
+
const createMenuPublicationRequestSchema = z.object({
|
|
930
|
+
venueAccessor: z.string().min(1),
|
|
931
|
+
menuAccessor: z.string().min(1),
|
|
932
|
+
name: z.optional(z.string().min(1))
|
|
933
|
+
});
|
|
934
|
+
|
|
935
|
+
const publicationPaletteSchema = z.enum(["primary", "secondary"]);
|
|
936
|
+
|
|
937
|
+
const publicationPaperSizeSchema = z.enum([
|
|
938
|
+
"a4",
|
|
939
|
+
"a5",
|
|
940
|
+
"letter",
|
|
941
|
+
"legal"
|
|
942
|
+
]);
|
|
943
|
+
|
|
944
|
+
const publicationSourceTypeSchema = z.enum([
|
|
945
|
+
"menu",
|
|
946
|
+
"dish",
|
|
947
|
+
"beverage",
|
|
948
|
+
"event",
|
|
949
|
+
"venue"
|
|
950
|
+
]);
|
|
951
|
+
|
|
952
|
+
const publicationTypeSchema = z.enum([
|
|
953
|
+
"menu",
|
|
954
|
+
"flyer",
|
|
955
|
+
"wine_list",
|
|
956
|
+
"about",
|
|
957
|
+
"cover",
|
|
958
|
+
"booklet",
|
|
959
|
+
"custom"
|
|
960
|
+
]);
|
|
961
|
+
|
|
962
|
+
const createMenuPublicationResponseSchema = z.object({
|
|
963
|
+
id: z.string(),
|
|
964
|
+
venueId: z.string(),
|
|
965
|
+
accessor: z.string(),
|
|
966
|
+
name: z.string(),
|
|
967
|
+
get type() {
|
|
968
|
+
return publicationTypeSchema;
|
|
969
|
+
},
|
|
970
|
+
get paperSize() {
|
|
971
|
+
return publicationPaperSizeSchema;
|
|
972
|
+
},
|
|
973
|
+
get palette() {
|
|
974
|
+
return publicationPaletteSchema;
|
|
975
|
+
},
|
|
976
|
+
designDoc: z.union([
|
|
977
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
978
|
+
z.array(z.any()),
|
|
979
|
+
z.object({}).catchall(z.any())
|
|
980
|
+
]),
|
|
981
|
+
renderedAssetId: z.nullable(z.string()),
|
|
982
|
+
templateId: z.nullable(z.string()),
|
|
983
|
+
get sourceType() {
|
|
984
|
+
return publicationSourceTypeSchema;
|
|
985
|
+
},
|
|
986
|
+
sourceId: z.nullable(z.string()),
|
|
987
|
+
isActive: z.boolean(),
|
|
988
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
989
|
+
createdAt: z.nullable(z.any()),
|
|
990
|
+
createdBy: z.nullable(z.string()),
|
|
991
|
+
updatedAt: z.nullable(z.any()),
|
|
992
|
+
updatedBy: z.nullable(z.string())
|
|
993
|
+
});
|
|
994
|
+
|
|
908
995
|
const createPaymentIntentRequestSchema = z.object({
|
|
909
996
|
venueAccessor: z.string().min(1),
|
|
910
997
|
basketId: z.string().min(1),
|
|
@@ -1437,6 +1524,11 @@ const editBeverageRequestSchema = z.object({
|
|
|
1437
1524
|
z.array(z.any()),
|
|
1438
1525
|
z.object({}).catchall(z.any())
|
|
1439
1526
|
]).nullish(),
|
|
1527
|
+
subtitle: z.union([
|
|
1528
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1529
|
+
z.array(z.any()),
|
|
1530
|
+
z.object({}).catchall(z.any())
|
|
1531
|
+
]).nullish(),
|
|
1440
1532
|
description: z.union([
|
|
1441
1533
|
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1442
1534
|
z.array(z.any()),
|
|
@@ -1495,6 +1587,13 @@ const editBeverageResponseSchema = z.object({
|
|
|
1495
1587
|
z.object({}).catchall(z.any())
|
|
1496
1588
|
])
|
|
1497
1589
|
),
|
|
1590
|
+
subtitle: z.nullable(
|
|
1591
|
+
z.union([
|
|
1592
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1593
|
+
z.array(z.any()),
|
|
1594
|
+
z.object({}).catchall(z.any())
|
|
1595
|
+
])
|
|
1596
|
+
),
|
|
1498
1597
|
description: z.nullable(
|
|
1499
1598
|
z.union([
|
|
1500
1599
|
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
@@ -1549,6 +1648,7 @@ const editDishRequestSchema = z.object({
|
|
|
1549
1648
|
name: z.object({}).catchall(z.string().min(1)),
|
|
1550
1649
|
shortName: z.object({}).catchall(z.string()).nullish(),
|
|
1551
1650
|
kitchenName: z.object({}).catchall(z.string()).nullish(),
|
|
1651
|
+
subtitle: z.object({}).catchall(z.string()).nullish(),
|
|
1552
1652
|
description: z.object({}).catchall(z.string()).nullish(),
|
|
1553
1653
|
longDescription: z.object({}).catchall(z.string()).nullish(),
|
|
1554
1654
|
suggestedPrice: z.number().nullish(),
|
|
@@ -1586,6 +1686,13 @@ const editDishResponseSchema = z.object({
|
|
|
1586
1686
|
z.object({}).catchall(z.any())
|
|
1587
1687
|
])
|
|
1588
1688
|
),
|
|
1689
|
+
subtitle: z.nullable(
|
|
1690
|
+
z.union([
|
|
1691
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1692
|
+
z.array(z.any()),
|
|
1693
|
+
z.object({}).catchall(z.any())
|
|
1694
|
+
])
|
|
1695
|
+
),
|
|
1589
1696
|
description: z.nullable(
|
|
1590
1697
|
z.union([
|
|
1591
1698
|
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
@@ -2013,6 +2120,8 @@ const entityOwnerTypeSchema = z.enum([
|
|
|
2013
2120
|
"ritual"
|
|
2014
2121
|
]);
|
|
2015
2122
|
|
|
2123
|
+
const enumCenterLeftRightSchema = z.enum(["center", "left", "right"]);
|
|
2124
|
+
|
|
2016
2125
|
const enumFalseSchema = z.enum(["false"]);
|
|
2017
2126
|
|
|
2018
2127
|
const enumTrueSchema = z.enum(["true"]);
|
|
@@ -2558,6 +2667,13 @@ const fetchBeverageResponseSchema = z.object({
|
|
|
2558
2667
|
z.object({}).catchall(z.any())
|
|
2559
2668
|
])
|
|
2560
2669
|
),
|
|
2670
|
+
subtitle: z.nullable(
|
|
2671
|
+
z.union([
|
|
2672
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2673
|
+
z.array(z.any()),
|
|
2674
|
+
z.object({}).catchall(z.any())
|
|
2675
|
+
])
|
|
2676
|
+
),
|
|
2561
2677
|
description: z.nullable(
|
|
2562
2678
|
z.union([
|
|
2563
2679
|
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
@@ -2632,6 +2748,13 @@ const fetchDishResponseSchema = z.object({
|
|
|
2632
2748
|
z.object({}).catchall(z.any())
|
|
2633
2749
|
])
|
|
2634
2750
|
),
|
|
2751
|
+
subtitle: z.nullable(
|
|
2752
|
+
z.union([
|
|
2753
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2754
|
+
z.array(z.any()),
|
|
2755
|
+
z.object({}).catchall(z.any())
|
|
2756
|
+
])
|
|
2757
|
+
),
|
|
2635
2758
|
description: z.nullable(
|
|
2636
2759
|
z.union([
|
|
2637
2760
|
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
@@ -3080,7 +3203,8 @@ const menuItemTypeSchema = z.enum(["dish", "beverage"]);
|
|
|
3080
3203
|
|
|
3081
3204
|
const fetchMenuResponseSchema = z.object({
|
|
3082
3205
|
id: z.string(),
|
|
3083
|
-
|
|
3206
|
+
title: z.object({}).catchall(z.string()),
|
|
3207
|
+
subtitle: z.nullable(z.object({}).catchall(z.string())),
|
|
3084
3208
|
accessor: z.string(),
|
|
3085
3209
|
metadata: z.nullable(
|
|
3086
3210
|
z.object({
|
|
@@ -3217,6 +3341,21 @@ const fetchMenuResponseSchema = z.object({
|
|
|
3217
3341
|
publicUrl: z.string()
|
|
3218
3342
|
})
|
|
3219
3343
|
)
|
|
3344
|
+
),
|
|
3345
|
+
additives: z.optional(
|
|
3346
|
+
z.array(
|
|
3347
|
+
z.object({
|
|
3348
|
+
id: z.string(),
|
|
3349
|
+
eNumber: z.string(),
|
|
3350
|
+
technicalName: z.object({}).catchall(z.string()),
|
|
3351
|
+
isAllergen: z.nullable(z.boolean()),
|
|
3352
|
+
requiresWarning: z.nullable(z.boolean()),
|
|
3353
|
+
warningMessage: z.nullable(
|
|
3354
|
+
z.object({}).catchall(z.string())
|
|
3355
|
+
),
|
|
3356
|
+
regulation: z.nullable(z.string())
|
|
3357
|
+
})
|
|
3358
|
+
)
|
|
3220
3359
|
)
|
|
3221
3360
|
})
|
|
3222
3361
|
),
|
|
@@ -3269,6 +3408,21 @@ const fetchMenuResponseSchema = z.object({
|
|
|
3269
3408
|
publicUrl: z.string()
|
|
3270
3409
|
})
|
|
3271
3410
|
)
|
|
3411
|
+
),
|
|
3412
|
+
additives: z.optional(
|
|
3413
|
+
z.array(
|
|
3414
|
+
z.object({
|
|
3415
|
+
id: z.string(),
|
|
3416
|
+
eNumber: z.string(),
|
|
3417
|
+
technicalName: z.object({}).catchall(z.string()),
|
|
3418
|
+
isAllergen: z.nullable(z.boolean()),
|
|
3419
|
+
requiresWarning: z.nullable(z.boolean()),
|
|
3420
|
+
warningMessage: z.nullable(
|
|
3421
|
+
z.object({}).catchall(z.string())
|
|
3422
|
+
),
|
|
3423
|
+
regulation: z.nullable(z.string())
|
|
3424
|
+
})
|
|
3425
|
+
)
|
|
3272
3426
|
)
|
|
3273
3427
|
})
|
|
3274
3428
|
)
|
|
@@ -3619,6 +3773,10 @@ const fetchTeamOrderResponseSchema = z.object({
|
|
|
3619
3773
|
isLead: z.boolean()
|
|
3620
3774
|
});
|
|
3621
3775
|
|
|
3776
|
+
const fontRoleSchema = z.enum(["system", "accent"]);
|
|
3777
|
+
|
|
3778
|
+
const fontStyleSchema = z.enum(["normal", "italic"]);
|
|
3779
|
+
|
|
3622
3780
|
const gbpMediaCategorySchema = z.enum([
|
|
3623
3781
|
"cover",
|
|
3624
3782
|
"logo",
|
|
@@ -4188,6 +4346,13 @@ const mentionFieldFormatterSchema = z.enum([
|
|
|
4188
4346
|
|
|
4189
4347
|
const mentionTypeSchema = z.enum(["link", "value"]);
|
|
4190
4348
|
|
|
4349
|
+
const menuItemMarkerSchema = z.enum([
|
|
4350
|
+
"vegan",
|
|
4351
|
+
"vegetarian",
|
|
4352
|
+
"allergens",
|
|
4353
|
+
"spicy"
|
|
4354
|
+
]);
|
|
4355
|
+
|
|
4191
4356
|
const patchArticleFeatureImageBodySchema = z.object({
|
|
4192
4357
|
caption: z.optional(z.object({}).catchall(z.any())),
|
|
4193
4358
|
alt: z.optional(z.object({}).catchall(z.any()))
|
|
@@ -4244,6 +4409,60 @@ const placeOrderResponseSchema = z.object({
|
|
|
4244
4409
|
|
|
4245
4410
|
const platformRoleSchema = z.enum(["platform_maintainer"]);
|
|
4246
4411
|
|
|
4412
|
+
const publicationEventTypeSchema = z.enum(["download", "scan"]);
|
|
4413
|
+
|
|
4414
|
+
const publicationFrameStyleSchema = z.enum(["solid", "motif"]);
|
|
4415
|
+
|
|
4416
|
+
const publicationGroupBySchema = z.enum([
|
|
4417
|
+
"weekday",
|
|
4418
|
+
"calendar_week",
|
|
4419
|
+
"none"
|
|
4420
|
+
]);
|
|
4421
|
+
|
|
4422
|
+
const publicationGroupFlowSchema = z.enum(["stacked", "page_break"]);
|
|
4423
|
+
|
|
4424
|
+
const publicationPricePositionSchema = z.enum(["right", "bottom"]);
|
|
4425
|
+
|
|
4426
|
+
const publicationQrPlacementSchema = z.enum([
|
|
4427
|
+
"topLeft",
|
|
4428
|
+
"topRight",
|
|
4429
|
+
"bottomLeft",
|
|
4430
|
+
"bottomRight"
|
|
4431
|
+
]);
|
|
4432
|
+
|
|
4433
|
+
const publicationQrTargetSchema = z.enum(["online_menu", "custom"]);
|
|
4434
|
+
|
|
4435
|
+
const publicationRulePositionSchema = z.enum([
|
|
4436
|
+
"below_title",
|
|
4437
|
+
"below_subtitle",
|
|
4438
|
+
"below_description"
|
|
4439
|
+
]);
|
|
4440
|
+
|
|
4441
|
+
const publicationRuleStyleSchema = z.enum([
|
|
4442
|
+
"solid",
|
|
4443
|
+
"dashed",
|
|
4444
|
+
"dotted",
|
|
4445
|
+
"double",
|
|
4446
|
+
"wavy",
|
|
4447
|
+
"diamond",
|
|
4448
|
+
"flourish",
|
|
4449
|
+
"asterisks",
|
|
4450
|
+
"fade",
|
|
4451
|
+
"dot_ornament",
|
|
4452
|
+
"custom"
|
|
4453
|
+
]);
|
|
4454
|
+
|
|
4455
|
+
const publicationSectionTypeSchema = z.enum(["cover", "body", "back"]);
|
|
4456
|
+
|
|
4457
|
+
const publicationTextAlignSchema = z.enum([
|
|
4458
|
+
"left",
|
|
4459
|
+
"center",
|
|
4460
|
+
"right",
|
|
4461
|
+
"justify"
|
|
4462
|
+
]);
|
|
4463
|
+
|
|
4464
|
+
const publicationWeekScopeSchema = z.enum(["current", "all", "range"]);
|
|
4465
|
+
|
|
4247
4466
|
const reduceDeltaPaymentIntentRequestSchema = z.object({
|
|
4248
4467
|
venueAccessor: z.string().min(1),
|
|
4249
4468
|
basketId: z.string().min(1),
|
|
@@ -4276,6 +4495,18 @@ const removeFromBasketResponseSchema = z.object({
|
|
|
4276
4495
|
}
|
|
4277
4496
|
});
|
|
4278
4497
|
|
|
4498
|
+
const renderMenuPublicationPdfRequestSchema = z.object({
|
|
4499
|
+
venueAccessor: z.string().min(1),
|
|
4500
|
+
publicationAccessor: z.string().min(1),
|
|
4501
|
+
locale: z.optional(z.string().min(2).max(5))
|
|
4502
|
+
});
|
|
4503
|
+
|
|
4504
|
+
const renderMenuPublicationPdfResponseSchema = z.object({
|
|
4505
|
+
fileName: z.string(),
|
|
4506
|
+
pages: z.int().min(1).max(9007199254740991),
|
|
4507
|
+
pdfBase64: z.string()
|
|
4508
|
+
});
|
|
4509
|
+
|
|
4279
4510
|
const reservationMessageStatusSchema = z.enum(["draft", "sent"]);
|
|
4280
4511
|
|
|
4281
4512
|
const reservationModeSchema = z.enum(["passive", "auto_steer"]);
|
|
@@ -4532,6 +4763,206 @@ const setFulfillmentAtTeamOrderResponseSchema = z.object({
|
|
|
4532
4763
|
deadlineAt: z.nullable(z.iso.datetime())
|
|
4533
4764
|
});
|
|
4534
4765
|
|
|
4766
|
+
const setMenuPublicationBlocksRequestSchema = z.object({
|
|
4767
|
+
venueAccessor: z.string().min(1),
|
|
4768
|
+
publicationAccessor: z.string().min(1),
|
|
4769
|
+
showTitle: z.optional(z.boolean()),
|
|
4770
|
+
title: z.optional(z.object({}).catchall(z.string())),
|
|
4771
|
+
showSubtitle: z.optional(z.boolean()),
|
|
4772
|
+
subtitle: z.optional(z.object({}).catchall(z.string())),
|
|
4773
|
+
get subtitleFontRole() {
|
|
4774
|
+
return fontRoleSchema.optional();
|
|
4775
|
+
},
|
|
4776
|
+
subtitleFontFace: z.optional(
|
|
4777
|
+
z.string().regex(/^[1-9]\d{2}:(normal|italic)$/)
|
|
4778
|
+
),
|
|
4779
|
+
subtitleSize: z.optional(z.int().min(8).max(20)),
|
|
4780
|
+
subtitleColor: z.union([
|
|
4781
|
+
z.object({
|
|
4782
|
+
palette: z.string().min(1),
|
|
4783
|
+
shade: z.string().min(1)
|
|
4784
|
+
}),
|
|
4785
|
+
z.object({
|
|
4786
|
+
custom: z.string()
|
|
4787
|
+
})
|
|
4788
|
+
]).nullish(),
|
|
4789
|
+
showDescription: z.optional(z.boolean()),
|
|
4790
|
+
description: z.optional(z.object({}).catchall(z.string())),
|
|
4791
|
+
get titleFontRole() {
|
|
4792
|
+
return fontRoleSchema.optional();
|
|
4793
|
+
},
|
|
4794
|
+
titleFontFace: z.optional(z.string().regex(/^[1-9]\d{2}:(normal|italic)$/)),
|
|
4795
|
+
titleSize: z.optional(z.number().min(16).max(48)),
|
|
4796
|
+
get descriptionFontRole() {
|
|
4797
|
+
return fontRoleSchema.optional();
|
|
4798
|
+
},
|
|
4799
|
+
descriptionFontFace: z.optional(
|
|
4800
|
+
z.string().regex(/^[1-9]\d{2}:(normal|italic)$/)
|
|
4801
|
+
),
|
|
4802
|
+
descriptionSize: z.optional(z.number().min(8).max(16)),
|
|
4803
|
+
descriptionColor: z.union([
|
|
4804
|
+
z.object({
|
|
4805
|
+
palette: z.string().min(1),
|
|
4806
|
+
shade: z.string().min(1)
|
|
4807
|
+
}),
|
|
4808
|
+
z.object({
|
|
4809
|
+
custom: z.string()
|
|
4810
|
+
})
|
|
4811
|
+
]).nullish(),
|
|
4812
|
+
paddingX: z.optional(z.number().min(0)),
|
|
4813
|
+
paddingY: z.optional(z.number().min(0)),
|
|
4814
|
+
bleed: z.optional(z.boolean()),
|
|
4815
|
+
pageNumbers: z.optional(z.boolean()),
|
|
4816
|
+
get groupBy() {
|
|
4817
|
+
return publicationGroupBySchema.optional();
|
|
4818
|
+
},
|
|
4819
|
+
get groupFlow() {
|
|
4820
|
+
return publicationGroupFlowSchema.optional();
|
|
4821
|
+
},
|
|
4822
|
+
get weekScope() {
|
|
4823
|
+
return publicationWeekScopeSchema.optional();
|
|
4824
|
+
},
|
|
4825
|
+
weekRangeStart: z.optional(z.number().min(1).max(53)),
|
|
4826
|
+
weekRangeEnd: z.optional(z.number().min(1).max(53)),
|
|
4827
|
+
weekdaySubgrouping: z.optional(z.boolean()),
|
|
4828
|
+
showPrice: z.optional(z.boolean()),
|
|
4829
|
+
priceDecimals: z.optional(z.int().min(0).max(2)),
|
|
4830
|
+
get priceFontRole() {
|
|
4831
|
+
return fontRoleSchema.optional();
|
|
4832
|
+
},
|
|
4833
|
+
priceFontFace: z.optional(z.string().regex(/^[1-9]\d{2}:(normal|italic)$/)),
|
|
4834
|
+
priceShowCurrency: z.optional(z.boolean()),
|
|
4835
|
+
get pricePosition() {
|
|
4836
|
+
return publicationPricePositionSchema.optional();
|
|
4837
|
+
},
|
|
4838
|
+
chipOutlined: z.optional(z.boolean()),
|
|
4839
|
+
chipModest: z.optional(z.boolean()),
|
|
4840
|
+
veganChipColor: z.union([
|
|
4841
|
+
z.object({
|
|
4842
|
+
palette: z.string().min(1),
|
|
4843
|
+
shade: z.string().min(1)
|
|
4844
|
+
}),
|
|
4845
|
+
z.object({
|
|
4846
|
+
custom: z.string()
|
|
4847
|
+
})
|
|
4848
|
+
]).nullish(),
|
|
4849
|
+
vegetarianChipColor: z.union([
|
|
4850
|
+
z.object({
|
|
4851
|
+
palette: z.string().min(1),
|
|
4852
|
+
shade: z.string().min(1)
|
|
4853
|
+
}),
|
|
4854
|
+
z.object({
|
|
4855
|
+
custom: z.string()
|
|
4856
|
+
})
|
|
4857
|
+
]).nullish(),
|
|
4858
|
+
spicinessChipColor: z.union([
|
|
4859
|
+
z.object({
|
|
4860
|
+
palette: z.string().min(1),
|
|
4861
|
+
shade: z.string().min(1)
|
|
4862
|
+
}),
|
|
4863
|
+
z.object({
|
|
4864
|
+
custom: z.string()
|
|
4865
|
+
})
|
|
4866
|
+
]).nullish(),
|
|
4867
|
+
allergensChipColor: z.union([
|
|
4868
|
+
z.object({
|
|
4869
|
+
palette: z.string().min(1),
|
|
4870
|
+
shade: z.string().min(1)
|
|
4871
|
+
}),
|
|
4872
|
+
z.object({
|
|
4873
|
+
custom: z.string()
|
|
4874
|
+
})
|
|
4875
|
+
]).nullish(),
|
|
4876
|
+
get paperSize() {
|
|
4877
|
+
return publicationPaperSizeSchema.optional();
|
|
4878
|
+
},
|
|
4879
|
+
get palette() {
|
|
4880
|
+
return publicationPaletteSchema.optional();
|
|
4881
|
+
},
|
|
4882
|
+
showFrame: z.optional(z.boolean()),
|
|
4883
|
+
get frameStyle() {
|
|
4884
|
+
return publicationFrameStyleSchema.optional();
|
|
4885
|
+
},
|
|
4886
|
+
frameColor: z.union([
|
|
4887
|
+
z.object({
|
|
4888
|
+
palette: z.string().min(1),
|
|
4889
|
+
shade: z.string().min(1)
|
|
4890
|
+
}),
|
|
4891
|
+
z.object({
|
|
4892
|
+
custom: z.string()
|
|
4893
|
+
})
|
|
4894
|
+
]).nullish(),
|
|
4895
|
+
frameWidth: z.optional(z.number().min(1).max(12)),
|
|
4896
|
+
frameInset: z.optional(z.number().min(2).max(16)),
|
|
4897
|
+
get titleAlign() {
|
|
4898
|
+
return enumCenterLeftRightSchema.optional();
|
|
4899
|
+
},
|
|
4900
|
+
get subtitleAlign() {
|
|
4901
|
+
return enumCenterLeftRightSchema.optional();
|
|
4902
|
+
},
|
|
4903
|
+
get descriptionAlign() {
|
|
4904
|
+
return publicationTextAlignSchema.optional();
|
|
4905
|
+
},
|
|
4906
|
+
showRule: z.optional(z.boolean()),
|
|
4907
|
+
get rulePosition() {
|
|
4908
|
+
return publicationRulePositionSchema.optional();
|
|
4909
|
+
},
|
|
4910
|
+
get ruleStyle() {
|
|
4911
|
+
return publicationRuleStyleSchema.optional();
|
|
4912
|
+
},
|
|
4913
|
+
ruleColor: z.union([
|
|
4914
|
+
z.object({
|
|
4915
|
+
palette: z.string().min(1),
|
|
4916
|
+
shade: z.string().min(1)
|
|
4917
|
+
}),
|
|
4918
|
+
z.object({
|
|
4919
|
+
custom: z.string()
|
|
4920
|
+
})
|
|
4921
|
+
]).nullish(),
|
|
4922
|
+
showQr: z.optional(z.boolean()),
|
|
4923
|
+
get qrTarget() {
|
|
4924
|
+
return publicationQrTargetSchema.optional();
|
|
4925
|
+
},
|
|
4926
|
+
qrCustomUrl: z.optional(z.string()),
|
|
4927
|
+
get qrPlacement() {
|
|
4928
|
+
return publicationQrPlacementSchema.optional();
|
|
4929
|
+
},
|
|
4930
|
+
qrSize: z.optional(z.int().min(15).max(40)),
|
|
4931
|
+
itemTitleSize: z.optional(z.int().min(8).max(16)),
|
|
4932
|
+
itemSubtitleSize: z.optional(z.int().min(7).max(12)),
|
|
4933
|
+
itemSubtitleColor: z.union([
|
|
4934
|
+
z.object({
|
|
4935
|
+
palette: z.string().min(1),
|
|
4936
|
+
shade: z.string().min(1)
|
|
4937
|
+
}),
|
|
4938
|
+
z.object({
|
|
4939
|
+
custom: z.string()
|
|
4940
|
+
})
|
|
4941
|
+
]).nullish(),
|
|
4942
|
+
itemDescriptionSize: z.optional(z.int().min(8).max(14)),
|
|
4943
|
+
itemDescriptionColor: z.union([
|
|
4944
|
+
z.object({
|
|
4945
|
+
palette: z.string().min(1),
|
|
4946
|
+
shade: z.string().min(1)
|
|
4947
|
+
}),
|
|
4948
|
+
z.object({
|
|
4949
|
+
custom: z.string()
|
|
4950
|
+
})
|
|
4951
|
+
]).nullish(),
|
|
4952
|
+
showItemTitles: z.optional(z.boolean()),
|
|
4953
|
+
showItemSubtitles: z.optional(z.boolean()),
|
|
4954
|
+
showItemDescriptions: z.optional(z.boolean()),
|
|
4955
|
+
showVegan: z.optional(z.boolean()),
|
|
4956
|
+
showVegetarian: z.optional(z.boolean()),
|
|
4957
|
+
showSpiciness: z.optional(z.boolean()),
|
|
4958
|
+
showAllergens: z.optional(z.boolean())
|
|
4959
|
+
});
|
|
4960
|
+
|
|
4961
|
+
const setMenuPublicationBlocksResponseSchema = z.object({
|
|
4962
|
+
id: z.string(),
|
|
4963
|
+
accessor: z.string()
|
|
4964
|
+
});
|
|
4965
|
+
|
|
4535
4966
|
const setOrderLeadSettledRequestSchema = z.object({
|
|
4536
4967
|
publicId: z.string().min(1),
|
|
4537
4968
|
sessionId: z.string().min(1),
|
|
@@ -4768,7 +5199,9 @@ const venueAssetTypeSchema = z.enum([
|
|
|
4768
5199
|
"logomark",
|
|
4769
5200
|
"wordmark",
|
|
4770
5201
|
"combinationmark_horizontal",
|
|
4771
|
-
"combinationmark_vertical"
|
|
5202
|
+
"combinationmark_vertical",
|
|
5203
|
+
"motif",
|
|
5204
|
+
"divider"
|
|
4772
5205
|
]);
|
|
4773
5206
|
|
|
4774
5207
|
const venueChargeTypeSchema = z.enum(["base", "addon"]);
|
|
@@ -4818,11 +5251,14 @@ const schemas = {
|
|
|
4818
5251
|
BeverageCategory: beverageCategorySchema,
|
|
4819
5252
|
BillingMode: billingModeSchema,
|
|
4820
5253
|
BookingChannel: bookingChannelSchema,
|
|
5254
|
+
BookletSectionInput: bookletSectionInputSchema,
|
|
4821
5255
|
CancelSubscriptionRequest: cancelSubscriptionRequestSchema,
|
|
4822
5256
|
CancelSubscriptionResponse: cancelSubscriptionResponseSchema,
|
|
4823
5257
|
CancelTeamOrderRequest: cancelTeamOrderRequestSchema,
|
|
4824
5258
|
CancelTeamOrderResponse: cancelTeamOrderResponseSchema,
|
|
4825
5259
|
CancellationReason: cancellationReasonSchema,
|
|
5260
|
+
ComposeMenuPublicationBookletRequest: composeMenuPublicationBookletRequestSchema,
|
|
5261
|
+
ComposeMenuPublicationBookletResponse: composeMenuPublicationBookletResponseSchema,
|
|
4826
5262
|
ConfirmOrderRequest: confirmOrderRequestSchema,
|
|
4827
5263
|
ConfirmOrderResponse: confirmOrderResponseSchema,
|
|
4828
5264
|
ContactPreference: contactPreferenceSchema,
|
|
@@ -4835,6 +5271,8 @@ const schemas = {
|
|
|
4835
5271
|
CreateDeltaPaymentIntentResponse: createDeltaPaymentIntentResponseSchema,
|
|
4836
5272
|
CreateEventRequest: createEventRequestSchema,
|
|
4837
5273
|
CreateEventResponse: createEventResponseSchema,
|
|
5274
|
+
CreateMenuPublicationRequest: createMenuPublicationRequestSchema,
|
|
5275
|
+
CreateMenuPublicationResponse: createMenuPublicationResponseSchema,
|
|
4838
5276
|
CreatePaymentIntentRequest: createPaymentIntentRequestSchema,
|
|
4839
5277
|
CreatePaymentIntentResponse: createPaymentIntentResponseSchema,
|
|
4840
5278
|
CreateTeamOrderRequest: createTeamOrderRequestSchema,
|
|
@@ -4864,6 +5302,7 @@ const schemas = {
|
|
|
4864
5302
|
EditMetaAdRequest: editMetaAdRequestSchema,
|
|
4865
5303
|
EditMetaAdResponse: editMetaAdResponseSchema,
|
|
4866
5304
|
EntityOwnerType: entityOwnerTypeSchema,
|
|
5305
|
+
EnumCenterLeftRight: enumCenterLeftRightSchema,
|
|
4867
5306
|
EnumFalse: enumFalseSchema,
|
|
4868
5307
|
EnumTrue: enumTrueSchema,
|
|
4869
5308
|
EventAssetSource: eventAssetSourceSchema,
|
|
@@ -4892,6 +5331,8 @@ const schemas = {
|
|
|
4892
5331
|
FetchRitualResponse: fetchRitualResponseSchema,
|
|
4893
5332
|
FetchSlotAvailabilityResponse: fetchSlotAvailabilityResponseSchema,
|
|
4894
5333
|
FetchTeamOrderResponse: fetchTeamOrderResponseSchema,
|
|
5334
|
+
FontRole: fontRoleSchema,
|
|
5335
|
+
FontStyle: fontStyleSchema,
|
|
4895
5336
|
FulfillmentType: fulfillmentTypeSchema,
|
|
4896
5337
|
GbpMediaCategory: gbpMediaCategorySchema,
|
|
4897
5338
|
GbpSyncStatus: gbpSyncStatusSchema,
|
|
@@ -4920,6 +5361,7 @@ const schemas = {
|
|
|
4920
5361
|
MentionEntityType: mentionEntityTypeSchema,
|
|
4921
5362
|
MentionFieldFormatter: mentionFieldFormatterSchema,
|
|
4922
5363
|
MentionType: mentionTypeSchema,
|
|
5364
|
+
MenuItemMarker: menuItemMarkerSchema,
|
|
4923
5365
|
MenuItemType: menuItemTypeSchema,
|
|
4924
5366
|
OccupancyReason: occupancyReasonSchema,
|
|
4925
5367
|
OgImage: ogImageSchema,
|
|
@@ -4934,9 +5376,27 @@ const schemas = {
|
|
|
4934
5376
|
PlaceOrderResponse: placeOrderResponseSchema,
|
|
4935
5377
|
PlatformRole: platformRoleSchema,
|
|
4936
5378
|
PromotionBenefitType: promotionBenefitTypeSchema,
|
|
5379
|
+
PublicationEventType: publicationEventTypeSchema,
|
|
5380
|
+
PublicationFrameStyle: publicationFrameStyleSchema,
|
|
5381
|
+
PublicationGroupBy: publicationGroupBySchema,
|
|
5382
|
+
PublicationGroupFlow: publicationGroupFlowSchema,
|
|
5383
|
+
PublicationPalette: publicationPaletteSchema,
|
|
5384
|
+
PublicationPaperSize: publicationPaperSizeSchema,
|
|
5385
|
+
PublicationPricePosition: publicationPricePositionSchema,
|
|
5386
|
+
PublicationQrPlacement: publicationQrPlacementSchema,
|
|
5387
|
+
PublicationQrTarget: publicationQrTargetSchema,
|
|
5388
|
+
PublicationRulePosition: publicationRulePositionSchema,
|
|
5389
|
+
PublicationRuleStyle: publicationRuleStyleSchema,
|
|
5390
|
+
PublicationSectionType: publicationSectionTypeSchema,
|
|
5391
|
+
PublicationSourceType: publicationSourceTypeSchema,
|
|
5392
|
+
PublicationTextAlign: publicationTextAlignSchema,
|
|
5393
|
+
PublicationType: publicationTypeSchema,
|
|
5394
|
+
PublicationWeekScope: publicationWeekScopeSchema,
|
|
4937
5395
|
ReduceDeltaPaymentIntentRequest: reduceDeltaPaymentIntentRequestSchema,
|
|
4938
5396
|
ReduceDeltaPaymentIntentResponse: reduceDeltaPaymentIntentResponseSchema,
|
|
4939
5397
|
RemoveFromBasketResponse: removeFromBasketResponseSchema,
|
|
5398
|
+
RenderMenuPublicationPdfRequest: renderMenuPublicationPdfRequestSchema,
|
|
5399
|
+
RenderMenuPublicationPdfResponse: renderMenuPublicationPdfResponseSchema,
|
|
4940
5400
|
ReservationMessageStatus: reservationMessageStatusSchema,
|
|
4941
5401
|
ReservationMode: reservationModeSchema,
|
|
4942
5402
|
ReservationPromotionStatus: reservationPromotionStatusSchema,
|
|
@@ -4964,6 +5424,8 @@ const schemas = {
|
|
|
4964
5424
|
SetDiningTimeTeamOrderResponse: setDiningTimeTeamOrderResponseSchema,
|
|
4965
5425
|
SetFulfillmentAtTeamOrderRequest: setFulfillmentAtTeamOrderRequestSchema,
|
|
4966
5426
|
SetFulfillmentAtTeamOrderResponse: setFulfillmentAtTeamOrderResponseSchema,
|
|
5427
|
+
SetMenuPublicationBlocksRequest: setMenuPublicationBlocksRequestSchema,
|
|
5428
|
+
SetMenuPublicationBlocksResponse: setMenuPublicationBlocksResponseSchema,
|
|
4967
5429
|
SetOrderLeadSettledRequest: setOrderLeadSettledRequestSchema,
|
|
4968
5430
|
SetOrderLeadSettledResponse: setOrderLeadSettledResponseSchema,
|
|
4969
5431
|
SlotMode: slotModeSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "order3000",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "order3000 node.js sdk",
|
|
5
5
|
"main": "./dist/client.cjs",
|
|
6
6
|
"module": "./dist/client.mjs",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@supabase/supabase-js": "^2.49.8",
|
|
53
53
|
"react-type-animation": "^3.2.0",
|
|
54
54
|
"zod": "^4.2.1",
|
|
55
|
-
"@kolaveri/money": "1.
|
|
55
|
+
"@kolaveri/money": "1.2.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@kubb/cli": "4.37.5",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"prettier": "^3.7.4",
|
|
68
68
|
"tsx": "^4.19.2",
|
|
69
69
|
"typescript": "^5.9.3",
|
|
70
|
-
"@kolaveri/eslint-config": "1.
|
|
70
|
+
"@kolaveri/eslint-config": "1.12.0",
|
|
71
71
|
"@kolaveri/prettier-config": "1.0.6",
|
|
72
72
|
"@kolaveri/tsconfig": "1.0.1"
|
|
73
73
|
},
|