@rudderhq/cli 0.2.7-canary.1 → 0.2.7-canary.3
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 +20 -4
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1803,7 +1803,7 @@ var init_approval = __esm({
|
|
|
1803
1803
|
|
|
1804
1804
|
// ../packages/shared/dist/validators/automation.js
|
|
1805
1805
|
import { z as z20 } from "zod";
|
|
1806
|
-
var automationBodySchema, updateAutomationSchema, baseTriggerSchema, createAutomationTriggerSchema, updateAutomationTriggerSchema, runAutomationSchema, rotateAutomationTriggerSecretSchema;
|
|
1806
|
+
var automationBodySchema, createAutomationSchema, updateAutomationSchema, baseTriggerSchema, createAutomationTriggerSchema, updateAutomationTriggerSchema, runAutomationSchema, rotateAutomationTriggerSecretSchema;
|
|
1807
1807
|
var init_automation = __esm({
|
|
1808
1808
|
"../packages/shared/dist/validators/automation.js"() {
|
|
1809
1809
|
"use strict";
|
|
@@ -1820,10 +1820,26 @@ var init_automation = __esm({
|
|
|
1820
1820
|
concurrencyPolicy: z20.enum(AUTOMATION_CONCURRENCY_POLICIES).optional().default("coalesce_if_active"),
|
|
1821
1821
|
catchUpPolicy: z20.enum(AUTOMATION_CATCH_UP_POLICIES).optional().default("skip_missed"),
|
|
1822
1822
|
outputMode: z20.enum(AUTOMATION_OUTPUT_MODES).optional().default("track_issue"),
|
|
1823
|
-
chatConversationId: z20.string().uuid().optional().nullable().default(null)
|
|
1824
|
-
|
|
1823
|
+
chatConversationId: z20.string().uuid().optional().nullable().default(null)
|
|
1824
|
+
});
|
|
1825
|
+
createAutomationSchema = automationBodySchema.superRefine((value, ctx) => {
|
|
1826
|
+
if (value.chatConversationId) {
|
|
1827
|
+
ctx.addIssue({
|
|
1828
|
+
code: z20.ZodIssueCode.custom,
|
|
1829
|
+
path: ["chatConversationId"],
|
|
1830
|
+
message: "Chat output creates an automation-owned conversation; existing chats cannot be selected"
|
|
1831
|
+
});
|
|
1832
|
+
}
|
|
1833
|
+
});
|
|
1834
|
+
updateAutomationSchema = automationBodySchema.partial().superRefine((value, ctx) => {
|
|
1835
|
+
if (value.chatConversationId) {
|
|
1836
|
+
ctx.addIssue({
|
|
1837
|
+
code: z20.ZodIssueCode.custom,
|
|
1838
|
+
path: ["chatConversationId"],
|
|
1839
|
+
message: "Chat output creates an automation-owned conversation; existing chats cannot be selected"
|
|
1840
|
+
});
|
|
1841
|
+
}
|
|
1825
1842
|
});
|
|
1826
|
-
updateAutomationSchema = automationBodySchema.partial();
|
|
1827
1843
|
baseTriggerSchema = z20.object({
|
|
1828
1844
|
label: z20.string().trim().max(120).optional().nullable(),
|
|
1829
1845
|
enabled: z20.boolean().optional().default(true)
|