Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */
export interface _OperationListResult {
/** The Operation items on this page */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import {
createFilePartDescriptor,
} from "../../static-helpers/multipartHelpers.js";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** An abstract representation of an input tool definition that an agent can use. */
export interface ToolDefinition {
/** The object type. */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** Response from the Workspace - Get operation */
export interface GetWorkspaceResponse {
/** A unique identifier for the resource */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** Type of APIVersion */
export type APIVersion = "v1.1";
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** Detection results for the resultId value. */
export interface MultivariateMultivariateDetectionResult {
/** Result identifier that's used to fetch the results of an inference call. */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** Request of the entire or last anomaly detection. */
export interface UnivariateUnivariateDetectionOptions {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@

import { uint8ArrayToString, stringToUint8Array } from "@azure/core-util";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** The result of listing the applications available in an Account. */
export interface _ApplicationListResult {
/** The list of applications available in the Account. */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** The configuration for a streaming chat completion request. */
export interface StreamingChatCompletionOptionsRecord {
/** The collection of context messages associated with this completion request. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@

import { uint8ArrayToString } from "@azure/core-util";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** The text analysis request. */
export interface AnalyzeTextOptions {
/** The text to be analyzed. We support a maximum of 10k Unicode characters (Unicode code points) in the text of one request. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
import { ErrorModel } from "@azure-rest/core-client";
import { uint8ArrayToString, stringToUint8Array } from "@azure/core-util";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** Properties of an event published to an Azure Messaging EventGrid Namespace topic using the CloudEvent 1.0 Schema. */
export interface CloudEvent {
/** An identifier for the event. The combination of id and source must be unique for each distinct event. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@

import { serializeRecord } from "../../../static-helpers/serialization/serialize-record.js";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
export function resourceArraySerializer(result: Array<Resource>): any[] {
return result.map((item) => {
return resourceSerializer(item);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ import {
observationDeserializer,
} from "./fhir/r4/models.js";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** A patient record, including their clinical information and data. */
export interface PatientRecord {
/** A given identifier for the patient. Has to be unique across all patients in a single request. */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** model interface BEA */
export interface BEA {
prop3: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** model interface BA */
export interface BA {
prop2: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** model interface A */
export interface A {
prop1: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** Load test model. */
export interface Test {
/** Pass fail criteria for a test. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ import {
import { serializeRecord } from "../static-helpers/serialization/serialize-record.js";
import { stringToUint8Array } from "@azure/core-util";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** model interface CreateCompletionRequest */
export interface CreateCompletionRequest {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import {
} from "../static-helpers/multipartHelpers.js";
import { ErrorModel } from "@azure-rest/core-client";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** The configuration information for an audio transcription request. */
export interface AudioTranscriptionOptions {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import {
import { serializeRecord } from "../static-helpers/serialization/serialize-record.js";
import { stringToUint8Array } from "@typespec/ts-http-runtime";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** model interface CreateCompletionRequest */
export interface CreateCompletionRequest {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** The Contoso Widget Manager service version. */
export enum KnownVersions {
/** Version 2022-08-31 */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** Identifier for collections. */
export interface Collection {
readonly collectionId: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** Paged collection of SchemaGroup items */
export interface _PagedSchemaGroup {
/** The SchemaGroup items on this page */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** model interface _Test3Request */
export interface _Test3Request {
prop: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ import {
stringToUint8Array,
} from "@typespec/ts-http-runtime";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** model interface User */
export interface User {
/** An autogenerated unique id for the user */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ import {
todoAttachmentArrayDeserializer,
} from "../models.js";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** model interface _TodoPage */
export interface _TodoPage {
/** The items in the page */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

import { ApiError } from "../models.js";

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** model interface UserCreatedResponse */
export interface UserCreatedResponse {
/** An autogenerated unique id for the user */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/** model interface Widget */
export interface Widget {
/** The UUID of this widget. This is generated automatically by the service. */
Expand Down
7 changes: 7 additions & 0 deletions packages/typespec-ts/src/modular/emitModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ export function emitTypes(
sourceFile = outputProject.getSourceFile(filepath);
if (!sourceFile) {
sourceFile = outputProject.createSourceFile(filepath);
sourceFile.addStatements(
`/**
* This file contains only generated model types and (de)serializers.
* Disable this rule for deserializer functions which require 'any' for raw JSON input.
*/
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */`
);
}
emitType(context, type, sourceFile);
}
Expand Down
Loading
Loading