Skip to content

Commit 3258614

Browse files
authored
Merge pull request #265 from umbraco/v16/shopify
V16/shopify
2 parents c406327 + 4163119 commit 3258614

25 files changed

+2618
-2194
lines changed
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.Commerce.Shopify.Api.Configuration
8+
{
9+
internal class ShopifyOperationIdHandler : OperationIdHandler
10+
{
11+
public ShopifyOperationIdHandler(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.Commerce.") 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.Commerce.Shopify/Client/generated/core/ApiError.ts

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

src/Umbraco.Cms.Integrations.Commerce.Shopify/Client/generated/core/ApiRequestOptions.ts

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

src/Umbraco.Cms.Integrations.Commerce.Shopify/Client/generated/core/ApiResult.ts

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

src/Umbraco.Cms.Integrations.Commerce.Shopify/Client/generated/core/CancelablePromise.ts

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

src/Umbraco.Cms.Integrations.Commerce.Shopify/Client/generated/core/OpenAPI.ts

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

0 commit comments

Comments
 (0)