@deliverart/sdk-js-integration 2.23.2 → 2.23.3
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 +4 -0
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2 -1
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -19,6 +19,10 @@ npm install @deliverart/sdk-js-integration @deliverart/sdk-js-core
|
|
|
19
19
|
### Integration Types
|
|
20
20
|
Integration types vary by service (delivery partners, payment gateways, etc.)
|
|
21
21
|
|
|
22
|
+
The ecommerce info payload exposes the cached menu DTO. Item entries include
|
|
23
|
+
`compositions`, the ids of removable base ingredients/components to send as
|
|
24
|
+
writable order item `removals`.
|
|
25
|
+
|
|
22
26
|
### IRI Types
|
|
23
27
|
- `IntegrationIri` - Integration IRI (`/integrations/:id`)
|
|
24
28
|
- `ActivationRequestIri` - Activation request IRI
|
package/dist/index.cjs
CHANGED
|
@@ -16041,7 +16041,8 @@ var integrationEcommerceMenuItemSchema = external_exports.object({
|
|
|
16041
16041
|
soldIndividually: external_exports.boolean(),
|
|
16042
16042
|
suspended: external_exports.boolean(),
|
|
16043
16043
|
variants: external_exports.array(integrationEcommerceMenuPriceOverrideSchema),
|
|
16044
|
-
modifiers: external_exports.array(external_exports.string())
|
|
16044
|
+
modifiers: external_exports.array(external_exports.string()),
|
|
16045
|
+
compositions: external_exports.array(external_exports.string())
|
|
16045
16046
|
});
|
|
16046
16047
|
var integrationEcommerceMenuModifierSchema = external_exports.object({
|
|
16047
16048
|
id: external_exports.string(),
|
package/dist/index.d.cts
CHANGED
|
@@ -23624,6 +23624,7 @@ declare const integrationEcommerceMenuItemSchema: z.ZodObject<{
|
|
|
23624
23624
|
referenceItem: z.ZodString;
|
|
23625
23625
|
}, z.core.$strip>>;
|
|
23626
23626
|
modifiers: z.ZodArray<z.ZodString>;
|
|
23627
|
+
compositions: z.ZodArray<z.ZodString>;
|
|
23627
23628
|
}, z.core.$strip>;
|
|
23628
23629
|
type IntegrationEcommerceMenuItem = z.infer<typeof integrationEcommerceMenuItemSchema>;
|
|
23629
23630
|
declare const integrationEcommerceMenuModifierSchema: z.ZodObject<{
|
|
@@ -23746,6 +23747,7 @@ declare const integrationEcommerceMenuSchema: z.ZodObject<{
|
|
|
23746
23747
|
referenceItem: z.ZodString;
|
|
23747
23748
|
}, z.core.$strip>>;
|
|
23748
23749
|
modifiers: z.ZodArray<z.ZodString>;
|
|
23750
|
+
compositions: z.ZodArray<z.ZodString>;
|
|
23749
23751
|
}, z.core.$strip>>;
|
|
23750
23752
|
modifiers: z.ZodArray<z.ZodObject<{
|
|
23751
23753
|
id: z.ZodString;
|
|
@@ -24125,6 +24127,7 @@ declare const integrationEcommerceInfoSchema: z.ZodObject<{
|
|
|
24125
24127
|
referenceItem: z.ZodString;
|
|
24126
24128
|
}, z.core.$strip>>;
|
|
24127
24129
|
modifiers: z.ZodArray<z.ZodString>;
|
|
24130
|
+
compositions: z.ZodArray<z.ZodString>;
|
|
24128
24131
|
}, z.core.$strip>>;
|
|
24129
24132
|
modifiers: z.ZodArray<z.ZodObject<{
|
|
24130
24133
|
id: z.ZodString;
|
|
@@ -37334,6 +37337,7 @@ declare const getIntegrationEcommerceInfoResponseSchema: z.ZodObject<{
|
|
|
37334
37337
|
referenceItem: z.ZodString;
|
|
37335
37338
|
}, z.core.$strip>>;
|
|
37336
37339
|
modifiers: z.ZodArray<z.ZodString>;
|
|
37340
|
+
compositions: z.ZodArray<z.ZodString>;
|
|
37337
37341
|
}, z.core.$strip>>;
|
|
37338
37342
|
modifiers: z.ZodArray<z.ZodObject<{
|
|
37339
37343
|
id: z.ZodString;
|
|
@@ -37617,6 +37621,7 @@ declare class GetIntegrationEcommerceInfo extends AbstractApiRequest<typeof getI
|
|
|
37617
37621
|
referenceItem: z.ZodString;
|
|
37618
37622
|
}, z.core.$strip>>;
|
|
37619
37623
|
modifiers: z.ZodArray<z.ZodString>;
|
|
37624
|
+
compositions: z.ZodArray<z.ZodString>;
|
|
37620
37625
|
}, z.core.$strip>>;
|
|
37621
37626
|
modifiers: z.ZodArray<z.ZodObject<{
|
|
37622
37627
|
id: z.ZodString;
|
package/dist/index.d.ts
CHANGED
|
@@ -23624,6 +23624,7 @@ declare const integrationEcommerceMenuItemSchema: z.ZodObject<{
|
|
|
23624
23624
|
referenceItem: z.ZodString;
|
|
23625
23625
|
}, z.core.$strip>>;
|
|
23626
23626
|
modifiers: z.ZodArray<z.ZodString>;
|
|
23627
|
+
compositions: z.ZodArray<z.ZodString>;
|
|
23627
23628
|
}, z.core.$strip>;
|
|
23628
23629
|
type IntegrationEcommerceMenuItem = z.infer<typeof integrationEcommerceMenuItemSchema>;
|
|
23629
23630
|
declare const integrationEcommerceMenuModifierSchema: z.ZodObject<{
|
|
@@ -23746,6 +23747,7 @@ declare const integrationEcommerceMenuSchema: z.ZodObject<{
|
|
|
23746
23747
|
referenceItem: z.ZodString;
|
|
23747
23748
|
}, z.core.$strip>>;
|
|
23748
23749
|
modifiers: z.ZodArray<z.ZodString>;
|
|
23750
|
+
compositions: z.ZodArray<z.ZodString>;
|
|
23749
23751
|
}, z.core.$strip>>;
|
|
23750
23752
|
modifiers: z.ZodArray<z.ZodObject<{
|
|
23751
23753
|
id: z.ZodString;
|
|
@@ -24125,6 +24127,7 @@ declare const integrationEcommerceInfoSchema: z.ZodObject<{
|
|
|
24125
24127
|
referenceItem: z.ZodString;
|
|
24126
24128
|
}, z.core.$strip>>;
|
|
24127
24129
|
modifiers: z.ZodArray<z.ZodString>;
|
|
24130
|
+
compositions: z.ZodArray<z.ZodString>;
|
|
24128
24131
|
}, z.core.$strip>>;
|
|
24129
24132
|
modifiers: z.ZodArray<z.ZodObject<{
|
|
24130
24133
|
id: z.ZodString;
|
|
@@ -37334,6 +37337,7 @@ declare const getIntegrationEcommerceInfoResponseSchema: z.ZodObject<{
|
|
|
37334
37337
|
referenceItem: z.ZodString;
|
|
37335
37338
|
}, z.core.$strip>>;
|
|
37336
37339
|
modifiers: z.ZodArray<z.ZodString>;
|
|
37340
|
+
compositions: z.ZodArray<z.ZodString>;
|
|
37337
37341
|
}, z.core.$strip>>;
|
|
37338
37342
|
modifiers: z.ZodArray<z.ZodObject<{
|
|
37339
37343
|
id: z.ZodString;
|
|
@@ -37617,6 +37621,7 @@ declare class GetIntegrationEcommerceInfo extends AbstractApiRequest<typeof getI
|
|
|
37617
37621
|
referenceItem: z.ZodString;
|
|
37618
37622
|
}, z.core.$strip>>;
|
|
37619
37623
|
modifiers: z.ZodArray<z.ZodString>;
|
|
37624
|
+
compositions: z.ZodArray<z.ZodString>;
|
|
37620
37625
|
}, z.core.$strip>>;
|
|
37621
37626
|
modifiers: z.ZodArray<z.ZodObject<{
|
|
37622
37627
|
id: z.ZodString;
|
package/dist/index.js
CHANGED
|
@@ -16077,7 +16077,8 @@ var integrationEcommerceMenuItemSchema = external_exports.object({
|
|
|
16077
16077
|
soldIndividually: external_exports.boolean(),
|
|
16078
16078
|
suspended: external_exports.boolean(),
|
|
16079
16079
|
variants: external_exports.array(integrationEcommerceMenuPriceOverrideSchema),
|
|
16080
|
-
modifiers: external_exports.array(external_exports.string())
|
|
16080
|
+
modifiers: external_exports.array(external_exports.string()),
|
|
16081
|
+
compositions: external_exports.array(external_exports.string())
|
|
16081
16082
|
});
|
|
16082
16083
|
var integrationEcommerceMenuModifierSchema = external_exports.object({
|
|
16083
16084
|
id: external_exports.string(),
|
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.
|
|
4
|
+
"version": "2.23.3",
|
|
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-
|
|
22
|
-
"@deliverart/sdk-js-
|
|
23
|
-
"@deliverart/sdk-js-
|
|
24
|
-
"@deliverart/sdk-js-
|
|
25
|
-
"@deliverart/sdk-js-
|
|
26
|
-
"@deliverart/sdk-js-
|
|
27
|
-
"@deliverart/sdk-js-
|
|
28
|
-
"@deliverart/sdk-js-
|
|
29
|
-
"@deliverart/sdk-js-
|
|
30
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"@deliverart/sdk-js-api-token": "2.23.3",
|
|
22
|
+
"@deliverart/sdk-js-core": "2.23.3",
|
|
23
|
+
"@deliverart/sdk-js-customer": "2.23.3",
|
|
24
|
+
"@deliverart/sdk-js-global-types": "2.23.3",
|
|
25
|
+
"@deliverart/sdk-js-image": "2.23.3",
|
|
26
|
+
"@deliverart/sdk-js-menu": "2.23.3",
|
|
27
|
+
"@deliverart/sdk-js-integration-types": "2.23.3",
|
|
28
|
+
"@deliverart/sdk-js-point-of-sale": "2.23.3",
|
|
29
|
+
"@deliverart/sdk-js-order": "2.23.3",
|
|
30
|
+
"@deliverart/sdk-js-sales-mode": "2.23.3"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|