@deliverart/sdk-js-integration 2.22.1 → 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 +27 -1
- package/dist/index.cjs +491 -257
- package/dist/index.d.cts +638 -1
- package/dist/index.d.ts +638 -1
- package/dist/index.js +554 -317
- 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
|
|
@@ -85,6 +89,29 @@ const cancellation = await sdk.call(new CancelIntegration({
|
|
|
85
89
|
|
|
86
90
|
---
|
|
87
91
|
|
|
92
|
+
### Deliveroo Manual Portal Activation
|
|
93
|
+
|
|
94
|
+
Deliveroo integrations expose `manualActivationCompleted` and `manualActivationCompletedAt` so operator tools can track whether the final manual activation step has been completed in the Deliveroo portal.
|
|
95
|
+
|
|
96
|
+
```typescript
|
|
97
|
+
import {
|
|
98
|
+
GetIntegrationDeliverooList,
|
|
99
|
+
UpdateIntegrationDeliveroo,
|
|
100
|
+
} from '@deliverart/sdk-js-integration';
|
|
101
|
+
|
|
102
|
+
const pending = await sdk.call(new GetIntegrationDeliverooList({
|
|
103
|
+
query: {
|
|
104
|
+
manualActivationCompleted: false,
|
|
105
|
+
},
|
|
106
|
+
}));
|
|
107
|
+
|
|
108
|
+
await sdk.call(new UpdateIntegrationDeliveroo('deliveroo-integration-id', {
|
|
109
|
+
manualActivationCompleted: true,
|
|
110
|
+
}));
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
88
115
|
## Complete Usage Example
|
|
89
116
|
|
|
90
117
|
```typescript
|
|
@@ -125,4 +152,3 @@ async function integrationManagement() {
|
|
|
125
152
|
## License
|
|
126
153
|
|
|
127
154
|
MIT
|
|
128
|
-
|