@brighthustle/adonisjs-whatsapp
Advanced tools
Comparing version 1.0.5-10 to 1.0.5-11
@@ -6,2 +6,1 @@ import './src/types/extended.js'; | ||
export { default as whatsapp } from './src/whatsapp.js'; | ||
export { BaseWhatsapp } from './src/base_whatsapp.js'; |
@@ -14,2 +14,1 @@ /* | ||
export { default as whatsapp } from './src/whatsapp.js'; | ||
export { BaseWhatsapp } from './src/base_whatsapp.js'; |
@@ -1,3 +0,3 @@ | ||
import Whatsapp from '../src/whatsapp.js'; | ||
declare let whatsapp: Whatsapp; | ||
import { WhatsappService } from '../src/types/main.js'; | ||
declare let whatsapp: WhatsappService; | ||
export { whatsapp as default }; |
@@ -1,25 +0,6 @@ | ||
import Whatsapp from '../whatsapp.js'; | ||
import { WhatsAppMessageContract, WhatsAppStatusContract } from './main.js'; | ||
import { WhatsappService } from './main.js'; | ||
declare module '@adonisjs/core/types' { | ||
interface ContainerBindings { | ||
whatsapp: Whatsapp; | ||
whatsapp: WhatsappService; | ||
} | ||
interface EventsList { | ||
'wa:message:text': WhatsAppMessageContract; | ||
'wa:message:image': WhatsAppMessageContract; | ||
'wa:message:document': WhatsAppMessageContract; | ||
'wa:message:audio': WhatsAppMessageContract; | ||
'wa:message:video': WhatsAppMessageContract; | ||
'wa:message:sticker': WhatsAppMessageContract; | ||
'wa:message:location': WhatsAppMessageContract; | ||
'wa:message:contacts': WhatsAppMessageContract; | ||
'wa:message:button': WhatsAppMessageContract; | ||
'wa:message:list': WhatsAppMessageContract; | ||
'wa:message:*': WhatsAppMessageContract; | ||
'wa:status:sent': WhatsAppStatusContract; | ||
'wa:status:delivered': WhatsAppStatusContract; | ||
'wa:status:read': WhatsAppStatusContract; | ||
'wa:status:*': WhatsAppStatusContract; | ||
'wa:*': WhatsAppMessageContract | WhatsAppStatusContract; | ||
} | ||
} |
@@ -199,4 +199,2 @@ import Whatsapp from '../whatsapp.js'; | ||
} | ||
export interface WhatsappService extends Whatsapp { | ||
} | ||
export interface WhatsAppConfig { | ||
@@ -212,1 +210,25 @@ webhookRoute: string; | ||
} | ||
export type EventsList = { | ||
'wa:message:text': WhatsAppMessageContract; | ||
'wa:message:image': WhatsAppMessageContract; | ||
'wa:message:document': WhatsAppMessageContract; | ||
'wa:message:audio': WhatsAppMessageContract; | ||
'wa:message:video': WhatsAppMessageContract; | ||
'wa:message:sticker': WhatsAppMessageContract; | ||
'wa:message:location': WhatsAppMessageContract; | ||
'wa:message:contacts': WhatsAppMessageContract; | ||
'wa:message:button': WhatsAppMessageContract; | ||
'wa:message:list': WhatsAppMessageContract; | ||
'wa:message:*': WhatsAppMessageContract; | ||
'wa:status:sent': WhatsAppStatusContract; | ||
'wa:status:delivered': WhatsAppStatusContract; | ||
'wa:status:read': WhatsAppStatusContract; | ||
'wa:status:*': WhatsAppStatusContract; | ||
'wa:*': WhatsAppMessageContract | WhatsAppStatusContract; | ||
}; | ||
/** | ||
* Redis service is a singleton redis instance registered | ||
* with the container based upon user defined config | ||
*/ | ||
export interface WhatsappService extends Whatsapp<WhatsAppConfig> { | ||
} |
@@ -1,2 +0,2 @@ | ||
import { ButtonsOptions, ComponentOptions, ContactOptions, CoordinateOptions, DocumentOptions, DownloadOptions, GetMessageTemplatesQueryParams, InteractiveOptions, LocationOptions, MediaOptions, SectionOptions, TemplateCategory, TemplateComponent, TextOptions, WhatsAppConfig, WhatsAppResultContract, WhatsAppTemplateResultContract } from './types/main.js'; | ||
import { ButtonsOptions, ComponentOptions, ContactOptions, CoordinateOptions, DocumentOptions, DownloadOptions, GetMessageTemplatesQueryParams, InteractiveOptions, LocationOptions, MediaOptions, SectionOptions, TemplateCategory, TemplateComponent, TextOptions, WhatsAppResultContract, WhatsAppTemplateResultContract } from './types/main.js'; | ||
import { Emitter } from '@adonisjs/core/events'; | ||
@@ -13,3 +13,3 @@ export type WhatsAppResult = { | ||
}; | ||
declare class Whatsapp { | ||
declare class Whatsapp<WhatsAppConfig> { | ||
#private; | ||
@@ -16,0 +16,0 @@ emitter: Emitter<any>; |
{ | ||
"name": "@brighthustle/adonisjs-whatsapp", | ||
"description": "Connect your WhatsApp Cloud API with AdonisJS", | ||
"version": "1.0.5-10", | ||
"version": "1.0.5-11", | ||
"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
39589
27
916