You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

whatsapp-api-js

Package Overview
Dependencies
Maintainers
0
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

whatsapp-api-js - npm Package Compare versions

Comparing version

to
5.1.2

30

lib/types.d.ts

@@ -515,4 +515,12 @@ /**

body: string;
identity: string;
/**
* @deprecated Since v12.0 it is undefined, use `wa_id` instead.
*
* I'm actually stunned this exists, since I started the library with v13 or 14.
*/
new_wa_id: number | string;
type: string | "user_changed_number";
wa_id: string;
type: "customer_changed_number" | "customer_identity_changed" | string;
customer: string;
};

@@ -588,3 +596,3 @@ };

billable?: boolean;
category: ServerInitiation;
category: ServerInitiation | "authentication-international";
};

@@ -665,7 +673,7 @@ export type ServerConversation = {

export type NoServerError = {
error: never;
error?: never;
};
export type ServerSuccessResponse = {
success: true;
} | NoServerError;
} & NoServerError;
export type ServerSentMessageResponse = {

@@ -686,3 +694,3 @@ messaging_product: "whatsapp";

};
export type ServerMessageResponse = (ServerSentMessageResponse | NoServerError) | ServerErrorResponse;
export type ServerMessageResponse = (ServerSentMessageResponse & NoServerError) | ServerErrorResponse;
export type ServerMarkAsReadResponse = ServerSuccessResponse | ServerErrorResponse;

@@ -695,7 +703,7 @@ export type ServerQR = {

};
export type ServerCreateQRResponse = (ServerQR | NoServerError) | ServerErrorResponse;
export type ServerCreateQRResponse = (ServerQR & NoServerError) | ServerErrorResponse;
export type ServerRetrieveQRResponse = ({
data: ServerQR[];
} | NoServerError) | ServerErrorResponse;
export type ServerUpdateQRResponse = (ServerQR | NoServerError) | ServerErrorResponse;
} & NoServerError) | ServerErrorResponse;
export type ServerUpdateQRResponse = (ServerQR & NoServerError) | ServerErrorResponse;
export type ServerDeleteQRResponse = ServerSuccessResponse | ServerErrorResponse;

@@ -705,5 +713,5 @@ export type ServerMedia = {

};
export type ServerMediaUploadResponse = (ServerMedia | NoServerError) | ServerErrorResponse;
export type ServerMediaUploadResponse = (ServerMedia & NoServerError) | ServerErrorResponse;
export type ValidMimeTypes = "audio/aac" | "audio/mp4" | "audio/mpeg" | "audio/amr" | "audio/ogg" | "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" | "image/jpeg" | "image/png" | "video/mp4" | "video/3gp" | "image/webp";
export type ServerMediaRetrieveResponse = (({
export type ServerMediaRetrieveResponse = ({
messaging_product: "whatsapp";

@@ -714,4 +722,4 @@ url: string;

file_size: string;
} & ServerMedia) | NoServerError) | ServerErrorResponse;
} & ServerMedia & NoServerError) | ServerErrorResponse;
export type ServerMediaDeleteResponse = ServerSuccessResponse | ServerErrorResponse;
//# sourceMappingURL=types.d.ts.map
{
"name": "whatsapp-api-js",
"version": "5.1.1",
"version": "5.1.2",
"author": "Secreto31126",

@@ -5,0 +5,0 @@ "description": "A TypeScript server agnostic Whatsapp's Official API framework",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet