@major-tech/resource-client 0.2.14 → 0.2.15
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/bin/generate-clients.mjs +4 -3
- package/package.json +1 -1
package/bin/generate-clients.mjs
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* npx @major-tech/resource-client remove <name>
|
|
9
9
|
* npx @major-tech/resource-client list
|
|
10
10
|
*
|
|
11
|
-
* Types: database-postgresql | database-mssql | database-dynamodb | database-cosmosdb | database-snowflake | api-hubspot | api-googlesheets | api-custom | api-lambda | storage-s3
|
|
11
|
+
* Types: database-postgresql | database-mssql | database-dynamodb | database-cosmosdb | database-snowflake | api-hubspot | api-googlesheets | api-custom | api-lambda | api-salesforce | storage-s3
|
|
12
12
|
*
|
|
13
13
|
* Examples:
|
|
14
14
|
* npx @major-tech/resource-client add "abc-123" "orders-db" "database-postgresql" "Orders database" "app-123"
|
|
@@ -149,6 +149,7 @@ function getClientClass(type) {
|
|
|
149
149
|
'api-hubspot': 'HubSpotResourceClient',
|
|
150
150
|
'api-googlesheets': 'GoogleSheetsResourceClient',
|
|
151
151
|
'api-lambda': 'LambdaResourceClient',
|
|
152
|
+
'api-salesforce': 'SalesforceResourceClient',
|
|
152
153
|
'storage-s3': 'S3ResourceClient',
|
|
153
154
|
};
|
|
154
155
|
return typeMap[type] || 'PostgresResourceClient';
|
|
@@ -183,7 +184,7 @@ function generateIndexFile(resources) {
|
|
|
183
184
|
}
|
|
184
185
|
|
|
185
186
|
function addResource(resourceId, name, type, description, applicationId, framework) {
|
|
186
|
-
const validTypes = ['database-postgresql', 'database-mssql', 'database-dynamodb', 'database-cosmosdb', 'database-snowflake', 'api-hubspot', 'api-googlesheets', 'api-custom', 'api-lambda', 'storage-s3'];
|
|
187
|
+
const validTypes = ['database-postgresql', 'database-mssql', 'database-dynamodb', 'database-cosmosdb', 'database-snowflake', 'api-hubspot', 'api-googlesheets', 'api-custom', 'api-lambda', 'api-salesforce', 'storage-s3'];
|
|
187
188
|
if (!validTypes.includes(type)) {
|
|
188
189
|
console.error(`❌ Invalid type: ${type}`);
|
|
189
190
|
console.error(` Valid types: ${validTypes.join(', ')}`);
|
|
@@ -320,7 +321,7 @@ function main() {
|
|
|
320
321
|
console.log(' npx @major-tech/resource-client add <resource_id> <name> <type> <description> <application_id> [--framework <nextjs|vite>]');
|
|
321
322
|
console.log(' npx @major-tech/resource-client remove <name> [--framework <nextjs|vite>]');
|
|
322
323
|
console.log(' npx @major-tech/resource-client list');
|
|
323
|
-
console.log('\nTypes: database-postgresql | database-mssql | database-dynamodb | database-cosmosdb | database-snowflake | api-hubspot | api-googlesheets | api-custom | api-lambda | storage-s3');
|
|
324
|
+
console.log('\nTypes: database-postgresql | database-mssql | database-dynamodb | database-cosmosdb | database-snowflake | api-hubspot | api-googlesheets | api-custom | api-lambda | api-salesforce | storage-s3');
|
|
324
325
|
return;
|
|
325
326
|
}
|
|
326
327
|
|
package/package.json
CHANGED