@deliverart/sdk-js-integration 2.33.0 → 2.34.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 +23 -0
- package/dist/index.cjs +222 -159
- package/dist/index.d.cts +59 -1
- package/dist/index.d.ts +59 -1
- package/dist/index.js +222 -159
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -102,6 +102,29 @@ Both workflow actions send an empty `application/merge-patch+json` request. The
|
|
|
102
102
|
|
|
103
103
|
---
|
|
104
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
|
+
|
|
105
128
|
### ActivateIntegration
|
|
106
129
|
|
|
107
130
|
Request activation of an integration.
|