@stacksjs/newsletter 0.70.37 → 0.70.39

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.
@@ -5,6 +5,8 @@
5
5
  * create: () => unknown,
6
6
  * find: () => unknown,
7
7
  * update: () => unknown,
8
+ * sendNow: () => unknown,
9
+ * schedule: () => unknown,
8
10
  * cancel: () => unknown
9
11
  * }
10
12
  * ```
@@ -14,11 +16,11 @@ export declare const campaigns: {
14
16
  find: (id: number) => Promise<void>;
15
17
  update: (id: number, patch: Partial<CreateCampaignInput>) => Promise<void>;
16
18
  /** Move a draft straight into the queue. */
17
- async sendNow: (id: number, options?: SendCampaignOptions) => unknown;
19
+ sendNow: (id: number, options?: SendCampaignOptions) => Promise<void>;
18
20
  /**
19
21
  * Persist a `scheduled_at` and dispatch the job with a delay computed
20
22
  * from now. If the time is in the past, falls back to immediate send.
21
23
  */
22
- async schedule: (id: number, scheduledAt: Date | string, options?: SendCampaignOptions) => unknown;
24
+ schedule: (id: number, scheduledAt: Date | string, options?: SendCampaignOptions) => Promise<void>;
23
25
  cancel: (id: number) => Promise<void>
24
26
  };
@@ -1,8 +1,18 @@
1
- /** @defaultValue `{ create: () => unknown, all: () => unknown, archive: () => unknown }` */
1
+ /**
2
+ * @defaultValue
3
+ * ```ts
4
+ * {
5
+ * create: () => unknown,
6
+ * find: () => unknown,
7
+ * all: () => unknown,
8
+ * archive: () => unknown
9
+ * }
10
+ * ```
11
+ */
2
12
  export declare const lists: {
3
13
  create: (input: CreateListInput) => Promise<void>;
4
14
  /** Look up by slug first, then by id — slugs are the public-facing handle. */
5
- async find: (idOrSlug: number | string) => unknown;
15
+ find: (idOrSlug: number | string) => Promise<void>;
6
16
  all: () => Promise<void>;
7
17
  archive: (idOrSlug: number | string) => Promise<void>
8
18
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/newsletter",
3
3
  "type": "module",
4
- "version": "0.70.37",
4
+ "version": "0.70.39",
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": [
@@ -51,10 +51,10 @@
51
51
  "prepublishOnly": "bun run build"
52
52
  },
53
53
  "devDependencies": {
54
- "@stacksjs/cli": "0.70.30",
55
- "@stacksjs/config": "0.70.30",
54
+ "@stacksjs/cli": "0.70.37",
55
+ "@stacksjs/config": "0.70.37",
56
56
  "better-dx": "^0.2.12",
57
- "@stacksjs/error-handling": "0.70.30",
58
- "@stacksjs/types": "0.70.30"
57
+ "@stacksjs/error-handling": "0.70.37",
58
+ "@stacksjs/types": "0.70.37"
59
59
  }
60
60
  }