@wrangled/cli 0.3.15 → 0.3.16

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.
Files changed (2) hide show
  1. package/dist/main.js +7 -2
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -686,13 +686,14 @@ const commands = {
686
686
  },
687
687
  },
688
688
  "content status": {
689
- usage: "content status <sku | item-id> <status> [--platform <platform> --external-id <id>]",
689
+ usage: "content status <sku | item-id> <status> [--platform <platform> [--object-type <type>] --external-id <id>]",
690
690
  async run(args, options) {
691
691
  if (args.length !== 2)
692
- throw new CliError("Usage: content status <sku | item-id> <status> [--platform <platform> --external-id <id>]", exitCodes.usage);
692
+ throw new CliError("Usage: content status <sku | item-id> <status> [--platform <platform> [--object-type <type>] --external-id <id>]", exitCodes.usage);
693
693
  const content = await api(await resolveConnection(options.apiUrl), `/api/v1/content/${encodeURIComponent(args[0])}/status`, {
694
694
  status: args[1],
695
695
  ...(options.platform === undefined ? {} : { platform: options.platform }),
696
+ ...(options.objectType === undefined ? {} : { objectType: options.objectType }),
696
697
  ...(options.externalId === undefined ? {} : { externalId: options.externalId }),
697
698
  });
698
699
  printContent(content, options.format);
@@ -1827,6 +1828,8 @@ Options:
1827
1828
  --tool-run <id> a succeeded tool run content create and edit link; repeat for several
1828
1829
  --run <id> the agent run making the content (content), or the tool run to record (creatives create)
1829
1830
  --platform, --external-id where content status launched says it was published, and that platform's id for it
1831
+ --object-type <type> what that platform's sync calls it (campaign_message or flow_message on klaviyo); needed where
1832
+ the sync matches several kinds, so its next read joins the item
1830
1833
  --notes <text> what changed in the version skill publish adds
1831
1834
  --version <n> the map version funnels show prints (default: the confirmed one)
1832
1835
  --based-on <n> the map version funnels draft was written from; refused when someone saved since
@@ -1921,6 +1924,7 @@ function parseOptions(argv) {
1921
1924
  platform: { type: "string" },
1922
1925
  library: { type: "string" },
1923
1926
  "external-id": { type: "string" },
1927
+ "object-type": { type: "string" },
1924
1928
  origin: { type: "string" },
1925
1929
  text: { type: "string" },
1926
1930
  mode: { type: "string" },
@@ -2014,6 +2018,7 @@ function parseOptions(argv) {
2014
2018
  platform: values.platform,
2015
2019
  library: values.library,
2016
2020
  externalId: values["external-id"],
2021
+ objectType: values["object-type"],
2017
2022
  origin: values.origin,
2018
2023
  text: values.text,
2019
2024
  mode: values.mode,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrangled/cli",
3
- "version": "0.3.15",
3
+ "version": "0.3.16",
4
4
  "description": "Command-line access to your marketing data warehouse, for people and coding agents",
5
5
  "type": "module",
6
6
  "bin": {