@eka-care/ekascribe-ts-sdk 2.1.11 → 2.1.13

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/dist/index.d.ts CHANGED
@@ -21,10 +21,11 @@ declare class EkaScribe {
21
21
  private audioBufferInstance;
22
22
  private compatibilityManager;
23
23
  private constructor();
24
- static getInstance({ access_token, env, clientId, }: {
24
+ static getInstance({ access_token, env, clientId, flavour, }: {
25
25
  access_token?: string;
26
26
  env?: 'PROD' | 'DEV';
27
27
  clientId?: string;
28
+ flavour?: string;
28
29
  }): EkaScribe;
29
30
  resetInstance(): void;
30
31
  getEkascribeConfig(): Promise<TGetConfigV2Response>;
@@ -125,10 +126,11 @@ declare enum ERROR_CODE {
125
126
 
126
127
  declare type Gender = 'M' | 'F' | 'O';
127
128
 
128
- export declare const getEkaScribeInstance: ({ access_token, env, clientId, }: {
129
+ export declare const getEkaScribeInstance: ({ access_token, env, clientId, flavour, }: {
129
130
  access_token?: string;
130
131
  env?: "PROD" | "DEV";
131
132
  clientId?: string;
133
+ flavour?: string;
132
134
  }) => EkaScribe;
133
135
 
134
136
  declare type TAudioChunksInfo = {
package/dist/index.mjs CHANGED
@@ -54876,10 +54876,10 @@ const DEFAULT_HEADER_IMAGE = "https://cdn.eka.care/vagus/cmlf0ip4a00000td1dmth2w
54876
54876
  doctor_id: i.docid || null,
54877
54877
  type: i.type || null,
54878
54878
  header_img: i.header_img || DEFAULT_HEADER_IMAGE,
54879
- header_height: i.header_height || DEFAULT_HEADER_HEIGHT,
54879
+ header_height: i.header_img && i.header_height || DEFAULT_HEADER_HEIGHT,
54880
54880
  header_top_margin: i.header_top_margin || null,
54881
54881
  footer_img: i.footer_img || DEFAULT_FOOTER_IMAGE,
54882
- footer_height: i.footer_height || DEFAULT_FOOTER_HEIGHT,
54882
+ footer_height: i.footer_img && i.footer_height || DEFAULT_FOOTER_HEIGHT,
54883
54883
  margin_left: i.margin_left || null,
54884
54884
  margin_right: i.margin_right || null,
54885
54885
  page_size: i.page_size || null,
@@ -54986,12 +54986,14 @@ const DEFAULT_HEADER_IMAGE = "https://cdn.eka.care/vagus/cmlf0ip4a00000td1dmth2w
54986
54986
  static getInstance({
54987
54987
  access_token: r,
54988
54988
  env: s,
54989
- clientId: n
54989
+ clientId: n,
54990
+ flavour: a
54990
54991
  }) {
54991
54992
  return setEnv({
54992
54993
  ...r ? { auth_token: r } : {},
54993
54994
  ...s ? { env: s } : {},
54994
- ...n ? { clientId: n } : {}
54995
+ ...n ? { clientId: n } : {},
54996
+ ...a ? { flavour: a } : {}
54995
54997
  }), Ur.instance || (Ur.instance = new Ur()), Ur.instance;
54996
54998
  }
54997
54999
  // Method to reset the singleton instance (useful for testing)
@@ -55290,8 +55292,9 @@ let EkaScribe = Ur;
55290
55292
  const getEkaScribeInstance = ({
55291
55293
  access_token: i,
55292
55294
  env: r,
55293
- clientId: s
55294
- }) => EkaScribe.getInstance({ access_token: i, env: r, clientId: s });
55295
+ clientId: s,
55296
+ flavour: n
55297
+ }) => EkaScribe.getInstance({ access_token: i, env: r, clientId: s, flavour: n });
55295
55298
  export {
55296
55299
  getEkaScribeInstance
55297
55300
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eka-care/ekascribe-ts-sdk",
3
- "version": "2.1.11",
3
+ "version": "2.1.13",
4
4
  "description": "EkaScribe TypeScript SDK - Modern ES2020 build",
5
5
  "main": "dist/index.mjs",
6
6
  "module": "dist/index.mjs",