Skip to content

Commit

Permalink
[cadl-typescript] Update to cadl 0.39.0 (#1732)
Browse files Browse the repository at this point in the history
* update to cadl 0.39.0

* Update cadl ranch

* ignore engines

* remove ignore

* Re gen

* update test
  • Loading branch information
joheredi authored Feb 2, 2023
1 parent 6c87e62 commit b367ba3
Show file tree
Hide file tree
Showing 45 changed files with 506 additions and 1,278 deletions.
1 change: 1 addition & 0 deletions .scripts/smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
variables:
- template: globals.yml
steps:
- script: npm config set ignore-engines true
- template: build.yml
- script: npm run clone:specs
workingDirectory: $(Build.SourcesDirectory)/packages/autorest.typescript
Expand Down
220 changes: 113 additions & 107 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions packages/cadl-rlc-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
"version": "1.0.0",
"type": "module",
"dependencies": {
"@cadl-lang/compiler": "~0.38.5",
"@cadl-lang/compiler": "~0.39.0",
"@azure-tools/cadl-typescript": "1.0.0-beta.8",
"@cadl-lang/rest": "0.38.0",
"@cadl-lang/openapi": "0.38.0",
"@cadl-lang/versioning": "0.38.0",
"@azure-tools/cadl-azure-core": "0.24.0",
"@azure-tools/cadl-autorest": "0.24.0",
"@azure-tools/cadl-dpg": "0.24.0",
"@cadl-lang/openapi3": "0.38.0",
"@cadl-lang/prettier-plugin-cadl": "0.38.0",
"@cadl-lang/rest": "~0.39.0",
"@cadl-lang/openapi": "~0.39.0",
"@cadl-lang/versioning": "~0.39.0",
"@azure-tools/cadl-azure-core": "~0.25.0",
"@azure-tools/cadl-autorest": "~0.24.0",
"@azure-tools/cadl-dpg": "~0.25.0",
"@cadl-lang/openapi3": "~0.38.0",
"@cadl-lang/prettier-plugin-cadl": "~0.38.0",
"prettier": "2.7.1"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface AlignPolicyOutput {
export interface AnomalyDetectionModelOutput {
createdTime: string;
lastUpdatedTime: string;
modelId: string;
readonly modelId: string;
modelInfo?: ModelInfoOutput;
}

Expand Down Expand Up @@ -537,7 +537,7 @@ export interface MultivariateBatchDetectionResultSummaryOutput {

// @public
export interface MultivariateDetectionResultOutput {
resultId: string;
readonly resultId: string;
results: Array<AnomalyStateOutput>;
summary: MultivariateBatchDetectionResultSummaryOutput;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export interface UnivariateChangePointDetectionResultOutput {
/** Detection results for the given resultId. */
export interface MultivariateDetectionResultOutput {
/** Result identifier, which is used to fetch the results of an inference call. */
resultId: string;
readonly resultId: string;
/** Multivariate anomaly detection status. */
summary: MultivariateBatchDetectionResultSummaryOutput;
/** Detection result for each timestamp. */
Expand Down Expand Up @@ -355,7 +355,7 @@ export interface ModelStateOutput {
/** Response of getting a model. */
export interface AnomalyDetectionModelOutput {
/** Model identifier. */
modelId: string;
readonly modelId: string;
/** Date and time (UTC) when the model was created. */
createdTime: string;
/** Date and time (UTC) when the model was last updated. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,8 @@
"modelId": {
"type": "string",
"description": "Model identifier.",
"format": "uuid"
"format": "uuid",
"readOnly": true
},
"createdTime": {
"type": "string",
Expand Down Expand Up @@ -998,7 +999,8 @@
"resultId": {
"type": "string",
"description": "Result identifier, which is used to fetch the results of an inference call.",
"format": "uuid"
"format": "uuid",
"readOnly": true
},
"summary": {
"$ref": "#/definitions/Multivariate.MultivariateBatchDetectionResultSummary",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ model MultivariateDetectionResult {
@doc("Result identifier, which is used to fetch the results of an inference call.")
@key
@format("uuid")
@visibility("read")
resultId: string;

@doc("Multivariate anomaly detection status.")
Expand Down Expand Up @@ -310,6 +311,7 @@ model AnomalyDetectionModel {
@doc("Model identifier.")
@key
@format("uuid")
@visibility("read")
modelId: string;

@doc("Date and time (UTC) when the model was created.")
Expand Down
Loading

0 comments on commit b367ba3

Please sign in to comment.