@wppconnect/wa-js 2.6.0 → 2.7.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.
@@ -14,6 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export * from './ACK';
17
+ export * from './CALL_STATES';
17
18
  export * from './GROUP_SETTING_TYPE';
18
19
  export * from './LogoutReason';
19
20
  export * from './MSG_TYPE';
@@ -27,9 +27,24 @@ export interface SimpleAckData {
27
27
  offline: null;
28
28
  biz?: null;
29
29
  }
30
- /** @whatsapp 90756 */
30
+ /**
31
+ * @whatsapp 90756
32
+ * @deprecated
33
+ */
31
34
  export declare function handleStatusSimpleAck(ackData: SimpleAckData): Promise<any>;
32
- /** @whatsapp 48309 */
35
+ /**
36
+ * @whatsapp 48309
37
+ * @deprecated
38
+ */
33
39
  export declare function handleChatSimpleAck(ackData: SimpleAckData): Promise<any>;
34
- /** @whatsapp 84947 */
40
+ /**
41
+ * @whatsapp 84947
42
+ * @deprecated
43
+ */
35
44
  export declare function handleGroupSimpleAck(ackData: SimpleAckData): Promise<any>;
45
+ /** @whatsapp 90756 */
46
+ export declare function handleStatusSimpleReceipt(ackData: SimpleAckData): Promise<any>;
47
+ /** @whatsapp 48309 */
48
+ export declare function handleChatSimpleReceipt(ackData: SimpleAckData): Promise<any>;
49
+ /** @whatsapp 84947 */
50
+ export declare function handleGroupSimpleReceipt(ackData: SimpleAckData): Promise<any>;
@@ -13,14 +13,12 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { Wid } from '..';
17
- import { ChatModel } from '../models';
18
16
  /** @whatsapp 56981 */
19
17
  export declare function sendCallSignalingMsg(data: {
20
18
  common: {
21
19
  type?: string;
22
20
  call_id?: string;
23
- peer_jid: Wid;
21
+ peer_jid: string;
24
22
  };
25
23
  payload: [
26
24
  string,
@@ -31,4 +29,7 @@ export declare function sendCallSignalingMsg(data: {
31
29
  },
32
30
  null
33
31
  ];
34
- }, tagId?: string): Promise<ChatModel>;
32
+ }, tagId?: string): Promise<{
33
+ payload: any;
34
+ status: 200;
35
+ }>;
@@ -14,17 +14,19 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { CallCollection } from '../collections';
17
+ import { CALL_STATES } from '../enums';
18
+ import { Wid } from '../misc';
17
19
  import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
18
20
  interface Props {
19
- id?: any;
20
- peerJid?: any;
21
- offerTime?: any;
21
+ id: string;
22
+ peerJid: Wid;
23
+ offerTime: number;
22
24
  isVideo: boolean;
23
25
  isGroup: boolean;
24
26
  groupCallParticipants?: any;
25
27
  canHandleLocally: boolean;
26
- outgoing?: any;
27
- webClientShouldHandle?: any;
28
+ outgoing: boolean;
29
+ webClientShouldHandle: boolean;
28
30
  callInfo?: any;
29
31
  }
30
32
  interface Session {
@@ -42,9 +44,8 @@ export declare interface CallModel extends ModelProxy<Props, Session, Derived> {
42
44
  */
43
45
  export declare class CallModel extends Model<CallCollection> {
44
46
  constructor(proterties?: ModelPropertiesContructor<CallModel>, options?: ModelOptions);
45
- getState(): any;
46
- setState(e?: any): any;
47
- handleNotification(): any;
47
+ getState(): CALL_STATES;
48
+ setState(state: CALL_STATES): void;
48
49
  getCollection(): CallCollection;
49
50
  }
50
51
  export {};