@base44-preview/cli 0.0.38-pr.367.b6e4ca6 → 0.0.38-pr.367.bb5ab60
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 +13 -11
- package/dist/cli/index.js.map +4 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -233488,15 +233488,19 @@ var AvailableIntegrationSchema = exports_external.object({
|
|
|
233488
233488
|
integration_type: exports_external.string().min(1),
|
|
233489
233489
|
display_name: exports_external.string(),
|
|
233490
233490
|
description: exports_external.string(),
|
|
233491
|
+
notes: exports_external.string().nullable(),
|
|
233492
|
+
usage_guide: exports_external.string().nullable(),
|
|
233491
233493
|
connection_config_fields: exports_external.array(ConnectionConfigFieldSchema)
|
|
233492
233494
|
});
|
|
233493
233495
|
var ListAvailableIntegrationsResponseSchema = exports_external.object({
|
|
233494
|
-
|
|
233496
|
+
available_integrations: exports_external.array(AvailableIntegrationSchema)
|
|
233495
233497
|
}).transform((data) => ({
|
|
233496
|
-
|
|
233498
|
+
availableIntegrations: data.available_integrations.map((i) => ({
|
|
233497
233499
|
integrationType: i.integration_type,
|
|
233498
233500
|
displayName: i.display_name,
|
|
233499
233501
|
description: i.description,
|
|
233502
|
+
notes: i.notes,
|
|
233503
|
+
usageGuide: i.usage_guide,
|
|
233500
233504
|
connectionConfigFields: i.connection_config_fields.map((f) => ({
|
|
233501
233505
|
name: f.name,
|
|
233502
233506
|
displayName: f.display_name,
|
|
@@ -242270,23 +242274,21 @@ function getWhoamiCommand(context) {
|
|
|
242270
242274
|
|
|
242271
242275
|
// src/cli/commands/connectors/list-available.ts
|
|
242272
242276
|
async function listAvailableAction() {
|
|
242273
|
-
const {
|
|
242277
|
+
const { availableIntegrations } = await runTask("Fetching available integrations from Base44", async () => {
|
|
242274
242278
|
return await listAvailableIntegrations();
|
|
242275
242279
|
}, {
|
|
242276
242280
|
successMessage: "Available integrations fetched successfully",
|
|
242277
242281
|
errorMessage: "Failed to fetch available integrations"
|
|
242278
242282
|
});
|
|
242279
|
-
if (
|
|
242283
|
+
if (availableIntegrations.length === 0) {
|
|
242280
242284
|
return { outroMessage: "No available integrations found." };
|
|
242281
242285
|
}
|
|
242282
|
-
for (const
|
|
242283
|
-
|
|
242284
|
-
|
|
242285
|
-
${theme.styles.dim(i2.description)}` : "";
|
|
242286
|
-
R2.info(label + desc2);
|
|
242286
|
+
for (const integration of availableIntegrations) {
|
|
242287
|
+
R2.info(`${theme.styles.bold(integration.displayName)} ${theme.styles.dim(`(${integration.integrationType})`)}${integration.description ? `
|
|
242288
|
+
${theme.styles.dim(integration.description)}` : ""}`);
|
|
242287
242289
|
}
|
|
242288
242290
|
return {
|
|
242289
|
-
outroMessage: `Found ${
|
|
242291
|
+
outroMessage: `Found ${availableIntegrations.length} available integrations.`
|
|
242290
242292
|
};
|
|
242291
242293
|
}
|
|
242292
242294
|
function getConnectorsListAvailableCommand(context) {
|
|
@@ -250910,4 +250912,4 @@ export {
|
|
|
250910
250912
|
CLIExitError
|
|
250911
250913
|
};
|
|
250912
250914
|
|
|
250913
|
-
//# debugId=
|
|
250915
|
+
//# debugId=35BD46803B68EE0A64756E2164756E21
|