@vkontakte/calls-sdk 2.6.2-beta.23 → 2.6.2-beta.25
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/CallsSDK.d.ts +3 -2
- package/abstract/BaseApi.d.ts +1 -1
- package/calls-sdk.cjs.js +8 -8
- package/calls-sdk.esm.js +8 -8
- package/classes/Conversation.d.ts +1 -0
- package/default/Api.d.ts +1 -1
- package/package.json +1 -1
- package/utils/ArrayDequeue.d.ts +24 -0
- package/utils/ArrayDequeue.spec.d.ts +1 -0
|
@@ -117,6 +117,7 @@ export default class Conversation extends EventEmitter {
|
|
|
117
117
|
chatId?: string;
|
|
118
118
|
joinLink?: string;
|
|
119
119
|
observedIds?: ExternalUserId[];
|
|
120
|
+
payload?: string;
|
|
120
121
|
}): Promise<ConversationData>;
|
|
121
122
|
private _onJoinPart2;
|
|
122
123
|
onPush(conversationId: string, type?: UserType, peerId?: number): Promise<void>;
|
package/default/Api.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export default class Api extends BaseApi {
|
|
|
31
31
|
success: boolean;
|
|
32
32
|
}>;
|
|
33
33
|
getAnonymTokenByLink(joinLink: string, username?: string): Promise<string>;
|
|
34
|
-
joinConversationByLink(joinLink: string, isVideo?: boolean, observedIds?: ExternalUserId[]): Promise<ConversationResponse>;
|
|
34
|
+
joinConversationByLink(joinLink: string, isVideo?: boolean, observedIds?: ExternalUserId[], payload?: string): Promise<ConversationResponse>;
|
|
35
35
|
/**
|
|
36
36
|
* NB: Не сохраняет порядок возвращаемых ID
|
|
37
37
|
* @hidden
|
package/package.json
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare class ArrayDequeue<T = any> {
|
|
2
|
+
/** очередь */
|
|
3
|
+
private readonly _queue;
|
|
4
|
+
/** курсор для чтения */
|
|
5
|
+
private _readCursor;
|
|
6
|
+
/** курсор для записи */
|
|
7
|
+
private _writeCursor;
|
|
8
|
+
/** подвинуть курсор чтения */
|
|
9
|
+
private _moveReadCursor;
|
|
10
|
+
/** сколько осталось в очереди элементов */
|
|
11
|
+
private _left;
|
|
12
|
+
constructor(length: number);
|
|
13
|
+
/** возвращает длину, переданную в конструктор */
|
|
14
|
+
get length(): number;
|
|
15
|
+
/** возвращает текущую длину очереди */
|
|
16
|
+
get left(): number;
|
|
17
|
+
toArray(): T[];
|
|
18
|
+
/** добавить элемент в очередь */
|
|
19
|
+
add(element: T): void;
|
|
20
|
+
/** вычисляет значение след курсора по кругу */
|
|
21
|
+
private nextCursor;
|
|
22
|
+
/** получить следующий элемент */
|
|
23
|
+
next(): T | null;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|