ChuckJonas / ts-force

A Salesforce REST Client written in Typescript for Typescript
88 stars 21 forks source link

Refactor ts-force-gen #37

Open ChuckJonas opened 7 years ago

ChuckJonas commented 7 years ago

its a mess

CarsonF commented 4 years ago

I'm thinking about this too.

It would be nice to have the steps broken out and configurable.

  1. Pull all relevant data from Salesforce.
    Probably with filters applied so we don't over-fetch data.
  2. Tweak & add data needed for types. a. Exclude fields b. Convert API names to clean property names c. Renaming duplicate fields c. Anything else. The more logic we can move to this step the simpler the type generation will be.
  3. Based on output from above step generate types

The smaller we can get the functions the more customizable it will be.