Skip to content

Commit c117ca7

Browse files
authored
Merge pull request #14 from jcdcdev/dev/v15
15.1.0
2 parents 800503b + edbc2da commit c117ca7

File tree

78 files changed

+1166
-273
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

+1166
-273
lines changed

.github/README.md

Lines changed: 116 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
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+
> [!IMPORTANT]
20+
> Version 15 will only receive security updates and no new features.
21+
22+
> Please review the [security policy](https://github.com/jcdcdev/Umbraco.Community.SimpleTrees?tab=security-ov-file#supported-versions) for more information.
23+
24+
## Quick Start
25+
2026
### Install Package
2127

2228
```csharp
@@ -29,7 +35,7 @@ By default, this will display in the content section.
2935

3036
```csharp title="ExampleTree.cs"
3137
using Umbraco.Cms.Core.Models;
32-
using Umbraco.Community.SimpleTrees.Models;
38+
using Umbraco.Community.SimpleTrees.Core.Models;
3339

3440
namespace Umbraco.Community.SimpleTrees.TestSite.Trees;
3541

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

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)