Azure / autorest.typescript

Extension for AutoRest (https://github.com/Azure/autorest) that generates TypeScript code. The transpiled javascript code is isomorphic. It can be run in browser and in node.js environment.
MIT License
177 stars 73 forks source link

[Epic] list all the manual changes in mongocluster generation #2638

Open kazrael2119 opened 3 days ago

kazrael2119 commented 3 days ago

manully changes for https://github.com/Azure/azure-sdk-for-js/pull/30102

  1. before generate code, add
    @@clientName(Microsoft.DocumentDB,
    "MongoClusterManagementClient",
    "javascript"
    );

    in client .tsp

add

"@azure-tools/typespec-ts":
    azureSdkForJs: true
    isModularLibrary: true
    generateMetadata: true
    hierarchyClient: false
    experimentalExtensibleEnums: true
    package-name: "@azure/arm-mongocluster"
    flavor: "azure"
    packageDetails:
      name: "@azure/arm-mongocluster"
      description: "DocumentDB MongoCluster Service"

in tspconfig.yaml

  1. update the recordedClient.ts
  2. set timeout in vitest.browser.config.ts and vitest.browser.ts
  3. add LICENSE file
  4. use changelog-tool to generate changelog
  5. update readme.md
  6. update ClientOptions to ClientOptionalParams manually
  7. update the sdk-type to mgmt in package.json
  8. update the version to1.0.0-beta.1 after generate the changelog
### Tasks
- [ ] https://github.com/Azure/autorest.typescript/issues/2639
- [ ] https://github.com/Azure/autorest.typescript/issues/2640
- [ ] https://github.com/Azure/autorest.typescript/issues/2641
- [ ] https://github.com/Azure/autorest.typescript/issues/2642
- [ ] https://github.com/Azure/autorest.typescript/issues/2637
- [ ] https://github.com/Azure/autorest.typescript/issues/2633
- [ ] https://github.com/Azure/autorest.typescript/issues/2644
- [ ] https://github.com/Azure/azure-sdk-tools/issues/8522