@vkontakte/calls-sdk 2.8.11-dev.55f30024.0 → 2.8.11-dev.611d028c.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/abstract/BaseApi.d.ts +1 -1
- package/calls-sdk.cjs.js +6 -6
- package/calls-sdk.esm.js +535 -558
- package/classes/Conversation.d.ts +2 -0
- package/default/Api.d.ts +1 -6
- package/package.json +1 -1
- package/types/ExternalId.d.ts +1 -1
|
@@ -127,6 +127,7 @@ export default class Conversation extends EventEmitter {
|
|
|
127
127
|
private _prepareConversation;
|
|
128
128
|
private _createParticipant;
|
|
129
129
|
private _getParticipantId;
|
|
130
|
+
private _cacheParticipantExternalIds;
|
|
130
131
|
private _setConversation;
|
|
131
132
|
private _updateConversation;
|
|
132
133
|
private _createMediaSource;
|
|
@@ -143,6 +144,7 @@ export default class Conversation extends EventEmitter {
|
|
|
143
144
|
private _registerParticipantInCache;
|
|
144
145
|
private _getExistedParticipantByIdOrCreate;
|
|
145
146
|
private _getExternalIdByParticipantId;
|
|
147
|
+
private _getExternalIdsByOkIdsFromCache;
|
|
146
148
|
private _registerParticipantAndSetMarkersIfChunkEnabled;
|
|
147
149
|
private _warnParticipantNotInConversation;
|
|
148
150
|
private _denormalizeMarkers;
|
package/default/Api.d.ts
CHANGED
|
@@ -45,13 +45,9 @@ export default class Api extends BaseApi {
|
|
|
45
45
|
}>;
|
|
46
46
|
getAnonymTokenByLink(joinLink: string, username?: string): Promise<string>;
|
|
47
47
|
joinConversationByLink(joinLink: string, isVideo?: boolean, observedIds?: ExternalUserId[], payload?: string): Promise<ConversationResponse>;
|
|
48
|
-
/**
|
|
49
|
-
* NB: Не сохраняет порядок возвращаемых ID
|
|
50
|
-
* @hidden
|
|
51
|
-
*/
|
|
52
|
-
getExternalIdsByOkIds(uids: OkUserId[]): Promise<ExternalParticipantId[]>;
|
|
53
48
|
getCachedOkIdByExternalId(externalId: ExternalId): ParticipantId | null;
|
|
54
49
|
getCachedRawOkIdByExternalId(externalId: ExternalId): OkUserId | null;
|
|
50
|
+
getCachedExternalIdByOkId(okId: OkUserId): ExternalParticipantId | null;
|
|
55
51
|
cacheExternalId(participantId: OkUserId | CompositeUserId | ParticipantId, externalId: ExternalParticipantId): void;
|
|
56
52
|
mapDecorativeId(decorativeId: OkUserId | CompositeUserId | ParticipantId, initialId: OkUserId | CompositeUserId | ParticipantId): void;
|
|
57
53
|
unmapDecorativeId(initialId: OkUserId | CompositeUserId | ParticipantId): void;
|
|
@@ -63,6 +59,5 @@ export default class Api extends BaseApi {
|
|
|
63
59
|
hangupConversation(conversationId: string, reason?: HangupType): void;
|
|
64
60
|
removeHistoryRecords(recordIds: number[]): Promise<void>;
|
|
65
61
|
cleanup(): void;
|
|
66
|
-
private _getExternalIdsByOkIds;
|
|
67
62
|
getServerTime(): Promise<number>;
|
|
68
63
|
}
|
package/package.json
CHANGED
package/types/ExternalId.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export type ExternalUserId = string;
|
|
|
18
18
|
export declare namespace ExternalIdUtils {
|
|
19
19
|
function fromIds(ids: ExternalUserId[] | ExternalId[]): ExternalId[];
|
|
20
20
|
function fromId(id: ExternalUserId, type?: ExternalIdType, deviceIdx?: number): ExternalParticipantId;
|
|
21
|
-
function fromSignalingParticipant(participant: SignalingMessage.Participant, useDecorative?: boolean): ExternalParticipantId | undefined;
|
|
21
|
+
function fromSignalingParticipant(participant: SignalingMessage.Participant, useDecorative?: boolean, fallbackToNonDecorative?: boolean): ExternalParticipantId | undefined;
|
|
22
22
|
function fromSignaling(signalingId: SignalingMessage.ExternalId, deviceIdx?: number): ExternalParticipantId;
|
|
23
23
|
function toSignaling(externalId: ExternalId): string;
|
|
24
24
|
function toString(externalId: ExternalId): ExternalIdString;
|