@raphaelvserafim/client-api-whatsapp 1.0.0 → 1.0.2

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/README.md CHANGED
@@ -27,11 +27,16 @@
27
27
  - **Website:** [https://api-wa.me](https://api-wa.me)
28
28
 
29
29
  ## Installation
30
-
31
30
  ```bash
32
- ```
31
+ npm i @raphaelvserafim/client-api-whatsapp
32
+ ```
33
+ ```bash
34
+ yarn add @raphaelvserafim/client-api-whatsapp
35
+ ```
33
36
 
34
37
  ```js
38
+ import WhatsApp from '@raphaelvserafim/client-api-whatsapp';
39
+
35
40
  const whatsapp = new WhatsApp({ server: "https://us.api-wa.me", key: "12345678" });
36
41
  const to = "559999999999" // If you want to send it to the group = 123456789@us
37
42
  ```
@@ -0,0 +1,2 @@
1
+ export { TypeMessage, Init, StatusPresence, Contact, Location } from './model';
2
+ export { WhatsApp } from './WhatsApp';
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WhatsApp = exports.StatusPresence = exports.TypeMessage = void 0;
4
+ var model_1 = require("./model");
5
+ Object.defineProperty(exports, "TypeMessage", { enumerable: true, get: function () { return model_1.TypeMessage; } });
6
+ Object.defineProperty(exports, "StatusPresence", { enumerable: true, get: function () { return model_1.StatusPresence; } });
7
+ var WhatsApp_1 = require("./WhatsApp");
8
+ Object.defineProperty(exports, "WhatsApp", { enumerable: true, get: function () { return WhatsApp_1.WhatsApp; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,iCAA+E;AAAtE,oGAAA,WAAW,OAAA;AAAQ,uGAAA,cAAc,OAAA;AAC1C,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA","sourcesContent":["export { TypeMessage, Init, StatusPresence, Contact, Location } from './model';\nexport { WhatsApp } from './WhatsApp';"]}
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@raphaelvserafim/client-api-whatsapp",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "With our API, you can send text, audio, video, and image messages quickly and easily. Adapt to your business communication needs comprehensively.",
5
- "main": "dist/WhatsApp.js",
6
- "types": "dist/WhatsApp.d.ts",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
7
  "private": false,
8
8
  "keywords": [
9
9
  "api",
package/src/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { TypeMessage, Init, StatusPresence, Contact, Location } from './model';
2
+ export { WhatsApp } from './WhatsApp';