Skip to content

Commit e80d4c8

Browse files
authored
* Update dependencies to 16 (#45)
1 parent 0ab63d2 commit e80d4c8

File tree

30 files changed

+2097
-2523
lines changed

30 files changed

+2097
-2523
lines changed

Directory.Packages.props

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" />
99
<GlobalPackageReference Include="Nerdbank.GitVersioning" Version="3.6.133" />
1010
<GlobalPackageReference Include="StyleCop.Analyzers" Version="1.1.118" />
11-
<GlobalPackageReference Include="Umbraco.Code" Version="2.2.0" />
1211
<GlobalPackageReference Include="Umbraco.GitVersioning.Extensions" Version="0.2.0" />
1312
</ItemGroup>
1413
<ItemGroup>
@@ -17,10 +16,10 @@
1716
<PackageVersion Include="FluentValidation" Version="11.9.0" />
1817
<PackageVersion Include="Microsoft.AspNet.WebApi.Client" Version="[6.0.0, 7.0)" />
1918
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
20-
<PackageVersion Include="Umbraco.Cms" Version="[15.0.0, 16)" />
21-
<PackageVersion Include="Umbraco.Cms.Web.Website" Version="[15.0.0, 16)" />
22-
<PackageVersion Include="Umbraco.Cms.Web.BackOffice" Version="[15.0.0, 16)" />
23-
<PackageVersion Include="Umbraco.Commerce" Version="[15.0.0, 16)" />
19+
<PackageVersion Include="Umbraco.Cms" Version="[16.0.0, 16.999.999)" />
20+
<PackageVersion Include="Umbraco.Cms.Web.Website" Version="[16.0.0, 16.999.999)" />
21+
<PackageVersion Include="Umbraco.Cms.Web.BackOffice" Version="[16.0.0, 16.999.999)" />
22+
<PackageVersion Include="Umbraco.Commerce" Version="[16.0.0, 16.999.999)" />
2423
<PackageVersion Include="coverlet.collector" Version="6.0.0" />
2524
<PackageVersion Include="xunit" Version="2.6.6" />
2625
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.6" />
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
import { defineConfig } from '@hey-api/openapi-ts';
22

33
export default defineConfig({
4-
client: '@hey-api/client-axios',
5-
// client: '@hey-api/client-fetch',
6-
// client: 'legacy/fetch',
74
input: 'http://localhost:44321/umbraco/swagger/ucproductfeeds/swagger.json',
85
output: {
96
path: 'src/generated/apis',
107
lint: 'eslint',
118
},
12-
schemas: false,
13-
// types: {
14-
// enums: 'typescript',
15-
// },
9+
plugins: ['@hey-api/client-axios'],
1610
});

src/Umbraco.Commerce.ProductFeeds.Client/frontend/package-lock.json

Lines changed: 1628 additions & 2339 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Umbraco.Commerce.ProductFeeds.Client/frontend/package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,27 @@
1212
"gen-api": "openapi-ts"
1313
},
1414
"devDependencies": {
15-
"@eslint/js": "^9.5.0",
16-
"@hey-api/openapi-ts": "^0.52.9",
17-
"@types/eslint__js": "^8.42.3",
18-
"autoprefixer": "^10.4.19",
15+
"@eslint/js": "^9.28.0",
16+
"@hey-api/openapi-ts": "^0.69.2",
17+
"@types/eslint__js": "^9.14.0",
18+
"autoprefixer": "^10.4.21",
1919
"copyfiles": "^2.4.1",
20-
"eslint": "^8.57.0",
21-
"globals": "^15.6.0",
22-
"postcss": "^8.4.39",
23-
"tailwindcss": "^3.4.6",
24-
"ts-loader": "^9.5.1",
25-
"typescript": "^5.4.5",
26-
"typescript-eslint": "^7.13.1",
27-
"vite": "^6.3.4",
28-
"vite-tsconfig-paths": "^4.3.2"
20+
"eslint": "^9.28.0",
21+
"globals": "^16.2.0",
22+
"postcss": "^8.5.4",
23+
"tailwindcss": "^4.1.8",
24+
"ts-loader": "^9.5.2",
25+
"typescript": "^5.8.3",
26+
"typescript-eslint": "^8.33.0",
27+
"vite": "^6.3.5",
28+
"vite-tsconfig-paths": "^5.1.4"
2929
},
3030
"author": "",
3131
"license": "ISC",
3232
"dependencies": {
33-
"@hey-api/client-axios": "^0.2.3",
34-
"@umbraco-cms/backoffice": "^15.0.0",
35-
"@umbraco-commerce/backoffice": "^15.0.0",
36-
"nanoid": "^5.0.9"
33+
"@hey-api/client-axios": "^0.8.0",
34+
"@umbraco-cms/backoffice": "^16.0.0-rc3",
35+
"@umbraco-commerce/backoffice": "^16.0.0-rc1",
36+
"nanoid": "^5.1.5"
3737
}
3838
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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-axios';
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: 'https://localhost:44322',
18+
}));
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// This file is auto-generated by @hey-api/openapi-ts
2-
export * from './services.gen';
3-
export * from './types.gen';
2+
export * from './types.gen';
3+
export * from './sdk.gen';
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
// This file is auto-generated by @hey-api/openapi-ts
2+
3+
import { type Options as ClientOptions, type TDataShape, type Client, formDataBodySerializer } from '@hey-api/client-axios';
4+
import type { DeleteData, DeleteResponses, DeleteErrors, GetDocumentTypesData, GetDocumentTypesResponses, GetDocumentTypesErrors, GetFeedTypesData, GetFeedTypesResponses, GetFeedTypesErrors, GetDetailsData, GetDetailsResponses, GetDetailsErrors, GetByStoreData, GetByStoreResponses, GetByStoreErrors, GetPropertyValueExtractorsData, GetPropertyValueExtractorsResponses, GetPropertyValueExtractorsErrors, SaveData, SaveResponses, SaveErrors } from './types.gen';
5+
import { client as _heyApiClient } from './client.gen';
6+
7+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
8+
/**
9+
* You can provide a client instance returned by `createClient()` instead of
10+
* individual options. This might be also useful if you want to implement a
11+
* custom client.
12+
*/
13+
client?: Client;
14+
/**
15+
* You can pass arbitrary values through the `meta` object. This can be
16+
* used to access values that aren't defined as part of the SDK function.
17+
*/
18+
meta?: Record<string, unknown>;
19+
};
20+
21+
export const delete_ = <ThrowOnError extends boolean = false>(options?: Options<DeleteData, ThrowOnError>) => {
22+
return (options?.client ?? _heyApiClient).post<DeleteResponses, DeleteErrors, ThrowOnError>({
23+
...formDataBodySerializer,
24+
responseType: 'json',
25+
security: [
26+
{
27+
scheme: 'bearer',
28+
type: 'http',
29+
},
30+
],
31+
url: '/umbraco/ucproductfeeds/management/api/v1/setting/Delete',
32+
...options,
33+
headers: {
34+
'Content-Type': null,
35+
...options?.headers,
36+
},
37+
});
38+
};
39+
40+
export const getDocumentTypes = <ThrowOnError extends boolean = false>(options?: Options<GetDocumentTypesData, ThrowOnError>) => {
41+
return (options?.client ?? _heyApiClient).get<GetDocumentTypesResponses, GetDocumentTypesErrors, ThrowOnError>({
42+
security: [
43+
{
44+
scheme: 'bearer',
45+
type: 'http',
46+
},
47+
],
48+
url: '/umbraco/ucproductfeeds/management/api/v1/setting/documenttypes',
49+
...options,
50+
});
51+
};
52+
53+
export const getFeedTypes = <ThrowOnError extends boolean = false>(options?: Options<GetFeedTypesData, ThrowOnError>) => {
54+
return (options?.client ?? _heyApiClient).get<GetFeedTypesResponses, GetFeedTypesErrors, ThrowOnError>({
55+
responseType: 'json',
56+
security: [
57+
{
58+
scheme: 'bearer',
59+
type: 'http',
60+
},
61+
],
62+
url: '/umbraco/ucproductfeeds/management/api/v1/setting/feedtypes',
63+
...options,
64+
});
65+
};
66+
67+
export const getDetails = <ThrowOnError extends boolean = false>(options: Options<GetDetailsData, ThrowOnError>) => {
68+
return (options.client ?? _heyApiClient).get<GetDetailsResponses, GetDetailsErrors, ThrowOnError>({
69+
responseType: 'json',
70+
security: [
71+
{
72+
scheme: 'bearer',
73+
type: 'http',
74+
},
75+
],
76+
url: '/umbraco/ucproductfeeds/management/api/v1/setting/get/{id}',
77+
...options,
78+
});
79+
};
80+
81+
export const getByStore = <ThrowOnError extends boolean = false>(options: Options<GetByStoreData, ThrowOnError>) => {
82+
return (options.client ?? _heyApiClient).get<GetByStoreResponses, GetByStoreErrors, ThrowOnError>({
83+
responseType: 'json',
84+
security: [
85+
{
86+
scheme: 'bearer',
87+
type: 'http',
88+
},
89+
],
90+
url: '/umbraco/ucproductfeeds/management/api/v1/setting/getbystore',
91+
...options,
92+
});
93+
};
94+
95+
export const getPropertyValueExtractors = <ThrowOnError extends boolean = false>(options?: Options<GetPropertyValueExtractorsData, ThrowOnError>) => {
96+
return (options?.client ?? _heyApiClient).get<GetPropertyValueExtractorsResponses, GetPropertyValueExtractorsErrors, ThrowOnError>({
97+
responseType: 'json',
98+
security: [
99+
{
100+
scheme: 'bearer',
101+
type: 'http',
102+
},
103+
],
104+
url: '/umbraco/ucproductfeeds/management/api/v1/setting/propertyvalueextractors',
105+
...options,
106+
});
107+
};
108+
109+
export const save = <ThrowOnError extends boolean = false>(options?: Options<SaveData, ThrowOnError>) => {
110+
return (options?.client ?? _heyApiClient).post<SaveResponses, SaveErrors, ThrowOnError>({
111+
responseType: 'json',
112+
security: [
113+
{
114+
scheme: 'bearer',
115+
type: 'http',
116+
},
117+
],
118+
url: '/umbraco/ucproductfeeds/management/api/v1/setting/save',
119+
...options,
120+
headers: {
121+
'Content-Type': 'application/json',
122+
...options?.headers,
123+
},
124+
});
125+
};

src/Umbraco.Commerce.ProductFeeds.Client/frontend/src/generated/apis/services.gen.ts

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

0 commit comments

Comments
 (0)