@eka-care/ekascribe-ts-sdk 2.1.44 → 2.1.45
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 +8 -0
- package/dist/index.mjs +19 -17
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -721,6 +721,7 @@ export declare type TPostV1DocumentRequest = {
|
|
|
721
721
|
document_name?: string;
|
|
722
722
|
type?: string;
|
|
723
723
|
document_id?: string;
|
|
724
|
+
publish?: Record<string, unknown>;
|
|
724
725
|
};
|
|
725
726
|
|
|
726
727
|
export declare type TPostV1DocumentResponse = {
|
|
@@ -745,6 +746,13 @@ export declare type TPostV1DocumentResponse = {
|
|
|
745
746
|
presigned_url: string;
|
|
746
747
|
created_at: string;
|
|
747
748
|
updated_at: number;
|
|
749
|
+
publish: {
|
|
750
|
+
emr_webhook: {
|
|
751
|
+
error: string | null;
|
|
752
|
+
status: string;
|
|
753
|
+
updated_at: string;
|
|
754
|
+
};
|
|
755
|
+
};
|
|
748
756
|
};
|
|
749
757
|
};
|
|
750
758
|
|
package/dist/index.mjs
CHANGED
|
@@ -31575,30 +31575,32 @@ async function postV1Document({
|
|
|
31575
31575
|
session_id: s,
|
|
31576
31576
|
document_name: n,
|
|
31577
31577
|
type: i,
|
|
31578
|
-
document_id: c
|
|
31578
|
+
document_id: c,
|
|
31579
|
+
publish: l
|
|
31579
31580
|
}) {
|
|
31580
31581
|
try {
|
|
31581
|
-
const
|
|
31582
|
-
|
|
31583
|
-
const
|
|
31582
|
+
const f = new Headers();
|
|
31583
|
+
f.append("Content-Type", "application/json");
|
|
31584
|
+
const u = {
|
|
31584
31585
|
session_id: s,
|
|
31585
31586
|
type: i,
|
|
31586
31587
|
...n ? { document_name: n } : {},
|
|
31587
|
-
...c ? { document_id: c } : {}
|
|
31588
|
-
|
|
31588
|
+
...c ? { document_id: c } : {},
|
|
31589
|
+
...l ? { publish: l } : {}
|
|
31590
|
+
}, d = {
|
|
31589
31591
|
method: "POST",
|
|
31590
|
-
headers:
|
|
31591
|
-
body: JSON.stringify(
|
|
31592
|
-
},
|
|
31593
|
-
let
|
|
31594
|
-
return
|
|
31595
|
-
...
|
|
31596
|
-
code:
|
|
31597
|
-
},
|
|
31598
|
-
} catch (
|
|
31599
|
-
return console.error("%c postV1Document -> error", "color:#f5ce50",
|
|
31592
|
+
headers: f,
|
|
31593
|
+
body: JSON.stringify(u)
|
|
31594
|
+
}, h = await fetchWrapper(`${GET_EKA_VOICE_HOST_V1()}/documents`, d);
|
|
31595
|
+
let p = await h.json();
|
|
31596
|
+
return p = {
|
|
31597
|
+
...p,
|
|
31598
|
+
code: h.status
|
|
31599
|
+
}, p;
|
|
31600
|
+
} catch (f) {
|
|
31601
|
+
return console.error("%c postV1Document -> error", "color:#f5ce50", f), {
|
|
31600
31602
|
code: SDK_STATUS_CODE.INTERNAL_SERVER_ERROR,
|
|
31601
|
-
message: `Something went wrong! ${
|
|
31603
|
+
message: `Something went wrong! ${f}`
|
|
31602
31604
|
};
|
|
31603
31605
|
}
|
|
31604
31606
|
}
|