salesforce-wsdl-consumer
TypeScript icon, indicating that this package has built-in type declarations

0.0.13 • Public • Published

salesforce-wsdl-consumer

npm version

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.

Usage

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) => {});

Package Sidebar

Install

npm i salesforce-wsdl-consumer

Weekly Downloads

64

Version

0.0.13

License

apache-2.0

Unpacked Size

821 kB

Total Files

24

Last publish

Collaborators

  • kratoon