@marlinjai/mail-sdk 0.3.0 → 0.5.0
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/dist/index.d.mts +412 -169
- package/dist/index.d.ts +412 -169
- package/dist/index.js +6 -2
- package/dist/index.mjs +6 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -505,7 +505,9 @@ function createNamespaces(config) {
|
|
|
505
505
|
topics: {
|
|
506
506
|
list: (query, opts) => execute(config, "topics.list", { query }, opts),
|
|
507
507
|
create: (body, opts) => execute(config, "topics.create", { body }, opts),
|
|
508
|
-
update: (id, body, opts) => execute(config, "topics.update", { params: { id }, body }, opts)
|
|
508
|
+
update: (id, body, opts) => execute(config, "topics.update", { params: { id }, body }, opts),
|
|
509
|
+
/** Refused with `conflict` while a mailing or an automation step still uses the topic. */
|
|
510
|
+
delete: (id, opts) => execute(config, "topics.delete", { params: { id } }, opts)
|
|
509
511
|
},
|
|
510
512
|
contacts: {
|
|
511
513
|
upsert: (body, opts) => execute(config, "contacts.upsert", { body }, opts),
|
|
@@ -544,7 +546,9 @@ function createNamespaces(config) {
|
|
|
544
546
|
setAbTest: (id, body, opts) => execute(config, "mailings.setAbTest", { params: { id }, body }, opts),
|
|
545
547
|
clearAbTest: (id, opts) => execute(config, "mailings.clearAbTest", { params: { id } }, opts),
|
|
546
548
|
pickAbWinner: (id, body, opts) => execute(config, "mailings.pickAbWinner", { params: { id }, body }, opts),
|
|
547
|
-
analytics: (id, opts) => execute(config, "mailings.analytics", { params: { id } }, opts)
|
|
549
|
+
analytics: (id, opts) => execute(config, "mailings.analytics", { params: { id } }, opts),
|
|
550
|
+
/** Who reads which language version, and who gets the main language instead. */
|
|
551
|
+
languages: (id, opts) => execute(config, "mailings.languages", { params: { id } }, opts)
|
|
548
552
|
},
|
|
549
553
|
messages: {
|
|
550
554
|
list: (query, opts) => execute(config, "messages.list", { query }, opts),
|
package/dist/index.mjs
CHANGED
|
@@ -489,7 +489,9 @@ function createNamespaces(config) {
|
|
|
489
489
|
topics: {
|
|
490
490
|
list: (query, opts) => execute(config, "topics.list", { query }, opts),
|
|
491
491
|
create: (body, opts) => execute(config, "topics.create", { body }, opts),
|
|
492
|
-
update: (id, body, opts) => execute(config, "topics.update", { params: { id }, body }, opts)
|
|
492
|
+
update: (id, body, opts) => execute(config, "topics.update", { params: { id }, body }, opts),
|
|
493
|
+
/** Refused with `conflict` while a mailing or an automation step still uses the topic. */
|
|
494
|
+
delete: (id, opts) => execute(config, "topics.delete", { params: { id } }, opts)
|
|
493
495
|
},
|
|
494
496
|
contacts: {
|
|
495
497
|
upsert: (body, opts) => execute(config, "contacts.upsert", { body }, opts),
|
|
@@ -528,7 +530,9 @@ function createNamespaces(config) {
|
|
|
528
530
|
setAbTest: (id, body, opts) => execute(config, "mailings.setAbTest", { params: { id }, body }, opts),
|
|
529
531
|
clearAbTest: (id, opts) => execute(config, "mailings.clearAbTest", { params: { id } }, opts),
|
|
530
532
|
pickAbWinner: (id, body, opts) => execute(config, "mailings.pickAbWinner", { params: { id }, body }, opts),
|
|
531
|
-
analytics: (id, opts) => execute(config, "mailings.analytics", { params: { id } }, opts)
|
|
533
|
+
analytics: (id, opts) => execute(config, "mailings.analytics", { params: { id } }, opts),
|
|
534
|
+
/** Who reads which language version, and who gets the main language instead. */
|
|
535
|
+
languages: (id, opts) => execute(config, "mailings.languages", { params: { id } }, opts)
|
|
532
536
|
},
|
|
533
537
|
messages: {
|
|
534
538
|
list: (query, opts) => execute(config, "messages.list", { query }, opts),
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.5.0",
|
|
7
7
|
"description": "Typed client for the Lumitra Mail v1 API: Node and edge runtimes, retries with idempotency, cursor pagination, webhook verification",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"LICENSE"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@marlinjai/mail-contract": "^0.
|
|
35
|
+
"@marlinjai/mail-contract": "^0.5.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"zod": "^3.25.0"
|