Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate avs with tsp #2567

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

generate avs with tsp #2567

wants to merge 6 commits into from

Conversation

kazrael2119
Copy link
Contributor

@kazrael2119 kazrael2119 commented Jun 11, 2024

build failed

 File is included via import here.
  src/classic/virtualMachines/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/placementPolicies/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/scriptPackages/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/scriptCmdlets/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/scriptExecutions/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/iscsiPaths/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/aVSClient.ts:112:41
    112 export { AVSClientOptionalParams } from "./api/avsContext.js";
                                                ~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  .tshy/esm.json:4:5
    4     "../src/**/*.ts",
          ~~~~~~~~~~~~~~~~
    File is matched by include pattern specified here.

src/api/scriptExecutions/index.ts:79:5 - error TS2322: Type '{ id: string | undefined; name: string | undefined; type: string | undefined; systemData: { createdBy: string | undefined; createdByType: CreatedByType; createdAt: Date | undefined; lastModifiedBy: string | undefined; lastModifiedByType: CreatedByType; lastModifiedAt: Date | undefined; } | undefined; properties: { ....' is not assignable to type 'ScriptExecution[]'.
  Type '{ id: string | undefined; name: string | undefined; type: string | undefined; systemData: { createdBy: string | undefined; createdByType: CreatedByType; createdAt: Date | undefined; lastModifiedBy: string | undefined; lastModifiedByType: CreatedByType; lastModifiedAt: Date | undefined; } | undefined; properties: { ....' is not assignable to type 'ScriptExecution'.
    Types of property 'properties' are incompatible.
      Type '{ scriptCmdletId: string | undefined; parameters: ScriptExecutionParameterOutput[] | undefined; hiddenParameters: ScriptExecutionParameterOutput[] | undefined; ... 11 more ...; errors: string[] | undefined; } | undefined' is not assignable to type 'ScriptExecutionProperties | undefined'.
        Type '{ scriptCmdletId: string | undefined; parameters: ScriptExecutionParameterOutput[] | undefined; hiddenParameters: ScriptExecutionParameterOutput[] | undefined; ... 11 more ...; errors: string[] | undefined; }' is not assignable to type 'ScriptExecutionProperties'.
          Types of property 'parameters' are incompatible.
            Type 'ScriptExecutionParameterOutput[] | undefined' is not assignable to type 'ScriptExecutionParameterUnion[] | undefined'.
              Type 'ScriptExecutionParameterOutput[]' is not assignable to type 'ScriptExecutionParameterUnion[]'.
                Type 'ScriptExecutionParameterOutput' is not assignable to type 'ScriptExecutionParameterUnion'.
                  Type 'ScriptExecutionParameterOutputParent' is not assignable to type 'ScriptExecutionParameterUnion'.
                    Type 'ScriptExecutionParameterOutputParent' is not assignable to type 'PSCredentialExecutionParameter'.
                      Types of property 'type' are incompatible.
                        Type 'string' is not assignable to type '"Credential"'.

79     value: result.body["value"].map((p) => {
       ~~~~~

  src/models/models.ts:188:3
    188   value: ScriptExecution[];
          ~~~~~
    The expected type comes from property 'value' which is declared here on type '_ScriptExecutionsList'

src/api/scriptExecutions/index.ts:219:5 - error TS2322: Type '{ scriptCmdletId: string | undefined; parameters: ScriptExecutionParameterOutput[] | undefined; hiddenParameters: ScriptExecutionParameterOutput[] | undefined; ... 11 more ...; errors: string[] | undefined; } | undefined' is not assignable to type 'ScriptExecutionProperties | undefined'.
  Type '{ scriptCmdletId: string | undefined; parameters: ScriptExecutionParameterOutput[] | undefined; hiddenParameters: ScriptExecutionParameterOutput[] | undefined; ... 11 more ...; errors: string[] | undefined; }' is not assignable to type 'ScriptExecutionProperties'.
    Types of property 'parameters' are incompatible.
      Type 'ScriptExecutionParameterOutput[] | undefined' is not assignable to type 'ScriptExecutionParameterUnion[] | undefined'.

219     properties: !result.body.properties
        ~~~~~~~~~~

  src/models/models.ts:196:3
    196   properties?: ScriptExecutionProperties;
          ~~~~~~~~~~
    The expected type comes from property 'properties' which is declared here on type 'ScriptExecution'

src/api/scriptExecutions/index.ts:348:5 - error TS2322: Type '{ scriptCmdletId: string | undefined; parameters: ScriptExecutionParameterOutput[] | undefined; hiddenParameters: ScriptExecutionParameterOutput[] | undefined; ... 11 more ...; errors: string[] | undefined; } | undefined' is not assignable to type 'ScriptExecutionProperties | undefined'.
  Type '{ scriptCmdletId: string | undefined; parameters: ScriptExecutionParameterOutput[] | undefined; hiddenParameters: ScriptExecutionParameterOutput[] | undefined; ... 11 more ...; errors: string[] | undefined; }' is not assignable to type 'ScriptExecutionProperties'.
    Types of property 'parameters' are incompatible.
      Type 'ScriptExecutionParameterOutput[] | undefined' is not assignable to type 'ScriptExecutionParameterUnion[] | undefined'.

348     properties: !result.body.properties
        ~~~~~~~~~~

  src/models/models.ts:196:3
    196   properties?: ScriptExecutionProperties;
          ~~~~~~~~~~
    The expected type comes from property 'properties' which is declared here on type 'ScriptExecution'

src/api/scriptExecutions/index.ts:546:5 - error TS2322: Type '{ scriptCmdletId: string | undefined; parameters: ScriptExecutionParameterOutput[] | undefined; hiddenParameters: ScriptExecutionParameterOutput[] | undefined; ... 11 more ...; errors: string[] | undefined; } | undefined' is not assignable to type 'ScriptExecutionProperties | undefined'.
  Type '{ scriptCmdletId: string | undefined; parameters: ScriptExecutionParameterOutput[] | undefined; hiddenParameters: ScriptExecutionParameterOutput[] | undefined; ... 11 more ...; errors: string[] | undefined; }' is not assignable to type 'ScriptExecutionProperties'.
    Types of property 'parameters' are incompatible.
      Type 'ScriptExecutionParameterOutput[] | undefined' is not assignable to type 'ScriptExecutionParameterUnion[] | undefined'.

546     properties: !result.body.properties
        ~~~~~~~~~~

  src/models/models.ts:196:3
    196   properties?: ScriptExecutionProperties;
          ~~~~~~~~~~
    The expected type comes from property 'properties' which is declared here on type 'ScriptExecution'

src/aVSClient.ts:112:41 - error TS1149: File name 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/api/avsContext.ts' differs from already included file name 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/api/aVSContext.ts' only in casing.     
  The file is in the program because:
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/operations/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/locations/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/privateClouds/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/clusters/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/datastores/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/hcxEnterpriseSites/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/authorizations/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/globalReachConnections/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/workloadNetworks/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/workloadNetworkSegments/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/workloadNetworkDhcpConfigurations/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/workloadNetworkGateways/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/workloadNetworkPortMirroringProfiles/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/workloadNetworkVmGroups/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/workloadNetworkVirtualMachines/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/workloadNetworkDnsServices/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/workloadNetworkDnsZones/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/workloadNetworkPublicIps/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/cloudLinks/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/addons/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/virtualMachines/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/placementPolicies/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/scriptPackages/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/scriptCmdlets/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/scriptExecutions/index.ts'
    Imported via "../../api/aVSContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/classic/iscsiPaths/index.ts'
    Imported via "./avsContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/api/index.ts'
    Imported via "./api/avsContext.js" from file 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/aVSClient.ts'
    Matched by include pattern '../src/**/*.ts' in '.tshy/esm.json'
  File is ECMAScript module because 'D:/Js-sdk-sync/uprepo/packages/typespec-test/test/Microsoft.AVS/generated/typespec-ts/src/package.json' has field "type" with value "module"

112 export { AVSClientOptionalParams } from "./api/avsContext.js";
                                            ~~~~~~~~~~~~~~~~~~~~~

  src/classic/operations/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/locations/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/privateClouds/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/clusters/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/datastores/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/hcxEnterpriseSites/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/authorizations/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/globalReachConnections/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/workloadNetworks/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/workloadNetworkSegments/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/workloadNetworkDhcpConfigurations/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/workloadNetworkGateways/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/workloadNetworkPortMirroringProfiles/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/workloadNetworkVmGroups/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/workloadNetworkVirtualMachines/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/workloadNetworkDnsServices/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/workloadNetworkDnsZones/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/workloadNetworkPublicIps/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/cloudLinks/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/addons/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/virtualMachines/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/placementPolicies/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/scriptPackages/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/scriptCmdlets/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/scriptExecutions/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/classic/iscsiPaths/index.ts:4:28
    4 import { AVSContext } from "../../api/aVSContext.js";
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  src/api/index.ts:8:8
    8 } from "./avsContext.js";
             ~~~~~~~~~~~~~~~~~
    File is included via import here.
  .tshy/esm.json:4:5
    4     "../src/**/*.ts",
          ~~~~~~~~~~~~~~~~
    File is matched by include pattern specified here.

src/rest/outputModels.ts:393:12 - error TS7008: Member 'provisioningState' implicitly has an 'any' type.

393   readonly provisioningState?;
               ~~~~~~~~~~~~~~~~~

src/rest/outputModels.ts:488:12 - error TS7008: Member 'provisioningState' implicitly has an 'any' type.

488   readonly provisioningState?;
               ~~~~~~~~~~~~~~~~~

src/rest/outputModels.ts:602:12 - error TS7008: Member 'provisioningState' implicitly has an 'any' type.

602   readonly provisioningState?;
               ~~~~~~~~~~~~~~~~~

src/rest/outputModels.ts:637:12 - error TS7008: Member 'provisioningState' implicitly has an 'any' type.

637   readonly provisioningState?;
               ~~~~~~~~~~~~~~~~~

src/rest/outputModels.ts:711:12 - error TS7008: Member 'provisioningState' implicitly has an 'any' type.

711   readonly provisioningState?;
               ~~~~~~~~~~~~~~~~~

src/rest/outputModels.ts:735:12 - error TS7008: Member 'provisioningState' implicitly has an 'any' type.

735   readonly provisioningState?;
               ~~~~~~~~~~~~~~~~~

src/rest/outputModels.ts:794:12 - error TS7008: Member 'provisioningState' implicitly has an 'any' type.

794   readonly provisioningState?;
               ~~~~~~~~~~~~~~~~~

src/rest/outputModels.ts:818:12 - error TS7008: Member 'provisioningState' implicitly has an 'any' type.

818   readonly provisioningState?;
               ~~~~~~~~~~~~~~~~~

src/rest/outputModels.ts:838:12 - error TS7008: Member 'provisioningState' implicitly has an 'any' type.

838   readonly provisioningState?;
               ~~~~~~~~~~~~~~~~~

src/rest/outputModels.ts:850:12 - error TS7008: Member 'provisioningState' implicitly has an 'any' type.

850   readonly provisioningState?;
               ~~~~~~~~~~~~~~~~~

src/rest/outputModels.ts:919:12 - error TS7008: Member 'provisioningState' implicitly has an 'any' type.

919   readonly provisioningState?;
               ~~~~~~~~~~~~~~~~~

src/rest/outputModels.ts:951:12 - error TS7008: Member 'provisioningState' implicitly has an 'any' type.

951   readonly provisioningState?;
               ~~~~~~~~~~~~~~~~~

src/rest/outputModels.ts:1008:12 - error TS7008: Member 'provisioningState' implicitly has an 'any' type.

1008   readonly provisioningState?;
                ~~~~~~~~~~~~~~~~~

src/rest/outputModels.ts:1028:12 - error TS7008: Member 'provisioningState' implicitly has an 'any' type.

1028   readonly provisioningState?;
                ~~~~~~~~~~~~~~~~~

src/utils/deserializeUtil.ts:21:28 - error TS2304: Cannot find name 'PlacementPolicyState'.

21     state: obj["state"] as PlacementPolicyState,
                              ~~~~~~~~~~~~~~~~~~~~

src/utils/deserializeUtil.ts:25:42 - error TS2304: Cannot find name 'AffinityType'.

25     affinityType: obj["affinityType"] as AffinityType,
                                            ~~~~~~~~~~~~

src/utils/deserializeUtil.ts:35:28 - error TS2304: Cannot find name 'PlacementPolicyState'.

35     state: obj["state"] as PlacementPolicyState,
                              ~~~~~~~~~~~~~~~~~~~~

src/utils/deserializeUtil.ts:40:42 - error TS2304: Cannot find name 'AffinityType'.

40     affinityType: obj["affinityType"] as AffinityType,
                                            ~~~~~~~~~~~~

src/utils/deserializeUtil.ts:41:50 - error TS2304: Cannot find name 'AffinityStrength'.

41     affinityStrength: obj["affinityStrength"] as AffinityStrength,
                                                    ~~~~~~~~~~~~~~~~

src/utils/deserializeUtil.ts:44:10 - error TS2304: Cannot find name 'AzureHybridBenefitType'.

44     ] as AzureHybridBenefitType,
            ~~~~~~~~~~~~~~~~~~~~~~

src/utils/deserializeUtil.ts:62:7 - error TS2322: Type 'PlacementPolicyPropertiesOutput' is not assignable to type 'PlacementPolicyPropertiesUnion'.
  Type 'PlacementPolicyPropertiesOutputParent' is not assignable to type 'PlacementPolicyPropertiesUnion'.
    Type 'PlacementPolicyPropertiesOutputParent' is missing the following properties from type 'VmHostPlacementPolicyProperties': vmMembers, hostMembers, affinityType

62       return obj;
         ~~~~~~


Found 27 errors in 5 files.

Errors  Files
     1  src/api/index.ts:8
     4  src/api/scriptExecutions/index.ts:79
     1  src/aVSClient.ts:112
    14  src/rest/outputModels.ts:393
     7  src/utils/deserializeUtil.ts:21
writing tsconfig files...
using existing tsconfig.json
building D:\Js-sdk-sync\uprepo\packages\typespec-test\test\Microsoft.AVS\generated\typespec-ts

@MaryGao
Copy link
Member

MaryGao commented Jul 31, 2024

I have a chance to debug this issue and this is because the client name AVS would be normalized with different rules. In our reference it is taken as avsClient. But in ts-morph when used as file path it is normalized as aVSClient.

I will wait for @joheredi's ref management integration to see if this could be resolved.

@microsoft-github-policy-service microsoft-github-policy-service bot added the no-recent-activity There has been no recent activity on this issue. label Oct 4, 2024
Copy link
Contributor

Hi @kazrael2119. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days.

@qiaozha qiaozha assigned kazrael2119 and qiaozha and unassigned MaryGao Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-recent-activity There has been no recent activity on this issue. smoke-failure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants