Force.com Metadata WSDL parser and types generator
Simple Force.com Metadata WSDL parser and types generator.
WARNING: this project is not stable yet and any API can change.
The result of the parser is an object containing ComplexTypes and SimpleTypes.
On top of this parser is built a types generator.
You can see the resulting
types
in another project.
If you need already generated types
or read/write metadata files,
you can use the
salesforce-metadata
project published to npm instead.
generateTypesFromMetadataWSDL({
outputFile: "types.ts",
metadataVersion: "47"
});
You can also import the LATEST_METADATA_VERSION constant.
To read MetadataWSDL, you have two options,readMetadataWSDLByVersion
and readMetadataWSDLFromPath
.
Then parse types using parseMetadataWSDL
function.
readMetadataWSDLByVersion("47")
.then(parseMetadataWSDL)
.then(({complexTypes, simpleTypes}: ParsedMetadataWSDL) => {});