@eka-care/ekascribe-ts-sdk 2.0.40 → 2.0.41
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 +9 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -325,8 +325,17 @@ const response = await ekascribe.endRecording();
|
|
|
325
325
|
|
|
326
326
|
### 8. Get output recorded prescription
|
|
327
327
|
|
|
328
|
+
You can fetch output in two ways:
|
|
329
|
+
|
|
330
|
+
- `getTemplateOutput({ txn_id })`: polling is your responsibility; call repeatedly until processing finishes.
|
|
328
331
|
- `pollSessionOutput({ txn_id, max_polling_time })`: SDK polls for you and resolves when processing finishes (default max wait: 2 minutes; override via `max_polling_time`, pass time in milliseconds).
|
|
329
332
|
|
|
333
|
+
Example (manual polling):
|
|
334
|
+
|
|
335
|
+
```ts
|
|
336
|
+
const res = await ekascribe.getTemplateOutput({ txn_id: 'transaction-id' });
|
|
337
|
+
```
|
|
338
|
+
|
|
330
339
|
Example (SDK-managed polling):
|
|
331
340
|
|
|
332
341
|
```ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eka-care/ekascribe-ts-sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.41",
|
|
4
4
|
"description": "EkaScribe TypeScript SDK - Modern ES2020 build",
|
|
5
5
|
"main": "dist/index.mjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"clean": "rm -rf dist",
|
|
29
29
|
"build:main": "vite build",
|
|
30
30
|
"build:worker": "vite build --config vite.worker.config.ts",
|
|
31
|
-
"build": "yarn clean && yarn build:main && yarn build:worker",
|
|
31
|
+
"build": "yarn clean && yarn build:main && yarn build:worker && cp ../../README.md .",
|
|
32
32
|
"prepublishOnly": "yarn build"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|