How salesforce-marketingcloud/mcsdk-automation-framework-node works
This repository automates generation of the Salesforce Marketing Cloud Node SDK. Its main workflow is an integration-runner entry point that supplies a custom generator: Swagger Codegen produces SDK files from a spec and custom templates, then a Node script scans generated API classes and writes Client.js. The README also identifies the Mustache templates and Client generator as customization points. The integration runner and its configuration bootstrap are external dependencies; the excerpts show how they are invoked or imported, but not their internal behavior.
Main entry points: generator.py SDK generator · generateClient.js Client generator script · main.py Run integration · bootstrap.py Bootstrap config
Components 14
Integration control
- Run integration
src/integrator/main.py - Bootstrap config
src/integrator/bootstrap.py
SDK generation
- SDK generator
src/integrator/codebase/generator.py - Swagger Codegen
- Mustache templates
resources/templates/mustache - Codegen config
resources/config/swagger-codegen-config.json
Client generation
- Client generator script
src/generator/clientGenerator/generateClient.js - Client template
src/generator/clientGenerator/clientTemplate.txt - Getter template
src/generator/clientGenerator/getterTemplate.txt - Generated API classes
Other components
- Integration runner
- Swagger spec
- SDK output
- Generated Client.js
Connections 13
- Run integration → Bootstrap config: imports config
src/integrator/main.py - Run integration → Integration runner: starts runner
src/integrator/main.py - Run integration → SDK generator: passes generator
src/integrator/main.py - SDK generator → Swagger Codegen: runs generation
src/integrator/codebase/generator.py - SDK generator → Swagger spec: reads spec
src/integrator/codebase/generator.py - SDK generator → Mustache templates: uses templates
src/integrator/codebase/generator.py - SDK generator → Codegen config: uses config
src/integrator/codebase/generator.py - Swagger Codegen → SDK output: writes SDK
- SDK generator → Client generator script: runs script
src/integrator/codebase/generator.py - Client generator script → Generated API classes: scans classes
src/generator/clientGenerator/generateClient.js - Client generator script → Client template: reads template
src/generator/clientGenerator/generateClient.js - Client generator script → Getter template: reads template
src/generator/clientGenerator/generateClient.js - Client generator script → Generated Client.js: writes Client.js
src/generator/clientGenerator/generateClient.js