@wraps.dev/cli 3.20.0 → 3.20.1
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/cli.js
CHANGED
|
@@ -61962,9 +61962,7 @@ async function suppressionsRemove(options) {
|
|
|
61962
61962
|
`Removed ${email} from the suppression list of account ${accountId}.`
|
|
61963
61963
|
);
|
|
61964
61964
|
} else {
|
|
61965
|
-
log49.warn(
|
|
61966
|
-
`${email} was no longer on the list of account ${accountId}; nothing changed.`
|
|
61967
|
-
);
|
|
61965
|
+
log49.warn(`${email} was no longer on the list of account ${accountId}.`);
|
|
61968
61966
|
}
|
|
61969
61967
|
}
|
|
61970
61968
|
function addFailure(status2, text15) {
|
|
@@ -64886,7 +64884,7 @@ async function deleteFailure(resp, singleId) {
|
|
|
64886
64884
|
return {
|
|
64887
64885
|
code: "CONFLICT",
|
|
64888
64886
|
message: `${firstText(body?.error) ?? "A broadcast or workflow still uses one of these templates."} Blocking template ids: ${blockingIds.join(", ") || "none reported"}.`,
|
|
64889
|
-
suggestion: "Finish or cancel each scheduled, queued or processing broadcast that uses
|
|
64887
|
+
suggestion: "Point each draft broadcast that uses a blocking template at another one (`wraps broadcasts update <id> --template-id <other-id>`, or `--clear-template-id`). Finish or cancel each scheduled, queued or processing broadcast that uses one (`wraps broadcasts cancel <id> --yes`), and pause each enabled workflow in the dashboard, or, for a workflow defined in code, remove the template from its steps and run `wraps email workflows push` again (if the push reports a dashboard edit, ask the user before using `--force`, which overwrites those edits). Find the workflows with `wraps workflows list` and the broadcasts in the dashboard. Then re-run the delete. Nothing was deleted."
|
|
64890
64888
|
};
|
|
64891
64889
|
}
|
|
64892
64890
|
if (resp.status === 404 && singleId !== void 0) {
|
|
@@ -64994,7 +64992,7 @@ async function templatesDelete(options) {
|
|
|
64994
64992
|
if (!options.yes) {
|
|
64995
64993
|
fail9(command6, {
|
|
64996
64994
|
code: "CONFIRMATION_REQUIRED",
|
|
64997
|
-
message: `Deleting ${ids.length} template(s) removes them and their versions. A published SES copy is removed too, unless another template still uses that name. If any template is still used by a scheduled, queued or processing broadcast, or an enabled workflow, the whole delete is refused. Nothing was deleted.`,
|
|
64995
|
+
message: `Deleting ${ids.length} template(s) removes them and their versions. A published SES copy is removed too, unless another template still uses that name. If any template is still used by a draft, scheduled, queued or processing broadcast, or an enabled workflow, the whole delete is refused. Nothing was deleted.`,
|
|
64998
64996
|
suggestion: `Preview with \`wraps email templates delete ${ids.join(" ")} --dry-run\`, then re-run with --yes.`
|
|
64999
64997
|
});
|
|
65000
64998
|
return;
|
|
@@ -67661,7 +67659,7 @@ defineWorkflow({
|
|
|
67661
67659
|
| Type | Required Config | Description |
|
|
67662
67660
|
|------|----------------|-------------|
|
|
67663
67661
|
| \`contact_created\` | \u2014 | Fires when a new contact is created |
|
|
67664
|
-
| \`contact_updated\` | \u2014 | Fires when a contact is
|
|
67662
|
+
| \`contact_updated\` | \u2014 | Fires on every contact update through the API or CLI (\`PATCH /v1/contacts/:id\`, \`wraps contacts update\`), when a contact is edited in the dashboard, and when its email status changes (suppressed, bounced, complained, unsubscribed, or active again after a suppression is removed). Imports (dashboard CSV, \`POST /v1/contacts/import\`, \`wraps contacts import\`) don't fire it. Event data carries \`updatedFields\` and \`changeSource\`: \`api\` (an API key), \`user\` (a signed-in user in the dashboard or CLI), \`bounce\`, \`complaint\`, \`ses_suppression\` or \`unsubscribe\` (the unsubscribe link, or the preference centre's "unsubscribe from all"). If the workflow sends email, set \`reentryDelaySeconds\` or branch on \`changeSource\`, so a bounce or unsubscribe from its own email does not start it again |
|
|
67665
67663
|
| \`event\` | \`eventName: string\` | Fires on a custom event (e.g. \`'cart.abandoned'\`) |
|
|
67666
67664
|
| \`segment_entry\` | \`segmentId: string\` | Fires when a contact enters a segment |
|
|
67667
67665
|
| \`segment_exit\` | \`segmentId: string\` | Fires when a contact exits a segment |
|