@typespec/http-client-csharp 0.1.9-alpha.20250214.2 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/package.json +38 -38
- package/readme.md +10 -12
- package/dist/emitter/constants.d.ts +0 -11
- package/dist/emitter/constants.d.ts.map +0 -1
- package/dist/emitter/constants.js +0 -18
- package/dist/emitter/constants.js.map +0 -1
- package/dist/emitter/emitter.d.ts +0 -19
- package/dist/emitter/emitter.d.ts.map +0 -1
- package/dist/emitter/emitter.js +0 -239
- package/dist/emitter/emitter.js.map +0 -1
- package/dist/emitter/index.d.ts +0 -10
- package/dist/emitter/index.d.ts.map +0 -1
- package/dist/emitter/index.js +0 -11
- package/dist/emitter/index.js.map +0 -1
- package/dist/emitter/lib/client-model-builder.d.ts +0 -10
- package/dist/emitter/lib/client-model-builder.d.ts.map +0 -1
- package/dist/emitter/lib/client-model-builder.js +0 -161
- package/dist/emitter/lib/client-model-builder.js.map +0 -1
- package/dist/emitter/lib/decorators.d.ts +0 -10
- package/dist/emitter/lib/decorators.d.ts.map +0 -1
- package/dist/emitter/lib/decorators.js +0 -17
- package/dist/emitter/lib/decorators.js.map +0 -1
- package/dist/emitter/lib/example-converter.d.ts +0 -7
- package/dist/emitter/lib/example-converter.d.ts.map +0 -1
- package/dist/emitter/lib/example-converter.js +0 -131
- package/dist/emitter/lib/example-converter.js.map +0 -1
- package/dist/emitter/lib/lib.d.ts +0 -32
- package/dist/emitter/lib/lib.d.ts.map +0 -1
- package/dist/emitter/lib/lib.js +0 -109
- package/dist/emitter/lib/lib.js.map +0 -1
- package/dist/emitter/lib/logger-level.d.ts +0 -10
- package/dist/emitter/lib/logger-level.d.ts.map +0 -1
- package/dist/emitter/lib/logger-level.js +0 -13
- package/dist/emitter/lib/logger-level.js.map +0 -1
- package/dist/emitter/lib/logger.d.ts +0 -20
- package/dist/emitter/lib/logger.d.ts.map +0 -1
- package/dist/emitter/lib/logger.js +0 -54
- package/dist/emitter/lib/logger.js.map +0 -1
- package/dist/emitter/lib/model.d.ts +0 -8
- package/dist/emitter/lib/model.d.ts.map +0 -1
- package/dist/emitter/lib/model.js +0 -37
- package/dist/emitter/lib/model.js.map +0 -1
- package/dist/emitter/lib/operation-converter.d.ts +0 -8
- package/dist/emitter/lib/operation-converter.d.ts.map +0 -1
- package/dist/emitter/lib/operation-converter.js +0 -316
- package/dist/emitter/lib/operation-converter.js.map +0 -1
- package/dist/emitter/lib/service-authentication.d.ts +0 -5
- package/dist/emitter/lib/service-authentication.d.ts.map +0 -1
- package/dist/emitter/lib/service-authentication.js +0 -102
- package/dist/emitter/lib/service-authentication.js.map +0 -1
- package/dist/emitter/lib/type-converter.d.ts +0 -8
- package/dist/emitter/lib/type-converter.d.ts.map +0 -1
- package/dist/emitter/lib/type-converter.js +0 -332
- package/dist/emitter/lib/type-converter.js.map +0 -1
- package/dist/emitter/lib/typespec-server.d.ts +0 -10
- package/dist/emitter/lib/typespec-server.d.ts.map +0 -1
- package/dist/emitter/lib/typespec-server.js +0 -90
- package/dist/emitter/lib/typespec-server.js.map +0 -1
- package/dist/emitter/lib/utils.d.ts +0 -9
- package/dist/emitter/lib/utils.d.ts.map +0 -1
- package/dist/emitter/lib/utils.js +0 -30
- package/dist/emitter/lib/utils.js.map +0 -1
- package/dist/emitter/options.d.ts +0 -73
- package/dist/emitter/options.d.ts.map +0 -1
- package/dist/emitter/options.js +0 -87
- package/dist/emitter/options.js.map +0 -1
- package/dist/emitter/sdk-context-options.d.ts +0 -9
- package/dist/emitter/sdk-context-options.d.ts.map +0 -1
- package/dist/emitter/sdk-context-options.js +0 -31
- package/dist/emitter/sdk-context-options.js.map +0 -1
- package/dist/emitter/sdk-context.d.ts +0 -18
- package/dist/emitter/sdk-context.d.ts.map +0 -1
- package/dist/emitter/sdk-context.js +0 -4
- package/dist/emitter/sdk-context.js.map +0 -1
- package/dist/emitter/tsdoc-metadata.json +0 -11
- package/dist/emitter/type/body-media-type.d.ts +0 -12
- package/dist/emitter/type/body-media-type.d.ts.map +0 -1
- package/dist/emitter/type/body-media-type.js +0 -26
- package/dist/emitter/type/body-media-type.js.map +0 -1
- package/dist/emitter/type/client-kind.d.ts +0 -5
- package/dist/emitter/type/client-kind.d.ts.map +0 -1
- package/dist/emitter/type/client-kind.js +0 -8
- package/dist/emitter/type/client-kind.js.map +0 -1
- package/dist/emitter/type/code-model.d.ts +0 -12
- package/dist/emitter/type/code-model.d.ts.map +0 -1
- package/dist/emitter/type/code-model.js +0 -4
- package/dist/emitter/type/code-model.js.map +0 -1
- package/dist/emitter/type/collection-format.d.ts +0 -13
- package/dist/emitter/type/collection-format.d.ts.map +0 -1
- package/dist/emitter/type/collection-format.js +0 -22
- package/dist/emitter/type/collection-format.js.map +0 -1
- package/dist/emitter/type/configuration.d.ts +0 -7
- package/dist/emitter/type/configuration.d.ts.map +0 -1
- package/dist/emitter/type/configuration.js +0 -4
- package/dist/emitter/type/configuration.js.map +0 -1
- package/dist/emitter/type/external-docs.d.ts +0 -5
- package/dist/emitter/type/external-docs.d.ts.map +0 -1
- package/dist/emitter/type/external-docs.js +0 -4
- package/dist/emitter/type/external-docs.js.map +0 -1
- package/dist/emitter/type/http-response-header.d.ts +0 -9
- package/dist/emitter/type/http-response-header.d.ts.map +0 -1
- package/dist/emitter/type/http-response-header.js +0 -4
- package/dist/emitter/type/http-response-header.js.map +0 -1
- package/dist/emitter/type/input-api-key-auth.d.ts +0 -7
- package/dist/emitter/type/input-api-key-auth.d.ts.map +0 -1
- package/dist/emitter/type/input-api-key-auth.js +0 -4
- package/dist/emitter/type/input-api-key-auth.js.map +0 -1
- package/dist/emitter/type/input-auth.d.ts +0 -7
- package/dist/emitter/type/input-auth.d.ts.map +0 -1
- package/dist/emitter/type/input-auth.js +0 -4
- package/dist/emitter/type/input-auth.js.map +0 -1
- package/dist/emitter/type/input-client.d.ts +0 -16
- package/dist/emitter/type/input-client.d.ts.map +0 -1
- package/dist/emitter/type/input-client.js +0 -4
- package/dist/emitter/type/input-client.js.map +0 -1
- package/dist/emitter/type/input-constant.d.ts +0 -6
- package/dist/emitter/type/input-constant.d.ts.map +0 -1
- package/dist/emitter/type/input-constant.js +0 -4
- package/dist/emitter/type/input-constant.js.map +0 -1
- package/dist/emitter/type/input-examples.d.ts +0 -77
- package/dist/emitter/type/input-examples.d.ts.map +0 -1
- package/dist/emitter/type/input-examples.js +0 -4
- package/dist/emitter/type/input-examples.js.map +0 -1
- package/dist/emitter/type/input-oauth2-auth.d.ts +0 -4
- package/dist/emitter/type/input-oauth2-auth.d.ts.map +0 -1
- package/dist/emitter/type/input-oauth2-auth.js +0 -4
- package/dist/emitter/type/input-oauth2-auth.js.map +0 -1
- package/dist/emitter/type/input-operation-parameter-kind.d.ts +0 -9
- package/dist/emitter/type/input-operation-parameter-kind.d.ts.map +0 -1
- package/dist/emitter/type/input-operation-parameter-kind.js +0 -12
- package/dist/emitter/type/input-operation-parameter-kind.js.map +0 -1
- package/dist/emitter/type/input-operation.d.ts +0 -38
- package/dist/emitter/type/input-operation.d.ts.map +0 -1
- package/dist/emitter/type/input-operation.js +0 -4
- package/dist/emitter/type/input-operation.js.map +0 -1
- package/dist/emitter/type/input-parameter.d.ts +0 -30
- package/dist/emitter/type/input-parameter.d.ts.map +0 -1
- package/dist/emitter/type/input-parameter.js +0 -4
- package/dist/emitter/type/input-parameter.js.map +0 -1
- package/dist/emitter/type/input-type.d.ts +0 -120
- package/dist/emitter/type/input-type.d.ts.map +0 -1
- package/dist/emitter/type/input-type.js +0 -21
- package/dist/emitter/type/input-type.js.map +0 -1
- package/dist/emitter/type/literal-type-context.d.ts +0 -8
- package/dist/emitter/type/literal-type-context.d.ts.map +0 -1
- package/dist/emitter/type/literal-type-context.js +0 -4
- package/dist/emitter/type/literal-type-context.js.map +0 -1
- package/dist/emitter/type/operation-final-state-via.d.ts +0 -12
- package/dist/emitter/type/operation-final-state-via.d.ts.map +0 -1
- package/dist/emitter/type/operation-final-state-via.js +0 -36
- package/dist/emitter/type/operation-final-state-via.js.map +0 -1
- package/dist/emitter/type/operation-long-running.d.ts +0 -8
- package/dist/emitter/type/operation-long-running.d.ts.map +0 -1
- package/dist/emitter/type/operation-long-running.js +0 -4
- package/dist/emitter/type/operation-long-running.js.map +0 -1
- package/dist/emitter/type/operation-paging.d.ts +0 -8
- package/dist/emitter/type/operation-paging.d.ts.map +0 -1
- package/dist/emitter/type/operation-paging.js +0 -4
- package/dist/emitter/type/operation-paging.js.map +0 -1
- package/dist/emitter/type/operation-response.d.ts +0 -12
- package/dist/emitter/type/operation-response.d.ts.map +0 -1
- package/dist/emitter/type/operation-response.js +0 -4
- package/dist/emitter/type/operation-response.js.map +0 -1
- package/dist/emitter/type/protocols.d.ts +0 -3
- package/dist/emitter/type/protocols.d.ts.map +0 -1
- package/dist/emitter/type/protocols.js +0 -4
- package/dist/emitter/type/protocols.js.map +0 -1
- package/dist/emitter/type/request-location.d.ts +0 -12
- package/dist/emitter/type/request-location.d.ts.map +0 -1
- package/dist/emitter/type/request-location.js +0 -19
- package/dist/emitter/type/request-location.js.map +0 -1
- package/dist/emitter/type/request-method.d.ts +0 -13
- package/dist/emitter/type/request-method.d.ts.map +0 -1
- package/dist/emitter/type/request-method.js +0 -40
- package/dist/emitter/type/request-method.js.map +0 -1
- package/dist/emitter/type/validation-type.d.ts +0 -6
- package/dist/emitter/type/validation-type.d.ts.map +0 -1
- package/dist/emitter/type/validation-type.js +0 -9
- package/dist/emitter/type/validation-type.js.map +0 -1
- package/dist/generator/CommandLine.dll +0 -0
- package/dist/generator/Humanizer.dll +0 -0
- package/dist/generator/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
- package/dist/generator/Microsoft.Build.Framework.dll +0 -0
- package/dist/generator/Microsoft.Build.dll +0 -0
- package/dist/generator/Microsoft.CodeAnalysis.CSharp.Workspaces.dll +0 -0
- package/dist/generator/Microsoft.CodeAnalysis.CSharp.dll +0 -0
- package/dist/generator/Microsoft.CodeAnalysis.Workspaces.dll +0 -0
- package/dist/generator/Microsoft.CodeAnalysis.dll +0 -0
- package/dist/generator/Microsoft.NET.StringTools.dll +0 -0
- package/dist/generator/Microsoft.TypeSpec.Generator +0 -0
- package/dist/generator/Microsoft.TypeSpec.Generator.ClientModel.StubLibrary.deps.json +0 -819
- package/dist/generator/Microsoft.TypeSpec.Generator.ClientModel.StubLibrary.dll +0 -0
- package/dist/generator/Microsoft.TypeSpec.Generator.ClientModel.StubLibrary.pdb +0 -0
- package/dist/generator/Microsoft.TypeSpec.Generator.ClientModel.deps.json +0 -802
- package/dist/generator/Microsoft.TypeSpec.Generator.ClientModel.dll +0 -0
- package/dist/generator/Microsoft.TypeSpec.Generator.ClientModel.pdb +0 -0
- package/dist/generator/Microsoft.TypeSpec.Generator.Input.dll +0 -0
- package/dist/generator/Microsoft.TypeSpec.Generator.Input.pdb +0 -0
- package/dist/generator/Microsoft.TypeSpec.Generator.deps.json +0 -758
- package/dist/generator/Microsoft.TypeSpec.Generator.dll +0 -0
- package/dist/generator/Microsoft.TypeSpec.Generator.pdb +0 -0
- package/dist/generator/Microsoft.TypeSpec.Generator.runtimeconfig.json +0 -12
- package/dist/generator/NuGet.Common.dll +0 -0
- package/dist/generator/NuGet.Configuration.dll +0 -0
- package/dist/generator/NuGet.Frameworks.dll +0 -0
- package/dist/generator/System.ClientModel.dll +0 -0
- package/dist/generator/System.ComponentModel.Composition.dll +0 -0
- package/dist/generator/System.Composition.AttributedModel.dll +0 -0
- package/dist/generator/System.Composition.Convention.dll +0 -0
- package/dist/generator/System.Composition.Hosting.dll +0 -0
- package/dist/generator/System.Composition.Runtime.dll +0 -0
- package/dist/generator/System.Composition.TypedParts.dll +0 -0
- package/dist/generator/System.Configuration.ConfigurationManager.dll +0 -0
- package/dist/generator/System.Diagnostics.EventLog.dll +0 -0
- package/dist/generator/System.IO.Pipelines.dll +0 -0
- package/dist/generator/System.Memory.Data.dll +0 -0
- package/dist/generator/System.Reflection.MetadataLoadContext.dll +0 -0
- package/dist/generator/System.Security.Cryptography.ProtectedData.dll +0 -0
- package/dist/generator/cs/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/cs/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/cs/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/cs/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/de/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/de/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/de/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/de/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/es/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/es/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/es/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/es/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/fr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/fr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/fr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/fr/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/it/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/it/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/it/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/it/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/ja/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/ja/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/ja/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/ja/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/ko/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/ko/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/ko/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/ko/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/pl/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/pl/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/pl/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/pl/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/pt-BR/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/pt-BR/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/pt-BR/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/ru/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/ru/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/ru/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/ru/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.Messages.dll +0 -0
- package/dist/generator/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.dll +0 -0
- package/dist/generator/tr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/tr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/tr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/tr/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/zh-Hans/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/zh-Hans/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/zh-Hans/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/generator/zh-Hant/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/dist/generator/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/dist/generator/zh-Hant/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/dist/generator/zh-Hant/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/dist/typespec-http-client-csharp.d.ts +0 -458
package/dist/emitter/options.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { resolvePath } from "@typespec/compiler";
|
|
2
|
-
import { tspOutputFileName } from "./constants.js";
|
|
3
|
-
import { LoggerLevel } from "./lib/logger-level.js";
|
|
4
|
-
/**
|
|
5
|
-
* The JSON schema for the CSharp emitter options.
|
|
6
|
-
* @beta
|
|
7
|
-
*/
|
|
8
|
-
export const CSharpEmitterOptionsSchema = {
|
|
9
|
-
type: "object",
|
|
10
|
-
additionalProperties: false,
|
|
11
|
-
properties: {
|
|
12
|
-
"emitter-name": { type: "string", nullable: true },
|
|
13
|
-
"examples-directory": { type: "string", nullable: true },
|
|
14
|
-
"examples-dir": { type: "string", nullable: true },
|
|
15
|
-
"api-version": { type: "string", nullable: true },
|
|
16
|
-
outputFile: { type: "string", nullable: true },
|
|
17
|
-
logFile: { type: "string", nullable: true },
|
|
18
|
-
"unreferenced-types-handling": {
|
|
19
|
-
type: "string",
|
|
20
|
-
enum: ["removeOrInternalize", "internalize", "keepAll"],
|
|
21
|
-
nullable: true,
|
|
22
|
-
},
|
|
23
|
-
"new-project": { type: "boolean", nullable: true },
|
|
24
|
-
"clear-output-folder": { type: "boolean", nullable: true },
|
|
25
|
-
"save-inputs": { type: "boolean", nullable: true },
|
|
26
|
-
"generate-protocol-methods": { type: "boolean", nullable: true },
|
|
27
|
-
"generate-convenience-methods": { type: "boolean", nullable: true },
|
|
28
|
-
"flatten-union-as-enum": { type: "boolean", nullable: true },
|
|
29
|
-
"package-name": { type: "string", nullable: true },
|
|
30
|
-
debug: { type: "boolean", nullable: true },
|
|
31
|
-
logLevel: {
|
|
32
|
-
type: "string",
|
|
33
|
-
enum: [LoggerLevel.INFO, LoggerLevel.DEBUG, LoggerLevel.VERBOSE],
|
|
34
|
-
nullable: true,
|
|
35
|
-
},
|
|
36
|
-
"disable-xml-docs": { type: "boolean", nullable: true },
|
|
37
|
-
"plugin-name": { type: "string", nullable: true },
|
|
38
|
-
"emitter-extension-path": { type: "string", nullable: true },
|
|
39
|
-
},
|
|
40
|
-
required: [],
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* The default options for the CSharp emitter.
|
|
44
|
-
* @beta
|
|
45
|
-
*/
|
|
46
|
-
export const defaultOptions = {
|
|
47
|
-
"api-version": "latest",
|
|
48
|
-
outputFile: tspOutputFileName,
|
|
49
|
-
logFile: "log.json",
|
|
50
|
-
"new-project": false,
|
|
51
|
-
"clear-output-folder": false,
|
|
52
|
-
"save-inputs": false,
|
|
53
|
-
"generate-protocol-methods": true,
|
|
54
|
-
"generate-convenience-methods": true,
|
|
55
|
-
"package-name": undefined,
|
|
56
|
-
debug: undefined,
|
|
57
|
-
logLevel: LoggerLevel.INFO,
|
|
58
|
-
"plugin-name": "ClientModelPlugin",
|
|
59
|
-
"emitter-extension-path": undefined,
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Resolves the options for the CSharp emitter.
|
|
63
|
-
* @param context - The emit context.
|
|
64
|
-
* @returns The resolved options.
|
|
65
|
-
* @beta
|
|
66
|
-
*/
|
|
67
|
-
export function resolveOptions(context) {
|
|
68
|
-
const emitterOptions = context.options;
|
|
69
|
-
const emitterOutputDir = context.emitterOutputDir;
|
|
70
|
-
const resolvedOptions = { ...defaultOptions, ...emitterOptions };
|
|
71
|
-
const outputFolder = _resolveOutputFolder(context);
|
|
72
|
-
return {
|
|
73
|
-
...resolvedOptions,
|
|
74
|
-
outputFile: resolvePath(outputFolder, resolvedOptions.outputFile),
|
|
75
|
-
logFile: resolvePath(emitterOutputDir ?? "./tsp-output", resolvedOptions.logFile),
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Resolves the output folder for the CSharp emitter.
|
|
80
|
-
* @param context - The emit context.
|
|
81
|
-
* @returns The resolved output folder path.
|
|
82
|
-
* @internal
|
|
83
|
-
*/
|
|
84
|
-
export function _resolveOutputFolder(context) {
|
|
85
|
-
return resolvePath(context.emitterOutputDir ?? "./tsp-output");
|
|
86
|
-
}
|
|
87
|
-
//# sourceMappingURL=options.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../emitter/src/options.ts"],"names":[],"mappings":"AACA,OAAO,EAA+B,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAqBpD;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAyC;IAC9E,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QAClD,oBAAoB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QACxD,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QAClD,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EA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KContextOptions: CreateSdkContextOptions;
|
|
3
|
-
/**
|
|
4
|
-
* Sets the SDK context options to be used by the CSharp emitter.
|
|
5
|
-
* @param options - The SDK context options.
|
|
6
|
-
* @beta
|
|
7
|
-
*/
|
|
8
|
-
export declare function setSDKContextOptions(options: CreateSdkContextOptions): void;
|
|
9
|
-
//# sourceMappingURL=sdk-context-options.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sdk-context-options.d.ts","sourceRoot":"","sources":["../../emitter/src/sdk-context-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAEtF,eAAO,IAAI,wBAAwB,EAAE,uBAKpC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,uBAAuB,QAKpE"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export let defaultSDKContextOptions = {
|
|
2
|
-
versioning: {
|
|
3
|
-
previewStringRegex: /$/,
|
|
4
|
-
},
|
|
5
|
-
additionalDecorators: [],
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Sets the SDK context options to be used by the CSharp emitter.
|
|
9
|
-
* @param options - The SDK context options.
|
|
10
|
-
* @beta
|
|
11
|
-
*/
|
|
12
|
-
export function setSDKContextOptions(options) {
|
|
13
|
-
defaultSDKContextOptions = {
|
|
14
|
-
versioning: options.versioning ?? defaultSDKContextOptions.versioning,
|
|
15
|
-
additionalDecorators: appendAdditionalDecoratorsInContextOptions(options),
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
function appendAdditionalDecoratorsInContextOptions(options) {
|
|
19
|
-
if (options.additionalDecorators) {
|
|
20
|
-
if (defaultSDKContextOptions.additionalDecorators) {
|
|
21
|
-
return [...defaultSDKContextOptions.additionalDecorators, ...options.additionalDecorators];
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
return options.additionalDecorators;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
return defaultSDKContextOptions.additionalDecorators;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=sdk-context-options.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sdk-context-options.js","sourceRoot":"","sources":["../../emitter/src/sdk-context-options.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,IAAI,wBAAwB,GAA4B;IAC7D,UAAU,EAAE;QACV,kBAAkB,EAAE,GAAG;KACxB;IACD,oBAAoB,EAAE,EAAE;CACzB,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAgC;IACnE,wBAAwB,GAAG;QACzB,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,wBAAwB,CAAC,UAAU;QACrE,oBAAoB,EAAE,0CAA0C,CAAC,OAAO,CAAC;KAC1E,CAAC;AACJ,CAAC;AAED,SAAS,0CAA0C,CAAC,OAAgC;IAClF,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC;QACjC,IAAI,wBAAwB,CAAC,oBAAoB,EAAE,CAAC;YAClD,OAAO,CAAC,GAAG,wBAAwB,CAAC,oBAAoB,EAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;QAC7F,CAAC;aAAM,CAAC;YACN,OAAO,OAAO,CAAC,oBAAoB,CAAC;QACtC,CAAC;IACH,CAAC;SAAM,CAAC;QACN,OAAO,wBAAwB,CAAC,oBAAoB,CAAC;IACvD,CAAC;AACH,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { SdkContext, SdkType } from "@azure-tools/typespec-client-generator-core";
|
|
2
|
-
import { Logger } from "./lib/logger.js";
|
|
3
|
-
import { CSharpEmitterOptions } from "./options.js";
|
|
4
|
-
import { InputEnumType, InputModelType, InputType } from "./type/input-type.js";
|
|
5
|
-
/**
|
|
6
|
-
* The emitter context for the CSharp emitter.
|
|
7
|
-
* @beta
|
|
8
|
-
*/
|
|
9
|
-
export interface CSharpEmitterContext extends SdkContext<CSharpEmitterOptions> {
|
|
10
|
-
logger: Logger;
|
|
11
|
-
__typeCache: SdkTypeMap;
|
|
12
|
-
}
|
|
13
|
-
export interface SdkTypeMap {
|
|
14
|
-
types: Map<SdkType, InputType>;
|
|
15
|
-
models: Map<string, InputModelType>;
|
|
16
|
-
enums: Map<string, InputEnumType>;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=sdk-context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sdk-context.d.ts","sourceRoot":"","sources":["../../emitter/src/sdk-context.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,6CAA6C,CAAC;AAClF,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEhF;;;GAGG;AACH,MAAM,WAAW,oBAAqB,SAAQ,UAAU,CAAC,oBAAoB,CAAC;IAC5E,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,UAAU,CAAC;CACzB;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IAC/B,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACpC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;CACnC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sdk-context.js","sourceRoot":"","sources":["../../emitter/src/sdk-context.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,+FAA+F"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
-
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
-
{
|
|
4
|
-
"tsdocVersion": "0.12",
|
|
5
|
-
"toolPackages": [
|
|
6
|
-
{
|
|
7
|
-
"packageName": "@microsoft/api-extractor",
|
|
8
|
-
"packageVersion": "7.48.1"
|
|
9
|
-
}
|
|
10
|
-
]
|
|
11
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Type } from "@typespec/compiler";
|
|
2
|
-
export declare enum BodyMediaType {
|
|
3
|
-
None = "None",
|
|
4
|
-
Binary = "Binary",
|
|
5
|
-
Form = "Form",
|
|
6
|
-
Json = "Json",
|
|
7
|
-
Multipart = "Multipart",
|
|
8
|
-
Text = "Text",
|
|
9
|
-
Xml = "Xml"
|
|
10
|
-
}
|
|
11
|
-
export declare function typeToBodyMediaType(type: Type | undefined): BodyMediaType.None | BodyMediaType.Binary | BodyMediaType.Json | BodyMediaType.Text;
|
|
12
|
-
//# sourceMappingURL=body-media-type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"body-media-type.d.ts","sourceRoot":"","sources":["../../../emitter/src/type/body-media-type.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,uFAazD"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export var BodyMediaType;
|
|
2
|
-
(function (BodyMediaType) {
|
|
3
|
-
BodyMediaType["None"] = "None";
|
|
4
|
-
BodyMediaType["Binary"] = "Binary";
|
|
5
|
-
BodyMediaType["Form"] = "Form";
|
|
6
|
-
BodyMediaType["Json"] = "Json";
|
|
7
|
-
BodyMediaType["Multipart"] = "Multipart";
|
|
8
|
-
BodyMediaType["Text"] = "Text";
|
|
9
|
-
BodyMediaType["Xml"] = "Xml";
|
|
10
|
-
})(BodyMediaType || (BodyMediaType = {}));
|
|
11
|
-
export function typeToBodyMediaType(type) {
|
|
12
|
-
if (type === undefined) {
|
|
13
|
-
return BodyMediaType.None;
|
|
14
|
-
}
|
|
15
|
-
if (type.kind === "Model") {
|
|
16
|
-
return BodyMediaType.Json;
|
|
17
|
-
}
|
|
18
|
-
else if (type.kind === "String") {
|
|
19
|
-
return BodyMediaType.Text;
|
|
20
|
-
}
|
|
21
|
-
else if (type.kind === "Scalar" && type.name === "bytes") {
|
|
22
|
-
return BodyMediaType.Binary;
|
|
23
|
-
}
|
|
24
|
-
return BodyMediaType.None;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=body-media-type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"body-media-type.js","sourceRoot":"","sources":["../../../emitter/src/type/body-media-type.ts"],"names":[],"mappings":"AAIA,MAAM,CAAN,IAAY,aAQX;AARD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,8BAAa,CAAA;IACb,8BAAa,CAAA;IACb,wCAAuB,CAAA;IACvB,8BAAa,CAAA;IACb,4BAAW,CAAA;AACb,CAAC,EARW,aAAa,KAAb,aAAa,QAQxB;AAED,MAAM,UAAU,mBAAmB,CAAC,IAAsB;IACxD,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,OAAO,aAAa,CAAC,IAAI,CAAC;IAC5B,CAAC;IAED,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;QAC1B,OAAO,aAAa,CAAC,IAAI,CAAC;IAC5B,CAAC;SAAM,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QAClC,OAAO,aAAa,CAAC,IAAI,CAAC;IAC5B,CAAC;SAAM,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;QAC3D,OAAO,aAAa,CAAC,MAAM,CAAC;IAC9B,CAAC;IACD,OAAO,aAAa,CAAC,IAAI,CAAC;AAC5B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client-kind.d.ts","sourceRoot":"","sources":["../../../emitter/src/type/client-kind.ts"],"names":[],"mappings":"AAGA,oBAAY,UAAU;IACpB,SAAS,cAAc;IACvB,iBAAiB,sBAAsB;CACxC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License. See License.txt in the project root for license information.
|
|
3
|
-
export var ClientKind;
|
|
4
|
-
(function (ClientKind) {
|
|
5
|
-
ClientKind["SdkClient"] = "SdkClient";
|
|
6
|
-
ClientKind["SdkOperationGroup"] = "SdkOperationGroup";
|
|
7
|
-
})(ClientKind || (ClientKind = {}));
|
|
8
|
-
//# sourceMappingURL=client-kind.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client-kind.js","sourceRoot":"","sources":["../../../emitter/src/type/client-kind.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,+FAA+F;AAE/F,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,qCAAuB,CAAA;IACvB,qDAAuC,CAAA;AACzC,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { InputAuth } from "./input-auth.js";
|
|
2
|
-
import { InputClient } from "./input-client.js";
|
|
3
|
-
import { InputEnumType, InputModelType } from "./input-type.js";
|
|
4
|
-
export interface CodeModel {
|
|
5
|
-
Name: string;
|
|
6
|
-
ApiVersions: string[];
|
|
7
|
-
Enums: InputEnumType[];
|
|
8
|
-
Models: InputModelType[];
|
|
9
|
-
Clients: InputClient[];
|
|
10
|
-
Auth?: InputAuth;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=code-model.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code-model.d.ts","sourceRoot":"","sources":["../../../emitter/src/type/code-model.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEhE,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code-model.js","sourceRoot":"","sources":["../../../emitter/src/type/code-model.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,+FAA+F"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare enum CollectionFormat {
|
|
2
|
-
CSV = "csv",
|
|
3
|
-
Simple = "simple",
|
|
4
|
-
SSV = "ssv",
|
|
5
|
-
TSV = "tsv",
|
|
6
|
-
Pipes = "pipes",
|
|
7
|
-
Multi = "multi",
|
|
8
|
-
Form = "form"
|
|
9
|
-
}
|
|
10
|
-
export declare const collectionFormatToDelimMap: {
|
|
11
|
-
[key: string]: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=collection-format.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collection-format.d.ts","sourceRoot":"","sources":["../../../emitter/src/type/collection-format.ts"],"names":[],"mappings":"AAGA,oBAAY,gBAAgB;IAC1B,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,eAAO,MAAM,0BAA0B,EAAE;IACvC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CASnC,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License. See License.txt in the project root for license information.
|
|
3
|
-
export var CollectionFormat;
|
|
4
|
-
(function (CollectionFormat) {
|
|
5
|
-
CollectionFormat["CSV"] = "csv";
|
|
6
|
-
CollectionFormat["Simple"] = "simple";
|
|
7
|
-
CollectionFormat["SSV"] = "ssv";
|
|
8
|
-
CollectionFormat["TSV"] = "tsv";
|
|
9
|
-
CollectionFormat["Pipes"] = "pipes";
|
|
10
|
-
CollectionFormat["Multi"] = "multi";
|
|
11
|
-
CollectionFormat["Form"] = "form";
|
|
12
|
-
})(CollectionFormat || (CollectionFormat = {}));
|
|
13
|
-
export const collectionFormatToDelimMap = {
|
|
14
|
-
[CollectionFormat.CSV.toString()]: ",",
|
|
15
|
-
[CollectionFormat.Simple.toString()]: ",", // csv and simple are used interchangeably
|
|
16
|
-
[CollectionFormat.SSV.toString()]: " ",
|
|
17
|
-
[CollectionFormat.TSV.toString()]: "\t",
|
|
18
|
-
[CollectionFormat.Pipes.toString()]: "|",
|
|
19
|
-
[CollectionFormat.Multi.toString()]: undefined,
|
|
20
|
-
[CollectionFormat.Form.toString()]: undefined, // multi and form are used interchangeably
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=collection-format.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collection-format.js","sourceRoot":"","sources":["../../../emitter/src/type/collection-format.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,+FAA+F;AAE/F,MAAM,CAAN,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,+BAAW,CAAA;IACX,qCAAiB,CAAA;IACjB,+BAAW,CAAA;IACX,+BAAW,CAAA;IACX,mCAAe,CAAA;IACf,mCAAe,CAAA;IACf,iCAAa,CAAA;AACf,CAAC,EARW,gBAAgB,KAAhB,gBAAgB,QAQ3B;AAED,MAAM,CAAC,MAAM,0BAA0B,GAEnC;IACF,CAAC,gBAAgB,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,EAAE,GAAG;IACtC,CAAC,gBAAgB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,0CAA0C;IACrF,CAAC,gBAAgB,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,EAAE,GAAG;IACtC,CAAC,gBAAgB,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,EAAE,IAAI;IACvC,CAAC,gBAAgB,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,EAAE,GAAG;IACxC,CAAC,gBAAgB,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,EAAE,SAAS;IAC9C,CAAC,gBAAgB,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE,SAAS,EAAE,0CAA0C;CAC1F,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../emitter/src/type/configuration.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,aAAa;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,6BAA6B,CAAC,EAAE,qBAAqB,GAAG,aAAa,GAAG,SAAS,CAAC;IAClF,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../emitter/src/type/configuration.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,+FAA+F"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"external-docs.d.ts","sourceRoot":"","sources":["../../../emitter/src/type/external-docs.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"external-docs.js","sourceRoot":"","sources":["../../../emitter/src/type/external-docs.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,+FAA+F"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"http-response-header.d.ts","sourceRoot":"","sources":["../../../emitter/src/type/http-response-header.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,SAAS,CAAC;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"http-response-header.js","sourceRoot":"","sources":["../../../emitter/src/type/http-response-header.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,+FAA+F"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-api-key-auth.d.ts","sourceRoot":"","sources":["../../../emitter/src/type/input-api-key-auth.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,cAAc,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-api-key-auth.js","sourceRoot":"","sources":["../../../emitter/src/type/input-api-key-auth.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,+FAA+F"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-auth.d.ts","sourceRoot":"","sources":["../../../emitter/src/type/input-auth.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,WAAW,SAAS;IACxB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-auth.js","sourceRoot":"","sources":["../../../emitter/src/type/input-auth.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,+FAA+F"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DecoratorInfo } from "@azure-tools/typespec-client-generator-core";
|
|
2
|
-
import { InputOperation } from "./input-operation.js";
|
|
3
|
-
import { InputParameter } from "./input-parameter.js";
|
|
4
|
-
import { Protocols } from "./protocols.js";
|
|
5
|
-
export interface InputClient {
|
|
6
|
-
Name: string;
|
|
7
|
-
ClientNamespace: string;
|
|
8
|
-
Summary?: string;
|
|
9
|
-
Doc?: string;
|
|
10
|
-
Operations: InputOperation[];
|
|
11
|
-
Protocol?: Protocols;
|
|
12
|
-
Parent?: string;
|
|
13
|
-
Parameters?: InputParameter[];
|
|
14
|
-
Decorators?: DecoratorInfo[];
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=input-client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-client.d.ts","sourceRoot":"","sources":["../../../emitter/src/type/input-client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,cAAc,EAAE,CAAC;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,cAAc,EAAE,CAAC;IAC9B,UAAU,CAAC,EAAE,aAAa,EAAE,CAAC;CAC9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-client.js","sourceRoot":"","sources":["../../../emitter/src/type/input-client.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,+FAA+F"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-constant.d.ts","sourceRoot":"","sources":["../../../emitter/src/type/input-constant.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,IAAI,EAAE,SAAS,CAAC;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-constant.js","sourceRoot":"","sources":["../../../emitter/src/type/input-constant.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,+FAA+F"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { InputParameter } from "./input-parameter.js";
|
|
2
|
-
import { InputArrayType, InputDictionaryType, InputLiteralType, InputModelType, InputNullableType, InputPrimitiveType, InputType, InputUnionType } from "./input-type.js";
|
|
3
|
-
import { OperationResponse } from "./operation-response.js";
|
|
4
|
-
interface InputExampleBase {
|
|
5
|
-
kind: string;
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
filePath: string;
|
|
9
|
-
}
|
|
10
|
-
export interface InputHttpOperationExample extends InputExampleBase {
|
|
11
|
-
kind: "http";
|
|
12
|
-
parameters: InputParameterExampleValue[];
|
|
13
|
-
responses: OperationResponseExample[];
|
|
14
|
-
}
|
|
15
|
-
export interface InputParameterExampleValue {
|
|
16
|
-
parameter: InputParameter;
|
|
17
|
-
value: InputExampleValue;
|
|
18
|
-
}
|
|
19
|
-
export interface OperationResponseExample {
|
|
20
|
-
response: OperationResponse;
|
|
21
|
-
statusCode: number;
|
|
22
|
-
bodyValue?: InputExampleValue;
|
|
23
|
-
}
|
|
24
|
-
export type InputExampleValue = InputStringExampleValue | InputNumberExampleValue | InputBooleanExampleValue | InputNullExampleValue | InputUnknownExampleValue | InputArrayExampleValue | InputDictionaryExampleValue | InputUnionExampleValue | InputModelExampleValue;
|
|
25
|
-
export interface InputExampleTypeValueBase {
|
|
26
|
-
kind: string;
|
|
27
|
-
type: InputType;
|
|
28
|
-
value: unknown;
|
|
29
|
-
}
|
|
30
|
-
export interface InputStringExampleValue extends InputExampleTypeValueBase {
|
|
31
|
-
kind: "string";
|
|
32
|
-
type: InputType;
|
|
33
|
-
value: string;
|
|
34
|
-
}
|
|
35
|
-
export interface InputNumberExampleValue extends InputExampleTypeValueBase {
|
|
36
|
-
kind: "number";
|
|
37
|
-
type: InputType;
|
|
38
|
-
value: number;
|
|
39
|
-
}
|
|
40
|
-
export interface InputBooleanExampleValue extends InputExampleTypeValueBase {
|
|
41
|
-
kind: "boolean";
|
|
42
|
-
type: InputPrimitiveType | InputLiteralType;
|
|
43
|
-
value: boolean;
|
|
44
|
-
}
|
|
45
|
-
export interface InputNullExampleValue extends InputExampleTypeValueBase {
|
|
46
|
-
kind: "null";
|
|
47
|
-
type: InputNullableType;
|
|
48
|
-
value: null;
|
|
49
|
-
}
|
|
50
|
-
export interface InputUnknownExampleValue extends InputExampleTypeValueBase {
|
|
51
|
-
kind: "unknown";
|
|
52
|
-
type: InputPrimitiveType;
|
|
53
|
-
value: unknown;
|
|
54
|
-
}
|
|
55
|
-
export interface InputArrayExampleValue extends InputExampleTypeValueBase {
|
|
56
|
-
kind: "array";
|
|
57
|
-
type: InputArrayType;
|
|
58
|
-
value: InputExampleValue[];
|
|
59
|
-
}
|
|
60
|
-
export interface InputDictionaryExampleValue extends InputExampleTypeValueBase {
|
|
61
|
-
kind: "dict";
|
|
62
|
-
type: InputDictionaryType;
|
|
63
|
-
value: Record<string, InputExampleValue>;
|
|
64
|
-
}
|
|
65
|
-
export interface InputUnionExampleValue extends InputExampleTypeValueBase {
|
|
66
|
-
kind: "union";
|
|
67
|
-
type: InputUnionType;
|
|
68
|
-
value: unknown;
|
|
69
|
-
}
|
|
70
|
-
export interface InputModelExampleValue extends InputExampleTypeValueBase {
|
|
71
|
-
kind: "model";
|
|
72
|
-
type: InputModelType;
|
|
73
|
-
value: Record<string, InputExampleValue>;
|
|
74
|
-
additionalPropertiesValue?: Record<string, InputExampleValue>;
|
|
75
|
-
}
|
|
76
|
-
export {};
|
|
77
|
-
//# sourceMappingURL=input-examples.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-examples.d.ts","sourceRoot":"","sources":["../../../emitter/src/type/input-examples.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,cAAc,EACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED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AACD,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACzE,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,kBAAkB,CAAC;IACzB,KAAK,EAAE,OAAO,CAAC;CAChB;AACD,MAAM,WAAW,sBAAuB,SAAQ,yBAAyB;IACvE,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,iBAAiB,EAAE,CAAC;CAC5B;AACD,MAAM,WAAW,2BAA4B,SAAQ,yBAAyB;IAC5E,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;CAC1C;AACD,MAAM,WAAW,sBAAuB,SAAQ,yBAAyB;IACvE,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;CAChB;AACD,MAAM,WAAW,sBAAuB,SAAQ,yBAAyB;IACvE,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IACzC,yBAAyB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;CAC/D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-examples.js","sourceRoot":"","sources":["../../../emitter/src/type/input-examples.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,+FAA+F"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-oauth2-auth.d.ts","sourceRoot":"","sources":["../../../emitter/src/type/input-oauth2-auth.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB"}
|