@deliverart/sdk-js-integration 2.23.12 → 2.23.14

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 CHANGED
@@ -22,6 +22,9 @@ Integration types vary by service (delivery partners, payment gateways, etc.)
22
22
  The ecommerce info payload exposes the cached menu DTO. Item entries include
23
23
  `compositions`, the ids of removable base ingredients/components to send as
24
24
  writable order item `removals`.
25
+ It also exposes the POS `currency` on both the top-level ecommerce info payload
26
+ and `pointOfSale`, so storefronts can format menu prices, totals, payment
27
+ summaries, and order history without assuming EUR.
25
28
 
26
29
  ### IRI Types
27
30
  - `IntegrationIri` - Integration IRI (`/integrations/:id`)
package/dist/index.cjs CHANGED
@@ -16099,6 +16099,7 @@ var integrationEcommercePointOfSaleInfoSchema = external_exports.object({
16099
16099
  name: external_exports.string(),
16100
16100
  address: import_sdk_js_global_types6.addressSchema,
16101
16101
  timezone: external_exports.string(),
16102
+ currency: external_exports.string().length(3),
16102
16103
  location: import_sdk_js_global_types6.locationSchema,
16103
16104
  openingTimeSettings: external_exports.array(import_sdk_js_point_of_sale3.timeSettingSchema),
16104
16105
  deliveryTimeSettings: external_exports.array(import_sdk_js_point_of_sale3.deliveryTimeSettingSchema),
@@ -16118,6 +16119,7 @@ var integrationEcommerceInfoSchema = external_exports.object({
16118
16119
  path: external_exports.string(),
16119
16120
  displayName: external_exports.string().nullable().default(null),
16120
16121
  tagline: external_exports.string().nullable().default(null),
16122
+ currency: external_exports.string().length(3),
16121
16123
  minOrderValue: external_exports.coerce.number().nonnegative().default(0),
16122
16124
  menuViewMode: types_exports.integrationEcommerceMenuViewModeSchema.default("editorial"),
16123
16125
  logo: import_sdk_js_image2.imageSchema.nullable().default(null),
package/dist/index.d.cts CHANGED
@@ -23812,6 +23812,7 @@ declare const integrationEcommercePointOfSaleInfoSchema: z.ZodObject<{
23812
23812
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23813
23813
  }, z.core.$strip>;
23814
23814
  timezone: z.ZodString;
23815
+ currency: z.ZodString;
23815
23816
  location: z.ZodObject<{
23816
23817
  latitude: z.ZodNumber;
23817
23818
  longitude: z.ZodNumber;
@@ -23884,6 +23885,7 @@ declare const integrationEcommerceInfoSchema: z.ZodObject<{
23884
23885
  path: z.ZodString;
23885
23886
  displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23886
23887
  tagline: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23888
+ currency: z.ZodString;
23887
23889
  minOrderValue: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
23888
23890
  menuViewMode: z.ZodDefault<z.ZodEnum<{
23889
23891
  editorial: "editorial";
@@ -23956,6 +23958,7 @@ declare const integrationEcommerceInfoSchema: z.ZodObject<{
23956
23958
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23957
23959
  }, z.core.$strip>;
23958
23960
  timezone: z.ZodString;
23961
+ currency: z.ZodString;
23959
23962
  location: z.ZodObject<{
23960
23963
  latitude: z.ZodNumber;
23961
23964
  longitude: z.ZodNumber;
@@ -37043,6 +37046,7 @@ declare const getIntegrationEcommerceInfoResponseSchema: z.ZodObject<{
37043
37046
  path: z.ZodString;
37044
37047
  displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
37045
37048
  tagline: z.ZodDefault<z.ZodNullable<z.ZodString>>;
37049
+ currency: z.ZodString;
37046
37050
  minOrderValue: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
37047
37051
  menuViewMode: z.ZodDefault<z.ZodEnum<{
37048
37052
  editorial: "editorial";
@@ -37115,6 +37119,7 @@ declare const getIntegrationEcommerceInfoResponseSchema: z.ZodObject<{
37115
37119
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37116
37120
  }, z.core.$strip>;
37117
37121
  timezone: z.ZodString;
37122
+ currency: z.ZodString;
37118
37123
  location: z.ZodObject<{
37119
37124
  latitude: z.ZodNumber;
37120
37125
  longitude: z.ZodNumber;
@@ -37327,6 +37332,7 @@ declare class GetIntegrationEcommerceInfo extends AbstractApiRequest<typeof getI
37327
37332
  path: z.ZodString;
37328
37333
  displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
37329
37334
  tagline: z.ZodDefault<z.ZodNullable<z.ZodString>>;
37335
+ currency: z.ZodString;
37330
37336
  minOrderValue: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
37331
37337
  menuViewMode: z.ZodDefault<z.ZodEnum<{
37332
37338
  editorial: "editorial";
@@ -37399,6 +37405,7 @@ declare class GetIntegrationEcommerceInfo extends AbstractApiRequest<typeof getI
37399
37405
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37400
37406
  }, z.core.$strip>;
37401
37407
  timezone: z.ZodString;
37408
+ currency: z.ZodString;
37402
37409
  location: z.ZodObject<{
37403
37410
  latitude: z.ZodNumber;
37404
37411
  longitude: z.ZodNumber;
package/dist/index.d.ts CHANGED
@@ -23812,6 +23812,7 @@ declare const integrationEcommercePointOfSaleInfoSchema: z.ZodObject<{
23812
23812
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23813
23813
  }, z.core.$strip>;
23814
23814
  timezone: z.ZodString;
23815
+ currency: z.ZodString;
23815
23816
  location: z.ZodObject<{
23816
23817
  latitude: z.ZodNumber;
23817
23818
  longitude: z.ZodNumber;
@@ -23884,6 +23885,7 @@ declare const integrationEcommerceInfoSchema: z.ZodObject<{
23884
23885
  path: z.ZodString;
23885
23886
  displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23886
23887
  tagline: z.ZodDefault<z.ZodNullable<z.ZodString>>;
23888
+ currency: z.ZodString;
23887
23889
  minOrderValue: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
23888
23890
  menuViewMode: z.ZodDefault<z.ZodEnum<{
23889
23891
  editorial: "editorial";
@@ -23956,6 +23958,7 @@ declare const integrationEcommerceInfoSchema: z.ZodObject<{
23956
23958
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23957
23959
  }, z.core.$strip>;
23958
23960
  timezone: z.ZodString;
23961
+ currency: z.ZodString;
23959
23962
  location: z.ZodObject<{
23960
23963
  latitude: z.ZodNumber;
23961
23964
  longitude: z.ZodNumber;
@@ -37043,6 +37046,7 @@ declare const getIntegrationEcommerceInfoResponseSchema: z.ZodObject<{
37043
37046
  path: z.ZodString;
37044
37047
  displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
37045
37048
  tagline: z.ZodDefault<z.ZodNullable<z.ZodString>>;
37049
+ currency: z.ZodString;
37046
37050
  minOrderValue: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
37047
37051
  menuViewMode: z.ZodDefault<z.ZodEnum<{
37048
37052
  editorial: "editorial";
@@ -37115,6 +37119,7 @@ declare const getIntegrationEcommerceInfoResponseSchema: z.ZodObject<{
37115
37119
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37116
37120
  }, z.core.$strip>;
37117
37121
  timezone: z.ZodString;
37122
+ currency: z.ZodString;
37118
37123
  location: z.ZodObject<{
37119
37124
  latitude: z.ZodNumber;
37120
37125
  longitude: z.ZodNumber;
@@ -37327,6 +37332,7 @@ declare class GetIntegrationEcommerceInfo extends AbstractApiRequest<typeof getI
37327
37332
  path: z.ZodString;
37328
37333
  displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
37329
37334
  tagline: z.ZodDefault<z.ZodNullable<z.ZodString>>;
37335
+ currency: z.ZodString;
37330
37336
  minOrderValue: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
37331
37337
  menuViewMode: z.ZodDefault<z.ZodEnum<{
37332
37338
  editorial: "editorial";
@@ -37399,6 +37405,7 @@ declare class GetIntegrationEcommerceInfo extends AbstractApiRequest<typeof getI
37399
37405
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37400
37406
  }, z.core.$strip>;
37401
37407
  timezone: z.ZodString;
37408
+ currency: z.ZodString;
37402
37409
  location: z.ZodObject<{
37403
37410
  latitude: z.ZodNumber;
37404
37411
  longitude: z.ZodNumber;
package/dist/index.js CHANGED
@@ -16135,6 +16135,7 @@ var integrationEcommercePointOfSaleInfoSchema = external_exports.object({
16135
16135
  name: external_exports.string(),
16136
16136
  address: addressSchema,
16137
16137
  timezone: external_exports.string(),
16138
+ currency: external_exports.string().length(3),
16138
16139
  location: locationSchema,
16139
16140
  openingTimeSettings: external_exports.array(timeSettingSchema),
16140
16141
  deliveryTimeSettings: external_exports.array(deliveryTimeSettingSchema),
@@ -16154,6 +16155,7 @@ var integrationEcommerceInfoSchema = external_exports.object({
16154
16155
  path: external_exports.string(),
16155
16156
  displayName: external_exports.string().nullable().default(null),
16156
16157
  tagline: external_exports.string().nullable().default(null),
16158
+ currency: external_exports.string().length(3),
16157
16159
  minOrderValue: external_exports.coerce.number().nonnegative().default(0),
16158
16160
  menuViewMode: types_exports.integrationEcommerceMenuViewModeSchema.default("editorial"),
16159
16161
  logo: imageSchema.nullable().default(null),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deliverart/sdk-js-integration",
3
3
  "description": "Deliverart JavaScript SDK for Integration Management",
4
- "version": "2.23.12",
4
+ "version": "2.23.14",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -18,16 +18,16 @@
18
18
  "dist"
19
19
  ],
20
20
  "dependencies": {
21
- "@deliverart/sdk-js-api-token": "2.23.12",
22
- "@deliverart/sdk-js-core": "2.23.12",
23
- "@deliverart/sdk-js-image": "2.23.12",
24
- "@deliverart/sdk-js-global-types": "2.23.12",
25
- "@deliverart/sdk-js-customer": "2.23.12",
26
- "@deliverart/sdk-js-integration-types": "2.23.12",
27
- "@deliverart/sdk-js-order": "2.23.12",
28
- "@deliverart/sdk-js-menu": "2.23.12",
29
- "@deliverart/sdk-js-sales-mode": "2.23.12",
30
- "@deliverart/sdk-js-point-of-sale": "2.23.12"
21
+ "@deliverart/sdk-js-api-token": "2.23.14",
22
+ "@deliverart/sdk-js-core": "2.23.14",
23
+ "@deliverart/sdk-js-customer": "2.23.14",
24
+ "@deliverart/sdk-js-global-types": "2.23.14",
25
+ "@deliverart/sdk-js-image": "2.23.14",
26
+ "@deliverart/sdk-js-integration-types": "2.23.14",
27
+ "@deliverart/sdk-js-menu": "2.23.14",
28
+ "@deliverart/sdk-js-point-of-sale": "2.23.14",
29
+ "@deliverart/sdk-js-order": "2.23.14",
30
+ "@deliverart/sdk-js-sales-mode": "2.23.14"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"