@eka-care/ekascribe-ts-sdk 2.0.22 → 2.0.24

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 CHANGED
@@ -325,7 +325,16 @@ const response = await ekascribe.endRecording();
325
325
 
326
326
  ### 8. Get output recorded prescription
327
327
 
328
- `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).
328
+ You can fetch output in two ways:
329
+
330
+ - `getTemplateOutput({ txn_id })`: polling is your responsibility; call repeatedly until processing finishes.
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).
332
+
333
+ Example (manual polling):
334
+
335
+ ```ts
336
+ const res = await ekascribe.getTemplateOutput({ txn_id: 'transaction-id' });
337
+ ```
329
338
 
330
339
  Example (SDK-managed polling):
331
340
 
package/dist/index.d.ts CHANGED
@@ -19,7 +19,7 @@ declare class EkaScribe {
19
19
  env?: 'PROD' | 'DEV';
20
20
  clientId?: string;
21
21
  }): EkaScribe;
22
- static resetInstance(): void;
22
+ resetInstance(): void;
23
23
  getEkascribeConfig(): Promise<TGetConfigV2Response>;
24
24
  updateAuthTokens({ access_token }: {
25
25
  access_token: string;
@@ -227,6 +227,8 @@ declare type TGetConfigV2Response = {
227
227
  emr_name?: string;
228
228
  microphone_permission_check?: boolean;
229
229
  consult_language?: string[];
230
+ contact_number?: string;
231
+ onboarding_step?: string;
230
232
  };
231
233
  message?: string;
232
234
  code?: number;
@@ -334,7 +336,10 @@ declare type TPatchVoiceApiV2ConfigRequest = {
334
336
  emr_name?: string;
335
337
  microphone_permission_check?: boolean;
336
338
  consult_language?: string[];
339
+ contact_number?: string;
340
+ onboarding_step?: string;
337
341
  };
342
+ query_params?: string;
338
343
  };
339
344
 
340
345
  declare type TPatchVoiceApiV3StatusRequest = {