@deliverart/sdk-js-integration 0.0.0-dev-20260722145222 → 0.0.0-dev-20260902175359

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.
Files changed (6) hide show
  1. package/README.md +111 -0
  2. package/dist/index.cjs +2018 -1375
  3. package/dist/index.d.cts +5141 -1752
  4. package/dist/index.d.ts +5141 -1752
  5. package/dist/index.js +1988 -1344
  6. package/package.json +12 -12
package/README.md CHANGED
@@ -67,6 +67,64 @@ const integration = await sdk.call(new GetIntegrationDetails('integration-123'))
67
67
 
68
68
  ---
69
69
 
70
+ ### Integration Operational Issues
71
+
72
+ Integration issues expose a provider-neutral workflow for operational anomalies. Issues include
73
+ their flow scope, severity, status, remote resource key, consecutive failure count, operator
74
+ acknowledgement, resolution, and last successful execution.
75
+
76
+ ```typescript
77
+ import {
78
+ AcknowledgeIntegrationIssue,
79
+ GetAdminIntegrationIssues,
80
+ ResolveIntegrationIssue,
81
+ } from '@deliverart/sdk-js-integration'
82
+
83
+ const issues = await sdk.call(
84
+ new GetAdminIntegrationIssues({
85
+ query: {
86
+ service: ['deliveroo', 'glovo'],
87
+ status: 'attention_required',
88
+ severity: ['error', 'critical'],
89
+ 'resolvedAt[exists]': false,
90
+ page: 1,
91
+ },
92
+ }),
93
+ )
94
+
95
+ await sdk.call(new AcknowledgeIntegrationIssue('integration-id', 'issue-id'))
96
+ await sdk.call(new ResolveIntegrationIssue('integration-id', 'issue-id'))
97
+ ```
98
+
99
+ Both workflow actions send an empty `application/merge-patch+json` request. The paginated
100
+ `/integration_issues` collection is reserved for integration administrators; the existing
101
+ `/integrations/{id}/issues` collection remains available for integration-scoped views.
102
+
103
+ ---
104
+
105
+ ### Kitchen Session Handoff
106
+
107
+ Create a short-lived, single-use handoff code for a Kitchen integration, then exchange it for the
108
+ existing Kitchen access-token details. This lets an authorized Hub session open KDS without
109
+ placing a persistent Kitchen token in a browser URL.
110
+
111
+ ```typescript
112
+ import {
113
+ CreateIntegrationKitchenSessionHandoff,
114
+ ExchangeIntegrationKitchenSessionHandoff,
115
+ } from '@deliverart/sdk-js-integration'
116
+
117
+ const handoff = await hubSdk.call(
118
+ new CreateIntegrationKitchenSessionHandoff('kitchen-integration-id'),
119
+ )
120
+
121
+ const kitchenAccessToken = await kdsSdk.call(
122
+ new ExchangeIntegrationKitchenSessionHandoff({ code: handoff.code }),
123
+ )
124
+ ```
125
+
126
+ ---
127
+
70
128
  ### ActivateIntegration
71
129
 
72
130
  Request activation of an integration.
@@ -132,6 +190,59 @@ await sdk.call(
132
190
 
133
191
  ---
134
192
 
193
+ ### CassaInCloud Catalog Channel Policies
194
+
195
+ CassaInCloud exposes separate remote channel policies:
196
+
197
+ - `inboundProductChannels` filters the Cassa categories and products imported into Deliverart.
198
+ - `outboundProductChannels` is captured and applied when Deliverart creates remote Cassa
199
+ categories and products.
200
+ - `productChannels` is a deprecated alias for `inboundProductChannels` and remains available
201
+ for one compatibility release only.
202
+
203
+ Audits and explicit channel reconciliation run asynchronously through the nested API Platform
204
+ `catalog_mapping_processes` resource. The process preserves its operation, scopes, target
205
+ channel snapshot, counters, and typed issues.
206
+
207
+ ```typescript
208
+ import {
209
+ CreateIntegrationCassaInCloudCatalogMappingProcess,
210
+ GetIntegrationCassaInCloudCatalogMappingProcessIssues,
211
+ GetIntegrationCassaInCloudCatalogMappingProcessDetails,
212
+ GetIntegrationCassaInCloudCatalogMappingProcesses,
213
+ RetryIntegrationCassaInCloudCatalogMappingProcess,
214
+ } from '@deliverart/sdk-js-integration'
215
+
216
+ const process = await sdk.call(
217
+ new CreateIntegrationCassaInCloudCatalogMappingProcess('integration-id', {
218
+ operation: 'reconcile_channels',
219
+ scopes: ['categories', 'products'],
220
+ }),
221
+ )
222
+
223
+ const details = await sdk.call(
224
+ new GetIntegrationCassaInCloudCatalogMappingProcessDetails('integration-id', process.id),
225
+ )
226
+
227
+ const history = await sdk.call(
228
+ new GetIntegrationCassaInCloudCatalogMappingProcesses('integration-id', {
229
+ query: { operation: 'audit', 'order[createdAt]': 'desc' },
230
+ }),
231
+ )
232
+
233
+ const issues = await sdk.call(
234
+ new GetIntegrationCassaInCloudCatalogMappingProcessIssues('integration-id', process.id, {
235
+ query: { retryable: true },
236
+ }),
237
+ )
238
+
239
+ const retry = await sdk.call(
240
+ new RetryIntegrationCassaInCloudCatalogMappingProcess('integration-id', process.id),
241
+ )
242
+ ```
243
+
244
+ ---
245
+
135
246
  ### Elephant Integrations
136
247
 
137
248
  Elephant uses one integration per point of sale and one or more nested Restaurant