@stacksjs/newsletter 0.70.72 → 0.70.74
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/campaigns.d.ts +11 -0
- package/dist/lists.d.ts +8 -0
- package/package.json +6 -6
package/dist/campaigns.d.ts
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Campaign CRUD + dispatch.
|
|
3
|
+
*
|
|
4
|
+
* `sendNow()` and `schedule()` both end up dispatching the
|
|
5
|
+
* `SendCampaignJob` queue handler — `schedule()` just adds a `delay()`
|
|
6
|
+
* computed against the campaign's `scheduled_at`. The job is the one
|
|
7
|
+
* source of truth for actually fanning out emails so that a manual
|
|
8
|
+
* `sendNow()` from the dashboard and a cron-fired scheduled run go
|
|
9
|
+
* through identical machinery.
|
|
10
|
+
*/
|
|
11
|
+
declare function resolveListId(input: CreateCampaignInput): Promise<number>;
|
|
1
12
|
/**
|
|
2
13
|
* @defaultValue
|
|
3
14
|
* ```ts
|
package/dist/lists.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EmailList CRUD wrapper.
|
|
3
|
+
*
|
|
4
|
+
* The model lives in `defaults/app/Models/EmailList.ts`; here we expose
|
|
5
|
+
* a friendlier surface for application code so callers don't depend on
|
|
6
|
+
* raw ORM idioms (which changes across releases).
|
|
7
|
+
*/
|
|
8
|
+
declare function slugify(input: string): string;
|
|
1
9
|
/**
|
|
2
10
|
* @defaultValue
|
|
3
11
|
* ```ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/newsletter",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.70.
|
|
4
|
+
"version": "0.70.74",
|
|
5
5
|
"description": "Promotional email & newsletter primitives for Stacks. Lists, campaigns, subscribers, and one-click unsubscribe — sent through @stacksjs/email.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"prepublishOnly": "bun run build"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@stacksjs/cli": "0.70.
|
|
59
|
-
"@stacksjs/config": "0.70.
|
|
60
|
-
"better-dx": "^0.2.
|
|
61
|
-
"@stacksjs/error-handling": "0.70.
|
|
62
|
-
"@stacksjs/types": "0.70.
|
|
58
|
+
"@stacksjs/cli": "0.70.74",
|
|
59
|
+
"@stacksjs/config": "0.70.74",
|
|
60
|
+
"better-dx": "^0.2.16",
|
|
61
|
+
"@stacksjs/error-handling": "0.70.74",
|
|
62
|
+
"@stacksjs/types": "0.70.74"
|
|
63
63
|
}
|
|
64
64
|
}
|