@natyapp/meta 1.3.1 → 1.4.1
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/dist/Entities/Logs.d.ts +16 -16
- package/dist/Entities/Logs.js +13 -13
- package/dist/Entities/connection.d.ts +15 -15
- package/dist/Entities/connection.js +13 -13
- package/dist/Entities/errorLogs.d.ts +9 -9
- package/dist/Entities/errorLogs.js +13 -13
- package/dist/Entities/index.d.ts +5 -5
- package/dist/Entities/index.js +21 -21
- package/dist/Entities/messages.d.ts +9 -9
- package/dist/Entities/messages.js +13 -13
- package/dist/Entities/webhooks.d.ts +17 -17
- package/dist/Entities/webhooks.js +13 -13
- package/dist/Entities/whatsappMessage.d.ts +63 -63
- package/dist/Entities/whatsappMessage.js +9 -9
- package/dist/Errors/Either.d.ts +15 -15
- package/dist/Errors/Either.js +37 -37
- package/dist/Errors/ErrorHandling.d.ts +10 -10
- package/dist/Errors/ErrorHandling.js +15 -15
- package/dist/Errors/index.d.ts +2 -2
- package/dist/Errors/index.js +18 -18
- package/dist/configs/axiosInterceptors.d.ts +7 -7
- package/dist/configs/axiosInterceptors.js +10 -10
- package/dist/elements/button.d.ts +18 -18
- package/dist/elements/button.js +11 -11
- package/dist/elements/image.d.ts +9 -9
- package/dist/elements/image.js +12 -12
- package/dist/elements/index.d.ts +3 -3
- package/dist/elements/index.js +19 -19
- package/dist/elements/list.d.ts +78 -78
- package/dist/elements/list.js +55 -55
- package/dist/elements/text.d.ts +12 -12
- package/dist/elements/text.js +13 -13
- package/dist/index.d.ts +8 -8
- package/dist/index.js +44 -44
- package/dist/interfaces/IConnection.d.ts +13 -13
- package/dist/interfaces/IConnection.js +2 -2
- package/dist/interfaces/IEventsMessage.d.ts +2 -2
- package/dist/interfaces/IEventsMessage.js +2 -2
- package/dist/interfaces/ILog.d.ts +10 -10
- package/dist/interfaces/ILog.js +2 -2
- package/dist/interfaces/IMessage.d.ts +22 -22
- package/dist/interfaces/IMessage.js +2 -2
- package/dist/interfaces/ISdk.d.ts +16 -16
- package/dist/interfaces/ISdk.js +2 -2
- package/dist/interfaces/IWebhook.d.ts +14 -14
- package/dist/interfaces/IWebhook.js +2 -2
- package/dist/interfaces/index.d.ts +5 -5
- package/dist/interfaces/index.js +21 -21
- package/dist/queue/messageQueue.d.ts +11 -11
- package/dist/queue/messageQueue.js +20 -20
- package/dist/routes/index.d.ts +3 -3
- package/dist/routes/index.js +11 -11
- package/dist/routes/webhooks/index.d.ts +3 -3
- package/dist/routes/webhooks/index.js +13 -13
- package/dist/routes/webhooks/methods/connection.d.ts +3 -3
- package/dist/routes/webhooks/methods/connection.js +42 -41
- package/dist/routes/webhooks/methods/messages.d.ts +3 -3
- package/dist/routes/webhooks/methods/messages.js +21 -21
- package/dist/services/axiosInstances.d.ts +18 -18
- package/dist/services/axiosInstances.js +45 -45
- package/dist/services/index.d.ts +3 -3
- package/dist/services/index.js +19 -19
- package/dist/services/middlewares/index.d.ts +1 -1
- package/dist/services/middlewares/index.js +5 -5
- package/dist/services/middlewares/validations.d.ts +4 -4
- package/dist/services/middlewares/validations.js +8 -8
- package/dist/services/mutations/connection.d.ts +2 -2
- package/dist/services/mutations/connection.js +49 -49
- package/dist/services/mutations/index.d.ts +3 -3
- package/dist/services/mutations/index.js +19 -19
- package/dist/services/mutations/logs.d.ts +2 -2
- package/dist/services/mutations/logs.js +25 -25
- package/dist/services/mutations/messages.d.ts +2 -2
- package/dist/services/mutations/messages.js +25 -25
- package/dist/services/mutations/validation.d.ts +5 -5
- package/dist/services/mutations/validation.js +15 -15
- package/dist/services/mutations/webhooks.d.ts +2 -2
- package/dist/services/mutations/webhooks.js +49 -49
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.js +19 -19
- package/dist/types/logs.d.ts +5 -5
- package/dist/types/logs.js +2 -2
- package/dist/types/requestTypes.d.ts +11 -11
- package/dist/types/requestTypes.js +2 -2
- package/dist/types/whatsappTypes.d.ts +68 -68
- package/dist/types/whatsappTypes.js +2 -2
- package/dist/ui/Button.d.ts +27 -27
- package/dist/ui/Button.js +95 -95
- package/dist/useCases/cadastroIncorporado/cadastroIncorporado.d.ts +1 -1
- package/dist/useCases/cadastroIncorporado/cadastroIncorporado.js +7 -7
- package/dist/useCases/connection/index.d.ts +15 -15
- package/dist/useCases/connection/index.js +16 -16
- package/dist/useCases/events/NatyEvents.d.ts +35 -35
- package/dist/useCases/events/NatyEvents.js +13 -13
- package/dist/useCases/index.d.ts +6 -6
- package/dist/useCases/index.js +16 -16
- package/dist/useCases/log/index.d.ts +10 -10
- package/dist/useCases/log/index.js +12 -12
- package/dist/useCases/message/index.d.ts +9 -9
- package/dist/useCases/message/index.js +6 -6
- package/dist/useCases/message/whatsappResponse.d.ts +62 -62
- package/dist/useCases/message/whatsappResponse.js +405 -403
- package/dist/useCases/messages/index.d.ts +10 -10
- package/dist/useCases/messages/index.js +12 -12
- package/dist/useCases/sdk/index.d.ts +19 -19
- package/dist/useCases/sdk/index.js +48 -48
- package/dist/useCases/webhook/index.d.ts +15 -15
- package/dist/useCases/webhook/index.js +16 -16
- package/dist/utils/constants.d.ts +11 -11
- package/dist/utils/constants.js +17 -17
- package/dist/utils/genUuid.d.ts +1 -1
- package/dist/utils/genUuid.js +16 -16
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +17 -17
- package/dist/utils/tryCatch.d.ts +1 -1
- package/dist/utils/tryCatch.js +19 -19
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.NatyEvents = void 0;
|
|
7
|
-
const events_1 = __importDefault(require("events"));
|
|
8
|
-
class NatyEvents extends events_1.default {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.NatyEvents = NatyEvents;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.NatyEvents = void 0;
|
|
7
|
+
const events_1 = __importDefault(require("events"));
|
|
8
|
+
class NatyEvents extends events_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.NatyEvents = NatyEvents;
|
package/dist/useCases/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NatyMeta } from "./sdk";
|
|
2
|
-
import Connection from "./connection";
|
|
3
|
-
import Message from "./message";
|
|
4
|
-
import Webhook from "./webhook";
|
|
5
|
-
import Log from "./log";
|
|
6
|
-
export { NatyMeta, Connection, Message, Webhook, Log };
|
|
1
|
+
import { NatyMeta } from "./sdk";
|
|
2
|
+
import Connection from "./connection";
|
|
3
|
+
import Message from "./message";
|
|
4
|
+
import Webhook from "./webhook";
|
|
5
|
+
import Log from "./log";
|
|
6
|
+
export { NatyMeta, Connection, Message, Webhook, Log };
|
package/dist/useCases/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Log = exports.Webhook = exports.Message = exports.Connection = exports.NatyMeta = void 0;
|
|
7
|
-
const sdk_1 = require("./sdk");
|
|
8
|
-
Object.defineProperty(exports, "NatyMeta", { enumerable: true, get: function () { return sdk_1.NatyMeta; } });
|
|
9
|
-
const connection_1 = __importDefault(require("./connection"));
|
|
10
|
-
exports.Connection = connection_1.default;
|
|
11
|
-
const message_1 = __importDefault(require("./message"));
|
|
12
|
-
exports.Message = message_1.default;
|
|
13
|
-
const webhook_1 = __importDefault(require("./webhook"));
|
|
14
|
-
exports.Webhook = webhook_1.default;
|
|
15
|
-
const log_1 = __importDefault(require("./log"));
|
|
16
|
-
exports.Log = log_1.default;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Log = exports.Webhook = exports.Message = exports.Connection = exports.NatyMeta = void 0;
|
|
7
|
+
const sdk_1 = require("./sdk");
|
|
8
|
+
Object.defineProperty(exports, "NatyMeta", { enumerable: true, get: function () { return sdk_1.NatyMeta; } });
|
|
9
|
+
const connection_1 = __importDefault(require("./connection"));
|
|
10
|
+
exports.Connection = connection_1.default;
|
|
11
|
+
const message_1 = __importDefault(require("./message"));
|
|
12
|
+
exports.Message = message_1.default;
|
|
13
|
+
const webhook_1 = __importDefault(require("./webhook"));
|
|
14
|
+
exports.Webhook = webhook_1.default;
|
|
15
|
+
const log_1 = __importDefault(require("./log"));
|
|
16
|
+
exports.Log = log_1.default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { LogsEntity } from "../../Entities/Logs";
|
|
2
|
-
import { Response } from "../../Errors";
|
|
3
|
-
import { getAllProps, getAllReturn } from "../../types/requestTypes";
|
|
4
|
-
declare class Logs {
|
|
5
|
-
getSingle: (id: string) => Promise<Response<"", LogsEntity>>;
|
|
6
|
-
getAll: (props: getAllProps) => Promise<Response<"", getAllReturn<LogsEntity>>>;
|
|
7
|
-
searchOne: (key: string, value: string) => Promise<Response<"", LogsEntity>>;
|
|
8
|
-
}
|
|
9
|
-
declare const _default: Logs;
|
|
10
|
-
export default _default;
|
|
1
|
+
import { LogsEntity } from "../../Entities/Logs";
|
|
2
|
+
import { Response } from "../../Errors";
|
|
3
|
+
import { getAllProps, getAllReturn } from "../../types/requestTypes";
|
|
4
|
+
declare class Logs {
|
|
5
|
+
getSingle: (id: string) => Promise<Response<"", LogsEntity>>;
|
|
6
|
+
getAll: (props: getAllProps) => Promise<Response<"", getAllReturn<LogsEntity>>>;
|
|
7
|
+
searchOne: (key: string, value: string) => Promise<Response<"", LogsEntity>>;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: Logs;
|
|
10
|
+
export default _default;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const services_1 = require("../../services");
|
|
4
|
-
const utils_1 = require("../../utils");
|
|
5
|
-
class Logs {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.getSingle = (id) => (0, utils_1.Try)(services_1.logsMutations.getSingle, id);
|
|
8
|
-
this.getAll = (props) => (0, utils_1.Try)(services_1.logsMutations.getAll, props);
|
|
9
|
-
this.searchOne = (key, value) => (0, utils_1.Try)(services_1.logsMutations.searchOne, key, value);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.default = new Logs();
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const services_1 = require("../../services");
|
|
4
|
+
const utils_1 = require("../../utils");
|
|
5
|
+
class Logs {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.getSingle = (id) => (0, utils_1.Try)(services_1.logsMutations.getSingle, id);
|
|
8
|
+
this.getAll = (props) => (0, utils_1.Try)(services_1.logsMutations.getAll, props);
|
|
9
|
+
this.searchOne = (key, value) => (0, utils_1.Try)(services_1.logsMutations.searchOne, key, value);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.default = new Logs();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Button } from "../../elements/button";
|
|
2
|
-
import { List } from "../../elements/list";
|
|
3
|
-
import { Text } from "../../elements/text";
|
|
4
|
-
declare const _default: {
|
|
5
|
-
Button: typeof Button;
|
|
6
|
-
List: typeof List;
|
|
7
|
-
Text: typeof Text;
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
1
|
+
import { Button } from "../../elements/button";
|
|
2
|
+
import { List } from "../../elements/list";
|
|
3
|
+
import { Text } from "../../elements/text";
|
|
4
|
+
declare const _default: {
|
|
5
|
+
Button: typeof Button;
|
|
6
|
+
List: typeof List;
|
|
7
|
+
Text: typeof Text;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const button_1 = require("../../elements/button");
|
|
4
|
-
const list_1 = require("../../elements/list");
|
|
5
|
-
const text_1 = require("../../elements/text");
|
|
6
|
-
exports.default = { Button: button_1.Button, List: list_1.List, Text: text_1.Text };
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const button_1 = require("../../elements/button");
|
|
4
|
+
const list_1 = require("../../elements/list");
|
|
5
|
+
const text_1 = require("../../elements/text");
|
|
6
|
+
exports.default = { Button: button_1.Button, List: list_1.List, Text: text_1.Text };
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { WhatsappMessage } from "../../Entities/whatsappMessage";
|
|
2
|
-
import { Button } from "../../elements/button";
|
|
3
|
-
import { List } from "../../elements/list";
|
|
4
|
-
import { contactType } from "../../types/whatsappTypes";
|
|
5
|
-
import { getAllReturn } from "../../types";
|
|
6
|
-
import { MessageEntity } from "../../Entities/messages";
|
|
7
|
-
import { connectionEvent } from "../events/NatyEvents";
|
|
8
|
-
import { ISendMessageReturn } from "../../interfaces";
|
|
9
|
-
export declare class WhatsappResponse {
|
|
10
|
-
companyId: string;
|
|
11
|
-
phone_number_id: string;
|
|
12
|
-
clientNumber: string;
|
|
13
|
-
message?: WhatsappMessage | undefined;
|
|
14
|
-
messageId: string | undefined;
|
|
15
|
-
messageType: string;
|
|
16
|
-
private apiCall;
|
|
17
|
-
token: string;
|
|
18
|
-
constructor(companyId: string, phone_number_id: string, clientNumber?: string, message?: WhatsappMessage | undefined);
|
|
19
|
-
private getApiInstanceToken;
|
|
20
|
-
updateClientNumber(clientNumber: string): Promise<void>;
|
|
21
|
-
get_account_info(): Promise<connectionEvent["accountInfo"] | null>;
|
|
22
|
-
get_old_messages({ page, size, }: {
|
|
23
|
-
page: number;
|
|
24
|
-
size: number;
|
|
25
|
-
}): Promise<getAllReturn<MessageEntity> | null>;
|
|
26
|
-
send_text_message(text: string): Promise<ISendMessageReturn | null>;
|
|
27
|
-
send_button(btn: Button): Promise<ISendMessageReturn | null>;
|
|
28
|
-
send_list(list: List): Promise<ISendMessageReturn | null>;
|
|
29
|
-
reply({ type, toReply, messageToReply, }: {
|
|
30
|
-
type: "text" | "interactive";
|
|
31
|
-
toReply: string | Button | List;
|
|
32
|
-
messageToReply?: string;
|
|
33
|
-
}): Promise<ISendMessageReturn | null>;
|
|
34
|
-
mark_as_read(): Promise<boolean>;
|
|
35
|
-
send_reaction(emoji?: string): Promise<ISendMessageReturn | null>;
|
|
36
|
-
send_location({ long, lat, name, address, }: {
|
|
37
|
-
long?: number;
|
|
38
|
-
lat?: number;
|
|
39
|
-
name: string;
|
|
40
|
-
address: string;
|
|
41
|
-
}): Promise<ISendMessageReturn | null>;
|
|
42
|
-
send_contacts(contacts: contactType[]): Promise<ISendMessageReturn | null>;
|
|
43
|
-
createMedia(stream: string, fileType: string): Promise<any>;
|
|
44
|
-
sendLink(link: string, linkType: "image" | "document" | "audio" | "video" | "sticker", linkData?: {
|
|
45
|
-
caption?: string;
|
|
46
|
-
filename?: string;
|
|
47
|
-
}): Promise<ISendMessageReturn | null>;
|
|
48
|
-
send_image(stream: string, filetype: "image/jpeg" | "image/png" | "link", fileData: {
|
|
49
|
-
description: string;
|
|
50
|
-
}): Promise<ISendMessageReturn | null>;
|
|
51
|
-
send_document(stream: string, filetype: "text/plain" | "application/pdf" | "application/vnd.ms-powerpoint" | "application/msword" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "link", fileData: {
|
|
52
|
-
fileName: string;
|
|
53
|
-
description: string;
|
|
54
|
-
}): Promise<ISendMessageReturn | null>;
|
|
55
|
-
send_video(stream: string, filetype: "video/mp4" | "video/3gp" | "link", fileData: {
|
|
56
|
-
description: string;
|
|
57
|
-
}): Promise<ISendMessageReturn | null>;
|
|
58
|
-
send_sticker(stream: string, filetype: "image/webp" | "link"): Promise<ISendMessageReturn | null>;
|
|
59
|
-
send_audio(stream: string, filetype: "audio/aac" | "audio/mp4" | "audio/mpeg" | "audio/amr" | "audio/ogg" | "link"): Promise<ISendMessageReturn | null>;
|
|
60
|
-
download_media(url: string, mimetype: string): Promise<any>;
|
|
61
|
-
get_media_url(media_id: string): Promise<any>;
|
|
62
|
-
}
|
|
1
|
+
import { WhatsappMessage } from "../../Entities/whatsappMessage";
|
|
2
|
+
import { Button } from "../../elements/button";
|
|
3
|
+
import { List } from "../../elements/list";
|
|
4
|
+
import { contactType } from "../../types/whatsappTypes";
|
|
5
|
+
import { getAllReturn } from "../../types";
|
|
6
|
+
import { MessageEntity } from "../../Entities/messages";
|
|
7
|
+
import { connectionEvent } from "../events/NatyEvents";
|
|
8
|
+
import { ISendMessageReturn } from "../../interfaces";
|
|
9
|
+
export declare class WhatsappResponse {
|
|
10
|
+
companyId: string;
|
|
11
|
+
phone_number_id: string;
|
|
12
|
+
clientNumber: string;
|
|
13
|
+
message?: WhatsappMessage | undefined;
|
|
14
|
+
messageId: string | undefined;
|
|
15
|
+
messageType: string;
|
|
16
|
+
private apiCall;
|
|
17
|
+
token: string;
|
|
18
|
+
constructor(companyId: string, phone_number_id: string, clientNumber?: string, message?: WhatsappMessage | undefined);
|
|
19
|
+
private getApiInstanceToken;
|
|
20
|
+
updateClientNumber(clientNumber: string): Promise<void>;
|
|
21
|
+
get_account_info(): Promise<connectionEvent["accountInfo"] | null>;
|
|
22
|
+
get_old_messages({ page, size, }: {
|
|
23
|
+
page: number;
|
|
24
|
+
size: number;
|
|
25
|
+
}): Promise<getAllReturn<MessageEntity> | null>;
|
|
26
|
+
send_text_message(text: string): Promise<ISendMessageReturn | null>;
|
|
27
|
+
send_button(btn: Button): Promise<ISendMessageReturn | null>;
|
|
28
|
+
send_list(list: List): Promise<ISendMessageReturn | null>;
|
|
29
|
+
reply({ type, toReply, messageToReply, }: {
|
|
30
|
+
type: "text" | "interactive";
|
|
31
|
+
toReply: string | Button | List;
|
|
32
|
+
messageToReply?: string;
|
|
33
|
+
}): Promise<ISendMessageReturn | null>;
|
|
34
|
+
mark_as_read(): Promise<boolean>;
|
|
35
|
+
send_reaction(emoji?: string): Promise<ISendMessageReturn | null>;
|
|
36
|
+
send_location({ long, lat, name, address, }: {
|
|
37
|
+
long?: number;
|
|
38
|
+
lat?: number;
|
|
39
|
+
name: string;
|
|
40
|
+
address: string;
|
|
41
|
+
}): Promise<ISendMessageReturn | null>;
|
|
42
|
+
send_contacts(contacts: contactType[]): Promise<ISendMessageReturn | null>;
|
|
43
|
+
createMedia(stream: string, fileType: string): Promise<any>;
|
|
44
|
+
sendLink(link: string, linkType: "image" | "document" | "audio" | "video" | "sticker", linkData?: {
|
|
45
|
+
caption?: string;
|
|
46
|
+
filename?: string;
|
|
47
|
+
}): Promise<ISendMessageReturn | null>;
|
|
48
|
+
send_image(stream: string, filetype: "image/jpeg" | "image/png" | "link", fileData: {
|
|
49
|
+
description: string;
|
|
50
|
+
}): Promise<ISendMessageReturn | null>;
|
|
51
|
+
send_document(stream: string, filetype: "text/plain" | "application/pdf" | "application/vnd.ms-powerpoint" | "application/msword" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "link", fileData: {
|
|
52
|
+
fileName: string;
|
|
53
|
+
description: string;
|
|
54
|
+
}): Promise<ISendMessageReturn | null>;
|
|
55
|
+
send_video(stream: string, filetype: "video/mp4" | "video/3gp" | "link", fileData: {
|
|
56
|
+
description: string;
|
|
57
|
+
}): Promise<ISendMessageReturn | null>;
|
|
58
|
+
send_sticker(stream: string, filetype: "image/webp" | "link"): Promise<ISendMessageReturn | null>;
|
|
59
|
+
send_audio(stream: string, filetype: "audio/aac" | "audio/mp4" | "audio/mpeg" | "audio/amr" | "audio/ogg" | "link"): Promise<ISendMessageReturn | null>;
|
|
60
|
+
download_media(url: string, mimetype: string): Promise<any>;
|
|
61
|
+
get_media_url(media_id: string): Promise<any>;
|
|
62
|
+
}
|