From 8952fca32a55b959e63873206924227708f56eea Mon Sep 17 00:00:00 2001 From: Maor Leger Date: Thu, 14 Nov 2024 22:53:14 +0000 Subject: [PATCH 1/3] autorest: include file extensions in generated code --- .../src/generators/clientFileGenerator.ts | 54 ++++++++--------- .../src/generators/operationGenerator.ts | 58 +++++++++---------- .../generators/operationInterfaceGenerator.ts | 2 +- .../src/generators/parametersGenerator.ts | 2 +- .../src/generators/utils/pagingOperations.ts | 8 +-- 5 files changed, 58 insertions(+), 66 deletions(-) diff --git a/packages/autorest.typescript/src/generators/clientFileGenerator.ts b/packages/autorest.typescript/src/generators/clientFileGenerator.ts index 3cce12bc59..ac2c1d00f9 100644 --- a/packages/autorest.typescript/src/generators/clientFileGenerator.ts +++ b/packages/autorest.typescript/src/generators/clientFileGenerator.ts @@ -142,7 +142,7 @@ export function generateClient(clientDetails: ClientDetails, project: Project) { }); clientFile.addImportDeclaration({ namedImports: ["createLroSpec"], - moduleSpecifier: `./lroImpl` + moduleSpecifier: `./lroImpl.js` }); } @@ -156,7 +156,7 @@ export function generateClient(clientDetails: ClientDetails, project: Project) { true /* shouldGuard */ )}Impl` ), - moduleSpecifier: "./operations" + moduleSpecifier: "./operations/index.js" }); clientFile.addImportDeclaration({ @@ -168,7 +168,7 @@ export function generateClient(clientDetails: ClientDetails, project: Project) { true /* shouldGuard */ )}` ), - moduleSpecifier: "./operationsInterfaces" + moduleSpecifier: "./operationsInterfaces/index.js" }); } @@ -176,7 +176,7 @@ export function generateClient(clientDetails: ClientDetails, project: Project) { addTracingOperationImports(clientFile, "."); clientFile.addImportDeclaration({ namespaceImport: "Parameters", - moduleSpecifier: "./models/parameters" + moduleSpecifier: "./models/parameters.js" }); } @@ -184,7 +184,7 @@ export function generateClient(clientDetails: ClientDetails, project: Project) { if (hasInlineOperations && hasMappers) { clientFile.addImportDeclaration({ namespaceImport: "Mappers", - moduleSpecifier: "./models/mappers" + moduleSpecifier: "./models/mappers.js" }); } @@ -193,8 +193,8 @@ export function generateClient(clientDetails: ClientDetails, project: Project) { extends: !useCoreV2 ? "coreHttp.ServiceClient" : coreHttpCompatMode - ? "coreHttpCompat.ExtendedServiceClient" - : "coreClient.ServiceClient", + ? "coreHttpCompat.ExtendedServiceClient" + : "coreClient.ServiceClient", isExported: true }); @@ -241,7 +241,7 @@ export function generateClient(clientDetails: ClientDetails, project: Project) { if (importedModels.size) { clientFile.addImportDeclaration({ namedImports: [...importedModels], - moduleSpecifier: "./models" + moduleSpecifier: "./models/index.js" }); } @@ -476,12 +476,11 @@ function writeConstructor( ]); if (useCoreV2 && apiVersionParam) { clientConstructor.addStatements( - `this.addCustomApiVersionPolicy(${ - !apiVersionParam.required || + `this.addCustomApiVersionPolicy(${!apiVersionParam.required || !!apiVersionParam.defaultValue || apiVersionParam.schemaType === SchemaType.Constant - ? "options." - : "" + ? "options." + : "" }apiVersion);` ); } @@ -667,9 +666,8 @@ function getTrack2DefaultContent( } `; - const defaultContent = `${ - clientDetails.hasTenantLevelOperation ? overloadDefaults : "" - } + const defaultContent = `${clientDetails.hasTenantLevelOperation ? overloadDefaults : "" + } // Initializing default values for options if (!options) { options = {}; @@ -677,9 +675,9 @@ function getTrack2DefaultContent( ${defaults} const packageDetails = \`azsdk-js-${packageDetails.name.replace( - /@.*\//, - "" - )}/${packageDetails.version}\`; + /@.*\//, + "" + )}/${packageDetails.version}\`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? \`\${options.userAgentOptions.userAgentPrefix} \${packageDetails}\` @@ -768,11 +766,11 @@ function writeDefaultOptions( return !useCoreV2 ? getTrack1DefaultContent(addScopes, hasCredentials) : getTrack2DefaultContent( - addScopes, - defaults, - packageDetails, - clientDetails - ); + addScopes, + defaults, + packageDetails, + clientDetails + ); } function isAddScopes( @@ -789,15 +787,13 @@ function isAddScopes( } function getEndpointStatement({ endpoint }: EndpointDetails) { - return `this.baseUri = options.endpoint ?? ${ - endpoint ? `"${endpoint}"` : `""` - };`; + return `this.baseUri = options.endpoint ?? ${endpoint ? `"${endpoint}"` : `""` + };`; } function getEndpoint({ endpoint }: EndpointDetails) { - return `options.endpoint ?? options.baseUri ?? ${ - endpoint ? `"${endpoint}"` : `""` - }`; + return `options.endpoint ?? options.baseUri ?? ${endpoint ? `"${endpoint}"` : `""` + }`; } function getRequiredParamAssignments(requiredParameters: ParameterDetails[]) { diff --git a/packages/autorest.typescript/src/generators/operationGenerator.ts b/packages/autorest.typescript/src/generators/operationGenerator.ts index 158cdf210a..aa3bafbc83 100644 --- a/packages/autorest.typescript/src/generators/operationGenerator.ts +++ b/packages/autorest.typescript/src/generators/operationGenerator.ts @@ -328,8 +328,8 @@ function buildRequestBody({ required = rb.required ? rb.required : rb.parameter.groupedBy && rb.parameter.groupedBy.required - ? rb.parameter.groupedBy.required - : required; + ? rb.parameter.groupedBy.required + : required; if (required) break; } @@ -526,7 +526,7 @@ function addClass( operationGroupFile.addImportDeclaration({ namedImports, - moduleSpecifier: "../models" + moduleSpecifier: "../models/index.js" }); } } @@ -750,14 +750,13 @@ function compileOperationOptionsToRequestOptionsBase( // In Lro we have a couple extra properties to add that's why we use // the private getOperationOptions function instead of the one in core-http return isLro - ? `this.getOperationOptions(${options}${ - lroResourceLocationConfig === undefined - ? "" - : `, "${lroResourceLocationConfig}"` - })` + ? `this.getOperationOptions(${options}${lroResourceLocationConfig === undefined + ? "" + : `, "${lroResourceLocationConfig}"` + })` : !useCoreV2 - ? `coreHttp.operationOptionsToRequestOptionsBase(options || {})` - : `options || {}`; + ? `coreHttp.operationOptionsToRequestOptionsBase(options || {})` + : `options || {}`; } function writeNoOverloadsOperationBody( @@ -910,11 +909,11 @@ function writeLroOperationBody( const sendOperationStatement = !useCoreV2 ? `const directSendOperation = async (args: coreHttp.OperationArguments, spec: coreHttp.OperationSpec): Promise<${responseName}> => { ${getTracingClientWithSpanStatement( - sendRequestStatement, - responseName, - isTracingEnabled, - spanName - )} + sendRequestStatement, + responseName, + isTracingEnabled, + spanName + )} }; const sendOperation = async (args: coreHttp.OperationArguments, spec: coreHttp.OperationSpec) => { const response = await directSendOperation(args, spec); @@ -956,21 +955,18 @@ function writeLroOperationBody( }}; }`; - const commonOptions = `intervalInMs: options?.updateIntervalInMs${ - lroResourceLocationConfig - ? `, ${ - useLegacyLro ? "lroResourceLocationConfig" : "resourceLocationConfig" - }: "${lroResourceLocationConfig.toLowerCase()}"` - : "" - }`; + const commonOptions = `intervalInMs: options?.updateIntervalInMs${lroResourceLocationConfig + ? `, ${useLegacyLro ? "lroResourceLocationConfig" : "resourceLocationConfig" + }: "${lroResourceLocationConfig.toLowerCase()}"` + : "" + }`; methodDeclaration.addStatements([ sendOperationStatement, `const lro = createLroSpec({sendOperationFn, args: ${operationParamsName}, spec: ${operationSpecName}})`, - `const poller = ${ - useLegacyLro - ? `new LroEngine(lro, { resumeFrom: options?.resumeFrom, ${commonOptions} })` - : `await createHttpPoller<${responseName}, OperationState<${responseName}>>(lro, { restoreFrom: options?.resumeFrom, ${commonOptions} })` + `const poller = ${useLegacyLro + ? `new LroEngine(lro, { resumeFrom: options?.resumeFrom, ${commonOptions} })` + : `await createHttpPoller<${responseName}, OperationState<${responseName}>>(lro, { restoreFrom: options?.resumeFrom, ${commonOptions} })` };`, "await poller.poll();", "return poller;" @@ -1254,7 +1250,7 @@ function addImports( operationGroupFile.addImportDeclaration({ namedImports: [`${operationGroupInterfaceName}`], - moduleSpecifier: "../operationsInterfaces" + moduleSpecifier: "../operationsInterfaces/index.js" }); if (!useCoreV2) { @@ -1284,14 +1280,14 @@ function addImports( if (mappers.length) { operationGroupFile.addImportDeclaration({ namespaceImport: "Mappers", - moduleSpecifier: "../models/mappers" + moduleSpecifier: "../models/mappers.js" }); } if (shouldImportParameters(clientDetails)) { operationGroupFile.addImportDeclaration({ namespaceImport: "Parameters", - moduleSpecifier: "../models/parameters" + moduleSpecifier: "../models/parameters.js" }); } @@ -1301,7 +1297,7 @@ function addImports( operationGroupFile.addImportDeclaration({ namedImports: [`${clientClassName}`], - moduleSpecifier: `../${clientFileName}` + moduleSpecifier: `../${clientFileName}.js` }); if (hasLroOperation(operationGroupDetails)) { @@ -1311,7 +1307,7 @@ function addImports( }); operationGroupFile.addImportDeclaration({ namedImports: ["createLroSpec"], - moduleSpecifier: `../lroImpl` + moduleSpecifier: `../lroImpl.js` }); } } diff --git a/packages/autorest.typescript/src/generators/operationInterfaceGenerator.ts b/packages/autorest.typescript/src/generators/operationInterfaceGenerator.ts index b37023bc50..808bf42028 100644 --- a/packages/autorest.typescript/src/generators/operationInterfaceGenerator.ts +++ b/packages/autorest.typescript/src/generators/operationInterfaceGenerator.ts @@ -164,7 +164,7 @@ function addInterface( operationGroupFile.addImportDeclaration({ namedImports, - moduleSpecifier: "../models" + moduleSpecifier: "../models/index.js" }); } } diff --git a/packages/autorest.typescript/src/generators/parametersGenerator.ts b/packages/autorest.typescript/src/generators/parametersGenerator.ts index 92625b1516..042109363a 100644 --- a/packages/autorest.typescript/src/generators/parametersGenerator.ts +++ b/packages/autorest.typescript/src/generators/parametersGenerator.ts @@ -46,7 +46,7 @@ export function generateParameters( if (importedMappers.length) { parametersFile.addImportDeclaration({ namedImports: importedMappers, - moduleSpecifier: "../models/mappers" + moduleSpecifier: "../models/mappers.js" }); } diff --git a/packages/autorest.typescript/src/generators/utils/pagingOperations.ts b/packages/autorest.typescript/src/generators/utils/pagingOperations.ts index 606cee3cd9..73a6016aa6 100644 --- a/packages/autorest.typescript/src/generators/utils/pagingOperations.ts +++ b/packages/autorest.typescript/src/generators/utils/pagingOperations.ts @@ -63,7 +63,7 @@ export function addPagingImports( }, { namedImports: ["setContinuationToken"], - moduleSpecifier: isClient ? "./pagingHelper" : "../pagingHelper" + moduleSpecifier: isClient ? "./pagingHelper.js" : "../pagingHelper.js" } ]); } @@ -227,9 +227,9 @@ export function writeAsyncIterators( }, nextMethod: nextMethodParameters ? { - name: `${operation.namePrefix}${nextOperationName}`, - parameters: nextMethodParameters - } + name: `${operation.namePrefix}${nextOperationName}`, + parameters: nextMethodParameters + } : undefined, publicMethod: { name: getPublicMethodName(operation), From 940b1f319b8be450415a0fb4ab2da87862e1a958 Mon Sep 17 00:00:00 2001 From: Maor Leger Date: Thu, 14 Nov 2024 23:07:50 +0000 Subject: [PATCH 2/3] autorest: include file extensions in exports --- .../autorest.typescript/src/generators/indexGenerator.ts | 6 +++--- .../src/generators/operationGenerator.ts | 2 +- .../src/generators/operationInterfaceGenerator.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/autorest.typescript/src/generators/indexGenerator.ts b/packages/autorest.typescript/src/generators/indexGenerator.ts index afe272ffc0..f197ab3670 100644 --- a/packages/autorest.typescript/src/generators/indexGenerator.ts +++ b/packages/autorest.typescript/src/generators/indexGenerator.ts @@ -25,14 +25,14 @@ function generateHLCIndex(clientDetails: ClientDetails, file: SourceFile) { if (clientDetails.options.hasPaging && !disablePagingAsyncIterators) { file.addStatements([`/// `]); file.addExportDeclaration({ - moduleSpecifier: "./pagingHelper", + moduleSpecifier: "./pagingHelper.js", namedExports: ["getContinuationToken"] }); } file.addExportDeclarations([ { - moduleSpecifier: "./models" + moduleSpecifier: "./models/index.js" }, { moduleSpecifier: `./${clientDetails.sourceFileName}`, @@ -47,7 +47,7 @@ function generateHLCIndex(clientDetails: ClientDetails, file: SourceFile) { if (operationGroups.length) { file.addExportDeclarations([ { - moduleSpecifier: "./operationsInterfaces" + moduleSpecifier: "./operationsInterfaces/index.js" } ]); } diff --git a/packages/autorest.typescript/src/generators/operationGenerator.ts b/packages/autorest.typescript/src/generators/operationGenerator.ts index aa3bafbc83..81a5b3a157 100644 --- a/packages/autorest.typescript/src/generators/operationGenerator.ts +++ b/packages/autorest.typescript/src/generators/operationGenerator.ts @@ -88,7 +88,7 @@ export function generateOperations( operationIndexFile.addExportDeclarations( fileNames.map(fileName => { return { - moduleSpecifier: `./${fileName}` + moduleSpecifier: `./${fileName}.js` } as ExportDeclarationStructure; }) ); diff --git a/packages/autorest.typescript/src/generators/operationInterfaceGenerator.ts b/packages/autorest.typescript/src/generators/operationInterfaceGenerator.ts index 808bf42028..059277a32c 100644 --- a/packages/autorest.typescript/src/generators/operationInterfaceGenerator.ts +++ b/packages/autorest.typescript/src/generators/operationInterfaceGenerator.ts @@ -67,7 +67,7 @@ export function generateOperationsInterfaces( operationIndexFile.addExportDeclarations( fileNames.map(fileName => { return { - moduleSpecifier: `./${fileName}` + moduleSpecifier: `./${fileName}.js` } as ExportDeclarationStructure; }) ); From 1b8d5541162d35e93816963a51b277750ec80f8c Mon Sep 17 00:00:00 2001 From: Maor Leger Date: Wed, 20 Nov 2024 23:36:35 +0000 Subject: [PATCH 3/3] run integration tests --- .../src/generators/indexGenerator.ts | 2 +- .../src/additionalPropertiesClient.ts | 6 +-- .../additionalProperties/src/index.ts | 6 +-- .../src/models/parameters.ts | 2 +- .../src/operations/index.ts | 2 +- .../src/operations/pets.ts | 10 ++--- .../src/operationsInterfaces/index.ts | 2 +- .../src/operationsInterfaces/pets.ts | 2 +- .../src/appConfigurationClient.ts | 8 ++-- .../generated/appconfiguration/src/index.ts | 6 +-- .../appconfiguration/src/models/parameters.ts | 2 +- .../src/appConfigurationClient.ts | 8 ++-- .../appconfigurationexport/src/index.ts | 6 +-- .../src/models/parameters.ts | 2 +- .../src/arrayConstraintsClient.ts | 6 +-- .../generated/arrayConstraints/src/index.ts | 4 +- .../attestation/src/generatedClient.ts | 6 +-- .../generated/attestation/src/index.ts | 6 +-- .../attestation/src/operations/index.ts | 2 +- .../attestation/src/operations/policy.ts | 10 ++--- .../src/operationsInterfaces/index.ts | 2 +- .../src/operationsInterfaces/policy.ts | 2 +- .../src/azureParameterGroupingClient.ts | 6 +-- .../azureParameterGrouping/src/index.ts | 6 +-- .../src/operations/index.ts | 2 +- .../src/operations/parameterGrouping.ts | 10 ++--- .../src/operationsInterfaces/index.ts | 2 +- .../operationsInterfaces/parameterGrouping.ts | 2 +- .../generated/azureReport/src/index.ts | 4 +- .../generated/azureReport/src/reportClient.ts | 6 +-- .../src/azureSpecialPropertiesClient.ts | 6 +-- .../azureSpecialProperties/src/index.ts | 6 +-- .../src/operations/apiVersionDefault.ts | 10 ++--- .../src/operations/apiVersionLocal.ts | 10 ++--- .../src/operations/header.ts | 10 ++--- .../src/operations/index.ts | 16 ++++---- .../src/operations/odata.ts | 10 ++--- .../src/operations/skipUrlEncoding.ts | 10 ++--- .../operations/subscriptionInCredentials.ts | 10 ++--- .../src/operations/subscriptionInMethod.ts | 10 ++--- .../src/operations/xMsClientRequestId.ts | 10 ++--- .../operationsInterfaces/apiVersionDefault.ts | 2 +- .../operationsInterfaces/apiVersionLocal.ts | 2 +- .../src/operationsInterfaces/header.ts | 2 +- .../src/operationsInterfaces/index.ts | 16 ++++---- .../src/operationsInterfaces/odata.ts | 2 +- .../operationsInterfaces/skipUrlEncoding.ts | 2 +- .../subscriptionInCredentials.ts | 2 +- .../subscriptionInMethod.ts | 2 +- .../xMsClientRequestId.ts | 2 +- .../bodyArray/src/bodyArrayClient.ts | 6 +-- .../generated/bodyArray/src/index.ts | 6 +-- .../bodyArray/src/operations/array.ts | 10 ++--- .../bodyArray/src/operations/index.ts | 2 +- .../src/operationsInterfaces/array.ts | 2 +- .../src/operationsInterfaces/index.ts | 2 +- .../bodyBoolean/src/bodyBooleanClient.ts | 6 +-- .../generated/bodyBoolean/src/index.ts | 6 +-- .../bodyBoolean/src/operations/bool.ts | 10 ++--- .../bodyBoolean/src/operations/index.ts | 2 +- .../src/operationsInterfaces/bool.ts | 2 +- .../src/operationsInterfaces/index.ts | 2 +- .../src/bodyBooleanQuirksClient.ts | 6 +-- .../generated/bodyBooleanQuirks/src/index.ts | 6 +-- .../bodyBooleanQuirks/src/operations/bool.ts | 10 ++--- .../bodyBooleanQuirks/src/operations/index.ts | 2 +- .../src/operationsInterfaces/bool.ts | 2 +- .../src/operationsInterfaces/index.ts | 2 +- .../generated/bodyByte/src/bodyByteClient.ts | 6 +-- .../generated/bodyByte/src/index.ts | 6 +-- .../generated/bodyByte/src/operations/byte.ts | 10 ++--- .../bodyByte/src/operations/index.ts | 2 +- .../bodyByte/src/operationsInterfaces/byte.ts | 2 +- .../src/operationsInterfaces/index.ts | 2 +- .../bodyComplex/src/bodyComplexClient.ts | 6 +-- .../generated/bodyComplex/src/index.ts | 6 +-- .../bodyComplex/src/models/parameters.ts | 2 +- .../bodyComplex/src/operations/array.ts | 10 ++--- .../bodyComplex/src/operations/basic.ts | 10 ++--- .../bodyComplex/src/operations/dictionary.ts | 10 ++--- .../src/operations/flattencomplex.ts | 10 ++--- .../bodyComplex/src/operations/index.ts | 18 ++++----- .../bodyComplex/src/operations/inheritance.ts | 10 ++--- .../src/operations/polymorphicrecursive.ts | 10 ++--- .../src/operations/polymorphism.ts | 10 ++--- .../bodyComplex/src/operations/primitive.ts | 10 ++--- .../src/operations/readonlyproperty.ts | 10 ++--- .../src/operationsInterfaces/array.ts | 2 +- .../src/operationsInterfaces/basic.ts | 2 +- .../src/operationsInterfaces/dictionary.ts | 2 +- .../operationsInterfaces/flattencomplex.ts | 2 +- .../src/operationsInterfaces/index.ts | 18 ++++----- .../src/operationsInterfaces/inheritance.ts | 2 +- .../polymorphicrecursive.ts | 2 +- .../src/operationsInterfaces/polymorphism.ts | 2 +- .../src/operationsInterfaces/primitive.ts | 2 +- .../operationsInterfaces/readonlyproperty.ts | 2 +- .../src/bodyComplexWithTracing.ts | 6 +-- .../bodyComplexWithTracing/src/index.ts | 6 +-- .../src/models/parameters.ts | 2 +- .../src/operations/array.ts | 10 ++--- .../src/operations/basic.ts | 10 ++--- .../src/operations/dictionary.ts | 10 ++--- .../src/operations/flattencomplex.ts | 10 ++--- .../src/operations/index.ts | 18 ++++----- .../src/operations/inheritance.ts | 10 ++--- .../src/operations/polymorphicrecursive.ts | 10 ++--- .../src/operations/polymorphism.ts | 10 ++--- .../src/operations/primitive.ts | 10 ++--- .../src/operations/readonlyproperty.ts | 10 ++--- .../src/operationsInterfaces/array.ts | 2 +- .../src/operationsInterfaces/basic.ts | 2 +- .../src/operationsInterfaces/dictionary.ts | 2 +- .../operationsInterfaces/flattencomplex.ts | 2 +- .../src/operationsInterfaces/index.ts | 18 ++++----- .../src/operationsInterfaces/inheritance.ts | 2 +- .../polymorphicrecursive.ts | 2 +- .../src/operationsInterfaces/polymorphism.ts | 2 +- .../src/operationsInterfaces/primitive.ts | 2 +- .../operationsInterfaces/readonlyproperty.ts | 2 +- .../generated/bodyDate/src/bodyDateClient.ts | 6 +-- .../generated/bodyDate/src/index.ts | 6 +-- .../generated/bodyDate/src/operations/date.ts | 10 ++--- .../bodyDate/src/operations/index.ts | 2 +- .../bodyDate/src/operationsInterfaces/date.ts | 2 +- .../src/operationsInterfaces/index.ts | 2 +- .../bodyDateTime/src/bodyDateTimeClient.ts | 6 +-- .../generated/bodyDateTime/src/index.ts | 6 +-- .../bodyDateTime/src/operations/datetime.ts | 10 ++--- .../bodyDateTime/src/operations/index.ts | 2 +- .../src/operationsInterfaces/datetime.ts | 2 +- .../src/operationsInterfaces/index.ts | 2 +- .../src/bodyDateTimeRfc1123Client.ts | 6 +-- .../bodyDateTimeRfc1123/src/index.ts | 6 +-- .../src/operations/datetimerfc1123.ts | 10 ++--- .../src/operations/index.ts | 2 +- .../operationsInterfaces/datetimerfc1123.ts | 2 +- .../src/operationsInterfaces/index.ts | 2 +- .../src/bodyDictionaryClient.ts | 6 +-- .../generated/bodyDictionary/src/index.ts | 6 +-- .../src/operations/dictionary.ts | 10 ++--- .../bodyDictionary/src/operations/index.ts | 2 +- .../src/operationsInterfaces/dictionary.ts | 2 +- .../src/operationsInterfaces/index.ts | 2 +- .../bodyDuration/src/bodyDurationClient.ts | 6 +-- .../generated/bodyDuration/src/index.ts | 6 +-- .../bodyDuration/src/operations/duration.ts | 10 ++--- .../bodyDuration/src/operations/index.ts | 2 +- .../src/operationsInterfaces/duration.ts | 2 +- .../src/operationsInterfaces/index.ts | 2 +- .../generated/bodyFile/src/bodyFileClient.ts | 6 +-- .../generated/bodyFile/src/index.ts | 6 +-- .../bodyFile/src/operations/files.ts | 10 ++--- .../bodyFile/src/operations/index.ts | 2 +- .../src/operationsInterfaces/files.ts | 2 +- .../src/operationsInterfaces/index.ts | 2 +- .../bodyFormData/src/bodyFormDataClient.ts | 6 +-- .../generated/bodyFormData/src/index.ts | 6 +-- .../bodyFormData/src/operations/formdata.ts | 10 ++--- .../bodyFormData/src/operations/index.ts | 2 +- .../src/operationsInterfaces/formdata.ts | 2 +- .../src/operationsInterfaces/index.ts | 2 +- .../bodyInteger/src/bodyIntegerClient.ts | 6 +-- .../generated/bodyInteger/src/index.ts | 6 +-- .../bodyInteger/src/operations/index.ts | 2 +- .../bodyInteger/src/operations/int.ts | 10 ++--- .../src/operationsInterfaces/index.ts | 2 +- .../src/operationsInterfaces/int.ts | 2 +- .../bodyNumber/src/bodyNumberClient.ts | 6 +-- .../generated/bodyNumber/src/index.ts | 6 +-- .../bodyNumber/src/operations/index.ts | 2 +- .../bodyNumber/src/operations/number.ts | 10 ++--- .../src/operationsInterfaces/index.ts | 2 +- .../src/operationsInterfaces/number.ts | 2 +- .../bodyString/src/bodyStringClient.ts | 6 +-- .../generated/bodyString/src/index.ts | 6 +-- .../bodyString/src/models/parameters.ts | 2 +- .../bodyString/src/operations/enum.ts | 10 ++--- .../bodyString/src/operations/index.ts | 4 +- .../bodyString/src/operations/string.ts | 10 ++--- .../src/operationsInterfaces/enum.ts | 2 +- .../src/operationsInterfaces/index.ts | 4 +- .../src/operationsInterfaces/string.ts | 2 +- .../generated/bodyTime/src/bodyTimeClient.ts | 6 +-- .../generated/bodyTime/src/index.ts | 6 +-- .../bodyTime/src/operations/index.ts | 2 +- .../generated/bodyTime/src/operations/time.ts | 10 ++--- .../src/operationsInterfaces/index.ts | 2 +- .../bodyTime/src/operationsInterfaces/time.ts | 2 +- .../constantParam/src/generatedClient.ts | 6 +-- .../generated/constantParam/src/index.ts | 4 +- .../constantParam/src/models/parameters.ts | 2 +- .../generated/corecompattest/src/index.ts | 4 +- .../corecompattest/src/models/parameters.ts | 2 +- .../generated/corecompattest/src/petStore.ts | 6 +-- .../customUrl/src/customUrlClient.ts | 6 +-- .../generated/customUrl/src/index.ts | 6 +-- .../customUrl/src/operations/index.ts | 2 +- .../customUrl/src/operations/paths.ts | 10 ++--- .../src/operationsInterfaces/index.ts | 2 +- .../src/operationsInterfaces/paths.ts | 2 +- .../src/customUrlMoreOptionsClient.ts | 6 +-- .../customUrlMoreOptions/src/index.ts | 6 +-- .../src/operations/index.ts | 2 +- .../src/operations/paths.ts | 10 ++--- .../src/operationsInterfaces/index.ts | 2 +- .../src/operationsInterfaces/paths.ts | 2 +- .../src/customUrlPagingClient.ts | 6 +-- .../generated/customUrlPaging/src/index.ts | 8 ++-- .../customUrlPaging/src/operations/index.ts | 2 +- .../customUrlPaging/src/operations/paging.ts | 12 +++--- .../src/operationsInterfaces/index.ts | 2 +- .../src/operationsInterfaces/paging.ts | 2 +- .../datafactory/src/dataFactoryClient.ts | 6 +-- .../generated/datafactory/src/index.ts | 8 ++-- .../datafactory/src/models/parameters.ts | 2 +- .../src/operations/activityRuns.ts | 10 ++--- .../src/operations/dataFlowDebugSession.ts | 14 +++---- .../datafactory/src/operations/dataFlows.ts | 12 +++--- .../datafactory/src/operations/datasets.ts | 12 +++--- .../src/operations/exposureControl.ts | 10 ++--- .../datafactory/src/operations/factories.ts | 12 +++--- .../datafactory/src/operations/index.ts | 40 +++++++++---------- .../src/operations/integrationRuntimeNodes.ts | 10 ++--- .../integrationRuntimeObjectMetadata.ts | 12 +++--- .../src/operations/integrationRuntimes.ts | 14 +++---- .../src/operations/linkedServices.ts | 12 +++--- .../src/operations/managedPrivateEndpoints.ts | 12 +++--- .../src/operations/managedVirtualNetworks.ts | 12 +++--- .../datafactory/src/operations/operations.ts | 12 +++--- .../src/operations/pipelineRuns.ts | 10 ++--- .../datafactory/src/operations/pipelines.ts | 12 +++--- .../operations/privateEndPointConnections.ts | 12 +++--- .../operations/privateEndpointConnection.ts | 10 ++--- .../src/operations/privateLinkResources.ts | 10 ++--- .../datafactory/src/operations/triggerRuns.ts | 10 ++--- .../datafactory/src/operations/triggers.ts | 14 +++---- .../src/operationsInterfaces/activityRuns.ts | 2 +- .../dataFlowDebugSession.ts | 2 +- .../src/operationsInterfaces/dataFlows.ts | 2 +- .../src/operationsInterfaces/datasets.ts | 2 +- .../operationsInterfaces/exposureControl.ts | 2 +- .../src/operationsInterfaces/factories.ts | 2 +- .../src/operationsInterfaces/index.ts | 40 +++++++++---------- .../integrationRuntimeNodes.ts | 2 +- .../integrationRuntimeObjectMetadata.ts | 2 +- .../integrationRuntimes.ts | 2 +- .../operationsInterfaces/linkedServices.ts | 2 +- .../managedPrivateEndpoints.ts | 2 +- .../managedVirtualNetworks.ts | 2 +- .../src/operationsInterfaces/operations.ts | 2 +- .../src/operationsInterfaces/pipelineRuns.ts | 2 +- .../src/operationsInterfaces/pipelines.ts | 2 +- .../privateEndPointConnections.ts | 2 +- .../privateEndpointConnection.ts | 2 +- .../privateLinkResources.ts | 2 +- .../src/operationsInterfaces/triggerRuns.ts | 2 +- .../src/operationsInterfaces/triggers.ts | 2 +- .../src/dataLakeStorageClient.ts | 6 +-- .../generated/datalakestorage/src/index.ts | 6 +-- .../datalakestorage/src/operations/index.ts | 2 +- .../src/operations/pathOperations.ts | 10 ++--- .../src/operationsInterfaces/index.ts | 2 +- .../operationsInterfaces/pathOperations.ts | 2 +- .../datasearch/src/dataSearchClient.ts | 6 +-- .../generated/datasearch/src/index.ts | 6 +-- .../datasearch/src/models/parameters.ts | 2 +- .../datasearch/src/operations/documents.ts | 10 ++--- .../datasearch/src/operations/index.ts | 2 +- .../src/operationsInterfaces/documents.ts | 2 +- .../src/operationsInterfaces/index.ts | 2 +- .../src/deviceProvisioningClient.ts | 6 +-- .../deviceprovisioningservice/src/index.ts | 8 ++-- .../src/models/parameters.ts | 2 +- .../src/operations/dpsCertificate.ts | 10 ++--- .../src/operations/index.ts | 6 +-- .../src/operations/iotDpsResource.ts | 14 +++---- .../src/operations/operations.ts | 12 +++--- .../operationsInterfaces/dpsCertificate.ts | 2 +- .../src/operationsInterfaces/index.ts | 6 +-- .../operationsInterfaces/iotDpsResource.ts | 2 +- .../src/operationsInterfaces/operations.ts | 2 +- .../src/domainServicesClient.ts | 6 +-- .../generated/domainservices/src/index.ts | 8 ++-- .../domainservices/src/models/parameters.ts | 2 +- .../src/operations/domainServiceOperations.ts | 12 +++--- .../src/operations/domainServices.ts | 14 +++---- .../domainservices/src/operations/index.ts | 8 ++-- .../src/operations/ouContainerOperationGrp.ts | 14 +++---- .../src/operations/ouContainerOperations.ts | 12 +++--- .../domainServiceOperations.ts | 2 +- .../operationsInterfaces/domainServices.ts | 2 +- .../src/operationsInterfaces/index.ts | 8 ++-- .../ouContainerOperationGrp.ts | 2 +- .../ouContainerOperations.ts | 2 +- .../src/extensibleEnumsClient.ts | 6 +-- .../generated/extensibleEnums/src/index.ts | 6 +-- .../extensibleEnums/src/models/parameters.ts | 2 +- .../extensibleEnums/src/operations/index.ts | 2 +- .../extensibleEnums/src/operations/pet.ts | 10 ++--- .../src/operationsInterfaces/index.ts | 2 +- .../src/operationsInterfaces/pet.ts | 2 +- .../generated/header/src/headerClient.ts | 6 +-- .../integration/generated/header/src/index.ts | 6 +-- .../generated/header/src/operations/header.ts | 10 ++--- .../generated/header/src/operations/index.ts | 2 +- .../header/src/operationsInterfaces/header.ts | 2 +- .../header/src/operationsInterfaces/index.ts | 2 +- .../headerprefix/src/headerPrefixClient.ts | 6 +-- .../generated/headerprefix/src/index.ts | 6 +-- .../headerprefix/src/operations/index.ts | 2 +- .../headerprefix/src/operations/queue.ts | 10 ++--- .../src/operationsInterfaces/index.ts | 2 +- .../src/operationsInterfaces/queue.ts | 2 +- .../src/healthCareApisClient.ts | 6 +-- .../generated/healthcareapis/src/index.ts | 8 ++-- .../healthcareapis/src/models/parameters.ts | 2 +- .../src/operations/dicomServices.ts | 14 +++---- .../src/operations/fhirDestinations.ts | 12 +++--- .../src/operations/fhirServices.ts | 14 +++---- .../healthcareapis/src/operations/index.ts | 22 +++++----- .../operations/iotConnectorFhirDestination.ts | 12 +++--- .../src/operations/iotConnectors.ts | 14 +++---- .../src/operations/operationResults.ts | 10 ++--- .../src/operations/operations.ts | 12 +++--- .../operations/privateEndpointConnections.ts | 12 +++--- .../src/operations/privateLinkResources.ts | 10 ++--- .../healthcareapis/src/operations/services.ts | 14 +++---- .../src/operations/workspaces.ts | 14 +++---- .../src/operationsInterfaces/dicomServices.ts | 2 +- .../operationsInterfaces/fhirDestinations.ts | 2 +- .../src/operationsInterfaces/fhirServices.ts | 2 +- .../src/operationsInterfaces/index.ts | 22 +++++----- .../iotConnectorFhirDestination.ts | 2 +- .../src/operationsInterfaces/iotConnectors.ts | 2 +- .../operationsInterfaces/operationResults.ts | 2 +- .../src/operationsInterfaces/operations.ts | 5 ++- .../privateEndpointConnections.ts | 2 +- .../privateLinkResources.ts | 2 +- .../src/operationsInterfaces/services.ts | 2 +- .../src/operationsInterfaces/workspaces.ts | 2 +- .../src/httpInfrastructureClient.ts | 6 +-- .../generated/httpInfrastructure/src/index.ts | 6 +-- .../src/operations/httpClientFailure.ts | 10 ++--- .../src/operations/httpFailure.ts | 10 ++--- .../src/operations/httpRedirects.ts | 10 ++--- .../src/operations/httpRetry.ts | 10 ++--- .../src/operations/httpServerFailure.ts | 10 ++--- .../src/operations/httpSuccess.ts | 10 ++--- .../src/operations/index.ts | 14 +++---- .../src/operations/multipleResponses.ts | 10 ++--- .../operationsInterfaces/httpClientFailure.ts | 2 +- .../src/operationsInterfaces/httpFailure.ts | 2 +- .../src/operationsInterfaces/httpRedirects.ts | 2 +- .../src/operationsInterfaces/httpRetry.ts | 2 +- .../operationsInterfaces/httpServerFailure.ts | 2 +- .../src/operationsInterfaces/httpSuccess.ts | 2 +- .../src/operationsInterfaces/index.ts | 14 +++---- .../operationsInterfaces/multipleResponses.ts | 2 +- .../generated/iotspaces/src/index.ts | 4 +- .../iotspaces/src/ioTSpacesClient.ts | 2 +- .../generated/licenseHeader/src/index.ts | 4 +- .../licenseHeader/src/licenseHeaderClient.ts | 4 +- .../integration/generated/lro/src/index.ts | 6 +-- .../generated/lro/src/lROClient.ts | 6 +-- .../generated/lro/src/models/parameters.ts | 2 +- .../generated/lro/src/operations/index.ts | 8 ++-- .../generated/lro/src/operations/lRORetrys.ts | 12 +++--- .../generated/lro/src/operations/lROs.ts | 12 +++--- .../lro/src/operations/lROsCustomHeader.ts | 12 +++--- .../generated/lro/src/operations/lrosaDs.ts | 12 +++--- .../lro/src/operationsInterfaces/index.ts | 8 ++-- .../lro/src/operationsInterfaces/lRORetrys.ts | 2 +- .../lro/src/operationsInterfaces/lROs.ts | 2 +- .../operationsInterfaces/lROsCustomHeader.ts | 2 +- .../lro/src/operationsInterfaces/lrosaDs.ts | 2 +- .../lroParametrizedEndpoints/src/index.ts | 4 +- .../src/lroParametrizedEndpointsClient.ts | 8 ++-- .../generated/mapperrequired/src/index.ts | 4 +- .../src/mapperRequiredClient.ts | 6 +-- .../mapperrequired/src/models/parameters.ts | 2 +- .../generated/mediaTypes/src/index.ts | 4 +- .../mediaTypes/src/mediaTypesClient.ts | 6 +-- .../mediaTypes/src/models/parameters.ts | 2 +- .../generated/mediaTypesV3/src/index.ts | 6 +-- .../mediaTypesV3/src/mediaTypesV3Client.ts | 6 +-- .../mediaTypesV3/src/operations/barApi.ts | 8 ++-- .../mediaTypesV3/src/operations/fooApi.ts | 8 ++-- .../mediaTypesV3/src/operations/index.ts | 4 +- .../src/operationsInterfaces/barApi.ts | 2 +- .../src/operationsInterfaces/fooApi.ts | 2 +- .../src/operationsInterfaces/index.ts | 4 +- .../generated/mediaTypesV3Lro/src/index.ts | 4 +- .../src/mediaTypesV3LROClient.ts | 6 +-- .../mediaTypesWithTracing/src/index.ts | 4 +- .../src/mediaTypesWithTracingClient.ts | 6 +-- .../src/models/parameters.ts | 2 +- .../generated/modelFlattening/src/index.ts | 4 +- .../src/modelFlatteningClient.ts | 6 +-- .../modelFlattening/src/models/parameters.ts | 2 +- .../multipleInheritance/src/index.ts | 4 +- .../src/models/parameters.ts | 2 +- .../src/multipleInheritanceClient.ts | 6 +-- .../generated/nameChecker/src/index.ts | 6 +-- .../nameChecker/src/models/parameters.ts | 2 +- .../nameChecker/src/operations/documents.ts | 10 ++--- .../nameChecker/src/operations/index.ts | 2 +- .../src/operationsInterfaces/documents.ts | 2 +- .../src/operationsInterfaces/index.ts | 2 +- .../generated/nameChecker/src/searchClient.ts | 6 +-- .../generated/noLicenseHeader/src/index.ts | 4 +- .../src/noLicenseHeaderClient.ts | 4 +- .../generated/noMappers/src/index.ts | 4 +- .../noMappers/src/noMappersClient.ts | 4 +- .../generated/noOperation/src/index.ts | 4 +- .../noOperation/src/noOperationsClient.ts | 2 +- .../generated/nonStringEnum/src/index.ts | 6 +-- .../nonStringEnum/src/nonStringEnumClient.ts | 6 +-- .../nonStringEnum/src/operations/float.ts | 8 ++-- .../nonStringEnum/src/operations/index.ts | 4 +- .../nonStringEnum/src/operations/int.ts | 8 ++-- .../src/operationsInterfaces/float.ts | 2 +- .../src/operationsInterfaces/index.ts | 4 +- .../src/operationsInterfaces/int.ts | 2 +- .../generated/objectType/src/index.ts | 4 +- .../objectType/src/objectTypeClient.ts | 4 +- .../generated/odataDiscriminator/src/index.ts | 4 +- .../src/oDataDiscriminatorClient.ts | 6 +-- .../operationgroupclash/src/index.ts | 6 +-- .../src/operationGroupClashClient.ts | 15 +++++-- .../src/operations/index.ts | 4 +- .../src/operations/pipelineOperations.ts | 10 ++--- .../src/operations/productOperations.ts | 10 ++--- .../src/operationsInterfaces/index.ts | 4 +- .../pipelineOperations.ts | 2 +- .../operationsInterfaces/productOperations.ts | 2 +- .../generated/optionalnull/src/index.ts | 6 +-- .../optionalnull/src/operations/documents.ts | 10 ++--- .../optionalnull/src/operations/index.ts | 2 +- .../src/operationsInterfaces/documents.ts | 2 +- .../src/operationsInterfaces/index.ts | 2 +- .../optionalnull/src/optionalNullClient.ts | 6 +-- .../integration/generated/paging/src/index.ts | 8 ++-- .../generated/paging/src/models/parameters.ts | 2 +- .../generated/paging/src/operations/index.ts | 2 +- .../generated/paging/src/operations/paging.ts | 14 +++---- .../paging/src/operationsInterfaces/index.ts | 2 +- .../paging/src/operationsInterfaces/paging.ts | 2 +- .../generated/paging/src/pagingClient.ts | 6 +-- .../generated/pagingNoIterators/src/index.ts | 6 +-- .../src/models/parameters.ts | 2 +- .../pagingNoIterators/src/operations/index.ts | 2 +- .../src/operations/paging.ts | 12 +++--- .../src/operationsInterfaces/index.ts | 2 +- .../src/operationsInterfaces/paging.ts | 2 +- .../src/pagingNoIteratorsClient.ts | 6 +-- .../generated/patterntest/src/index.ts | 4 +- .../patterntest/src/patternTestClient.ts | 4 +- .../generated/petstore/src/index.ts | 4 +- .../petstore/src/models/parameters.ts | 2 +- .../generated/petstore/src/petStore.ts | 6 +-- .../src/generated/index.ts | 4 +- .../src/generated/mediaServicesClient.ts | 2 +- .../generated/readmeFileChecker/src/index.ts | 4 +- .../readmeFileChecker/src/keyVaultClient.ts | 6 +-- .../src/models/parameters.ts | 2 +- .../generated/regexConstraint/src/index.ts | 4 +- .../regexConstraint/src/regexConstraint.ts | 4 +- .../integration/generated/report/src/index.ts | 4 +- .../generated/report/src/reportClient.ts | 6 +-- .../generated/requiredOptional/src/index.ts | 6 +-- .../requiredOptional/src/models/parameters.ts | 2 +- .../src/operations/explicit.ts | 10 ++--- .../src/operations/implicit.ts | 10 ++--- .../requiredOptional/src/operations/index.ts | 4 +- .../src/operationsInterfaces/explicit.ts | 2 +- .../src/operationsInterfaces/implicit.ts | 2 +- .../src/operationsInterfaces/index.ts | 4 +- .../src/requiredOptionalClient.ts | 6 +-- .../generated/resources/src/index.ts | 6 +-- .../resources/src/operations/index.ts | 2 +- .../src/operations/resourceGroups.ts | 10 ++--- .../src/operationsInterfaces/index.ts | 2 +- .../operationsInterfaces/resourceGroups.ts | 2 +- .../resources/src/resourcesClient.ts | 6 +-- .../generated/sealedchoice/src/index.ts | 6 +-- .../src/operations/authentication.ts | 10 ++--- .../sealedchoice/src/operations/index.ts | 2 +- .../operationsInterfaces/authentication.ts | 2 +- .../src/operationsInterfaces/index.ts | 2 +- .../sealedchoice/src/sealedChoiceClient.ts | 6 +-- .../generated/storageblob/src/index.ts | 6 +-- .../storageblob/src/operations/appendBlob.ts | 10 ++--- .../storageblob/src/operations/blockBlob.ts | 10 ++--- .../storageblob/src/operations/index.ts | 6 +-- .../storageblob/src/operations/pageBlob.ts | 10 ++--- .../src/operationsInterfaces/appendBlob.ts | 2 +- .../src/operationsInterfaces/blockBlob.ts | 2 +- .../src/operationsInterfaces/index.ts | 6 +-- .../src/operationsInterfaces/pageBlob.ts | 2 +- .../storageblob/src/storageBlobClient.ts | 14 +++++-- .../generated/storagefileshare/src/index.ts | 6 +-- .../storagefileshare/src/operations/file.ts | 10 ++--- .../storagefileshare/src/operations/index.ts | 2 +- .../src/operationsInterfaces/file.ts | 2 +- .../src/operationsInterfaces/index.ts | 2 +- .../src/storageFileShareClient.ts | 6 +-- .../subscriptionIdApiVersion/src/index.ts | 6 +-- .../src/operations/group.ts | 10 ++--- .../src/operations/index.ts | 2 +- .../src/operationsInterfaces/group.ts | 2 +- .../src/operationsInterfaces/index.ts | 2 +- .../src/subscriptionIdApiVersionClient.ts | 6 +-- .../textanalytics/src/generatedClient.ts | 6 +-- .../generated/textanalytics/src/index.ts | 4 +- .../textanalytics/src/models/parameters.ts | 2 +- .../integration/generated/url/src/index.ts | 6 +-- .../generated/url/src/operations/index.ts | 6 +-- .../generated/url/src/operations/pathItems.ts | 10 ++--- .../generated/url/src/operations/paths.ts | 10 ++--- .../generated/url/src/operations/queries.ts | 10 ++--- .../url/src/operationsInterfaces/index.ts | 6 +-- .../url/src/operationsInterfaces/pathItems.ts | 2 +- .../url/src/operationsInterfaces/paths.ts | 2 +- .../url/src/operationsInterfaces/queries.ts | 2 +- .../generated/url/src/urlClient.ts | 6 +-- .../integration/generated/url2/src/index.ts | 6 +-- .../generated/url2/src/operations/get.ts | 8 ++-- .../generated/url2/src/operations/index.ts | 2 +- .../url2/src/operationsInterfaces/get.ts | 2 +- .../url2/src/operationsInterfaces/index.ts | 2 +- .../generated/url2/src/urlClient.ts | 6 +-- .../generated/urlMulti/src/index.ts | 6 +-- .../urlMulti/src/operations/index.ts | 2 +- .../urlMulti/src/operations/queries.ts | 10 ++--- .../src/operationsInterfaces/index.ts | 2 +- .../src/operationsInterfaces/queries.ts | 2 +- .../generated/urlMulti/src/urlMultiClient.ts | 6 +-- .../generated/useragentcorev1/src/index.ts | 6 +-- .../useragentcorev1/src/operations/group.ts | 10 ++--- .../useragentcorev1/src/operations/index.ts | 2 +- .../src/operationsInterfaces/group.ts | 2 +- .../src/operationsInterfaces/index.ts | 2 +- .../src/userAgentCoreV1Client.ts | 6 +-- .../generated/useragentcorev2/src/index.ts | 6 +-- .../useragentcorev2/src/operations/group.ts | 10 ++--- .../useragentcorev2/src/operations/index.ts | 2 +- .../src/operationsInterfaces/group.ts | 2 +- .../src/operationsInterfaces/index.ts | 2 +- .../src/userAgentCoreV2Client.ts | 6 +-- .../integration/generated/uuid/src/index.ts | 6 +-- .../generated/uuid/src/operations/get.ts | 8 ++-- .../generated/uuid/src/operations/index.ts | 2 +- .../uuid/src/operationsInterfaces/get.ts | 2 +- .../uuid/src/operationsInterfaces/index.ts | 2 +- .../generated/uuid/src/uuidClient.ts | 6 +-- .../generated/validation/src/index.ts | 4 +- .../validation/src/models/parameters.ts | 2 +- .../validation/src/validationClient.ts | 6 +-- .../generated/xmlservice/src/index.ts | 6 +-- .../xmlservice/src/models/parameters.ts | 2 +- .../xmlservice/src/operations/index.ts | 2 +- .../xmlservice/src/operations/xml.ts | 10 ++--- .../src/operationsInterfaces/index.ts | 2 +- .../src/operationsInterfaces/xml.ts | 2 +- .../xmlservice/src/xmlServiceClient.ts | 6 +-- .../generated/xmsErrorResponses/src/index.ts | 6 +-- .../xmsErrorResponses/src/operations/index.ts | 2 +- .../xmsErrorResponses/src/operations/pet.ts | 10 ++--- .../src/operationsInterfaces/index.ts | 2 +- .../src/operationsInterfaces/pet.ts | 2 +- .../src/xmsErrorResponsesClient.ts | 6 +-- 572 files changed, 1614 insertions(+), 1594 deletions(-) diff --git a/packages/autorest.typescript/src/generators/indexGenerator.ts b/packages/autorest.typescript/src/generators/indexGenerator.ts index f197ab3670..7def73ef7e 100644 --- a/packages/autorest.typescript/src/generators/indexGenerator.ts +++ b/packages/autorest.typescript/src/generators/indexGenerator.ts @@ -35,7 +35,7 @@ function generateHLCIndex(clientDetails: ClientDetails, file: SourceFile) { moduleSpecifier: "./models/index.js" }, { - moduleSpecifier: `./${clientDetails.sourceFileName}`, + moduleSpecifier: `./${clientDetails.sourceFileName}.js`, namedExports: [clientDetails.className] } ]); diff --git a/packages/autorest.typescript/test/integration/generated/additionalProperties/src/additionalPropertiesClient.ts b/packages/autorest.typescript/test/integration/generated/additionalProperties/src/additionalPropertiesClient.ts index 89c7555edf..a14752dda1 100644 --- a/packages/autorest.typescript/test/integration/generated/additionalProperties/src/additionalPropertiesClient.ts +++ b/packages/autorest.typescript/test/integration/generated/additionalProperties/src/additionalPropertiesClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { PetsImpl } from "./operations"; -import { Pets } from "./operationsInterfaces"; -import { AdditionalPropertiesClientOptionalParams } from "./models"; +import { PetsImpl } from "./operations/index.js"; +import { Pets } from "./operationsInterfaces/index.js"; +import { AdditionalPropertiesClientOptionalParams } from "./models/index.js"; export class AdditionalPropertiesClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/additionalProperties/src/index.ts b/packages/autorest.typescript/test/integration/generated/additionalProperties/src/index.ts index 1e65507bb3..a73bc1ff9d 100644 --- a/packages/autorest.typescript/test/integration/generated/additionalProperties/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/additionalProperties/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { AdditionalPropertiesClient } from "./additionalPropertiesClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { AdditionalPropertiesClient } from "./additionalPropertiesClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/additionalProperties/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/additionalProperties/src/models/parameters.ts index 286c4c6976..80c7b1cc1e 100644 --- a/packages/autorest.typescript/test/integration/generated/additionalProperties/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/additionalProperties/src/models/parameters.ts @@ -14,7 +14,7 @@ import { PetAPString as PetAPStringMapper, PetAPInProperties as PetAPInPropertiesMapper, PetAPInPropertiesWithAPString as PetAPInPropertiesWithAPStringMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const contentType: OperationParameter = { parameterPath: ["options", "contentType"], diff --git a/packages/autorest.typescript/test/integration/generated/additionalProperties/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/additionalProperties/src/operations/index.ts index 208ef4de64..0815e5ea40 100644 --- a/packages/autorest.typescript/test/integration/generated/additionalProperties/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/additionalProperties/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./pets"; +export * from "./pets.js"; diff --git a/packages/autorest.typescript/test/integration/generated/additionalProperties/src/operations/pets.ts b/packages/autorest.typescript/test/integration/generated/additionalProperties/src/operations/pets.ts index 64e00e3bd3..87c0dd71ec 100644 --- a/packages/autorest.typescript/test/integration/generated/additionalProperties/src/operations/pets.ts +++ b/packages/autorest.typescript/test/integration/generated/additionalProperties/src/operations/pets.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Pets } from "../operationsInterfaces"; +import { Pets } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AdditionalPropertiesClient } from "../additionalPropertiesClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AdditionalPropertiesClient } from "../additionalPropertiesClient.js"; import { PetAPTrue, PetsCreateAPTrueOptionalParams, @@ -30,7 +30,7 @@ import { PetAPInPropertiesWithAPString, PetsCreateAPInPropertiesWithAPStringOptionalParams, PetsCreateAPInPropertiesWithAPStringResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Pets operations. */ export class PetsImpl implements Pets { diff --git a/packages/autorest.typescript/test/integration/generated/additionalProperties/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/additionalProperties/src/operationsInterfaces/index.ts index 208ef4de64..0815e5ea40 100644 --- a/packages/autorest.typescript/test/integration/generated/additionalProperties/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/additionalProperties/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./pets"; +export * from "./pets.js"; diff --git a/packages/autorest.typescript/test/integration/generated/additionalProperties/src/operationsInterfaces/pets.ts b/packages/autorest.typescript/test/integration/generated/additionalProperties/src/operationsInterfaces/pets.ts index 861e08045d..0cec1dbb3f 100644 --- a/packages/autorest.typescript/test/integration/generated/additionalProperties/src/operationsInterfaces/pets.ts +++ b/packages/autorest.typescript/test/integration/generated/additionalProperties/src/operationsInterfaces/pets.ts @@ -25,7 +25,7 @@ import { PetAPInPropertiesWithAPString, PetsCreateAPInPropertiesWithAPStringOptionalParams, PetsCreateAPInPropertiesWithAPStringResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Pets. */ export interface Pets { diff --git a/packages/autorest.typescript/test/integration/generated/appconfiguration/src/appConfigurationClient.ts b/packages/autorest.typescript/test/integration/generated/appconfiguration/src/appConfigurationClient.ts index f271cffc79..7a5eeb5d70 100644 --- a/packages/autorest.typescript/test/integration/generated/appconfiguration/src/appConfigurationClient.ts +++ b/packages/autorest.typescript/test/integration/generated/appconfiguration/src/appConfigurationClient.ts @@ -13,9 +13,9 @@ import { SendRequest, } from "@azure/core-rest-pipeline"; import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "./pagingHelper"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; +import { setContinuationToken } from "./pagingHelper.js"; +import * as Parameters from "./models/parameters.js"; +import * as Mappers from "./models/mappers.js"; import { AppConfigurationClientOptionalParams, Key, @@ -57,7 +57,7 @@ import { GetKeyValuesNextResponse, GetLabelsNextResponse, GetRevisionsNextResponse, -} from "./models"; +} from "./models/index.js"; /// export class AppConfigurationClient extends coreClient.ServiceClient { diff --git a/packages/autorest.typescript/test/integration/generated/appconfiguration/src/index.ts b/packages/autorest.typescript/test/integration/generated/appconfiguration/src/index.ts index 93b3b10d36..dd3a0757ee 100644 --- a/packages/autorest.typescript/test/integration/generated/appconfiguration/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/appconfiguration/src/index.ts @@ -7,6 +7,6 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { AppConfigurationClient } from "./appConfigurationClient"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { AppConfigurationClient } from "./appConfigurationClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/appconfiguration/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/appconfiguration/src/models/parameters.ts index 5aef5a7350..cd9321872b 100644 --- a/packages/autorest.typescript/test/integration/generated/appconfiguration/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/appconfiguration/src/models/parameters.ts @@ -11,7 +11,7 @@ import { OperationURLParameter, OperationQueryParameter, } from "@azure/core-client"; -import { KeyValue as KeyValueMapper } from "../models/mappers"; +import { KeyValue as KeyValueMapper } from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/packages/autorest.typescript/test/integration/generated/appconfigurationexport/src/appConfigurationClient.ts b/packages/autorest.typescript/test/integration/generated/appconfigurationexport/src/appConfigurationClient.ts index 4177f1d5b5..743dee1803 100644 --- a/packages/autorest.typescript/test/integration/generated/appconfigurationexport/src/appConfigurationClient.ts +++ b/packages/autorest.typescript/test/integration/generated/appconfigurationexport/src/appConfigurationClient.ts @@ -13,9 +13,9 @@ import { SendRequest, } from "@azure/core-rest-pipeline"; import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "./pagingHelper"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; +import { setContinuationToken } from "./pagingHelper.js"; +import * as Parameters from "./models/parameters.js"; +import * as Mappers from "./models/mappers.js"; import { AppConfigurationClientOptionalParams, Key, @@ -57,7 +57,7 @@ import { GetKeyValuesNextResponse, GetLabelsNextResponse, GetRevisionsNextResponse, -} from "./models"; +} from "./models/index.js"; /// /** @internal */ diff --git a/packages/autorest.typescript/test/integration/generated/appconfigurationexport/src/index.ts b/packages/autorest.typescript/test/integration/generated/appconfigurationexport/src/index.ts index 93b3b10d36..dd3a0757ee 100644 --- a/packages/autorest.typescript/test/integration/generated/appconfigurationexport/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/appconfigurationexport/src/index.ts @@ -7,6 +7,6 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { AppConfigurationClient } from "./appConfigurationClient"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { AppConfigurationClient } from "./appConfigurationClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/appconfigurationexport/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/appconfigurationexport/src/models/parameters.ts index 5aef5a7350..cd9321872b 100644 --- a/packages/autorest.typescript/test/integration/generated/appconfigurationexport/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/appconfigurationexport/src/models/parameters.ts @@ -11,7 +11,7 @@ import { OperationURLParameter, OperationQueryParameter, } from "@azure/core-client"; -import { KeyValue as KeyValueMapper } from "../models/mappers"; +import { KeyValue as KeyValueMapper } from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/packages/autorest.typescript/test/integration/generated/arrayConstraints/src/arrayConstraintsClient.ts b/packages/autorest.typescript/test/integration/generated/arrayConstraints/src/arrayConstraintsClient.ts index 6732588c37..31fa4c29a8 100644 --- a/packages/autorest.typescript/test/integration/generated/arrayConstraints/src/arrayConstraintsClient.ts +++ b/packages/autorest.typescript/test/integration/generated/arrayConstraints/src/arrayConstraintsClient.ts @@ -12,8 +12,8 @@ import { PipelineResponse, SendRequest, } from "@azure/core-rest-pipeline"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; +import * as Parameters from "./models/parameters.js"; +import * as Mappers from "./models/mappers.js"; import { Enum0, ArrayConstraintsClientOptionalParams, @@ -22,7 +22,7 @@ import { PostValueResponse, ApiV1ValueGetOptionalParams, ApiV1ValueGetResponse, -} from "./models"; +} from "./models/index.js"; export class ArrayConstraintsClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/arrayConstraints/src/index.ts b/packages/autorest.typescript/test/integration/generated/arrayConstraints/src/index.ts index dd642ba343..6e249ea99d 100644 --- a/packages/autorest.typescript/test/integration/generated/arrayConstraints/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/arrayConstraints/src/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { ArrayConstraintsClient } from "./arrayConstraintsClient"; +export * from "./models/index.js"; +export { ArrayConstraintsClient } from "./arrayConstraintsClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/attestation/src/generatedClient.ts b/packages/autorest.typescript/test/integration/generated/attestation/src/generatedClient.ts index 57cc4ddaaa..4a911ec271 100644 --- a/packages/autorest.typescript/test/integration/generated/attestation/src/generatedClient.ts +++ b/packages/autorest.typescript/test/integration/generated/attestation/src/generatedClient.ts @@ -12,9 +12,9 @@ import { PipelineResponse, SendRequest, } from "@azure/core-rest-pipeline"; -import { PolicyImpl } from "./operations"; -import { Policy } from "./operationsInterfaces"; -import { GeneratedClientOptionalParams } from "./models"; +import { PolicyImpl } from "./operations/index.js"; +import { Policy } from "./operationsInterfaces/index.js"; +import { GeneratedClientOptionalParams } from "./models/index.js"; /** @internal */ export class GeneratedClient extends coreClient.ServiceClient { diff --git a/packages/autorest.typescript/test/integration/generated/attestation/src/index.ts b/packages/autorest.typescript/test/integration/generated/attestation/src/index.ts index db5d703d07..79dd13512d 100644 --- a/packages/autorest.typescript/test/integration/generated/attestation/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/attestation/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { GeneratedClient } from "./generatedClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { GeneratedClient } from "./generatedClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/attestation/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/attestation/src/operations/index.ts index 0fdb8931cd..ea85c07d31 100644 --- a/packages/autorest.typescript/test/integration/generated/attestation/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/attestation/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./policy"; +export * from "./policy.js"; diff --git a/packages/autorest.typescript/test/integration/generated/attestation/src/operations/policy.ts b/packages/autorest.typescript/test/integration/generated/attestation/src/operations/policy.ts index 38319d5377..3b2f33959a 100644 --- a/packages/autorest.typescript/test/integration/generated/attestation/src/operations/policy.ts +++ b/packages/autorest.typescript/test/integration/generated/attestation/src/operations/policy.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Policy } from "../operationsInterfaces"; +import { Policy } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { GeneratedClient } from "../generatedClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { GeneratedClient } from "../generatedClient.js"; import { AttestationType, PolicyGetOptionalParams, @@ -19,7 +19,7 @@ import { PolicySetModelResponse, PolicyResetOptionalParams, PolicyResetResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Policy operations. */ export class PolicyImpl implements Policy { diff --git a/packages/autorest.typescript/test/integration/generated/attestation/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/attestation/src/operationsInterfaces/index.ts index 0fdb8931cd..ea85c07d31 100644 --- a/packages/autorest.typescript/test/integration/generated/attestation/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/attestation/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./policy"; +export * from "./policy.js"; diff --git a/packages/autorest.typescript/test/integration/generated/attestation/src/operationsInterfaces/policy.ts b/packages/autorest.typescript/test/integration/generated/attestation/src/operationsInterfaces/policy.ts index c3eb5a7a3b..411f124505 100644 --- a/packages/autorest.typescript/test/integration/generated/attestation/src/operationsInterfaces/policy.ts +++ b/packages/autorest.typescript/test/integration/generated/attestation/src/operationsInterfaces/policy.ts @@ -14,7 +14,7 @@ import { PolicySetModelResponse, PolicyResetOptionalParams, PolicyResetResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Policy. */ export interface Policy { diff --git a/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/azureParameterGroupingClient.ts b/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/azureParameterGroupingClient.ts index 2711ed4acb..bb8f2241c3 100644 --- a/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/azureParameterGroupingClient.ts +++ b/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/azureParameterGroupingClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { ParameterGroupingImpl } from "./operations"; -import { ParameterGrouping } from "./operationsInterfaces"; -import { AzureParameterGroupingClientOptionalParams } from "./models"; +import { ParameterGroupingImpl } from "./operations/index.js"; +import { ParameterGrouping } from "./operationsInterfaces/index.js"; +import { AzureParameterGroupingClientOptionalParams } from "./models/index.js"; export class AzureParameterGroupingClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/index.ts b/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/index.ts index 81a8b12231..d770db905c 100644 --- a/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { AzureParameterGroupingClient } from "./azureParameterGroupingClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { AzureParameterGroupingClient } from "./azureParameterGroupingClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/operations/index.ts index 9c1641c16a..0c1b976924 100644 --- a/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./parameterGrouping"; +export * from "./parameterGrouping.js"; diff --git a/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/operations/parameterGrouping.ts b/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/operations/parameterGrouping.ts index f878cbee3d..c926f4c32f 100644 --- a/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/operations/parameterGrouping.ts +++ b/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/operations/parameterGrouping.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { ParameterGrouping } from "../operationsInterfaces"; +import { ParameterGrouping } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureParameterGroupingClient } from "../azureParameterGroupingClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureParameterGroupingClient } from "../azureParameterGroupingClient.js"; import { ParameterGroupingPostRequiredParameters, ParameterGroupingPostRequiredOptionalParams, @@ -19,7 +19,7 @@ import { ParameterGroupingPostMultiParamGroupsOptionalParams, ParameterGroupingPostSharedParameterGroupObjectOptionalParams, ParameterGroupingGroupWithConstantOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing ParameterGrouping operations. */ export class ParameterGroupingImpl implements ParameterGrouping { diff --git a/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/operationsInterfaces/index.ts index 9c1641c16a..0c1b976924 100644 --- a/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./parameterGrouping"; +export * from "./parameterGrouping.js"; diff --git a/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/operationsInterfaces/parameterGrouping.ts b/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/operationsInterfaces/parameterGrouping.ts index 4ac556d68f..83b4e452a3 100644 --- a/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/operationsInterfaces/parameterGrouping.ts +++ b/packages/autorest.typescript/test/integration/generated/azureParameterGrouping/src/operationsInterfaces/parameterGrouping.ts @@ -14,7 +14,7 @@ import { ParameterGroupingPostMultiParamGroupsOptionalParams, ParameterGroupingPostSharedParameterGroupObjectOptionalParams, ParameterGroupingGroupWithConstantOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a ParameterGrouping. */ export interface ParameterGrouping { diff --git a/packages/autorest.typescript/test/integration/generated/azureReport/src/index.ts b/packages/autorest.typescript/test/integration/generated/azureReport/src/index.ts index 597f974fe7..2839726fc9 100644 --- a/packages/autorest.typescript/test/integration/generated/azureReport/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/azureReport/src/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { ReportClient } from "./reportClient"; +export * from "./models/index.js"; +export { ReportClient } from "./reportClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/azureReport/src/reportClient.ts b/packages/autorest.typescript/test/integration/generated/azureReport/src/reportClient.ts index 01371b6418..913bcc2630 100644 --- a/packages/autorest.typescript/test/integration/generated/azureReport/src/reportClient.ts +++ b/packages/autorest.typescript/test/integration/generated/azureReport/src/reportClient.ts @@ -7,13 +7,13 @@ */ import * as coreClient from "@azure/core-client"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; +import * as Parameters from "./models/parameters.js"; +import * as Mappers from "./models/mappers.js"; import { ReportClientOptionalParams, GetReportOptionalParams, GetReportResponse, -} from "./models"; +} from "./models/index.js"; export class ReportClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/azureSpecialPropertiesClient.ts b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/azureSpecialPropertiesClient.ts index 39a54ef43e..28310522ee 100644 --- a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/azureSpecialPropertiesClient.ts +++ b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/azureSpecialPropertiesClient.ts @@ -22,7 +22,7 @@ import { SkipUrlEncodingImpl, OdataImpl, HeaderImpl, -} from "./operations"; +} from "./operations/index.js"; import { XMsClientRequestId, SubscriptionInCredentials, @@ -32,8 +32,8 @@ import { SkipUrlEncoding, Odata, Header, -} from "./operationsInterfaces"; -import { AzureSpecialPropertiesClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { AzureSpecialPropertiesClientOptionalParams } from "./models/index.js"; export class AzureSpecialPropertiesClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/index.ts b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/index.ts index e96237bae4..b4219a3431 100644 --- a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { AzureSpecialPropertiesClient } from "./azureSpecialPropertiesClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { AzureSpecialPropertiesClient } from "./azureSpecialPropertiesClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/apiVersionDefault.ts b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/apiVersionDefault.ts index 2bb564e39f..6999acfb56 100644 --- a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/apiVersionDefault.ts +++ b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/apiVersionDefault.ts @@ -6,17 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { ApiVersionDefault } from "../operationsInterfaces"; +import { ApiVersionDefault } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureSpecialPropertiesClient } from "../azureSpecialPropertiesClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureSpecialPropertiesClient } from "../azureSpecialPropertiesClient.js"; import { ApiVersionDefaultGetMethodGlobalValidOptionalParams, ApiVersionDefaultGetMethodGlobalNotProvidedValidOptionalParams, ApiVersionDefaultGetPathGlobalValidOptionalParams, ApiVersionDefaultGetSwaggerGlobalValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing ApiVersionDefault operations. */ export class ApiVersionDefaultImpl implements ApiVersionDefault { diff --git a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/apiVersionLocal.ts b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/apiVersionLocal.ts index e8a4fa44cc..34f715c7b5 100644 --- a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/apiVersionLocal.ts +++ b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/apiVersionLocal.ts @@ -6,17 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { ApiVersionLocal } from "../operationsInterfaces"; +import { ApiVersionLocal } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureSpecialPropertiesClient } from "../azureSpecialPropertiesClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureSpecialPropertiesClient } from "../azureSpecialPropertiesClient.js"; import { ApiVersionLocalGetMethodLocalValidOptionalParams, ApiVersionLocalGetMethodLocalNullOptionalParams, ApiVersionLocalGetPathLocalValidOptionalParams, ApiVersionLocalGetSwaggerLocalValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing ApiVersionLocal operations. */ export class ApiVersionLocalImpl implements ApiVersionLocal { diff --git a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/header.ts b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/header.ts index 8e68d51b49..cac5dc3cf1 100644 --- a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/header.ts +++ b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/header.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Header } from "../operationsInterfaces"; +import { Header } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureSpecialPropertiesClient } from "../azureSpecialPropertiesClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureSpecialPropertiesClient } from "../azureSpecialPropertiesClient.js"; import { HeaderCustomNamedRequestIdOptionalParams, HeaderCustomNamedRequestIdResponse, @@ -19,7 +19,7 @@ import { HeaderCustomNamedRequestIdParamGroupingResponse, HeaderCustomNamedRequestIdHeadOptionalParams, HeaderCustomNamedRequestIdHeadResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Header operations. */ export class HeaderImpl implements Header { diff --git a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/index.ts index 381f28bcca..06b890c3d6 100644 --- a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/index.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./xMsClientRequestId"; -export * from "./subscriptionInCredentials"; -export * from "./subscriptionInMethod"; -export * from "./apiVersionDefault"; -export * from "./apiVersionLocal"; -export * from "./skipUrlEncoding"; -export * from "./odata"; -export * from "./header"; +export * from "./xMsClientRequestId.js"; +export * from "./subscriptionInCredentials.js"; +export * from "./subscriptionInMethod.js"; +export * from "./apiVersionDefault.js"; +export * from "./apiVersionLocal.js"; +export * from "./skipUrlEncoding.js"; +export * from "./odata.js"; +export * from "./header.js"; diff --git a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/odata.ts b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/odata.ts index abc4a259b9..6800f45f1e 100644 --- a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/odata.ts +++ b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/odata.ts @@ -6,12 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Odata } from "../operationsInterfaces"; +import { Odata } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureSpecialPropertiesClient } from "../azureSpecialPropertiesClient"; -import { OdataGetWithFilterOptionalParams } from "../models"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureSpecialPropertiesClient } from "../azureSpecialPropertiesClient.js"; +import { OdataGetWithFilterOptionalParams } from "../models/index.js"; /** Class containing Odata operations. */ export class OdataImpl implements Odata { diff --git a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/skipUrlEncoding.ts b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/skipUrlEncoding.ts index 2cc8e11c81..b7d8c8300e 100644 --- a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/skipUrlEncoding.ts +++ b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/skipUrlEncoding.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { SkipUrlEncoding } from "../operationsInterfaces"; +import { SkipUrlEncoding } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureSpecialPropertiesClient } from "../azureSpecialPropertiesClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureSpecialPropertiesClient } from "../azureSpecialPropertiesClient.js"; import { SkipUrlEncodingGetMethodPathValidOptionalParams, SkipUrlEncodingGetPathValidOptionalParams, @@ -19,7 +19,7 @@ import { SkipUrlEncodingGetMethodQueryNullOptionalParams, SkipUrlEncodingGetPathQueryValidOptionalParams, SkipUrlEncodingGetSwaggerQueryValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing SkipUrlEncoding operations. */ export class SkipUrlEncodingImpl implements SkipUrlEncoding { diff --git a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/subscriptionInCredentials.ts b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/subscriptionInCredentials.ts index 69dc7c3b02..3616cc541d 100644 --- a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/subscriptionInCredentials.ts +++ b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/subscriptionInCredentials.ts @@ -6,18 +6,18 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { SubscriptionInCredentials } from "../operationsInterfaces"; +import { SubscriptionInCredentials } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureSpecialPropertiesClient } from "../azureSpecialPropertiesClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureSpecialPropertiesClient } from "../azureSpecialPropertiesClient.js"; import { SubscriptionInCredentialsPostMethodGlobalValidOptionalParams, SubscriptionInCredentialsPostMethodGlobalNullOptionalParams, SubscriptionInCredentialsPostMethodGlobalNotProvidedValidOptionalParams, SubscriptionInCredentialsPostPathGlobalValidOptionalParams, SubscriptionInCredentialsPostSwaggerGlobalValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing SubscriptionInCredentials operations. */ export class SubscriptionInCredentialsImpl diff --git a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/subscriptionInMethod.ts b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/subscriptionInMethod.ts index 025852a719..9bf8476227 100644 --- a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/subscriptionInMethod.ts +++ b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/subscriptionInMethod.ts @@ -6,17 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { SubscriptionInMethod } from "../operationsInterfaces"; +import { SubscriptionInMethod } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureSpecialPropertiesClient } from "../azureSpecialPropertiesClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureSpecialPropertiesClient } from "../azureSpecialPropertiesClient.js"; import { SubscriptionInMethodPostMethodLocalValidOptionalParams, SubscriptionInMethodPostMethodLocalNullOptionalParams, SubscriptionInMethodPostPathLocalValidOptionalParams, SubscriptionInMethodPostSwaggerLocalValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing SubscriptionInMethod operations. */ export class SubscriptionInMethodImpl implements SubscriptionInMethod { diff --git a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/xMsClientRequestId.ts b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/xMsClientRequestId.ts index c770a9d6cb..0ee1414328 100644 --- a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/xMsClientRequestId.ts +++ b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operations/xMsClientRequestId.ts @@ -6,15 +6,15 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { XMsClientRequestId } from "../operationsInterfaces"; +import { XMsClientRequestId } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureSpecialPropertiesClient } from "../azureSpecialPropertiesClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureSpecialPropertiesClient } from "../azureSpecialPropertiesClient.js"; import { XMsClientRequestIdGetOptionalParams, XMsClientRequestIdParamGetOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing XMsClientRequestId operations. */ export class XMsClientRequestIdImpl implements XMsClientRequestId { diff --git a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/apiVersionDefault.ts b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/apiVersionDefault.ts index 6965a209ca..ee7c4c8ef4 100644 --- a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/apiVersionDefault.ts +++ b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/apiVersionDefault.ts @@ -11,7 +11,7 @@ import { ApiVersionDefaultGetMethodGlobalNotProvidedValidOptionalParams, ApiVersionDefaultGetPathGlobalValidOptionalParams, ApiVersionDefaultGetSwaggerGlobalValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a ApiVersionDefault. */ export interface ApiVersionDefault { diff --git a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/apiVersionLocal.ts b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/apiVersionLocal.ts index 8446f02349..4b5aa759d2 100644 --- a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/apiVersionLocal.ts +++ b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/apiVersionLocal.ts @@ -11,7 +11,7 @@ import { ApiVersionLocalGetMethodLocalNullOptionalParams, ApiVersionLocalGetPathLocalValidOptionalParams, ApiVersionLocalGetSwaggerLocalValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a ApiVersionLocal. */ export interface ApiVersionLocal { diff --git a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/header.ts b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/header.ts index e51e016cd2..b674eddde9 100644 --- a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/header.ts +++ b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/header.ts @@ -14,7 +14,7 @@ import { HeaderCustomNamedRequestIdParamGroupingResponse, HeaderCustomNamedRequestIdHeadOptionalParams, HeaderCustomNamedRequestIdHeadResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Header. */ export interface Header { diff --git a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/index.ts index 381f28bcca..06b890c3d6 100644 --- a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/index.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./xMsClientRequestId"; -export * from "./subscriptionInCredentials"; -export * from "./subscriptionInMethod"; -export * from "./apiVersionDefault"; -export * from "./apiVersionLocal"; -export * from "./skipUrlEncoding"; -export * from "./odata"; -export * from "./header"; +export * from "./xMsClientRequestId.js"; +export * from "./subscriptionInCredentials.js"; +export * from "./subscriptionInMethod.js"; +export * from "./apiVersionDefault.js"; +export * from "./apiVersionLocal.js"; +export * from "./skipUrlEncoding.js"; +export * from "./odata.js"; +export * from "./header.js"; diff --git a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/odata.ts b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/odata.ts index 8d9b254469..252e043504 100644 --- a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/odata.ts +++ b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/odata.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { OdataGetWithFilterOptionalParams } from "../models"; +import { OdataGetWithFilterOptionalParams } from "../models/index.js"; /** Interface representing a Odata. */ export interface Odata { diff --git a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/skipUrlEncoding.ts b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/skipUrlEncoding.ts index c034fb6fde..a2a659465b 100644 --- a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/skipUrlEncoding.ts +++ b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/skipUrlEncoding.ts @@ -14,7 +14,7 @@ import { SkipUrlEncodingGetMethodQueryNullOptionalParams, SkipUrlEncodingGetPathQueryValidOptionalParams, SkipUrlEncodingGetSwaggerQueryValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a SkipUrlEncoding. */ export interface SkipUrlEncoding { diff --git a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/subscriptionInCredentials.ts b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/subscriptionInCredentials.ts index 8149e84a59..10a4f0d211 100644 --- a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/subscriptionInCredentials.ts +++ b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/subscriptionInCredentials.ts @@ -12,7 +12,7 @@ import { SubscriptionInCredentialsPostMethodGlobalNotProvidedValidOptionalParams, SubscriptionInCredentialsPostPathGlobalValidOptionalParams, SubscriptionInCredentialsPostSwaggerGlobalValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a SubscriptionInCredentials. */ export interface SubscriptionInCredentials { diff --git a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/subscriptionInMethod.ts b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/subscriptionInMethod.ts index e35a159767..c97c32d168 100644 --- a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/subscriptionInMethod.ts +++ b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/subscriptionInMethod.ts @@ -11,7 +11,7 @@ import { SubscriptionInMethodPostMethodLocalNullOptionalParams, SubscriptionInMethodPostPathLocalValidOptionalParams, SubscriptionInMethodPostSwaggerLocalValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a SubscriptionInMethod. */ export interface SubscriptionInMethod { diff --git a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/xMsClientRequestId.ts b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/xMsClientRequestId.ts index 3bb61f788a..fe2225d5aa 100644 --- a/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/xMsClientRequestId.ts +++ b/packages/autorest.typescript/test/integration/generated/azureSpecialProperties/src/operationsInterfaces/xMsClientRequestId.ts @@ -9,7 +9,7 @@ import { XMsClientRequestIdGetOptionalParams, XMsClientRequestIdParamGetOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a XMsClientRequestId. */ export interface XMsClientRequestId { diff --git a/packages/autorest.typescript/test/integration/generated/bodyArray/src/bodyArrayClient.ts b/packages/autorest.typescript/test/integration/generated/bodyArray/src/bodyArrayClient.ts index 64cd111022..8d2dc83c24 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyArray/src/bodyArrayClient.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyArray/src/bodyArrayClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { ArrayImpl } from "./operations"; -import { Array } from "./operationsInterfaces"; -import { BodyArrayClientOptionalParams } from "./models"; +import { ArrayImpl } from "./operations/index.js"; +import { Array } from "./operationsInterfaces/index.js"; +import { BodyArrayClientOptionalParams } from "./models/index.js"; export class BodyArrayClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/bodyArray/src/index.ts b/packages/autorest.typescript/test/integration/generated/bodyArray/src/index.ts index 6c1db93646..c25da31140 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyArray/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyArray/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { BodyArrayClient } from "./bodyArrayClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { BodyArrayClient } from "./bodyArrayClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyArray/src/operations/array.ts b/packages/autorest.typescript/test/integration/generated/bodyArray/src/operations/array.ts index 13ad123937..c965ff6378 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyArray/src/operations/array.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyArray/src/operations/array.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Array } from "../operationsInterfaces"; +import { Array } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyArrayClient } from "../bodyArrayClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyArrayClient } from "../bodyArrayClient.js"; import { ArrayGetNullOptionalParams, ArrayGetNullResponse, @@ -135,7 +135,7 @@ import { ArrayGetDictionaryValidOptionalParams, ArrayGetDictionaryValidResponse, ArrayPutDictionaryValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Array operations. */ export class ArrayImpl implements Array { diff --git a/packages/autorest.typescript/test/integration/generated/bodyArray/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/bodyArray/src/operations/index.ts index 4f925b492a..9058de5657 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyArray/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyArray/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./array"; +export * from "./array.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyArray/src/operationsInterfaces/array.ts b/packages/autorest.typescript/test/integration/generated/bodyArray/src/operationsInterfaces/array.ts index 01de6e283e..5932847f1d 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyArray/src/operationsInterfaces/array.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyArray/src/operationsInterfaces/array.ts @@ -130,7 +130,7 @@ import { ArrayGetDictionaryValidOptionalParams, ArrayGetDictionaryValidResponse, ArrayPutDictionaryValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Array. */ export interface Array { diff --git a/packages/autorest.typescript/test/integration/generated/bodyArray/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/bodyArray/src/operationsInterfaces/index.ts index 4f925b492a..9058de5657 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyArray/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyArray/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./array"; +export * from "./array.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/bodyBooleanClient.ts b/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/bodyBooleanClient.ts index 87167c2538..47a72c4586 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/bodyBooleanClient.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/bodyBooleanClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { BoolImpl } from "./operations"; -import { Bool } from "./operationsInterfaces"; -import { BodyBooleanClientOptionalParams } from "./models"; +import { BoolImpl } from "./operations/index.js"; +import { Bool } from "./operationsInterfaces/index.js"; +import { BodyBooleanClientOptionalParams } from "./models/index.js"; export class BodyBooleanClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/index.ts b/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/index.ts index 4ccee4090c..74f6f116bf 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { BodyBooleanClient } from "./bodyBooleanClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { BodyBooleanClient } from "./bodyBooleanClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/operations/bool.ts b/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/operations/bool.ts index 2b110e4703..c49534e9c6 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/operations/bool.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/operations/bool.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Bool } from "../operationsInterfaces"; +import { Bool } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyBooleanClient } from "../bodyBooleanClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyBooleanClient } from "../bodyBooleanClient.js"; import { BoolGetTrueOptionalParams, BoolGetTrueResponse, @@ -22,7 +22,7 @@ import { BoolGetNullResponse, BoolGetInvalidOptionalParams, BoolGetInvalidResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Bool operations. */ export class BoolImpl implements Bool { diff --git a/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/operations/index.ts index 10fe0a2e9a..67547ee53e 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./bool"; +export * from "./bool.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/operationsInterfaces/bool.ts b/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/operationsInterfaces/bool.ts index c3a3aca0b3..6d3cd28fb4 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/operationsInterfaces/bool.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/operationsInterfaces/bool.ts @@ -17,7 +17,7 @@ import { BoolGetNullResponse, BoolGetInvalidOptionalParams, BoolGetInvalidResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Bool. */ export interface Bool { diff --git a/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/operationsInterfaces/index.ts index 10fe0a2e9a..67547ee53e 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyBoolean/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./bool"; +export * from "./bool.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/bodyBooleanQuirksClient.ts b/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/bodyBooleanQuirksClient.ts index 4724302983..7b5b38a7b5 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/bodyBooleanQuirksClient.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/bodyBooleanQuirksClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { BoolImpl } from "./operations"; -import { Bool } from "./operationsInterfaces"; -import { BodyBooleanQuirksClientOptionalParams } from "./models"; +import { BoolImpl } from "./operations/index.js"; +import { Bool } from "./operationsInterfaces/index.js"; +import { BodyBooleanQuirksClientOptionalParams } from "./models/index.js"; export class BodyBooleanQuirksClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/index.ts b/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/index.ts index c2fd7fd6d7..254982441c 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { BodyBooleanQuirksClient } from "./bodyBooleanQuirksClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { BodyBooleanQuirksClient } from "./bodyBooleanQuirksClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/operations/bool.ts b/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/operations/bool.ts index 73397d9c81..dd32a2208c 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/operations/bool.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/operations/bool.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Bool } from "../operationsInterfaces"; +import { Bool } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyBooleanQuirksClient } from "../bodyBooleanQuirksClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyBooleanQuirksClient } from "../bodyBooleanQuirksClient.js"; import { BoolGetTrueOptionalParams, BoolGetTrueResponse, @@ -22,7 +22,7 @@ import { BoolGetNullResponse, BoolGetInvalidOptionalParams, BoolGetInvalidResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Bool operations. */ export class BoolImpl implements Bool { diff --git a/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/operations/index.ts index 10fe0a2e9a..67547ee53e 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./bool"; +export * from "./bool.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/operationsInterfaces/bool.ts b/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/operationsInterfaces/bool.ts index 58818d27ab..2e4083ce73 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/operationsInterfaces/bool.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/operationsInterfaces/bool.ts @@ -17,7 +17,7 @@ import { BoolGetNullResponse, BoolGetInvalidOptionalParams, BoolGetInvalidResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Bool. */ export interface Bool { diff --git a/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/operationsInterfaces/index.ts index 10fe0a2e9a..67547ee53e 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyBooleanQuirks/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./bool"; +export * from "./bool.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyByte/src/bodyByteClient.ts b/packages/autorest.typescript/test/integration/generated/bodyByte/src/bodyByteClient.ts index c5898b8ad6..65c1406c24 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyByte/src/bodyByteClient.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyByte/src/bodyByteClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { ByteImpl } from "./operations"; -import { Byte } from "./operationsInterfaces"; -import { BodyByteClientOptionalParams } from "./models"; +import { ByteImpl } from "./operations/index.js"; +import { Byte } from "./operationsInterfaces/index.js"; +import { BodyByteClientOptionalParams } from "./models/index.js"; export class BodyByteClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/bodyByte/src/index.ts b/packages/autorest.typescript/test/integration/generated/bodyByte/src/index.ts index a1c296dd4d..feaf2d1f86 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyByte/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyByte/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { BodyByteClient } from "./bodyByteClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { BodyByteClient } from "./bodyByteClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyByte/src/operations/byte.ts b/packages/autorest.typescript/test/integration/generated/bodyByte/src/operations/byte.ts index ad85932851..82bfb64c2a 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyByte/src/operations/byte.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyByte/src/operations/byte.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Byte } from "../operationsInterfaces"; +import { Byte } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyByteClient } from "../bodyByteClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyByteClient } from "../bodyByteClient.js"; import { ByteGetNullOptionalParams, ByteGetNullResponse, @@ -21,7 +21,7 @@ import { BytePutNonAsciiOptionalParams, ByteGetInvalidOptionalParams, ByteGetInvalidResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Byte operations. */ export class ByteImpl implements Byte { diff --git a/packages/autorest.typescript/test/integration/generated/bodyByte/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/bodyByte/src/operations/index.ts index 8e71ce4057..7993b37095 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyByte/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyByte/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./byte"; +export * from "./byte.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyByte/src/operationsInterfaces/byte.ts b/packages/autorest.typescript/test/integration/generated/bodyByte/src/operationsInterfaces/byte.ts index d3b182e967..3c1c293c51 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyByte/src/operationsInterfaces/byte.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyByte/src/operationsInterfaces/byte.ts @@ -16,7 +16,7 @@ import { BytePutNonAsciiOptionalParams, ByteGetInvalidOptionalParams, ByteGetInvalidResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Byte. */ export interface Byte { diff --git a/packages/autorest.typescript/test/integration/generated/bodyByte/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/bodyByte/src/operationsInterfaces/index.ts index 8e71ce4057..7993b37095 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyByte/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyByte/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./byte"; +export * from "./byte.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/bodyComplexClient.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/bodyComplexClient.ts index 49580b18b5..18f2980d42 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/bodyComplexClient.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/bodyComplexClient.ts @@ -22,7 +22,7 @@ import { PolymorphicrecursiveImpl, ReadonlypropertyImpl, FlattencomplexImpl, -} from "./operations"; +} from "./operations/index.js"; import { Basic, Primitive, @@ -33,8 +33,8 @@ import { Polymorphicrecursive, Readonlyproperty, Flattencomplex, -} from "./operationsInterfaces"; -import { BodyComplexClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { BodyComplexClientOptionalParams } from "./models/index.js"; export class BodyComplexClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/index.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/index.ts index cc8998cfbd..666f2fd21b 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { BodyComplexClient } from "./bodyComplexClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { BodyComplexClient } from "./bodyComplexClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/models/parameters.ts index daa407e86a..e795b17a5a 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/models/parameters.ts @@ -30,7 +30,7 @@ import { Fish as FishMapper, Salmon as SalmonMapper, ReadonlyObj as ReadonlyObjMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/array.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/array.ts index ef4b68a3ca..0f9a66fd6b 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/array.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/array.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Array } from "../operationsInterfaces"; +import { Array } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyComplexClient } from "../bodyComplexClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyComplexClient } from "../bodyComplexClient.js"; import { ArrayGetValidOptionalParams, ArrayGetValidResponse, @@ -21,7 +21,7 @@ import { ArrayPutEmptyOptionalParams, ArrayGetNotProvidedOptionalParams, ArrayGetNotProvidedResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Array operations. */ export class ArrayImpl implements Array { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/basic.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/basic.ts index 85d9a36ac7..6d7e672f39 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/basic.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/basic.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Basic } from "../operationsInterfaces"; +import { Basic } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyComplexClient } from "../bodyComplexClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyComplexClient } from "../bodyComplexClient.js"; import { BasicGetValidOptionalParams, BasicGetValidResponse, @@ -24,7 +24,7 @@ import { BasicGetNullResponse, BasicGetNotProvidedOptionalParams, BasicGetNotProvidedResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Basic operations. */ export class BasicImpl implements Basic { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/dictionary.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/dictionary.ts index c990b8485c..a76da8caa2 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/dictionary.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/dictionary.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Dictionary } from "../operationsInterfaces"; +import { Dictionary } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyComplexClient } from "../bodyComplexClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyComplexClient } from "../bodyComplexClient.js"; import { DictionaryGetValidOptionalParams, DictionaryGetValidResponse, @@ -23,7 +23,7 @@ import { DictionaryGetNullResponse, DictionaryGetNotProvidedOptionalParams, DictionaryGetNotProvidedResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Dictionary operations. */ export class DictionaryImpl implements Dictionary { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/flattencomplex.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/flattencomplex.ts index e4a127f692..2b5ef82b02 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/flattencomplex.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/flattencomplex.ts @@ -6,15 +6,15 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Flattencomplex } from "../operationsInterfaces"; +import { Flattencomplex } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyComplexClient } from "../bodyComplexClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyComplexClient } from "../bodyComplexClient.js"; import { FlattencomplexGetValidOptionalParams, FlattencomplexGetValidResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Flattencomplex operations. */ export class FlattencomplexImpl implements Flattencomplex { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/index.ts index 96a7dc5e1a..072530b58f 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/index.ts @@ -6,12 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./basic"; -export * from "./primitive"; -export * from "./array"; -export * from "./dictionary"; -export * from "./inheritance"; -export * from "./polymorphism"; -export * from "./polymorphicrecursive"; -export * from "./readonlyproperty"; -export * from "./flattencomplex"; +export * from "./basic.js"; +export * from "./primitive.js"; +export * from "./array.js"; +export * from "./dictionary.js"; +export * from "./inheritance.js"; +export * from "./polymorphism.js"; +export * from "./polymorphicrecursive.js"; +export * from "./readonlyproperty.js"; +export * from "./flattencomplex.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/inheritance.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/inheritance.ts index 38de9e51c1..5c200ea5ff 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/inheritance.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/inheritance.ts @@ -6,17 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Inheritance } from "../operationsInterfaces"; +import { Inheritance } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyComplexClient } from "../bodyComplexClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyComplexClient } from "../bodyComplexClient.js"; import { InheritanceGetValidOptionalParams, InheritanceGetValidResponse, Siamese, InheritancePutValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Inheritance operations. */ export class InheritanceImpl implements Inheritance { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/polymorphicrecursive.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/polymorphicrecursive.ts index 72ee5f7f76..c0cce6aed6 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/polymorphicrecursive.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/polymorphicrecursive.ts @@ -6,17 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Polymorphicrecursive } from "../operationsInterfaces"; +import { Polymorphicrecursive } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyComplexClient } from "../bodyComplexClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyComplexClient } from "../bodyComplexClient.js"; import { PolymorphicrecursiveGetValidOptionalParams, PolymorphicrecursiveGetValidResponse, FishUnion, PolymorphicrecursivePutValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Polymorphicrecursive operations. */ export class PolymorphicrecursiveImpl implements Polymorphicrecursive { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/polymorphism.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/polymorphism.ts index 67a3535e57..5044d6d739 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/polymorphism.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/polymorphism.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Polymorphism } from "../operationsInterfaces"; +import { Polymorphism } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyComplexClient } from "../bodyComplexClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyComplexClient } from "../bodyComplexClient.js"; import { PolymorphismGetValidOptionalParams, PolymorphismGetValidResponse, @@ -29,7 +29,7 @@ import { PolymorphismPutMissingDiscriminatorOptionalParams, PolymorphismPutMissingDiscriminatorResponse, PolymorphismPutValidMissingRequiredOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Polymorphism operations. */ export class PolymorphismImpl implements Polymorphism { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/primitive.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/primitive.ts index 7353d814ad..e3a7e09f64 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/primitive.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/primitive.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Primitive } from "../operationsInterfaces"; +import { Primitive } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyComplexClient } from "../bodyComplexClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyComplexClient } from "../bodyComplexClient.js"; import { PrimitiveGetIntOptionalParams, PrimitiveGetIntResponse, @@ -56,7 +56,7 @@ import { PrimitiveGetByteResponse, ByteWrapper, PrimitivePutByteOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Primitive operations. */ export class PrimitiveImpl implements Primitive { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/readonlyproperty.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/readonlyproperty.ts index 224eb5b49d..1103339da1 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/readonlyproperty.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operations/readonlyproperty.ts @@ -6,17 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Readonlyproperty } from "../operationsInterfaces"; +import { Readonlyproperty } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyComplexClient } from "../bodyComplexClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyComplexClient } from "../bodyComplexClient.js"; import { ReadonlypropertyGetValidOptionalParams, ReadonlypropertyGetValidResponse, ReadonlyObj, ReadonlypropertyPutValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Readonlyproperty operations. */ export class ReadonlypropertyImpl implements Readonlyproperty { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/array.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/array.ts index dcd1dbe2c9..e29346b656 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/array.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/array.ts @@ -16,7 +16,7 @@ import { ArrayPutEmptyOptionalParams, ArrayGetNotProvidedOptionalParams, ArrayGetNotProvidedResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Array. */ export interface Array { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/basic.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/basic.ts index 50929814dc..fa080b1390 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/basic.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/basic.ts @@ -19,7 +19,7 @@ import { BasicGetNullResponse, BasicGetNotProvidedOptionalParams, BasicGetNotProvidedResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Basic. */ export interface Basic { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/dictionary.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/dictionary.ts index 961635ab64..0c4ffcaf31 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/dictionary.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/dictionary.ts @@ -18,7 +18,7 @@ import { DictionaryGetNullResponse, DictionaryGetNotProvidedOptionalParams, DictionaryGetNotProvidedResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Dictionary. */ export interface Dictionary { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/flattencomplex.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/flattencomplex.ts index a02707f6ac..6a2c26f6e9 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/flattencomplex.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/flattencomplex.ts @@ -9,7 +9,7 @@ import { FlattencomplexGetValidOptionalParams, FlattencomplexGetValidResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Flattencomplex. */ export interface Flattencomplex { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/index.ts index 96a7dc5e1a..072530b58f 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/index.ts @@ -6,12 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./basic"; -export * from "./primitive"; -export * from "./array"; -export * from "./dictionary"; -export * from "./inheritance"; -export * from "./polymorphism"; -export * from "./polymorphicrecursive"; -export * from "./readonlyproperty"; -export * from "./flattencomplex"; +export * from "./basic.js"; +export * from "./primitive.js"; +export * from "./array.js"; +export * from "./dictionary.js"; +export * from "./inheritance.js"; +export * from "./polymorphism.js"; +export * from "./polymorphicrecursive.js"; +export * from "./readonlyproperty.js"; +export * from "./flattencomplex.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/inheritance.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/inheritance.ts index 0ae41447cb..4088b6da1c 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/inheritance.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/inheritance.ts @@ -11,7 +11,7 @@ import { InheritanceGetValidResponse, Siamese, InheritancePutValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Inheritance. */ export interface Inheritance { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/polymorphicrecursive.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/polymorphicrecursive.ts index d9f7feb84e..cdba79f0dc 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/polymorphicrecursive.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/polymorphicrecursive.ts @@ -11,7 +11,7 @@ import { PolymorphicrecursiveGetValidResponse, FishUnion, PolymorphicrecursivePutValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Polymorphicrecursive. */ export interface Polymorphicrecursive { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/polymorphism.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/polymorphism.ts index 7e947c81e4..9ccda38a0c 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/polymorphism.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/polymorphism.ts @@ -24,7 +24,7 @@ import { PolymorphismPutMissingDiscriminatorOptionalParams, PolymorphismPutMissingDiscriminatorResponse, PolymorphismPutValidMissingRequiredOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Polymorphism. */ export interface Polymorphism { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/primitive.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/primitive.ts index 8969bc70b4..2ad03cdbd9 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/primitive.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/primitive.ts @@ -51,7 +51,7 @@ import { PrimitiveGetByteResponse, ByteWrapper, PrimitivePutByteOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Primitive. */ export interface Primitive { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/readonlyproperty.ts b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/readonlyproperty.ts index d859b9ddad..9de07abef8 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/readonlyproperty.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplex/src/operationsInterfaces/readonlyproperty.ts @@ -11,7 +11,7 @@ import { ReadonlypropertyGetValidResponse, ReadonlyObj, ReadonlypropertyPutValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Readonlyproperty. */ export interface Readonlyproperty { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/bodyComplexWithTracing.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/bodyComplexWithTracing.ts index 43ac0b6225..268b6555c9 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/bodyComplexWithTracing.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/bodyComplexWithTracing.ts @@ -22,7 +22,7 @@ import { PolymorphicrecursiveImpl, ReadonlypropertyImpl, FlattencomplexImpl, -} from "./operations"; +} from "./operations/index.js"; import { Basic, Primitive, @@ -33,8 +33,8 @@ import { Polymorphicrecursive, Readonlyproperty, Flattencomplex, -} from "./operationsInterfaces"; -import { BodyComplexWithTracingOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { BodyComplexWithTracingOptionalParams } from "./models/index.js"; export class BodyComplexWithTracing extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/index.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/index.ts index ee387fe83f..27808a4358 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { BodyComplexWithTracing } from "./bodyComplexWithTracing"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { BodyComplexWithTracing } from "./bodyComplexWithTracing.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/models/parameters.ts index daa407e86a..e795b17a5a 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/models/parameters.ts @@ -30,7 +30,7 @@ import { Fish as FishMapper, Salmon as SalmonMapper, ReadonlyObj as ReadonlyObjMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/array.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/array.ts index d6549c1de4..f7bd52e3d1 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/array.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/array.ts @@ -7,11 +7,11 @@ */ import { tracingClient } from "../tracing"; -import { Array } from "../operationsInterfaces"; +import { Array } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyComplexWithTracing } from "../bodyComplexWithTracing"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyComplexWithTracing } from "../bodyComplexWithTracing.js"; import { ArrayGetValidOptionalParams, ArrayGetValidResponse, @@ -22,7 +22,7 @@ import { ArrayPutEmptyOptionalParams, ArrayGetNotProvidedOptionalParams, ArrayGetNotProvidedResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Array operations. */ export class ArrayImpl implements Array { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/basic.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/basic.ts index db9092d306..e2f5da14f0 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/basic.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/basic.ts @@ -7,11 +7,11 @@ */ import { tracingClient } from "../tracing"; -import { Basic } from "../operationsInterfaces"; +import { Basic } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyComplexWithTracing } from "../bodyComplexWithTracing"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyComplexWithTracing } from "../bodyComplexWithTracing.js"; import { BasicGetValidOptionalParams, BasicGetValidResponse, @@ -25,7 +25,7 @@ import { BasicGetNullResponse, BasicGetNotProvidedOptionalParams, BasicGetNotProvidedResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Basic operations. */ export class BasicImpl implements Basic { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/dictionary.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/dictionary.ts index 22e38aebe4..f8a2a2576b 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/dictionary.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/dictionary.ts @@ -7,11 +7,11 @@ */ import { tracingClient } from "../tracing"; -import { Dictionary } from "../operationsInterfaces"; +import { Dictionary } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyComplexWithTracing } from "../bodyComplexWithTracing"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyComplexWithTracing } from "../bodyComplexWithTracing.js"; import { DictionaryGetValidOptionalParams, DictionaryGetValidResponse, @@ -24,7 +24,7 @@ import { DictionaryGetNullResponse, DictionaryGetNotProvidedOptionalParams, DictionaryGetNotProvidedResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Dictionary operations. */ export class DictionaryImpl implements Dictionary { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/flattencomplex.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/flattencomplex.ts index 4c4c9720ef..d1550fafe9 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/flattencomplex.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/flattencomplex.ts @@ -7,15 +7,15 @@ */ import { tracingClient } from "../tracing"; -import { Flattencomplex } from "../operationsInterfaces"; +import { Flattencomplex } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyComplexWithTracing } from "../bodyComplexWithTracing"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyComplexWithTracing } from "../bodyComplexWithTracing.js"; import { FlattencomplexGetValidOptionalParams, FlattencomplexGetValidResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Flattencomplex operations. */ export class FlattencomplexImpl implements Flattencomplex { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/index.ts index 96a7dc5e1a..072530b58f 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/index.ts @@ -6,12 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./basic"; -export * from "./primitive"; -export * from "./array"; -export * from "./dictionary"; -export * from "./inheritance"; -export * from "./polymorphism"; -export * from "./polymorphicrecursive"; -export * from "./readonlyproperty"; -export * from "./flattencomplex"; +export * from "./basic.js"; +export * from "./primitive.js"; +export * from "./array.js"; +export * from "./dictionary.js"; +export * from "./inheritance.js"; +export * from "./polymorphism.js"; +export * from "./polymorphicrecursive.js"; +export * from "./readonlyproperty.js"; +export * from "./flattencomplex.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/inheritance.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/inheritance.ts index 53e51b9878..31611fb1b5 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/inheritance.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/inheritance.ts @@ -7,17 +7,17 @@ */ import { tracingClient } from "../tracing"; -import { Inheritance } from "../operationsInterfaces"; +import { Inheritance } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyComplexWithTracing } from "../bodyComplexWithTracing"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyComplexWithTracing } from "../bodyComplexWithTracing.js"; import { InheritanceGetValidOptionalParams, InheritanceGetValidResponse, Siamese, InheritancePutValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Inheritance operations. */ export class InheritanceImpl implements Inheritance { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/polymorphicrecursive.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/polymorphicrecursive.ts index d4f9d45bc5..f08d20926e 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/polymorphicrecursive.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/polymorphicrecursive.ts @@ -7,17 +7,17 @@ */ import { tracingClient } from "../tracing"; -import { Polymorphicrecursive } from "../operationsInterfaces"; +import { Polymorphicrecursive } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyComplexWithTracing } from "../bodyComplexWithTracing"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyComplexWithTracing } from "../bodyComplexWithTracing.js"; import { PolymorphicrecursiveGetValidOptionalParams, PolymorphicrecursiveGetValidResponse, FishUnion, PolymorphicrecursivePutValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Polymorphicrecursive operations. */ export class PolymorphicrecursiveImpl implements Polymorphicrecursive { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/polymorphism.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/polymorphism.ts index 4b42cee337..01f8d63ae9 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/polymorphism.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/polymorphism.ts @@ -7,11 +7,11 @@ */ import { tracingClient } from "../tracing"; -import { Polymorphism } from "../operationsInterfaces"; +import { Polymorphism } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyComplexWithTracing } from "../bodyComplexWithTracing"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyComplexWithTracing } from "../bodyComplexWithTracing.js"; import { PolymorphismGetValidOptionalParams, PolymorphismGetValidResponse, @@ -30,7 +30,7 @@ import { PolymorphismPutMissingDiscriminatorOptionalParams, PolymorphismPutMissingDiscriminatorResponse, PolymorphismPutValidMissingRequiredOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Polymorphism operations. */ export class PolymorphismImpl implements Polymorphism { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/primitive.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/primitive.ts index 9b5f29815a..8eddf3fff5 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/primitive.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/primitive.ts @@ -7,11 +7,11 @@ */ import { tracingClient } from "../tracing"; -import { Primitive } from "../operationsInterfaces"; +import { Primitive } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyComplexWithTracing } from "../bodyComplexWithTracing"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyComplexWithTracing } from "../bodyComplexWithTracing.js"; import { PrimitiveGetIntOptionalParams, PrimitiveGetIntResponse, @@ -57,7 +57,7 @@ import { PrimitiveGetByteResponse, ByteWrapper, PrimitivePutByteOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Primitive operations. */ export class PrimitiveImpl implements Primitive { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/readonlyproperty.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/readonlyproperty.ts index 6a77b05cef..7413e223cf 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/readonlyproperty.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operations/readonlyproperty.ts @@ -7,17 +7,17 @@ */ import { tracingClient } from "../tracing"; -import { Readonlyproperty } from "../operationsInterfaces"; +import { Readonlyproperty } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyComplexWithTracing } from "../bodyComplexWithTracing"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyComplexWithTracing } from "../bodyComplexWithTracing.js"; import { ReadonlypropertyGetValidOptionalParams, ReadonlypropertyGetValidResponse, ReadonlyObj, ReadonlypropertyPutValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Readonlyproperty operations. */ export class ReadonlypropertyImpl implements Readonlyproperty { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/array.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/array.ts index dcd1dbe2c9..e29346b656 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/array.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/array.ts @@ -16,7 +16,7 @@ import { ArrayPutEmptyOptionalParams, ArrayGetNotProvidedOptionalParams, ArrayGetNotProvidedResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Array. */ export interface Array { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/basic.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/basic.ts index 50929814dc..fa080b1390 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/basic.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/basic.ts @@ -19,7 +19,7 @@ import { BasicGetNullResponse, BasicGetNotProvidedOptionalParams, BasicGetNotProvidedResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Basic. */ export interface Basic { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/dictionary.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/dictionary.ts index 961635ab64..0c4ffcaf31 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/dictionary.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/dictionary.ts @@ -18,7 +18,7 @@ import { DictionaryGetNullResponse, DictionaryGetNotProvidedOptionalParams, DictionaryGetNotProvidedResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Dictionary. */ export interface Dictionary { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/flattencomplex.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/flattencomplex.ts index a02707f6ac..6a2c26f6e9 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/flattencomplex.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/flattencomplex.ts @@ -9,7 +9,7 @@ import { FlattencomplexGetValidOptionalParams, FlattencomplexGetValidResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Flattencomplex. */ export interface Flattencomplex { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/index.ts index 96a7dc5e1a..072530b58f 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/index.ts @@ -6,12 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./basic"; -export * from "./primitive"; -export * from "./array"; -export * from "./dictionary"; -export * from "./inheritance"; -export * from "./polymorphism"; -export * from "./polymorphicrecursive"; -export * from "./readonlyproperty"; -export * from "./flattencomplex"; +export * from "./basic.js"; +export * from "./primitive.js"; +export * from "./array.js"; +export * from "./dictionary.js"; +export * from "./inheritance.js"; +export * from "./polymorphism.js"; +export * from "./polymorphicrecursive.js"; +export * from "./readonlyproperty.js"; +export * from "./flattencomplex.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/inheritance.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/inheritance.ts index 0ae41447cb..4088b6da1c 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/inheritance.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/inheritance.ts @@ -11,7 +11,7 @@ import { InheritanceGetValidResponse, Siamese, InheritancePutValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Inheritance. */ export interface Inheritance { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/polymorphicrecursive.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/polymorphicrecursive.ts index d9f7feb84e..cdba79f0dc 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/polymorphicrecursive.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/polymorphicrecursive.ts @@ -11,7 +11,7 @@ import { PolymorphicrecursiveGetValidResponse, FishUnion, PolymorphicrecursivePutValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Polymorphicrecursive. */ export interface Polymorphicrecursive { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/polymorphism.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/polymorphism.ts index 7e947c81e4..9ccda38a0c 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/polymorphism.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/polymorphism.ts @@ -24,7 +24,7 @@ import { PolymorphismPutMissingDiscriminatorOptionalParams, PolymorphismPutMissingDiscriminatorResponse, PolymorphismPutValidMissingRequiredOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Polymorphism. */ export interface Polymorphism { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/primitive.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/primitive.ts index 8969bc70b4..2ad03cdbd9 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/primitive.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/primitive.ts @@ -51,7 +51,7 @@ import { PrimitiveGetByteResponse, ByteWrapper, PrimitivePutByteOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Primitive. */ export interface Primitive { diff --git a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/readonlyproperty.ts b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/readonlyproperty.ts index d859b9ddad..9de07abef8 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/readonlyproperty.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyComplexWithTracing/src/operationsInterfaces/readonlyproperty.ts @@ -11,7 +11,7 @@ import { ReadonlypropertyGetValidResponse, ReadonlyObj, ReadonlypropertyPutValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Readonlyproperty. */ export interface Readonlyproperty { diff --git a/packages/autorest.typescript/test/integration/generated/bodyDate/src/bodyDateClient.ts b/packages/autorest.typescript/test/integration/generated/bodyDate/src/bodyDateClient.ts index c8f22f7e20..7c2eff1387 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDate/src/bodyDateClient.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDate/src/bodyDateClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { DateOperationsImpl } from "./operations"; -import { DateOperations } from "./operationsInterfaces"; -import { BodyDateClientOptionalParams } from "./models"; +import { DateOperationsImpl } from "./operations/index.js"; +import { DateOperations } from "./operationsInterfaces/index.js"; +import { BodyDateClientOptionalParams } from "./models/index.js"; export class BodyDateClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/bodyDate/src/index.ts b/packages/autorest.typescript/test/integration/generated/bodyDate/src/index.ts index cca5dcbe5b..826c95fcd9 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDate/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDate/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { BodyDateClient } from "./bodyDateClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { BodyDateClient } from "./bodyDateClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyDate/src/operations/date.ts b/packages/autorest.typescript/test/integration/generated/bodyDate/src/operations/date.ts index dd1397d4dc..584eb4d69c 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDate/src/operations/date.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDate/src/operations/date.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { DateOperations } from "../operationsInterfaces"; +import { DateOperations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyDateClient } from "../bodyDateClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyDateClient } from "../bodyDateClient.js"; import { DateGetNullOptionalParams, DateGetNullResponse, @@ -26,7 +26,7 @@ import { DatePutMinDateOptionalParams, DateGetMinDateOptionalParams, DateGetMinDateResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing DateOperations operations. */ export class DateOperationsImpl implements DateOperations { diff --git a/packages/autorest.typescript/test/integration/generated/bodyDate/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/bodyDate/src/operations/index.ts index 626cb0c9f0..8f9621b3f0 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDate/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDate/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./date"; +export * from "./date.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyDate/src/operationsInterfaces/date.ts b/packages/autorest.typescript/test/integration/generated/bodyDate/src/operationsInterfaces/date.ts index 1cf507b7d6..3271e00b1c 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDate/src/operationsInterfaces/date.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDate/src/operationsInterfaces/date.ts @@ -21,7 +21,7 @@ import { DatePutMinDateOptionalParams, DateGetMinDateOptionalParams, DateGetMinDateResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a DateOperations. */ export interface DateOperations { diff --git a/packages/autorest.typescript/test/integration/generated/bodyDate/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/bodyDate/src/operationsInterfaces/index.ts index 626cb0c9f0..8f9621b3f0 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDate/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDate/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./date"; +export * from "./date.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/bodyDateTimeClient.ts b/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/bodyDateTimeClient.ts index 6a3e7d9a80..240138c9df 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/bodyDateTimeClient.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/bodyDateTimeClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { DatetimeImpl } from "./operations"; -import { Datetime } from "./operationsInterfaces"; -import { BodyDateTimeClientOptionalParams } from "./models"; +import { DatetimeImpl } from "./operations/index.js"; +import { Datetime } from "./operationsInterfaces/index.js"; +import { BodyDateTimeClientOptionalParams } from "./models/index.js"; export class BodyDateTimeClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/index.ts b/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/index.ts index ab6f074916..2e4cfce092 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { BodyDateTimeClient } from "./bodyDateTimeClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { BodyDateTimeClient } from "./bodyDateTimeClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/operations/datetime.ts b/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/operations/datetime.ts index ac1c8da8af..e1f6b3f9d4 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/operations/datetime.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/operations/datetime.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Datetime } from "../operationsInterfaces"; +import { Datetime } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyDateTimeClient } from "../bodyDateTimeClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyDateTimeClient } from "../bodyDateTimeClient.js"; import { DatetimeGetNullOptionalParams, DatetimeGetNullResponse, @@ -49,7 +49,7 @@ import { DatetimeGetLocalNegativeOffsetMinDateTimeResponse, DatetimeGetLocalNoOffsetMinDateTimeOptionalParams, DatetimeGetLocalNoOffsetMinDateTimeResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Datetime operations. */ export class DatetimeImpl implements Datetime { diff --git a/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/operations/index.ts index 90aad6d494..26db1b90f4 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./datetime"; +export * from "./datetime.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/operationsInterfaces/datetime.ts b/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/operationsInterfaces/datetime.ts index 9c8369bc80..8ed8924776 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/operationsInterfaces/datetime.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/operationsInterfaces/datetime.ts @@ -44,7 +44,7 @@ import { DatetimeGetLocalNegativeOffsetMinDateTimeResponse, DatetimeGetLocalNoOffsetMinDateTimeOptionalParams, DatetimeGetLocalNoOffsetMinDateTimeResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Datetime. */ export interface Datetime { diff --git a/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/operationsInterfaces/index.ts index 90aad6d494..26db1b90f4 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDateTime/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./datetime"; +export * from "./datetime.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/bodyDateTimeRfc1123Client.ts b/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/bodyDateTimeRfc1123Client.ts index bdb8a2ac19..e6117ed5d3 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/bodyDateTimeRfc1123Client.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/bodyDateTimeRfc1123Client.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { Datetimerfc1123Impl } from "./operations"; -import { Datetimerfc1123 } from "./operationsInterfaces"; -import { BodyDateTimeRfc1123ClientOptionalParams } from "./models"; +import { Datetimerfc1123Impl } from "./operations/index.js"; +import { Datetimerfc1123 } from "./operationsInterfaces/index.js"; +import { BodyDateTimeRfc1123ClientOptionalParams } from "./models/index.js"; export class BodyDateTimeRfc1123Client extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/index.ts b/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/index.ts index dc25430372..7d71748a71 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { BodyDateTimeRfc1123Client } from "./bodyDateTimeRfc1123Client"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { BodyDateTimeRfc1123Client } from "./bodyDateTimeRfc1123Client.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/operations/datetimerfc1123.ts b/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/operations/datetimerfc1123.ts index eac9f5d957..9bb18fe74b 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/operations/datetimerfc1123.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/operations/datetimerfc1123.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Datetimerfc1123 } from "../operationsInterfaces"; +import { Datetimerfc1123 } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyDateTimeRfc1123Client } from "../bodyDateTimeRfc1123Client"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyDateTimeRfc1123Client } from "../bodyDateTimeRfc1123Client.js"; import { Datetimerfc1123GetNullOptionalParams, Datetimerfc1123GetNullResponse, @@ -28,7 +28,7 @@ import { Datetimerfc1123PutUtcMinDateTimeOptionalParams, Datetimerfc1123GetUtcMinDateTimeOptionalParams, Datetimerfc1123GetUtcMinDateTimeResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Datetimerfc1123 operations. */ export class Datetimerfc1123Impl implements Datetimerfc1123 { diff --git a/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/operations/index.ts index 6a455af330..78e1ab5859 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./datetimerfc1123"; +export * from "./datetimerfc1123.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/operationsInterfaces/datetimerfc1123.ts b/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/operationsInterfaces/datetimerfc1123.ts index bf0eace2d9..a13c6d2272 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/operationsInterfaces/datetimerfc1123.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/operationsInterfaces/datetimerfc1123.ts @@ -23,7 +23,7 @@ import { Datetimerfc1123PutUtcMinDateTimeOptionalParams, Datetimerfc1123GetUtcMinDateTimeOptionalParams, Datetimerfc1123GetUtcMinDateTimeResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Datetimerfc1123. */ export interface Datetimerfc1123 { diff --git a/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/operationsInterfaces/index.ts index 6a455af330..78e1ab5859 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDateTimeRfc1123/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./datetimerfc1123"; +export * from "./datetimerfc1123.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/bodyDictionaryClient.ts b/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/bodyDictionaryClient.ts index cddd7075a0..123278a8f5 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/bodyDictionaryClient.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/bodyDictionaryClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { DictionaryImpl } from "./operations"; -import { Dictionary } from "./operationsInterfaces"; -import { BodyDictionaryClientOptionalParams } from "./models"; +import { DictionaryImpl } from "./operations/index.js"; +import { Dictionary } from "./operationsInterfaces/index.js"; +import { BodyDictionaryClientOptionalParams } from "./models/index.js"; export class BodyDictionaryClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/index.ts b/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/index.ts index a2c84db556..6869e29779 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { BodyDictionaryClient } from "./bodyDictionaryClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { BodyDictionaryClient } from "./bodyDictionaryClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/operations/dictionary.ts b/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/operations/dictionary.ts index b0b6f61832..61af5bf84b 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/operations/dictionary.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/operations/dictionary.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Dictionary } from "../operationsInterfaces"; +import { Dictionary } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyDictionaryClient } from "../bodyDictionaryClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyDictionaryClient } from "../bodyDictionaryClient.js"; import { DictionaryGetNullOptionalParams, DictionaryGetNullResponse, @@ -128,7 +128,7 @@ import { DictionaryGetDictionaryValidOptionalParams, DictionaryGetDictionaryValidResponse, DictionaryPutDictionaryValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Dictionary operations. */ export class DictionaryImpl implements Dictionary { diff --git a/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/operations/index.ts index 1649080801..def5015ef0 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./dictionary"; +export * from "./dictionary.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/operationsInterfaces/dictionary.ts b/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/operationsInterfaces/dictionary.ts index 07bd1b3093..21f9262ff9 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/operationsInterfaces/dictionary.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/operationsInterfaces/dictionary.ts @@ -123,7 +123,7 @@ import { DictionaryGetDictionaryValidOptionalParams, DictionaryGetDictionaryValidResponse, DictionaryPutDictionaryValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Dictionary. */ export interface Dictionary { diff --git a/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/operationsInterfaces/index.ts index 1649080801..def5015ef0 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDictionary/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./dictionary"; +export * from "./dictionary.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyDuration/src/bodyDurationClient.ts b/packages/autorest.typescript/test/integration/generated/bodyDuration/src/bodyDurationClient.ts index 1de6f281fa..306a06aed9 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDuration/src/bodyDurationClient.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDuration/src/bodyDurationClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { DurationImpl } from "./operations"; -import { Duration } from "./operationsInterfaces"; -import { BodyDurationClientOptionalParams } from "./models"; +import { DurationImpl } from "./operations/index.js"; +import { Duration } from "./operationsInterfaces/index.js"; +import { BodyDurationClientOptionalParams } from "./models/index.js"; export class BodyDurationClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/bodyDuration/src/index.ts b/packages/autorest.typescript/test/integration/generated/bodyDuration/src/index.ts index 1b4ce3d845..057695b058 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDuration/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDuration/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { BodyDurationClient } from "./bodyDurationClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { BodyDurationClient } from "./bodyDurationClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyDuration/src/operations/duration.ts b/packages/autorest.typescript/test/integration/generated/bodyDuration/src/operations/duration.ts index 2791aeff31..2712d57f49 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDuration/src/operations/duration.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDuration/src/operations/duration.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Duration } from "../operationsInterfaces"; +import { Duration } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyDurationClient } from "../bodyDurationClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyDurationClient } from "../bodyDurationClient.js"; import { DurationGetNullOptionalParams, DurationGetNullResponse, @@ -19,7 +19,7 @@ import { DurationGetPositiveDurationResponse, DurationGetInvalidOptionalParams, DurationGetInvalidResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Duration operations. */ export class DurationImpl implements Duration { diff --git a/packages/autorest.typescript/test/integration/generated/bodyDuration/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/bodyDuration/src/operations/index.ts index 75a17175af..77e84ce540 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDuration/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDuration/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./duration"; +export * from "./duration.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyDuration/src/operationsInterfaces/duration.ts b/packages/autorest.typescript/test/integration/generated/bodyDuration/src/operationsInterfaces/duration.ts index d107c3eb22..79e8eca325 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDuration/src/operationsInterfaces/duration.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDuration/src/operationsInterfaces/duration.ts @@ -14,7 +14,7 @@ import { DurationGetPositiveDurationResponse, DurationGetInvalidOptionalParams, DurationGetInvalidResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Duration. */ export interface Duration { diff --git a/packages/autorest.typescript/test/integration/generated/bodyDuration/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/bodyDuration/src/operationsInterfaces/index.ts index 75a17175af..77e84ce540 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyDuration/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyDuration/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./duration"; +export * from "./duration.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyFile/src/bodyFileClient.ts b/packages/autorest.typescript/test/integration/generated/bodyFile/src/bodyFileClient.ts index 7ff8702a7d..f229744497 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyFile/src/bodyFileClient.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyFile/src/bodyFileClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { FilesImpl } from "./operations"; -import { Files } from "./operationsInterfaces"; -import { BodyFileClientOptionalParams } from "./models"; +import { FilesImpl } from "./operations/index.js"; +import { Files } from "./operationsInterfaces/index.js"; +import { BodyFileClientOptionalParams } from "./models/index.js"; export class BodyFileClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/bodyFile/src/index.ts b/packages/autorest.typescript/test/integration/generated/bodyFile/src/index.ts index 4413d9ba09..086b9d2b60 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyFile/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyFile/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { BodyFileClient } from "./bodyFileClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { BodyFileClient } from "./bodyFileClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyFile/src/operations/files.ts b/packages/autorest.typescript/test/integration/generated/bodyFile/src/operations/files.ts index 4cb60b7182..1081377c93 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyFile/src/operations/files.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyFile/src/operations/files.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Files } from "../operationsInterfaces"; +import { Files } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyFileClient } from "../bodyFileClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyFileClient } from "../bodyFileClient.js"; import { FilesGetFileOptionalParams, FilesGetFileResponse, @@ -18,7 +18,7 @@ import { FilesGetFileLargeResponse, FilesGetEmptyFileOptionalParams, FilesGetEmptyFileResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Files operations. */ export class FilesImpl implements Files { diff --git a/packages/autorest.typescript/test/integration/generated/bodyFile/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/bodyFile/src/operations/index.ts index 2848cdad0f..0712cf92bc 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyFile/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyFile/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./files"; +export * from "./files.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyFile/src/operationsInterfaces/files.ts b/packages/autorest.typescript/test/integration/generated/bodyFile/src/operationsInterfaces/files.ts index 30dbe6c3e1..42d998c9c8 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyFile/src/operationsInterfaces/files.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyFile/src/operationsInterfaces/files.ts @@ -13,7 +13,7 @@ import { FilesGetFileLargeResponse, FilesGetEmptyFileOptionalParams, FilesGetEmptyFileResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Files. */ export interface Files { diff --git a/packages/autorest.typescript/test/integration/generated/bodyFile/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/bodyFile/src/operationsInterfaces/index.ts index 2848cdad0f..0712cf92bc 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyFile/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyFile/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./files"; +export * from "./files.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyFormData/src/bodyFormDataClient.ts b/packages/autorest.typescript/test/integration/generated/bodyFormData/src/bodyFormDataClient.ts index d176025260..e1d3abf366 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyFormData/src/bodyFormDataClient.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyFormData/src/bodyFormDataClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { FormdataImpl } from "./operations"; -import { Formdata } from "./operationsInterfaces"; -import { BodyFormDataClientOptionalParams } from "./models"; +import { FormdataImpl } from "./operations/index.js"; +import { Formdata } from "./operationsInterfaces/index.js"; +import { BodyFormDataClientOptionalParams } from "./models/index.js"; export class BodyFormDataClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/bodyFormData/src/index.ts b/packages/autorest.typescript/test/integration/generated/bodyFormData/src/index.ts index 88e36d7ab0..222fb97f36 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyFormData/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyFormData/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { BodyFormDataClient } from "./bodyFormDataClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { BodyFormDataClient } from "./bodyFormDataClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyFormData/src/operations/formdata.ts b/packages/autorest.typescript/test/integration/generated/bodyFormData/src/operations/formdata.ts index 0cc66e9750..5965027188 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyFormData/src/operations/formdata.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyFormData/src/operations/formdata.ts @@ -6,12 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Formdata } from "../operationsInterfaces"; +import { Formdata } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyFormDataClient } from "../bodyFormDataClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyFormDataClient } from "../bodyFormDataClient.js"; import { FormdataUploadFileOptionalParams, FormdataUploadFileResponse, @@ -19,7 +19,7 @@ import { FormdataUploadFileViaBodyResponse, FormdataUploadFilesOptionalParams, FormdataUploadFilesResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Formdata operations. */ export class FormdataImpl implements Formdata { diff --git a/packages/autorest.typescript/test/integration/generated/bodyFormData/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/bodyFormData/src/operations/index.ts index fb7bdd72bb..899b6ede87 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyFormData/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyFormData/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./formdata"; +export * from "./formdata.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyFormData/src/operationsInterfaces/formdata.ts b/packages/autorest.typescript/test/integration/generated/bodyFormData/src/operationsInterfaces/formdata.ts index 19afef19e3..80ad5fef0e 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyFormData/src/operationsInterfaces/formdata.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyFormData/src/operationsInterfaces/formdata.ts @@ -14,7 +14,7 @@ import { FormdataUploadFileViaBodyResponse, FormdataUploadFilesOptionalParams, FormdataUploadFilesResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Formdata. */ export interface Formdata { diff --git a/packages/autorest.typescript/test/integration/generated/bodyFormData/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/bodyFormData/src/operationsInterfaces/index.ts index fb7bdd72bb..899b6ede87 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyFormData/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyFormData/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./formdata"; +export * from "./formdata.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyInteger/src/bodyIntegerClient.ts b/packages/autorest.typescript/test/integration/generated/bodyInteger/src/bodyIntegerClient.ts index 292289ee7c..54f3364b0b 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyInteger/src/bodyIntegerClient.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyInteger/src/bodyIntegerClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { IntImpl } from "./operations"; -import { Int } from "./operationsInterfaces"; -import { BodyIntegerClientOptionalParams } from "./models"; +import { IntImpl } from "./operations/index.js"; +import { Int } from "./operationsInterfaces/index.js"; +import { BodyIntegerClientOptionalParams } from "./models/index.js"; export class BodyIntegerClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/bodyInteger/src/index.ts b/packages/autorest.typescript/test/integration/generated/bodyInteger/src/index.ts index 0b69679705..02c5830c49 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyInteger/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyInteger/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { BodyIntegerClient } from "./bodyIntegerClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { BodyIntegerClient } from "./bodyIntegerClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyInteger/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/bodyInteger/src/operations/index.ts index 493e192302..1342dadd76 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyInteger/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyInteger/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./int"; +export * from "./int.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyInteger/src/operations/int.ts b/packages/autorest.typescript/test/integration/generated/bodyInteger/src/operations/int.ts index c60e26b438..8f5dc927ee 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyInteger/src/operations/int.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyInteger/src/operations/int.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Int } from "../operationsInterfaces"; +import { Int } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyIntegerClient } from "../bodyIntegerClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyIntegerClient } from "../bodyIntegerClient.js"; import { IntGetNullOptionalParams, IntGetNullResponse, @@ -35,7 +35,7 @@ import { IntGetInvalidUnixTimeResponse, IntGetNullUnixTimeOptionalParams, IntGetNullUnixTimeResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Int operations. */ export class IntImpl implements Int { diff --git a/packages/autorest.typescript/test/integration/generated/bodyInteger/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/bodyInteger/src/operationsInterfaces/index.ts index 493e192302..1342dadd76 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyInteger/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyInteger/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./int"; +export * from "./int.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyInteger/src/operationsInterfaces/int.ts b/packages/autorest.typescript/test/integration/generated/bodyInteger/src/operationsInterfaces/int.ts index 895f81700a..962418f088 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyInteger/src/operationsInterfaces/int.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyInteger/src/operationsInterfaces/int.ts @@ -30,7 +30,7 @@ import { IntGetInvalidUnixTimeResponse, IntGetNullUnixTimeOptionalParams, IntGetNullUnixTimeResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Int. */ export interface Int { diff --git a/packages/autorest.typescript/test/integration/generated/bodyNumber/src/bodyNumberClient.ts b/packages/autorest.typescript/test/integration/generated/bodyNumber/src/bodyNumberClient.ts index afecbe8f5f..6935db3b38 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyNumber/src/bodyNumberClient.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyNumber/src/bodyNumberClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { NumberOperationsImpl } from "./operations"; -import { NumberOperations } from "./operationsInterfaces"; -import { BodyNumberClientOptionalParams } from "./models"; +import { NumberOperationsImpl } from "./operations/index.js"; +import { NumberOperations } from "./operationsInterfaces/index.js"; +import { BodyNumberClientOptionalParams } from "./models/index.js"; export class BodyNumberClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/bodyNumber/src/index.ts b/packages/autorest.typescript/test/integration/generated/bodyNumber/src/index.ts index 20c5862034..5b2f5eab69 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyNumber/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyNumber/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { BodyNumberClient } from "./bodyNumberClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { BodyNumberClient } from "./bodyNumberClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyNumber/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/bodyNumber/src/operations/index.ts index a7a7dc995f..5c10d7cb2f 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyNumber/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyNumber/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./number"; +export * from "./number.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyNumber/src/operations/number.ts b/packages/autorest.typescript/test/integration/generated/bodyNumber/src/operations/number.ts index 2d13d71568..cc09d2156d 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyNumber/src/operations/number.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyNumber/src/operations/number.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { NumberOperations } from "../operationsInterfaces"; +import { NumberOperations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyNumberClient } from "../bodyNumberClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyNumberClient } from "../bodyNumberClient.js"; import { NumberGetNullOptionalParams, NumberGetNullResponse, @@ -50,7 +50,7 @@ import { NumberPutSmallDecimalOptionalParams, NumberGetSmallDecimalOptionalParams, NumberGetSmallDecimalResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing NumberOperations operations. */ export class NumberOperationsImpl implements NumberOperations { diff --git a/packages/autorest.typescript/test/integration/generated/bodyNumber/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/bodyNumber/src/operationsInterfaces/index.ts index a7a7dc995f..5c10d7cb2f 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyNumber/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyNumber/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./number"; +export * from "./number.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyNumber/src/operationsInterfaces/number.ts b/packages/autorest.typescript/test/integration/generated/bodyNumber/src/operationsInterfaces/number.ts index 9551dcd823..6bbb4a1167 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyNumber/src/operationsInterfaces/number.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyNumber/src/operationsInterfaces/number.ts @@ -45,7 +45,7 @@ import { NumberPutSmallDecimalOptionalParams, NumberGetSmallDecimalOptionalParams, NumberGetSmallDecimalResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a NumberOperations. */ export interface NumberOperations { diff --git a/packages/autorest.typescript/test/integration/generated/bodyString/src/bodyStringClient.ts b/packages/autorest.typescript/test/integration/generated/bodyString/src/bodyStringClient.ts index 6c8532a5a0..76c9f8bb59 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyString/src/bodyStringClient.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyString/src/bodyStringClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { StringOperationsImpl, EnumImpl } from "./operations"; -import { StringOperations, Enum } from "./operationsInterfaces"; -import { BodyStringClientOptionalParams } from "./models"; +import { StringOperationsImpl, EnumImpl } from "./operations/index.js"; +import { StringOperations, Enum } from "./operationsInterfaces/index.js"; +import { BodyStringClientOptionalParams } from "./models/index.js"; export class BodyStringClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/bodyString/src/index.ts b/packages/autorest.typescript/test/integration/generated/bodyString/src/index.ts index e26188374f..0977f1bc9e 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyString/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyString/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { BodyStringClient } from "./bodyStringClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { BodyStringClient } from "./bodyStringClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyString/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/bodyString/src/models/parameters.ts index 89ce7a68df..bedec993a9 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyString/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyString/src/models/parameters.ts @@ -7,7 +7,7 @@ */ import { OperationParameter, OperationURLParameter } from "@azure/core-client"; -import { RefColorConstant as RefColorConstantMapper } from "../models/mappers"; +import { RefColorConstant as RefColorConstantMapper } from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/packages/autorest.typescript/test/integration/generated/bodyString/src/operations/enum.ts b/packages/autorest.typescript/test/integration/generated/bodyString/src/operations/enum.ts index a4aa7eae06..a5c7dfcb90 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyString/src/operations/enum.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyString/src/operations/enum.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Enum } from "../operationsInterfaces"; +import { Enum } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyStringClient } from "../bodyStringClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyStringClient } from "../bodyStringClient.js"; import { EnumGetNotExpandableOptionalParams, EnumGetNotExpandableResponse, @@ -23,7 +23,7 @@ import { EnumGetReferencedConstantResponse, RefColorConstant, EnumPutReferencedConstantOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Enum operations. */ export class EnumImpl implements Enum { diff --git a/packages/autorest.typescript/test/integration/generated/bodyString/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/bodyString/src/operations/index.ts index 8ab7e0fe1c..3f18fe2fbb 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyString/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyString/src/operations/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./string"; -export * from "./enum"; +export * from "./string.js"; +export * from "./enum.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyString/src/operations/string.ts b/packages/autorest.typescript/test/integration/generated/bodyString/src/operations/string.ts index 388de8670a..90ff06f611 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyString/src/operations/string.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyString/src/operations/string.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { StringOperations } from "../operationsInterfaces"; +import { StringOperations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyStringClient } from "../bodyStringClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyStringClient } from "../bodyStringClient.js"; import { StringGetNullOptionalParams, StringGetNullResponse, @@ -33,7 +33,7 @@ import { StringPutBase64UrlEncodedOptionalParams, StringGetNullBase64UrlEncodedOptionalParams, StringGetNullBase64UrlEncodedResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing StringOperations operations. */ export class StringOperationsImpl implements StringOperations { diff --git a/packages/autorest.typescript/test/integration/generated/bodyString/src/operationsInterfaces/enum.ts b/packages/autorest.typescript/test/integration/generated/bodyString/src/operationsInterfaces/enum.ts index e08a0dc415..2842a5792d 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyString/src/operationsInterfaces/enum.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyString/src/operationsInterfaces/enum.ts @@ -18,7 +18,7 @@ import { EnumGetReferencedConstantResponse, RefColorConstant, EnumPutReferencedConstantOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Enum. */ export interface Enum { diff --git a/packages/autorest.typescript/test/integration/generated/bodyString/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/bodyString/src/operationsInterfaces/index.ts index 8ab7e0fe1c..3f18fe2fbb 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyString/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyString/src/operationsInterfaces/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./string"; -export * from "./enum"; +export * from "./string.js"; +export * from "./enum.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyString/src/operationsInterfaces/string.ts b/packages/autorest.typescript/test/integration/generated/bodyString/src/operationsInterfaces/string.ts index 6ccfc3b77d..2d0f8e0a2f 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyString/src/operationsInterfaces/string.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyString/src/operationsInterfaces/string.ts @@ -28,7 +28,7 @@ import { StringPutBase64UrlEncodedOptionalParams, StringGetNullBase64UrlEncodedOptionalParams, StringGetNullBase64UrlEncodedResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a StringOperations. */ export interface StringOperations { diff --git a/packages/autorest.typescript/test/integration/generated/bodyTime/src/bodyTimeClient.ts b/packages/autorest.typescript/test/integration/generated/bodyTime/src/bodyTimeClient.ts index 6b7d8a9a4b..777a8b9789 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyTime/src/bodyTimeClient.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyTime/src/bodyTimeClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { TimeImpl } from "./operations"; -import { Time } from "./operationsInterfaces"; -import { BodyTimeClientOptionalParams } from "./models"; +import { TimeImpl } from "./operations/index.js"; +import { Time } from "./operationsInterfaces/index.js"; +import { BodyTimeClientOptionalParams } from "./models/index.js"; export class BodyTimeClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/bodyTime/src/index.ts b/packages/autorest.typescript/test/integration/generated/bodyTime/src/index.ts index ea4f18ef00..96b49a79e3 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyTime/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyTime/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { BodyTimeClient } from "./bodyTimeClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { BodyTimeClient } from "./bodyTimeClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyTime/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/bodyTime/src/operations/index.ts index 48de79497c..f80267ae09 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyTime/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyTime/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./time"; +export * from "./time.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyTime/src/operations/time.ts b/packages/autorest.typescript/test/integration/generated/bodyTime/src/operations/time.ts index b6568ade88..c68d5435b3 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyTime/src/operations/time.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyTime/src/operations/time.ts @@ -6,17 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Time } from "../operationsInterfaces"; +import { Time } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { BodyTimeClient } from "../bodyTimeClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { BodyTimeClient } from "../bodyTimeClient.js"; import { TimeGetOptionalParams, TimeGetResponse, TimePutOptionalParams, TimePutResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Time operations. */ export class TimeImpl implements Time { diff --git a/packages/autorest.typescript/test/integration/generated/bodyTime/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/bodyTime/src/operationsInterfaces/index.ts index 48de79497c..f80267ae09 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyTime/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyTime/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./time"; +export * from "./time.js"; diff --git a/packages/autorest.typescript/test/integration/generated/bodyTime/src/operationsInterfaces/time.ts b/packages/autorest.typescript/test/integration/generated/bodyTime/src/operationsInterfaces/time.ts index ff61753998..b73a8a419c 100644 --- a/packages/autorest.typescript/test/integration/generated/bodyTime/src/operationsInterfaces/time.ts +++ b/packages/autorest.typescript/test/integration/generated/bodyTime/src/operationsInterfaces/time.ts @@ -11,7 +11,7 @@ import { TimeGetResponse, TimePutOptionalParams, TimePutResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Time. */ export interface Time { diff --git a/packages/autorest.typescript/test/integration/generated/constantParam/src/generatedClient.ts b/packages/autorest.typescript/test/integration/generated/constantParam/src/generatedClient.ts index 309603992a..fcec430031 100644 --- a/packages/autorest.typescript/test/integration/generated/constantParam/src/generatedClient.ts +++ b/packages/autorest.typescript/test/integration/generated/constantParam/src/generatedClient.ts @@ -7,14 +7,14 @@ */ import * as coreClient from "@azure/core-client"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; +import * as Parameters from "./models/parameters.js"; +import * as Mappers from "./models/mappers.js"; import { GeneratedClientOptionalParams, LanguageBatchInput, LanguagesOptionalParams, LanguagesResponse, -} from "./models"; +} from "./models/index.js"; /** @internal */ export class GeneratedClient extends coreClient.ServiceClient { diff --git a/packages/autorest.typescript/test/integration/generated/constantParam/src/index.ts b/packages/autorest.typescript/test/integration/generated/constantParam/src/index.ts index 657fb6d642..a26e8ed073 100644 --- a/packages/autorest.typescript/test/integration/generated/constantParam/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/constantParam/src/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { GeneratedClient } from "./generatedClient"; +export * from "./models/index.js"; +export { GeneratedClient } from "./generatedClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/constantParam/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/constantParam/src/models/parameters.ts index bd1825ed6d..b44a4ec582 100644 --- a/packages/autorest.typescript/test/integration/generated/constantParam/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/constantParam/src/models/parameters.ts @@ -11,7 +11,7 @@ import { OperationURLParameter, OperationQueryParameter, } from "@azure/core-client"; -import { LanguageBatchInput as LanguageBatchInputMapper } from "../models/mappers"; +import { LanguageBatchInput as LanguageBatchInputMapper } from "../models/mappers.js"; export const contentType: OperationParameter = { parameterPath: ["options", "contentType"], diff --git a/packages/autorest.typescript/test/integration/generated/corecompattest/src/index.ts b/packages/autorest.typescript/test/integration/generated/corecompattest/src/index.ts index e7627063d3..deb7603173 100644 --- a/packages/autorest.typescript/test/integration/generated/corecompattest/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/corecompattest/src/index.ts @@ -1,2 +1,2 @@ -export * from "./models"; -export { PetStore } from "./petStore"; +export * from "./models/index.js"; +export { PetStore } from "./petStore.js"; diff --git a/packages/autorest.typescript/test/integration/generated/corecompattest/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/corecompattest/src/models/parameters.ts index 0169200255..dbff106b14 100644 --- a/packages/autorest.typescript/test/integration/generated/corecompattest/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/corecompattest/src/models/parameters.ts @@ -7,7 +7,7 @@ import { Pet as PetMapper, Order as OrderMapper, User as UserMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const contentType: OperationParameter = { parameterPath: "contentType", diff --git a/packages/autorest.typescript/test/integration/generated/corecompattest/src/petStore.ts b/packages/autorest.typescript/test/integration/generated/corecompattest/src/petStore.ts index 2c8397f81e..f0870e0880 100644 --- a/packages/autorest.typescript/test/integration/generated/corecompattest/src/petStore.ts +++ b/packages/autorest.typescript/test/integration/generated/corecompattest/src/petStore.ts @@ -1,8 +1,8 @@ import * as coreClient from "@azure/core-client"; import * as coreHttpCompat from "@azure/core-http-compat"; import * as coreAuth from "@azure/core-auth"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; +import * as Parameters from "./models/parameters.js"; +import * as Mappers from "./models/mappers.js"; import { PetStoreOptionalParams, AddPetUsingByteArray$binaryOptionalParams, @@ -37,7 +37,7 @@ import { GetUserByNameResponse, UpdateUserOptionalParams, DeleteUserOptionalParams, -} from "./models"; +} from "./models/index.js"; export class PetStore extends coreHttpCompat.ExtendedServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/customUrl/src/customUrlClient.ts b/packages/autorest.typescript/test/integration/generated/customUrl/src/customUrlClient.ts index 41ec301b14..97205b943b 100644 --- a/packages/autorest.typescript/test/integration/generated/customUrl/src/customUrlClient.ts +++ b/packages/autorest.typescript/test/integration/generated/customUrl/src/customUrlClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { PathsImpl } from "./operations"; -import { Paths } from "./operationsInterfaces"; -import { CustomUrlClientOptionalParams } from "./models"; +import { PathsImpl } from "./operations/index.js"; +import { Paths } from "./operationsInterfaces/index.js"; +import { CustomUrlClientOptionalParams } from "./models/index.js"; export class CustomUrlClient extends coreClient.ServiceClient { host: string; diff --git a/packages/autorest.typescript/test/integration/generated/customUrl/src/index.ts b/packages/autorest.typescript/test/integration/generated/customUrl/src/index.ts index 96499ffc46..2874f73193 100644 --- a/packages/autorest.typescript/test/integration/generated/customUrl/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/customUrl/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { CustomUrlClient } from "./customUrlClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { CustomUrlClient } from "./customUrlClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/customUrl/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/customUrl/src/operations/index.ts index e3e539ba1a..814fe6dd72 100644 --- a/packages/autorest.typescript/test/integration/generated/customUrl/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/customUrl/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./paths"; +export * from "./paths.js"; diff --git a/packages/autorest.typescript/test/integration/generated/customUrl/src/operations/paths.ts b/packages/autorest.typescript/test/integration/generated/customUrl/src/operations/paths.ts index ad1aedab03..f9429536ff 100644 --- a/packages/autorest.typescript/test/integration/generated/customUrl/src/operations/paths.ts +++ b/packages/autorest.typescript/test/integration/generated/customUrl/src/operations/paths.ts @@ -6,12 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Paths } from "../operationsInterfaces"; +import { Paths } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { CustomUrlClient } from "../customUrlClient"; -import { PathsGetEmptyOptionalParams } from "../models"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { CustomUrlClient } from "../customUrlClient.js"; +import { PathsGetEmptyOptionalParams } from "../models/index.js"; /** Class containing Paths operations. */ export class PathsImpl implements Paths { diff --git a/packages/autorest.typescript/test/integration/generated/customUrl/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/customUrl/src/operationsInterfaces/index.ts index e3e539ba1a..814fe6dd72 100644 --- a/packages/autorest.typescript/test/integration/generated/customUrl/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/customUrl/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./paths"; +export * from "./paths.js"; diff --git a/packages/autorest.typescript/test/integration/generated/customUrl/src/operationsInterfaces/paths.ts b/packages/autorest.typescript/test/integration/generated/customUrl/src/operationsInterfaces/paths.ts index 53acd8ec94..70d95f7f6f 100644 --- a/packages/autorest.typescript/test/integration/generated/customUrl/src/operationsInterfaces/paths.ts +++ b/packages/autorest.typescript/test/integration/generated/customUrl/src/operationsInterfaces/paths.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PathsGetEmptyOptionalParams } from "../models"; +import { PathsGetEmptyOptionalParams } from "../models/index.js"; /** Interface representing a Paths. */ export interface Paths { diff --git a/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/customUrlMoreOptionsClient.ts b/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/customUrlMoreOptionsClient.ts index 2e1a5372c2..b1672b44a8 100644 --- a/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/customUrlMoreOptionsClient.ts +++ b/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/customUrlMoreOptionsClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { PathsImpl } from "./operations"; -import { Paths } from "./operationsInterfaces"; -import { CustomUrlMoreOptionsClientOptionalParams } from "./models"; +import { PathsImpl } from "./operations/index.js"; +import { Paths } from "./operationsInterfaces/index.js"; +import { CustomUrlMoreOptionsClientOptionalParams } from "./models/index.js"; export class CustomUrlMoreOptionsClient extends coreClient.ServiceClient { dnsSuffix: string; diff --git a/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/index.ts b/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/index.ts index a399d58aa8..67b8c327e6 100644 --- a/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { CustomUrlMoreOptionsClient } from "./customUrlMoreOptionsClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { CustomUrlMoreOptionsClient } from "./customUrlMoreOptionsClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/operations/index.ts index e3e539ba1a..814fe6dd72 100644 --- a/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./paths"; +export * from "./paths.js"; diff --git a/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/operations/paths.ts b/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/operations/paths.ts index 0aff2f3f42..a9931dab3b 100644 --- a/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/operations/paths.ts +++ b/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/operations/paths.ts @@ -6,12 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Paths } from "../operationsInterfaces"; +import { Paths } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { CustomUrlMoreOptionsClient } from "../customUrlMoreOptionsClient"; -import { PathsGetEmptyOptionalParams } from "../models"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { CustomUrlMoreOptionsClient } from "../customUrlMoreOptionsClient.js"; +import { PathsGetEmptyOptionalParams } from "../models/index.js"; /** Class containing Paths operations. */ export class PathsImpl implements Paths { diff --git a/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/operationsInterfaces/index.ts index e3e539ba1a..814fe6dd72 100644 --- a/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./paths"; +export * from "./paths.js"; diff --git a/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/operationsInterfaces/paths.ts b/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/operationsInterfaces/paths.ts index 09ab680d10..0fca05c34b 100644 --- a/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/operationsInterfaces/paths.ts +++ b/packages/autorest.typescript/test/integration/generated/customUrlMoreOptions/src/operationsInterfaces/paths.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PathsGetEmptyOptionalParams } from "../models"; +import { PathsGetEmptyOptionalParams } from "../models/index.js"; /** Interface representing a Paths. */ export interface Paths { diff --git a/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/customUrlPagingClient.ts b/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/customUrlPagingClient.ts index a28825a6c2..2795220748 100644 --- a/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/customUrlPagingClient.ts +++ b/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/customUrlPagingClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { PagingImpl } from "./operations"; -import { Paging } from "./operationsInterfaces"; -import { CustomUrlPagingClientOptionalParams } from "./models"; +import { PagingImpl } from "./operations/index.js"; +import { Paging } from "./operationsInterfaces/index.js"; +import { CustomUrlPagingClientOptionalParams } from "./models/index.js"; export class CustomUrlPagingClient extends coreClient.ServiceClient { host: string; diff --git a/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/index.ts b/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/index.ts index f11cc98afb..fcd8a80331 100644 --- a/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/index.ts @@ -7,7 +7,7 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { CustomUrlPagingClient } from "./customUrlPagingClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { CustomUrlPagingClient } from "./customUrlPagingClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/operations/index.ts index 5534f66d5e..93b938514d 100644 --- a/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./paging"; +export * from "./paging.js"; diff --git a/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/operations/paging.ts b/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/operations/paging.ts index 195ba6b3a7..637673b40f 100644 --- a/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/operations/paging.ts +++ b/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/operations/paging.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Paging } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Paging } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { CustomUrlPagingClient } from "../customUrlPagingClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { CustomUrlPagingClient } from "../customUrlPagingClient.js"; import { Product, PagingGetPagesPartialUrlNextOptionalParams, @@ -23,7 +23,7 @@ import { PagingGetPagesPartialUrlOperationResponse, PagingGetPagesPartialUrlOperationNextResponse, PagingGetPagesPartialUrlNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Paging operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/operationsInterfaces/index.ts index 5534f66d5e..93b938514d 100644 --- a/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./paging"; +export * from "./paging.js"; diff --git a/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/operationsInterfaces/paging.ts b/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/operationsInterfaces/paging.ts index b289a54d46..51b0385aa3 100644 --- a/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/operationsInterfaces/paging.ts +++ b/packages/autorest.typescript/test/integration/generated/customUrlPaging/src/operationsInterfaces/paging.ts @@ -12,7 +12,7 @@ import { PagingGetPagesPartialUrlOptionalParams, PagingGetPagesPartialUrlOperationNextOptionalParams, PagingGetPagesPartialUrlOperationOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Paging. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/dataFactoryClient.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/dataFactoryClient.ts index 8fa2d8a790..5061a20e37 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/dataFactoryClient.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/dataFactoryClient.ts @@ -25,7 +25,7 @@ import { PrivateEndPointConnectionsImpl, PrivateEndpointConnectionImpl, PrivateLinkResourcesImpl, -} from "./operations"; +} from "./operations/index.js"; import { Operations, Factories, @@ -47,8 +47,8 @@ import { PrivateEndPointConnections, PrivateEndpointConnection, PrivateLinkResources, -} from "./operationsInterfaces"; -import { DataFactoryClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { DataFactoryClientOptionalParams } from "./models/index.js"; export class DataFactoryClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/index.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/index.ts index 0ef216dd1a..cd172cbde9 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/index.ts @@ -1,5 +1,5 @@ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { DataFactoryClient } from "./dataFactoryClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { DataFactoryClient } from "./dataFactoryClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/models/parameters.ts index 177dd47944..00ee5b226e 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/models/parameters.ts @@ -32,7 +32,7 @@ import { ManagedVirtualNetworkResource as ManagedVirtualNetworkResourceMapper, ManagedPrivateEndpointResource as ManagedPrivateEndpointResourceMapper, PrivateLinkConnectionApprovalRequestResource as PrivateLinkConnectionApprovalRequestResourceMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/activityRuns.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/activityRuns.ts index ae94be4030..710a645f20 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/activityRuns.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/activityRuns.ts @@ -1,13 +1,13 @@ -import { ActivityRuns } from "../operationsInterfaces"; +import { ActivityRuns } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryClient } from "../dataFactoryClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryClient } from "../dataFactoryClient.js"; import { RunFilterParameters, ActivityRunsQueryByPipelineRunOptionalParams, ActivityRunsQueryByPipelineRunResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing ActivityRuns operations. */ export class ActivityRunsImpl implements ActivityRuns { diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/dataFlowDebugSession.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/dataFlowDebugSession.ts index acc305e269..3594b53ed5 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/dataFlowDebugSession.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/dataFlowDebugSession.ts @@ -1,16 +1,16 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DataFlowDebugSession } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { DataFlowDebugSession } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryClient } from "../dataFactoryClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryClient } from "../dataFactoryClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { DataFlowDebugSessionInfo, DataFlowDebugSessionQueryByFactoryNextOptionalParams, @@ -28,7 +28,7 @@ import { DataFlowDebugSessionExecuteCommandOptionalParams, DataFlowDebugSessionExecuteCommandResponse, DataFlowDebugSessionQueryByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing DataFlowDebugSession operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/dataFlows.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/dataFlows.ts index 6a259cbea5..8ea57b5945 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/dataFlows.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/dataFlows.ts @@ -1,10 +1,10 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DataFlows } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { DataFlows } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryClient } from "../dataFactoryClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryClient } from "../dataFactoryClient.js"; import { DataFlowResource, DataFlowsListByFactoryNextOptionalParams, @@ -16,7 +16,7 @@ import { DataFlowsGetResponse, DataFlowsDeleteOptionalParams, DataFlowsListByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing DataFlows operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/datasets.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/datasets.ts index 00dfb1836e..e39efc3d49 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/datasets.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/datasets.ts @@ -1,10 +1,10 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Datasets } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Datasets } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryClient } from "../dataFactoryClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryClient } from "../dataFactoryClient.js"; import { DatasetResource, DatasetsListByFactoryNextOptionalParams, @@ -16,7 +16,7 @@ import { DatasetsGetResponse, DatasetsDeleteOptionalParams, DatasetsListByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Datasets operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/exposureControl.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/exposureControl.ts index 9301e08c6d..d2f8747d00 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/exposureControl.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/exposureControl.ts @@ -1,8 +1,8 @@ -import { ExposureControl } from "../operationsInterfaces"; +import { ExposureControl } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryClient } from "../dataFactoryClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryClient } from "../dataFactoryClient.js"; import { ExposureControlRequest, ExposureControlGetFeatureValueOptionalParams, @@ -12,7 +12,7 @@ import { ExposureControlBatchRequest, ExposureControlQueryFeatureValuesByFactoryOptionalParams, ExposureControlQueryFeatureValuesByFactoryResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing ExposureControl operations. */ export class ExposureControlImpl implements ExposureControl { diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/factories.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/factories.ts index 154c77afa8..e53076cc71 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/factories.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/factories.ts @@ -1,10 +1,10 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Factories } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Factories } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryClient } from "../dataFactoryClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryClient } from "../dataFactoryClient.js"; import { Factory, FactoriesListNextOptionalParams, @@ -32,7 +32,7 @@ import { FactoriesGetDataPlaneAccessResponse, FactoriesListNextResponse, FactoriesListByResourceGroupNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Factories operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/index.ts index 3c31d3fc88..8c3375dcb2 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/index.ts @@ -1,20 +1,20 @@ -export * from "./operations"; -export * from "./factories"; -export * from "./exposureControl"; -export * from "./integrationRuntimes"; -export * from "./integrationRuntimeObjectMetadata"; -export * from "./integrationRuntimeNodes"; -export * from "./linkedServices"; -export * from "./datasets"; -export * from "./pipelines"; -export * from "./pipelineRuns"; -export * from "./activityRuns"; -export * from "./triggers"; -export * from "./triggerRuns"; -export * from "./dataFlows"; -export * from "./dataFlowDebugSession"; -export * from "./managedVirtualNetworks"; -export * from "./managedPrivateEndpoints"; -export * from "./privateEndPointConnections"; -export * from "./privateEndpointConnection"; -export * from "./privateLinkResources"; +export * from "./operations.js"; +export * from "./factories.js"; +export * from "./exposureControl.js"; +export * from "./integrationRuntimes.js"; +export * from "./integrationRuntimeObjectMetadata.js"; +export * from "./integrationRuntimeNodes.js"; +export * from "./linkedServices.js"; +export * from "./datasets.js"; +export * from "./pipelines.js"; +export * from "./pipelineRuns.js"; +export * from "./activityRuns.js"; +export * from "./triggers.js"; +export * from "./triggerRuns.js"; +export * from "./dataFlows.js"; +export * from "./dataFlowDebugSession.js"; +export * from "./managedVirtualNetworks.js"; +export * from "./managedPrivateEndpoints.js"; +export * from "./privateEndPointConnections.js"; +export * from "./privateEndpointConnection.js"; +export * from "./privateLinkResources.js"; diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/integrationRuntimeNodes.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/integrationRuntimeNodes.ts index 18f75f3298..bd0e00f025 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/integrationRuntimeNodes.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/integrationRuntimeNodes.ts @@ -1,8 +1,8 @@ -import { IntegrationRuntimeNodes } from "../operationsInterfaces"; +import { IntegrationRuntimeNodes } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryClient } from "../dataFactoryClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryClient } from "../dataFactoryClient.js"; import { IntegrationRuntimeNodesGetOptionalParams, IntegrationRuntimeNodesGetResponse, @@ -12,7 +12,7 @@ import { IntegrationRuntimeNodesUpdateResponse, IntegrationRuntimeNodesGetIpAddressOptionalParams, IntegrationRuntimeNodesGetIpAddressResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing IntegrationRuntimeNodes operations. */ export class IntegrationRuntimeNodesImpl implements IntegrationRuntimeNodes { diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/integrationRuntimeObjectMetadata.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/integrationRuntimeObjectMetadata.ts index ad9e09549a..1a548a7f8f 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/integrationRuntimeObjectMetadata.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/integrationRuntimeObjectMetadata.ts @@ -1,20 +1,20 @@ -import { IntegrationRuntimeObjectMetadata } from "../operationsInterfaces"; +import { IntegrationRuntimeObjectMetadata } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryClient } from "../dataFactoryClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryClient } from "../dataFactoryClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { IntegrationRuntimeObjectMetadataRefreshOptionalParams, IntegrationRuntimeObjectMetadataRefreshResponse, IntegrationRuntimeObjectMetadataGetOptionalParams, IntegrationRuntimeObjectMetadataGetResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing IntegrationRuntimeObjectMetadata operations. */ export class IntegrationRuntimeObjectMetadataImpl diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/integrationRuntimes.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/integrationRuntimes.ts index 7c71c3ab5d..1ddcef70e3 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/integrationRuntimes.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/integrationRuntimes.ts @@ -1,16 +1,16 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { IntegrationRuntimes } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { IntegrationRuntimes } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryClient } from "../dataFactoryClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryClient } from "../dataFactoryClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { IntegrationRuntimeResource, IntegrationRuntimesListByFactoryNextOptionalParams, @@ -48,7 +48,7 @@ import { IntegrationRuntimesCreateLinkedIntegrationRuntimeOptionalParams, IntegrationRuntimesCreateLinkedIntegrationRuntimeResponse, IntegrationRuntimesListByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing IntegrationRuntimes operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/linkedServices.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/linkedServices.ts index 3ccd1ecf18..4e6da76c3e 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/linkedServices.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/linkedServices.ts @@ -1,10 +1,10 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { LinkedServices } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { LinkedServices } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryClient } from "../dataFactoryClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryClient } from "../dataFactoryClient.js"; import { LinkedServiceResource, LinkedServicesListByFactoryNextOptionalParams, @@ -16,7 +16,7 @@ import { LinkedServicesGetResponse, LinkedServicesDeleteOptionalParams, LinkedServicesListByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing LinkedServices operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/managedPrivateEndpoints.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/managedPrivateEndpoints.ts index f58286649c..0982ade91d 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/managedPrivateEndpoints.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/managedPrivateEndpoints.ts @@ -1,10 +1,10 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ManagedPrivateEndpoints } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ManagedPrivateEndpoints } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryClient } from "../dataFactoryClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryClient } from "../dataFactoryClient.js"; import { ManagedPrivateEndpointResource, ManagedPrivateEndpointsListByFactoryNextOptionalParams, @@ -16,7 +16,7 @@ import { ManagedPrivateEndpointsGetResponse, ManagedPrivateEndpointsDeleteOptionalParams, ManagedPrivateEndpointsListByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing ManagedPrivateEndpoints operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/managedVirtualNetworks.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/managedVirtualNetworks.ts index 1971bd8f64..d672cd7092 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/managedVirtualNetworks.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/managedVirtualNetworks.ts @@ -1,10 +1,10 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ManagedVirtualNetworks } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ManagedVirtualNetworks } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryClient } from "../dataFactoryClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryClient } from "../dataFactoryClient.js"; import { ManagedVirtualNetworkResource, ManagedVirtualNetworksListByFactoryNextOptionalParams, @@ -15,7 +15,7 @@ import { ManagedVirtualNetworksGetOptionalParams, ManagedVirtualNetworksGetResponse, ManagedVirtualNetworksListByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing ManagedVirtualNetworks operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/operations.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/operations.ts index adddd7a8db..35b9a1ea42 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/operations.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/operations.ts @@ -1,17 +1,17 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Operations } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Operations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryClient } from "../dataFactoryClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryClient } from "../dataFactoryClient.js"; import { Operation, OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, OperationsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Operations operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/pipelineRuns.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/pipelineRuns.ts index 2a8583289b..3cc6139936 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/pipelineRuns.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/pipelineRuns.ts @@ -1,8 +1,8 @@ -import { PipelineRuns } from "../operationsInterfaces"; +import { PipelineRuns } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryClient } from "../dataFactoryClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryClient } from "../dataFactoryClient.js"; import { RunFilterParameters, PipelineRunsQueryByFactoryOptionalParams, @@ -10,7 +10,7 @@ import { PipelineRunsGetOptionalParams, PipelineRunsGetResponse, PipelineRunsCancelOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing PipelineRuns operations. */ export class PipelineRunsImpl implements PipelineRuns { diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/pipelines.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/pipelines.ts index 5fc657abd8..5f9149aead 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/pipelines.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/pipelines.ts @@ -1,10 +1,10 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Pipelines } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Pipelines } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryClient } from "../dataFactoryClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryClient } from "../dataFactoryClient.js"; import { PipelineResource, PipelinesListByFactoryNextOptionalParams, @@ -18,7 +18,7 @@ import { PipelinesCreateRunOptionalParams, PipelinesCreateRunResponse, PipelinesListByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Pipelines operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/privateEndPointConnections.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/privateEndPointConnections.ts index 9a0d928ca3..4c965822fd 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/privateEndPointConnections.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/privateEndPointConnections.ts @@ -1,17 +1,17 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { PrivateEndPointConnections } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { PrivateEndPointConnections } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryClient } from "../dataFactoryClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryClient } from "../dataFactoryClient.js"; import { PrivateEndpointConnectionResource, PrivateEndPointConnectionsListByFactoryNextOptionalParams, PrivateEndPointConnectionsListByFactoryOptionalParams, PrivateEndPointConnectionsListByFactoryResponse, PrivateEndPointConnectionsListByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing PrivateEndPointConnections operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/privateEndpointConnection.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/privateEndpointConnection.ts index 670a5c7fb5..692491eb0a 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/privateEndpointConnection.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/privateEndpointConnection.ts @@ -1,8 +1,8 @@ -import { PrivateEndpointConnection } from "../operationsInterfaces"; +import { PrivateEndpointConnection } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryClient } from "../dataFactoryClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryClient } from "../dataFactoryClient.js"; import { PrivateLinkConnectionApprovalRequestResource, PrivateEndpointConnectionCreateOrUpdateOptionalParams, @@ -10,7 +10,7 @@ import { PrivateEndpointConnectionGetOptionalParams, PrivateEndpointConnectionGetResponse, PrivateEndpointConnectionDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing PrivateEndpointConnection operations. */ export class PrivateEndpointConnectionImpl diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/privateLinkResources.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/privateLinkResources.ts index 136ab03a3f..5907d013b9 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/privateLinkResources.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/privateLinkResources.ts @@ -1,12 +1,12 @@ -import { PrivateLinkResources } from "../operationsInterfaces"; +import { PrivateLinkResources } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryClient } from "../dataFactoryClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryClient } from "../dataFactoryClient.js"; import { PrivateLinkResourcesGetOptionalParams, PrivateLinkResourcesGetResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing PrivateLinkResources operations. */ export class PrivateLinkResourcesImpl implements PrivateLinkResources { diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/triggerRuns.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/triggerRuns.ts index a9ccb3280e..b79f601564 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/triggerRuns.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/triggerRuns.ts @@ -1,15 +1,15 @@ -import { TriggerRuns } from "../operationsInterfaces"; +import { TriggerRuns } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryClient } from "../dataFactoryClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryClient } from "../dataFactoryClient.js"; import { TriggerRunsRerunOptionalParams, TriggerRunsCancelOptionalParams, RunFilterParameters, TriggerRunsQueryByFactoryOptionalParams, TriggerRunsQueryByFactoryResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing TriggerRuns operations. */ export class TriggerRunsImpl implements TriggerRuns { diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/triggers.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/triggers.ts index e32eae5e2a..54d88c0c5b 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/triggers.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operations/triggers.ts @@ -1,16 +1,16 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Triggers } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Triggers } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryClient } from "../dataFactoryClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryClient } from "../dataFactoryClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { TriggerResource, TriggersListByFactoryNextOptionalParams, @@ -33,7 +33,7 @@ import { TriggersStartOptionalParams, TriggersStopOptionalParams, TriggersListByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Triggers operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/activityRuns.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/activityRuns.ts index b91b6bbc3e..4f4c69a3ec 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/activityRuns.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/activityRuns.ts @@ -2,7 +2,7 @@ import { RunFilterParameters, ActivityRunsQueryByPipelineRunOptionalParams, ActivityRunsQueryByPipelineRunResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a ActivityRuns. */ export interface ActivityRuns { diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/dataFlowDebugSession.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/dataFlowDebugSession.ts index eb62e7ddd4..c93b244728 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/dataFlowDebugSession.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/dataFlowDebugSession.ts @@ -14,7 +14,7 @@ import { DataFlowDebugCommandRequest, DataFlowDebugSessionExecuteCommandOptionalParams, DataFlowDebugSessionExecuteCommandResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a DataFlowDebugSession. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/dataFlows.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/dataFlows.ts index b6addad62e..3da30b65f6 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/dataFlows.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/dataFlows.ts @@ -7,7 +7,7 @@ import { DataFlowsGetOptionalParams, DataFlowsGetResponse, DataFlowsDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a DataFlows. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/datasets.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/datasets.ts index cafacc388e..3db7127319 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/datasets.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/datasets.ts @@ -7,7 +7,7 @@ import { DatasetsGetOptionalParams, DatasetsGetResponse, DatasetsDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Datasets. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/exposureControl.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/exposureControl.ts index cf98c6395c..19b84df11a 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/exposureControl.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/exposureControl.ts @@ -7,7 +7,7 @@ import { ExposureControlBatchRequest, ExposureControlQueryFeatureValuesByFactoryOptionalParams, ExposureControlQueryFeatureValuesByFactoryResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a ExposureControl. */ export interface ExposureControl { diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/factories.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/factories.ts index 370f1106ea..c20fc6c3b7 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/factories.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/factories.ts @@ -20,7 +20,7 @@ import { UserAccessPolicy, FactoriesGetDataPlaneAccessOptionalParams, FactoriesGetDataPlaneAccessResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Factories. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/index.ts index 3c31d3fc88..8c3375dcb2 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/index.ts @@ -1,20 +1,20 @@ -export * from "./operations"; -export * from "./factories"; -export * from "./exposureControl"; -export * from "./integrationRuntimes"; -export * from "./integrationRuntimeObjectMetadata"; -export * from "./integrationRuntimeNodes"; -export * from "./linkedServices"; -export * from "./datasets"; -export * from "./pipelines"; -export * from "./pipelineRuns"; -export * from "./activityRuns"; -export * from "./triggers"; -export * from "./triggerRuns"; -export * from "./dataFlows"; -export * from "./dataFlowDebugSession"; -export * from "./managedVirtualNetworks"; -export * from "./managedPrivateEndpoints"; -export * from "./privateEndPointConnections"; -export * from "./privateEndpointConnection"; -export * from "./privateLinkResources"; +export * from "./operations.js"; +export * from "./factories.js"; +export * from "./exposureControl.js"; +export * from "./integrationRuntimes.js"; +export * from "./integrationRuntimeObjectMetadata.js"; +export * from "./integrationRuntimeNodes.js"; +export * from "./linkedServices.js"; +export * from "./datasets.js"; +export * from "./pipelines.js"; +export * from "./pipelineRuns.js"; +export * from "./activityRuns.js"; +export * from "./triggers.js"; +export * from "./triggerRuns.js"; +export * from "./dataFlows.js"; +export * from "./dataFlowDebugSession.js"; +export * from "./managedVirtualNetworks.js"; +export * from "./managedPrivateEndpoints.js"; +export * from "./privateEndPointConnections.js"; +export * from "./privateEndpointConnection.js"; +export * from "./privateLinkResources.js"; diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/integrationRuntimeNodes.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/integrationRuntimeNodes.ts index 00be93f0f3..c458ff06fe 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/integrationRuntimeNodes.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/integrationRuntimeNodes.ts @@ -7,7 +7,7 @@ import { IntegrationRuntimeNodesUpdateResponse, IntegrationRuntimeNodesGetIpAddressOptionalParams, IntegrationRuntimeNodesGetIpAddressResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a IntegrationRuntimeNodes. */ export interface IntegrationRuntimeNodes { diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/integrationRuntimeObjectMetadata.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/integrationRuntimeObjectMetadata.ts index 81fc348719..09dbe66e27 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/integrationRuntimeObjectMetadata.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/integrationRuntimeObjectMetadata.ts @@ -4,7 +4,7 @@ import { IntegrationRuntimeObjectMetadataRefreshResponse, IntegrationRuntimeObjectMetadataGetOptionalParams, IntegrationRuntimeObjectMetadataGetResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a IntegrationRuntimeObjectMetadata. */ export interface IntegrationRuntimeObjectMetadata { diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/integrationRuntimes.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/integrationRuntimes.ts index c0bc0143e7..2fa45076b4 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/integrationRuntimes.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/integrationRuntimes.ts @@ -34,7 +34,7 @@ import { CreateLinkedIntegrationRuntimeRequest, IntegrationRuntimesCreateLinkedIntegrationRuntimeOptionalParams, IntegrationRuntimesCreateLinkedIntegrationRuntimeResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a IntegrationRuntimes. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/linkedServices.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/linkedServices.ts index 6b7300026e..7182e2c271 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/linkedServices.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/linkedServices.ts @@ -7,7 +7,7 @@ import { LinkedServicesGetOptionalParams, LinkedServicesGetResponse, LinkedServicesDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a LinkedServices. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/managedPrivateEndpoints.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/managedPrivateEndpoints.ts index 9b6e9856f6..7e8645461f 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/managedPrivateEndpoints.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/managedPrivateEndpoints.ts @@ -7,7 +7,7 @@ import { ManagedPrivateEndpointsGetOptionalParams, ManagedPrivateEndpointsGetResponse, ManagedPrivateEndpointsDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ManagedPrivateEndpoints. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/managedVirtualNetworks.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/managedVirtualNetworks.ts index eafaa0466a..0632f6e4a8 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/managedVirtualNetworks.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/managedVirtualNetworks.ts @@ -6,7 +6,7 @@ import { ManagedVirtualNetworksCreateOrUpdateResponse, ManagedVirtualNetworksGetOptionalParams, ManagedVirtualNetworksGetResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ManagedVirtualNetworks. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/operations.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/operations.ts index 3e673f5dfd..d1cced887e 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/operations.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/operations.ts @@ -1,5 +1,5 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { Operation, OperationsListOptionalParams } from "../models"; +import { Operation, OperationsListOptionalParams } from "../models/index.js"; /// /** Interface representing a Operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/pipelineRuns.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/pipelineRuns.ts index 1073d1cc29..44d8df4e34 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/pipelineRuns.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/pipelineRuns.ts @@ -5,7 +5,7 @@ import { PipelineRunsGetOptionalParams, PipelineRunsGetResponse, PipelineRunsCancelOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a PipelineRuns. */ export interface PipelineRuns { diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/pipelines.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/pipelines.ts index 37ef2ad2c6..8cd2f6938b 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/pipelines.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/pipelines.ts @@ -9,7 +9,7 @@ import { PipelinesDeleteOptionalParams, PipelinesCreateRunOptionalParams, PipelinesCreateRunResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Pipelines. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/privateEndPointConnections.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/privateEndPointConnections.ts index f82edd8517..866c67669b 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/privateEndPointConnections.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/privateEndPointConnections.ts @@ -2,7 +2,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PrivateEndpointConnectionResource, PrivateEndPointConnectionsListByFactoryOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a PrivateEndPointConnections. */ diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/privateEndpointConnection.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/privateEndpointConnection.ts index 64572f94d5..bf2f1c0725 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/privateEndpointConnection.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/privateEndpointConnection.ts @@ -5,7 +5,7 @@ import { PrivateEndpointConnectionGetOptionalParams, PrivateEndpointConnectionGetResponse, PrivateEndpointConnectionDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a PrivateEndpointConnection. */ export interface PrivateEndpointConnection { diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/privateLinkResources.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/privateLinkResources.ts index 1613f4fce3..6053f14c8f 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/privateLinkResources.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/privateLinkResources.ts @@ -1,7 +1,7 @@ import { PrivateLinkResourcesGetOptionalParams, PrivateLinkResourcesGetResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a PrivateLinkResources. */ export interface PrivateLinkResources { diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/triggerRuns.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/triggerRuns.ts index 114c656286..e2f0006b25 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/triggerRuns.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/triggerRuns.ts @@ -4,7 +4,7 @@ import { RunFilterParameters, TriggerRunsQueryByFactoryOptionalParams, TriggerRunsQueryByFactoryResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a TriggerRuns. */ export interface TriggerRuns { diff --git a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/triggers.ts b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/triggers.ts index afc362de0f..c25418351c 100644 --- a/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/triggers.ts +++ b/packages/autorest.typescript/test/integration/generated/datafactory/src/operationsInterfaces/triggers.ts @@ -19,7 +19,7 @@ import { TriggersUnsubscribeFromEventsResponse, TriggersStartOptionalParams, TriggersStopOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Triggers. */ diff --git a/packages/autorest.typescript/test/integration/generated/datalakestorage/src/dataLakeStorageClient.ts b/packages/autorest.typescript/test/integration/generated/datalakestorage/src/dataLakeStorageClient.ts index 7af626ebbf..fcc8d4c6ea 100644 --- a/packages/autorest.typescript/test/integration/generated/datalakestorage/src/dataLakeStorageClient.ts +++ b/packages/autorest.typescript/test/integration/generated/datalakestorage/src/dataLakeStorageClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { PathOperationsImpl } from "./operations"; -import { PathOperations } from "./operationsInterfaces"; -import { DataLakeStorageClientOptionalParams } from "./models"; +import { PathOperationsImpl } from "./operations/index.js"; +import { PathOperations } from "./operationsInterfaces/index.js"; +import { DataLakeStorageClientOptionalParams } from "./models/index.js"; export class DataLakeStorageClient extends coreClient.ServiceClient { url: string; diff --git a/packages/autorest.typescript/test/integration/generated/datalakestorage/src/index.ts b/packages/autorest.typescript/test/integration/generated/datalakestorage/src/index.ts index 86ed91eb8d..3eb4fc3410 100644 --- a/packages/autorest.typescript/test/integration/generated/datalakestorage/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/datalakestorage/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { DataLakeStorageClient } from "./dataLakeStorageClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { DataLakeStorageClient } from "./dataLakeStorageClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/datalakestorage/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/datalakestorage/src/operations/index.ts index c45c44c774..55af32578d 100644 --- a/packages/autorest.typescript/test/integration/generated/datalakestorage/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/datalakestorage/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./pathOperations"; +export * from "./pathOperations.js"; diff --git a/packages/autorest.typescript/test/integration/generated/datalakestorage/src/operations/pathOperations.ts b/packages/autorest.typescript/test/integration/generated/datalakestorage/src/operations/pathOperations.ts index e3b006deac..f435591e50 100644 --- a/packages/autorest.typescript/test/integration/generated/datalakestorage/src/operations/pathOperations.ts +++ b/packages/autorest.typescript/test/integration/generated/datalakestorage/src/operations/pathOperations.ts @@ -6,12 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PathOperations } from "../operationsInterfaces"; +import { PathOperations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataLakeStorageClient } from "../dataLakeStorageClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataLakeStorageClient } from "../dataLakeStorageClient.js"; import { PathCreateOptionalParams, PathCreateResponse, @@ -28,7 +28,7 @@ import { PathGetPropertiesResponse, PathDeleteOptionalParams, PathDeleteResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing PathOperations operations. */ export class PathOperationsImpl implements PathOperations { diff --git a/packages/autorest.typescript/test/integration/generated/datalakestorage/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/datalakestorage/src/operationsInterfaces/index.ts index c45c44c774..55af32578d 100644 --- a/packages/autorest.typescript/test/integration/generated/datalakestorage/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/datalakestorage/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./pathOperations"; +export * from "./pathOperations.js"; diff --git a/packages/autorest.typescript/test/integration/generated/datalakestorage/src/operationsInterfaces/pathOperations.ts b/packages/autorest.typescript/test/integration/generated/datalakestorage/src/operationsInterfaces/pathOperations.ts index 6dfb29cff8..e0a7381065 100644 --- a/packages/autorest.typescript/test/integration/generated/datalakestorage/src/operationsInterfaces/pathOperations.ts +++ b/packages/autorest.typescript/test/integration/generated/datalakestorage/src/operationsInterfaces/pathOperations.ts @@ -23,7 +23,7 @@ import { PathGetPropertiesResponse, PathDeleteOptionalParams, PathDeleteResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a PathOperations. */ export interface PathOperations { diff --git a/packages/autorest.typescript/test/integration/generated/datasearch/src/dataSearchClient.ts b/packages/autorest.typescript/test/integration/generated/datasearch/src/dataSearchClient.ts index 73c8e8a647..cc58bb27b2 100644 --- a/packages/autorest.typescript/test/integration/generated/datasearch/src/dataSearchClient.ts +++ b/packages/autorest.typescript/test/integration/generated/datasearch/src/dataSearchClient.ts @@ -12,9 +12,9 @@ import { PipelineResponse, SendRequest, } from "@azure/core-rest-pipeline"; -import { DocumentsImpl } from "./operations"; -import { Documents } from "./operationsInterfaces"; -import { DataSearchClientOptionalParams } from "./models"; +import { DocumentsImpl } from "./operations/index.js"; +import { Documents } from "./operationsInterfaces/index.js"; +import { DataSearchClientOptionalParams } from "./models/index.js"; export class DataSearchClient extends coreHttpCompat.ExtendedServiceClient { endpoint: string; diff --git a/packages/autorest.typescript/test/integration/generated/datasearch/src/index.ts b/packages/autorest.typescript/test/integration/generated/datasearch/src/index.ts index 05c11a2d77..0ac1c5b200 100644 --- a/packages/autorest.typescript/test/integration/generated/datasearch/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/datasearch/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { DataSearchClient } from "./dataSearchClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { DataSearchClient } from "./dataSearchClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/datasearch/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/datasearch/src/models/parameters.ts index d71406978d..ff5dd6b5e9 100644 --- a/packages/autorest.typescript/test/integration/generated/datasearch/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/datasearch/src/models/parameters.ts @@ -16,7 +16,7 @@ import { SuggestRequest as SuggestRequestMapper, IndexBatch as IndexBatchMapper, AutocompleteRequest as AutocompleteRequestMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/packages/autorest.typescript/test/integration/generated/datasearch/src/operations/documents.ts b/packages/autorest.typescript/test/integration/generated/datasearch/src/operations/documents.ts index 15adcc727c..be2ecc6bf8 100644 --- a/packages/autorest.typescript/test/integration/generated/datasearch/src/operations/documents.ts +++ b/packages/autorest.typescript/test/integration/generated/datasearch/src/operations/documents.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Documents } from "../operationsInterfaces"; +import { Documents } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataSearchClient } from "../dataSearchClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataSearchClient } from "../dataSearchClient.js"; import { DocumentsCountOptionalParams, DocumentsCountResponse, @@ -34,7 +34,7 @@ import { AutocompleteRequest, DocumentsAutocompletePostOptionalParams, DocumentsAutocompletePostResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Documents operations. */ export class DocumentsImpl implements Documents { diff --git a/packages/autorest.typescript/test/integration/generated/datasearch/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/datasearch/src/operations/index.ts index 77c96e3f8b..e6fde9effe 100644 --- a/packages/autorest.typescript/test/integration/generated/datasearch/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/datasearch/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./documents"; +export * from "./documents.js"; diff --git a/packages/autorest.typescript/test/integration/generated/datasearch/src/operationsInterfaces/documents.ts b/packages/autorest.typescript/test/integration/generated/datasearch/src/operationsInterfaces/documents.ts index 2cedcc7c41..cf365fcb51 100644 --- a/packages/autorest.typescript/test/integration/generated/datasearch/src/operationsInterfaces/documents.ts +++ b/packages/autorest.typescript/test/integration/generated/datasearch/src/operationsInterfaces/documents.ts @@ -29,7 +29,7 @@ import { AutocompleteRequest, DocumentsAutocompletePostOptionalParams, DocumentsAutocompletePostResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Documents. */ export interface Documents { diff --git a/packages/autorest.typescript/test/integration/generated/datasearch/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/datasearch/src/operationsInterfaces/index.ts index 77c96e3f8b..e6fde9effe 100644 --- a/packages/autorest.typescript/test/integration/generated/datasearch/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/datasearch/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./documents"; +export * from "./documents.js"; diff --git a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/deviceProvisioningClient.ts b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/deviceProvisioningClient.ts index 8c25702b32..1823fc347d 100644 --- a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/deviceProvisioningClient.ts +++ b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/deviceProvisioningClient.ts @@ -8,13 +8,13 @@ import { OperationsImpl, DpsCertificateImpl, IotDpsResourceImpl, -} from "./operations"; +} from "./operations/index.js"; import { Operations, DpsCertificate, IotDpsResource, -} from "./operationsInterfaces"; -import { DeviceProvisioningClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { DeviceProvisioningClientOptionalParams } from "./models/index.js"; export class DeviceProvisioningClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/index.ts b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/index.ts index 63d456822d..8a7c5f372a 100644 --- a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/index.ts @@ -1,5 +1,5 @@ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { DeviceProvisioningClient } from "./deviceProvisioningClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { DeviceProvisioningClient } from "./deviceProvisioningClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/models/parameters.ts index fab3c9a118..5dd8397975 100644 --- a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/models/parameters.ts @@ -10,7 +10,7 @@ import { TagsResource as TagsResourceMapper, OperationInputs as OperationInputsMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operations/dpsCertificate.ts b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operations/dpsCertificate.ts index e6f43c0d46..3cbd34d7d9 100644 --- a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operations/dpsCertificate.ts +++ b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operations/dpsCertificate.ts @@ -1,8 +1,8 @@ -import { DpsCertificate } from "../operationsInterfaces"; +import { DpsCertificate } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DeviceProvisioningClient } from "../deviceProvisioningClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DeviceProvisioningClient } from "../deviceProvisioningClient.js"; import { DpsCertificateGetOptionalParams, DpsCertificateGetResponse, @@ -17,7 +17,7 @@ import { VerificationCodeRequest, DpsCertificateVerifyCertificateOptionalParams, DpsCertificateVerifyCertificateResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing DpsCertificate operations. */ export class DpsCertificateImpl implements DpsCertificate { diff --git a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operations/index.ts index 0d98830221..104cc6860d 100644 --- a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operations/index.ts @@ -1,3 +1,3 @@ -export * from "./operations"; -export * from "./dpsCertificate"; -export * from "./iotDpsResource"; +export * from "./operations.js"; +export * from "./dpsCertificate.js"; +export * from "./iotDpsResource.js"; diff --git a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operations/iotDpsResource.ts b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operations/iotDpsResource.ts index 03562d1c3a..4b25d9230e 100644 --- a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operations/iotDpsResource.ts +++ b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operations/iotDpsResource.ts @@ -1,16 +1,16 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { IotDpsResource } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { IotDpsResource } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DeviceProvisioningClient } from "../deviceProvisioningClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DeviceProvisioningClient } from "../deviceProvisioningClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { ProvisioningServiceDescription, IotDpsResourceListBySubscriptionNextOptionalParams, @@ -59,7 +59,7 @@ import { IotDpsResourceListByResourceGroupNextResponse, IotDpsResourceListValidSkusNextResponse, IotDpsResourceListKeysNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing IotDpsResource operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operations/operations.ts b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operations/operations.ts index b2b70307be..04010d6d9e 100644 --- a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operations/operations.ts +++ b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operations/operations.ts @@ -1,17 +1,17 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Operations } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Operations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DeviceProvisioningClient } from "../deviceProvisioningClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DeviceProvisioningClient } from "../deviceProvisioningClient.js"; import { Operation, OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, OperationsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Operations operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operationsInterfaces/dpsCertificate.ts b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operationsInterfaces/dpsCertificate.ts index b905176c37..65e6b747b6 100644 --- a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operationsInterfaces/dpsCertificate.ts +++ b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operationsInterfaces/dpsCertificate.ts @@ -12,7 +12,7 @@ import { VerificationCodeRequest, DpsCertificateVerifyCertificateOptionalParams, DpsCertificateVerifyCertificateResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a DpsCertificate. */ export interface DpsCertificate { diff --git a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operationsInterfaces/index.ts index 0d98830221..104cc6860d 100644 --- a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operationsInterfaces/index.ts @@ -1,3 +1,3 @@ -export * from "./operations"; -export * from "./dpsCertificate"; -export * from "./iotDpsResource"; +export * from "./operations.js"; +export * from "./dpsCertificate.js"; +export * from "./iotDpsResource.js"; diff --git a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operationsInterfaces/iotDpsResource.ts b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operationsInterfaces/iotDpsResource.ts index 55bea15088..5363ae44af 100644 --- a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operationsInterfaces/iotDpsResource.ts +++ b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operationsInterfaces/iotDpsResource.ts @@ -36,7 +36,7 @@ import { IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse, IotDpsResourceDeletePrivateEndpointConnectionOptionalParams, IotDpsResourceDeletePrivateEndpointConnectionResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a IotDpsResource. */ diff --git a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operationsInterfaces/operations.ts b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operationsInterfaces/operations.ts index d2c889d10a..9c257e0fe9 100644 --- a/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operationsInterfaces/operations.ts +++ b/packages/autorest.typescript/test/integration/generated/deviceprovisioningservice/src/operationsInterfaces/operations.ts @@ -1,5 +1,5 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { Operation, OperationsListOptionalParams } from "../models"; +import { Operation, OperationsListOptionalParams } from "../models/index.js"; /// /** Interface representing a Operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/domainservices/src/domainServicesClient.ts b/packages/autorest.typescript/test/integration/generated/domainservices/src/domainServicesClient.ts index 81a7a428fd..9a9b21f52d 100644 --- a/packages/autorest.typescript/test/integration/generated/domainservices/src/domainServicesClient.ts +++ b/packages/autorest.typescript/test/integration/generated/domainservices/src/domainServicesClient.ts @@ -9,14 +9,14 @@ import { DomainServicesImpl, OuContainerOperationsImpl, OuContainerOperationGrpImpl, -} from "./operations"; +} from "./operations/index.js"; import { DomainServiceOperations, DomainServices, OuContainerOperations, OuContainerOperationGrp, -} from "./operationsInterfaces"; -import { DomainServicesClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { DomainServicesClientOptionalParams } from "./models/index.js"; export class DomainServicesClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/domainservices/src/index.ts b/packages/autorest.typescript/test/integration/generated/domainservices/src/index.ts index bc259d1eda..f999eef4d4 100644 --- a/packages/autorest.typescript/test/integration/generated/domainservices/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/domainservices/src/index.ts @@ -1,5 +1,5 @@ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { DomainServicesClient } from "./domainServicesClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { DomainServicesClient } from "./domainServicesClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/domainservices/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/domainservices/src/models/parameters.ts index f17524379c..0d6ac4e068 100644 --- a/packages/autorest.typescript/test/integration/generated/domainservices/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/domainservices/src/models/parameters.ts @@ -6,7 +6,7 @@ import { import { DomainService as DomainServiceMapper, ContainerAccount as ContainerAccountMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/packages/autorest.typescript/test/integration/generated/domainservices/src/operations/domainServiceOperations.ts b/packages/autorest.typescript/test/integration/generated/domainservices/src/operations/domainServiceOperations.ts index 677b5a5334..8bfe47ae9b 100644 --- a/packages/autorest.typescript/test/integration/generated/domainservices/src/operations/domainServiceOperations.ts +++ b/packages/autorest.typescript/test/integration/generated/domainservices/src/operations/domainServiceOperations.ts @@ -1,17 +1,17 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DomainServiceOperations } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { DomainServiceOperations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DomainServicesClient } from "../domainServicesClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DomainServicesClient } from "../domainServicesClient.js"; import { OperationEntity, DomainServiceOperationsListNextOptionalParams, DomainServiceOperationsListOptionalParams, DomainServiceOperationsListResponse, DomainServiceOperationsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing DomainServiceOperations operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/domainservices/src/operations/domainServices.ts b/packages/autorest.typescript/test/integration/generated/domainservices/src/operations/domainServices.ts index cc84d696e1..c4ea85ce66 100644 --- a/packages/autorest.typescript/test/integration/generated/domainservices/src/operations/domainServices.ts +++ b/packages/autorest.typescript/test/integration/generated/domainservices/src/operations/domainServices.ts @@ -1,16 +1,16 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DomainServices } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { DomainServices } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DomainServicesClient } from "../domainServicesClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DomainServicesClient } from "../domainServicesClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { DomainService, DomainServicesListNextOptionalParams, @@ -28,7 +28,7 @@ import { DomainServicesUpdateResponse, DomainServicesListNextResponse, DomainServicesListByResourceGroupNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing DomainServices operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/domainservices/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/domainservices/src/operations/index.ts index 004cfac557..e0bae6950d 100644 --- a/packages/autorest.typescript/test/integration/generated/domainservices/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/domainservices/src/operations/index.ts @@ -1,4 +1,4 @@ -export * from "./domainServiceOperations"; -export * from "./domainServices"; -export * from "./ouContainerOperations"; -export * from "./ouContainerOperationGrp"; +export * from "./domainServiceOperations.js"; +export * from "./domainServices.js"; +export * from "./ouContainerOperations.js"; +export * from "./ouContainerOperationGrp.js"; diff --git a/packages/autorest.typescript/test/integration/generated/domainservices/src/operations/ouContainerOperationGrp.ts b/packages/autorest.typescript/test/integration/generated/domainservices/src/operations/ouContainerOperationGrp.ts index d440d51ad4..1140d05870 100644 --- a/packages/autorest.typescript/test/integration/generated/domainservices/src/operations/ouContainerOperationGrp.ts +++ b/packages/autorest.typescript/test/integration/generated/domainservices/src/operations/ouContainerOperationGrp.ts @@ -1,16 +1,16 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { OuContainerOperationGrp } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { OuContainerOperationGrp } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DomainServicesClient } from "../domainServicesClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DomainServicesClient } from "../domainServicesClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { OuContainer, OuContainerListNextOptionalParams, @@ -25,7 +25,7 @@ import { OuContainerUpdateOptionalParams, OuContainerUpdateResponse, OuContainerListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing OuContainerOperationGrp operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/domainservices/src/operations/ouContainerOperations.ts b/packages/autorest.typescript/test/integration/generated/domainservices/src/operations/ouContainerOperations.ts index 3ae7d7ba30..5328e99069 100644 --- a/packages/autorest.typescript/test/integration/generated/domainservices/src/operations/ouContainerOperations.ts +++ b/packages/autorest.typescript/test/integration/generated/domainservices/src/operations/ouContainerOperations.ts @@ -1,17 +1,17 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { OuContainerOperations } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { OuContainerOperations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DomainServicesClient } from "../domainServicesClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DomainServicesClient } from "../domainServicesClient.js"; import { OperationEntity, OuContainerOperationsListNextOptionalParams, OuContainerOperationsListOptionalParams, OuContainerOperationsListResponse, OuContainerOperationsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing OuContainerOperations operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/domainservices/src/operationsInterfaces/domainServiceOperations.ts b/packages/autorest.typescript/test/integration/generated/domainservices/src/operationsInterfaces/domainServiceOperations.ts index 55edbddc22..e175952ed6 100644 --- a/packages/autorest.typescript/test/integration/generated/domainservices/src/operationsInterfaces/domainServiceOperations.ts +++ b/packages/autorest.typescript/test/integration/generated/domainservices/src/operationsInterfaces/domainServiceOperations.ts @@ -2,7 +2,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { OperationEntity, DomainServiceOperationsListOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a DomainServiceOperations. */ diff --git a/packages/autorest.typescript/test/integration/generated/domainservices/src/operationsInterfaces/domainServices.ts b/packages/autorest.typescript/test/integration/generated/domainservices/src/operationsInterfaces/domainServices.ts index fa9f27521f..2767e635f8 100644 --- a/packages/autorest.typescript/test/integration/generated/domainservices/src/operationsInterfaces/domainServices.ts +++ b/packages/autorest.typescript/test/integration/generated/domainservices/src/operationsInterfaces/domainServices.ts @@ -11,7 +11,7 @@ import { DomainServicesDeleteOptionalParams, DomainServicesUpdateOptionalParams, DomainServicesUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a DomainServices. */ diff --git a/packages/autorest.typescript/test/integration/generated/domainservices/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/domainservices/src/operationsInterfaces/index.ts index 004cfac557..e0bae6950d 100644 --- a/packages/autorest.typescript/test/integration/generated/domainservices/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/domainservices/src/operationsInterfaces/index.ts @@ -1,4 +1,4 @@ -export * from "./domainServiceOperations"; -export * from "./domainServices"; -export * from "./ouContainerOperations"; -export * from "./ouContainerOperationGrp"; +export * from "./domainServiceOperations.js"; +export * from "./domainServices.js"; +export * from "./ouContainerOperations.js"; +export * from "./ouContainerOperationGrp.js"; diff --git a/packages/autorest.typescript/test/integration/generated/domainservices/src/operationsInterfaces/ouContainerOperationGrp.ts b/packages/autorest.typescript/test/integration/generated/domainservices/src/operationsInterfaces/ouContainerOperationGrp.ts index abea2bebb9..d72b6bd3ba 100644 --- a/packages/autorest.typescript/test/integration/generated/domainservices/src/operationsInterfaces/ouContainerOperationGrp.ts +++ b/packages/autorest.typescript/test/integration/generated/domainservices/src/operationsInterfaces/ouContainerOperationGrp.ts @@ -11,7 +11,7 @@ import { OuContainerDeleteOptionalParams, OuContainerUpdateOptionalParams, OuContainerUpdateResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a OuContainerOperationGrp. */ diff --git a/packages/autorest.typescript/test/integration/generated/domainservices/src/operationsInterfaces/ouContainerOperations.ts b/packages/autorest.typescript/test/integration/generated/domainservices/src/operationsInterfaces/ouContainerOperations.ts index 32b93ea7bd..9acb8bc00d 100644 --- a/packages/autorest.typescript/test/integration/generated/domainservices/src/operationsInterfaces/ouContainerOperations.ts +++ b/packages/autorest.typescript/test/integration/generated/domainservices/src/operationsInterfaces/ouContainerOperations.ts @@ -2,7 +2,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { OperationEntity, OuContainerOperationsListOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a OuContainerOperations. */ diff --git a/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/extensibleEnumsClient.ts b/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/extensibleEnumsClient.ts index 919fa170e4..223c29fce1 100644 --- a/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/extensibleEnumsClient.ts +++ b/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/extensibleEnumsClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { PetImpl } from "./operations"; -import { Pet } from "./operationsInterfaces"; -import { ExtensibleEnumsClientOptionalParams } from "./models"; +import { PetImpl } from "./operations/index.js"; +import { Pet } from "./operationsInterfaces/index.js"; +import { ExtensibleEnumsClientOptionalParams } from "./models/index.js"; export class ExtensibleEnumsClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/index.ts b/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/index.ts index f83c5a384b..08345bdeef 100644 --- a/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { ExtensibleEnumsClient } from "./extensibleEnumsClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { ExtensibleEnumsClient } from "./extensibleEnumsClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/models/parameters.ts index 9be6c9ddf0..924af95ad1 100644 --- a/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/models/parameters.ts @@ -7,7 +7,7 @@ */ import { OperationParameter, OperationURLParameter } from "@azure/core-client"; -import { PetDef as PetDefMapper } from "../models/mappers"; +import { PetDef as PetDefMapper } from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/operations/index.ts index eed4a3ce68..888a27a413 100644 --- a/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./pet"; +export * from "./pet.js"; diff --git a/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/operations/pet.ts b/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/operations/pet.ts index 4f7816c52b..0bc8813beb 100644 --- a/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/operations/pet.ts +++ b/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/operations/pet.ts @@ -6,17 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Pet } from "../operationsInterfaces"; +import { Pet } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ExtensibleEnumsClient } from "../extensibleEnumsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ExtensibleEnumsClient } from "../extensibleEnumsClient.js"; import { PetGetByPetIdOptionalParams, PetGetByPetIdResponse, PetAddPetOptionalParams, PetAddPetResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Pet operations. */ export class PetImpl implements Pet { diff --git a/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/operationsInterfaces/index.ts index eed4a3ce68..888a27a413 100644 --- a/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./pet"; +export * from "./pet.js"; diff --git a/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/operationsInterfaces/pet.ts b/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/operationsInterfaces/pet.ts index d0b6020744..40c952454e 100644 --- a/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/operationsInterfaces/pet.ts +++ b/packages/autorest.typescript/test/integration/generated/extensibleEnums/src/operationsInterfaces/pet.ts @@ -11,7 +11,7 @@ import { PetGetByPetIdResponse, PetAddPetOptionalParams, PetAddPetResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Pet. */ export interface Pet { diff --git a/packages/autorest.typescript/test/integration/generated/header/src/headerClient.ts b/packages/autorest.typescript/test/integration/generated/header/src/headerClient.ts index ea5b14aed7..8eacfb66dd 100644 --- a/packages/autorest.typescript/test/integration/generated/header/src/headerClient.ts +++ b/packages/autorest.typescript/test/integration/generated/header/src/headerClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { HeaderImpl } from "./operations"; -import { Header } from "./operationsInterfaces"; -import { HeaderClientOptionalParams } from "./models"; +import { HeaderImpl } from "./operations/index.js"; +import { Header } from "./operationsInterfaces/index.js"; +import { HeaderClientOptionalParams } from "./models/index.js"; export class HeaderClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/header/src/index.ts b/packages/autorest.typescript/test/integration/generated/header/src/index.ts index 1b243561aa..a0684176dc 100644 --- a/packages/autorest.typescript/test/integration/generated/header/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/header/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { HeaderClient } from "./headerClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { HeaderClient } from "./headerClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/header/src/operations/header.ts b/packages/autorest.typescript/test/integration/generated/header/src/operations/header.ts index 577975a3e6..84d1f14b11 100644 --- a/packages/autorest.typescript/test/integration/generated/header/src/operations/header.ts +++ b/packages/autorest.typescript/test/integration/generated/header/src/operations/header.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Header } from "../operationsInterfaces"; +import { Header } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { HeaderClient } from "../headerClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { HeaderClient } from "../headerClient.js"; import { HeaderParamExistingKeyOptionalParams, HeaderResponseExistingKeyOptionalParams, @@ -55,7 +55,7 @@ import { HeaderResponseEnumOptionalParams, HeaderResponseEnumResponse, HeaderCustomRequestIdOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Header operations. */ export class HeaderImpl implements Header { diff --git a/packages/autorest.typescript/test/integration/generated/header/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/header/src/operations/index.ts index fc14fb98a7..cac62ceae1 100644 --- a/packages/autorest.typescript/test/integration/generated/header/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/header/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./header"; +export * from "./header.js"; diff --git a/packages/autorest.typescript/test/integration/generated/header/src/operationsInterfaces/header.ts b/packages/autorest.typescript/test/integration/generated/header/src/operationsInterfaces/header.ts index 846cd36047..cc82a222f4 100644 --- a/packages/autorest.typescript/test/integration/generated/header/src/operationsInterfaces/header.ts +++ b/packages/autorest.typescript/test/integration/generated/header/src/operationsInterfaces/header.ts @@ -50,7 +50,7 @@ import { HeaderResponseEnumOptionalParams, HeaderResponseEnumResponse, HeaderCustomRequestIdOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Header. */ export interface Header { diff --git a/packages/autorest.typescript/test/integration/generated/header/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/header/src/operationsInterfaces/index.ts index fc14fb98a7..cac62ceae1 100644 --- a/packages/autorest.typescript/test/integration/generated/header/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/header/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./header"; +export * from "./header.js"; diff --git a/packages/autorest.typescript/test/integration/generated/headerprefix/src/headerPrefixClient.ts b/packages/autorest.typescript/test/integration/generated/headerprefix/src/headerPrefixClient.ts index 2460a55b8d..8d3f7533f0 100644 --- a/packages/autorest.typescript/test/integration/generated/headerprefix/src/headerPrefixClient.ts +++ b/packages/autorest.typescript/test/integration/generated/headerprefix/src/headerPrefixClient.ts @@ -1,7 +1,7 @@ import * as coreClient from "@azure/core-client"; -import { QueueImpl } from "./operations"; -import { Queue } from "./operationsInterfaces"; -import { HeaderPrefixClientOptionalParams } from "./models"; +import { QueueImpl } from "./operations/index.js"; +import { Queue } from "./operationsInterfaces/index.js"; +import { HeaderPrefixClientOptionalParams } from "./models/index.js"; export class HeaderPrefixClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/headerprefix/src/index.ts b/packages/autorest.typescript/test/integration/generated/headerprefix/src/index.ts index 73dc28c465..05f122bdda 100644 --- a/packages/autorest.typescript/test/integration/generated/headerprefix/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/headerprefix/src/index.ts @@ -1,3 +1,3 @@ -export * from "./models"; -export { HeaderPrefixClient } from "./headerPrefixClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { HeaderPrefixClient } from "./headerPrefixClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/headerprefix/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/headerprefix/src/operations/index.ts index 854a2c8dba..f482f9817c 100644 --- a/packages/autorest.typescript/test/integration/generated/headerprefix/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/headerprefix/src/operations/index.ts @@ -1 +1 @@ -export * from "./queue"; +export * from "./queue.js"; diff --git a/packages/autorest.typescript/test/integration/generated/headerprefix/src/operations/queue.ts b/packages/autorest.typescript/test/integration/generated/headerprefix/src/operations/queue.ts index a029a49487..b25cba4bc5 100644 --- a/packages/autorest.typescript/test/integration/generated/headerprefix/src/operations/queue.ts +++ b/packages/autorest.typescript/test/integration/generated/headerprefix/src/operations/queue.ts @@ -1,12 +1,12 @@ -import { Queue } from "../operationsInterfaces"; +import { Queue } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { HeaderPrefixClient } from "../headerPrefixClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { HeaderPrefixClient } from "../headerPrefixClient.js"; import { QueueGetPropertiesOptionalParams, QueueGetPropertiesResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Queue operations. */ export class QueueImpl implements Queue { diff --git a/packages/autorest.typescript/test/integration/generated/headerprefix/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/headerprefix/src/operationsInterfaces/index.ts index 854a2c8dba..f482f9817c 100644 --- a/packages/autorest.typescript/test/integration/generated/headerprefix/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/headerprefix/src/operationsInterfaces/index.ts @@ -1 +1 @@ -export * from "./queue"; +export * from "./queue.js"; diff --git a/packages/autorest.typescript/test/integration/generated/headerprefix/src/operationsInterfaces/queue.ts b/packages/autorest.typescript/test/integration/generated/headerprefix/src/operationsInterfaces/queue.ts index 75c87f88b0..54da6de31c 100644 --- a/packages/autorest.typescript/test/integration/generated/headerprefix/src/operationsInterfaces/queue.ts +++ b/packages/autorest.typescript/test/integration/generated/headerprefix/src/operationsInterfaces/queue.ts @@ -1,7 +1,7 @@ import { QueueGetPropertiesOptionalParams, QueueGetPropertiesResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Queue. */ export interface Queue { diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/healthCareApisClient.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/healthCareApisClient.ts index 3df727e8c2..f3b0e40e53 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/healthCareApisClient.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/healthCareApisClient.ts @@ -16,7 +16,7 @@ import { FhirServicesImpl, OperationsImpl, OperationResultsImpl, -} from "./operations"; +} from "./operations/index.js"; import { Services, PrivateEndpointConnections, @@ -29,8 +29,8 @@ import { FhirServices, Operations, OperationResults, -} from "./operationsInterfaces"; -import { HealthCareApisClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { HealthCareApisClientOptionalParams } from "./models/index.js"; export class HealthCareApisClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/index.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/index.ts index edc613f9ee..ddd42945a7 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/index.ts @@ -1,5 +1,5 @@ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { HealthCareApisClient } from "./healthCareApisClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { HealthCareApisClient } from "./healthCareApisClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/models/parameters.ts index 463d94cd7b..139d560b19 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/models/parameters.ts @@ -17,7 +17,7 @@ import { IotFhirDestination as IotFhirDestinationMapper, FhirService as FhirServiceMapper, FhirServicePatchResource as FhirServicePatchResourceMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/dicomServices.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/dicomServices.ts index 6f4d692566..2293ee4edb 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/dicomServices.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/dicomServices.ts @@ -1,16 +1,16 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DicomServices } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { DicomServices } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { HealthCareApisClient } from "../healthCareApisClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { HealthCareApisClient } from "../healthCareApisClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { DicomService, DicomServicesListByWorkspaceNextOptionalParams, @@ -25,7 +25,7 @@ import { DicomServicesUpdateResponse, DicomServicesDeleteOptionalParams, DicomServicesListByWorkspaceNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing DicomServices operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/fhirDestinations.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/fhirDestinations.ts index 41ac262ff2..1b624da671 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/fhirDestinations.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/fhirDestinations.ts @@ -1,17 +1,17 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { FhirDestinations } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { FhirDestinations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { HealthCareApisClient } from "../healthCareApisClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { HealthCareApisClient } from "../healthCareApisClient.js"; import { IotFhirDestination, FhirDestinationsListByIotConnectorNextOptionalParams, FhirDestinationsListByIotConnectorOptionalParams, FhirDestinationsListByIotConnectorResponse, FhirDestinationsListByIotConnectorNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing FhirDestinations operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/fhirServices.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/fhirServices.ts index aa45178b12..c3d0a52325 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/fhirServices.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/fhirServices.ts @@ -1,16 +1,16 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { FhirServices } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { FhirServices } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { HealthCareApisClient } from "../healthCareApisClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { HealthCareApisClient } from "../healthCareApisClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { FhirService, FhirServicesListByWorkspaceNextOptionalParams, @@ -25,7 +25,7 @@ import { FhirServicesUpdateResponse, FhirServicesDeleteOptionalParams, FhirServicesListByWorkspaceNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing FhirServices operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/index.ts index b641045b6d..b9ed8361fd 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/index.ts @@ -1,11 +1,11 @@ -export * from "./services"; -export * from "./privateEndpointConnections"; -export * from "./privateLinkResources"; -export * from "./workspaces"; -export * from "./dicomServices"; -export * from "./iotConnectors"; -export * from "./fhirDestinations"; -export * from "./iotConnectorFhirDestination"; -export * from "./fhirServices"; -export * from "./operations"; -export * from "./operationResults"; +export * from "./services.js"; +export * from "./privateEndpointConnections.js"; +export * from "./privateLinkResources.js"; +export * from "./workspaces.js"; +export * from "./dicomServices.js"; +export * from "./iotConnectors.js"; +export * from "./fhirDestinations.js"; +export * from "./iotConnectorFhirDestination.js"; +export * from "./fhirServices.js"; +export * from "./operations.js"; +export * from "./operationResults.js"; diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/iotConnectorFhirDestination.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/iotConnectorFhirDestination.ts index 7f7cf6f355..8b8494911c 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/iotConnectorFhirDestination.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/iotConnectorFhirDestination.ts @@ -1,14 +1,14 @@ -import { IotConnectorFhirDestination } from "../operationsInterfaces"; +import { IotConnectorFhirDestination } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { HealthCareApisClient } from "../healthCareApisClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { HealthCareApisClient } from "../healthCareApisClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { IotConnectorFhirDestinationGetOptionalParams, IotConnectorFhirDestinationGetResponse, @@ -16,7 +16,7 @@ import { IotConnectorFhirDestinationCreateOrUpdateOptionalParams, IotConnectorFhirDestinationCreateOrUpdateResponse, IotConnectorFhirDestinationDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing IotConnectorFhirDestination operations. */ export class IotConnectorFhirDestinationImpl diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/iotConnectors.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/iotConnectors.ts index 64701bb748..d6e83818e8 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/iotConnectors.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/iotConnectors.ts @@ -1,16 +1,16 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { IotConnectors } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { IotConnectors } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { HealthCareApisClient } from "../healthCareApisClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { HealthCareApisClient } from "../healthCareApisClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { IotConnector, IotConnectorsListByWorkspaceNextOptionalParams, @@ -25,7 +25,7 @@ import { IotConnectorsUpdateResponse, IotConnectorsDeleteOptionalParams, IotConnectorsListByWorkspaceNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing IotConnectors operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/operationResults.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/operationResults.ts index 854512efe8..e21aca3b0c 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/operationResults.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/operationResults.ts @@ -1,12 +1,12 @@ -import { OperationResults } from "../operationsInterfaces"; +import { OperationResults } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { HealthCareApisClient } from "../healthCareApisClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { HealthCareApisClient } from "../healthCareApisClient.js"; import { OperationResultsGetOptionalParams, OperationResultsGetResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing OperationResults operations. */ export class OperationResultsImpl implements OperationResults { diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/operations.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/operations.ts index 7e6221ce8f..f9ef3ba48b 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/operations.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/operations.ts @@ -1,17 +1,17 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Operations } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Operations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { HealthCareApisClient } from "../healthCareApisClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { HealthCareApisClient } from "../healthCareApisClient.js"; import { OperationDetail, OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, OperationsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Operations operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/privateEndpointConnections.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/privateEndpointConnections.ts index b2aeba1581..f7073ba16c 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/privateEndpointConnections.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/privateEndpointConnections.ts @@ -1,15 +1,15 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { PrivateEndpointConnections } from "../operationsInterfaces"; +import { PrivateEndpointConnections } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { HealthCareApisClient } from "../healthCareApisClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { HealthCareApisClient } from "../healthCareApisClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { PrivateEndpointConnectionDescription, PrivateEndpointConnectionsListByServiceOptionalParams, @@ -20,7 +20,7 @@ import { PrivateEndpointConnectionsCreateOrUpdateOptionalParams, PrivateEndpointConnectionsCreateOrUpdateResponse, PrivateEndpointConnectionsDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Class containing PrivateEndpointConnections operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/privateLinkResources.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/privateLinkResources.ts index 43fbd1b7dd..f312a04610 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/privateLinkResources.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/privateLinkResources.ts @@ -1,14 +1,14 @@ -import { PrivateLinkResources } from "../operationsInterfaces"; +import { PrivateLinkResources } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { HealthCareApisClient } from "../healthCareApisClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { HealthCareApisClient } from "../healthCareApisClient.js"; import { PrivateLinkResourcesListByServiceOptionalParams, PrivateLinkResourcesListByServiceResponse, PrivateLinkResourcesGetOptionalParams, PrivateLinkResourcesGetResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing PrivateLinkResources operations. */ export class PrivateLinkResourcesImpl implements PrivateLinkResources { diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/services.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/services.ts index 280856bb63..3e5b90df89 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/services.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/services.ts @@ -1,16 +1,16 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Services } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Services } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { HealthCareApisClient } from "../healthCareApisClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { HealthCareApisClient } from "../healthCareApisClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { ServicesDescription, ServicesListNextOptionalParams, @@ -32,7 +32,7 @@ import { ServicesCheckNameAvailabilityResponse, ServicesListNextResponse, ServicesListByResourceGroupNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Services operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/workspaces.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/workspaces.ts index f695d14852..572bfe36ab 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/workspaces.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operations/workspaces.ts @@ -1,16 +1,16 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Workspaces } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Workspaces } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { HealthCareApisClient } from "../healthCareApisClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { HealthCareApisClient } from "../healthCareApisClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { Workspace, WorkspacesListBySubscriptionNextOptionalParams, @@ -29,7 +29,7 @@ import { WorkspacesDeleteOptionalParams, WorkspacesListBySubscriptionNextResponse, WorkspacesListByResourceGroupNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Workspaces operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/dicomServices.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/dicomServices.ts index b3950836ac..e86f8f8be5 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/dicomServices.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/dicomServices.ts @@ -11,7 +11,7 @@ import { DicomServicesUpdateOptionalParams, DicomServicesUpdateResponse, DicomServicesDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a DicomServices. */ diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/fhirDestinations.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/fhirDestinations.ts index 2413d76eb2..488c8ea5ea 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/fhirDestinations.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/fhirDestinations.ts @@ -2,7 +2,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { IotFhirDestination, FhirDestinationsListByIotConnectorOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a FhirDestinations. */ diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/fhirServices.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/fhirServices.ts index fe4349888e..5e5f0a9dac 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/fhirServices.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/fhirServices.ts @@ -11,7 +11,7 @@ import { FhirServicesUpdateOptionalParams, FhirServicesUpdateResponse, FhirServicesDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a FhirServices. */ diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/index.ts index b641045b6d..b9ed8361fd 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/index.ts @@ -1,11 +1,11 @@ -export * from "./services"; -export * from "./privateEndpointConnections"; -export * from "./privateLinkResources"; -export * from "./workspaces"; -export * from "./dicomServices"; -export * from "./iotConnectors"; -export * from "./fhirDestinations"; -export * from "./iotConnectorFhirDestination"; -export * from "./fhirServices"; -export * from "./operations"; -export * from "./operationResults"; +export * from "./services.js"; +export * from "./privateEndpointConnections.js"; +export * from "./privateLinkResources.js"; +export * from "./workspaces.js"; +export * from "./dicomServices.js"; +export * from "./iotConnectors.js"; +export * from "./fhirDestinations.js"; +export * from "./iotConnectorFhirDestination.js"; +export * from "./fhirServices.js"; +export * from "./operations.js"; +export * from "./operationResults.js"; diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/iotConnectorFhirDestination.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/iotConnectorFhirDestination.ts index e88e7e2442..53e5c9c6a4 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/iotConnectorFhirDestination.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/iotConnectorFhirDestination.ts @@ -6,7 +6,7 @@ import { IotConnectorFhirDestinationCreateOrUpdateOptionalParams, IotConnectorFhirDestinationCreateOrUpdateResponse, IotConnectorFhirDestinationDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a IotConnectorFhirDestination. */ export interface IotConnectorFhirDestination { diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/iotConnectors.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/iotConnectors.ts index 81985d70f6..f54656d738 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/iotConnectors.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/iotConnectors.ts @@ -11,7 +11,7 @@ import { IotConnectorsUpdateOptionalParams, IotConnectorsUpdateResponse, IotConnectorsDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a IotConnectors. */ diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/operationResults.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/operationResults.ts index d49d4e9a76..1e066ce2ac 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/operationResults.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/operationResults.ts @@ -1,7 +1,7 @@ import { OperationResultsGetOptionalParams, OperationResultsGetResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a OperationResults. */ export interface OperationResults { diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/operations.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/operations.ts index 691a74eb46..07deb53cf5 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/operations.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/operations.ts @@ -1,5 +1,8 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { OperationDetail, OperationsListOptionalParams } from "../models"; +import { + OperationDetail, + OperationsListOptionalParams, +} from "../models/index.js"; /// /** Interface representing a Operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/privateEndpointConnections.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/privateEndpointConnections.ts index fa16557592..1d173b6505 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/privateEndpointConnections.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/privateEndpointConnections.ts @@ -9,7 +9,7 @@ import { PrivateEndpointConnectionsCreateOrUpdateOptionalParams, PrivateEndpointConnectionsCreateOrUpdateResponse, PrivateEndpointConnectionsDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a PrivateEndpointConnections. */ diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/privateLinkResources.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/privateLinkResources.ts index 5e90d56842..b73236ec78 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/privateLinkResources.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/privateLinkResources.ts @@ -3,7 +3,7 @@ import { PrivateLinkResourcesListByServiceResponse, PrivateLinkResourcesGetOptionalParams, PrivateLinkResourcesGetResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a PrivateLinkResources. */ export interface PrivateLinkResources { diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/services.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/services.ts index 230cbf5afc..bebede1b8d 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/services.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/services.ts @@ -15,7 +15,7 @@ import { CheckNameAvailabilityParameters, ServicesCheckNameAvailabilityOptionalParams, ServicesCheckNameAvailabilityResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Services. */ diff --git a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/workspaces.ts b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/workspaces.ts index 25530d39e3..1aa31f3968 100644 --- a/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/workspaces.ts +++ b/packages/autorest.typescript/test/integration/generated/healthcareapis/src/operationsInterfaces/workspaces.ts @@ -12,7 +12,7 @@ import { WorkspacesUpdateOptionalParams, WorkspacesUpdateResponse, WorkspacesDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Workspaces. */ diff --git a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/httpInfrastructureClient.ts b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/httpInfrastructureClient.ts index 6fb1b528c5..d0159d3a93 100644 --- a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/httpInfrastructureClient.ts +++ b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/httpInfrastructureClient.ts @@ -15,7 +15,7 @@ import { HttpServerFailureImpl, HttpRetryImpl, MultipleResponsesImpl, -} from "./operations"; +} from "./operations/index.js"; import { HttpFailure, HttpSuccess, @@ -24,8 +24,8 @@ import { HttpServerFailure, HttpRetry, MultipleResponses, -} from "./operationsInterfaces"; -import { HttpInfrastructureClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { HttpInfrastructureClientOptionalParams } from "./models/index.js"; export class HttpInfrastructureClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/index.ts b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/index.ts index 425fda045e..402baeee90 100644 --- a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { HttpInfrastructureClient } from "./httpInfrastructureClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { HttpInfrastructureClient } from "./httpInfrastructureClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpClientFailure.ts b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpClientFailure.ts index da3d865b00..05f2ccae02 100644 --- a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpClientFailure.ts +++ b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpClientFailure.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { HttpClientFailure } from "../operationsInterfaces"; +import { HttpClientFailure } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { HttpInfrastructureClient } from "../httpInfrastructureClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { HttpInfrastructureClient } from "../httpInfrastructureClient.js"; import { HttpClientFailureHead400OptionalParams, HttpClientFailureGet400OptionalParams, @@ -38,7 +38,7 @@ import { HttpClientFailureGet416OptionalParams, HttpClientFailureDelete417OptionalParams, HttpClientFailureHead429OptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing HttpClientFailure operations. */ export class HttpClientFailureImpl implements HttpClientFailure { diff --git a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpFailure.ts b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpFailure.ts index 1fa0b775f6..9db58facea 100644 --- a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpFailure.ts +++ b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpFailure.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { HttpFailure } from "../operationsInterfaces"; +import { HttpFailure } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { HttpInfrastructureClient } from "../httpInfrastructureClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { HttpInfrastructureClient } from "../httpInfrastructureClient.js"; import { HttpFailureGetEmptyErrorOptionalParams, HttpFailureGetEmptyErrorResponse, @@ -18,7 +18,7 @@ import { HttpFailureGetNoModelErrorResponse, HttpFailureGetNoModelEmptyOptionalParams, HttpFailureGetNoModelEmptyResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing HttpFailure operations. */ export class HttpFailureImpl implements HttpFailure { diff --git a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpRedirects.ts b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpRedirects.ts index 1f4a6bd7a2..0014f4a65e 100644 --- a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpRedirects.ts +++ b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpRedirects.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { HttpRedirects } from "../operationsInterfaces"; +import { HttpRedirects } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { HttpInfrastructureClient } from "../httpInfrastructureClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { HttpInfrastructureClient } from "../httpInfrastructureClient.js"; import { HttpRedirectsHead300OptionalParams, HttpRedirectsHead300Response, @@ -44,7 +44,7 @@ import { HttpRedirectsPost307Response, HttpRedirectsDelete307OptionalParams, HttpRedirectsDelete307Response, -} from "../models"; +} from "../models/index.js"; /** Class containing HttpRedirects operations. */ export class HttpRedirectsImpl implements HttpRedirects { diff --git a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpRetry.ts b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpRetry.ts index a83efb9d0a..3304effbc4 100644 --- a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpRetry.ts +++ b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpRetry.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { HttpRetry } from "../operationsInterfaces"; +import { HttpRetry } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { HttpInfrastructureClient } from "../httpInfrastructureClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { HttpInfrastructureClient } from "../httpInfrastructureClient.js"; import { HttpRetryHead408OptionalParams, HttpRetryPut500OptionalParams, @@ -22,7 +22,7 @@ import { HttpRetryDelete503OptionalParams, HttpRetryPut504OptionalParams, HttpRetryPatch504OptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing HttpRetry operations. */ export class HttpRetryImpl implements HttpRetry { diff --git a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpServerFailure.ts b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpServerFailure.ts index 17a0283221..8c9672f78d 100644 --- a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpServerFailure.ts +++ b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpServerFailure.ts @@ -6,17 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { HttpServerFailure } from "../operationsInterfaces"; +import { HttpServerFailure } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { HttpInfrastructureClient } from "../httpInfrastructureClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { HttpInfrastructureClient } from "../httpInfrastructureClient.js"; import { HttpServerFailureHead501OptionalParams, HttpServerFailureGet501OptionalParams, HttpServerFailurePost505OptionalParams, HttpServerFailureDelete505OptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing HttpServerFailure operations. */ export class HttpServerFailureImpl implements HttpServerFailure { diff --git a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpSuccess.ts b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpSuccess.ts index 03db296737..b5f8bf494e 100644 --- a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpSuccess.ts +++ b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/httpSuccess.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { HttpSuccess } from "../operationsInterfaces"; +import { HttpSuccess } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { HttpInfrastructureClient } from "../httpInfrastructureClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { HttpInfrastructureClient } from "../httpInfrastructureClient.js"; import { HttpSuccessHead200OptionalParams, HttpSuccessGet200OptionalParams, @@ -33,7 +33,7 @@ import { HttpSuccessPost204OptionalParams, HttpSuccessDelete204OptionalParams, HttpSuccessHead404OptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing HttpSuccess operations. */ export class HttpSuccessImpl implements HttpSuccess { diff --git a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/index.ts index 7ec5f41149..f111039f8e 100644 --- a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/index.ts @@ -6,10 +6,10 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./httpFailure"; -export * from "./httpSuccess"; -export * from "./httpRedirects"; -export * from "./httpClientFailure"; -export * from "./httpServerFailure"; -export * from "./httpRetry"; -export * from "./multipleResponses"; +export * from "./httpFailure.js"; +export * from "./httpSuccess.js"; +export * from "./httpRedirects.js"; +export * from "./httpClientFailure.js"; +export * from "./httpServerFailure.js"; +export * from "./httpRetry.js"; +export * from "./multipleResponses.js"; diff --git a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/multipleResponses.ts b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/multipleResponses.ts index 4b7d4a95a7..4f1ff051a1 100644 --- a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/multipleResponses.ts +++ b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operations/multipleResponses.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { MultipleResponses } from "../operationsInterfaces"; +import { MultipleResponses } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { HttpInfrastructureClient } from "../httpInfrastructureClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { HttpInfrastructureClient } from "../httpInfrastructureClient.js"; import { MultipleResponsesGet200Model204NoModelDefaultError200ValidOptionalParams, MultipleResponsesGet200Model204NoModelDefaultError200ValidResponse, @@ -67,7 +67,7 @@ import { MultipleResponsesGet200ModelA400InvalidResponse, MultipleResponsesGet200ModelA202ValidOptionalParams, MultipleResponsesGet200ModelA202ValidResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing MultipleResponses operations. */ export class MultipleResponsesImpl implements MultipleResponses { diff --git a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpClientFailure.ts b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpClientFailure.ts index 6e77bec406..a9a778fb29 100644 --- a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpClientFailure.ts +++ b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpClientFailure.ts @@ -33,7 +33,7 @@ import { HttpClientFailureGet416OptionalParams, HttpClientFailureDelete417OptionalParams, HttpClientFailureHead429OptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a HttpClientFailure. */ export interface HttpClientFailure { diff --git a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpFailure.ts b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpFailure.ts index 241b8b6188..467440ee43 100644 --- a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpFailure.ts +++ b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpFailure.ts @@ -13,7 +13,7 @@ import { HttpFailureGetNoModelErrorResponse, HttpFailureGetNoModelEmptyOptionalParams, HttpFailureGetNoModelEmptyResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a HttpFailure. */ export interface HttpFailure { diff --git a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpRedirects.ts b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpRedirects.ts index 70ca24d7e2..186e3c91ec 100644 --- a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpRedirects.ts +++ b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpRedirects.ts @@ -39,7 +39,7 @@ import { HttpRedirectsPost307Response, HttpRedirectsDelete307OptionalParams, HttpRedirectsDelete307Response, -} from "../models"; +} from "../models/index.js"; /** Interface representing a HttpRedirects. */ export interface HttpRedirects { diff --git a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpRetry.ts b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpRetry.ts index 1224e1666d..7fc5211571 100644 --- a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpRetry.ts +++ b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpRetry.ts @@ -17,7 +17,7 @@ import { HttpRetryDelete503OptionalParams, HttpRetryPut504OptionalParams, HttpRetryPatch504OptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a HttpRetry. */ export interface HttpRetry { diff --git a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpServerFailure.ts b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpServerFailure.ts index 86047ee274..b0fc78e1f7 100644 --- a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpServerFailure.ts +++ b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpServerFailure.ts @@ -11,7 +11,7 @@ import { HttpServerFailureGet501OptionalParams, HttpServerFailurePost505OptionalParams, HttpServerFailureDelete505OptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a HttpServerFailure. */ export interface HttpServerFailure { diff --git a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpSuccess.ts b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpSuccess.ts index c41585ed8b..59e3043032 100644 --- a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpSuccess.ts +++ b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/httpSuccess.ts @@ -28,7 +28,7 @@ import { HttpSuccessPost204OptionalParams, HttpSuccessDelete204OptionalParams, HttpSuccessHead404OptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a HttpSuccess. */ export interface HttpSuccess { diff --git a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/index.ts index 7ec5f41149..f111039f8e 100644 --- a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/index.ts @@ -6,10 +6,10 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./httpFailure"; -export * from "./httpSuccess"; -export * from "./httpRedirects"; -export * from "./httpClientFailure"; -export * from "./httpServerFailure"; -export * from "./httpRetry"; -export * from "./multipleResponses"; +export * from "./httpFailure.js"; +export * from "./httpSuccess.js"; +export * from "./httpRedirects.js"; +export * from "./httpClientFailure.js"; +export * from "./httpServerFailure.js"; +export * from "./httpRetry.js"; +export * from "./multipleResponses.js"; diff --git a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/multipleResponses.ts b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/multipleResponses.ts index edf816670b..7e5f68d5bd 100644 --- a/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/multipleResponses.ts +++ b/packages/autorest.typescript/test/integration/generated/httpInfrastructure/src/operationsInterfaces/multipleResponses.ts @@ -62,7 +62,7 @@ import { MultipleResponsesGet200ModelA400InvalidResponse, MultipleResponsesGet200ModelA202ValidOptionalParams, MultipleResponsesGet200ModelA202ValidResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a MultipleResponses. */ export interface MultipleResponses { diff --git a/packages/autorest.typescript/test/integration/generated/iotspaces/src/index.ts b/packages/autorest.typescript/test/integration/generated/iotspaces/src/index.ts index 32c8a83adc..4bc96cf4fc 100644 --- a/packages/autorest.typescript/test/integration/generated/iotspaces/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/iotspaces/src/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { IoTSpacesClient } from "./ioTSpacesClient"; +export * from "./models/index.js"; +export { IoTSpacesClient } from "./ioTSpacesClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/iotspaces/src/ioTSpacesClient.ts b/packages/autorest.typescript/test/integration/generated/iotspaces/src/ioTSpacesClient.ts index 09e0b46ff9..1d0dfb6f7e 100644 --- a/packages/autorest.typescript/test/integration/generated/iotspaces/src/ioTSpacesClient.ts +++ b/packages/autorest.typescript/test/integration/generated/iotspaces/src/ioTSpacesClient.ts @@ -8,7 +8,7 @@ import * as coreClient from "@azure/core-client"; import * as coreAuth from "@azure/core-auth"; -import { IoTSpacesClientOptionalParams } from "./models"; +import { IoTSpacesClientOptionalParams } from "./models/index.js"; export class IoTSpacesClient extends coreClient.ServiceClient { /** diff --git a/packages/autorest.typescript/test/integration/generated/licenseHeader/src/index.ts b/packages/autorest.typescript/test/integration/generated/licenseHeader/src/index.ts index 181cd20786..5d141479d4 100644 --- a/packages/autorest.typescript/test/integration/generated/licenseHeader/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/licenseHeader/src/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { LicenseHeaderClient } from "./licenseHeaderClient"; +export * from "./models/index.js"; +export { LicenseHeaderClient } from "./licenseHeaderClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/licenseHeader/src/licenseHeaderClient.ts b/packages/autorest.typescript/test/integration/generated/licenseHeader/src/licenseHeaderClient.ts index 8fb0ef99c2..02b70b3cdb 100644 --- a/packages/autorest.typescript/test/integration/generated/licenseHeader/src/licenseHeaderClient.ts +++ b/packages/autorest.typescript/test/integration/generated/licenseHeader/src/licenseHeaderClient.ts @@ -12,13 +12,13 @@ import { PipelineResponse, SendRequest, } from "@azure/core-rest-pipeline"; -import * as Parameters from "./models/parameters"; +import * as Parameters from "./models/parameters.js"; import { Enum0, LicenseHeaderClientOptionalParams, ApiV1ValueGetOptionalParams, ApiV1ValueGetResponse, -} from "./models"; +} from "./models/index.js"; export class LicenseHeaderClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/lro/src/index.ts b/packages/autorest.typescript/test/integration/generated/lro/src/index.ts index b90ec9ab9c..6b348c9eaa 100644 --- a/packages/autorest.typescript/test/integration/generated/lro/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/lro/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { LROClient } from "./lROClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { LROClient } from "./lROClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/lro/src/lROClient.ts b/packages/autorest.typescript/test/integration/generated/lro/src/lROClient.ts index 1a7d4c5173..1017562e1d 100644 --- a/packages/autorest.typescript/test/integration/generated/lro/src/lROClient.ts +++ b/packages/autorest.typescript/test/integration/generated/lro/src/lROClient.ts @@ -12,14 +12,14 @@ import { LRORetrysImpl, LrosaDsImpl, LROsCustomHeaderImpl, -} from "./operations"; +} from "./operations/index.js"; import { LROs, LRORetrys, LrosaDs, LROsCustomHeader, -} from "./operationsInterfaces"; -import { LROClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { LROClientOptionalParams } from "./models/index.js"; export class LROClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/lro/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/lro/src/models/parameters.ts index 256ab48850..a25ba48517 100644 --- a/packages/autorest.typescript/test/integration/generated/lro/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/lro/src/models/parameters.ts @@ -11,7 +11,7 @@ import { Product as ProductMapper, Sku as SkuMapper, SubProduct as SubProductMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const contentType: OperationParameter = { parameterPath: ["options", "contentType"], diff --git a/packages/autorest.typescript/test/integration/generated/lro/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/lro/src/operations/index.ts index b64d6b55e4..033223fe0f 100644 --- a/packages/autorest.typescript/test/integration/generated/lro/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/lro/src/operations/index.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./lROs"; -export * from "./lRORetrys"; -export * from "./lrosaDs"; -export * from "./lROsCustomHeader"; +export * from "./lROs.js"; +export * from "./lRORetrys.js"; +export * from "./lrosaDs.js"; +export * from "./lROsCustomHeader.js"; diff --git a/packages/autorest.typescript/test/integration/generated/lro/src/operations/lRORetrys.ts b/packages/autorest.typescript/test/integration/generated/lro/src/operations/lRORetrys.ts index 0883ace817..a69dc7df76 100644 --- a/packages/autorest.typescript/test/integration/generated/lro/src/operations/lRORetrys.ts +++ b/packages/autorest.typescript/test/integration/generated/lro/src/operations/lRORetrys.ts @@ -7,17 +7,17 @@ */ import { tracingClient } from "../tracing"; -import { LRORetrys } from "../operationsInterfaces"; +import { LRORetrys } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { LROClient } from "../lROClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { LROClient } from "../lROClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { LRORetrysPut201CreatingSucceeded200OptionalParams, LRORetrysPut201CreatingSucceeded200Response, @@ -33,7 +33,7 @@ import { LRORetrysPost202Retry200Response, LRORetrysPostAsyncRelativeRetrySucceededOptionalParams, LRORetrysPostAsyncRelativeRetrySucceededResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing LRORetrys operations. */ export class LRORetrysImpl implements LRORetrys { diff --git a/packages/autorest.typescript/test/integration/generated/lro/src/operations/lROs.ts b/packages/autorest.typescript/test/integration/generated/lro/src/operations/lROs.ts index ac8f61d827..b1ed60b172 100644 --- a/packages/autorest.typescript/test/integration/generated/lro/src/operations/lROs.ts +++ b/packages/autorest.typescript/test/integration/generated/lro/src/operations/lROs.ts @@ -7,17 +7,17 @@ */ import { tracingClient } from "../tracing"; -import { LROs } from "../operationsInterfaces"; +import { LROs } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { LROClient } from "../lROClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { LROClient } from "../lROClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { LROsPut200SucceededOptionalParams, LROsPut200SucceededResponse, @@ -106,7 +106,7 @@ import { LROsPostAsyncRetryFailedResponse, LROsPostAsyncRetrycanceledOptionalParams, LROsPostAsyncRetrycanceledResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing LROs operations. */ export class LROsImpl implements LROs { diff --git a/packages/autorest.typescript/test/integration/generated/lro/src/operations/lROsCustomHeader.ts b/packages/autorest.typescript/test/integration/generated/lro/src/operations/lROsCustomHeader.ts index 86d5188531..d251f2f2ef 100644 --- a/packages/autorest.typescript/test/integration/generated/lro/src/operations/lROsCustomHeader.ts +++ b/packages/autorest.typescript/test/integration/generated/lro/src/operations/lROsCustomHeader.ts @@ -7,17 +7,17 @@ */ import { tracingClient } from "../tracing"; -import { LROsCustomHeader } from "../operationsInterfaces"; +import { LROsCustomHeader } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { LROClient } from "../lROClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { LROClient } from "../lROClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { LROsCustomHeaderPutAsyncRetrySucceededOptionalParams, LROsCustomHeaderPutAsyncRetrySucceededResponse, @@ -27,7 +27,7 @@ import { LROsCustomHeaderPost202Retry200Response, LROsCustomHeaderPostAsyncRetrySucceededOptionalParams, LROsCustomHeaderPostAsyncRetrySucceededResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing LROsCustomHeader operations. */ export class LROsCustomHeaderImpl implements LROsCustomHeader { diff --git a/packages/autorest.typescript/test/integration/generated/lro/src/operations/lrosaDs.ts b/packages/autorest.typescript/test/integration/generated/lro/src/operations/lrosaDs.ts index 3c795f8924..f47b941bf2 100644 --- a/packages/autorest.typescript/test/integration/generated/lro/src/operations/lrosaDs.ts +++ b/packages/autorest.typescript/test/integration/generated/lro/src/operations/lrosaDs.ts @@ -7,17 +7,17 @@ */ import { tracingClient } from "../tracing"; -import { LrosaDs } from "../operationsInterfaces"; +import { LrosaDs } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { LROClient } from "../lROClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { LROClient } from "../lROClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { LrosaDsPutNonRetry400OptionalParams, LrosaDsPutNonRetry400Response, @@ -70,7 +70,7 @@ import { LrosaDsPostAsyncRelativeRetryInvalidHeaderResponse, LrosaDsPostAsyncRelativeRetryInvalidJsonPollingOptionalParams, LrosaDsPostAsyncRelativeRetryInvalidJsonPollingResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing LrosaDs operations. */ export class LrosaDsImpl implements LrosaDs { diff --git a/packages/autorest.typescript/test/integration/generated/lro/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/lro/src/operationsInterfaces/index.ts index b64d6b55e4..033223fe0f 100644 --- a/packages/autorest.typescript/test/integration/generated/lro/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/lro/src/operationsInterfaces/index.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./lROs"; -export * from "./lRORetrys"; -export * from "./lrosaDs"; -export * from "./lROsCustomHeader"; +export * from "./lROs.js"; +export * from "./lRORetrys.js"; +export * from "./lrosaDs.js"; +export * from "./lROsCustomHeader.js"; diff --git a/packages/autorest.typescript/test/integration/generated/lro/src/operationsInterfaces/lRORetrys.ts b/packages/autorest.typescript/test/integration/generated/lro/src/operationsInterfaces/lRORetrys.ts index 863ef21397..2862a0a21c 100644 --- a/packages/autorest.typescript/test/integration/generated/lro/src/operationsInterfaces/lRORetrys.ts +++ b/packages/autorest.typescript/test/integration/generated/lro/src/operationsInterfaces/lRORetrys.ts @@ -22,7 +22,7 @@ import { LRORetrysPost202Retry200Response, LRORetrysPostAsyncRelativeRetrySucceededOptionalParams, LRORetrysPostAsyncRelativeRetrySucceededResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a LRORetrys. */ export interface LRORetrys { diff --git a/packages/autorest.typescript/test/integration/generated/lro/src/operationsInterfaces/lROs.ts b/packages/autorest.typescript/test/integration/generated/lro/src/operationsInterfaces/lROs.ts index 494f1e4609..5a1a7483a4 100644 --- a/packages/autorest.typescript/test/integration/generated/lro/src/operationsInterfaces/lROs.ts +++ b/packages/autorest.typescript/test/integration/generated/lro/src/operationsInterfaces/lROs.ts @@ -95,7 +95,7 @@ import { LROsPostAsyncRetryFailedResponse, LROsPostAsyncRetrycanceledOptionalParams, LROsPostAsyncRetrycanceledResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a LROs. */ export interface LROs { diff --git a/packages/autorest.typescript/test/integration/generated/lro/src/operationsInterfaces/lROsCustomHeader.ts b/packages/autorest.typescript/test/integration/generated/lro/src/operationsInterfaces/lROsCustomHeader.ts index 3dd6f93c16..810d19dbcd 100644 --- a/packages/autorest.typescript/test/integration/generated/lro/src/operationsInterfaces/lROsCustomHeader.ts +++ b/packages/autorest.typescript/test/integration/generated/lro/src/operationsInterfaces/lROsCustomHeader.ts @@ -16,7 +16,7 @@ import { LROsCustomHeaderPost202Retry200Response, LROsCustomHeaderPostAsyncRetrySucceededOptionalParams, LROsCustomHeaderPostAsyncRetrySucceededResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a LROsCustomHeader. */ export interface LROsCustomHeader { diff --git a/packages/autorest.typescript/test/integration/generated/lro/src/operationsInterfaces/lrosaDs.ts b/packages/autorest.typescript/test/integration/generated/lro/src/operationsInterfaces/lrosaDs.ts index 8873b564cf..9d5093a768 100644 --- a/packages/autorest.typescript/test/integration/generated/lro/src/operationsInterfaces/lrosaDs.ts +++ b/packages/autorest.typescript/test/integration/generated/lro/src/operationsInterfaces/lrosaDs.ts @@ -59,7 +59,7 @@ import { LrosaDsPostAsyncRelativeRetryInvalidHeaderResponse, LrosaDsPostAsyncRelativeRetryInvalidJsonPollingOptionalParams, LrosaDsPostAsyncRelativeRetryInvalidJsonPollingResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a LrosaDs. */ export interface LrosaDs { diff --git a/packages/autorest.typescript/test/integration/generated/lroParametrizedEndpoints/src/index.ts b/packages/autorest.typescript/test/integration/generated/lroParametrizedEndpoints/src/index.ts index 8d88f7023f..3ad8ad4251 100644 --- a/packages/autorest.typescript/test/integration/generated/lroParametrizedEndpoints/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/lroParametrizedEndpoints/src/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { LroParametrizedEndpointsClient } from "./lroParametrizedEndpointsClient"; +export * from "./models/index.js"; +export { LroParametrizedEndpointsClient } from "./lroParametrizedEndpointsClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/lroParametrizedEndpoints/src/lroParametrizedEndpointsClient.ts b/packages/autorest.typescript/test/integration/generated/lroParametrizedEndpoints/src/lroParametrizedEndpointsClient.ts index 25d98f5073..398ed6e93d 100644 --- a/packages/autorest.typescript/test/integration/generated/lroParametrizedEndpoints/src/lroParametrizedEndpointsClient.ts +++ b/packages/autorest.typescript/test/integration/generated/lroParametrizedEndpoints/src/lroParametrizedEndpointsClient.ts @@ -12,16 +12,16 @@ import { OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "./lroImpl"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; +import { createLroSpec } from "./lroImpl.js"; +import * as Parameters from "./models/parameters.js"; +import * as Mappers from "./models/mappers.js"; import { LroParametrizedEndpointsClientOptionalParams, PollWithParameterizedEndpointsOptionalParams, PollWithParameterizedEndpointsResponse, PollWithConstantParameterizedEndpointsOptionalParams, PollWithConstantParameterizedEndpointsResponse, -} from "./models"; +} from "./models/index.js"; export class LroParametrizedEndpointsClient extends coreClient.ServiceClient { host: string; diff --git a/packages/autorest.typescript/test/integration/generated/mapperrequired/src/index.ts b/packages/autorest.typescript/test/integration/generated/mapperrequired/src/index.ts index 49ec4e4a76..ce267c469b 100644 --- a/packages/autorest.typescript/test/integration/generated/mapperrequired/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/mapperrequired/src/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { MapperRequiredClient } from "./mapperRequiredClient"; +export * from "./models/index.js"; +export { MapperRequiredClient } from "./mapperRequiredClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/mapperrequired/src/mapperRequiredClient.ts b/packages/autorest.typescript/test/integration/generated/mapperrequired/src/mapperRequiredClient.ts index 5b580e9793..41b06b3b5f 100644 --- a/packages/autorest.typescript/test/integration/generated/mapperrequired/src/mapperRequiredClient.ts +++ b/packages/autorest.typescript/test/integration/generated/mapperrequired/src/mapperRequiredClient.ts @@ -7,13 +7,13 @@ */ import * as coreClient from "@azure/core-client"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; +import * as Parameters from "./models/parameters.js"; +import * as Mappers from "./models/mappers.js"; import { MapperRequiredClientOptionalParams, UpdateCertificateIssuerOptionalParams, UpdateCertificateIssuerResponse, -} from "./models"; +} from "./models/index.js"; export class MapperRequiredClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/mapperrequired/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/mapperrequired/src/models/parameters.ts index 709ec50b8a..d46591e75d 100644 --- a/packages/autorest.typescript/test/integration/generated/mapperrequired/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/mapperrequired/src/models/parameters.ts @@ -7,7 +7,7 @@ */ import { OperationParameter, OperationURLParameter } from "@azure/core-client"; -import { CertificateIssuerUpdateParameters as CertificateIssuerUpdateParametersMapper } from "../models/mappers"; +import { CertificateIssuerUpdateParameters as CertificateIssuerUpdateParametersMapper } from "../models/mappers.js"; export const contentType: OperationParameter = { parameterPath: ["options", "contentType"], diff --git a/packages/autorest.typescript/test/integration/generated/mediaTypes/src/index.ts b/packages/autorest.typescript/test/integration/generated/mediaTypes/src/index.ts index 6e27ba5431..185c7f2e8f 100644 --- a/packages/autorest.typescript/test/integration/generated/mediaTypes/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/mediaTypes/src/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { MediaTypesClient } from "./mediaTypesClient"; +export * from "./models/index.js"; +export { MediaTypesClient } from "./mediaTypesClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/mediaTypes/src/mediaTypesClient.ts b/packages/autorest.typescript/test/integration/generated/mediaTypes/src/mediaTypesClient.ts index df239c5c1e..c9e306b415 100644 --- a/packages/autorest.typescript/test/integration/generated/mediaTypes/src/mediaTypesClient.ts +++ b/packages/autorest.typescript/test/integration/generated/mediaTypes/src/mediaTypesClient.ts @@ -8,8 +8,8 @@ import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; +import * as Parameters from "./models/parameters.js"; +import * as Mappers from "./models/mappers.js"; import { MediaTypesClientOptionalParams, ContentType, @@ -33,7 +33,7 @@ import { PutTextAndJsonBody$textOptionalParams, PutTextAndJsonBody$jsonOptionalParams, PutTextAndJsonBodyResponse, -} from "./models"; +} from "./models/index.js"; export class MediaTypesClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/mediaTypes/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/mediaTypes/src/models/parameters.ts index e255fcbbf7..eb8536f790 100644 --- a/packages/autorest.typescript/test/integration/generated/mediaTypes/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/mediaTypes/src/models/parameters.ts @@ -7,7 +7,7 @@ */ import { OperationParameter, OperationURLParameter } from "@azure/core-client"; -import { SourcePath as SourcePathMapper } from "../models/mappers"; +import { SourcePath as SourcePathMapper } from "../models/mappers.js"; export const contentType: OperationParameter = { parameterPath: "contentType", diff --git a/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/index.ts b/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/index.ts index d93916e81f..53d0635a67 100644 --- a/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { MediaTypesV3Client } from "./mediaTypesV3Client"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { MediaTypesV3Client } from "./mediaTypesV3Client.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/mediaTypesV3Client.ts b/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/mediaTypesV3Client.ts index 9be316f0a0..a216f1c3ce 100644 --- a/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/mediaTypesV3Client.ts +++ b/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/mediaTypesV3Client.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { BarApiImpl, FooApiImpl } from "./operations"; -import { BarApi, FooApi } from "./operationsInterfaces"; -import { MediaTypesV3ClientOptionalParams } from "./models"; +import { BarApiImpl, FooApiImpl } from "./operations/index.js"; +import { BarApi, FooApi } from "./operationsInterfaces/index.js"; +import { MediaTypesV3ClientOptionalParams } from "./models/index.js"; export class MediaTypesV3Client extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operations/barApi.ts b/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operations/barApi.ts index ce9a188a9f..b7d5845966 100644 --- a/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operations/barApi.ts +++ b/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operations/barApi.ts @@ -6,14 +6,14 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { BarApi } from "../operationsInterfaces"; +import { BarApi } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Parameters from "../models/parameters"; -import { MediaTypesV3Client } from "../mediaTypesV3Client"; +import * as Parameters from "../models/parameters.js"; +import { MediaTypesV3Client } from "../mediaTypesV3Client.js"; import { BarApiPostSendOnDefaultOptionalParams, BarApiPostSendOnDefaultResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing BarApi operations. */ export class BarApiImpl implements BarApi { diff --git a/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operations/fooApi.ts b/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operations/fooApi.ts index 6a5dfd6777..b020ee625d 100644 --- a/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operations/fooApi.ts +++ b/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operations/fooApi.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { FooApi } from "../operationsInterfaces"; +import { FooApi } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; -import * as Parameters from "../models/parameters"; -import { MediaTypesV3Client } from "../mediaTypesV3Client"; +import * as Parameters from "../models/parameters.js"; +import { MediaTypesV3Client } from "../mediaTypesV3Client.js"; import { FooApiPostSendOnDefault$binaryOptionalParams, FooApiPostSendOnDefault$textOptionalParams, @@ -18,7 +18,7 @@ import { FooApiPostSend$binaryOptionalParams, FooApiPostSend$textOptionalParams, FooApiPostSendResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing FooApi operations. */ export class FooApiImpl implements FooApi { diff --git a/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operations/index.ts index 91e695df7e..0626dba2bd 100644 --- a/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operations/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./barApi"; -export * from "./fooApi"; +export * from "./barApi.js"; +export * from "./fooApi.js"; diff --git a/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operationsInterfaces/barApi.ts b/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operationsInterfaces/barApi.ts index 43dfc69017..278965f931 100644 --- a/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operationsInterfaces/barApi.ts +++ b/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operationsInterfaces/barApi.ts @@ -9,7 +9,7 @@ import { BarApiPostSendOnDefaultOptionalParams, BarApiPostSendOnDefaultResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a BarApi. */ export interface BarApi { diff --git a/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operationsInterfaces/fooApi.ts b/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operationsInterfaces/fooApi.ts index 4de972d507..7968539206 100644 --- a/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operationsInterfaces/fooApi.ts +++ b/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operationsInterfaces/fooApi.ts @@ -14,7 +14,7 @@ import { FooApiPostSend$binaryOptionalParams, FooApiPostSend$textOptionalParams, FooApiPostSendResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a FooApi. */ export interface FooApi { diff --git a/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operationsInterfaces/index.ts index 91e695df7e..0626dba2bd 100644 --- a/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/mediaTypesV3/src/operationsInterfaces/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./barApi"; -export * from "./fooApi"; +export * from "./barApi.js"; +export * from "./fooApi.js"; diff --git a/packages/autorest.typescript/test/integration/generated/mediaTypesV3Lro/src/index.ts b/packages/autorest.typescript/test/integration/generated/mediaTypesV3Lro/src/index.ts index 16606678d0..a11c45f66e 100644 --- a/packages/autorest.typescript/test/integration/generated/mediaTypesV3Lro/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/mediaTypesV3Lro/src/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { MediaTypesV3LROClient } from "./mediaTypesV3LROClient"; +export * from "./models/index.js"; +export { MediaTypesV3LROClient } from "./mediaTypesV3LROClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/mediaTypesV3Lro/src/mediaTypesV3LROClient.ts b/packages/autorest.typescript/test/integration/generated/mediaTypesV3Lro/src/mediaTypesV3LROClient.ts index e38d204170..888314fe61 100644 --- a/packages/autorest.typescript/test/integration/generated/mediaTypesV3Lro/src/mediaTypesV3LROClient.ts +++ b/packages/autorest.typescript/test/integration/generated/mediaTypesV3Lro/src/mediaTypesV3LROClient.ts @@ -13,8 +13,8 @@ import { OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "./lroImpl"; -import * as Parameters from "./models/parameters"; +import { createLroSpec } from "./lroImpl.js"; +import * as Parameters from "./models/parameters.js"; import { MediaTypesV3LROClientOptionalParams, SendOnDefault$binaryOptionalParams, @@ -22,7 +22,7 @@ import { Send$binaryOptionalParams, Send$textOptionalParams, SendResponse, -} from "./models"; +} from "./models/index.js"; export class MediaTypesV3LROClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/mediaTypesWithTracing/src/index.ts b/packages/autorest.typescript/test/integration/generated/mediaTypesWithTracing/src/index.ts index dca21c93a8..1e9941522c 100644 --- a/packages/autorest.typescript/test/integration/generated/mediaTypesWithTracing/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/mediaTypesWithTracing/src/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { MediaTypesWithTracingClient } from "./mediaTypesWithTracingClient"; +export * from "./models/index.js"; +export { MediaTypesWithTracingClient } from "./mediaTypesWithTracingClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/mediaTypesWithTracing/src/mediaTypesWithTracingClient.ts b/packages/autorest.typescript/test/integration/generated/mediaTypesWithTracing/src/mediaTypesWithTracingClient.ts index 5fff7952e8..4a4fbab348 100644 --- a/packages/autorest.typescript/test/integration/generated/mediaTypesWithTracing/src/mediaTypesWithTracingClient.ts +++ b/packages/autorest.typescript/test/integration/generated/mediaTypesWithTracing/src/mediaTypesWithTracingClient.ts @@ -9,8 +9,8 @@ import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { tracingClient } from "./tracing"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; +import * as Parameters from "./models/parameters.js"; +import * as Mappers from "./models/mappers.js"; import { MediaTypesWithTracingClientOptionalParams, ContentType, @@ -34,7 +34,7 @@ import { PutTextAndJsonBody$textOptionalParams, PutTextAndJsonBody$jsonOptionalParams, PutTextAndJsonBodyResponse, -} from "./models"; +} from "./models/index.js"; export class MediaTypesWithTracingClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/mediaTypesWithTracing/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/mediaTypesWithTracing/src/models/parameters.ts index e255fcbbf7..eb8536f790 100644 --- a/packages/autorest.typescript/test/integration/generated/mediaTypesWithTracing/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/mediaTypesWithTracing/src/models/parameters.ts @@ -7,7 +7,7 @@ */ import { OperationParameter, OperationURLParameter } from "@azure/core-client"; -import { SourcePath as SourcePathMapper } from "../models/mappers"; +import { SourcePath as SourcePathMapper } from "../models/mappers.js"; export const contentType: OperationParameter = { parameterPath: "contentType", diff --git a/packages/autorest.typescript/test/integration/generated/modelFlattening/src/index.ts b/packages/autorest.typescript/test/integration/generated/modelFlattening/src/index.ts index edadd18e75..91166d19cd 100644 --- a/packages/autorest.typescript/test/integration/generated/modelFlattening/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/modelFlattening/src/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { ModelFlatteningClient } from "./modelFlatteningClient"; +export * from "./models/index.js"; +export { ModelFlatteningClient } from "./modelFlatteningClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/modelFlattening/src/modelFlatteningClient.ts b/packages/autorest.typescript/test/integration/generated/modelFlattening/src/modelFlatteningClient.ts index b88549f955..9f3f4cf9c0 100644 --- a/packages/autorest.typescript/test/integration/generated/modelFlattening/src/modelFlatteningClient.ts +++ b/packages/autorest.typescript/test/integration/generated/modelFlattening/src/modelFlatteningClient.ts @@ -7,8 +7,8 @@ */ import * as coreClient from "@azure/core-client"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; +import * as Parameters from "./models/parameters.js"; +import * as Mappers from "./models/mappers.js"; import { ModelFlatteningClientOptionalParams, PutArrayOptionalParams, @@ -30,7 +30,7 @@ import { FlattenParameterGroup, PutSimpleProductWithGroupingOptionalParams, PutSimpleProductWithGroupingResponse, -} from "./models"; +} from "./models/index.js"; export class ModelFlatteningClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/modelFlattening/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/modelFlattening/src/models/parameters.ts index 0ce4c7d677..341adf6014 100644 --- a/packages/autorest.typescript/test/integration/generated/modelFlattening/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/modelFlattening/src/models/parameters.ts @@ -10,7 +10,7 @@ import { OperationParameter, OperationURLParameter } from "@azure/core-client"; import { ResourceCollection as ResourceCollectionMapper, SimpleProduct as SimpleProductMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const contentType: OperationParameter = { parameterPath: ["options", "contentType"], diff --git a/packages/autorest.typescript/test/integration/generated/multipleInheritance/src/index.ts b/packages/autorest.typescript/test/integration/generated/multipleInheritance/src/index.ts index d25e612f20..fcd360e090 100644 --- a/packages/autorest.typescript/test/integration/generated/multipleInheritance/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/multipleInheritance/src/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { MultipleInheritanceClient } from "./multipleInheritanceClient"; +export * from "./models/index.js"; +export { MultipleInheritanceClient } from "./multipleInheritanceClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/multipleInheritance/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/multipleInheritance/src/models/parameters.ts index 33b6e45417..d9ad847a4d 100644 --- a/packages/autorest.typescript/test/integration/generated/multipleInheritance/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/multipleInheritance/src/models/parameters.ts @@ -13,7 +13,7 @@ import { Feline as FelineMapper, Cat as CatMapper, Kitten as KittenMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/packages/autorest.typescript/test/integration/generated/multipleInheritance/src/multipleInheritanceClient.ts b/packages/autorest.typescript/test/integration/generated/multipleInheritance/src/multipleInheritanceClient.ts index e545e4f6a5..bb0afc94f8 100644 --- a/packages/autorest.typescript/test/integration/generated/multipleInheritance/src/multipleInheritanceClient.ts +++ b/packages/autorest.typescript/test/integration/generated/multipleInheritance/src/multipleInheritanceClient.ts @@ -7,8 +7,8 @@ */ import * as coreClient from "@azure/core-client"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; +import * as Parameters from "./models/parameters.js"; +import * as Mappers from "./models/mappers.js"; import { MultipleInheritanceClientOptionalParams, GetHorseOptionalParams, @@ -36,7 +36,7 @@ import { Kitten, PutKittenOptionalParams, PutKittenResponse, -} from "./models"; +} from "./models/index.js"; export class MultipleInheritanceClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/nameChecker/src/index.ts b/packages/autorest.typescript/test/integration/generated/nameChecker/src/index.ts index 82a0344909..a101bc3016 100644 --- a/packages/autorest.typescript/test/integration/generated/nameChecker/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/nameChecker/src/index.ts @@ -1,3 +1,3 @@ -export * from "./models"; -export { SearchClient } from "./searchClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { SearchClient } from "./searchClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/nameChecker/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/nameChecker/src/models/parameters.ts index 709bc4e957..2087907cc0 100644 --- a/packages/autorest.typescript/test/integration/generated/nameChecker/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/nameChecker/src/models/parameters.ts @@ -8,7 +8,7 @@ import { SuggestRequest as SuggestRequestMapper, IndexBatch as IndexBatchMapper, AutocompleteRequest as AutocompleteRequestMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/packages/autorest.typescript/test/integration/generated/nameChecker/src/operations/documents.ts b/packages/autorest.typescript/test/integration/generated/nameChecker/src/operations/documents.ts index e9689f50a0..c8dc072f8f 100644 --- a/packages/autorest.typescript/test/integration/generated/nameChecker/src/operations/documents.ts +++ b/packages/autorest.typescript/test/integration/generated/nameChecker/src/operations/documents.ts @@ -1,8 +1,8 @@ -import { Documents } from "../operationsInterfaces"; +import { Documents } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SearchClient } from "../searchClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { SearchClient } from "../searchClient.js"; import { DocumentsCountOptionalParams, DocumentsCountResponse, @@ -26,7 +26,7 @@ import { AutocompleteRequest, DocumentsAutocompletePostOptionalParams, DocumentsAutocompletePostResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Documents operations. */ export class DocumentsImpl implements Documents { diff --git a/packages/autorest.typescript/test/integration/generated/nameChecker/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/nameChecker/src/operations/index.ts index afd2285a7e..9a87462b4e 100644 --- a/packages/autorest.typescript/test/integration/generated/nameChecker/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/nameChecker/src/operations/index.ts @@ -1 +1 @@ -export * from "./documents"; +export * from "./documents.js"; diff --git a/packages/autorest.typescript/test/integration/generated/nameChecker/src/operationsInterfaces/documents.ts b/packages/autorest.typescript/test/integration/generated/nameChecker/src/operationsInterfaces/documents.ts index cb96fd4639..f9ff4ad9b6 100644 --- a/packages/autorest.typescript/test/integration/generated/nameChecker/src/operationsInterfaces/documents.ts +++ b/packages/autorest.typescript/test/integration/generated/nameChecker/src/operationsInterfaces/documents.ts @@ -21,7 +21,7 @@ import { AutocompleteRequest, DocumentsAutocompletePostOptionalParams, DocumentsAutocompletePostResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Documents. */ export interface Documents { diff --git a/packages/autorest.typescript/test/integration/generated/nameChecker/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/nameChecker/src/operationsInterfaces/index.ts index afd2285a7e..9a87462b4e 100644 --- a/packages/autorest.typescript/test/integration/generated/nameChecker/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/nameChecker/src/operationsInterfaces/index.ts @@ -1 +1 @@ -export * from "./documents"; +export * from "./documents.js"; diff --git a/packages/autorest.typescript/test/integration/generated/nameChecker/src/searchClient.ts b/packages/autorest.typescript/test/integration/generated/nameChecker/src/searchClient.ts index eb8e8db827..b3e03e4347 100644 --- a/packages/autorest.typescript/test/integration/generated/nameChecker/src/searchClient.ts +++ b/packages/autorest.typescript/test/integration/generated/nameChecker/src/searchClient.ts @@ -4,9 +4,9 @@ import { PipelineResponse, SendRequest, } from "@azure/core-rest-pipeline"; -import { DocumentsImpl } from "./operations"; -import { Documents } from "./operationsInterfaces"; -import { SearchClientOptionalParams } from "./models"; +import { DocumentsImpl } from "./operations/index.js"; +import { Documents } from "./operationsInterfaces/index.js"; +import { SearchClientOptionalParams } from "./models/index.js"; export class SearchClient extends coreClient.ServiceClient { endpoint: string; diff --git a/packages/autorest.typescript/test/integration/generated/noLicenseHeader/src/index.ts b/packages/autorest.typescript/test/integration/generated/noLicenseHeader/src/index.ts index 41f25081f6..a963774dec 100644 --- a/packages/autorest.typescript/test/integration/generated/noLicenseHeader/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/noLicenseHeader/src/index.ts @@ -1,2 +1,2 @@ -export * from "./models"; -export { NoLicenseHeaderClient } from "./noLicenseHeaderClient"; +export * from "./models/index.js"; +export { NoLicenseHeaderClient } from "./noLicenseHeaderClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/noLicenseHeader/src/noLicenseHeaderClient.ts b/packages/autorest.typescript/test/integration/generated/noLicenseHeader/src/noLicenseHeaderClient.ts index 9c24cdb7e5..828b6dda50 100644 --- a/packages/autorest.typescript/test/integration/generated/noLicenseHeader/src/noLicenseHeaderClient.ts +++ b/packages/autorest.typescript/test/integration/generated/noLicenseHeader/src/noLicenseHeaderClient.ts @@ -4,13 +4,13 @@ import { PipelineResponse, SendRequest, } from "@azure/core-rest-pipeline"; -import * as Parameters from "./models/parameters"; +import * as Parameters from "./models/parameters.js"; import { Enum0, NoLicenseHeaderClientOptionalParams, ApiV1ValueGetOptionalParams, ApiV1ValueGetResponse, -} from "./models"; +} from "./models/index.js"; export class NoLicenseHeaderClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/noMappers/src/index.ts b/packages/autorest.typescript/test/integration/generated/noMappers/src/index.ts index 64fa69b4e7..507c00a335 100644 --- a/packages/autorest.typescript/test/integration/generated/noMappers/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/noMappers/src/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { NoMappersClient } from "./noMappersClient"; +export * from "./models/index.js"; +export { NoMappersClient } from "./noMappersClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/noMappers/src/noMappersClient.ts b/packages/autorest.typescript/test/integration/generated/noMappers/src/noMappersClient.ts index a3e3059f86..8006ed3b2a 100644 --- a/packages/autorest.typescript/test/integration/generated/noMappers/src/noMappersClient.ts +++ b/packages/autorest.typescript/test/integration/generated/noMappers/src/noMappersClient.ts @@ -12,13 +12,13 @@ import { PipelineResponse, SendRequest, } from "@azure/core-rest-pipeline"; -import * as Parameters from "./models/parameters"; +import * as Parameters from "./models/parameters.js"; import { Enum0, NoMappersClientOptionalParams, ApiV1ValueGetOptionalParams, ApiV1ValueGetResponse, -} from "./models"; +} from "./models/index.js"; export class NoMappersClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/noOperation/src/index.ts b/packages/autorest.typescript/test/integration/generated/noOperation/src/index.ts index f715c2b19d..4995f7a69e 100644 --- a/packages/autorest.typescript/test/integration/generated/noOperation/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/noOperation/src/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { NoOperationsClient } from "./noOperationsClient"; +export * from "./models/index.js"; +export { NoOperationsClient } from "./noOperationsClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/noOperation/src/noOperationsClient.ts b/packages/autorest.typescript/test/integration/generated/noOperation/src/noOperationsClient.ts index 68d0c9d512..c5e97289d0 100644 --- a/packages/autorest.typescript/test/integration/generated/noOperation/src/noOperationsClient.ts +++ b/packages/autorest.typescript/test/integration/generated/noOperation/src/noOperationsClient.ts @@ -7,7 +7,7 @@ */ import * as coreClient from "@azure/core-client"; -import { NoOperationsClientOptionalParams } from "./models"; +import { NoOperationsClientOptionalParams } from "./models/index.js"; export class NoOperationsClient extends coreClient.ServiceClient { /** diff --git a/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/index.ts b/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/index.ts index 99af2fcec0..8c3af45e89 100644 --- a/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { NonStringEnumClient } from "./nonStringEnumClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { NonStringEnumClient } from "./nonStringEnumClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/nonStringEnumClient.ts b/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/nonStringEnumClient.ts index 11b57bd92f..6dc863d2c1 100644 --- a/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/nonStringEnumClient.ts +++ b/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/nonStringEnumClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { IntImpl, FloatImpl } from "./operations"; -import { Int, Float } from "./operationsInterfaces"; -import { NonStringEnumClientOptionalParams } from "./models"; +import { IntImpl, FloatImpl } from "./operations/index.js"; +import { Int, Float } from "./operationsInterfaces/index.js"; +import { NonStringEnumClientOptionalParams } from "./models/index.js"; export class NonStringEnumClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operations/float.ts b/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operations/float.ts index 6745e23e7a..88c78ea72f 100644 --- a/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operations/float.ts +++ b/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operations/float.ts @@ -6,16 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Float } from "../operationsInterfaces"; +import { Float } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Parameters from "../models/parameters"; -import { NonStringEnumClient } from "../nonStringEnumClient"; +import * as Parameters from "../models/parameters.js"; +import { NonStringEnumClient } from "../nonStringEnumClient.js"; import { FloatPutOptionalParams, FloatPutResponse, FloatGetOptionalParams, FloatGetResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Float operations. */ export class FloatImpl implements Float { diff --git a/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operations/index.ts index adf0a38148..46218d4c41 100644 --- a/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operations/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./int"; -export * from "./float"; +export * from "./int.js"; +export * from "./float.js"; diff --git a/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operations/int.ts b/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operations/int.ts index 0db308f8eb..15d4c62f50 100644 --- a/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operations/int.ts +++ b/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operations/int.ts @@ -6,16 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Int } from "../operationsInterfaces"; +import { Int } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Parameters from "../models/parameters"; -import { NonStringEnumClient } from "../nonStringEnumClient"; +import * as Parameters from "../models/parameters.js"; +import { NonStringEnumClient } from "../nonStringEnumClient.js"; import { IntPutOptionalParams, IntPutResponse, IntGetOptionalParams, IntGetResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Int operations. */ export class IntImpl implements Int { diff --git a/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operationsInterfaces/float.ts b/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operationsInterfaces/float.ts index 1611affa14..79adfb0172 100644 --- a/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operationsInterfaces/float.ts +++ b/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operationsInterfaces/float.ts @@ -11,7 +11,7 @@ import { FloatPutResponse, FloatGetOptionalParams, FloatGetResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Float. */ export interface Float { diff --git a/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operationsInterfaces/index.ts index adf0a38148..46218d4c41 100644 --- a/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operationsInterfaces/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./int"; -export * from "./float"; +export * from "./int.js"; +export * from "./float.js"; diff --git a/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operationsInterfaces/int.ts b/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operationsInterfaces/int.ts index f4bc8bf918..dd891b4041 100644 --- a/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operationsInterfaces/int.ts +++ b/packages/autorest.typescript/test/integration/generated/nonStringEnum/src/operationsInterfaces/int.ts @@ -11,7 +11,7 @@ import { IntPutResponse, IntGetOptionalParams, IntGetResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Int. */ export interface Int { diff --git a/packages/autorest.typescript/test/integration/generated/objectType/src/index.ts b/packages/autorest.typescript/test/integration/generated/objectType/src/index.ts index c605d1084b..f923ccd940 100644 --- a/packages/autorest.typescript/test/integration/generated/objectType/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/objectType/src/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { ObjectTypeClient } from "./objectTypeClient"; +export * from "./models/index.js"; +export { ObjectTypeClient } from "./objectTypeClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/objectType/src/objectTypeClient.ts b/packages/autorest.typescript/test/integration/generated/objectType/src/objectTypeClient.ts index b23d5980bb..70d39fc7fe 100644 --- a/packages/autorest.typescript/test/integration/generated/objectType/src/objectTypeClient.ts +++ b/packages/autorest.typescript/test/integration/generated/objectType/src/objectTypeClient.ts @@ -7,13 +7,13 @@ */ import * as coreClient from "@azure/core-client"; -import * as Parameters from "./models/parameters"; +import * as Parameters from "./models/parameters.js"; import { ObjectTypeClientOptionalParams, GetOptionalParams, GetResponse, PutOptionalParams, -} from "./models"; +} from "./models/index.js"; export class ObjectTypeClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/odataDiscriminator/src/index.ts b/packages/autorest.typescript/test/integration/generated/odataDiscriminator/src/index.ts index 87c5e65f76..2a2cc9e81a 100644 --- a/packages/autorest.typescript/test/integration/generated/odataDiscriminator/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/odataDiscriminator/src/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { ODataDiscriminatorClient } from "./oDataDiscriminatorClient"; +export * from "./models/index.js"; +export { ODataDiscriminatorClient } from "./oDataDiscriminatorClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/odataDiscriminator/src/oDataDiscriminatorClient.ts b/packages/autorest.typescript/test/integration/generated/odataDiscriminator/src/oDataDiscriminatorClient.ts index 77592c83d6..e58fd398b0 100644 --- a/packages/autorest.typescript/test/integration/generated/odataDiscriminator/src/oDataDiscriminatorClient.ts +++ b/packages/autorest.typescript/test/integration/generated/odataDiscriminator/src/oDataDiscriminatorClient.ts @@ -12,14 +12,14 @@ import { PipelineResponse, SendRequest, } from "@azure/core-rest-pipeline"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; +import * as Parameters from "./models/parameters.js"; +import * as Mappers from "./models/mappers.js"; import { Enum0, ODataDiscriminatorClientOptionalParams, ApiV1ValueGetOptionalParams, ApiV1ValueGetResponse, -} from "./models"; +} from "./models/index.js"; export class ODataDiscriminatorClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/index.ts b/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/index.ts index e12fc6902d..0da65797bb 100644 --- a/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/index.ts @@ -1,3 +1,3 @@ -export * from "./models"; -export { OperationGroupClashClient } from "./operationGroupClashClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { OperationGroupClashClient } from "./operationGroupClashClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operationGroupClashClient.ts b/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operationGroupClashClient.ts index b69251320a..328aa969f0 100644 --- a/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operationGroupClashClient.ts +++ b/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operationGroupClashClient.ts @@ -4,9 +4,18 @@ import { PipelineResponse, SendRequest, } from "@azure/core-rest-pipeline"; -import { ProductOperationsImpl, PipelineOperationsImpl } from "./operations"; -import { ProductOperations, PipelineOperations } from "./operationsInterfaces"; -import { Enum0, OperationGroupClashClientOptionalParams } from "./models"; +import { + ProductOperationsImpl, + PipelineOperationsImpl, +} from "./operations/index.js"; +import { + ProductOperations, + PipelineOperations, +} from "./operationsInterfaces/index.js"; +import { + Enum0, + OperationGroupClashClientOptionalParams, +} from "./models/index.js"; export class OperationGroupClashClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operations/index.ts index 033ff837c0..291d66d44b 100644 --- a/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operations/index.ts @@ -1,2 +1,2 @@ -export * from "./productOperations"; -export * from "./pipelineOperations"; +export * from "./productOperations.js"; +export * from "./pipelineOperations.js"; diff --git a/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operations/pipelineOperations.ts b/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operations/pipelineOperations.ts index 48829886b2..61451fb2ae 100644 --- a/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operations/pipelineOperations.ts +++ b/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operations/pipelineOperations.ts @@ -1,12 +1,12 @@ -import { PipelineOperations } from "../operationsInterfaces"; +import { PipelineOperations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { OperationGroupClashClient } from "../operationGroupClashClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { OperationGroupClashClient } from "../operationGroupClashClient.js"; import { PipelineApiV1ValueGetOptionalParams, PipelineApiV1ValueGetResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing PipelineOperations operations. */ export class PipelineOperationsImpl implements PipelineOperations { diff --git a/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operations/productOperations.ts b/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operations/productOperations.ts index a346700bcf..38064d4ab7 100644 --- a/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operations/productOperations.ts +++ b/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operations/productOperations.ts @@ -1,12 +1,12 @@ -import { ProductOperations } from "../operationsInterfaces"; +import { ProductOperations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { OperationGroupClashClient } from "../operationGroupClashClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { OperationGroupClashClient } from "../operationGroupClashClient.js"; import { ProductApiV1ValueGetOptionalParams, ProductApiV1ValueGetResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing ProductOperations operations. */ export class ProductOperationsImpl implements ProductOperations { diff --git a/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operationsInterfaces/index.ts index 033ff837c0..291d66d44b 100644 --- a/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operationsInterfaces/index.ts @@ -1,2 +1,2 @@ -export * from "./productOperations"; -export * from "./pipelineOperations"; +export * from "./productOperations.js"; +export * from "./pipelineOperations.js"; diff --git a/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operationsInterfaces/pipelineOperations.ts b/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operationsInterfaces/pipelineOperations.ts index 0be3b373de..fea92f87c2 100644 --- a/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operationsInterfaces/pipelineOperations.ts +++ b/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operationsInterfaces/pipelineOperations.ts @@ -1,7 +1,7 @@ import { PipelineApiV1ValueGetOptionalParams, PipelineApiV1ValueGetResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a PipelineOperations. */ export interface PipelineOperations { diff --git a/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operationsInterfaces/productOperations.ts b/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operationsInterfaces/productOperations.ts index 68c8250dfb..4d0191e817 100644 --- a/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operationsInterfaces/productOperations.ts +++ b/packages/autorest.typescript/test/integration/generated/operationgroupclash/src/operationsInterfaces/productOperations.ts @@ -1,7 +1,7 @@ import { ProductApiV1ValueGetOptionalParams, ProductApiV1ValueGetResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a ProductOperations. */ export interface ProductOperations { diff --git a/packages/autorest.typescript/test/integration/generated/optionalnull/src/index.ts b/packages/autorest.typescript/test/integration/generated/optionalnull/src/index.ts index 6b88093303..84a7eee1bf 100644 --- a/packages/autorest.typescript/test/integration/generated/optionalnull/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/optionalnull/src/index.ts @@ -1,3 +1,3 @@ -export * from "./models"; -export { OptionalNullClient } from "./optionalNullClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { OptionalNullClient } from "./optionalNullClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/optionalnull/src/operations/documents.ts b/packages/autorest.typescript/test/integration/generated/optionalnull/src/operations/documents.ts index 38dcf1b5a2..5a55dca1ea 100644 --- a/packages/autorest.typescript/test/integration/generated/optionalnull/src/operations/documents.ts +++ b/packages/autorest.typescript/test/integration/generated/optionalnull/src/operations/documents.ts @@ -1,9 +1,9 @@ -import { Documents } from "../operationsInterfaces"; +import { Documents } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { OptionalNullClient } from "../optionalNullClient"; -import { DocumentsSearchGetOptionalParams } from "../models"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { OptionalNullClient } from "../optionalNullClient.js"; +import { DocumentsSearchGetOptionalParams } from "../models/index.js"; /** Class containing Documents operations. */ export class DocumentsImpl implements Documents { diff --git a/packages/autorest.typescript/test/integration/generated/optionalnull/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/optionalnull/src/operations/index.ts index afd2285a7e..9a87462b4e 100644 --- a/packages/autorest.typescript/test/integration/generated/optionalnull/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/optionalnull/src/operations/index.ts @@ -1 +1 @@ -export * from "./documents"; +export * from "./documents.js"; diff --git a/packages/autorest.typescript/test/integration/generated/optionalnull/src/operationsInterfaces/documents.ts b/packages/autorest.typescript/test/integration/generated/optionalnull/src/operationsInterfaces/documents.ts index 84e0426acc..e635baea65 100644 --- a/packages/autorest.typescript/test/integration/generated/optionalnull/src/operationsInterfaces/documents.ts +++ b/packages/autorest.typescript/test/integration/generated/optionalnull/src/operationsInterfaces/documents.ts @@ -1,4 +1,4 @@ -import { DocumentsSearchGetOptionalParams } from "../models"; +import { DocumentsSearchGetOptionalParams } from "../models/index.js"; /** Interface representing a Documents. */ export interface Documents { diff --git a/packages/autorest.typescript/test/integration/generated/optionalnull/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/optionalnull/src/operationsInterfaces/index.ts index afd2285a7e..9a87462b4e 100644 --- a/packages/autorest.typescript/test/integration/generated/optionalnull/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/optionalnull/src/operationsInterfaces/index.ts @@ -1 +1 @@ -export * from "./documents"; +export * from "./documents.js"; diff --git a/packages/autorest.typescript/test/integration/generated/optionalnull/src/optionalNullClient.ts b/packages/autorest.typescript/test/integration/generated/optionalnull/src/optionalNullClient.ts index 01af48e1bd..abf8c5b518 100644 --- a/packages/autorest.typescript/test/integration/generated/optionalnull/src/optionalNullClient.ts +++ b/packages/autorest.typescript/test/integration/generated/optionalnull/src/optionalNullClient.ts @@ -1,7 +1,7 @@ import * as coreClient from "@azure/core-client"; -import { DocumentsImpl } from "./operations"; -import { Documents } from "./operationsInterfaces"; -import { OptionalNullClientOptionalParams } from "./models"; +import { DocumentsImpl } from "./operations/index.js"; +import { Documents } from "./operationsInterfaces/index.js"; +import { OptionalNullClientOptionalParams } from "./models/index.js"; export class OptionalNullClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/paging/src/index.ts b/packages/autorest.typescript/test/integration/generated/paging/src/index.ts index 75b16d4239..ae18e2cc3f 100644 --- a/packages/autorest.typescript/test/integration/generated/paging/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/paging/src/index.ts @@ -7,7 +7,7 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { PagingClient } from "./pagingClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { PagingClient } from "./pagingClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/paging/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/paging/src/models/parameters.ts index 4136051c29..03d40bb885 100644 --- a/packages/autorest.typescript/test/integration/generated/paging/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/paging/src/models/parameters.ts @@ -11,7 +11,7 @@ import { OperationURLParameter, OperationQueryParameter, } from "@azure/core-client"; -import { BodyParam as BodyParamMapper } from "../models/mappers"; +import { BodyParam as BodyParamMapper } from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/packages/autorest.typescript/test/integration/generated/paging/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/paging/src/operations/index.ts index 5534f66d5e..93b938514d 100644 --- a/packages/autorest.typescript/test/integration/generated/paging/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/paging/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./paging"; +export * from "./paging.js"; diff --git a/packages/autorest.typescript/test/integration/generated/paging/src/operations/paging.ts b/packages/autorest.typescript/test/integration/generated/paging/src/operations/paging.ts index 57d68594f8..5be5b68196 100644 --- a/packages/autorest.typescript/test/integration/generated/paging/src/operations/paging.ts +++ b/packages/autorest.typescript/test/integration/generated/paging/src/operations/paging.ts @@ -8,18 +8,18 @@ import { tracingClient } from "../tracing"; import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Paging } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Paging } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { PagingClient } from "../pagingClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { PagingClient } from "../pagingClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { Product, PagingGetNoItemNamePagesNextOptionalParams, @@ -115,7 +115,7 @@ import { PagingAppendApiVersionNextResponse, PagingReplaceApiVersionNextResponse, PagingGetPagingModelWithItemNameWithXMSClientNameNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Paging operations. */ diff --git a/packages/autorest.typescript/test/integration/generated/paging/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/paging/src/operationsInterfaces/index.ts index 5534f66d5e..93b938514d 100644 --- a/packages/autorest.typescript/test/integration/generated/paging/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/paging/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./paging"; +export * from "./paging.js"; diff --git a/packages/autorest.typescript/test/integration/generated/paging/src/operationsInterfaces/paging.ts b/packages/autorest.typescript/test/integration/generated/paging/src/operationsInterfaces/paging.ts index 4cc7b939a3..d09d8e3ca2 100644 --- a/packages/autorest.typescript/test/integration/generated/paging/src/operationsInterfaces/paging.ts +++ b/packages/autorest.typescript/test/integration/generated/paging/src/operationsInterfaces/paging.ts @@ -37,7 +37,7 @@ import { PagingAppendApiVersionOptionalParams, PagingReplaceApiVersionOptionalParams, PagingGetPagingModelWithItemNameWithXMSClientNameOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Paging. */ diff --git a/packages/autorest.typescript/test/integration/generated/paging/src/pagingClient.ts b/packages/autorest.typescript/test/integration/generated/paging/src/pagingClient.ts index 351ae67821..82f42ae554 100644 --- a/packages/autorest.typescript/test/integration/generated/paging/src/pagingClient.ts +++ b/packages/autorest.typescript/test/integration/generated/paging/src/pagingClient.ts @@ -12,9 +12,9 @@ import { PipelineResponse, SendRequest, } from "@azure/core-rest-pipeline"; -import { PagingImpl } from "./operations"; -import { Paging } from "./operationsInterfaces"; -import { PagingClientOptionalParams } from "./models"; +import { PagingImpl } from "./operations/index.js"; +import { Paging } from "./operationsInterfaces/index.js"; +import { PagingClientOptionalParams } from "./models/index.js"; export class PagingClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/index.ts b/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/index.ts index 961750bcbd..b874718706 100644 --- a/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { PagingNoIteratorsClient } from "./pagingNoIteratorsClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { PagingNoIteratorsClient } from "./pagingNoIteratorsClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/models/parameters.ts index 4136051c29..03d40bb885 100644 --- a/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/models/parameters.ts @@ -11,7 +11,7 @@ import { OperationURLParameter, OperationQueryParameter, } from "@azure/core-client"; -import { BodyParam as BodyParamMapper } from "../models/mappers"; +import { BodyParam as BodyParamMapper } from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/operations/index.ts index 5534f66d5e..93b938514d 100644 --- a/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./paging"; +export * from "./paging.js"; diff --git a/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/operations/paging.ts b/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/operations/paging.ts index c9faa31b4a..94d91bc3b8 100644 --- a/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/operations/paging.ts +++ b/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/operations/paging.ts @@ -6,17 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Paging } from "../operationsInterfaces"; +import { Paging } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { PagingNoIteratorsClient } from "../pagingNoIteratorsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { PagingNoIteratorsClient } from "../pagingNoIteratorsClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { PagingGetNoItemNamePagesOptionalParams, PagingGetNoItemNamePagesResponse, @@ -111,7 +111,7 @@ import { PagingReplaceApiVersionNextResponse, PagingGetPagingModelWithItemNameWithXMSClientNameNextOptionalParams, PagingGetPagingModelWithItemNameWithXMSClientNameNextResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Paging operations. */ export class PagingImpl implements Paging { diff --git a/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/operationsInterfaces/index.ts index 5534f66d5e..93b938514d 100644 --- a/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./paging"; +export * from "./paging.js"; diff --git a/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/operationsInterfaces/paging.ts b/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/operationsInterfaces/paging.ts index 2b7985bccb..ab8098aeb7 100644 --- a/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/operationsInterfaces/paging.ts +++ b/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/operationsInterfaces/paging.ts @@ -101,7 +101,7 @@ import { PagingReplaceApiVersionNextResponse, PagingGetPagingModelWithItemNameWithXMSClientNameNextOptionalParams, PagingGetPagingModelWithItemNameWithXMSClientNameNextResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Paging. */ export interface Paging { diff --git a/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/pagingNoIteratorsClient.ts b/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/pagingNoIteratorsClient.ts index ffa36f842c..69af9a5fdb 100644 --- a/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/pagingNoIteratorsClient.ts +++ b/packages/autorest.typescript/test/integration/generated/pagingNoIterators/src/pagingNoIteratorsClient.ts @@ -12,9 +12,9 @@ import { PipelineResponse, SendRequest, } from "@azure/core-rest-pipeline"; -import { PagingImpl } from "./operations"; -import { Paging } from "./operationsInterfaces"; -import { PagingNoIteratorsClientOptionalParams } from "./models"; +import { PagingImpl } from "./operations/index.js"; +import { Paging } from "./operationsInterfaces/index.js"; +import { PagingNoIteratorsClientOptionalParams } from "./models/index.js"; export class PagingNoIteratorsClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/patterntest/src/index.ts b/packages/autorest.typescript/test/integration/generated/patterntest/src/index.ts index 4d19ff1c0c..2abb2257f9 100644 --- a/packages/autorest.typescript/test/integration/generated/patterntest/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/patterntest/src/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { PatternTestClient } from "./patternTestClient"; +export * from "./models/index.js"; +export { PatternTestClient } from "./patternTestClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/patterntest/src/patternTestClient.ts b/packages/autorest.typescript/test/integration/generated/patterntest/src/patternTestClient.ts index 8353339f6e..4d2a4639a2 100644 --- a/packages/autorest.typescript/test/integration/generated/patterntest/src/patternTestClient.ts +++ b/packages/autorest.typescript/test/integration/generated/patterntest/src/patternTestClient.ts @@ -8,12 +8,12 @@ import * as coreClient from "@azure/core-client"; import * as coreHttpCompat from "@azure/core-http-compat"; -import * as Parameters from "./models/parameters"; +import * as Parameters from "./models/parameters.js"; import { PatternTestClientOptionalParams, HomeOptionalParams, HomeResponse, -} from "./models"; +} from "./models/index.js"; export class PatternTestClient extends coreHttpCompat.ExtendedServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/petstore/src/index.ts b/packages/autorest.typescript/test/integration/generated/petstore/src/index.ts index e7627063d3..deb7603173 100644 --- a/packages/autorest.typescript/test/integration/generated/petstore/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/petstore/src/index.ts @@ -1,2 +1,2 @@ -export * from "./models"; -export { PetStore } from "./petStore"; +export * from "./models/index.js"; +export { PetStore } from "./petStore.js"; diff --git a/packages/autorest.typescript/test/integration/generated/petstore/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/petstore/src/models/parameters.ts index 0169200255..dbff106b14 100644 --- a/packages/autorest.typescript/test/integration/generated/petstore/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/petstore/src/models/parameters.ts @@ -7,7 +7,7 @@ import { Pet as PetMapper, Order as OrderMapper, User as UserMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const contentType: OperationParameter = { parameterPath: "contentType", diff --git a/packages/autorest.typescript/test/integration/generated/petstore/src/petStore.ts b/packages/autorest.typescript/test/integration/generated/petstore/src/petStore.ts index b9ecb15aff..59b50a3264 100644 --- a/packages/autorest.typescript/test/integration/generated/petstore/src/petStore.ts +++ b/packages/autorest.typescript/test/integration/generated/petstore/src/petStore.ts @@ -1,6 +1,6 @@ import * as coreClient from "@azure/core-client"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; +import * as Parameters from "./models/parameters.js"; +import * as Mappers from "./models/mappers.js"; import { PetStoreOptionalParams, AddPetUsingByteArray$binaryOptionalParams, @@ -35,7 +35,7 @@ import { GetUserByNameResponse, UpdateUserOptionalParams, DeleteUserOptionalParams, -} from "./models"; +} from "./models/index.js"; export class PetStore extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/polymorphicSkipNormalize/src/generated/index.ts b/packages/autorest.typescript/test/integration/generated/polymorphicSkipNormalize/src/generated/index.ts index 0512bd167b..262371b66b 100644 --- a/packages/autorest.typescript/test/integration/generated/polymorphicSkipNormalize/src/generated/index.ts +++ b/packages/autorest.typescript/test/integration/generated/polymorphicSkipNormalize/src/generated/index.ts @@ -1,2 +1,2 @@ -export * from "./models"; -export { MediaServicesClient } from "./mediaServicesClient"; +export * from "./models/index.js"; +export { MediaServicesClient } from "./mediaServicesClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/polymorphicSkipNormalize/src/generated/mediaServicesClient.ts b/packages/autorest.typescript/test/integration/generated/polymorphicSkipNormalize/src/generated/mediaServicesClient.ts index cabd93999f..f1f0fdabb8 100644 --- a/packages/autorest.typescript/test/integration/generated/polymorphicSkipNormalize/src/generated/mediaServicesClient.ts +++ b/packages/autorest.typescript/test/integration/generated/polymorphicSkipNormalize/src/generated/mediaServicesClient.ts @@ -1,5 +1,5 @@ import * as coreClient from "@azure/core-client"; -import { MediaServicesClientOptionalParams } from "./models"; +import { MediaServicesClientOptionalParams } from "./models/index.js"; export class MediaServicesClient extends coreClient.ServiceClient { /** diff --git a/packages/autorest.typescript/test/integration/generated/readmeFileChecker/src/index.ts b/packages/autorest.typescript/test/integration/generated/readmeFileChecker/src/index.ts index 3bf5f73dcc..e342405bab 100644 --- a/packages/autorest.typescript/test/integration/generated/readmeFileChecker/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/readmeFileChecker/src/index.ts @@ -1,2 +1,2 @@ -export * from "./models"; -export { KeyVaultClient } from "./keyVaultClient"; +export * from "./models/index.js"; +export { KeyVaultClient } from "./keyVaultClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/readmeFileChecker/src/keyVaultClient.ts b/packages/autorest.typescript/test/integration/generated/readmeFileChecker/src/keyVaultClient.ts index 816d22ca62..090f4b6adb 100644 --- a/packages/autorest.typescript/test/integration/generated/readmeFileChecker/src/keyVaultClient.ts +++ b/packages/autorest.typescript/test/integration/generated/readmeFileChecker/src/keyVaultClient.ts @@ -4,8 +4,8 @@ import { PipelineResponse, SendRequest, } from "@azure/core-rest-pipeline"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; +import * as Parameters from "./models/parameters.js"; +import * as Mappers from "./models/mappers.js"; import { ApiVersion72Preview, KeyVaultClientOptionalParams, @@ -38,7 +38,7 @@ import { GetSecretVersionsNextResponse, GetDeletedSecretsNextOptionalParams, GetDeletedSecretsNextResponse, -} from "./models"; +} from "./models/index.js"; /** @internal */ export class KeyVaultClient extends coreClient.ServiceClient { diff --git a/packages/autorest.typescript/test/integration/generated/readmeFileChecker/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/readmeFileChecker/src/models/parameters.ts index 592cf731f7..5d7af4cd1b 100644 --- a/packages/autorest.typescript/test/integration/generated/readmeFileChecker/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/readmeFileChecker/src/models/parameters.ts @@ -7,7 +7,7 @@ import { SecretSetParameters as SecretSetParametersMapper, SecretUpdateParameters as SecretUpdateParametersMapper, SecretRestoreParameters as SecretRestoreParametersMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const contentType: OperationParameter = { parameterPath: ["options", "contentType"], diff --git a/packages/autorest.typescript/test/integration/generated/regexConstraint/src/index.ts b/packages/autorest.typescript/test/integration/generated/regexConstraint/src/index.ts index 14324e9d64..5262d66af6 100644 --- a/packages/autorest.typescript/test/integration/generated/regexConstraint/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/regexConstraint/src/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { RegexConstraint } from "./regexConstraint"; +export * from "./models/index.js"; +export { RegexConstraint } from "./regexConstraint.js"; diff --git a/packages/autorest.typescript/test/integration/generated/regexConstraint/src/regexConstraint.ts b/packages/autorest.typescript/test/integration/generated/regexConstraint/src/regexConstraint.ts index 7bee4447d7..0507fcf38b 100644 --- a/packages/autorest.typescript/test/integration/generated/regexConstraint/src/regexConstraint.ts +++ b/packages/autorest.typescript/test/integration/generated/regexConstraint/src/regexConstraint.ts @@ -7,12 +7,12 @@ */ import * as coreClient from "@azure/core-client"; -import * as Parameters from "./models/parameters"; +import * as Parameters from "./models/parameters.js"; import { RegexConstraintOptionalParams, ApiV1ValueGetOptionalParams, ApiV1ValueGetResponse, -} from "./models"; +} from "./models/index.js"; export class RegexConstraint extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/report/src/index.ts b/packages/autorest.typescript/test/integration/generated/report/src/index.ts index 597f974fe7..2839726fc9 100644 --- a/packages/autorest.typescript/test/integration/generated/report/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/report/src/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { ReportClient } from "./reportClient"; +export * from "./models/index.js"; +export { ReportClient } from "./reportClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/report/src/reportClient.ts b/packages/autorest.typescript/test/integration/generated/report/src/reportClient.ts index 303aa5e497..217bff0d99 100644 --- a/packages/autorest.typescript/test/integration/generated/report/src/reportClient.ts +++ b/packages/autorest.typescript/test/integration/generated/report/src/reportClient.ts @@ -7,15 +7,15 @@ */ import * as coreClient from "@azure/core-client"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; +import * as Parameters from "./models/parameters.js"; +import * as Mappers from "./models/mappers.js"; import { ReportClientOptionalParams, GetReportOptionalParams, GetReportResponse, GetOptionalReportOptionalParams, GetOptionalReportResponse, -} from "./models"; +} from "./models/index.js"; export class ReportClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/requiredOptional/src/index.ts b/packages/autorest.typescript/test/integration/generated/requiredOptional/src/index.ts index e6c355a1c6..c2ac4a8561 100644 --- a/packages/autorest.typescript/test/integration/generated/requiredOptional/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/requiredOptional/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { RequiredOptionalClient } from "./requiredOptionalClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { RequiredOptionalClient } from "./requiredOptionalClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/requiredOptional/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/requiredOptional/src/models/parameters.ts index 2e8f767f58..bfe509fb7c 100644 --- a/packages/autorest.typescript/test/integration/generated/requiredOptional/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/requiredOptional/src/models/parameters.ts @@ -21,7 +21,7 @@ import { ClassOptionalWrapper as ClassOptionalWrapperMapper, ArrayWrapper as ArrayWrapperMapper, ArrayOptionalWrapper as ArrayOptionalWrapperMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operations/explicit.ts b/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operations/explicit.ts index 390acbe37f..0efe926900 100644 --- a/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operations/explicit.ts +++ b/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operations/explicit.ts @@ -6,12 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Explicit } from "../operationsInterfaces"; +import { Explicit } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { RequiredOptionalClient } from "../requiredOptionalClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { RequiredOptionalClient } from "../requiredOptionalClient.js"; import { ExplicitPutOptionalBinaryBodyOptionalParams, ExplicitPutRequiredBinaryBodyOptionalParams, @@ -42,7 +42,7 @@ import { ExplicitPostOptionalArrayPropertyOptionalParams, ExplicitPostRequiredArrayHeaderOptionalParams, ExplicitPostOptionalArrayHeaderOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Explicit operations. */ export class ExplicitImpl implements Explicit { diff --git a/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operations/implicit.ts b/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operations/implicit.ts index bdf087eaa2..fd4d15075f 100644 --- a/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operations/implicit.ts +++ b/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operations/implicit.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Implicit } from "../operationsInterfaces"; +import { Implicit } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { RequiredOptionalClient } from "../requiredOptionalClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { RequiredOptionalClient } from "../requiredOptionalClient.js"; import { ImplicitGetRequiredPathOptionalParams, ImplicitPutOptionalQueryOptionalParams, @@ -20,7 +20,7 @@ import { ImplicitGetRequiredGlobalPathOptionalParams, ImplicitGetRequiredGlobalQueryOptionalParams, ImplicitGetOptionalGlobalQueryOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Implicit operations. */ export class ImplicitImpl implements Implicit { diff --git a/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operations/index.ts index e845d253e1..3b28867c69 100644 --- a/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operations/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./implicit"; -export * from "./explicit"; +export * from "./implicit.js"; +export * from "./explicit.js"; diff --git a/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operationsInterfaces/explicit.ts b/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operationsInterfaces/explicit.ts index 0d19070a0b..eaf84b5c94 100644 --- a/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operationsInterfaces/explicit.ts +++ b/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operationsInterfaces/explicit.ts @@ -37,7 +37,7 @@ import { ExplicitPostOptionalArrayPropertyOptionalParams, ExplicitPostRequiredArrayHeaderOptionalParams, ExplicitPostOptionalArrayHeaderOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Explicit. */ export interface Explicit { diff --git a/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operationsInterfaces/implicit.ts b/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operationsInterfaces/implicit.ts index 32f32cec81..7a8d288182 100644 --- a/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operationsInterfaces/implicit.ts +++ b/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operationsInterfaces/implicit.ts @@ -15,7 +15,7 @@ import { ImplicitGetRequiredGlobalPathOptionalParams, ImplicitGetRequiredGlobalQueryOptionalParams, ImplicitGetOptionalGlobalQueryOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Implicit. */ export interface Implicit { diff --git a/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operationsInterfaces/index.ts index e845d253e1..3b28867c69 100644 --- a/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/requiredOptional/src/operationsInterfaces/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./implicit"; -export * from "./explicit"; +export * from "./implicit.js"; +export * from "./explicit.js"; diff --git a/packages/autorest.typescript/test/integration/generated/requiredOptional/src/requiredOptionalClient.ts b/packages/autorest.typescript/test/integration/generated/requiredOptional/src/requiredOptionalClient.ts index 84fb4116a3..651699c865 100644 --- a/packages/autorest.typescript/test/integration/generated/requiredOptional/src/requiredOptionalClient.ts +++ b/packages/autorest.typescript/test/integration/generated/requiredOptional/src/requiredOptionalClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { ImplicitImpl, ExplicitImpl } from "./operations"; -import { Implicit, Explicit } from "./operationsInterfaces"; -import { RequiredOptionalClientOptionalParams } from "./models"; +import { ImplicitImpl, ExplicitImpl } from "./operations/index.js"; +import { Implicit, Explicit } from "./operationsInterfaces/index.js"; +import { RequiredOptionalClientOptionalParams } from "./models/index.js"; export class RequiredOptionalClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/resources/src/index.ts b/packages/autorest.typescript/test/integration/generated/resources/src/index.ts index 535f6d990a..9660c1d383 100644 --- a/packages/autorest.typescript/test/integration/generated/resources/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/resources/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { ResourcesClient } from "./resourcesClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { ResourcesClient } from "./resourcesClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/resources/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/resources/src/operations/index.ts index ed88013880..36dbd73e29 100644 --- a/packages/autorest.typescript/test/integration/generated/resources/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/resources/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./resourceGroups"; +export * from "./resourceGroups.js"; diff --git a/packages/autorest.typescript/test/integration/generated/resources/src/operations/resourceGroups.ts b/packages/autorest.typescript/test/integration/generated/resources/src/operations/resourceGroups.ts index 4318017654..82b929ac0c 100644 --- a/packages/autorest.typescript/test/integration/generated/resources/src/operations/resourceGroups.ts +++ b/packages/autorest.typescript/test/integration/generated/resources/src/operations/resourceGroups.ts @@ -6,15 +6,15 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { ResourceGroups } from "../operationsInterfaces"; +import { ResourceGroups } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ResourcesClient } from "../resourcesClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ResourcesClient } from "../resourcesClient.js"; import { ResourceGroupsCheckExistenceOptionalParams, ResourceGroupsCheckExistenceResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing ResourceGroups operations. */ export class ResourceGroupsImpl implements ResourceGroups { diff --git a/packages/autorest.typescript/test/integration/generated/resources/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/resources/src/operationsInterfaces/index.ts index ed88013880..36dbd73e29 100644 --- a/packages/autorest.typescript/test/integration/generated/resources/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/resources/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./resourceGroups"; +export * from "./resourceGroups.js"; diff --git a/packages/autorest.typescript/test/integration/generated/resources/src/operationsInterfaces/resourceGroups.ts b/packages/autorest.typescript/test/integration/generated/resources/src/operationsInterfaces/resourceGroups.ts index b63e46899e..7bbd9e2c41 100644 --- a/packages/autorest.typescript/test/integration/generated/resources/src/operationsInterfaces/resourceGroups.ts +++ b/packages/autorest.typescript/test/integration/generated/resources/src/operationsInterfaces/resourceGroups.ts @@ -9,7 +9,7 @@ import { ResourceGroupsCheckExistenceOptionalParams, ResourceGroupsCheckExistenceResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a ResourceGroups. */ export interface ResourceGroups { diff --git a/packages/autorest.typescript/test/integration/generated/resources/src/resourcesClient.ts b/packages/autorest.typescript/test/integration/generated/resources/src/resourcesClient.ts index 3e31389860..9927842c17 100644 --- a/packages/autorest.typescript/test/integration/generated/resources/src/resourcesClient.ts +++ b/packages/autorest.typescript/test/integration/generated/resources/src/resourcesClient.ts @@ -13,9 +13,9 @@ import { SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; -import { ResourceGroupsImpl } from "./operations"; -import { ResourceGroups } from "./operationsInterfaces"; -import { ResourcesClientOptionalParams } from "./models"; +import { ResourceGroupsImpl } from "./operations/index.js"; +import { ResourceGroups } from "./operationsInterfaces/index.js"; +import { ResourcesClientOptionalParams } from "./models/index.js"; export class ResourcesClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/sealedchoice/src/index.ts b/packages/autorest.typescript/test/integration/generated/sealedchoice/src/index.ts index 74e9a8df24..865170502e 100644 --- a/packages/autorest.typescript/test/integration/generated/sealedchoice/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/sealedchoice/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { SealedChoiceClient } from "./sealedChoiceClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { SealedChoiceClient } from "./sealedChoiceClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/sealedchoice/src/operations/authentication.ts b/packages/autorest.typescript/test/integration/generated/sealedchoice/src/operations/authentication.ts index d5b1492765..618d7cb3cb 100644 --- a/packages/autorest.typescript/test/integration/generated/sealedchoice/src/operations/authentication.ts +++ b/packages/autorest.typescript/test/integration/generated/sealedchoice/src/operations/authentication.ts @@ -6,15 +6,15 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Authentication } from "../operationsInterfaces"; +import { Authentication } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SealedChoiceClient } from "../sealedChoiceClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { SealedChoiceClient } from "../sealedChoiceClient.js"; import { TokenGrantType, AuthenticationExchangeAcrRefreshTokenForAcrAccessTokenOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Authentication operations. */ export class AuthenticationImpl implements Authentication { diff --git a/packages/autorest.typescript/test/integration/generated/sealedchoice/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/sealedchoice/src/operations/index.ts index e356a430e1..b996f88884 100644 --- a/packages/autorest.typescript/test/integration/generated/sealedchoice/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/sealedchoice/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./authentication"; +export * from "./authentication.js"; diff --git a/packages/autorest.typescript/test/integration/generated/sealedchoice/src/operationsInterfaces/authentication.ts b/packages/autorest.typescript/test/integration/generated/sealedchoice/src/operationsInterfaces/authentication.ts index 476b4cb060..8e2da60b4c 100644 --- a/packages/autorest.typescript/test/integration/generated/sealedchoice/src/operationsInterfaces/authentication.ts +++ b/packages/autorest.typescript/test/integration/generated/sealedchoice/src/operationsInterfaces/authentication.ts @@ -9,7 +9,7 @@ import { TokenGrantType, AuthenticationExchangeAcrRefreshTokenForAcrAccessTokenOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Authentication. */ export interface Authentication { diff --git a/packages/autorest.typescript/test/integration/generated/sealedchoice/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/sealedchoice/src/operationsInterfaces/index.ts index e356a430e1..b996f88884 100644 --- a/packages/autorest.typescript/test/integration/generated/sealedchoice/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/sealedchoice/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./authentication"; +export * from "./authentication.js"; diff --git a/packages/autorest.typescript/test/integration/generated/sealedchoice/src/sealedChoiceClient.ts b/packages/autorest.typescript/test/integration/generated/sealedchoice/src/sealedChoiceClient.ts index d369c2ae3f..b62b8d3054 100644 --- a/packages/autorest.typescript/test/integration/generated/sealedchoice/src/sealedChoiceClient.ts +++ b/packages/autorest.typescript/test/integration/generated/sealedchoice/src/sealedChoiceClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { AuthenticationImpl } from "./operations"; -import { Authentication } from "./operationsInterfaces"; -import { SealedChoiceClientOptionalParams } from "./models"; +import { AuthenticationImpl } from "./operations/index.js"; +import { Authentication } from "./operationsInterfaces/index.js"; +import { SealedChoiceClientOptionalParams } from "./models/index.js"; export class SealedChoiceClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/storageblob/src/index.ts b/packages/autorest.typescript/test/integration/generated/storageblob/src/index.ts index 74a2462cea..6509bd15a4 100644 --- a/packages/autorest.typescript/test/integration/generated/storageblob/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/storageblob/src/index.ts @@ -1,3 +1,3 @@ -export * from "./models"; -export { StorageBlobClient } from "./storageBlobClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { StorageBlobClient } from "./storageBlobClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/storageblob/src/operations/appendBlob.ts b/packages/autorest.typescript/test/integration/generated/storageblob/src/operations/appendBlob.ts index 6284718c0f..22dcb1f635 100644 --- a/packages/autorest.typescript/test/integration/generated/storageblob/src/operations/appendBlob.ts +++ b/packages/autorest.typescript/test/integration/generated/storageblob/src/operations/appendBlob.ts @@ -1,13 +1,13 @@ -import { AppendBlob } from "../operationsInterfaces"; +import { AppendBlob } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { StorageBlobClient } from "../storageBlobClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { StorageBlobClient } from "../storageBlobClient.js"; import { AppendBlobAppendBlockOptionalParams, AppendBlobAppendBlockResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing AppendBlob operations. */ export class AppendBlobImpl implements AppendBlob { diff --git a/packages/autorest.typescript/test/integration/generated/storageblob/src/operations/blockBlob.ts b/packages/autorest.typescript/test/integration/generated/storageblob/src/operations/blockBlob.ts index d780592bde..715aba1a50 100644 --- a/packages/autorest.typescript/test/integration/generated/storageblob/src/operations/blockBlob.ts +++ b/packages/autorest.typescript/test/integration/generated/storageblob/src/operations/blockBlob.ts @@ -1,9 +1,9 @@ -import { BlockBlob } from "../operationsInterfaces"; +import { BlockBlob } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { StorageBlobClient } from "../storageBlobClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { StorageBlobClient } from "../storageBlobClient.js"; import { BlockBlobStageBlockOptionalParams, BlockBlobStageBlockResponse, @@ -11,7 +11,7 @@ import { BlockBlobUploadResponse, BlockBlobPutBlobFromUrlOptionalParams, BlockBlobPutBlobFromUrlResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing BlockBlob operations. */ export class BlockBlobImpl implements BlockBlob { diff --git a/packages/autorest.typescript/test/integration/generated/storageblob/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/storageblob/src/operations/index.ts index cfd811e7be..90762ed16f 100644 --- a/packages/autorest.typescript/test/integration/generated/storageblob/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/storageblob/src/operations/index.ts @@ -1,3 +1,3 @@ -export * from "./pageBlob"; -export * from "./blockBlob"; -export * from "./appendBlob"; +export * from "./pageBlob.js"; +export * from "./blockBlob.js"; +export * from "./appendBlob.js"; diff --git a/packages/autorest.typescript/test/integration/generated/storageblob/src/operations/pageBlob.ts b/packages/autorest.typescript/test/integration/generated/storageblob/src/operations/pageBlob.ts index bc261f365e..db5c0a9891 100644 --- a/packages/autorest.typescript/test/integration/generated/storageblob/src/operations/pageBlob.ts +++ b/packages/autorest.typescript/test/integration/generated/storageblob/src/operations/pageBlob.ts @@ -1,13 +1,13 @@ -import { PageBlob } from "../operationsInterfaces"; +import { PageBlob } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { StorageBlobClient } from "../storageBlobClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { StorageBlobClient } from "../storageBlobClient.js"; import { PageBlobUploadPagesOptionalParams, PageBlobUploadPagesResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing PageBlob operations. */ export class PageBlobImpl implements PageBlob { diff --git a/packages/autorest.typescript/test/integration/generated/storageblob/src/operationsInterfaces/appendBlob.ts b/packages/autorest.typescript/test/integration/generated/storageblob/src/operationsInterfaces/appendBlob.ts index 6080296cde..fc8a5ecb4c 100644 --- a/packages/autorest.typescript/test/integration/generated/storageblob/src/operationsInterfaces/appendBlob.ts +++ b/packages/autorest.typescript/test/integration/generated/storageblob/src/operationsInterfaces/appendBlob.ts @@ -2,7 +2,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { AppendBlobAppendBlockOptionalParams, AppendBlobAppendBlockResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a AppendBlob. */ export interface AppendBlob { diff --git a/packages/autorest.typescript/test/integration/generated/storageblob/src/operationsInterfaces/blockBlob.ts b/packages/autorest.typescript/test/integration/generated/storageblob/src/operationsInterfaces/blockBlob.ts index 3c2bec2519..253306e7fd 100644 --- a/packages/autorest.typescript/test/integration/generated/storageblob/src/operationsInterfaces/blockBlob.ts +++ b/packages/autorest.typescript/test/integration/generated/storageblob/src/operationsInterfaces/blockBlob.ts @@ -6,7 +6,7 @@ import { BlockBlobUploadResponse, BlockBlobPutBlobFromUrlOptionalParams, BlockBlobPutBlobFromUrlResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a BlockBlob. */ export interface BlockBlob { diff --git a/packages/autorest.typescript/test/integration/generated/storageblob/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/storageblob/src/operationsInterfaces/index.ts index cfd811e7be..90762ed16f 100644 --- a/packages/autorest.typescript/test/integration/generated/storageblob/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/storageblob/src/operationsInterfaces/index.ts @@ -1,3 +1,3 @@ -export * from "./pageBlob"; -export * from "./blockBlob"; -export * from "./appendBlob"; +export * from "./pageBlob.js"; +export * from "./blockBlob.js"; +export * from "./appendBlob.js"; diff --git a/packages/autorest.typescript/test/integration/generated/storageblob/src/operationsInterfaces/pageBlob.ts b/packages/autorest.typescript/test/integration/generated/storageblob/src/operationsInterfaces/pageBlob.ts index 20920cf60e..28e818b392 100644 --- a/packages/autorest.typescript/test/integration/generated/storageblob/src/operationsInterfaces/pageBlob.ts +++ b/packages/autorest.typescript/test/integration/generated/storageblob/src/operationsInterfaces/pageBlob.ts @@ -2,7 +2,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PageBlobUploadPagesOptionalParams, PageBlobUploadPagesResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a PageBlob. */ export interface PageBlob { diff --git a/packages/autorest.typescript/test/integration/generated/storageblob/src/storageBlobClient.ts b/packages/autorest.typescript/test/integration/generated/storageblob/src/storageBlobClient.ts index b6bf8a3882..78a9d53efb 100644 --- a/packages/autorest.typescript/test/integration/generated/storageblob/src/storageBlobClient.ts +++ b/packages/autorest.typescript/test/integration/generated/storageblob/src/storageBlobClient.ts @@ -1,7 +1,15 @@ import * as coreClient from "@azure/core-client"; -import { PageBlobImpl, BlockBlobImpl, AppendBlobImpl } from "./operations"; -import { PageBlob, BlockBlob, AppendBlob } from "./operationsInterfaces"; -import { StorageBlobClientOptionalParams } from "./models"; +import { + PageBlobImpl, + BlockBlobImpl, + AppendBlobImpl, +} from "./operations/index.js"; +import { + PageBlob, + BlockBlob, + AppendBlob, +} from "./operationsInterfaces/index.js"; +import { StorageBlobClientOptionalParams } from "./models/index.js"; export class StorageBlobClient extends coreClient.ServiceClient { url: string; diff --git a/packages/autorest.typescript/test/integration/generated/storagefileshare/src/index.ts b/packages/autorest.typescript/test/integration/generated/storagefileshare/src/index.ts index 69e726bc75..6f468c4656 100644 --- a/packages/autorest.typescript/test/integration/generated/storagefileshare/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/storagefileshare/src/index.ts @@ -1,3 +1,3 @@ -export * from "./models"; -export { StorageFileShareClient } from "./storageFileShareClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { StorageFileShareClient } from "./storageFileShareClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/storagefileshare/src/operations/file.ts b/packages/autorest.typescript/test/integration/generated/storagefileshare/src/operations/file.ts index 96fc862154..cd5bac6538 100644 --- a/packages/autorest.typescript/test/integration/generated/storagefileshare/src/operations/file.ts +++ b/packages/autorest.typescript/test/integration/generated/storagefileshare/src/operations/file.ts @@ -1,12 +1,12 @@ -import { File } from "../operationsInterfaces"; +import { File } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { StorageFileShareClient } from "../storageFileShareClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { StorageFileShareClient } from "../storageFileShareClient.js"; import { FileUploadRangeFromURLOptionalParams, FileUploadRangeFromURLResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing File operations. */ export class FileImpl implements File { diff --git a/packages/autorest.typescript/test/integration/generated/storagefileshare/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/storagefileshare/src/operations/index.ts index 375123f78e..4864586cb5 100644 --- a/packages/autorest.typescript/test/integration/generated/storagefileshare/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/storagefileshare/src/operations/index.ts @@ -1 +1 @@ -export * from "./file"; +export * from "./file.js"; diff --git a/packages/autorest.typescript/test/integration/generated/storagefileshare/src/operationsInterfaces/file.ts b/packages/autorest.typescript/test/integration/generated/storagefileshare/src/operationsInterfaces/file.ts index db2114e2ea..b836aed47e 100644 --- a/packages/autorest.typescript/test/integration/generated/storagefileshare/src/operationsInterfaces/file.ts +++ b/packages/autorest.typescript/test/integration/generated/storagefileshare/src/operationsInterfaces/file.ts @@ -1,7 +1,7 @@ import { FileUploadRangeFromURLOptionalParams, FileUploadRangeFromURLResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a File. */ export interface File { diff --git a/packages/autorest.typescript/test/integration/generated/storagefileshare/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/storagefileshare/src/operationsInterfaces/index.ts index 375123f78e..4864586cb5 100644 --- a/packages/autorest.typescript/test/integration/generated/storagefileshare/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/storagefileshare/src/operationsInterfaces/index.ts @@ -1 +1 @@ -export * from "./file"; +export * from "./file.js"; diff --git a/packages/autorest.typescript/test/integration/generated/storagefileshare/src/storageFileShareClient.ts b/packages/autorest.typescript/test/integration/generated/storagefileshare/src/storageFileShareClient.ts index 407ca6a762..b6dcd7abca 100644 --- a/packages/autorest.typescript/test/integration/generated/storagefileshare/src/storageFileShareClient.ts +++ b/packages/autorest.typescript/test/integration/generated/storagefileshare/src/storageFileShareClient.ts @@ -1,7 +1,7 @@ import * as coreClient from "@azure/core-client"; -import { FileImpl } from "./operations"; -import { File } from "./operationsInterfaces"; -import { StorageFileShareClientOptionalParams } from "./models"; +import { FileImpl } from "./operations/index.js"; +import { File } from "./operationsInterfaces/index.js"; +import { StorageFileShareClientOptionalParams } from "./models/index.js"; export class StorageFileShareClient extends coreClient.ServiceClient { url: string; diff --git a/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/index.ts b/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/index.ts index 84314295c4..8146c59b62 100644 --- a/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { SubscriptionIdApiVersionClient } from "./subscriptionIdApiVersionClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { SubscriptionIdApiVersionClient } from "./subscriptionIdApiVersionClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/operations/group.ts b/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/operations/group.ts index 95f406299c..ce5ac5e360 100644 --- a/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/operations/group.ts +++ b/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/operations/group.ts @@ -6,15 +6,15 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Group } from "../operationsInterfaces"; +import { Group } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SubscriptionIdApiVersionClient } from "../subscriptionIdApiVersionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { SubscriptionIdApiVersionClient } from "../subscriptionIdApiVersionClient.js"; import { GroupGetSampleResourceGroupOptionalParams, GroupGetSampleResourceGroupResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Group operations. */ export class GroupImpl implements Group { diff --git a/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/operations/index.ts index 50acbfeb29..17378cf547 100644 --- a/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./group"; +export * from "./group.js"; diff --git a/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/operationsInterfaces/group.ts b/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/operationsInterfaces/group.ts index 4b4931ca28..ecc2b2ed7c 100644 --- a/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/operationsInterfaces/group.ts +++ b/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/operationsInterfaces/group.ts @@ -9,7 +9,7 @@ import { GroupGetSampleResourceGroupOptionalParams, GroupGetSampleResourceGroupResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Group. */ export interface Group { diff --git a/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/operationsInterfaces/index.ts index 50acbfeb29..17378cf547 100644 --- a/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./group"; +export * from "./group.js"; diff --git a/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/subscriptionIdApiVersionClient.ts b/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/subscriptionIdApiVersionClient.ts index 06f0c2baac..4c8a6e6aa2 100644 --- a/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/subscriptionIdApiVersionClient.ts +++ b/packages/autorest.typescript/test/integration/generated/subscriptionIdApiVersion/src/subscriptionIdApiVersionClient.ts @@ -12,9 +12,9 @@ import { PipelineResponse, SendRequest, } from "@azure/core-rest-pipeline"; -import { GroupImpl } from "./operations"; -import { Group } from "./operationsInterfaces"; -import { SubscriptionIdApiVersionClientOptionalParams } from "./models"; +import { GroupImpl } from "./operations/index.js"; +import { Group } from "./operationsInterfaces/index.js"; +import { SubscriptionIdApiVersionClientOptionalParams } from "./models/index.js"; export class SubscriptionIdApiVersionClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/textanalytics/src/generatedClient.ts b/packages/autorest.typescript/test/integration/generated/textanalytics/src/generatedClient.ts index 53a0129cee..b6f4b30cd8 100644 --- a/packages/autorest.typescript/test/integration/generated/textanalytics/src/generatedClient.ts +++ b/packages/autorest.typescript/test/integration/generated/textanalytics/src/generatedClient.ts @@ -7,8 +7,8 @@ */ import * as coreClient from "@azure/core-client"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; +import * as Parameters from "./models/parameters.js"; +import * as Mappers from "./models/mappers.js"; import { GeneratedClientOptionalParams, AnalyzeOptionalParams, @@ -35,7 +35,7 @@ import { LanguagesResponse, SentimentOptionalParams, SentimentOperationResponse, -} from "./models"; +} from "./models/index.js"; /** @internal */ export class GeneratedClient extends coreClient.ServiceClient { diff --git a/packages/autorest.typescript/test/integration/generated/textanalytics/src/index.ts b/packages/autorest.typescript/test/integration/generated/textanalytics/src/index.ts index 657fb6d642..a26e8ed073 100644 --- a/packages/autorest.typescript/test/integration/generated/textanalytics/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/textanalytics/src/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { GeneratedClient } from "./generatedClient"; +export * from "./models/index.js"; +export { GeneratedClient } from "./generatedClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/textanalytics/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/textanalytics/src/models/parameters.ts index eb4718466a..e940eba0eb 100644 --- a/packages/autorest.typescript/test/integration/generated/textanalytics/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/textanalytics/src/models/parameters.ts @@ -15,7 +15,7 @@ import { AnalyzeBatchInput as AnalyzeBatchInputMapper, MultiLanguageBatchInput as MultiLanguageBatchInputMapper, LanguageBatchInput as LanguageBatchInputMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const contentType: OperationParameter = { parameterPath: ["options", "contentType"], diff --git a/packages/autorest.typescript/test/integration/generated/url/src/index.ts b/packages/autorest.typescript/test/integration/generated/url/src/index.ts index 16bc9dbd78..b5a8eb62d0 100644 --- a/packages/autorest.typescript/test/integration/generated/url/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/url/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { UrlClient } from "./urlClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { UrlClient } from "./urlClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/url/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/url/src/operations/index.ts index a939276c10..13d7915ca8 100644 --- a/packages/autorest.typescript/test/integration/generated/url/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/url/src/operations/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./paths"; -export * from "./queries"; -export * from "./pathItems"; +export * from "./paths.js"; +export * from "./queries.js"; +export * from "./pathItems.js"; diff --git a/packages/autorest.typescript/test/integration/generated/url/src/operations/pathItems.ts b/packages/autorest.typescript/test/integration/generated/url/src/operations/pathItems.ts index 83ef73f006..7ea09754e9 100644 --- a/packages/autorest.typescript/test/integration/generated/url/src/operations/pathItems.ts +++ b/packages/autorest.typescript/test/integration/generated/url/src/operations/pathItems.ts @@ -6,17 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PathItems } from "../operationsInterfaces"; +import { PathItems } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { UrlClient } from "../urlClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { UrlClient } from "../urlClient.js"; import { PathItemsGetAllWithValuesOptionalParams, PathItemsGetGlobalQueryNullOptionalParams, PathItemsGetGlobalAndLocalQueryNullOptionalParams, PathItemsGetLocalPathItemQueryNullOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing PathItems operations. */ export class PathItemsImpl implements PathItems { diff --git a/packages/autorest.typescript/test/integration/generated/url/src/operations/paths.ts b/packages/autorest.typescript/test/integration/generated/url/src/operations/paths.ts index ce4b3a18a6..fc2fc60a66 100644 --- a/packages/autorest.typescript/test/integration/generated/url/src/operations/paths.ts +++ b/packages/autorest.typescript/test/integration/generated/url/src/operations/paths.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Paths } from "../operationsInterfaces"; +import { Paths } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { UrlClient } from "../urlClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { UrlClient } from "../urlClient.js"; import { PathsGetBooleanTrueOptionalParams, PathsGetBooleanFalseOptionalParams, @@ -40,7 +40,7 @@ import { PathsBase64UrlOptionalParams, PathsArrayCsvInPathOptionalParams, PathsUnixTimeUrlOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Paths operations. */ export class PathsImpl implements Paths { diff --git a/packages/autorest.typescript/test/integration/generated/url/src/operations/queries.ts b/packages/autorest.typescript/test/integration/generated/url/src/operations/queries.ts index 57933c85cf..39a9240db8 100644 --- a/packages/autorest.typescript/test/integration/generated/url/src/operations/queries.ts +++ b/packages/autorest.typescript/test/integration/generated/url/src/operations/queries.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Queries } from "../operationsInterfaces"; +import { Queries } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { UrlClient } from "../urlClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { UrlClient } from "../urlClient.js"; import { QueriesGetBooleanTrueOptionalParams, QueriesGetBooleanFalseOptionalParams, @@ -47,7 +47,7 @@ import { QueriesArrayStringSsvValidOptionalParams, QueriesArrayStringTsvValidOptionalParams, QueriesArrayStringPipesValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Queries operations. */ export class QueriesImpl implements Queries { diff --git a/packages/autorest.typescript/test/integration/generated/url/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/url/src/operationsInterfaces/index.ts index a939276c10..13d7915ca8 100644 --- a/packages/autorest.typescript/test/integration/generated/url/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/url/src/operationsInterfaces/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./paths"; -export * from "./queries"; -export * from "./pathItems"; +export * from "./paths.js"; +export * from "./queries.js"; +export * from "./pathItems.js"; diff --git a/packages/autorest.typescript/test/integration/generated/url/src/operationsInterfaces/pathItems.ts b/packages/autorest.typescript/test/integration/generated/url/src/operationsInterfaces/pathItems.ts index 79121bb006..ec192591dc 100644 --- a/packages/autorest.typescript/test/integration/generated/url/src/operationsInterfaces/pathItems.ts +++ b/packages/autorest.typescript/test/integration/generated/url/src/operationsInterfaces/pathItems.ts @@ -11,7 +11,7 @@ import { PathItemsGetGlobalQueryNullOptionalParams, PathItemsGetGlobalAndLocalQueryNullOptionalParams, PathItemsGetLocalPathItemQueryNullOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a PathItems. */ export interface PathItems { diff --git a/packages/autorest.typescript/test/integration/generated/url/src/operationsInterfaces/paths.ts b/packages/autorest.typescript/test/integration/generated/url/src/operationsInterfaces/paths.ts index 5e6c3fd2ae..953a483d33 100644 --- a/packages/autorest.typescript/test/integration/generated/url/src/operationsInterfaces/paths.ts +++ b/packages/autorest.typescript/test/integration/generated/url/src/operationsInterfaces/paths.ts @@ -35,7 +35,7 @@ import { PathsBase64UrlOptionalParams, PathsArrayCsvInPathOptionalParams, PathsUnixTimeUrlOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Paths. */ export interface Paths { diff --git a/packages/autorest.typescript/test/integration/generated/url/src/operationsInterfaces/queries.ts b/packages/autorest.typescript/test/integration/generated/url/src/operationsInterfaces/queries.ts index 57fd28444e..f457b93f1a 100644 --- a/packages/autorest.typescript/test/integration/generated/url/src/operationsInterfaces/queries.ts +++ b/packages/autorest.typescript/test/integration/generated/url/src/operationsInterfaces/queries.ts @@ -42,7 +42,7 @@ import { QueriesArrayStringSsvValidOptionalParams, QueriesArrayStringTsvValidOptionalParams, QueriesArrayStringPipesValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Queries. */ export interface Queries { diff --git a/packages/autorest.typescript/test/integration/generated/url/src/urlClient.ts b/packages/autorest.typescript/test/integration/generated/url/src/urlClient.ts index aebcfbfc9d..e4678110c6 100644 --- a/packages/autorest.typescript/test/integration/generated/url/src/urlClient.ts +++ b/packages/autorest.typescript/test/integration/generated/url/src/urlClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { PathsImpl, QueriesImpl, PathItemsImpl } from "./operations"; -import { Paths, Queries, PathItems } from "./operationsInterfaces"; -import { UrlClientOptionalParams } from "./models"; +import { PathsImpl, QueriesImpl, PathItemsImpl } from "./operations/index.js"; +import { Paths, Queries, PathItems } from "./operationsInterfaces/index.js"; +import { UrlClientOptionalParams } from "./models/index.js"; export class UrlClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/url2/src/index.ts b/packages/autorest.typescript/test/integration/generated/url2/src/index.ts index 16bc9dbd78..b5a8eb62d0 100644 --- a/packages/autorest.typescript/test/integration/generated/url2/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/url2/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { UrlClient } from "./urlClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { UrlClient } from "./urlClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/url2/src/operations/get.ts b/packages/autorest.typescript/test/integration/generated/url2/src/operations/get.ts index 03030ae51f..0bce691f7b 100644 --- a/packages/autorest.typescript/test/integration/generated/url2/src/operations/get.ts +++ b/packages/autorest.typescript/test/integration/generated/url2/src/operations/get.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Get } from "../operationsInterfaces"; +import { Get } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Parameters from "../models/parameters"; -import { UrlClient } from "../urlClient"; -import { GetUrlOptionalParams, GetUrlResponse } from "../models"; +import * as Parameters from "../models/parameters.js"; +import { UrlClient } from "../urlClient.js"; +import { GetUrlOptionalParams, GetUrlResponse } from "../models/index.js"; /** Class containing Get operations. */ export class GetImpl implements Get { diff --git a/packages/autorest.typescript/test/integration/generated/url2/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/url2/src/operations/index.ts index 07f724f5bd..91fd0d284c 100644 --- a/packages/autorest.typescript/test/integration/generated/url2/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/url2/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./get"; +export * from "./get.js"; diff --git a/packages/autorest.typescript/test/integration/generated/url2/src/operationsInterfaces/get.ts b/packages/autorest.typescript/test/integration/generated/url2/src/operationsInterfaces/get.ts index 6671fc62c0..8b52feaa10 100644 --- a/packages/autorest.typescript/test/integration/generated/url2/src/operationsInterfaces/get.ts +++ b/packages/autorest.typescript/test/integration/generated/url2/src/operationsInterfaces/get.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { GetUrlOptionalParams, GetUrlResponse } from "../models"; +import { GetUrlOptionalParams, GetUrlResponse } from "../models/index.js"; /** Interface representing a Get. */ export interface Get { diff --git a/packages/autorest.typescript/test/integration/generated/url2/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/url2/src/operationsInterfaces/index.ts index 07f724f5bd..91fd0d284c 100644 --- a/packages/autorest.typescript/test/integration/generated/url2/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/url2/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./get"; +export * from "./get.js"; diff --git a/packages/autorest.typescript/test/integration/generated/url2/src/urlClient.ts b/packages/autorest.typescript/test/integration/generated/url2/src/urlClient.ts index fd99908719..6174f7af90 100644 --- a/packages/autorest.typescript/test/integration/generated/url2/src/urlClient.ts +++ b/packages/autorest.typescript/test/integration/generated/url2/src/urlClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { GetImpl } from "./operations"; -import { Get } from "./operationsInterfaces"; -import { UrlClientOptionalParams } from "./models"; +import { GetImpl } from "./operations/index.js"; +import { Get } from "./operationsInterfaces/index.js"; +import { UrlClientOptionalParams } from "./models/index.js"; export class UrlClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/urlMulti/src/index.ts b/packages/autorest.typescript/test/integration/generated/urlMulti/src/index.ts index 323d550fed..3375698867 100644 --- a/packages/autorest.typescript/test/integration/generated/urlMulti/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/urlMulti/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { UrlMultiClient } from "./urlMultiClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { UrlMultiClient } from "./urlMultiClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/urlMulti/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/urlMulti/src/operations/index.ts index 663a2afc8b..781a80d4a4 100644 --- a/packages/autorest.typescript/test/integration/generated/urlMulti/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/urlMulti/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./queries"; +export * from "./queries.js"; diff --git a/packages/autorest.typescript/test/integration/generated/urlMulti/src/operations/queries.ts b/packages/autorest.typescript/test/integration/generated/urlMulti/src/operations/queries.ts index 08f16539af..96f8ee6c36 100644 --- a/packages/autorest.typescript/test/integration/generated/urlMulti/src/operations/queries.ts +++ b/packages/autorest.typescript/test/integration/generated/urlMulti/src/operations/queries.ts @@ -6,16 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Queries } from "../operationsInterfaces"; +import { Queries } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { UrlMultiClient } from "../urlMultiClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { UrlMultiClient } from "../urlMultiClient.js"; import { QueriesArrayStringMultiNullOptionalParams, QueriesArrayStringMultiEmptyOptionalParams, QueriesArrayStringMultiValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Queries operations. */ export class QueriesImpl implements Queries { diff --git a/packages/autorest.typescript/test/integration/generated/urlMulti/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/urlMulti/src/operationsInterfaces/index.ts index 663a2afc8b..781a80d4a4 100644 --- a/packages/autorest.typescript/test/integration/generated/urlMulti/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/urlMulti/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./queries"; +export * from "./queries.js"; diff --git a/packages/autorest.typescript/test/integration/generated/urlMulti/src/operationsInterfaces/queries.ts b/packages/autorest.typescript/test/integration/generated/urlMulti/src/operationsInterfaces/queries.ts index 0672f7350a..084cbbd7b0 100644 --- a/packages/autorest.typescript/test/integration/generated/urlMulti/src/operationsInterfaces/queries.ts +++ b/packages/autorest.typescript/test/integration/generated/urlMulti/src/operationsInterfaces/queries.ts @@ -10,7 +10,7 @@ import { QueriesArrayStringMultiNullOptionalParams, QueriesArrayStringMultiEmptyOptionalParams, QueriesArrayStringMultiValidOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Queries. */ export interface Queries { diff --git a/packages/autorest.typescript/test/integration/generated/urlMulti/src/urlMultiClient.ts b/packages/autorest.typescript/test/integration/generated/urlMulti/src/urlMultiClient.ts index 080be3e989..cb1fd64265 100644 --- a/packages/autorest.typescript/test/integration/generated/urlMulti/src/urlMultiClient.ts +++ b/packages/autorest.typescript/test/integration/generated/urlMulti/src/urlMultiClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { QueriesImpl } from "./operations"; -import { Queries } from "./operationsInterfaces"; -import { UrlMultiClientOptionalParams } from "./models"; +import { QueriesImpl } from "./operations/index.js"; +import { Queries } from "./operationsInterfaces/index.js"; +import { UrlMultiClientOptionalParams } from "./models/index.js"; export class UrlMultiClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/index.ts b/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/index.ts index 93fea1e1df..c33b798d29 100644 --- a/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { UserAgentCoreV1Client } from "./userAgentCoreV1Client"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { UserAgentCoreV1Client } from "./userAgentCoreV1Client.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/operations/group.ts b/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/operations/group.ts index d1186a095d..231862ca26 100644 --- a/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/operations/group.ts +++ b/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/operations/group.ts @@ -6,15 +6,15 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Group } from "../operationsInterfaces"; +import { Group } from "../operationsInterfaces/index.js"; import * as coreHttp from "@azure/core-http"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { UserAgentCoreV1Client } from "../userAgentCoreV1Client"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { UserAgentCoreV1Client } from "../userAgentCoreV1Client.js"; import { GroupGetSampleResourceGroupOptionalParams, GroupGetSampleResourceGroupResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Group operations. */ export class GroupImpl implements Group { diff --git a/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/operations/index.ts index 50acbfeb29..17378cf547 100644 --- a/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./group"; +export * from "./group.js"; diff --git a/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/operationsInterfaces/group.ts b/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/operationsInterfaces/group.ts index 4b4931ca28..ecc2b2ed7c 100644 --- a/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/operationsInterfaces/group.ts +++ b/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/operationsInterfaces/group.ts @@ -9,7 +9,7 @@ import { GroupGetSampleResourceGroupOptionalParams, GroupGetSampleResourceGroupResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Group. */ export interface Group { diff --git a/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/operationsInterfaces/index.ts index 50acbfeb29..17378cf547 100644 --- a/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./group"; +export * from "./group.js"; diff --git a/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/userAgentCoreV1Client.ts b/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/userAgentCoreV1Client.ts index 00a79149d8..9bfed3b740 100644 --- a/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/userAgentCoreV1Client.ts +++ b/packages/autorest.typescript/test/integration/generated/useragentcorev1/src/userAgentCoreV1Client.ts @@ -7,9 +7,9 @@ */ import * as coreHttp from "@azure/core-http"; -import { GroupImpl } from "./operations"; -import { Group } from "./operationsInterfaces"; -import { UserAgentCoreV1ClientOptionalParams } from "./models"; +import { GroupImpl } from "./operations/index.js"; +import { Group } from "./operationsInterfaces/index.js"; +import { UserAgentCoreV1ClientOptionalParams } from "./models/index.js"; const packageName = "@msinternal/useragent-corev1"; const packageVersion = "1.0.0-preview1"; diff --git a/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/index.ts b/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/index.ts index 542d1e958f..8fa886fecc 100644 --- a/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { UserAgentCoreV2Client } from "./userAgentCoreV2Client"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { UserAgentCoreV2Client } from "./userAgentCoreV2Client.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/operations/group.ts b/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/operations/group.ts index 6d259a5b3b..2749597663 100644 --- a/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/operations/group.ts +++ b/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/operations/group.ts @@ -6,15 +6,15 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Group } from "../operationsInterfaces"; +import { Group } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { UserAgentCoreV2Client } from "../userAgentCoreV2Client"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { UserAgentCoreV2Client } from "../userAgentCoreV2Client.js"; import { GroupGetSampleResourceGroupOptionalParams, GroupGetSampleResourceGroupResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Group operations. */ export class GroupImpl implements Group { diff --git a/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/operations/index.ts index 50acbfeb29..17378cf547 100644 --- a/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./group"; +export * from "./group.js"; diff --git a/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/operationsInterfaces/group.ts b/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/operationsInterfaces/group.ts index 4b4931ca28..ecc2b2ed7c 100644 --- a/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/operationsInterfaces/group.ts +++ b/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/operationsInterfaces/group.ts @@ -9,7 +9,7 @@ import { GroupGetSampleResourceGroupOptionalParams, GroupGetSampleResourceGroupResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Group. */ export interface Group { diff --git a/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/operationsInterfaces/index.ts index 50acbfeb29..17378cf547 100644 --- a/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./group"; +export * from "./group.js"; diff --git a/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/userAgentCoreV2Client.ts b/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/userAgentCoreV2Client.ts index e0d9c6c258..1f1c8987cc 100644 --- a/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/userAgentCoreV2Client.ts +++ b/packages/autorest.typescript/test/integration/generated/useragentcorev2/src/userAgentCoreV2Client.ts @@ -12,9 +12,9 @@ import { PipelineResponse, SendRequest, } from "@azure/core-rest-pipeline"; -import { GroupImpl } from "./operations"; -import { Group } from "./operationsInterfaces"; -import { UserAgentCoreV2ClientOptionalParams } from "./models"; +import { GroupImpl } from "./operations/index.js"; +import { Group } from "./operationsInterfaces/index.js"; +import { UserAgentCoreV2ClientOptionalParams } from "./models/index.js"; export class UserAgentCoreV2Client extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/uuid/src/index.ts b/packages/autorest.typescript/test/integration/generated/uuid/src/index.ts index 145f796645..52b5683181 100644 --- a/packages/autorest.typescript/test/integration/generated/uuid/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/uuid/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { UuidClient } from "./uuidClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { UuidClient } from "./uuidClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/uuid/src/operations/get.ts b/packages/autorest.typescript/test/integration/generated/uuid/src/operations/get.ts index b3369dff9c..664f52e52a 100644 --- a/packages/autorest.typescript/test/integration/generated/uuid/src/operations/get.ts +++ b/packages/autorest.typescript/test/integration/generated/uuid/src/operations/get.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Get } from "../operationsInterfaces"; +import { Get } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Parameters from "../models/parameters"; -import { UuidClient } from "../uuidClient"; -import { GetUuidOptionalParams, GetUuidResponse } from "../models"; +import * as Parameters from "../models/parameters.js"; +import { UuidClient } from "../uuidClient.js"; +import { GetUuidOptionalParams, GetUuidResponse } from "../models/index.js"; /** Class containing Get operations. */ export class GetImpl implements Get { diff --git a/packages/autorest.typescript/test/integration/generated/uuid/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/uuid/src/operations/index.ts index 07f724f5bd..91fd0d284c 100644 --- a/packages/autorest.typescript/test/integration/generated/uuid/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/uuid/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./get"; +export * from "./get.js"; diff --git a/packages/autorest.typescript/test/integration/generated/uuid/src/operationsInterfaces/get.ts b/packages/autorest.typescript/test/integration/generated/uuid/src/operationsInterfaces/get.ts index 8731a3c50c..547d04faef 100644 --- a/packages/autorest.typescript/test/integration/generated/uuid/src/operationsInterfaces/get.ts +++ b/packages/autorest.typescript/test/integration/generated/uuid/src/operationsInterfaces/get.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { GetUuidOptionalParams, GetUuidResponse } from "../models"; +import { GetUuidOptionalParams, GetUuidResponse } from "../models/index.js"; /** Interface representing a Get. */ export interface Get { diff --git a/packages/autorest.typescript/test/integration/generated/uuid/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/uuid/src/operationsInterfaces/index.ts index 07f724f5bd..91fd0d284c 100644 --- a/packages/autorest.typescript/test/integration/generated/uuid/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/uuid/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./get"; +export * from "./get.js"; diff --git a/packages/autorest.typescript/test/integration/generated/uuid/src/uuidClient.ts b/packages/autorest.typescript/test/integration/generated/uuid/src/uuidClient.ts index 583c9ce54f..ca252dbc3c 100644 --- a/packages/autorest.typescript/test/integration/generated/uuid/src/uuidClient.ts +++ b/packages/autorest.typescript/test/integration/generated/uuid/src/uuidClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { GetImpl } from "./operations"; -import { Get } from "./operationsInterfaces"; -import { UuidClientOptionalParams } from "./models"; +import { GetImpl } from "./operations/index.js"; +import { Get } from "./operationsInterfaces/index.js"; +import { UuidClientOptionalParams } from "./models/index.js"; export class UuidClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/validation/src/index.ts b/packages/autorest.typescript/test/integration/generated/validation/src/index.ts index 758a222c7f..c28611a371 100644 --- a/packages/autorest.typescript/test/integration/generated/validation/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/validation/src/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { ValidationClient } from "./validationClient"; +export * from "./models/index.js"; +export { ValidationClient } from "./validationClient.js"; diff --git a/packages/autorest.typescript/test/integration/generated/validation/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/validation/src/models/parameters.ts index f444bc9b0b..73ea97fc1b 100644 --- a/packages/autorest.typescript/test/integration/generated/validation/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/validation/src/models/parameters.ts @@ -11,7 +11,7 @@ import { OperationURLParameter, OperationQueryParameter, } from "@azure/core-client"; -import { Product as ProductMapper } from "../models/mappers"; +import { Product as ProductMapper } from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/packages/autorest.typescript/test/integration/generated/validation/src/validationClient.ts b/packages/autorest.typescript/test/integration/generated/validation/src/validationClient.ts index 7704d0d6c7..ebc323d648 100644 --- a/packages/autorest.typescript/test/integration/generated/validation/src/validationClient.ts +++ b/packages/autorest.typescript/test/integration/generated/validation/src/validationClient.ts @@ -7,8 +7,8 @@ */ import * as coreClient from "@azure/core-client"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; +import * as Parameters from "./models/parameters.js"; +import * as Mappers from "./models/mappers.js"; import { ValidationClientOptionalParams, ValidationOfMethodParametersOptionalParams, @@ -18,7 +18,7 @@ import { GetWithConstantInPathOptionalParams, PostWithConstantInBodyOptionalParams, PostWithConstantInBodyResponse, -} from "./models"; +} from "./models/index.js"; export class ValidationClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/xmlservice/src/index.ts b/packages/autorest.typescript/test/integration/generated/xmlservice/src/index.ts index 807b7026da..2c64c00c51 100644 --- a/packages/autorest.typescript/test/integration/generated/xmlservice/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/xmlservice/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { XmlServiceClient } from "./xmlServiceClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { XmlServiceClient } from "./xmlServiceClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/xmlservice/src/models/parameters.ts b/packages/autorest.typescript/test/integration/generated/xmlservice/src/models/parameters.ts index d67ca4c1ed..f699521b0a 100644 --- a/packages/autorest.typescript/test/integration/generated/xmlservice/src/models/parameters.ts +++ b/packages/autorest.typescript/test/integration/generated/xmlservice/src/models/parameters.ts @@ -21,7 +21,7 @@ import { JsonInput as JsonInputMapper, ModelWithByteProperty as ModelWithBytePropertyMapper, ModelWithUrlProperty as ModelWithUrlPropertyMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/packages/autorest.typescript/test/integration/generated/xmlservice/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/xmlservice/src/operations/index.ts index 6076b91121..1d5665cc26 100644 --- a/packages/autorest.typescript/test/integration/generated/xmlservice/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/xmlservice/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./xml"; +export * from "./xml.js"; diff --git a/packages/autorest.typescript/test/integration/generated/xmlservice/src/operations/xml.ts b/packages/autorest.typescript/test/integration/generated/xmlservice/src/operations/xml.ts index 02465c8927..3dae49e1b8 100644 --- a/packages/autorest.typescript/test/integration/generated/xmlservice/src/operations/xml.ts +++ b/packages/autorest.typescript/test/integration/generated/xmlservice/src/operations/xml.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Xml } from "../operationsInterfaces"; +import { Xml } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { XmlServiceClient } from "../xmlServiceClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { XmlServiceClient } from "../xmlServiceClient.js"; import { XmlGetComplexTypeRefNoMetaOptionalParams, XmlGetComplexTypeRefNoMetaResponse, @@ -75,7 +75,7 @@ import { XmlGetUriResponse, ModelWithUrlProperty, XmlPutUriOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Xml operations. */ export class XmlImpl implements Xml { diff --git a/packages/autorest.typescript/test/integration/generated/xmlservice/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/xmlservice/src/operationsInterfaces/index.ts index 6076b91121..1d5665cc26 100644 --- a/packages/autorest.typescript/test/integration/generated/xmlservice/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/xmlservice/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./xml"; +export * from "./xml.js"; diff --git a/packages/autorest.typescript/test/integration/generated/xmlservice/src/operationsInterfaces/xml.ts b/packages/autorest.typescript/test/integration/generated/xmlservice/src/operationsInterfaces/xml.ts index 8f648eedb0..97c54fa7d4 100644 --- a/packages/autorest.typescript/test/integration/generated/xmlservice/src/operationsInterfaces/xml.ts +++ b/packages/autorest.typescript/test/integration/generated/xmlservice/src/operationsInterfaces/xml.ts @@ -70,7 +70,7 @@ import { XmlGetUriResponse, ModelWithUrlProperty, XmlPutUriOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Xml. */ export interface Xml { diff --git a/packages/autorest.typescript/test/integration/generated/xmlservice/src/xmlServiceClient.ts b/packages/autorest.typescript/test/integration/generated/xmlservice/src/xmlServiceClient.ts index 8075b5ab4b..e230f39c17 100644 --- a/packages/autorest.typescript/test/integration/generated/xmlservice/src/xmlServiceClient.ts +++ b/packages/autorest.typescript/test/integration/generated/xmlservice/src/xmlServiceClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { XmlImpl } from "./operations"; -import { Xml } from "./operationsInterfaces"; -import { XmlServiceClientOptionalParams } from "./models"; +import { XmlImpl } from "./operations/index.js"; +import { Xml } from "./operationsInterfaces/index.js"; +import { XmlServiceClientOptionalParams } from "./models/index.js"; export class XmlServiceClient extends coreClient.ServiceClient { $host: string; diff --git a/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/index.ts b/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/index.ts index 9322e6f442..1ab032e56a 100644 --- a/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/index.ts +++ b/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { XmsErrorResponsesClient } from "./xmsErrorResponsesClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { XmsErrorResponsesClient } from "./xmsErrorResponsesClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/operations/index.ts b/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/operations/index.ts index eed4a3ce68..888a27a413 100644 --- a/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/operations/index.ts +++ b/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./pet"; +export * from "./pet.js"; diff --git a/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/operations/pet.ts b/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/operations/pet.ts index 78acf5d776..af58bb2caa 100644 --- a/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/operations/pet.ts +++ b/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/operations/pet.ts @@ -6,18 +6,18 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Pet } from "../operationsInterfaces"; +import { Pet } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { XmsErrorResponsesClient } from "../xmsErrorResponsesClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { XmsErrorResponsesClient } from "../xmsErrorResponsesClient.js"; import { PetGetPetByIdOptionalParams, PetGetPetByIdResponse, PetDoSomethingOptionalParams, PetDoSomethingResponse, PetHasModelsParamOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing Pet operations. */ export class PetImpl implements Pet { diff --git a/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/operationsInterfaces/index.ts index eed4a3ce68..888a27a413 100644 --- a/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./pet"; +export * from "./pet.js"; diff --git a/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/operationsInterfaces/pet.ts b/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/operationsInterfaces/pet.ts index 7d6b06a587..c37fa3530d 100644 --- a/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/operationsInterfaces/pet.ts +++ b/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/operationsInterfaces/pet.ts @@ -12,7 +12,7 @@ import { PetDoSomethingOptionalParams, PetDoSomethingResponse, PetHasModelsParamOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Pet. */ export interface Pet { diff --git a/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/xmsErrorResponsesClient.ts b/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/xmsErrorResponsesClient.ts index 2b5d1dd36c..6b66393c34 100644 --- a/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/xmsErrorResponsesClient.ts +++ b/packages/autorest.typescript/test/integration/generated/xmsErrorResponses/src/xmsErrorResponsesClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import { PetImpl } from "./operations"; -import { Pet } from "./operationsInterfaces"; -import { XmsErrorResponsesClientOptionalParams } from "./models"; +import { PetImpl } from "./operations/index.js"; +import { Pet } from "./operationsInterfaces/index.js"; +import { XmsErrorResponsesClientOptionalParams } from "./models/index.js"; export class XmsErrorResponsesClient extends coreClient.ServiceClient { $host: string;