Coder Social home page Coder Social logo

oliverflint / xrmtypesgen Goto Github PK

View Code? Open in Web Editor NEW
14.0 1.0 5.0 595 KB

A Typescript Type Declaration Generator for Dynamics 365

License: MIT License

JavaScript 1.45% TypeScript 95.92% Handlebars 2.63%
dynmaics 356 typescript javascript dataverse powerapps dynamics-365

xrmtypesgen's People

Contributors

oliverflint avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

xrmtypesgen's Issues

Add support for @types/xrm@v8

There are still a lot of old on premise implementations working with @types/xrm v8, I happen work on a project like this daily ๐Ÿ˜€
It would be nice to support those projects too.

option name & npm warning

  1. The /tenent switch should be /tenant
  2. Getting a warning during install
    image

*I found this article and wanted to get your thoughts on the claim

The first thing to be aware of is that @types/xrm and XrmDefinitelyTyped are incompatible with each other. You cannot have the DefinitelyTyped type definitions in the same compilation context as the XrmDefinitelyTyped definitions.

https://dyncrmexp.com/2020/06/28/modern-web-resource-workspace-in-dynamics-365-part-2-declaration-files/comment-page-1/

[Feature Request] Filter Generated Forms

It would be nice to have an option to read the configuration from file, so that we could add more advanced filters. Like white lists, or black lists for forms or entities. Or specify a list of forms. for example a file XrmTypesGen.config.json like this:

{
  "entities": {
      "account": "Account",
      "contact": ["Contact", "Information"],
      "lead": true
  }
}

Failed to generate with auto generated tab names

When running xrmtypesgen and a form has a tab with an auto generated Guid name it fails with the following error message:

(node:35236) UnhandledPromiseRejectionWarning: SyntaxError: An identifier or keyword cannot immediately follow a numeric literal. (382:79)
  380 |                 * @returns `Xrm.Controls.Tab`.
  381 |                 */
> 382 |                 get(tabname: "{695e07fd-fedf-4e04-ba92-366f59c2c2a2}"): 695e07fdfedf4e04ba92366f59c2c2a2TabControl
      |                                                                               ^
  383 |             }
  384 | 
  385 |             type 695e07fdfedf4e04ba92366f59c2c2a2TabControl = Xrm.Controls.Tab & {
    at e (C:\dev\Test\node_modules\prettier\parser-typescript.js:1:322)
    at Object.parse (C:\dev\Test\node_modules\prettier\parser-typescript.js:1:3072720)
    at Object.parse (C:\dev\Test\node_modules\prettier\index.js:13625:19)
    at coreFormat (C:\dev\Test\node_modules\prettier\index.js:14899:14)
    at format (C:\dev\Test\node_modules\prettier\index.js:15131:14)
    at C:\dev\Test\node_modules\prettier\index.js:57542:12
    at Object.format (C:\dev\Test\node_modules\prettier\index.js:57562:12)
    at Object.render (C:\dev\Test\node_modules\xrmtypesgen\dist\renderer.js:26:34)
    at C:\dev\Test\node_modules\xrmtypesgen\dist\index.js:60:33
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.