@mtcute/core 0.27.1 → 0.27.2
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/client.cjs +12 -0
- package/client.js +13 -1
- package/highlevel/client.d.cts +131 -90
- package/highlevel/client.d.ts +131 -90
- package/highlevel/client.test.d.cts +1 -0
- package/highlevel/client.test.d.ts +1 -0
- package/highlevel/methods/contacts/set-contact-note.cjs +21 -0
- package/highlevel/methods/contacts/set-contact-note.js +16 -0
- package/highlevel/methods/files/download-chunk.cjs +63 -0
- package/highlevel/methods/files/download-chunk.d.cts +29 -0
- package/highlevel/methods/files/download-chunk.d.ts +29 -0
- package/highlevel/methods/files/download-chunk.js +58 -0
- package/highlevel/methods/files/download-chunk.test.d.cts +1 -0
- package/highlevel/methods/files/download-chunk.test.d.ts +1 -0
- package/highlevel/methods/files/download-iterable.cjs +39 -23
- package/highlevel/methods/files/download-iterable.d.cts +6 -0
- package/highlevel/methods/files/download-iterable.d.ts +6 -0
- package/highlevel/methods/files/download-iterable.js +33 -17
- package/highlevel/methods/forums/reorder-pinned-forum-topics.cjs +2 -2
- package/highlevel/methods/forums/reorder-pinned-forum-topics.js +3 -3
- package/highlevel/methods/forums/toggle-forum-topic-closed.cjs +2 -2
- package/highlevel/methods/forums/toggle-forum-topic-closed.js +3 -3
- package/highlevel/methods/forums/toggle-forum-topic-pinned.cjs +2 -2
- package/highlevel/methods/forums/toggle-forum-topic-pinned.js +3 -3
- package/highlevel/methods.d.cts +3 -0
- package/highlevel/methods.d.ts +3 -0
- package/highlevel/types/premium/star-gift.cjs +5 -1
- package/highlevel/types/premium/star-gift.d.cts +3 -1
- package/highlevel/types/premium/star-gift.d.ts +3 -1
- package/highlevel/types/premium/star-gift.js +5 -1
- package/methods.cjs +5 -0
- package/methods.js +6 -1
- package/network/network-manager.cjs +1 -1
- package/network/network-manager.js +1 -1
- package/package.json +1 -1
|
@@ -27,13 +27,17 @@ class StarGift {
|
|
|
27
27
|
return this.raw.requirePremium;
|
|
28
28
|
}
|
|
29
29
|
/** If this gift is currently sold through an auction, info about that auction. `null` otherwise */
|
|
30
|
-
get
|
|
30
|
+
get auction() {
|
|
31
31
|
if (!this.raw.auctionSlug || this.raw.giftsPerRound == null) return null;
|
|
32
32
|
return {
|
|
33
33
|
slug: this.raw.auctionSlug,
|
|
34
34
|
giftsPerRound: this.raw.giftsPerRound
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
+
/** @deprecated Use {@link auction} instead (typo in older versions) */
|
|
38
|
+
get action() {
|
|
39
|
+
return this.auction;
|
|
40
|
+
}
|
|
37
41
|
/** Whether this gift includes a peer color that can be applied to user's profile */
|
|
38
42
|
get hasPeerColor() {
|
|
39
43
|
return this.raw.peerColorAvailable;
|
package/methods.cjs
CHANGED
|
@@ -87,6 +87,7 @@ const addContact = require("./highlevel/methods/contacts/add-contact.cjs");
|
|
|
87
87
|
const deleteContacts = require("./highlevel/methods/contacts/delete-contacts.cjs");
|
|
88
88
|
const getContacts = require("./highlevel/methods/contacts/get-contacts.cjs");
|
|
89
89
|
const importContacts = require("./highlevel/methods/contacts/import-contacts.cjs");
|
|
90
|
+
const setContactNote = require("./highlevel/methods/contacts/set-contact-note.cjs");
|
|
90
91
|
const createFolder = require("./highlevel/methods/dialogs/create-folder.cjs");
|
|
91
92
|
const deleteFolder = require("./highlevel/methods/dialogs/delete-folder.cjs");
|
|
92
93
|
const editFolder = require("./highlevel/methods/dialogs/edit-folder.cjs");
|
|
@@ -99,6 +100,7 @@ const iterDialogs = require("./highlevel/methods/dialogs/iter-dialogs.cjs");
|
|
|
99
100
|
const joinChatlist = require("./highlevel/methods/dialogs/join-chatlist.cjs");
|
|
100
101
|
const setFoldersOrder = require("./highlevel/methods/dialogs/set-folders-order.cjs");
|
|
101
102
|
const downloadBuffer = require("./highlevel/methods/files/download-buffer.cjs");
|
|
103
|
+
const downloadChunk = require("./highlevel/methods/files/download-chunk.cjs");
|
|
102
104
|
const downloadIterable = require("./highlevel/methods/files/download-iterable.cjs");
|
|
103
105
|
const downloadStream = require("./highlevel/methods/files/download-stream.cjs");
|
|
104
106
|
const normalizeInputFile = require("./highlevel/methods/files/normalize-input-file.cjs");
|
|
@@ -362,6 +364,7 @@ exports.addContact = addContact.addContact;
|
|
|
362
364
|
exports.deleteContacts = deleteContacts.deleteContacts;
|
|
363
365
|
exports.getContacts = getContacts.getContacts;
|
|
364
366
|
exports.importContacts = importContacts.importContacts;
|
|
367
|
+
exports.setContactNote = setContactNote.setContactNote;
|
|
365
368
|
exports.createFolder = createFolder.createFolder;
|
|
366
369
|
exports.deleteFolder = deleteFolder.deleteFolder;
|
|
367
370
|
exports.editFolder = editFolder.editFolder;
|
|
@@ -374,6 +377,8 @@ exports.iterDialogs = iterDialogs.iterDialogs;
|
|
|
374
377
|
exports.joinChatlist = joinChatlist.joinChatlist;
|
|
375
378
|
exports.setFoldersOrder = setFoldersOrder.setFoldersOrder;
|
|
376
379
|
exports.downloadAsBuffer = downloadBuffer.downloadAsBuffer;
|
|
380
|
+
exports.downloadChunk = downloadChunk.downloadChunk;
|
|
381
|
+
exports._normalizeFileDownloadLocation = downloadIterable._normalizeFileDownloadLocation;
|
|
377
382
|
exports.downloadAsIterable = downloadIterable.downloadAsIterable;
|
|
378
383
|
exports.downloadAsStream = downloadStream.downloadAsStream;
|
|
379
384
|
exports._normalizeInputFile = normalizeInputFile._normalizeInputFile;
|
package/methods.js
CHANGED
|
@@ -80,6 +80,7 @@ import { addContact } from "./highlevel/methods/contacts/add-contact.js";
|
|
|
80
80
|
import { deleteContacts } from "./highlevel/methods/contacts/delete-contacts.js";
|
|
81
81
|
import { getContacts } from "./highlevel/methods/contacts/get-contacts.js";
|
|
82
82
|
import { importContacts } from "./highlevel/methods/contacts/import-contacts.js";
|
|
83
|
+
import { setContactNote } from "./highlevel/methods/contacts/set-contact-note.js";
|
|
83
84
|
import { createFolder } from "./highlevel/methods/dialogs/create-folder.js";
|
|
84
85
|
import { deleteFolder } from "./highlevel/methods/dialogs/delete-folder.js";
|
|
85
86
|
import { editFolder } from "./highlevel/methods/dialogs/edit-folder.js";
|
|
@@ -92,7 +93,8 @@ import { iterDialogs } from "./highlevel/methods/dialogs/iter-dialogs.js";
|
|
|
92
93
|
import { joinChatlist } from "./highlevel/methods/dialogs/join-chatlist.js";
|
|
93
94
|
import { setFoldersOrder } from "./highlevel/methods/dialogs/set-folders-order.js";
|
|
94
95
|
import { downloadAsBuffer } from "./highlevel/methods/files/download-buffer.js";
|
|
95
|
-
import {
|
|
96
|
+
import { downloadChunk } from "./highlevel/methods/files/download-chunk.js";
|
|
97
|
+
import { _normalizeFileDownloadLocation, downloadAsIterable } from "./highlevel/methods/files/download-iterable.js";
|
|
96
98
|
import { downloadAsStream } from "./highlevel/methods/files/download-stream.js";
|
|
97
99
|
import { _normalizeInputFile } from "./highlevel/methods/files/normalize-input-file.js";
|
|
98
100
|
import { _normalizeInputMedia } from "./highlevel/methods/files/normalize-input-media.js";
|
|
@@ -270,6 +272,7 @@ import { sendOnline, setOnline } from "./highlevel/methods/users/set-online.js";
|
|
|
270
272
|
import { unblockUser } from "./highlevel/methods/users/unblock-user.js";
|
|
271
273
|
import { updateProfile } from "./highlevel/methods/users/update-profile.js";
|
|
272
274
|
export {
|
|
275
|
+
_normalizeFileDownloadLocation,
|
|
273
276
|
_normalizeInputFile,
|
|
274
277
|
_normalizeInputMedia,
|
|
275
278
|
_normalizeInputStarGift,
|
|
@@ -328,6 +331,7 @@ export {
|
|
|
328
331
|
downloadAsBuffer,
|
|
329
332
|
downloadAsIterable,
|
|
330
333
|
downloadAsStream,
|
|
334
|
+
downloadChunk,
|
|
331
335
|
editAdminRights,
|
|
332
336
|
editBusinessChatLink,
|
|
333
337
|
editCloseFriends,
|
|
@@ -519,6 +523,7 @@ export {
|
|
|
519
523
|
setChatTitle,
|
|
520
524
|
setChatTtl,
|
|
521
525
|
setChatUsername,
|
|
526
|
+
setContactNote,
|
|
522
527
|
setEmojiStatus,
|
|
523
528
|
setFoldersOrder,
|
|
524
529
|
setGameScore,
|