@vendasta/conversation 0.97.2 → 0.99.0
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/esm2022/lib/_internal/enums/api.enum.mjs +7 -1
- package/esm2022/lib/_internal/enums/index.mjs +2 -2
- package/esm2022/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/conversation.interface.mjs +1 -1
- package/esm2022/lib/_internal/objects/api.mjs +16 -2
- package/esm2022/lib/_internal/objects/conversation.mjs +9 -2
- package/fesm2022/vendasta-conversation.mjs +28 -1
- package/fesm2022/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/enums/api.enum.d.ts +5 -0
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/interfaces/api.interface.d.ts +3 -1
- package/lib/_internal/interfaces/conversation.interface.d.ts +2 -1
- package/lib/_internal/objects/api.d.ts +3 -1
- package/lib/_internal/objects/conversation.d.ts +2 -1
- package/package.json +1 -1
|
@@ -4,6 +4,11 @@ export declare enum GetMessageTemplateRequestHydrationOptionsHydrationEntityEnti
|
|
|
4
4
|
ENTITY_TYPE_ACCOUNT_GROUP = 2,
|
|
5
5
|
ENTITY_TYPE_CONTACT = 3
|
|
6
6
|
}
|
|
7
|
+
export declare enum EvaluateResponseType {
|
|
8
|
+
EVALUATION_RESPONSE_TYPE_UNSPECIFIED = 0,
|
|
9
|
+
EVALUATION_RESPONSE_TYPE_EVENT = 1,
|
|
10
|
+
EVALUATION_RESPONSE_TYPE_MESSAGE = 2
|
|
11
|
+
}
|
|
7
12
|
export declare enum MetadataIdentifier {
|
|
8
13
|
METADATA_IDENTIFIER_UNDEFINED = 0,
|
|
9
14
|
METADATA_IDENTIFIER_RECIPIENT = 1,
|
|
@@ -6,4 +6,4 @@ export { ViewType, } from './conversation-view.enum';
|
|
|
6
6
|
export { WidgetPosition, } from './widget.enum';
|
|
7
7
|
export { EvaluationSentiment, } from './evaluation.enum';
|
|
8
8
|
export { EventType, } from './event.enum';
|
|
9
|
-
export { GetMessageTemplateRequestHydrationOptionsHydrationEntityEntityType, MetadataIdentifier, SetLastSeenRequestStatus, Status, } from './api.enum';
|
|
9
|
+
export { GetMessageTemplateRequestHydrationOptionsHydrationEntityEntityType, EvaluateResponseType, MetadataIdentifier, SetLastSeenRequestStatus, Status, } from './api.enum';
|
|
@@ -7,7 +7,7 @@ import { MessageInterface } from './message.interface';
|
|
|
7
7
|
import { MessageTemplateInterface } from './message-template.interface';
|
|
8
8
|
import { ParticipantInterface, ParticipantKeyInterface } from './participant.interface';
|
|
9
9
|
import { ResponseEvaluationInterface } from './evaluation.interface';
|
|
10
|
-
import { SubjectParticipantInterface, NamespaceDetailInterface } from './common.interface';
|
|
10
|
+
import { SubjectParticipantInterface, KeyValuePairInterface, NamespaceDetailInterface } from './common.interface';
|
|
11
11
|
import { ViewInterface } from './conversation-view.interface';
|
|
12
12
|
import * as e from '../enums';
|
|
13
13
|
export interface AddConversationToConversationViewRequestInterface {
|
|
@@ -77,6 +77,7 @@ export interface CreateWidgetConversationRequestInterface {
|
|
|
77
77
|
widgetId?: string;
|
|
78
78
|
chatSourceUrl?: string;
|
|
79
79
|
greetingMessage?: string;
|
|
80
|
+
metadata?: KeyValuePairInterface[];
|
|
80
81
|
}
|
|
81
82
|
export interface CreateWidgetConversationResponseInterface {
|
|
82
83
|
widgetParticipantToken?: string;
|
|
@@ -341,6 +342,7 @@ export interface ListResponseEvaluationsRequestInterface {
|
|
|
341
342
|
pagingOptions?: PagedRequestOptionsInterface;
|
|
342
343
|
createdAfter?: Date;
|
|
343
344
|
createdBefore?: Date;
|
|
345
|
+
evaluationType?: e.EvaluateResponseType[];
|
|
344
346
|
}
|
|
345
347
|
export interface ListResponseEvaluationsResponseInterface {
|
|
346
348
|
evaluations?: ResponseEvaluationInterface[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubjectParticipantInterface } from './common.interface';
|
|
1
|
+
import { SubjectParticipantInterface, KeyValuePairInterface } from './common.interface';
|
|
2
2
|
import * as e from '../enums';
|
|
3
3
|
export interface AIConfigurationInterface {
|
|
4
4
|
aiResponseEnabled?: boolean;
|
|
@@ -24,6 +24,7 @@ export interface ConversationInterface {
|
|
|
24
24
|
latestMsgSentTimeBySubjectParticipant?: LatestMessageSentTimeBySubjectParticipantInterface[];
|
|
25
25
|
subjectParticipantKey?: SubjectParticipantKeyInterface;
|
|
26
26
|
latestRelevantActivityTime?: Date;
|
|
27
|
+
metadata?: KeyValuePairInterface[];
|
|
27
28
|
}
|
|
28
29
|
export interface ConversationKeyInterface {
|
|
29
30
|
subjectParticipants?: SubjectParticipantInterface[];
|
|
@@ -8,7 +8,7 @@ import { Message } from './message';
|
|
|
8
8
|
import { MessageTemplate } from './message-template';
|
|
9
9
|
import { Participant, ParticipantKey } from './participant';
|
|
10
10
|
import { ResponseEvaluation } from './evaluation';
|
|
11
|
-
import { SubjectParticipant, NamespaceDetail } from './common';
|
|
11
|
+
import { SubjectParticipant, KeyValuePair, NamespaceDetail } from './common';
|
|
12
12
|
import { View } from './conversation-view';
|
|
13
13
|
import * as e from '../enums';
|
|
14
14
|
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
@@ -121,6 +121,7 @@ export declare class CreateWidgetConversationRequest implements i.CreateWidgetCo
|
|
|
121
121
|
widgetId: string;
|
|
122
122
|
chatSourceUrl: string;
|
|
123
123
|
greetingMessage: string;
|
|
124
|
+
metadata: KeyValuePair[];
|
|
124
125
|
static fromProto(proto: any): CreateWidgetConversationRequest;
|
|
125
126
|
constructor(kwargs?: i.CreateWidgetConversationRequestInterface);
|
|
126
127
|
toApiJson(): object;
|
|
@@ -565,6 +566,7 @@ export declare class ListResponseEvaluationsRequest implements i.ListResponseEva
|
|
|
565
566
|
pagingOptions: PagedRequestOptions;
|
|
566
567
|
createdAfter: Date;
|
|
567
568
|
createdBefore: Date;
|
|
569
|
+
evaluationType: e.EvaluateResponseType[];
|
|
568
570
|
static fromProto(proto: any): ListResponseEvaluationsRequest;
|
|
569
571
|
constructor(kwargs?: i.ListResponseEvaluationsRequestInterface);
|
|
570
572
|
toApiJson(): object;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i from '../interfaces';
|
|
2
|
-
import { SubjectParticipant } from './common';
|
|
2
|
+
import { SubjectParticipant, KeyValuePair } from './common';
|
|
3
3
|
import * as e from '../enums';
|
|
4
4
|
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
5
5
|
export declare class AIConfiguration implements i.AIConfigurationInterface {
|
|
@@ -29,6 +29,7 @@ export declare class Conversation implements i.ConversationInterface {
|
|
|
29
29
|
latestMsgSentTimeBySubjectParticipant: LatestMessageSentTimeBySubjectParticipant[];
|
|
30
30
|
subjectParticipantKey: SubjectParticipantKey;
|
|
31
31
|
latestRelevantActivityTime: Date;
|
|
32
|
+
metadata: KeyValuePair[];
|
|
32
33
|
static fromProto(proto: any): Conversation;
|
|
33
34
|
constructor(kwargs?: i.ConversationInterface);
|
|
34
35
|
toApiJson(): object;
|