@arcaelas/whatsapp 1.1.1 → 1.2.3

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/build/Chat.d.ts CHANGED
@@ -126,23 +126,23 @@ export declare function chat(wa: WhatsApp): {
126
126
  refresh(): Promise</*elided*/ any | null>;
127
127
  readonly raw: IChatRaw;
128
128
  /** JID único del chat */
129
- readonly id: string;
129
+ get id(): string;
130
130
  /** Tipo de chat */
131
- readonly type: "contact" | "group";
131
+ get type(): "contact" | "group";
132
132
  /** Nombre del chat */
133
- readonly name: string;
133
+ get name(): string;
134
134
  /** Descripción del chat/grupo */
135
- readonly content: string;
135
+ get content(): string;
136
136
  /** Si está fijado */
137
- readonly pined: boolean;
137
+ get pined(): boolean;
138
138
  /** Si está archivado */
139
- readonly archived: boolean;
139
+ get archived(): boolean;
140
140
  /** Timestamp cuando expira el silencio o false */
141
- readonly muted: number | false;
141
+ get muted(): number | false;
142
142
  /** Si está leído */
143
- readonly readed: boolean;
143
+ get readed(): boolean;
144
144
  /** Si es solo lectura */
145
- readonly readonly: boolean;
145
+ get readonly(): boolean;
146
146
  };
147
147
  /**
148
148
  * @description Obtiene un chat por su ID.
@@ -164,23 +164,23 @@ export declare function chat(wa: WhatsApp): {
164
164
  refresh(): Promise</*elided*/ any | null>;
165
165
  readonly raw: IChatRaw;
166
166
  /** JID único del chat */
167
- readonly id: string;
167
+ get id(): string;
168
168
  /** Tipo de chat */
169
- readonly type: "contact" | "group";
169
+ get type(): "contact" | "group";
170
170
  /** Nombre del chat */
171
- readonly name: string;
171
+ get name(): string;
172
172
  /** Descripción del chat/grupo */
173
- readonly content: string;
173
+ get content(): string;
174
174
  /** Si está fijado */
175
- readonly pined: boolean;
175
+ get pined(): boolean;
176
176
  /** Si está archivado */
177
- readonly archived: boolean;
177
+ get archived(): boolean;
178
178
  /** Timestamp cuando expira el silencio o false */
179
- readonly muted: number | false;
179
+ get muted(): number | false;
180
180
  /** Si está leído */
181
- readonly readed: boolean;
181
+ get readed(): boolean;
182
182
  /** Si es solo lectura */
183
- readonly readonly: boolean;
183
+ get readonly(): boolean;
184
184
  } | null>;
185
185
  /**
186
186
  * @description Actualiza los datos del chat desde WhatsApp.
@@ -202,23 +202,23 @@ export declare function chat(wa: WhatsApp): {
202
202
  refresh(): Promise</*elided*/ any | null>;
203
203
  readonly raw: IChatRaw;
204
204
  /** JID único del chat */
205
- readonly id: string;
205
+ get id(): string;
206
206
  /** Tipo de chat */
207
- readonly type: "contact" | "group";
207
+ get type(): "contact" | "group";
208
208
  /** Nombre del chat */
209
- readonly name: string;
209
+ get name(): string;
210
210
  /** Descripción del chat/grupo */
211
- readonly content: string;
211
+ get content(): string;
212
212
  /** Si está fijado */
213
- readonly pined: boolean;
213
+ get pined(): boolean;
214
214
  /** Si está archivado */
215
- readonly archived: boolean;
215
+ get archived(): boolean;
216
216
  /** Timestamp cuando expira el silencio o false */
217
- readonly muted: number | false;
217
+ get muted(): number | false;
218
218
  /** Si está leído */
219
- readonly readed: boolean;
219
+ get readed(): boolean;
220
220
  /** Si es solo lectura */
221
- readonly readonly: boolean;
221
+ get readonly(): boolean;
222
222
  } | null>;
223
223
  /**
224
224
  * @description Obtiene chats paginados.
@@ -241,23 +241,23 @@ export declare function chat(wa: WhatsApp): {
241
241
  refresh(): Promise</*elided*/ any | null>;
242
242
  readonly raw: IChatRaw;
243
243
  /** JID único del chat */
244
- readonly id: string;
244
+ get id(): string;
245
245
  /** Tipo de chat */
246
- readonly type: "contact" | "group";
246
+ get type(): "contact" | "group";
247
247
  /** Nombre del chat */
248
- readonly name: string;
248
+ get name(): string;
249
249
  /** Descripción del chat/grupo */
250
- readonly content: string;
250
+ get content(): string;
251
251
  /** Si está fijado */
252
- readonly pined: boolean;
252
+ get pined(): boolean;
253
253
  /** Si está archivado */
254
- readonly archived: boolean;
254
+ get archived(): boolean;
255
255
  /** Timestamp cuando expira el silencio o false */
256
- readonly muted: number | false;
256
+ get muted(): number | false;
257
257
  /** Si está leído */
258
- readonly readed: boolean;
258
+ get readed(): boolean;
259
259
  /** Si es solo lectura */
260
- readonly readonly: boolean;
260
+ get readonly(): boolean;
261
261
  }[]>;
262
262
  /**
263
263
  * @description Fija o desfija un chat.