@teamkeel/functions-runtime 0.417.0 → 0.418.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/dist/index.cjs +29 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -1
- package/dist/index.d.ts +48 -1
- package/dist/index.js +29 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2913,6 +2913,33 @@ var NonRetriableError = class extends Error {
|
|
|
2913
2913
|
}
|
|
2914
2914
|
};
|
|
2915
2915
|
|
|
2916
|
+
// src/flows/ui/elements/interactive/bulkScan.ts
|
|
2917
|
+
var bulkScan = /* @__PURE__ */ __name((name, options) => {
|
|
2918
|
+
return {
|
|
2919
|
+
__type: "input",
|
|
2920
|
+
uiConfig: {
|
|
2921
|
+
__type: "ui.interactive.bulkScan",
|
|
2922
|
+
name,
|
|
2923
|
+
title: options?.title ?? void 0,
|
|
2924
|
+
description: options?.description ?? void 0,
|
|
2925
|
+
unit: options?.unit ?? void 0,
|
|
2926
|
+
max: options?.max ?? void 0,
|
|
2927
|
+
min: options?.min ?? void 0,
|
|
2928
|
+
duplicateHandling: options?.duplicateHandling ?? "none"
|
|
2929
|
+
},
|
|
2930
|
+
validate: /* @__PURE__ */ __name(async (data) => {
|
|
2931
|
+
if (!("scans" in data)) {
|
|
2932
|
+
return "Missing scans in response";
|
|
2933
|
+
}
|
|
2934
|
+
if (!Array.isArray(data.scans)) {
|
|
2935
|
+
return "Scans must be an array";
|
|
2936
|
+
}
|
|
2937
|
+
return options?.validate?.(data) ?? true;
|
|
2938
|
+
}, "validate"),
|
|
2939
|
+
getData: /* @__PURE__ */ __name((x) => x, "getData")
|
|
2940
|
+
};
|
|
2941
|
+
}, "bulkScan");
|
|
2942
|
+
|
|
2916
2943
|
// src/flows/index.ts
|
|
2917
2944
|
var STEP_STATUS = /* @__PURE__ */ ((STEP_STATUS2) => {
|
|
2918
2945
|
STEP_STATUS2["NEW"] = "NEW";
|
|
@@ -3151,7 +3178,8 @@ function createFlowContext(runId, data, action, spanId, ctx) {
|
|
|
3151
3178
|
iterator,
|
|
3152
3179
|
interactive: {
|
|
3153
3180
|
print,
|
|
3154
|
-
pickList
|
|
3181
|
+
pickList,
|
|
3182
|
+
bulkScan
|
|
3155
3183
|
}
|
|
3156
3184
|
}
|
|
3157
3185
|
};
|