@deliverart/sdk-js-integration 2.26.0 → 2.28.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 +53 -0
- package/dist/index.cjs +972 -751
- package/dist/index.d.cts +1379 -37
- package/dist/index.d.ts +1379 -37
- package/dist/index.js +944 -723
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -132,6 +132,59 @@ await sdk.call(
|
|
|
132
132
|
|
|
133
133
|
---
|
|
134
134
|
|
|
135
|
+
### CassaInCloud Catalog Channel Policies
|
|
136
|
+
|
|
137
|
+
CassaInCloud exposes separate remote channel policies:
|
|
138
|
+
|
|
139
|
+
- `inboundProductChannels` filters the Cassa categories and products imported into Deliverart.
|
|
140
|
+
- `outboundProductChannels` is captured and applied when Deliverart creates remote Cassa
|
|
141
|
+
categories and products.
|
|
142
|
+
- `productChannels` is a deprecated alias for `inboundProductChannels` and remains available
|
|
143
|
+
for one compatibility release only.
|
|
144
|
+
|
|
145
|
+
Audits and explicit channel reconciliation run asynchronously through the nested API Platform
|
|
146
|
+
`catalog_mapping_processes` resource. The process preserves its operation, scopes, target
|
|
147
|
+
channel snapshot, counters, and typed issues.
|
|
148
|
+
|
|
149
|
+
```typescript
|
|
150
|
+
import {
|
|
151
|
+
CreateIntegrationCassaInCloudCatalogMappingProcess,
|
|
152
|
+
GetIntegrationCassaInCloudCatalogMappingProcessIssues,
|
|
153
|
+
GetIntegrationCassaInCloudCatalogMappingProcessDetails,
|
|
154
|
+
GetIntegrationCassaInCloudCatalogMappingProcesses,
|
|
155
|
+
RetryIntegrationCassaInCloudCatalogMappingProcess,
|
|
156
|
+
} from '@deliverart/sdk-js-integration'
|
|
157
|
+
|
|
158
|
+
const process = await sdk.call(
|
|
159
|
+
new CreateIntegrationCassaInCloudCatalogMappingProcess('integration-id', {
|
|
160
|
+
operation: 'reconcile_channels',
|
|
161
|
+
scopes: ['categories', 'products'],
|
|
162
|
+
}),
|
|
163
|
+
)
|
|
164
|
+
|
|
165
|
+
const details = await sdk.call(
|
|
166
|
+
new GetIntegrationCassaInCloudCatalogMappingProcessDetails('integration-id', process.id),
|
|
167
|
+
)
|
|
168
|
+
|
|
169
|
+
const history = await sdk.call(
|
|
170
|
+
new GetIntegrationCassaInCloudCatalogMappingProcesses('integration-id', {
|
|
171
|
+
query: { operation: 'audit', 'order[createdAt]': 'desc' },
|
|
172
|
+
}),
|
|
173
|
+
)
|
|
174
|
+
|
|
175
|
+
const issues = await sdk.call(
|
|
176
|
+
new GetIntegrationCassaInCloudCatalogMappingProcessIssues('integration-id', process.id, {
|
|
177
|
+
query: { retryable: true },
|
|
178
|
+
}),
|
|
179
|
+
)
|
|
180
|
+
|
|
181
|
+
const retry = await sdk.call(
|
|
182
|
+
new RetryIntegrationCassaInCloudCatalogMappingProcess('integration-id', process.id),
|
|
183
|
+
)
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
135
188
|
### Elephant Integrations
|
|
136
189
|
|
|
137
190
|
Elephant uses one integration per point of sale and one or more nested Restaurant
|