sendlit 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/README.md CHANGED
@@ -63,12 +63,15 @@ new SendLit({
63
63
  | `sendlit.contacts` | `create`, `list`, `listAll`, `get`, `update`, `remove`, `addTag`, `removeTag`, `deliveries`, `events` |
64
64
  | `sendlit.segments` | `create`, `list`, `get`, `update`, `remove` |
65
65
  | `sendlit.templates` | `list`, `listSystem`, `get`, `create`, `update`, `duplicate`, `remove` |
66
- | `sendlit.sequences` | Broadcasts and sequences: `create`, `list`, `listAll`, `get`, `update`, `remove`, `addEmail`, `updateEmail`, `removeEmail`, `start`, `pause`, `stats`, `subscribers` |
66
+ | `sendlit.sequences` | Broadcasts and sequences: `create`, `list`, `listAll`, `get`, `update`, `remove`, `addEmail`, `updateEmail`, `publishChanges`, `discardChanges`, `emailVersions`, `restoreEmailVersion`, `removeEmail`, `start`, `pause`, `stats`, `subscribers`, `sendEmailTest` |
67
67
  | `sendlit.emails` | Transactional email: `send`, `get`, `list`, `listAll` |
68
68
  | `sendlit.events` | Custom events: `track`, and `definitions.list`, `definitions.get`, `definitions.create`, `definitions.update`, `definitions.delete` |
69
69
  | `sendlit.provisioning` | Organization key only: `provisionTeam`, `getTeam`, `updateTeam`, `createTeamKey`, `suspendTeam`, `resumeTeam`, `archiveTeam`, `getTeamUsage` |
70
70
  | `sendlit.suppressions` | `list`, `listAll`, `get`, `release` |
71
71
  | `sendlit.deliveryEvents` | `list`, `listAll`, `get` |
72
+ | `sendlit.tags` | `list`, `references`, `rename`, `remove` |
73
+ | `sendlit.settings` | `general.get`, `general.update` (the mailing address broadcasts and sequences need) |
74
+ | `sendlit.overview` | `get`: the team's dashboard numbers, optionally for `rangeDays` 1, 3, 7 or 30 |
72
75
 
73
76
  Request and response types are exported too, for example `Contact`,
74
77
  `CreateContactInput`, `Sequence`, and `SendEmailInput`.
@@ -229,6 +232,19 @@ Starting a broadcast or sequence requires a mailing address in the team's
229
232
  settings (set it with `mailingAddress` when provisioning) and a way to send
230
233
  email: either an organization delivery grant or the team's own ESP.
231
234
 
235
+ While a broadcast or sequence is active, `updateEmail` saves subject and
236
+ content changes as a draft; contacts keep getting the published version until
237
+ you publish:
238
+
239
+ ```ts
240
+ await sendlit.sequences.updateEmail(sequenceId, emailId, { subject: "Updated" });
241
+ await sendlit.sequences.publishChanges(sequenceId, {
242
+ emailIds: [emailId],
243
+ // Sequences: "in_flight" (default) or "new_entrants".
244
+ scope: "new_entrants",
245
+ });
246
+ ```
247
+
232
248
  ## License
233
249
 
234
250
  MIT