@robinpath/brevo 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/README.md +113 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,113 @@
1
+ # @robinpath/brevo
2
+
3
+ > Brevo module for RobinPath.
4
+
5
+ ![Category](https://img.shields.io/badge/category-Email-marketing-blue) ![Functions](https://img.shields.io/badge/functions-19-green) ![Auth](https://img.shields.io/badge/auth-API%20Key-orange) ![License](https://img.shields.io/badge/license-MIT-brightgreen)
6
+
7
+ ## Why use this module?
8
+
9
+ The `brevo` module lets you:
10
+
11
+ - sendTransactionalEmail
12
+ - sendTransactionalSms
13
+ - listContacts
14
+ - getContact
15
+ - createContact
16
+
17
+ All functions are callable directly from RobinPath scripts with a simple, consistent API.
18
+
19
+ ## Installation
20
+
21
+ ```bash
22
+ npm install @robinpath/brevo
23
+ ```
24
+
25
+ ## Quick Start
26
+
27
+ **1. Set up credentials**
28
+
29
+ ```robinpath
30
+ brevo.setCredentials "your-credentials"
31
+ ```
32
+
33
+ **2. sendTransactionalEmail**
34
+
35
+ ```robinpath
36
+ brevo.sendTransactionalEmail
37
+ ```
38
+
39
+ ## Available Functions
40
+
41
+ | Function | Description |
42
+ |----------|-------------|
43
+ | `brevo.setCredentials` | Configure brevo credentials. |
44
+ | `brevo.sendTransactionalEmail` | sendTransactionalEmail |
45
+ | `brevo.sendTransactionalSms` | sendTransactionalSms |
46
+ | `brevo.listContacts` | listContacts |
47
+ | `brevo.getContact` | getContact |
48
+ | `brevo.createContact` | createContact |
49
+ | `brevo.updateContact` | updateContact |
50
+ | `brevo.deleteContact` | deleteContact |
51
+ | `brevo.listLists` | listLists |
52
+ | `brevo.getList` | getList |
53
+ | `brevo.createList` | createList |
54
+ | `brevo.addContactToList` | addContactToList |
55
+ | `brevo.removeContactFromList` | removeContactFromList |
56
+ | `brevo.listCampaigns` | listCampaigns |
57
+ | `brevo.getCampaign` | getCampaign |
58
+ | `brevo.createEmailCampaign` | createEmailCampaign |
59
+ | `brevo.sendCampaign` | sendCampaign |
60
+ | `brevo.getEmailEvents` | getEmailEvents |
61
+ | `brevo.importContacts` | importContacts |
62
+
63
+ ## Examples
64
+
65
+ ### sendTransactionalEmail
66
+
67
+ ```robinpath
68
+ brevo.sendTransactionalEmail
69
+ ```
70
+
71
+ ### sendTransactionalSms
72
+
73
+ ```robinpath
74
+ brevo.sendTransactionalSms
75
+ ```
76
+
77
+ ### listContacts
78
+
79
+ ```robinpath
80
+ brevo.listContacts
81
+ ```
82
+
83
+ ## Integration with RobinPath
84
+
85
+ ```typescript
86
+ import { RobinPath } from "@wiredwp/robinpath";
87
+ import Module from "@robinpath/brevo";
88
+
89
+ const rp = new RobinPath();
90
+ rp.registerModule(Module.name, Module.functions);
91
+ rp.registerModuleMeta(Module.name, Module.functionMetadata);
92
+
93
+ const result = await rp.executeScript(`
94
+ brevo.setCredentials "your-credentials"
95
+ brevo.sendTransactionalEmail
96
+ `);
97
+ ```
98
+
99
+ ## Full API Reference
100
+
101
+ See [MODULE.md](./MODULE.md) for complete documentation including all parameters, return types, error handling, and advanced examples.
102
+
103
+ ## Related Modules
104
+
105
+ - [`@robinpath/activecampaign`](../activecampaign) — ActiveCampaign module for complementary functionality
106
+ - [`@robinpath/convertkit`](../convertkit) — Convertkit module for complementary functionality
107
+ - [`@robinpath/mailchimp`](../mailchimp) — Mailchimp module for complementary functionality
108
+ - [`@robinpath/sendgrid`](../sendgrid) — SendGrid module for complementary functionality
109
+ - [`@robinpath/lemlist`](../lemlist) — Lemlist module for complementary functionality
110
+
111
+ ## License
112
+
113
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robinpath/brevo",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },