@eka-care/ekascribe-ts-sdk 1.4.10 → 1.4.11

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.
@@ -9,7 +9,7 @@ async function deleteV1TemplateSection(section_id) {
9
9
  method: 'DELETE',
10
10
  headers,
11
11
  };
12
- const response = await fetchWrapper(`${GET_EKA_VOICE_HOST_V1()}/api/v1/template/section/${section_id}`, options);
12
+ const response = await fetchWrapper(`${GET_EKA_VOICE_HOST_V1()}/template/section/${section_id}`, options);
13
13
  let res = await response.json();
14
14
  res = {
15
15
  ...res,
@@ -9,7 +9,7 @@ async function getV1TemplateSections() {
9
9
  method: 'GET',
10
10
  headers,
11
11
  };
12
- const response = await fetchWrapper(`${GET_EKA_VOICE_HOST_V1()}/api/v1/template/section`, options);
12
+ const response = await fetchWrapper(`${GET_EKA_VOICE_HOST_V1()}/template/section`, options);
13
13
  let res = await response.json();
14
14
  res = {
15
15
  ...res,
@@ -19,7 +19,7 @@ async function patchV1TemplateSection({ section_id, template_id, title, desc, fo
19
19
  headers,
20
20
  body: JSON.stringify(raw),
21
21
  };
22
- const response = await fetchWrapper(`${GET_EKA_VOICE_HOST_V1()}/api/v1/template/section/${section_id}`, options);
22
+ const response = await fetchWrapper(`${GET_EKA_VOICE_HOST_V1()}/template/section/${section_id}`, options);
23
23
  let res = await response.json();
24
24
  res = {
25
25
  ...res,
@@ -16,7 +16,7 @@ async function postV1TemplateSection({ title, desc, format, example, }) {
16
16
  headers,
17
17
  body: JSON.stringify(raw),
18
18
  };
19
- const response = await fetchWrapper(`${GET_EKA_VOICE_HOST_V1()}/api/v1/template/section`, options);
19
+ const response = await fetchWrapper(`${GET_EKA_VOICE_HOST_V1()}/template/section`, options);
20
20
  let res = await response.json();
21
21
  res = {
22
22
  ...res,
@@ -9,7 +9,7 @@ async function deleteV1Template(template_id) {
9
9
  method: 'DELETE',
10
10
  headers,
11
11
  };
12
- const response = await fetchWrapper(`${GET_EKA_VOICE_HOST_V1()}/api/v1/template/${template_id}`, options);
12
+ const response = await fetchWrapper(`${GET_EKA_VOICE_HOST_V1()}/template/${template_id}`, options);
13
13
  let res = await response.json();
14
14
  res = {
15
15
  ...res,
@@ -9,7 +9,7 @@ async function getV1Templates() {
9
9
  method: 'GET',
10
10
  headers,
11
11
  };
12
- const response = await fetchWrapper(`${GET_EKA_VOICE_HOST_V1()}/api/v1/template`, options);
12
+ const response = await fetchWrapper(`${GET_EKA_VOICE_HOST_V1()}/template`, options);
13
13
  let res = await response.json();
14
14
  res = {
15
15
  ...res,
@@ -15,7 +15,7 @@ export async function patchV1Template({ template_id, title, desc, section_ids, }
15
15
  headers,
16
16
  body: JSON.stringify(raw),
17
17
  };
18
- const response = await fetchWrapper(`${GET_EKA_VOICE_HOST_V1()}/api/v1/template/${template_id}`, options);
18
+ const response = await fetchWrapper(`${GET_EKA_VOICE_HOST_V1()}/template/${template_id}`, options);
19
19
  let res = await response.json();
20
20
  res = {
21
21
  ...res,
@@ -15,7 +15,7 @@ async function postV1Template({ title, desc, section_ids, }) {
15
15
  headers,
16
16
  body: JSON.stringify(raw),
17
17
  };
18
- const response = await fetchWrapper(`${GET_EKA_VOICE_HOST_V1()}/api/v1/template`, options);
18
+ const response = await fetchWrapper(`${GET_EKA_VOICE_HOST_V1()}/template`, options);
19
19
  let res = await response.json();
20
20
  res = {
21
21
  ...res,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eka-care/ekascribe-ts-sdk",
3
- "version": "1.4.10",
3
+ "version": "1.4.11",
4
4
  "main": "dist/index.js",
5
5
  "repository": "git@github.com:eka-care/eka-js-sdk.git",
6
6
  "author": "Sanikagoyal28 <sanikagoyal9@gmail.com>",