@deliverart/sdk-js-integration 2.45.2 → 2.46.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/README.md +6 -0
- package/dist/index.cjs +13 -1
- package/dist/index.d.cts +176 -20
- package/dist/index.d.ts +176 -20
- package/dist/index.js +13 -1
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -24,6 +24,12 @@ Integration types vary by service (delivery partners, payment gateways, etc.)
|
|
|
24
24
|
The ecommerce info payload exposes the cached menu DTO. Item entries include
|
|
25
25
|
`compositions`, the ids of removable base ingredients/components to send as
|
|
26
26
|
writable order item `removals`.
|
|
27
|
+
Public ecommerce menu items also expose `images` with the existing Image contract
|
|
28
|
+
and generated variants. Missing images in legacy responses default to an empty
|
|
29
|
+
list. `showProductImages` defaults to `true` on public info and integration reads;
|
|
30
|
+
it is writable through `UpdateIntegrationEcommerce`. An explicit `false` hides
|
|
31
|
+
product photos in editorial and grid layouts; compact menus remain text-only.
|
|
32
|
+
PATCH validation does not inject appearance defaults into unrelated updates.
|
|
27
33
|
It also exposes the POS `currency` on both the top-level ecommerce info payload
|
|
28
34
|
and `pointOfSale`, so storefronts can format menu prices, totals, payment
|
|
29
35
|
summaries, and order history without assuming EUR.
|
package/dist/index.cjs
CHANGED
|
@@ -2560,6 +2560,7 @@ var integrationEcommerceSchema = integrationBaseSchema.omit({ service: true }).e
|
|
|
2560
2560
|
displayName: import_zod7.z.string().nullable().default(null),
|
|
2561
2561
|
tagline: import_zod7.z.string().nullable().default(null),
|
|
2562
2562
|
menuViewMode: types_exports.integrationEcommerceMenuViewModeSchema.default("editorial"),
|
|
2563
|
+
showProductImages: import_zod7.z.boolean().default(true),
|
|
2563
2564
|
logo: import_sdk_js_image2.imageNullableIriSchema.default(null),
|
|
2564
2565
|
heroImage: import_sdk_js_image2.imageNullableIriSchema.default(null),
|
|
2565
2566
|
theme: types_exports.integrationEcommerceThemeSchema.default({
|
|
@@ -2581,6 +2582,7 @@ var integrationEcommerceEditableFieldsSchema = integrationEcommerceDetailsSchema
|
|
|
2581
2582
|
displayName: true,
|
|
2582
2583
|
tagline: true,
|
|
2583
2584
|
menuViewMode: true,
|
|
2585
|
+
showProductImages: true,
|
|
2584
2586
|
logo: true,
|
|
2585
2587
|
heroImage: true,
|
|
2586
2588
|
theme: true,
|
|
@@ -2624,6 +2626,7 @@ var integrationEcommerceMenuItemSchema = import_zod7.z.object({
|
|
|
2624
2626
|
category: import_zod7.z.string().nullable(),
|
|
2625
2627
|
name: import_zod7.z.array(import_sdk_js_menu2.localeItemSchema),
|
|
2626
2628
|
description: import_zod7.z.array(import_sdk_js_menu2.localeItemSchema),
|
|
2629
|
+
images: import_zod7.z.array(import_sdk_js_image2.imageSchema).default([]),
|
|
2627
2630
|
allergens: import_zod7.z.array(import_sdk_js_menu2.menuItemAllergenSchema),
|
|
2628
2631
|
diets: import_zod7.z.array(import_sdk_js_menu2.menuItemDietSchema),
|
|
2629
2632
|
prices: import_zod7.z.array(integrationEcommerceMenuPriceSchema),
|
|
@@ -2687,6 +2690,7 @@ var integrationEcommerceInfoSchema = import_zod7.z.object({
|
|
|
2687
2690
|
currency: import_zod7.z.string().length(3),
|
|
2688
2691
|
minOrderValue: import_zod7.z.coerce.number().nonnegative().default(0),
|
|
2689
2692
|
menuViewMode: types_exports.integrationEcommerceMenuViewModeSchema.default("editorial"),
|
|
2693
|
+
showProductImages: import_zod7.z.boolean().default(true),
|
|
2690
2694
|
logo: import_sdk_js_image2.imageSchema.nullable().default(null),
|
|
2691
2695
|
heroImage: import_sdk_js_image2.imageSchema.nullable().default(null),
|
|
2692
2696
|
theme: types_exports.integrationEcommerceThemeSchema.default({
|
|
@@ -8366,7 +8370,15 @@ var LinkIntegrationEcommerceRegistrationUser = class extends import_sdk_js_core1
|
|
|
8366
8370
|
|
|
8367
8371
|
// src/requests/services/ecommerce/UpdateIntegrationEcommerce.ts
|
|
8368
8372
|
var import_sdk_js_core148 = require("@deliverart/sdk-js-core");
|
|
8369
|
-
var updateIntegrationEcommerceInputSchema = integrationEcommerceEditableFieldsSchema.partial()
|
|
8373
|
+
var updateIntegrationEcommerceInputSchema = integrationEcommerceEditableFieldsSchema.partial().extend({
|
|
8374
|
+
displayName: integrationEcommerceEditableFieldsSchema.shape.displayName.removeDefault().optional(),
|
|
8375
|
+
tagline: integrationEcommerceEditableFieldsSchema.shape.tagline.removeDefault().optional(),
|
|
8376
|
+
menuViewMode: integrationEcommerceEditableFieldsSchema.shape.menuViewMode.removeDefault().optional(),
|
|
8377
|
+
showProductImages: integrationEcommerceEditableFieldsSchema.shape.showProductImages.removeDefault().optional(),
|
|
8378
|
+
logo: integrationEcommerceEditableFieldsSchema.shape.logo.removeDefault().optional(),
|
|
8379
|
+
heroImage: integrationEcommerceEditableFieldsSchema.shape.heroImage.removeDefault().optional(),
|
|
8380
|
+
theme: integrationEcommerceEditableFieldsSchema.shape.theme.removeDefault().optional()
|
|
8381
|
+
});
|
|
8370
8382
|
var updateIntegrationEcommerceResponseSchema = integrationEcommerceDetailsSchema;
|
|
8371
8383
|
var UpdateIntegrationEcommerce = class extends import_sdk_js_core148.AbstractApiRequest {
|
|
8372
8384
|
constructor(integrationEcommerceId, input) {
|