@base44-preview/cli 0.0.28-pr.211.b9a3905 → 0.0.28-pr.212.8bd1e1d
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 +18 -14
- package/dist/cli/index.js.map +5 -5
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -153795,7 +153795,11 @@ var TikTokConnectorSchema = exports_external.object({
|
|
|
153795
153795
|
type: exports_external.literal("tiktok"),
|
|
153796
153796
|
scopes: exports_external.array(exports_external.string()).default([])
|
|
153797
153797
|
});
|
|
153798
|
-
var
|
|
153798
|
+
var GenericConnectorSchema = exports_external.object({
|
|
153799
|
+
type: exports_external.string(),
|
|
153800
|
+
scopes: exports_external.array(exports_external.string()).default([])
|
|
153801
|
+
});
|
|
153802
|
+
var ConnectorResourceSchema = exports_external.union([
|
|
153799
153803
|
GoogleCalendarConnectorSchema,
|
|
153800
153804
|
GoogleDriveConnectorSchema,
|
|
153801
153805
|
GmailConnectorSchema,
|
|
@@ -153807,9 +153811,10 @@ var ConnectorResourceSchema = exports_external.discriminatedUnion("type", [
|
|
|
153807
153811
|
SalesforceConnectorSchema,
|
|
153808
153812
|
HubspotConnectorSchema,
|
|
153809
153813
|
LinkedInConnectorSchema,
|
|
153810
|
-
TikTokConnectorSchema
|
|
153814
|
+
TikTokConnectorSchema,
|
|
153815
|
+
GenericConnectorSchema
|
|
153811
153816
|
]);
|
|
153812
|
-
var
|
|
153817
|
+
var KnownIntegrationTypes = [
|
|
153813
153818
|
"googlecalendar",
|
|
153814
153819
|
"googledrive",
|
|
153815
153820
|
"gmail",
|
|
@@ -153822,6 +153827,10 @@ var IntegrationTypeSchema = exports_external.enum([
|
|
|
153822
153827
|
"hubspot",
|
|
153823
153828
|
"linkedin",
|
|
153824
153829
|
"tiktok"
|
|
153830
|
+
];
|
|
153831
|
+
var IntegrationTypeSchema = exports_external.union([
|
|
153832
|
+
exports_external.enum(KnownIntegrationTypes),
|
|
153833
|
+
exports_external.string().min(1)
|
|
153825
153834
|
]);
|
|
153826
153835
|
var ConnectorStatusSchema = exports_external.enum([
|
|
153827
153836
|
"active",
|
|
@@ -162160,20 +162169,18 @@ async function createArchive(pathToArchive, targetArchivePath) {
|
|
|
162160
162169
|
}
|
|
162161
162170
|
// src/core/project/deploy.ts
|
|
162162
162171
|
function hasResourcesToDeploy(projectData) {
|
|
162163
|
-
const { project, entities, functions, agents
|
|
162172
|
+
const { project, entities, functions, agents } = projectData;
|
|
162164
162173
|
const hasSite = Boolean(project.site?.outputDirectory);
|
|
162165
162174
|
const hasEntities = entities.length > 0;
|
|
162166
162175
|
const hasFunctions = functions.length > 0;
|
|
162167
162176
|
const hasAgents = agents.length > 0;
|
|
162168
|
-
|
|
162169
|
-
return hasEntities || hasFunctions || hasAgents || hasConnectors || hasSite;
|
|
162177
|
+
return hasEntities || hasFunctions || hasAgents || hasSite;
|
|
162170
162178
|
}
|
|
162171
162179
|
async function deployAll(projectData) {
|
|
162172
|
-
const { project, entities, functions, agents
|
|
162180
|
+
const { project, entities, functions, agents } = projectData;
|
|
162173
162181
|
await entityResource.push(entities);
|
|
162174
162182
|
await functionResource.push(functions);
|
|
162175
162183
|
await agentResource.push(agents);
|
|
162176
|
-
await connectorResource.push(connectors);
|
|
162177
162184
|
if (project.site?.outputDirectory) {
|
|
162178
162185
|
const outputDir = resolve(project.root, project.site.outputDirectory);
|
|
162179
162186
|
const { appUrl } = await deploySite(outputDir);
|
|
@@ -170193,7 +170200,7 @@ async function deployAction(options) {
|
|
|
170193
170200
|
outroMessage: "No resources found to deploy"
|
|
170194
170201
|
};
|
|
170195
170202
|
}
|
|
170196
|
-
const { project: project2, entities, functions, agents
|
|
170203
|
+
const { project: project2, entities, functions, agents } = projectData;
|
|
170197
170204
|
const summaryLines = [];
|
|
170198
170205
|
if (entities.length > 0) {
|
|
170199
170206
|
summaryLines.push(` - ${entities.length} ${entities.length === 1 ? "entity" : "entities"}`);
|
|
@@ -170204,9 +170211,6 @@ async function deployAction(options) {
|
|
|
170204
170211
|
if (agents.length > 0) {
|
|
170205
170212
|
summaryLines.push(` - ${agents.length} ${agents.length === 1 ? "agent" : "agents"}`);
|
|
170206
170213
|
}
|
|
170207
|
-
if (connectors.length > 0) {
|
|
170208
|
-
summaryLines.push(` - ${connectors.length} ${connectors.length === 1 ? "connector" : "connectors"}`);
|
|
170209
|
-
}
|
|
170210
170214
|
if (project2.site?.outputDirectory) {
|
|
170211
170215
|
summaryLines.push(` - Site from ${project2.site.outputDirectory}`);
|
|
170212
170216
|
}
|
|
@@ -170238,7 +170242,7 @@ ${summaryLines.join(`
|
|
|
170238
170242
|
return { outroMessage: "App deployed successfully" };
|
|
170239
170243
|
}
|
|
170240
170244
|
function getDeployCommand(context) {
|
|
170241
|
-
return new Command("deploy").description("Deploy all project resources (entities, functions, agents,
|
|
170245
|
+
return new Command("deploy").description("Deploy all project resources (entities, functions, agents, and site)").option("-y, --yes", "Skip confirmation prompt").action(async (options) => {
|
|
170242
170246
|
await runCommand(() => deployAction(options), { requireAuth: true }, context);
|
|
170243
170247
|
});
|
|
170244
170248
|
}
|
|
@@ -174860,4 +174864,4 @@ export {
|
|
|
174860
174864
|
CLIExitError
|
|
174861
174865
|
};
|
|
174862
174866
|
|
|
174863
|
-
//# debugId=
|
|
174867
|
+
//# debugId=3652DAAA8F8CC67B64756E2164756E21
|