@major-tech/resource-client 0.2.12 → 0.2.13

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.
@@ -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 | storage-s3
11
+ * Types: database-postgresql | database-mssql | database-dynamodb | database-cosmosdb | database-snowflake | api-hubspot | api-googlesheets | api-custom | api-lambda | 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"
@@ -148,6 +148,7 @@ function getClientClass(type) {
148
148
  'api-custom': 'CustomApiResourceClient',
149
149
  'api-hubspot': 'HubSpotResourceClient',
150
150
  'api-googlesheets': 'GoogleSheetsResourceClient',
151
+ 'api-lambda': 'LambdaResourceClient',
151
152
  'storage-s3': 'S3ResourceClient',
152
153
  };
153
154
  return typeMap[type] || 'PostgresResourceClient';
@@ -182,7 +183,7 @@ function generateIndexFile(resources) {
182
183
  }
183
184
 
184
185
  function addResource(resourceId, name, type, description, applicationId, framework) {
185
- const validTypes = ['database-postgresql', 'database-mssql', 'database-dynamodb', 'database-cosmosdb', 'database-snowflake', 'api-hubspot', 'api-googlesheets', 'api-custom', 'storage-s3'];
186
+ const validTypes = ['database-postgresql', 'database-mssql', 'database-dynamodb', 'database-cosmosdb', 'database-snowflake', 'api-hubspot', 'api-googlesheets', 'api-custom', 'api-lambda', 'storage-s3'];
186
187
  if (!validTypes.includes(type)) {
187
188
  console.error(`❌ Invalid type: ${type}`);
188
189
  console.error(` Valid types: ${validTypes.join(', ')}`);
@@ -319,7 +320,7 @@ function main() {
319
320
  console.log(' npx @major-tech/resource-client add <resource_id> <name> <type> <description> <application_id> [--framework <nextjs|vite>]');
320
321
  console.log(' npx @major-tech/resource-client remove <name> [--framework <nextjs|vite>]');
321
322
  console.log(' npx @major-tech/resource-client list');
322
- console.log('\nTypes: database-postgresql | database-mssql | database-dynamodb | database-cosmosdb | database-snowflake | api-hubspot | api-googlesheets | api-custom | storage-s3');
323
+ console.log('\nTypes: database-postgresql | database-mssql | database-dynamodb | database-cosmosdb | database-snowflake | api-hubspot | api-googlesheets | api-custom | api-lambda | storage-s3');
323
324
  return;
324
325
  }
325
326
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@major-tech/resource-client",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "description": "TypeScript client library for invoking Major resources (PostgreSQL, Custom APIs, HubSpot, S3)",
5
5
  "type": "module",
6
6
  "sideEffects": false,