Skip to content

Commit eb0ed93

Browse files
authored
Merge pull request #264 from umbraco/v16/semrush
V16/semrush
2 parents ec00b50 + 7d65aa7 commit eb0ed93

26 files changed

+2959
-2157
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using Umbraco.Cms.Api.Management.OpenApi;
2+
3+
namespace Umbraco.Cms.Integrations.SEO.Semrush.Api.Configuration;
4+
5+
public class BackOfficeSecurityRequirementsOperationFilter : BackOfficeSecurityRequirementsOperationFilterBase
6+
{
7+
protected override string ApiName => Constants.ManagementApi.ApiName;
8+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using Asp.Versioning;
2+
using Microsoft.AspNetCore.Mvc.ApiExplorer;
3+
using Microsoft.AspNetCore.Mvc.Controllers;
4+
using Microsoft.Extensions.Options;
5+
using Umbraco.Cms.Api.Common.OpenApi;
6+
7+
namespace Umbraco.Cms.Integrations.SEO.Semrush.Api.Configuration
8+
{
9+
internal class SemrushOperationIdHandler : OperationIdHandler
10+
{
11+
public SemrushOperationIdHandler(IOptions<ApiVersioningOptions> apiVersioningOptions) : base(apiVersioningOptions)
12+
{
13+
}
14+
15+
protected override bool CanHandle(ApiDescription apiDescription, ControllerActionDescriptor controllerActionDescriptor)
16+
=> controllerActionDescriptor.ControllerTypeInfo.Namespace?.StartsWith("Umbraco.Cms.Integrations.SEO.Semrush") is true;
17+
}
18+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// This file is auto-generated by @hey-api/openapi-ts
2+
3+
import type { ClientOptions } from './types.gen';
4+
import { type Config, type ClientOptions as DefaultClientOptions, createClient, createConfig } from '@hey-api/client-fetch';
5+
6+
/**
7+
* The `createClientConfig()` function will be called on client initialization
8+
* and the returned object will become the client's initial configuration.
9+
*
10+
* You may want to initialize your client this way instead of calling
11+
* `setConfig()`. This is useful for example if you're using Next.js
12+
* to ensure your client always has the correct values.
13+
*/
14+
export type CreateClientConfig<T extends DefaultClientOptions = ClientOptions> = (override?: Config<DefaultClientOptions & T>) => Config<Required<DefaultClientOptions> & T>;
15+
16+
export const client = createClient(createConfig<ClientOptions>({
17+
baseUrl: 'http://localhost:30450',
18+
throwOnError: true
19+
}));

src/Umbraco.Cms.Integrations.SEO.Semrush/Client/generated/core/ApiError.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/Umbraco.Cms.Integrations.SEO.Semrush/Client/generated/core/ApiRequestOptions.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/Umbraco.Cms.Integrations.SEO.Semrush/Client/generated/core/ApiResult.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/Umbraco.Cms.Integrations.SEO.Semrush/Client/generated/core/CancelablePromise.ts

Lines changed: 0 additions & 126 deletions
This file was deleted.

src/Umbraco.Cms.Integrations.SEO.Semrush/Client/generated/core/OpenAPI.ts

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)