zinkee 0.1.51 → 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/README.md +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -716,7 +716,7 @@ Valid action types: `create_record`, `update_record`, `search_records`, `send_me
|
|
|
716
716
|
- `--map field=value` → `{"rawValue":"value","source":null}` (literal)
|
|
717
717
|
- `--map-json field='{"rawValue":null,"source":{"type":"TRIGGER","id":"<field-uuid>"}}'` (from trigger)
|
|
718
718
|
- `source.type` values: `TRIGGER`, `PREVIOUS_ACTION`
|
|
719
|
-
- `source.id` is a field UUID or a named output of the preceding action; slugs are not resolved here. Use `source.actionId` to select the preceding action explicitly.
|
|
719
|
+
- `source.id` is a field UUID or a named output of the preceding action; slugs are not resolved here. Use `source.actionId` to select the preceding action explicitly; `"actionId": null`, as `automations get` returns it, counts as absent and is not sent.
|
|
720
720
|
|
|
721
721
|
### Native invoicing
|
|
722
722
|
|
package/dist/index.js
CHANGED
|
@@ -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 ===
|
|
1286
|
+
...typeof sourceValue.actionId === "string" ? { actionId: sourceValue.actionId } : {}
|
|
1287
1287
|
}
|
|
1288
1288
|
};
|
|
1289
1289
|
}
|