@vendasta/conversation 0.25.0 → 0.27.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/esm2020/lib/_internal/inbox.api.service.mjs +51 -0
- package/esm2020/lib/_internal/index.mjs +2 -1
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/common.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/configuration.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/conversation.interface.mjs +1 -7
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +145 -5
- package/esm2020/lib/_internal/objects/common.mjs +34 -0
- package/esm2020/lib/_internal/objects/configuration.mjs +49 -0
- package/esm2020/lib/_internal/objects/conversation.mjs +2 -27
- package/esm2020/lib/_internal/objects/index.mjs +5 -3
- package/esm2020/lib/index.mjs +2 -1
- package/fesm2015/vendasta-conversation.mjs +277 -46
- package/fesm2015/vendasta-conversation.mjs.map +1 -1
- package/fesm2020/vendasta-conversation.mjs +277 -46
- package/fesm2020/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/inbox.api.service.d.ts +18 -0
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/interfaces/api.interface.d.ts +22 -2
- package/lib/_internal/interfaces/common.interface.d.ts +5 -0
- package/lib/_internal/interfaces/configuration.interface.d.ts +8 -0
- package/lib/_internal/interfaces/conversation.interface.d.ts +1 -4
- package/lib/_internal/interfaces/index.d.ts +4 -2
- package/lib/_internal/objects/api.d.ts +44 -6
- package/lib/_internal/objects/common.d.ts +10 -0
- package/lib/_internal/objects/configuration.d.ts +13 -0
- package/lib/_internal/objects/conversation.d.ts +1 -7
- package/lib/_internal/objects/index.d.ts +4 -2
- package/lib/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { GetConfigurationRequest, GetConfigurationResponse, GetMultiConfigurationRequest, GetMultiConfigurationResponse, UpsertConfigurationRequest, UpsertConfigurationResponse } from './objects/';
|
|
2
|
+
import { GetConfigurationRequestInterface, GetMultiConfigurationRequestInterface, UpsertConfigurationRequestInterface } from './interfaces/';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { HostService } from '../_generated/host.service';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class InboxApiService {
|
|
8
|
+
private http;
|
|
9
|
+
private hostService;
|
|
10
|
+
private _host;
|
|
11
|
+
constructor(http: HttpClient, hostService: HostService);
|
|
12
|
+
private apiOptions;
|
|
13
|
+
getConfiguration(r: GetConfigurationRequest | GetConfigurationRequestInterface): Observable<GetConfigurationResponse>;
|
|
14
|
+
getMultiConfiguration(r: GetMultiConfigurationRequest | GetMultiConfigurationRequestInterface): Observable<GetMultiConfigurationResponse>;
|
|
15
|
+
upsertConfiguration(r: UpsertConfigurationRequest | UpsertConfigurationRequestInterface): Observable<UpsertConfigurationResponse>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InboxApiService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InboxApiService>;
|
|
18
|
+
}
|
package/lib/_internal/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { ConfigurationInterface } from './configuration.interface';
|
|
1
2
|
import { ConversationInterface, ConversationKeyInterface } from './conversation.interface';
|
|
2
3
|
import { MessageInterface } from './message.interface';
|
|
3
4
|
import { ParticipantInterface, ParticipantKeyInterface } from './participant.interface';
|
|
5
|
+
import { SubjectParticipantInterface } from './common.interface';
|
|
4
6
|
import * as e from '../enums';
|
|
5
7
|
export interface AddMultiParticipantsRequestInterface {
|
|
6
8
|
conversationId?: string;
|
|
@@ -48,16 +50,22 @@ export interface DeleteConversationRequestInterface {
|
|
|
48
50
|
export interface DeleteMessageRequestInterface {
|
|
49
51
|
messageId?: string;
|
|
50
52
|
}
|
|
51
|
-
export interface
|
|
53
|
+
export interface GetMultiConversationDetailsResponseDetailedConversationInterface {
|
|
52
54
|
conversation?: ConversationInterface;
|
|
53
55
|
latestMessage?: MessageInterface;
|
|
54
56
|
participants?: ParticipantInterface[];
|
|
55
57
|
}
|
|
56
|
-
export interface
|
|
58
|
+
export interface SearchConversationsResponseDetailedConversationInterface {
|
|
57
59
|
conversation?: ConversationInterface;
|
|
58
60
|
latestMessage?: MessageInterface;
|
|
59
61
|
participants?: ParticipantInterface[];
|
|
60
62
|
}
|
|
63
|
+
export interface GetConfigurationRequestInterface {
|
|
64
|
+
subjectParticipant?: SubjectParticipantInterface;
|
|
65
|
+
}
|
|
66
|
+
export interface GetConfigurationResponseInterface {
|
|
67
|
+
configuration?: ConfigurationInterface;
|
|
68
|
+
}
|
|
61
69
|
export interface GetConversationByKeyRequestInterface {
|
|
62
70
|
conversationKey?: ConversationKeyInterface;
|
|
63
71
|
}
|
|
@@ -67,6 +75,12 @@ export interface GetConversationByKeyResponseInterface {
|
|
|
67
75
|
export interface GetMessageRequestInterface {
|
|
68
76
|
messageId?: string;
|
|
69
77
|
}
|
|
78
|
+
export interface GetMultiConfigurationRequestInterface {
|
|
79
|
+
subjectParticipants?: SubjectParticipantInterface[];
|
|
80
|
+
}
|
|
81
|
+
export interface GetMultiConfigurationResponseInterface {
|
|
82
|
+
configurations?: ConfigurationInterface[];
|
|
83
|
+
}
|
|
70
84
|
export interface GetMultiConversationDetailsRequestInterface {
|
|
71
85
|
conversationIds?: string[];
|
|
72
86
|
}
|
|
@@ -200,3 +214,9 @@ export interface UpdateMessageStatusRequestInterface {
|
|
|
200
214
|
participantId?: string;
|
|
201
215
|
status?: e.MessageStatus;
|
|
202
216
|
}
|
|
217
|
+
export interface UpsertConfigurationRequestInterface {
|
|
218
|
+
configuration?: ConfigurationInterface;
|
|
219
|
+
}
|
|
220
|
+
export interface UpsertConfigurationResponseInterface {
|
|
221
|
+
configuration?: ConfigurationInterface;
|
|
222
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SubjectParticipantInterface } from './common.interface';
|
|
2
|
+
export interface ConfigurationInterface {
|
|
3
|
+
subjectParticipant?: SubjectParticipantInterface;
|
|
4
|
+
createdAt?: Date;
|
|
5
|
+
updatedAt?: Date;
|
|
6
|
+
availabilityMessage?: string;
|
|
7
|
+
showAvailabilityMessage?: boolean;
|
|
8
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SubjectParticipantInterface } from './common.interface';
|
|
1
2
|
import * as e from '../enums';
|
|
2
3
|
export interface ConversationInterface {
|
|
3
4
|
conversationId?: string;
|
|
@@ -21,7 +22,3 @@ export interface LastSeenByParticipantInterface {
|
|
|
21
22
|
participantId?: string;
|
|
22
23
|
lastSeenTime?: Date;
|
|
23
24
|
}
|
|
24
|
-
export interface SubjectParticipantInterface {
|
|
25
|
-
participantType?: e.GlobalParticipantType;
|
|
26
|
-
internalParticipantId?: string;
|
|
27
|
-
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { MessageInterface, ParticipantMessageStatusInterface, } from './message.interface';
|
|
2
|
-
export {
|
|
2
|
+
export { SubjectParticipantInterface, } from './common.interface';
|
|
3
|
+
export { ConversationInterface, ConversationKeyInterface, LastSeenByParticipantInterface, } from './conversation.interface';
|
|
3
4
|
export { AddressInterface, ParticipantInterface, ParticipantKeyInterface, } from './participant.interface';
|
|
4
5
|
export { AccessInterface, } from './annotations.interface';
|
|
5
|
-
export {
|
|
6
|
+
export { ConfigurationInterface, } from './configuration.interface';
|
|
7
|
+
export { AddMultiParticipantsRequestInterface, AddMultiParticipantsResponseInterface, ConversationMessageCountInterface, LookupConversationsResponseConversationsInterface, GetMultiConversationMessageCountResponseCountsEntryInterface, CreateConversationRequestInterface, CreateConversationResponseInterface, CreateMultiMessagesRequestInterface, MetadataDataEntryInterface, DeleteConversationRequestInterface, DeleteMessageRequestInterface, GetMultiConversationDetailsResponseDetailedConversationInterface, SearchConversationsResponseDetailedConversationInterface, GetConfigurationRequestInterface, GetConfigurationResponseInterface, GetConversationByKeyRequestInterface, GetConversationByKeyResponseInterface, GetMessageRequestInterface, GetMultiConfigurationRequestInterface, GetMultiConfigurationResponseInterface, GetMultiConversationDetailsRequestInterface, GetMultiConversationDetailsResponseInterface, GetMultiConversationMessageCountRequestInterface, GetMultiConversationMessageCountResponseInterface, GetMultiMessagesRequestInterface, GetMultiMessagesResponseInterface, GetMultiParticipantsRequestInterface, GetMultiParticipantsResponseInterface, GetParticipantsByKeyRequestInterface, GetParticipantsByKeyResponseInterface, ListMessagesRequestListMessagesFiltersInterface, ListMessagesRequestInterface, ListMessagesResponseInterface, LookupConversationsRequestLookupConversationsFiltersInterface, LookupConversationsRequestInterface, LookupConversationsResponseInterface, MetadataInterface, ReceiveMessageRequestMetadataEntryInterface, PagedRequestOptionsInterface, PagedResponseMetadataInterface, ReceiveMessageRequestInterface, SearchConversationsRequestInterface, SearchConversationsResponseInterface, SendMessageRequestInterface, SendMessageResponseInterface, SetLastSeenRequestInterface, SetLastSeenResponseInterface, UpdateMessageStatusRequestInterface, UpsertConfigurationRequestInterface, UpsertConfigurationResponseInterface, } from './api.interface';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as i from '../interfaces';
|
|
2
|
+
import { Configuration } from './configuration';
|
|
2
3
|
import { Conversation, ConversationKey } from './conversation';
|
|
3
4
|
import { Message } from './message';
|
|
4
5
|
import { Participant, ParticipantKey } from './participant';
|
|
6
|
+
import { SubjectParticipant } from './common';
|
|
5
7
|
import * as e from '../enums';
|
|
6
8
|
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
7
9
|
export declare class AddMultiParticipantsRequest implements i.AddMultiParticipantsRequestInterface {
|
|
@@ -83,20 +85,32 @@ export declare class DeleteMessageRequest implements i.DeleteMessageRequestInter
|
|
|
83
85
|
constructor(kwargs?: i.DeleteMessageRequestInterface);
|
|
84
86
|
toApiJson(): object;
|
|
85
87
|
}
|
|
86
|
-
export declare class
|
|
88
|
+
export declare class GetMultiConversationDetailsResponseDetailedConversation implements i.GetMultiConversationDetailsResponseDetailedConversationInterface {
|
|
87
89
|
conversation: Conversation;
|
|
88
90
|
latestMessage: Message;
|
|
89
91
|
participants: Participant[];
|
|
90
|
-
static fromProto(proto: any):
|
|
91
|
-
constructor(kwargs?: i.
|
|
92
|
+
static fromProto(proto: any): GetMultiConversationDetailsResponseDetailedConversation;
|
|
93
|
+
constructor(kwargs?: i.GetMultiConversationDetailsResponseDetailedConversationInterface);
|
|
92
94
|
toApiJson(): object;
|
|
93
95
|
}
|
|
94
|
-
export declare class
|
|
96
|
+
export declare class SearchConversationsResponseDetailedConversation implements i.SearchConversationsResponseDetailedConversationInterface {
|
|
95
97
|
conversation: Conversation;
|
|
96
98
|
latestMessage: Message;
|
|
97
99
|
participants: Participant[];
|
|
98
|
-
static fromProto(proto: any):
|
|
99
|
-
constructor(kwargs?: i.
|
|
100
|
+
static fromProto(proto: any): SearchConversationsResponseDetailedConversation;
|
|
101
|
+
constructor(kwargs?: i.SearchConversationsResponseDetailedConversationInterface);
|
|
102
|
+
toApiJson(): object;
|
|
103
|
+
}
|
|
104
|
+
export declare class GetConfigurationRequest implements i.GetConfigurationRequestInterface {
|
|
105
|
+
subjectParticipant: SubjectParticipant;
|
|
106
|
+
static fromProto(proto: any): GetConfigurationRequest;
|
|
107
|
+
constructor(kwargs?: i.GetConfigurationRequestInterface);
|
|
108
|
+
toApiJson(): object;
|
|
109
|
+
}
|
|
110
|
+
export declare class GetConfigurationResponse implements i.GetConfigurationResponseInterface {
|
|
111
|
+
configuration: Configuration;
|
|
112
|
+
static fromProto(proto: any): GetConfigurationResponse;
|
|
113
|
+
constructor(kwargs?: i.GetConfigurationResponseInterface);
|
|
100
114
|
toApiJson(): object;
|
|
101
115
|
}
|
|
102
116
|
export declare class GetConversationByKeyRequest implements i.GetConversationByKeyRequestInterface {
|
|
@@ -117,6 +131,18 @@ export declare class GetMessageRequest implements i.GetMessageRequestInterface {
|
|
|
117
131
|
constructor(kwargs?: i.GetMessageRequestInterface);
|
|
118
132
|
toApiJson(): object;
|
|
119
133
|
}
|
|
134
|
+
export declare class GetMultiConfigurationRequest implements i.GetMultiConfigurationRequestInterface {
|
|
135
|
+
subjectParticipants: SubjectParticipant[];
|
|
136
|
+
static fromProto(proto: any): GetMultiConfigurationRequest;
|
|
137
|
+
constructor(kwargs?: i.GetMultiConfigurationRequestInterface);
|
|
138
|
+
toApiJson(): object;
|
|
139
|
+
}
|
|
140
|
+
export declare class GetMultiConfigurationResponse implements i.GetMultiConfigurationResponseInterface {
|
|
141
|
+
configurations: Configuration[];
|
|
142
|
+
static fromProto(proto: any): GetMultiConfigurationResponse;
|
|
143
|
+
constructor(kwargs?: i.GetMultiConfigurationResponseInterface);
|
|
144
|
+
toApiJson(): object;
|
|
145
|
+
}
|
|
120
146
|
export declare class GetMultiConversationDetailsRequest implements i.GetMultiConversationDetailsRequestInterface {
|
|
121
147
|
conversationIds: string[];
|
|
122
148
|
static fromProto(proto: any): GetMultiConversationDetailsRequest;
|
|
@@ -334,3 +360,15 @@ export declare class UpdateMessageStatusRequest implements i.UpdateMessageStatus
|
|
|
334
360
|
constructor(kwargs?: i.UpdateMessageStatusRequestInterface);
|
|
335
361
|
toApiJson(): object;
|
|
336
362
|
}
|
|
363
|
+
export declare class UpsertConfigurationRequest implements i.UpsertConfigurationRequestInterface {
|
|
364
|
+
configuration: Configuration;
|
|
365
|
+
static fromProto(proto: any): UpsertConfigurationRequest;
|
|
366
|
+
constructor(kwargs?: i.UpsertConfigurationRequestInterface);
|
|
367
|
+
toApiJson(): object;
|
|
368
|
+
}
|
|
369
|
+
export declare class UpsertConfigurationResponse implements i.UpsertConfigurationResponseInterface {
|
|
370
|
+
configuration: Configuration;
|
|
371
|
+
static fromProto(proto: any): UpsertConfigurationResponse;
|
|
372
|
+
constructor(kwargs?: i.UpsertConfigurationResponseInterface);
|
|
373
|
+
toApiJson(): object;
|
|
374
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i from '../interfaces';
|
|
2
|
+
import * as e from '../enums';
|
|
3
|
+
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
4
|
+
export declare class SubjectParticipant implements i.SubjectParticipantInterface {
|
|
5
|
+
participantType: e.GlobalParticipantType;
|
|
6
|
+
internalParticipantId: string;
|
|
7
|
+
static fromProto(proto: any): SubjectParticipant;
|
|
8
|
+
constructor(kwargs?: i.SubjectParticipantInterface);
|
|
9
|
+
toApiJson(): object;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i from '../interfaces';
|
|
2
|
+
import { SubjectParticipant } from './common';
|
|
3
|
+
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
4
|
+
export declare class Configuration implements i.ConfigurationInterface {
|
|
5
|
+
subjectParticipant: SubjectParticipant;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
updatedAt: Date;
|
|
8
|
+
availabilityMessage: string;
|
|
9
|
+
showAvailabilityMessage: boolean;
|
|
10
|
+
static fromProto(proto: any): Configuration;
|
|
11
|
+
constructor(kwargs?: i.ConfigurationInterface);
|
|
12
|
+
toApiJson(): object;
|
|
13
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as i from '../interfaces';
|
|
2
|
+
import { SubjectParticipant } from './common';
|
|
2
3
|
import * as e from '../enums';
|
|
3
4
|
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
4
5
|
export declare class Conversation implements i.ConversationInterface {
|
|
@@ -32,10 +33,3 @@ export declare class LastSeenByParticipant implements i.LastSeenByParticipantInt
|
|
|
32
33
|
constructor(kwargs?: i.LastSeenByParticipantInterface);
|
|
33
34
|
toApiJson(): object;
|
|
34
35
|
}
|
|
35
|
-
export declare class SubjectParticipant implements i.SubjectParticipantInterface {
|
|
36
|
-
participantType: e.GlobalParticipantType;
|
|
37
|
-
internalParticipantId: string;
|
|
38
|
-
static fromProto(proto: any): SubjectParticipant;
|
|
39
|
-
constructor(kwargs?: i.SubjectParticipantInterface);
|
|
40
|
-
toApiJson(): object;
|
|
41
|
-
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { Message, ParticipantMessageStatus, } from './message';
|
|
2
|
-
export {
|
|
2
|
+
export { SubjectParticipant, } from './common';
|
|
3
|
+
export { Conversation, ConversationKey, LastSeenByParticipant, } from './conversation';
|
|
3
4
|
export { Address, Participant, ParticipantKey, } from './participant';
|
|
4
5
|
export { Access, } from './annotations';
|
|
5
|
-
export {
|
|
6
|
+
export { Configuration, } from './configuration';
|
|
7
|
+
export { AddMultiParticipantsRequest, AddMultiParticipantsResponse, ConversationMessageCount, LookupConversationsResponseConversations, GetMultiConversationMessageCountResponseCountsEntry, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, MetadataDataEntry, DeleteConversationRequest, DeleteMessageRequest, GetMultiConversationDetailsResponseDetailedConversation, SearchConversationsResponseDetailedConversation, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetMessageRequest, GetMultiConfigurationRequest, GetMultiConfigurationResponse, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, ListMessagesRequestListMessagesFilters, ListMessagesRequest, ListMessagesResponse, LookupConversationsRequestLookupConversationsFilters, LookupConversationsRequest, LookupConversationsResponse, Metadata, ReceiveMessageRequestMetadataEntry, PagedRequestOptions, PagedResponseMetadata, ReceiveMessageRequest, SearchConversationsRequest, SearchConversationsResponse, SendMessageRequest, SendMessageResponse, SetLastSeenRequest, SetLastSeenResponse, UpdateMessageStatusRequest, UpsertConfigurationRequest, UpsertConfigurationResponse, } from './api';
|
package/lib/index.d.ts
CHANGED