mailchannels-sdk 0.4.0 → 0.4.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/LICENSE +21 -21
- package/README.md +180 -175
- package/dist/mailchannels.d.mts +2 -2
- package/dist/mailchannels.d.ts +2 -2
- package/dist/mailchannels.mjs +3 -0
- package/dist/modules.d.mts +1 -1
- package/dist/modules.d.ts +1 -1
- package/dist/modules.mjs +175 -4
- package/dist/shared/{mailchannels-sdk.DUD1k4jz.d.mts → mailchannels-sdk.ug4M5nbx.d.mts} +1156 -966
- package/dist/shared/{mailchannels-sdk.DUD1k4jz.d.ts → mailchannels-sdk.ug4M5nbx.d.ts} +1156 -966
- package/package.json +18 -19
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Yizack Rangel
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Yizack Rangel
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,175 +1,180 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
|
-
# MailChannels
|
|
4
|
-
|
|
5
|
-
[![npm version][npm-version-src]][npm-version-href]
|
|
6
|
-
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
7
|
-
[![codecov][codecov-coverage-src]][codecov-coverage-href]
|
|
8
|
-
|
|
9
|
-
Node.js SDK to integrate [MailChannels API](https://docs.mailchannels.net/) into your JavaScript or TypeScript server-side applications.
|
|
10
|
-
|
|
11
|
-
<!-- #region overview -->
|
|
12
|
-
This library provides a simple way to interact with the [MailChannels API](https://docs.mailchannels.net/). It is written in TypeScript and can be used in both JavaScript and TypeScript projects and in different runtimes.
|
|
13
|
-
<!-- #endregion overview -->
|
|
14
|
-
|
|
15
|
-
<!-- #region note -->
|
|
16
|
-
> [!NOTE]
|
|
17
|
-
> This library is NOT officially maintained by [MailChannels Corporation](https://mailchannels.com/).
|
|
18
|
-
<!-- #endregion note -->
|
|
19
|
-
|
|
20
|
-
- [✨ Release Notes](CHANGELOG.md)
|
|
21
|
-
- [📖 Documentation](https://mailchannels.yizack.com)
|
|
22
|
-
|
|
23
|
-
## Contents
|
|
24
|
-
|
|
25
|
-
- 🚀 [Features](#features)
|
|
26
|
-
- 📏 [Requirements](#requirements)
|
|
27
|
-
- 🏃 [Quick setup](#quick-setup)
|
|
28
|
-
- 🚧 [Roadmap](#roadmap)
|
|
29
|
-
- ⚖️ [License](#license)
|
|
30
|
-
- 💻 [Development](#development)
|
|
31
|
-
|
|
32
|
-
## <a name="features">🚀 Features</a>
|
|
33
|
-
|
|
34
|
-
- Send transactional emails
|
|
35
|
-
- Check DKIM, SPF & Domain Lockdown
|
|
36
|
-
- Webhook notifications
|
|
37
|
-
- Manage sub-accounts
|
|
38
|
-
-
|
|
39
|
-
- Manage
|
|
40
|
-
- Manage
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
-
|
|
77
|
-
- ✅ [
|
|
78
|
-
- ✅ [
|
|
79
|
-
- ✅ [
|
|
80
|
-
- ✅ [
|
|
81
|
-
|
|
82
|
-
-
|
|
83
|
-
- ✅ [
|
|
84
|
-
- ✅ [
|
|
85
|
-
- ✅ [
|
|
86
|
-
- ✅ [
|
|
87
|
-
|
|
88
|
-
- ✅ [Create Sub-account
|
|
89
|
-
- ✅ [
|
|
90
|
-
- ✅ [
|
|
91
|
-
- ✅ [
|
|
92
|
-
- ✅ [
|
|
93
|
-
- ✅ [
|
|
94
|
-
- ✅ [
|
|
95
|
-
- ✅ [
|
|
96
|
-
- ✅ [
|
|
97
|
-
- ✅ [
|
|
98
|
-
-
|
|
99
|
-
- ✅ [Retrieve
|
|
100
|
-
- ✅ [
|
|
101
|
-
- ✅ [
|
|
102
|
-
- ✅ [Retrieve Usage Stats](https://docs.mailchannels.net/email-api/api-reference/retrieve-usage-stats)
|
|
103
|
-
|
|
104
|
-
-
|
|
105
|
-
- ✅ [
|
|
106
|
-
- ✅ [
|
|
107
|
-
- ✅ [Retrieve
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
-
|
|
112
|
-
- ✅ [
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
- ✅ [
|
|
118
|
-
- ✅ [
|
|
119
|
-
- ✅ [
|
|
120
|
-
-
|
|
121
|
-
- ✅ [
|
|
122
|
-
- ✅ [
|
|
123
|
-
- ✅ [
|
|
124
|
-
-
|
|
125
|
-
- ✅ [
|
|
126
|
-
- ✅ [
|
|
127
|
-
- ✅ [
|
|
128
|
-
-
|
|
129
|
-
|
|
130
|
-
- ✅ [Add item to
|
|
131
|
-
- ✅ [
|
|
132
|
-
- ✅ [
|
|
133
|
-
-
|
|
134
|
-
- ✅ [
|
|
135
|
-
- ✅ [
|
|
136
|
-
- ✅ [Get
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
[
|
|
175
|
-
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# MailChannels
|
|
4
|
+
|
|
5
|
+
[![npm version][npm-version-src]][npm-version-href]
|
|
6
|
+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
7
|
+
[![codecov][codecov-coverage-src]][codecov-coverage-href]
|
|
8
|
+
|
|
9
|
+
Node.js SDK to integrate [MailChannels API](https://docs.mailchannels.net/) into your JavaScript or TypeScript server-side applications.
|
|
10
|
+
|
|
11
|
+
<!-- #region overview -->
|
|
12
|
+
This library provides a simple way to interact with the [MailChannels API](https://docs.mailchannels.net/). It is written in TypeScript and can be used in both JavaScript and TypeScript projects and in different runtimes.
|
|
13
|
+
<!-- #endregion overview -->
|
|
14
|
+
|
|
15
|
+
<!-- #region note -->
|
|
16
|
+
> [!NOTE]
|
|
17
|
+
> This library is NOT officially maintained by [MailChannels Corporation](https://mailchannels.com/).
|
|
18
|
+
<!-- #endregion note -->
|
|
19
|
+
|
|
20
|
+
- [✨ Release Notes](CHANGELOG.md)
|
|
21
|
+
- [📖 Documentation](https://mailchannels.yizack.com)
|
|
22
|
+
|
|
23
|
+
## Contents
|
|
24
|
+
|
|
25
|
+
- 🚀 [Features](#features)
|
|
26
|
+
- 📏 [Requirements](#requirements)
|
|
27
|
+
- 🏃 [Quick setup](#quick-setup)
|
|
28
|
+
- 🚧 [Roadmap](#roadmap)
|
|
29
|
+
- ⚖️ [License](#license)
|
|
30
|
+
- 💻 [Development](#development)
|
|
31
|
+
|
|
32
|
+
## <a name="features">🚀 Features</a>
|
|
33
|
+
|
|
34
|
+
- Send transactional emails
|
|
35
|
+
- Check DKIM, SPF & Domain Lockdown
|
|
36
|
+
- Webhook notifications
|
|
37
|
+
- Manage sub-accounts
|
|
38
|
+
- Retrieve metrics
|
|
39
|
+
- Manage suppressions
|
|
40
|
+
- Manage inbound domains
|
|
41
|
+
- Manage account lists
|
|
42
|
+
- Manage recipient lists
|
|
43
|
+
|
|
44
|
+
## <a name="requirements">📏 Requirements</a>
|
|
45
|
+
|
|
46
|
+
- MailChannels account
|
|
47
|
+
- Email API key
|
|
48
|
+
|
|
49
|
+
## <a name="quick-setup">🏃 Quick setup</a>
|
|
50
|
+
|
|
51
|
+
1. Add `mailchannels-sdk` dependency to your project
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
# npm
|
|
55
|
+
npm i mailchannels-sdk
|
|
56
|
+
|
|
57
|
+
# yarn
|
|
58
|
+
yarn add mailchannels-sdk
|
|
59
|
+
|
|
60
|
+
# pnpm
|
|
61
|
+
pnpm add mailchannels-sdk
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## <a name="license">⚖️ License</a>
|
|
65
|
+
|
|
66
|
+
[MIT License](LICENSE)
|
|
67
|
+
|
|
68
|
+
<!-- #region roadmap -->
|
|
69
|
+
## <a name="roadmap">🚧 Roadmap</a>
|
|
70
|
+
|
|
71
|
+
Already implemented features are marked with a checkmark. Please open an issue if you find any bugs or missing features.
|
|
72
|
+
|
|
73
|
+
### [Email API](https://docs.mailchannels.net/email-api/api-reference/email-api)
|
|
74
|
+
|
|
75
|
+
- 📧 Emails
|
|
76
|
+
- ✅ [Send an Email](https://docs.mailchannels.net/email-api/api-reference/send-an-email)
|
|
77
|
+
- ✅ [DKIM, SPF & Domain Lockdown Check](https://docs.mailchannels.net/email-api/api-reference/dkim-spf-domain-lockdown-check)
|
|
78
|
+
- ✅ [Create DKIM Key Pair](https://docs.mailchannels.net/email-api/api-reference/create-dkim-key-pair)
|
|
79
|
+
- ✅ [Retrieve DKIM Keys](https://docs.mailchannels.net/email-api/api-reference/retrieve-dkim-keys)
|
|
80
|
+
- ✅ [Update DKIM Key Status](https://docs.mailchannels.net/email-api/api-reference/update-dkim-key-status)
|
|
81
|
+
- 📢 Webhooks
|
|
82
|
+
- ✅ [Enroll for Webhook Notifications](https://docs.mailchannels.net/email-api/api-reference/enroll-for-webhook-notifications)
|
|
83
|
+
- ✅ [Retrieve Customer Webhooks](https://docs.mailchannels.net/email-api/api-reference/retrieve-customer-webhooks)
|
|
84
|
+
- ✅ [Delete Customer Webhooks](https://docs.mailchannels.net/email-api/api-reference/delete-customer-webhooks)
|
|
85
|
+
- ✅ [Retrieve Webhook Signing Key](https://docs.mailchannels.net/email-api/api-reference/retrieve-webhook-signing-key)
|
|
86
|
+
- ✅ [Validate Enrolled Webhook](https://docs.mailchannels.net/email-api/api-reference/validate-enrolled-webhook)
|
|
87
|
+
- 🪪 Sub-accounts
|
|
88
|
+
- ✅ [Create Sub-account](https://docs.mailchannels.net/email-api/api-reference/create-sub-account)
|
|
89
|
+
- ✅ [Retrieve Sub-accounts](https://docs.mailchannels.net/email-api/api-reference/retrieve-sub-accounts)
|
|
90
|
+
- ✅ [Delete Sub-account](https://docs.mailchannels.net/email-api/api-reference/delete-sub-account)
|
|
91
|
+
- ✅ [Suspend Sub-account](https://docs.mailchannels.net/email-api/api-reference/suspend-sub-account)
|
|
92
|
+
- ✅ [Activate Sub-account](https://docs.mailchannels.net/email-api/api-reference/activate-sub-account)
|
|
93
|
+
- ✅ [Create Sub-account API Key](https://docs.mailchannels.net/email-api/api-reference/create-sub-account-api-key)
|
|
94
|
+
- ✅ [Delete Sub-account API Key](https://docs.mailchannels.net/email-api/api-reference/delete-sub-account-api-key)
|
|
95
|
+
- ✅ [Retrieve Sub-account API Keys](https://docs.mailchannels.net/email-api/api-reference/retrieve-sub-account-api-keys)
|
|
96
|
+
- ✅ [Create Sub-account SMTP Password](https://docs.mailchannels.net/email-api/api-reference/create-sub-account-smtp-password)
|
|
97
|
+
- ✅ [Delete Sub-account SMTP Password](https://docs.mailchannels.net/email-api/api-reference/delete-sub-account-smtp-password)
|
|
98
|
+
- ✅ [Retrieve Sub-account SMTP Passwords](https://docs.mailchannels.net/email-api/api-reference/retrieve-sub-account-smtp-passwords)
|
|
99
|
+
- ✅ [Retrieve Sub-account Limit](https://docs.mailchannels.net/email-api/api-reference/retrieve-sub-account-limit)
|
|
100
|
+
- ✅ [Set Sub-account Limit](https://docs.mailchannels.net/email-api/api-reference/set-sub-account-limit)
|
|
101
|
+
- ✅ [Delete Sub-account Limit](https://docs.mailchannels.net/email-api/api-reference/delete-sub-account-limit)
|
|
102
|
+
- ✅ [Retrieve Sub-account Usage Stats](https://docs.mailchannels.net/email-api/api-reference/retrieve-sub-account-usage-stats)
|
|
103
|
+
- 📊 Metrics
|
|
104
|
+
- ✅ [Retrieve Engagement Metrics](https://docs.mailchannels.net/email-api/api-reference/retrieve-engagement-metrics)
|
|
105
|
+
- ✅ [Retrieve Performance Metrics](https://docs.mailchannels.net/email-api/api-reference/retrieve-performance-metrics)
|
|
106
|
+
- ✅ [Retrieve Recipient Behaviour Metrics](https://docs.mailchannels.net/email-api/api-reference/retrieve-recipient-behaviour-metrics)
|
|
107
|
+
- ✅ [Retrieve Usage Stats](https://docs.mailchannels.net/email-api/api-reference/retrieve-usage-stats)
|
|
108
|
+
- ✅ [Retrieve Volume Metrics](https://docs.mailchannels.net/email-api/api-reference/retrieve-volume-metrics)
|
|
109
|
+
- 🚫 Suppressions
|
|
110
|
+
- ✅ [Create Suppression Entries](https://docs.mailchannels.net/email-api/api-reference/create-suppression-entries)
|
|
111
|
+
- ✅ [Delete Suppression Entry](https://docs.mailchannels.net/email-api/api-reference/delete-suppression-entry)
|
|
112
|
+
- ✅ [Retrieve Suppression List](https://docs.mailchannels.net/email-api/api-reference/retrieve-suppression-list)
|
|
113
|
+
|
|
114
|
+
### [Inbound API](https://docs.mailchannels.net/inbound-api/API-reference/inbound-api)
|
|
115
|
+
|
|
116
|
+
- 🌐 Domains
|
|
117
|
+
- ✅ [Provision domain](https://docs.mailchannels.net/inbound-api/API-reference/provision-domain)
|
|
118
|
+
- ✅ [Remove domain](https://docs.mailchannels.net/inbound-api/API-reference/remove-domain)
|
|
119
|
+
- ✅ [List domains](https://docs.mailchannels.net/inbound-api/API-reference/list-domains)
|
|
120
|
+
- ✅ [Bulk provision domains](https://docs.mailchannels.net/inbound-api/API-reference/bulk-provision-domains)
|
|
121
|
+
- ✅ [Add domain list entry](https://docs.mailchannels.net/inbound-api/API-reference/add-domain-list-entry)
|
|
122
|
+
- ✅ [Get domain list entries](https://docs.mailchannels.net/inbound-api/API-reference/get-domain-list-entries)
|
|
123
|
+
- ✅ [Delete domain list entry](https://docs.mailchannels.net/inbound-api/API-reference/delete-domain-list-entry)
|
|
124
|
+
- ✅ [Create login link](https://docs.mailchannels.net/inbound-api/API-reference/create-login-link)
|
|
125
|
+
- ✅ [Bulk create login links](https://docs.mailchannels.net/inbound-api/API-reference/bulk-create-login-links)
|
|
126
|
+
- ✅ [Set downstream address](https://docs.mailchannels.net/inbound-api/API-reference/set-downstream-address)
|
|
127
|
+
- ✅ [Fetch downstream addresses](https://docs.mailchannels.net/inbound-api/API-reference/fetch-downstream-addresses)
|
|
128
|
+
- ✅ [Update API key](https://docs.mailchannels.net/inbound-api/API-reference/update-api-key)
|
|
129
|
+
- 📋 Lists
|
|
130
|
+
- ✅ [Add item to customer list](https://docs.mailchannels.net/inbound-api/API-reference/add-item-to-customer-list)
|
|
131
|
+
- ✅ [Delete item from customer list](https://docs.mailchannels.net/inbound-api/API-reference/delete-item-from-customer-list)
|
|
132
|
+
- ✅ [Get customer list entries](https://docs.mailchannels.net/inbound-api/API-reference/get-customer-list-entries)
|
|
133
|
+
- 📥 Users
|
|
134
|
+
- ✅ [Create a recipient](https://docs.mailchannels.net/inbound-api/API-reference/create-a-recipient)
|
|
135
|
+
- ✅ [Add item to recipient list](https://docs.mailchannels.net/inbound-api/API-reference/add-item-to-recipient-list)
|
|
136
|
+
- ✅ [Get recipient list entries](https://docs.mailchannels.net/inbound-api/API-reference/get-recipient-list-entries)
|
|
137
|
+
- ✅ [Delete item from recipient list](https://docs.mailchannels.net/inbound-api/API-reference/delete-item-from-recipient-list)
|
|
138
|
+
- ⚙️ Service
|
|
139
|
+
- ✅ [Retrieve the condition of the service](https://docs.mailchannels.net/inbound-api/API-reference/retrieve-the-condition-of-the-service)
|
|
140
|
+
- ✅ [Submit a false negative or false positive report](https://docs.mailchannels.net/inbound-api/API-reference/submit-a-false-negative-or-false-positive-report)
|
|
141
|
+
- ✅ [Get a list of your subscriptions to MailChannels Inbound](https://docs.mailchannels.net/inbound-api/API-reference/get-a-list-of-your-subscriptions-to-mail-channels-inbound)
|
|
142
|
+
<!-- #endregion roadmap -->
|
|
143
|
+
|
|
144
|
+
## <a name="development">💻 Development</a>
|
|
145
|
+
|
|
146
|
+
<details>
|
|
147
|
+
<summary>Local development</summary>
|
|
148
|
+
|
|
149
|
+
```sh
|
|
150
|
+
# Install dependencies
|
|
151
|
+
pnpm install
|
|
152
|
+
|
|
153
|
+
# Build the package
|
|
154
|
+
npm run build
|
|
155
|
+
|
|
156
|
+
# Run ESLint
|
|
157
|
+
npm run lint
|
|
158
|
+
|
|
159
|
+
# Run Vitest
|
|
160
|
+
npm run test
|
|
161
|
+
npm run test:watch
|
|
162
|
+
|
|
163
|
+
# Run typecheck
|
|
164
|
+
npm run test:types
|
|
165
|
+
|
|
166
|
+
# Release new version
|
|
167
|
+
npm run release
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
</details>
|
|
171
|
+
|
|
172
|
+
<!-- Badges -->
|
|
173
|
+
[npm-version-src]: https://img.shields.io/npm/v/mailchannels-sdk.svg?style=flat&colorA=070a30&colorB=35a047
|
|
174
|
+
[npm-version-href]: https://npmjs.com/package/mailchannels-sdk
|
|
175
|
+
|
|
176
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/mailchannels-sdk.svg?style=flat&colorA=070a30&colorB=35a047
|
|
177
|
+
[npm-downloads-href]: https://npmjs.com/package/mailchannels-sdk
|
|
178
|
+
|
|
179
|
+
[codecov-coverage-src]: https://img.shields.io/codecov/c/github/yizack/mailchannels?style=flat&colorA=070a30&token=HTSBRHSJ5M
|
|
180
|
+
[codecov-coverage-href]: https://codecov.io/gh/Yizack/mailchannels
|
package/dist/mailchannels.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as MailChannelsClient, E as Emails, W as Webhooks, S as SubAccounts, a as Metrics, b as Suppressions, D as Domains, L as Lists, U as Users, c as Service } from './shared/mailchannels-sdk.
|
|
2
|
-
export {
|
|
1
|
+
import { M as MailChannelsClient, E as Emails, W as Webhooks, S as SubAccounts, a as Metrics, b as Suppressions, D as Domains, L as Lists, U as Users, c as Service } from './shared/mailchannels-sdk.ug4M5nbx.mjs';
|
|
2
|
+
export { ai as DomainsBulkCreateLoginLinkResult, aj as DomainsBulkCreateLoginLinks, ak as DomainsBulkCreateLoginLinksResponse, a9 as DomainsBulkProvisionOptions, ab as DomainsBulkProvisionResponse, ae as DomainsCreateLoginLinkResponse, a7 as DomainsData, ag as DomainsDownstreamAddress, af as DomainsListDownstreamAddressesOptions, ah as DomainsListDownstreamAddressesResponse, ac as DomainsListOptions, ad as DomainsListResponse, a8 as DomainsProvisionOptions, aa as DomainsProvisionResponse, j as EmailsCheckDomainDkim, k as EmailsCheckDomainOptions, m as EmailsCheckDomainResponse, l as EmailsCheckDomainVerdict, n as EmailsCreateDkimKeyOptions, p as EmailsCreateDkimKeyResponse, o as EmailsDkimKey, q as EmailsGetDkimKeysOptions, r as EmailsGetDkimKeysResponse, e as EmailsSendAttachment, h as EmailsSendOptions, g as EmailsSendOptionsBase, d as EmailsSendRecipient, i as EmailsSendResponse, f as EmailsSendTracking, s as EmailsUpdateDkimKeyOptions, ap as ListEntriesResponse, an as ListEntry, am as ListEntryOptions, ao as ListEntryResponse, al as ListNames, P as MetricsBucket, R as MetricsEngagement, T as MetricsEngagementResponse, Q as MetricsOptions, V as MetricsPerformance, X as MetricsPerformanceResponse, Y as MetricsRecipientBehaviour, Z as MetricsRecipientBehaviourResponse, a0 as MetricsUsageResponse, _ as MetricsVolume, $ as MetricsVolumeResponse, O as Optional, at as ServiceReportOptions, as as ServiceSubscriptionsResponse, w as SubAccountsAccount, A as SubAccountsApiKey, B as SubAccountsCreateApiKeyResponse, x as SubAccountsCreateResponse, G as SubAccountsCreateSmtpPasswordResponse, I as SubAccountsLimit, J as SubAccountsLimitResponse, C as SubAccountsListApiKeyResponse, y as SubAccountsListOptions, z as SubAccountsListResponse, H as SubAccountsListSmtpPasswordResponse, F as SubAccountsSmtpPassword, K as SubAccountsUsage, N as SubAccountsUsageResponse, au as SuccessResponse, a2 as SuppressionsCreateOptions, a5 as SuppressionsListEntry, a4 as SuppressionsListOptions, a6 as SuppressionsListResponse, a3 as SuppressionsSource, a1 as SuppressionsTypes, aq as UsersCreateOptions, ar as UsersCreateResponse, t as WebhooksListResponse, u as WebhooksSigningKeyResponse, v as WebhooksValidateResponse } from './shared/mailchannels-sdk.ug4M5nbx.mjs';
|
|
3
3
|
import 'ofetch';
|
|
4
4
|
|
|
5
5
|
declare class MailChannels extends MailChannelsClient {
|
package/dist/mailchannels.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as MailChannelsClient, E as Emails, W as Webhooks, S as SubAccounts, a as Metrics, b as Suppressions, D as Domains, L as Lists, U as Users, c as Service } from './shared/mailchannels-sdk.
|
|
2
|
-
export {
|
|
1
|
+
import { M as MailChannelsClient, E as Emails, W as Webhooks, S as SubAccounts, a as Metrics, b as Suppressions, D as Domains, L as Lists, U as Users, c as Service } from './shared/mailchannels-sdk.ug4M5nbx.js';
|
|
2
|
+
export { ai as DomainsBulkCreateLoginLinkResult, aj as DomainsBulkCreateLoginLinks, ak as DomainsBulkCreateLoginLinksResponse, a9 as DomainsBulkProvisionOptions, ab as DomainsBulkProvisionResponse, ae as DomainsCreateLoginLinkResponse, a7 as DomainsData, ag as DomainsDownstreamAddress, af as DomainsListDownstreamAddressesOptions, ah as DomainsListDownstreamAddressesResponse, ac as DomainsListOptions, ad as DomainsListResponse, a8 as DomainsProvisionOptions, aa as DomainsProvisionResponse, j as EmailsCheckDomainDkim, k as EmailsCheckDomainOptions, m as EmailsCheckDomainResponse, l as EmailsCheckDomainVerdict, n as EmailsCreateDkimKeyOptions, p as EmailsCreateDkimKeyResponse, o as EmailsDkimKey, q as EmailsGetDkimKeysOptions, r as EmailsGetDkimKeysResponse, e as EmailsSendAttachment, h as EmailsSendOptions, g as EmailsSendOptionsBase, d as EmailsSendRecipient, i as EmailsSendResponse, f as EmailsSendTracking, s as EmailsUpdateDkimKeyOptions, ap as ListEntriesResponse, an as ListEntry, am as ListEntryOptions, ao as ListEntryResponse, al as ListNames, P as MetricsBucket, R as MetricsEngagement, T as MetricsEngagementResponse, Q as MetricsOptions, V as MetricsPerformance, X as MetricsPerformanceResponse, Y as MetricsRecipientBehaviour, Z as MetricsRecipientBehaviourResponse, a0 as MetricsUsageResponse, _ as MetricsVolume, $ as MetricsVolumeResponse, O as Optional, at as ServiceReportOptions, as as ServiceSubscriptionsResponse, w as SubAccountsAccount, A as SubAccountsApiKey, B as SubAccountsCreateApiKeyResponse, x as SubAccountsCreateResponse, G as SubAccountsCreateSmtpPasswordResponse, I as SubAccountsLimit, J as SubAccountsLimitResponse, C as SubAccountsListApiKeyResponse, y as SubAccountsListOptions, z as SubAccountsListResponse, H as SubAccountsListSmtpPasswordResponse, F as SubAccountsSmtpPassword, K as SubAccountsUsage, N as SubAccountsUsageResponse, au as SuccessResponse, a2 as SuppressionsCreateOptions, a5 as SuppressionsListEntry, a4 as SuppressionsListOptions, a6 as SuppressionsListResponse, a3 as SuppressionsSource, a1 as SuppressionsTypes, aq as UsersCreateOptions, ar as UsersCreateResponse, t as WebhooksListResponse, u as WebhooksSigningKeyResponse, v as WebhooksValidateResponse } from './shared/mailchannels-sdk.ug4M5nbx.js';
|
|
3
3
|
import 'ofetch';
|
|
4
4
|
|
|
5
5
|
declare class MailChannels extends MailChannelsClient {
|
package/dist/mailchannels.mjs
CHANGED
|
@@ -36,6 +36,9 @@ class MailChannelsClient {
|
|
|
36
36
|
async put(path, options) {
|
|
37
37
|
return this._fetch(path, { method: "PUT", ...options });
|
|
38
38
|
}
|
|
39
|
+
async patch(path, options) {
|
|
40
|
+
return this._fetch(path, { method: "PATCH", ...options });
|
|
41
|
+
}
|
|
39
42
|
}
|
|
40
43
|
|
|
41
44
|
class MailChannels extends MailChannelsClient {
|
package/dist/modules.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { D as Domains,
|
|
1
|
+
export { D as Domains, ai as DomainsBulkCreateLoginLinkResult, aj as DomainsBulkCreateLoginLinks, ak as DomainsBulkCreateLoginLinksResponse, a9 as DomainsBulkProvisionOptions, ab as DomainsBulkProvisionResponse, ae as DomainsCreateLoginLinkResponse, a7 as DomainsData, ag as DomainsDownstreamAddress, af as DomainsListDownstreamAddressesOptions, ah as DomainsListDownstreamAddressesResponse, ac as DomainsListOptions, ad as DomainsListResponse, a8 as DomainsProvisionOptions, aa as DomainsProvisionResponse, E as Emails, j as EmailsCheckDomainDkim, k as EmailsCheckDomainOptions, m as EmailsCheckDomainResponse, l as EmailsCheckDomainVerdict, n as EmailsCreateDkimKeyOptions, p as EmailsCreateDkimKeyResponse, o as EmailsDkimKey, q as EmailsGetDkimKeysOptions, r as EmailsGetDkimKeysResponse, e as EmailsSendAttachment, h as EmailsSendOptions, g as EmailsSendOptionsBase, d as EmailsSendRecipient, i as EmailsSendResponse, f as EmailsSendTracking, s as EmailsUpdateDkimKeyOptions, ap as ListEntriesResponse, an as ListEntry, am as ListEntryOptions, ao as ListEntryResponse, al as ListNames, L as Lists, a as Metrics, P as MetricsBucket, R as MetricsEngagement, T as MetricsEngagementResponse, Q as MetricsOptions, V as MetricsPerformance, X as MetricsPerformanceResponse, Y as MetricsRecipientBehaviour, Z as MetricsRecipientBehaviourResponse, a0 as MetricsUsageResponse, _ as MetricsVolume, $ as MetricsVolumeResponse, O as Optional, c as Service, at as ServiceReportOptions, as as ServiceSubscriptionsResponse, S as SubAccounts, w as SubAccountsAccount, A as SubAccountsApiKey, B as SubAccountsCreateApiKeyResponse, x as SubAccountsCreateResponse, G as SubAccountsCreateSmtpPasswordResponse, I as SubAccountsLimit, J as SubAccountsLimitResponse, C as SubAccountsListApiKeyResponse, y as SubAccountsListOptions, z as SubAccountsListResponse, H as SubAccountsListSmtpPasswordResponse, F as SubAccountsSmtpPassword, K as SubAccountsUsage, N as SubAccountsUsageResponse, au as SuccessResponse, b as Suppressions, a2 as SuppressionsCreateOptions, a5 as SuppressionsListEntry, a4 as SuppressionsListOptions, a6 as SuppressionsListResponse, a3 as SuppressionsSource, a1 as SuppressionsTypes, U as Users, aq as UsersCreateOptions, ar as UsersCreateResponse, W as Webhooks, t as WebhooksListResponse, u as WebhooksSigningKeyResponse, v as WebhooksValidateResponse } from './shared/mailchannels-sdk.ug4M5nbx.mjs';
|
|
2
2
|
import 'ofetch';
|
package/dist/modules.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { D as Domains,
|
|
1
|
+
export { D as Domains, ai as DomainsBulkCreateLoginLinkResult, aj as DomainsBulkCreateLoginLinks, ak as DomainsBulkCreateLoginLinksResponse, a9 as DomainsBulkProvisionOptions, ab as DomainsBulkProvisionResponse, ae as DomainsCreateLoginLinkResponse, a7 as DomainsData, ag as DomainsDownstreamAddress, af as DomainsListDownstreamAddressesOptions, ah as DomainsListDownstreamAddressesResponse, ac as DomainsListOptions, ad as DomainsListResponse, a8 as DomainsProvisionOptions, aa as DomainsProvisionResponse, E as Emails, j as EmailsCheckDomainDkim, k as EmailsCheckDomainOptions, m as EmailsCheckDomainResponse, l as EmailsCheckDomainVerdict, n as EmailsCreateDkimKeyOptions, p as EmailsCreateDkimKeyResponse, o as EmailsDkimKey, q as EmailsGetDkimKeysOptions, r as EmailsGetDkimKeysResponse, e as EmailsSendAttachment, h as EmailsSendOptions, g as EmailsSendOptionsBase, d as EmailsSendRecipient, i as EmailsSendResponse, f as EmailsSendTracking, s as EmailsUpdateDkimKeyOptions, ap as ListEntriesResponse, an as ListEntry, am as ListEntryOptions, ao as ListEntryResponse, al as ListNames, L as Lists, a as Metrics, P as MetricsBucket, R as MetricsEngagement, T as MetricsEngagementResponse, Q as MetricsOptions, V as MetricsPerformance, X as MetricsPerformanceResponse, Y as MetricsRecipientBehaviour, Z as MetricsRecipientBehaviourResponse, a0 as MetricsUsageResponse, _ as MetricsVolume, $ as MetricsVolumeResponse, O as Optional, c as Service, at as ServiceReportOptions, as as ServiceSubscriptionsResponse, S as SubAccounts, w as SubAccountsAccount, A as SubAccountsApiKey, B as SubAccountsCreateApiKeyResponse, x as SubAccountsCreateResponse, G as SubAccountsCreateSmtpPasswordResponse, I as SubAccountsLimit, J as SubAccountsLimitResponse, C as SubAccountsListApiKeyResponse, y as SubAccountsListOptions, z as SubAccountsListResponse, H as SubAccountsListSmtpPasswordResponse, F as SubAccountsSmtpPassword, K as SubAccountsUsage, N as SubAccountsUsageResponse, au as SuccessResponse, b as Suppressions, a2 as SuppressionsCreateOptions, a5 as SuppressionsListEntry, a4 as SuppressionsListOptions, a6 as SuppressionsListResponse, a3 as SuppressionsSource, a1 as SuppressionsTypes, U as Users, aq as UsersCreateOptions, ar as UsersCreateResponse, W as Webhooks, t as WebhooksListResponse, u as WebhooksSigningKeyResponse, v as WebhooksValidateResponse } from './shared/mailchannels-sdk.ug4M5nbx.js';
|
|
2
2
|
import 'ofetch';
|