zinkee 0.1.50 → 0.1.52

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/index.js CHANGED
@@ -250,7 +250,7 @@ ${list}`
250
250
  };
251
251
  }
252
252
  async function showExamples(commandName, json, stdout, filters = {}) {
253
- const { getCommandExamples } = await import("./examples-CFZMP2GJ.js");
253
+ const { getCommandExamples } = await import("./examples-V3PR2VTY.js");
254
254
  const examples = getCommandExamples(commandName, filters);
255
255
  if (examples.length === 0) {
256
256
  throw new CliError("invalid_cli_usage", `No examples registered for "${commandName}".`);
@@ -1234,7 +1234,7 @@ function mergeMappings(stringAssignments, jsonAssignments) {
1234
1234
  }
1235
1235
  var AUTOMATION_SOURCE_TYPES = /* @__PURE__ */ new Set(["TRIGGER", "PREVIOUS_ACTION"]);
1236
1236
  function isAutomationValueSource(value) {
1237
- return isJsonObject(value) && typeof value.type === "string" && AUTOMATION_SOURCE_TYPES.has(value.type) && typeof value.id === "string" && value.id.trim().length > 0 && (value.actionId === void 0 || value.type === "PREVIOUS_ACTION" && typeof value.actionId === "string" && value.actionId.trim().length > 0);
1237
+ return isJsonObject(value) && typeof value.type === "string" && AUTOMATION_SOURCE_TYPES.has(value.type) && typeof value.id === "string" && value.id.trim().length > 0 && (value.actionId === void 0 || value.actionId === null || value.type === "PREVIOUS_ACTION" && typeof value.actionId === "string" && value.actionId.trim().length > 0);
1238
1238
  }
1239
1239
  function looksLikeAutomationResolvedValue(value) {
1240
1240
  if (!isJsonObject(value)) {
@@ -1283,7 +1283,7 @@ function normalizeAutomationResolvedValue(value, label, options) {
1283
1283
  source: {
1284
1284
  type: sourceValue.type,
1285
1285
  id: sourceValue.id,
1286
- ...sourceValue.actionId === void 0 ? {} : { actionId: sourceValue.actionId }
1286
+ ...typeof sourceValue.actionId === "string" ? { actionId: sourceValue.actionId } : {}
1287
1287
  }
1288
1288
  };
1289
1289
  }
@@ -1836,7 +1836,7 @@ function addActionPayloadOptions(command) {
1836
1836
  "--timeout-ms <n>",
1837
1837
  "HTTP timeout in milliseconds",
1838
1838
  parseNonNegativeInteger
1839
- ).option("--var <key=value>", "HTTP variable", collectValues, []).option("--auth-mode <mode>", "HTTP auth mode").option("--connection <uuid>", "connection id for HTTP auth").option("--plugin <id>", "plugin id for execute_plugin").option("--arg <key=value>", "plugin argument", collectValues, []).option("--arg-json <key=json>", "plugin argument as JSON", collectValues, []).option("--to <recipient>", "send_message recipient (maps to fieldMapping.recipients)").option("--subject <text>", "send_message subject").option("--message <text>", "send_message body text (maps to fieldMapping.body)").option("--document-template <uuid>", "generate_document template id").option("--target-file-field <uuid>", "generate_document target FileField id").option("--operation <operation>", "invoicing operation (prepare|issue|refund|cancel|create_correction)").option("--schema <uuid>", "invoicing source draft or invoice schema id").option("--input <key=value>", "invoicing literal input (repeatable)", collectValues, []).option("--input-json <key=json>", "invoicing literal or source input (repeatable)", collectValues, []).option("--raw <json>", "raw action JSON payload").option("--raw-file <path>", "path to raw action JSON payload").addHelpText("after", ACTION_TYPES_HELP);
1839
+ ).option("--var <key=value>", "HTTP variable", collectValues, []).option("--auth-mode <mode>", "HTTP auth mode").option("--connection <uuid>", "connection id for HTTP auth").option("--plugin <id>", "plugin id for execute_plugin").option("--arg <key=value>", "plugin argument", collectValues, []).option("--arg-json <key=json>", "plugin argument as JSON", collectValues, []).option("--to <recipient>", "send_message recipient (maps to fieldMapping.recipients)").option("--subject <text>", "send_message subject").option("--message <text>", "send_message body text (maps to fieldMapping.body)").option("--document-template <uuid>", "generate_document template id").option("--target-file-field <uuid>", "generate_document target FileField id").option("--operation <operation>", "invoicing operation (prepare|issue|refund|cancel|create_correction|prepare_fiscal_correction|execute_fiscal_correction)").option("--schema <uuid>", "invoicing source draft, invoice or fiscal correction schema id").option("--input <key=value>", "invoicing literal input (repeatable)", collectValues, []).option("--input-json <key=json>", "invoicing literal or source input (repeatable)", collectValues, []).option("--raw <json>", "raw action JSON payload").option("--raw-file <path>", "path to raw action JSON payload").addHelpText("after", ACTION_TYPES_HELP);
1840
1840
  }
1841
1841
  function registerAutomationsCommands(program, options = {}) {
1842
1842
  const filePath = options.configPath ?? defaultConfigPath;