@base44-preview/cli 0.0.50-pr.471.086f7c9 → 0.0.50-pr.471.adfbd2f
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/cli/index.js +33 -9
- package/dist/cli/index.js.map +3 -3
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -242594,20 +242594,44 @@ var EntityAutomationSchema = AutomationBaseSchema.extend({
|
|
|
242594
242594
|
entity_name: exports_external.string().min(1, "Entity name cannot be empty"),
|
|
242595
242595
|
event_types: exports_external.array(exports_external.enum(["create", "update", "delete"])).min(1, "At least one event type is required")
|
|
242596
242596
|
});
|
|
242597
|
+
var KnownConditionOperators = [
|
|
242598
|
+
"equals",
|
|
242599
|
+
"not_equals",
|
|
242600
|
+
"gt",
|
|
242601
|
+
"gte",
|
|
242602
|
+
"lt",
|
|
242603
|
+
"lte",
|
|
242604
|
+
"contains",
|
|
242605
|
+
"not_contains",
|
|
242606
|
+
"starts_with",
|
|
242607
|
+
"ends_with",
|
|
242608
|
+
"in_list",
|
|
242609
|
+
"not_in_list",
|
|
242610
|
+
"exists",
|
|
242611
|
+
"not_exists",
|
|
242612
|
+
"is_empty",
|
|
242613
|
+
"is_not_empty"
|
|
242614
|
+
];
|
|
242615
|
+
var ConditionOperatorSchema = exports_external.union([
|
|
242616
|
+
exports_external.enum(KnownConditionOperators),
|
|
242617
|
+
exports_external.string().min(1)
|
|
242618
|
+
]);
|
|
242597
242619
|
var TriggerConditionSchema = exports_external.object({
|
|
242598
242620
|
field: exports_external.string().min(1),
|
|
242599
|
-
operator:
|
|
242600
|
-
value: exports_external.unknown()
|
|
242601
|
-
});
|
|
242602
|
-
var TriggerConditionsSchema = exports_external.object({
|
|
242603
|
-
conditions: exports_external.array(TriggerConditionSchema).min(1)
|
|
242621
|
+
operator: ConditionOperatorSchema,
|
|
242622
|
+
value: exports_external.unknown().nullable().optional()
|
|
242604
242623
|
});
|
|
242624
|
+
var TriggerLogicSchema = exports_external.enum(["and", "or"]);
|
|
242625
|
+
var TriggerConditionGroupSchema = exports_external.lazy(() => exports_external.object({
|
|
242626
|
+
logic: TriggerLogicSchema.optional(),
|
|
242627
|
+
conditions: exports_external.array(exports_external.union([TriggerConditionSchema, TriggerConditionGroupSchema])).min(1)
|
|
242628
|
+
}));
|
|
242605
242629
|
var ConnectorAutomationSchema = AutomationBaseSchema.extend({
|
|
242606
242630
|
type: exports_external.literal("connector"),
|
|
242607
|
-
integration_type:
|
|
242608
|
-
events: exports_external.array(exports_external.string())
|
|
242631
|
+
integration_type: IntegrationTypeSchema,
|
|
242632
|
+
events: exports_external.array(exports_external.string()),
|
|
242609
242633
|
resource_id: exports_external.string().nullable().optional(),
|
|
242610
|
-
trigger_conditions:
|
|
242634
|
+
trigger_conditions: TriggerConditionGroupSchema.nullable().optional()
|
|
242611
242635
|
});
|
|
242612
242636
|
var AutomationSchema = exports_external.union([
|
|
242613
242637
|
ScheduledOneTimeSchema,
|
|
@@ -260209,4 +260233,4 @@ export {
|
|
|
260209
260233
|
CLIExitError
|
|
260210
260234
|
};
|
|
260211
260235
|
|
|
260212
|
-
//# debugId=
|
|
260236
|
+
//# debugId=F9B21F75C8F3595964756E2164756E21
|