Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@brighthustle/adonisjs-whatsapp

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brighthustle/adonisjs-whatsapp - npm Package Compare versions

Comparing version 1.0.5-8 to 1.0.5-9

4

build/services/main.d.ts

@@ -1,3 +0,3 @@

import type { WhatsAppCloudApiService } from '../src/types/main.js';
declare let whatsapp: WhatsAppCloudApiService;
import type { WhatsappService } from '../src/types/main.js';
declare let whatsapp: WhatsappService;
export { whatsapp as default };

@@ -1,4 +0,4 @@

import { WhatsAppCloudApiService } from './types/main.js';
import { WhatsappService } from './types/main.js';
export declare abstract class BaseWhatsapp {
static mail: WhatsAppCloudApiService;
static mail: WhatsappService;
}

@@ -0,1 +1,2 @@

import Whatsapp from '../whatsapp.js';
export type TextOptions = {

@@ -198,23 +199,3 @@ preview_url?: boolean;

}
export interface WhatsAppCloudApiService {
sendText(to: number, text: string, options?: TextOptions): Promise<WhatsAppResultContract>;
sendImage(to: number, media: string, options?: MediaOptions): Promise<WhatsAppResultContract>;
sendDocument(to: number, media: string, options?: DocumentOptions): Promise<WhatsAppResultContract>;
sendAudio(to: number, media: string): Promise<WhatsAppResultContract>;
sendVideo(to: number, media: string, options?: MediaOptions): Promise<WhatsAppResultContract>;
sendSticker(to: number, media: string): Promise<WhatsAppResultContract>;
sendLocation(to: number, coordinate: CoordinateOptions, options?: LocationOptions): Promise<WhatsAppResultContract>;
sendTemplate(to: number, template: string, language: string, components: ComponentOptions[]): Promise<WhatsAppResultContract>;
sendContact(to: number, contacts: ContactOptions[]): Promise<WhatsAppResultContract>;
sendButtons(to: number, text: string, buttons: ButtonsOptions, options?: InteractiveOptions): Promise<WhatsAppResultContract>;
sendList(to: number, text: string, button: string, sections: SectionOptions[], options?: InteractiveOptions): Promise<WhatsAppResultContract>;
markAsRead(wamid: string): Promise<boolean>;
on(event: 'message:text' | 'message:image' | 'message:document' | 'message:audio' | 'message:video' | 'message:sticker' | 'message:location' | 'message:contacts' | 'message:button' | 'message:list' | 'message:*', handler: (message: WhatsAppMessageContract) => void): void;
on(event: 'status:sent' | 'status:delivered' | 'status:read' | 'status:*', handler: (message: WhatsAppStatusContract) => void): void;
on(event: '*', handler: (message: WhatsAppMessageContract | WhatsAppStatusContract) => void): void;
downloadMedia(media: string, options?: DownloadOptions): Promise<string | false>;
uploadMedia(source: string | any): Promise<string | false>;
createTemplate(category: TemplateCategory, name: string, language: string, components: TemplateComponent[]): Promise<WhatsAppTemplateResultContract>;
getTemplates(options?: GetMessageTemplatesQueryParams): Promise<any>;
deleteTemplate(name: string): Promise<any>;
export interface WhatsappService extends Whatsapp {
}

@@ -221,0 +202,0 @@ export interface WhatsAppConfig {

{
"name": "@brighthustle/adonisjs-whatsapp",
"description": "Connect your WhatsApp Cloud API with AdonisJS",
"version": "1.0.5-8",
"version": "1.0.5-9",
"main": "build/index.js",

@@ -6,0 +6,0 @@ "type": "module",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc