@brighthustle/adonisjs-whatsapp
Advanced tools
Comparing version 1.0.5-8 to 1.0.5-9
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39964
923