@maloma/listmonk 1.0.0 → 1.0.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.
- package/README.md +14 -8
- package/dist/index.d.ts +5917 -63
- package/dist/index.js +765 -14271
- package/dist/testing/index.d.ts +900 -38
- package/dist/testing/index.js +1 -5
- package/package.json +38 -59
- package/dist/chunk-saezhne8.js +0 -14
- package/dist/chunk-saezhne8.js.map +0 -9
- package/dist/client.d.ts +0 -430
- package/dist/errors/api.d.ts +0 -178
- package/dist/errors/base.d.ts +0 -47
- package/dist/errors/configuration.d.ts +0 -49
- package/dist/errors/index.d.ts +0 -13
- package/dist/errors/network.d.ts +0 -69
- package/dist/errors/validation.d.ts +0 -57
- package/dist/http/auth.d.ts +0 -39
- package/dist/http/client.d.ts +0 -149
- package/dist/http/hooks.d.ts +0 -90
- package/dist/http/index.d.ts +0 -10
- package/dist/http/resource.d.ts +0 -100
- package/dist/http/sse.d.ts +0 -36
- package/dist/http/url.d.ts +0 -51
- package/dist/index.js.map +0 -120
- package/dist/resources/admin/admin.d.ts +0 -92
- package/dist/resources/admin/index.d.ts +0 -10
- package/dist/resources/admin/schemas.d.ts +0 -23
- package/dist/resources/admin/types.d.ts +0 -29
- package/dist/resources/bounces/bounces.d.ts +0 -262
- package/dist/resources/bounces/index.d.ts +0 -10
- package/dist/resources/bounces/schemas.d.ts +0 -86
- package/dist/resources/bounces/types.d.ts +0 -37
- package/dist/resources/campaigns/campaigns.d.ts +0 -339
- package/dist/resources/campaigns/index.d.ts +0 -10
- package/dist/resources/campaigns/schemas.d.ts +0 -374
- package/dist/resources/campaigns/types.d.ts +0 -111
- package/dist/resources/dashboard/dashboard.d.ts +0 -73
- package/dist/resources/dashboard/index.d.ts +0 -10
- package/dist/resources/dashboard/schemas.d.ts +0 -55
- package/dist/resources/dashboard/types.d.ts +0 -22
- package/dist/resources/import/import.d.ts +0 -215
- package/dist/resources/import/index.d.ts +0 -10
- package/dist/resources/import/schemas.d.ts +0 -109
- package/dist/resources/import/types.d.ts +0 -72
- package/dist/resources/lists/index.d.ts +0 -10
- package/dist/resources/lists/lists.d.ts +0 -180
- package/dist/resources/lists/schemas.d.ts +0 -176
- package/dist/resources/lists/types.d.ts +0 -56
- package/dist/resources/maintenance/index.d.ts +0 -10
- package/dist/resources/maintenance/maintenance.d.ts +0 -92
- package/dist/resources/maintenance/schemas.d.ts +0 -36
- package/dist/resources/maintenance/types.d.ts +0 -31
- package/dist/resources/media/index.d.ts +0 -10
- package/dist/resources/media/media.d.ts +0 -198
- package/dist/resources/media/schemas.d.ts +0 -48
- package/dist/resources/media/types.d.ts +0 -48
- package/dist/resources/public/index.d.ts +0 -10
- package/dist/resources/public/public.d.ts +0 -111
- package/dist/resources/public/schemas.d.ts +0 -52
- package/dist/resources/public/types.d.ts +0 -30
- package/dist/resources/settings/index.d.ts +0 -10
- package/dist/resources/settings/schemas.d.ts +0 -374
- package/dist/resources/settings/settings.d.ts +0 -106
- package/dist/resources/settings/types.d.ts +0 -78
- package/dist/resources/subscribers/index.d.ts +0 -10
- package/dist/resources/subscribers/schemas.d.ts +0 -360
- package/dist/resources/subscribers/subscribers.d.ts +0 -308
- package/dist/resources/subscribers/types.d.ts +0 -113
- package/dist/resources/templates/index.d.ts +0 -10
- package/dist/resources/templates/schemas.d.ts +0 -110
- package/dist/resources/templates/templates.d.ts +0 -225
- package/dist/resources/templates/types.d.ts +0 -45
- package/dist/resources/tx/index.d.ts +0 -10
- package/dist/resources/tx/schemas.d.ts +0 -67
- package/dist/resources/tx/tx.d.ts +0 -167
- package/dist/resources/tx/types.d.ts +0 -88
- package/dist/schemas/common.d.ts +0 -48
- package/dist/schemas/index.d.ts +0 -6
- package/dist/testing/errors.d.ts +0 -25
- package/dist/testing/factories/bounce.d.ts +0 -43
- package/dist/testing/factories/campaign.d.ts +0 -43
- package/dist/testing/factories/common.d.ts +0 -54
- package/dist/testing/factories/index.d.ts +0 -12
- package/dist/testing/factories/list.d.ts +0 -43
- package/dist/testing/factories/media.d.ts +0 -40
- package/dist/testing/factories/subscriber.d.ts +0 -43
- package/dist/testing/factories/template.d.ts +0 -40
- package/dist/testing/index.js.map +0 -32
- package/dist/testing/mock-client.d.ts +0 -119
- package/dist/testing/mock-function.d.ts +0 -28
- package/dist/testing/resources/admin.d.ts +0 -20
- package/dist/testing/resources/bounces.d.ts +0 -22
- package/dist/testing/resources/campaigns.d.ts +0 -31
- package/dist/testing/resources/dashboard.d.ts +0 -17
- package/dist/testing/resources/import.d.ts +0 -19
- package/dist/testing/resources/index.d.ts +0 -18
- package/dist/testing/resources/lists.d.ts +0 -24
- package/dist/testing/resources/maintenance.d.ts +0 -18
- package/dist/testing/resources/media.d.ts +0 -21
- package/dist/testing/resources/public.d.ts +0 -18
- package/dist/testing/resources/settings.d.ts +0 -19
- package/dist/testing/resources/subscribers.d.ts +0 -33
- package/dist/testing/resources/templates.d.ts +0 -24
- package/dist/testing/resources/tx.d.ts +0 -16
- package/dist/testing/types.d.ts +0 -138
- package/dist/types/config.d.ts +0 -59
- package/dist/types/index.d.ts +0 -7
- package/dist/types/pagination.d.ts +0 -37
package/README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# @maloma/listmonk
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/@maloma/listmonk)
|
|
4
|
-
[](https://www.npmjs.com/package/@maloma/listmonk)
|
|
4
|
+
[](https://www.npmjs.com/package/@maloma/listmonk)
|
|
5
|
+
[](LICENSE)
|
|
6
|
+
[](https://www.typescriptlang.org/)
|
|
7
|
+
[](https://anthropic.com/claude-code)
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
TypeScript SDK for the [listmonk](https://listmonk.app/) email marketing platform API.
|
|
8
10
|
|
|
9
11
|
## Table of Contents
|
|
10
12
|
|
|
@@ -20,6 +22,7 @@ Production-grade TypeScript SDK for the [listmonk](https://listmonk.app/) email
|
|
|
20
22
|
- [Pagination](#pagination)
|
|
21
23
|
- [TypeScript](#typescript)
|
|
22
24
|
- [Testing](#testing)
|
|
25
|
+
- [Security](#security)
|
|
23
26
|
- [Contributing](#contributing)
|
|
24
27
|
- [License](#license)
|
|
25
28
|
|
|
@@ -37,7 +40,7 @@ Production-grade TypeScript SDK for the [listmonk](https://listmonk.app/) email
|
|
|
37
40
|
## Requirements
|
|
38
41
|
|
|
39
42
|
- **Node.js** 22+ or **Bun** 1.3+
|
|
40
|
-
- **TypeScript** 5.
|
|
43
|
+
- **TypeScript** 5.9+ (optional, but recommended)
|
|
41
44
|
|
|
42
45
|
## Installation
|
|
43
46
|
|
|
@@ -381,8 +384,7 @@ const CustomSubscriberSchema = SubscriberSchema.extend({
|
|
|
381
384
|
|
|
382
385
|
The SDK provides test utilities for unit testing applications without real API calls:
|
|
383
386
|
|
|
384
|
-
```
|
|
385
|
-
# The testing module is included in the main package
|
|
387
|
+
```typescript
|
|
386
388
|
import { MockListmonkClient } from '@maloma/listmonk/testing';
|
|
387
389
|
```
|
|
388
390
|
|
|
@@ -513,6 +515,10 @@ const client = new Listmonk({
|
|
|
513
515
|
});
|
|
514
516
|
```
|
|
515
517
|
|
|
518
|
+
## Security
|
|
519
|
+
|
|
520
|
+
For security practices, vulnerability reporting, and supply chain verification (checksums, signatures, SBOM), see [SECURITY.md](SECURITY.md).
|
|
521
|
+
|
|
516
522
|
## Contributing
|
|
517
523
|
|
|
518
524
|
Contributions are welcome! Please read our [Contributing Guide](CONTRIBUTING.md) for details on our code of conduct and the process for submitting pull requests.
|
|
@@ -530,7 +536,7 @@ bun test
|
|
|
530
536
|
bun run typecheck
|
|
531
537
|
|
|
532
538
|
# Lint
|
|
533
|
-
bun run
|
|
539
|
+
bun run lint
|
|
534
540
|
```
|
|
535
541
|
|
|
536
542
|
## License
|