diff --git a/packages/cli/ete-tests/src/tests/dependencies/__snapshots__/dependencies.test.ts.snap b/packages/cli/ete-tests/src/tests/dependencies/__snapshots__/dependencies.test.ts.snap index 14887ad53b3..4c2ec2cff5c 100644 --- a/packages/cli/ete-tests/src/tests/dependencies/__snapshots__/dependencies.test.ts.snap +++ b/packages/cli/ete-tests/src/tests/dependencies/__snapshots__/dependencies.test.ts.snap @@ -771,4 +771,4 @@ exports[`dependencies correctly incorporates dependencies 1`] = ` }" `; -exports[`dependencies file dependencies 1`] = `1412752`; +exports[`dependencies file dependencies 1`] = `1412859`; diff --git a/packages/cli/openapi-ir-to-fern/src/__test__/__snapshots__/hathora.test.ts.snap b/packages/cli/openapi-ir-to-fern/src/__test__/__snapshots__/hathora.test.ts.snap index e30a4303619..3c65e3377c6 100644 --- a/packages/cli/openapi-ir-to-fern/src/__test__/__snapshots__/hathora.test.ts.snap +++ b/packages/cli/openapi-ir-to-fern/src/__test__/__snapshots__/hathora.test.ts.snap @@ -758,6 +758,7 @@ exports[`open api parser hathora simple 1`] = ` "endpoints": { "CreatePrivateLobbyDeprecated": { "auth": true, + "availability": "deprecated", "docs": undefined, "errors": [ "root.UnauthorizedError", @@ -804,6 +805,7 @@ exports[`open api parser hathora simple 1`] = ` }, "CreatePublicLobbyDeprecated": { "auth": true, + "availability": "deprecated", "docs": undefined, "errors": [ "root.UnauthorizedError", @@ -850,6 +852,7 @@ exports[`open api parser hathora simple 1`] = ` }, "ListActivePublicLobbiesDeprecated": { "auth": true, + "availability": "deprecated", "docs": undefined, "errors": [ "root.UnauthorizedError", @@ -999,6 +1002,7 @@ exports[`open api parser hathora simple 1`] = ` }, "CreateLocalLobby": { "auth": true, + "availability": "deprecated", "docs": undefined, "errors": [ "root.UnauthorizedError", @@ -1072,6 +1076,7 @@ exports[`open api parser hathora simple 1`] = ` }, "CreatePrivateLobby": { "auth": true, + "availability": "deprecated", "docs": undefined, "errors": [ "root.UnauthorizedError", @@ -1145,6 +1150,7 @@ exports[`open api parser hathora simple 1`] = ` }, "CreatePublicLobby": { "auth": true, + "availability": "deprecated", "docs": undefined, "errors": [ "root.UnauthorizedError", diff --git a/packages/cli/openapi-ir-to-fern/src/__test__/__snapshots__/squidex.test.ts.snap b/packages/cli/openapi-ir-to-fern/src/__test__/__snapshots__/squidex.test.ts.snap index e0cc3f6fc9d..164f8269142 100644 --- a/packages/cli/openapi-ir-to-fern/src/__test__/__snapshots__/squidex.test.ts.snap +++ b/packages/cli/openapi-ir-to-fern/src/__test__/__snapshots__/squidex.test.ts.snap @@ -2468,6 +2468,7 @@ The client secret is auto generated on the server and returned. The client does }, "getAssetContent": { "auth": true, + "availability": "deprecated", "display-name": "Get the asset content.", "docs": undefined, "method": "GET", @@ -4555,6 +4556,7 @@ The client secret is auto generated on the server and returned. The client does }, "getContentVersion": { "auth": true, + "availability": "deprecated", "display-name": "Get a content by version.", "docs": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "method": "GET", @@ -5198,6 +5200,7 @@ The client secret is auto generated on the server and returned. The client does }, "postContents": { "auth": true, + "availability": "deprecated", "display-name": "Import content items.", "docs": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "errors": [ diff --git a/packages/cli/openapi-parser/src/__test__/__snapshots__/hathora.test.ts.snap b/packages/cli/openapi-parser/src/__test__/__snapshots__/hathora.test.ts.snap index a1afa5f3907..ed49da7f2bf 100644 --- a/packages/cli/openapi-parser/src/__test__/__snapshots__/hathora.test.ts.snap +++ b/packages/cli/openapi-parser/src/__test__/__snapshots__/hathora.test.ts.snap @@ -2845,7 +2845,7 @@ exports[`open api parser hathora parse open api 1`] = ` { "audiences": [], "authed": true, - "availability": null, + "availability": "Deprecated", "description": null, "errorStatusCode": [ 401, @@ -3003,7 +3003,7 @@ exports[`open api parser hathora parse open api 1`] = ` { "audiences": [], "authed": true, - "availability": null, + "availability": "Deprecated", "description": null, "errorStatusCode": [ 401, @@ -3161,7 +3161,7 @@ exports[`open api parser hathora parse open api 1`] = ` { "audiences": [], "authed": true, - "availability": null, + "availability": "Deprecated", "description": null, "errorStatusCode": [ 401, @@ -3427,7 +3427,7 @@ exports[`open api parser hathora parse open api 1`] = ` { "audiences": [], "authed": true, - "availability": null, + "availability": "Deprecated", "description": null, "errorStatusCode": [ 401, @@ -3732,7 +3732,7 @@ exports[`open api parser hathora parse open api 1`] = ` { "audiences": [], "authed": true, - "availability": null, + "availability": "Deprecated", "description": null, "errorStatusCode": [ 401, @@ -4037,7 +4037,7 @@ exports[`open api parser hathora parse open api 1`] = ` { "audiences": [], "authed": true, - "availability": null, + "availability": "Deprecated", "description": null, "errorStatusCode": [ 401, diff --git a/packages/cli/openapi-parser/src/__test__/__snapshots__/squidex.test.ts.snap b/packages/cli/openapi-parser/src/__test__/__snapshots__/squidex.test.ts.snap index 7dbb1b39bff..cfd1414f21d 100644 --- a/packages/cli/openapi-parser/src/__test__/__snapshots__/squidex.test.ts.snap +++ b/packages/cli/openapi-parser/src/__test__/__snapshots__/squidex.test.ts.snap @@ -25623,7 +25623,7 @@ You will be assigned as owner of the new team automatically.", { "audiences": [], "authed": true, - "availability": null, + "availability": "Deprecated", "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "errorStatusCode": [], "examples": [], @@ -25723,7 +25723,7 @@ You will be assigned as owner of the new team automatically.", { "audiences": [], "authed": true, - "availability": null, + "availability": "Deprecated", "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", "errorStatusCode": [ 400, @@ -30195,7 +30195,7 @@ You will be assigned as owner of the new team automatically.", { "audiences": [], "authed": true, - "availability": null, + "availability": "Deprecated", "description": null, "errorStatusCode": [], "examples": [], diff --git a/packages/cli/openapi-parser/src/__test__/__snapshots__/supertokens.test.ts.snap b/packages/cli/openapi-parser/src/__test__/__snapshots__/supertokens.test.ts.snap index 59a7fd73ee1..f2ea9741230 100644 --- a/packages/cli/openapi-parser/src/__test__/__snapshots__/supertokens.test.ts.snap +++ b/packages/cli/openapi-parser/src/__test__/__snapshots__/supertokens.test.ts.snap @@ -7489,7 +7489,7 @@ If the email or phoneNumber is set to null the previous value will be deleted. I { "audiences": [], "authed": false, - "availability": null, + "availability": "Deprecated", "description": "User Pagination API ", "errorStatusCode": [ @@ -8135,7 +8135,7 @@ If the email or phoneNumber is set to null the previous value will be deleted. I { "audiences": [], "authed": false, - "availability": null, + "availability": "Deprecated", "description": "Get number of users ", "errorStatusCode": [ @@ -9710,7 +9710,7 @@ Note that there is an invisible character at the end of the path, this was to av { "audiences": [], "authed": false, - "availability": null, + "availability": "Deprecated", "description": "Get User Pagination data. Note that there is an invisible character at the end of the path, this was to avoid a conflict with the OpenAPI spec. ", @@ -10067,7 +10067,7 @@ Note that there is an invisible character at the end of the path, this was to av { "audiences": [], "authed": false, - "availability": null, + "availability": "Deprecated", "description": "Get number of users. Note that there is an invisible character at the end of the path, this was to avoid a conflict with the OpenAPI spec ", @@ -17446,7 +17446,7 @@ e.g.: { "audiences": [], "authed": false, - "availability": null, + "availability": "Deprecated", "description": "Get session data ", "errorStatusCode": [ @@ -18382,7 +18382,7 @@ e.g.: { "audiences": [], "authed": false, - "availability": null, + "availability": "Deprecated", "description": "Get JWT data for a session ", "errorStatusCode": [ diff --git a/packages/cli/openapi-parser/src/openapi/v3/extensions/getFernAvailability.ts b/packages/cli/openapi-parser/src/openapi/v3/extensions/getFernAvailability.ts index 68b118324e7..987e909406d 100644 --- a/packages/cli/openapi-parser/src/openapi/v3/extensions/getFernAvailability.ts +++ b/packages/cli/openapi-parser/src/openapi/v3/extensions/getFernAvailability.ts @@ -17,5 +17,8 @@ export function getFernAvailability(operationObject: OpenAPIV3.OperationObject): } else if (availability === "deprecated") { return EndpointAvailability.Deprecated; } + if (operationObject.deprecated) { + return EndpointAvailability.Deprecated; + } return undefined; }