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