@vendasta/conversation 0.25.0 → 0.26.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 +46 -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 +95 -1
- 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 +222 -42
- package/fesm2015/vendasta-conversation.mjs.map +1 -1
- package/fesm2020/vendasta-conversation.mjs +222 -42
- package/fesm2020/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/inbox.api.service.d.ts +17 -0
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/interfaces/api.interface.d.ts +14 -0
- 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 +26 -0
- 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,17 @@
|
|
|
1
|
+
import { GetConfigurationRequest, GetConfigurationResponse, UpsertConfigurationRequest, UpsertConfigurationResponse } from './objects/';
|
|
2
|
+
import { GetConfigurationRequestInterface, 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
|
+
upsertConfiguration(r: UpsertConfigurationRequest | UpsertConfigurationRequestInterface): Observable<UpsertConfigurationResponse>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InboxApiService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InboxApiService>;
|
|
17
|
+
}
|
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;
|
|
@@ -58,6 +60,12 @@ export interface GetMultiConversationDetailsResponseDetailedConversationInterfac
|
|
|
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
|
}
|
|
@@ -200,3 +208,9 @@ export interface UpdateMessageStatusRequestInterface {
|
|
|
200
208
|
participantId?: string;
|
|
201
209
|
status?: e.MessageStatus;
|
|
202
210
|
}
|
|
211
|
+
export interface UpsertConfigurationRequestInterface {
|
|
212
|
+
configuration?: ConfigurationInterface;
|
|
213
|
+
}
|
|
214
|
+
export interface UpsertConfigurationResponseInterface {
|
|
215
|
+
configuration?: ConfigurationInterface;
|
|
216
|
+
}
|
|
@@ -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, SearchConversationsResponseDetailedConversationInterface, GetMultiConversationDetailsResponseDetailedConversationInterface, GetConfigurationRequestInterface, GetConfigurationResponseInterface, GetConversationByKeyRequestInterface, GetConversationByKeyResponseInterface, GetMessageRequestInterface, 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 {
|
|
@@ -99,6 +101,18 @@ export declare class GetMultiConversationDetailsResponseDetailedConversation imp
|
|
|
99
101
|
constructor(kwargs?: i.GetMultiConversationDetailsResponseDetailedConversationInterface);
|
|
100
102
|
toApiJson(): object;
|
|
101
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);
|
|
114
|
+
toApiJson(): object;
|
|
115
|
+
}
|
|
102
116
|
export declare class GetConversationByKeyRequest implements i.GetConversationByKeyRequestInterface {
|
|
103
117
|
conversationKey: ConversationKey;
|
|
104
118
|
static fromProto(proto: any): GetConversationByKeyRequest;
|
|
@@ -334,3 +348,15 @@ export declare class UpdateMessageStatusRequest implements i.UpdateMessageStatus
|
|
|
334
348
|
constructor(kwargs?: i.UpdateMessageStatusRequestInterface);
|
|
335
349
|
toApiJson(): object;
|
|
336
350
|
}
|
|
351
|
+
export declare class UpsertConfigurationRequest implements i.UpsertConfigurationRequestInterface {
|
|
352
|
+
configuration: Configuration;
|
|
353
|
+
static fromProto(proto: any): UpsertConfigurationRequest;
|
|
354
|
+
constructor(kwargs?: i.UpsertConfigurationRequestInterface);
|
|
355
|
+
toApiJson(): object;
|
|
356
|
+
}
|
|
357
|
+
export declare class UpsertConfigurationResponse implements i.UpsertConfigurationResponseInterface {
|
|
358
|
+
configuration: Configuration;
|
|
359
|
+
static fromProto(proto: any): UpsertConfigurationResponse;
|
|
360
|
+
constructor(kwargs?: i.UpsertConfigurationResponseInterface);
|
|
361
|
+
toApiJson(): object;
|
|
362
|
+
}
|
|
@@ -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, SearchConversationsResponseDetailedConversation, GetMultiConversationDetailsResponseDetailedConversation, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetMessageRequest, 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