Skip to content

Commit c5ccbf9

Browse files
authored
Merge pull request #15 from jcdcdev/dev/v16
16.1.0
2 parents cd81bca + 61fcf2f commit c5ccbf9

File tree

78 files changed

+1231
-343
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+1231
-343
lines changed

.github/README.md

Lines changed: 111 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
1-
# Umbraco.Community.SimpleTrees
2-
3-
[![Umbraco Marketplace](https://img.shields.io/badge/Umbraco-Marketplace-%233544B1?style=flat&logo=umbraco)](https://marketplace.umbraco.com/package/Umbraco.Community.SimpleTrees)
4-
[![License](https://img.shields.io/github/license/jcdcdev/Umbraco.Community.SimpleTrees?color=8AB803&label=License&logo=github)](https://github.com/jcdcdev/Umbraco.Community.SimpleTrees?tab=MIT-1-ov-file)
5-
[![NuGet Downloads](https://img.shields.io/nuget/dt/Umbraco.Community.SimpleTrees?color=cc9900&label=Downloads&logo=nuget)](https://www.nuget.org/packages/Umbraco.Community.SimpleTrees)
6-
[![Project Website](https://img.shields.io/badge/Project%20Website-jcdc.dev-jcdcdev?style=flat&color=3c4834&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0id2hpdGUiIGNsYXNzPSJiaSBiaS1wYy1kaXNwbGF5IiB2aWV3Qm94PSIwIDAgMTYgMTYiPgogIDxwYXRoIGQ9Ik04IDFhMSAxIDAgMCAxIDEtMWg2YTEgMSAwIDAgMSAxIDF2MTRhMSAxIDAgMCAxLTEgMUg5YTEgMSAwIDAgMS0xLTF6bTEgMTMuNWEuNS41IDAgMSAwIDEgMCAuNS41IDAgMCAwLTEgMG0yIDBhLjUuNSAwIDEgMCAxIDAgLjUuNSAwIDAgMC0xIDBNOS41IDFhLjUuNSAwIDAgMCAwIDFoNWEuNS41IDAgMCAwIDAtMXpNOSAzLjVhLjUuNSAwIDAgMCAuNS41aDVhLjUuNSAwIDAgMCAwLTFoLTVhLjUuNSAwIDAgMC0uNS41TTEuNSAyQTEuNSAxLjUgMCAwIDAgMCAzLjV2N0ExLjUgMS41IDAgMCAwIDEuNSAxMkg2djJoLS41YS41LjUgMCAwIDAgMCAxSDd2LTRIMS41YS41LjUgMCAwIDEtLjUtLjV2LTdhLjUuNSAwIDAgMSAuNS0uNUg3VjJ6Ii8+Cjwvc3ZnPg==)](https://jcdc.dev/umbraco-packages/simple-trees)
7-
8-
1+
# Umbraco.Community.SimpleTrees
2+
3+
[![Umbraco Marketplace](https://img.shields.io/badge/Umbraco-Marketplace-%233544B1?style=flat&logo=umbraco)](https://marketplace.umbraco.com/package/Umbraco.Community.SimpleTrees)
4+
[![License](https://img.shields.io/github/license/jcdcdev/Umbraco.Community.SimpleTrees?color=8AB803&label=License&logo=github)](https://github.com/jcdcdev/Umbraco.Community.SimpleTrees?tab=MIT-1-ov-file)
5+
[![NuGet Downloads](https://img.shields.io/nuget/dt/Umbraco.Community.SimpleTrees?color=cc9900&label=Downloads&logo=nuget)](https://www.nuget.org/packages/Umbraco.Community.SimpleTrees)
6+
[![Project Website](https://img.shields.io/badge/Project%20Website-jcdc.dev-jcdcdev?style=flat&color=3c4834&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0id2hpdGUiIGNsYXNzPSJiaSBiaS1wYy1kaXNwbGF5IiB2aWV3Qm94PSIwIDAgMTYgMTYiPgogIDxwYXRoIGQ9Ik04IDFhMSAxIDAgMCAxIDEtMWg2YTEgMSAwIDAgMSAxIDF2MTRhMSAxIDAgMCAxLTEgMUg5YTEgMSAwIDAgMS0xLTF6bTEgMTMuNWEuNS41IDAgMSAwIDEgMCAuNS41IDAgMCAwLTEgMG0yIDBhLjUuNSAwIDEgMCAxIDAgLjUuNSAwIDAgMC0xIDBNOS41IDFhLjUuNSAwIDAgMCAwIDFoNWEuNS41IDAgMCAwIDAtMXpNOSAzLjVhLjUuNSAwIDAgMCAuNS41aDVhLjUuNSAwIDAgMCAwLTFoLTVhLjUuNSAwIDAgMC0uNS41TTEuNSAyQTEuNSAxLjUgMCAwIDAgMCAzLjV2N0ExLjUgMS41IDAgMCAwIDEuNSAxMkg2djJoLS41YS41LjUgMCAwIDAgMCAxSDd2LTRIMS41YS41LjUgMCAwIDEtLjUtLjV2LTdhLjUuNSAwIDAgMSAuNS0uNUg3VjJ6Ii8+Cjwvc3ZnPg==)](https://jcdc.dev/umbraco-packages/simple-trees)
7+
8+
99
This packages aims to help developers quickly put together Umbraco Trees using C#.
1010

1111
## Features
1212

1313
- C# custom tree creation
1414
- No javascript or umbraco-package.json files required
1515
- Supports both Views & View Components
16-
- Easy to define section permissions
17-
18-
## Quick Start
19-
16+
- Easy to define section permissions
17+
- ✨ Custom Entity Actions!
18+
19+
## Quick Start
20+
2021
### Install Package
2122

2223
```csharp
@@ -29,7 +30,7 @@ By default, this will display in the content section.
2930

3031
```csharp title="ExampleTree.cs"
3132
using Umbraco.Cms.Core.Models;
32-
using Umbraco.Community.SimpleTrees.Models;
33+
using Umbraco.Community.SimpleTrees.Core.Models;
3334

3435
namespace Umbraco.Community.SimpleTrees.TestSite.Trees;
3536

@@ -78,17 +79,101 @@ public class MyTree : SimpleTree
7879
</table>
7980
</div>
8081
</uui-box>
81-
```
82-
83-
84-
85-
## Contributing
86-
87-
Contributions to this package are most welcome! Please visit the [Contributing](https://github.com/jcdcdev/Umbraco.Community.SimpleTrees/contribute) page.
88-
89-
## Acknowledgements (Thanks)
90-
91-
- LottePitcher - [opinionated-package-starter](https://github.com/LottePitcher/opinionated-package-starter)
92-
93-
82+
```
83+
84+
85+
## Extending
86+
87+
### Entity Actions
88+
89+
It is possible to implement two Entity Actions
90+
91+
#### Url Actions
92+
93+
When clicked, the user will be taken to the specific URL.
94+
95+
```csharp title="NuGetPackageItemEntityUrlAction.cs"
96+
using Umbraco.Community.SimpleTrees.Core.Models;
97+
98+
namespace Umbraco.Community.SimpleTrees.TestSite.Trees;
99+
100+
public class NuGetPackageItemEntityUrlAction : SimpleEntityUrlAction
101+
{
102+
public override string Icon => "icon-link";
103+
public override string Name => "Go to Package";
104+
public override Type[] ForTreeItems => [typeof(NuGetPackageTree)];
105+
public override Type[] ForSimpleEntityTypes => [typeof(NuGetPackageVersionEntityType)];
106+
107+
public override Task<Uri> GetUrlAsync(string unique, string entityType)
108+
{
109+
var uri = new Uri("https://www.nuget.org/packages/" + unique);
110+
return Task.FromResult(uri);
111+
}
112+
}
113+
```
114+
115+
#### Execute Actions
116+
117+
When clicked, you custom logic will be executed. You can also return a helpful response to the user.
118+
119+
```csharp title="NuGetPackageItemEntityExecuteAction"
120+
using System.Net.Http.Headers;
121+
using Umbraco.Community.SimpleTrees.Core.Models;
122+
using Umbraco.Community.SimpleTrees.Web.Models;
123+
124+
namespace Umbraco.Community.SimpleTrees.TestSite.Trees;
125+
126+
public class NuGetPackageItemEntityExecuteAction : SimpleEntityExecuteAction
127+
{
128+
private readonly HttpClient _client;
129+
130+
public NuGetPackageItemEntityExecuteAction(HttpClient client)
131+
{
132+
var url = "https://functions.marketplace.umbraco.com/api/";
133+
client.BaseAddress = new Uri(url);
134+
client.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue("Umbraco.Community.SimpleTrees.TestSite", "1.0"));
135+
_client = client;
136+
}
137+
138+
public override string Icon => "icon-refresh";
139+
public override string Name => "Sync Package";
140+
public override Type[] ForTreeItems => [typeof(NuGetPackageTree)];
141+
142+
public override async Task<SimpleEntityActionExecuteResponse> ExecuteAsync(string unique, string entityType)
143+
{
144+
try
145+
{
146+
var split = unique.Split('_');
147+
var packageId = split[0];
148+
var model = new MarketplaceRequest
149+
{
150+
PackageId = packageId,
151+
};
152+
153+
var result = await _client.PostAsJsonAsync("InitiateSinglePackageSyncFunction", model);
154+
if (!result.IsSuccessStatusCode)
155+
{
156+
return SimpleEntityActionExecuteResponse.Error("Failed to initiate package update", $"Status Code: {result.StatusCode}, Reason: {result.ReasonPhrase}");
157+
}
158+
159+
var message = $"Package {packageId} update has been initiated. You can check the progress in the Umbraco Marketplace.";
160+
return SimpleEntityActionExecuteResponse.Success("Package update initiated successfully", message);
161+
}
162+
catch (Exception ex)
163+
{
164+
return SimpleEntityActionExecuteResponse.Error("An error occurred while initiating the package update", ex.Message);
165+
}
166+
}
167+
}
168+
```
169+
170+
## Contributing
171+
172+
Contributions to this package are most welcome! Please visit the [Contributing](https://github.com/jcdcdev/Umbraco.Community.SimpleTrees/contribute) page.
173+
174+
## Acknowledgements (Thanks)
175+
176+
- LottePitcher - [opinionated-package-starter](https://github.com/LottePitcher/opinionated-package-starter)
177+
178+
94179

SECURITY.md

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
1-
# Security Policy
2-
3-
## Supported Versions
4-
5-
The following table outlines the versions of the project that are currently supported with security & feature updates:
6-
7-
> [!NOTE]
8-
> Once a version starts its security phase, it will no longer receive feature updates. Only critical bug fixes and security updates will be provided.
9-
10-
| Package Version | Umbraco Version | Security Phase Start | End of Life |
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
The following table outlines the versions of the project that are currently supported with security & feature updates:
6+
7+
> [!NOTE]
8+
> Once a version starts its security phase, it will no longer receive feature updates. Only critical bug fixes and security updates will be provided.
9+
10+
| Package Version | Umbraco Version | Security Phase Start | End of Life |
1111
| ---------------------------------------------------------------------------------- | --------------- | -------------------- | ----------- |
1212
| [15.x](https://github.com/jcdcdev/Umbraco.Community.SimpleTrees/tree/v15) | 15 | 2025-08-14 | 2025-11-14 |
13-
| [16.x](https://github.com/jcdcdev/Umbraco.Community.SimpleTrees/tree/v16) | 16 | 2026-03-12 | 2026-06-12 |
14-
15-
16-
## Future Support
17-
18-
Project maintainers plan to support all STS (Short-Term Support) and LTS (Long-Term Support) versions of Umbraco. However, exact release dates cannot be guaranteed.
19-
20-
> [!NOTE]
21-
> Visit [jcdc.dev/blog/umbraco-version-information](https://jcdc.dev/blog/umbraco-version-information) for more information on Umbraco versions.
22-
23-
## Reporting a Vulnerability
24-
25-
If you discover a vulnerability in this project, please follow one of these steps to report it:
26-
27-
- Create an [issue](https://github.com/jcdcdev/Umbraco.Community.SimpleTrees/security/advisories/new)
28-
- Contact the project author privately at [jcdc.dev/contact](https://jcdc.dev/contact)
29-
30-
### Details
31-
32-
Include as much information as possible about the vulnerability, including:
33-
34-
- Steps to reproduce
35-
- Potential impact
36-
- Any suggested fixes
37-
38-
### Acknowledgment
39-
40-
You will receive an acknowledgment of your report as soon as possible.
41-
42-
> [!NOTE]
43-
> Response times may vary depending on other commitments.
44-
45-
### Resolution
46-
47-
Once the vulnerability is confirmed, project maintainers will work to resolve it as quickly as possible.
48-
49-
You will be notified once the issue has been resolved or rejected.
50-
51-
> [!TIP]
52-
> If the vulnerability is accepted, you will receive credit in the release notes.
53-
54-
Thank you for helping to keep this project secure!
13+
| [16.x](https://github.com/jcdcdev/Umbraco.Community.SimpleTrees/tree/v16) | 16 | 2026-03-12 | 2026-06-12 |
14+
15+
16+
## Future Support
17+
18+
Project maintainers plan to support all STS (Short-Term Support) and LTS (Long-Term Support) versions of Umbraco. However, exact release dates cannot be guaranteed.
19+
20+
> [!NOTE]
21+
> Visit [jcdc.dev/blog/umbraco-version-information](https://jcdc.dev/blog/umbraco-version-information) for more information on Umbraco versions.
22+
23+
## Reporting a Vulnerability
24+
25+
If you discover a vulnerability in this project, please follow one of these steps to report it:
26+
27+
- Create an [issue](https://github.com/jcdcdev/Umbraco.Community.SimpleTrees/security/advisories/new)
28+
- Contact the project author privately at [jcdc.dev/contact](https://jcdc.dev/contact)
29+
30+
### Details
31+
32+
Include as much information as possible about the vulnerability, including:
33+
34+
- Steps to reproduce
35+
- Potential impact
36+
- Any suggested fixes
37+
38+
### Acknowledgment
39+
40+
You will receive an acknowledgment of your report as soon as possible.
41+
42+
> [!NOTE]
43+
> Response times may vary depending on other commitments.
44+
45+
### Resolution
46+
47+
Once the vulnerability is confirmed, project maintainers will work to resolve it as quickly as possible.
48+
49+
You will be notified once the issue has been resolved or rejected.
50+
51+
> [!TIP]
52+
> If the vulnerability is accepted, you will receive credit in the release notes.
53+
54+
Thank you for helping to keep this project secure!
5555

docs/README_nuget.md

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
# Umbraco.Community.SimpleTrees
2-
3-
[![Documentation](https://img.shields.io/badge/Docs-Quickstart-394933?style=flat&logo=github)](https://github.com/jcdcdev/Umbraco.Community.SimpleTrees#quick-start)
4-
[![Umbraco Marketplace](https://img.shields.io/badge/Umbraco-Marketplace-%233544B1?style=flat&logo=umbraco)](https://marketplace.umbraco.com/package/Umbraco.Community.SimpleTrees)
5-
[![License](https://img.shields.io/github/license/jcdcdev/Umbraco.Community.SimpleTrees?color=8AB803&label=License&logo=github)](https://github.com/jcdcdev/Umbraco.Community.SimpleTrees?tab=MIT-1-ov-file)
6-
[![NuGet Downloads](https://img.shields.io/nuget/dt/Umbraco.Community.SimpleTrees?color=cc9900&label=Downloads&logo=nuget)](https://www.nuget.org/packages/Umbraco.Community.SimpleTrees)
7-
[![Project Website](https://img.shields.io/badge/Project%20Website-jcdc.dev-jcdcdev?style=flat&color=3c4834&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0id2hpdGUiIGNsYXNzPSJiaSBiaS1wYy1kaXNwbGF5IiB2aWV3Qm94PSIwIDAgMTYgMTYiPgogIDxwYXRoIGQ9Ik04IDFhMSAxIDAgMCAxIDEtMWg2YTEgMSAwIDAgMSAxIDF2MTRhMSAxIDAgMCAxLTEgMUg5YTEgMSAwIDAgMS0xLTF6bTEgMTMuNWEuNS41IDAgMSAwIDEgMCAuNS41IDAgMCAwLTEgMG0yIDBhLjUuNSAwIDEgMCAxIDAgLjUuNSAwIDAgMC0xIDBNOS41IDFhLjUuNSAwIDAgMCAwIDFoNWEuNS41IDAgMCAwIDAtMXpNOSAzLjVhLjUuNSAwIDAgMCAuNS41aDVhLjUuNSAwIDAgMCAwLTFoLTVhLjUuNSAwIDAgMC0uNS41TTEuNSAyQTEuNSAxLjUgMCAwIDAgMCAzLjV2N0ExLjUgMS41IDAgMCAwIDEuNSAxMkg2djJoLS41YS41LjUgMCAwIDAgMCAxSDd2LTRIMS41YS41LjUgMCAwIDEtLjUtLjV2LTdhLjUuNSAwIDAgMSAuNS0uNUg3VjJ6Ii8+Cjwvc3ZnPg==)](https://jcdc.dev/umbraco-packages/simple-trees)
8-
9-
1+
# Umbraco.Community.SimpleTrees
2+
3+
[![Documentation](https://img.shields.io/badge/Docs-Quickstart-394933?style=flat&logo=github)](https://github.com/jcdcdev/Umbraco.Community.SimpleTrees#quick-start)
4+
[![Umbraco Marketplace](https://img.shields.io/badge/Umbraco-Marketplace-%233544B1?style=flat&logo=umbraco)](https://marketplace.umbraco.com/package/Umbraco.Community.SimpleTrees)
5+
[![License](https://img.shields.io/github/license/jcdcdev/Umbraco.Community.SimpleTrees?color=8AB803&label=License&logo=github)](https://github.com/jcdcdev/Umbraco.Community.SimpleTrees?tab=MIT-1-ov-file)
6+
[![NuGet Downloads](https://img.shields.io/nuget/dt/Umbraco.Community.SimpleTrees?color=cc9900&label=Downloads&logo=nuget)](https://www.nuget.org/packages/Umbraco.Community.SimpleTrees)
7+
[![Project Website](https://img.shields.io/badge/Project%20Website-jcdc.dev-jcdcdev?style=flat&color=3c4834&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0id2hpdGUiIGNsYXNzPSJiaSBiaS1wYy1kaXNwbGF5IiB2aWV3Qm94PSIwIDAgMTYgMTYiPgogIDxwYXRoIGQ9Ik04IDFhMSAxIDAgMCAxIDEtMWg2YTEgMSAwIDAgMSAxIDF2MTRhMSAxIDAgMCAxLTEgMUg5YTEgMSAwIDAgMS0xLTF6bTEgMTMuNWEuNS41IDAgMSAwIDEgMCAuNS41IDAgMCAwLTEgMG0yIDBhLjUuNSAwIDEgMCAxIDAgLjUuNSAwIDAgMC0xIDBNOS41IDFhLjUuNSAwIDAgMCAwIDFoNWEuNS41IDAgMCAwIDAtMXpNOSAzLjVhLjUuNSAwIDAgMCAuNS41aDVhLjUuNSAwIDAgMCAwLTFoLTVhLjUuNSAwIDAgMC0uNS41TTEuNSAyQTEuNSAxLjUgMCAwIDAgMCAzLjV2N0ExLjUgMS41IDAgMCAwIDEuNSAxMkg2djJoLS41YS41LjUgMCAwIDAgMCAxSDd2LTRIMS41YS41LjUgMCAwIDEtLjUtLjV2LTdhLjUuNSAwIDAgMSAuNS0uNUg3VjJ6Ii8+Cjwvc3ZnPg==)](https://jcdc.dev/umbraco-packages/simple-trees)
8+
9+
1010
This packages aims to help developers quickly put together Umbraco Trees using C#.
1111

1212
## Features
1313

1414
- C# custom tree creation
1515
- No javascript or umbraco-package.json files required
1616
- Supports both Views & View Components
17-
- Easy to define section permissions
18-
19-
## Quick Start
20-
17+
- Easy to define section permissions
18+
- ✨ Custom Entity Actions!
19+
20+
## Quick Start
21+
2122
### Install Package
2223

2324
```csharp
@@ -30,7 +31,7 @@ By default, this will display in the content section.
3031

3132
```csharp title="ExampleTree.cs"
3233
using Umbraco.Cms.Core.Models;
33-
using Umbraco.Community.SimpleTrees.Models;
34+
using Umbraco.Community.SimpleTrees.Core.Models;
3435

3536
namespace Umbraco.Community.SimpleTrees.TestSite.Trees;
3637

@@ -79,16 +80,16 @@ public class MyTree : SimpleTree
7980
</table>
8081
</div>
8182
</uui-box>
82-
```
83-
84-
85-
## Contributing
86-
87-
Contributions to this package are most welcome! Please visit the [Contributing](https://github.com/jcdcdev/Umbraco.Community.SimpleTrees/contribute) page.
88-
89-
## Acknowledgements (Thanks)
90-
91-
- LottePitcher - [opinionated-package-starter](https://github.com/LottePitcher/opinionated-package-starter)
92-
93-
83+
```
84+
85+
86+
## Contributing
87+
88+
Contributions to this package are most welcome! Please visit the [Contributing](https://github.com/jcdcdev/Umbraco.Community.SimpleTrees/contribute) page.
89+
90+
## Acknowledgements (Thanks)
91+
92+
- LottePitcher - [opinionated-package-starter](https://github.com/LottePitcher/opinionated-package-starter)
93+
94+
9495

131 KB
Loading

src/Umbraco.Community.SimpleTrees.Client/src/api/sdk.gen.ts

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file is auto-generated by @hey-api/openapi-ts
22

33
import type { Options as ClientOptions, TDataShape, Client } from './client';
4-
import type { GetUmbracoSimpleTreesApiV1TreeItemsData, GetUmbracoSimpleTreesApiV1TreeItemsResponses, GetUmbracoSimpleTreesApiV1TreeRenderData, GetUmbracoSimpleTreesApiV1TreeRenderResponses, GetUmbracoSimpleTreesApiV1TreeRootData, GetUmbracoSimpleTreesApiV1TreeRootResponses } from './types.gen';
4+
import type { PostUmbracoSimpleTreesApiV1EntityActionExecuteData, PostUmbracoSimpleTreesApiV1EntityActionExecuteResponses, PostUmbracoSimpleTreesApiV1EntityActionUrlData, PostUmbracoSimpleTreesApiV1EntityActionUrlResponses, GetUmbracoSimpleTreesApiV1TreeItemsData, GetUmbracoSimpleTreesApiV1TreeItemsResponses, GetUmbracoSimpleTreesApiV1TreeRenderData, GetUmbracoSimpleTreesApiV1TreeRenderResponses, GetUmbracoSimpleTreesApiV1TreeRootData, GetUmbracoSimpleTreesApiV1TreeRootResponses } from './types.gen';
55
import { client as _heyApiClient } from './client.gen';
66

77
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
@@ -19,6 +19,28 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
1919
};
2020

2121
export class SimpleTrees {
22+
public static postUmbracoSimpleTreesApiV1EntityActionExecute<ThrowOnError extends boolean = true>(options?: Options<PostUmbracoSimpleTreesApiV1EntityActionExecuteData, ThrowOnError>) {
23+
return (options?.client ?? _heyApiClient).post<PostUmbracoSimpleTreesApiV1EntityActionExecuteResponses, unknown, ThrowOnError>({
24+
url: '/umbraco/SimpleTrees/api/v1/entity-action/execute',
25+
...options,
26+
headers: {
27+
'Content-Type': 'application/json',
28+
...options?.headers
29+
}
30+
});
31+
}
32+
33+
public static postUmbracoSimpleTreesApiV1EntityActionUrl<ThrowOnError extends boolean = true>(options?: Options<PostUmbracoSimpleTreesApiV1EntityActionUrlData, ThrowOnError>) {
34+
return (options?.client ?? _heyApiClient).post<PostUmbracoSimpleTreesApiV1EntityActionUrlResponses, unknown, ThrowOnError>({
35+
url: '/umbraco/SimpleTrees/api/v1/entity-action/url',
36+
...options,
37+
headers: {
38+
'Content-Type': 'application/json',
39+
...options?.headers
40+
}
41+
});
42+
}
43+
2244
public static getUmbracoSimpleTreesApiV1TreeItems<ThrowOnError extends boolean = true>(options?: Options<GetUmbracoSimpleTreesApiV1TreeItemsData, ThrowOnError>) {
2345
return (options?.client ?? _heyApiClient).get<GetUmbracoSimpleTreesApiV1TreeItemsResponses, unknown, ThrowOnError>({
2446
url: '/umbraco/SimpleTrees/api/v1/tree/items',

0 commit comments

Comments
 (0)