sendlit 0.3.0 → 0.4.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,7 +63,7 @@ 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` |
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` |
@@ -229,6 +229,19 @@ Starting a broadcast or sequence requires a mailing address in the team's
229
229
  settings (set it with `mailingAddress` when provisioning) and a way to send
230
230
  email: either an organization delivery grant or the team's own ESP.
231
231
 
232
+ While a broadcast or sequence is active, `updateEmail` saves subject and
233
+ content changes as a draft; contacts keep getting the published version until
234
+ you publish:
235
+
236
+ ```ts
237
+ await sendlit.sequences.updateEmail(sequenceId, emailId, { subject: "Updated" });
238
+ await sendlit.sequences.publishChanges(sequenceId, {
239
+ emailIds: [emailId],
240
+ // Sequences: "in_flight" (default) or "new_entrants".
241
+ scope: "new_entrants",
242
+ });
243
+ ```
244
+
232
245
  ## License
233
246
 
234
247
  MIT