whio-api-sdk 1.1.24 → 1.1.26

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.
@@ -2,7 +2,7 @@ import { BaseClient } from './base-client';
2
2
  import { TranscriptionSummary, CreateTranscriptionSummaryDto } from '../types';
3
3
  export declare class TranscriptionSummaryModule extends BaseClient {
4
4
  generateTranscriptionSummary(templateId: string, sessionId: string): Promise<TranscriptionSummary>;
5
- createTranscriptionSummary(dto: Omit<CreateTranscriptionSummaryDto, 'userId'>): Promise<string>;
5
+ createTranscriptionSummary(dto: Omit<CreateTranscriptionSummaryDto, 'userId'>): Promise<TranscriptionSummary>;
6
6
  updateTranscriptionSummary(id: string, content: string): Promise<TranscriptionSummary>;
7
7
  getTranscriptionSummaries(): Promise<TranscriptionSummary[]>;
8
8
  getTranscriptionSummary(id: string): Promise<TranscriptionSummary>;
@@ -3,6 +3,10 @@ import { User } from './user.types';
3
3
  import { Workflow } from './workflow.types';
4
4
  import { TemplateIntegrationAction } from './integration-action.types';
5
5
  import { Agent } from './agent.types';
6
+ export declare enum SummaryQueueType {
7
+ PRIMARY = "PRIMARY",
8
+ SECONDARY = "SECONDARY"
9
+ }
6
10
  export interface TemplateCategory {
7
11
  id: string;
8
12
  name: string;
@@ -19,6 +23,7 @@ export interface Template {
19
23
  createdById: string;
20
24
  workflowId?: string;
21
25
  agentId?: string;
26
+ summaryQueueType?: SummaryQueueType;
22
27
  organization?: Organization;
23
28
  category?: TemplateCategory;
24
29
  createdBy?: User;
@@ -48,6 +53,7 @@ export interface CreateTemplateDto {
48
53
  createdById: string;
49
54
  workflowId?: string;
50
55
  agentId?: string;
56
+ summaryQueueType?: SummaryQueueType;
51
57
  }
52
58
  export interface UpdateTemplateDto {
53
59
  title?: string;
@@ -57,6 +63,7 @@ export interface UpdateTemplateDto {
57
63
  categoryId?: string;
58
64
  workflowId?: string;
59
65
  agentId?: string;
66
+ summaryQueueType?: SummaryQueueType | null;
60
67
  }
61
68
  export interface CreateTemplateCategoryDto {
62
69
  name: string;
@@ -1 +1,5 @@
1
- export {};
1
+ export var SummaryQueueType;
2
+ (function (SummaryQueueType) {
3
+ SummaryQueueType["PRIMARY"] = "PRIMARY";
4
+ SummaryQueueType["SECONDARY"] = "SECONDARY";
5
+ })(SummaryQueueType || (SummaryQueueType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whio-api-sdk",
3
- "version": "1.1.24",
3
+ "version": "1.1.26",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -28,8 +28,8 @@ export class TranscriptionSummaryModule extends BaseClient {
28
28
  return transcriptionSummary;
29
29
  }
30
30
 
31
- public async createTranscriptionSummary(dto: Omit<CreateTranscriptionSummaryDto, 'userId'>): Promise<string> {
32
- return this.request<string>(urls.transcriptionSummaryCreate, 'POST', dto);
31
+ public async createTranscriptionSummary(dto: Omit<CreateTranscriptionSummaryDto, 'userId'>): Promise<TranscriptionSummary> {
32
+ return this.request<TranscriptionSummary>(urls.transcriptionSummaryCreate, 'POST', dto);
33
33
  }
34
34
 
35
35
  public async updateTranscriptionSummary(id: string, content: string): Promise<TranscriptionSummary> {
@@ -4,6 +4,11 @@ import { Workflow } from './workflow.types';
4
4
  import { IntegrationAction, TemplateIntegrationAction } from './integration-action.types';
5
5
  import { Agent } from './agent.types';
6
6
 
7
+ export enum SummaryQueueType {
8
+ PRIMARY = 'PRIMARY',
9
+ SECONDARY = 'SECONDARY',
10
+ }
11
+
7
12
  export interface TemplateCategory {
8
13
  id: string;
9
14
  name: string;
@@ -21,6 +26,7 @@ export interface Template {
21
26
  createdById: string;
22
27
  workflowId?: string;
23
28
  agentId?: string;
29
+ summaryQueueType?: SummaryQueueType;
24
30
 
25
31
  organization?: Organization;
26
32
  category?: TemplateCategory;
@@ -55,6 +61,7 @@ export interface CreateTemplateDto {
55
61
  createdById: string;
56
62
  workflowId?: string;
57
63
  agentId?: string;
64
+ summaryQueueType?: SummaryQueueType;
58
65
  }
59
66
 
60
67
  export interface UpdateTemplateDto {
@@ -65,6 +72,7 @@ export interface UpdateTemplateDto {
65
72
  categoryId?: string;
66
73
  workflowId?: string;
67
74
  agentId?: string;
75
+ summaryQueueType?: SummaryQueueType | null;
68
76
  }
69
77
 
70
78
  // Template Category DTOs