@eka-care/ekascribe-ts-sdk 1.4.15 → 1.4.18
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/api/template-sections/patch-v1-template-section.d.ts +1 -1
- package/dist/api/template-sections/patch-v1-template-section.js +1 -4
- package/dist/api/templates/cook-v1-medai-ai-create-template.d.ts +2 -2
- package/dist/constants/types.d.ts +3 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TPostV1TemplateSectionRequest, TPostV1TemplateSectionResponse } from '../../constants/types';
|
|
2
|
-
declare function patchV1TemplateSection({ section_id,
|
|
2
|
+
declare function patchV1TemplateSection({ section_id, title, desc, format, example, }: TPostV1TemplateSectionRequest): Promise<TPostV1TemplateSectionResponse>;
|
|
3
3
|
export default patchV1TemplateSection;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { SDK_STATUS_CODE } from '../../constants/constant';
|
|
2
2
|
import fetchWrapper from '../../fetch-client';
|
|
3
3
|
import { GET_EKA_VOICE_HOST_V1 } from '../../fetch-client/helper';
|
|
4
|
-
async function patchV1TemplateSection({ section_id,
|
|
4
|
+
async function patchV1TemplateSection({ section_id, title, desc, format, example, }) {
|
|
5
5
|
try {
|
|
6
6
|
const headers = new Headers();
|
|
7
7
|
headers.append('Content-Type', 'application/json');
|
|
8
|
-
if (template_id) {
|
|
9
|
-
headers.append('template-id', template_id);
|
|
10
|
-
}
|
|
11
8
|
const raw = {
|
|
12
9
|
title,
|
|
13
10
|
desc,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare function cookV1MediaAiCreateTemplate(formData: FormData): Promise<
|
|
1
|
+
import { TPostCookV1MediaAiCreateTemplateResponse } from '../../constants/types';
|
|
2
|
+
declare function cookV1MediaAiCreateTemplate(formData: FormData): Promise<TPostCookV1MediaAiCreateTemplateResponse>;
|
|
3
3
|
export default cookV1MediaAiCreateTemplate;
|
|
@@ -13,6 +13,7 @@ export type TGetConfigV2Response = {
|
|
|
13
13
|
settings?: TConfigSettings;
|
|
14
14
|
model?: string;
|
|
15
15
|
my_templates?: string[];
|
|
16
|
+
wid?: string;
|
|
16
17
|
};
|
|
17
18
|
message?: string;
|
|
18
19
|
code?: number;
|
|
@@ -258,13 +259,14 @@ export type TPostCookV1MediaAiCreateTemplateResponse = {
|
|
|
258
259
|
title: string;
|
|
259
260
|
desc: string;
|
|
260
261
|
sections: TSection[];
|
|
262
|
+
code: number;
|
|
263
|
+
message: string;
|
|
261
264
|
};
|
|
262
265
|
export interface TPostV1TemplateSectionRequest {
|
|
263
266
|
title: string;
|
|
264
267
|
desc?: string;
|
|
265
268
|
format?: 'P' | 'B';
|
|
266
269
|
example?: string;
|
|
267
|
-
template_id?: string;
|
|
268
270
|
section_id?: string;
|
|
269
271
|
}
|
|
270
272
|
export interface TPostV1TemplateSectionResponse {
|
package/dist/index.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ declare class EkaScribe {
|
|
|
55
55
|
createTemplate(template: TPostV1TemplateRequest): Promise<import("./constants/types").TPostV1TemplateResponse>;
|
|
56
56
|
updateTemplate(template: TPostV1TemplateRequest): Promise<import("./constants/types").TPostV1TemplateResponse>;
|
|
57
57
|
deleteTemplate(template_id: string): Promise<import("./constants/types").TPostV1TemplateResponse>;
|
|
58
|
-
aiGenerateTemplate(formData: FormData): Promise<import("./constants/types").
|
|
58
|
+
aiGenerateTemplate(formData: FormData): Promise<import("./constants/types").TPostCookV1MediaAiCreateTemplateResponse>;
|
|
59
59
|
updateConfig(request: TPatchVoiceApiV2ConfigRequest): Promise<any>;
|
|
60
60
|
getAllTemplateSections(): Promise<import("./constants/types").TGetV1TemplateSectionsResponse>;
|
|
61
61
|
createTemplateSection(templateSection: TPostV1TemplateSectionRequest): Promise<import("./constants/types").TPostV1TemplateSectionResponse>;
|