@base44-preview/cli 0.0.50-pr.445.16001ec → 0.0.50-pr.445.336b900
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 +48 -4
- package/dist/cli/index.js.map +5 -5
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -242751,11 +242751,51 @@ var EntityAutomationSchema = AutomationBaseSchema.extend({
|
|
|
242751
242751
|
entity_name: exports_external.string().min(1, "Entity name cannot be empty"),
|
|
242752
242752
|
event_types: exports_external.array(exports_external.enum(["create", "update", "delete"])).min(1, "At least one event type is required")
|
|
242753
242753
|
});
|
|
242754
|
+
var KnownConditionOperators = [
|
|
242755
|
+
"equals",
|
|
242756
|
+
"not_equals",
|
|
242757
|
+
"gt",
|
|
242758
|
+
"gte",
|
|
242759
|
+
"lt",
|
|
242760
|
+
"lte",
|
|
242761
|
+
"contains",
|
|
242762
|
+
"not_contains",
|
|
242763
|
+
"starts_with",
|
|
242764
|
+
"ends_with",
|
|
242765
|
+
"in_list",
|
|
242766
|
+
"not_in_list",
|
|
242767
|
+
"exists",
|
|
242768
|
+
"not_exists",
|
|
242769
|
+
"is_empty",
|
|
242770
|
+
"is_not_empty"
|
|
242771
|
+
];
|
|
242772
|
+
var ConditionOperatorSchema = exports_external.union([
|
|
242773
|
+
exports_external.enum(KnownConditionOperators),
|
|
242774
|
+
exports_external.string().min(1)
|
|
242775
|
+
]);
|
|
242776
|
+
var TriggerConditionSchema = exports_external.object({
|
|
242777
|
+
field: exports_external.string().min(1),
|
|
242778
|
+
operator: ConditionOperatorSchema,
|
|
242779
|
+
value: exports_external.unknown().nullable().optional()
|
|
242780
|
+
});
|
|
242781
|
+
var TriggerLogicSchema = exports_external.enum(["and", "or"]);
|
|
242782
|
+
var TriggerConditionGroupSchema = exports_external.lazy(() => exports_external.object({
|
|
242783
|
+
logic: TriggerLogicSchema.optional(),
|
|
242784
|
+
conditions: exports_external.array(exports_external.union([TriggerConditionSchema, TriggerConditionGroupSchema])).min(1)
|
|
242785
|
+
}));
|
|
242786
|
+
var ConnectorAutomationSchema = AutomationBaseSchema.extend({
|
|
242787
|
+
type: exports_external.literal("connector"),
|
|
242788
|
+
integration_type: IntegrationTypeSchema,
|
|
242789
|
+
events: exports_external.array(exports_external.string()),
|
|
242790
|
+
resource_id: exports_external.string().nullable().optional(),
|
|
242791
|
+
trigger_conditions: TriggerConditionGroupSchema.nullable().optional()
|
|
242792
|
+
});
|
|
242754
242793
|
var AutomationSchema = exports_external.union([
|
|
242755
242794
|
ScheduledOneTimeSchema,
|
|
242756
242795
|
ScheduledCronSchema,
|
|
242757
242796
|
ScheduledSimpleSchema,
|
|
242758
|
-
EntityAutomationSchema
|
|
242797
|
+
EntityAutomationSchema,
|
|
242798
|
+
ConnectorAutomationSchema
|
|
242759
242799
|
]);
|
|
242760
242800
|
var FunctionConfigSchema = exports_external.object({
|
|
242761
242801
|
name: FunctionNameSchema,
|
|
@@ -250906,7 +250946,7 @@ var PROVIDER_LABELS = {
|
|
|
250906
250946
|
var VALID_PROVIDER_NAMES = Object.keys(SOCIAL_PROVIDERS);
|
|
250907
250947
|
var PROVIDER_OAUTH_CLI = {
|
|
250908
250948
|
google: {
|
|
250909
|
-
envVar: "
|
|
250949
|
+
envVar: "google_oauth_client_secret",
|
|
250910
250950
|
promptMessage: "Enter Google OAuth client secret"
|
|
250911
250951
|
}
|
|
250912
250952
|
};
|
|
@@ -250980,7 +251020,7 @@ async function socialLoginAction({ log, isNonInteractive, runTask: runTask2 }, p
|
|
|
250980
251020
|
let outroMessage = `${label} login ${newStatus}${oauthNote} in local config. Run \`base44 auth push\` or \`base44 deploy\` to apply.`;
|
|
250981
251021
|
if (useCustomOAuth && !clientSecret) {
|
|
250982
251022
|
outroMessage += `
|
|
250983
|
-
Remember to push the client secret separately: base44
|
|
251023
|
+
Remember to push the client secret separately: base44 auth social-login ${provider} enable --client-id ${options.clientId} --env-file <path>`;
|
|
250984
251024
|
}
|
|
250985
251025
|
return { outroMessage };
|
|
250986
251026
|
}
|
|
@@ -253346,9 +253386,13 @@ function createFunctionRouter(manager, logger2) {
|
|
|
253346
253386
|
on: {
|
|
253347
253387
|
proxyReq: (proxyReq, req) => {
|
|
253348
253388
|
const xAppId = req.headers["x-app-id"];
|
|
253389
|
+
const authorization = req.headers.authorization;
|
|
253349
253390
|
if (xAppId) {
|
|
253350
253391
|
proxyReq.setHeader("Base44-App-Id", xAppId);
|
|
253351
253392
|
}
|
|
253393
|
+
if (authorization) {
|
|
253394
|
+
proxyReq.setHeader("Base44-Service-Authorization", authorization);
|
|
253395
|
+
}
|
|
253352
253396
|
proxyReq.setHeader("Base44-Api-Url", `${req.protocol}://${req.headers.host}`);
|
|
253353
253397
|
},
|
|
253354
253398
|
error: (err, _req, res) => {
|
|
@@ -260419,4 +260463,4 @@ export {
|
|
|
260419
260463
|
CLIExitError
|
|
260420
260464
|
};
|
|
260421
260465
|
|
|
260422
|
-
//# debugId=
|
|
260466
|
+
//# debugId=98345FFC5B7D0AE164756E2164756E21
|