Skip to content

Commit 07ce1ae

Browse files
committed
V14: Integrations (HubSpot/Forms)
- Namespace cleanup - Regenerate API - Update PR from comments - Remove other project references on test site
1 parent f41bf5b commit 07ce1ae

27 files changed

+63
-429
lines changed

src/Umbraco.Forms.Integrations.Crm.Hubspot/Api/Management/Controllers/Contacts/AuthorizeController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ public AuthorizeController(IContactService contactService) : base(contactService
1313

1414
[HttpPost("authorize")]
1515
[ProducesResponseType(typeof(AuthorizationResult), StatusCodes.Status200OK)]
16-
public async Task<IActionResult> Authorize([FromBody] AuthorizationRequest request) => Ok(await ContactService.AuthorizeAsync(request.Code));
16+
public async Task<IActionResult> Authorize([FromBody]AuthorizationRequest request) => Ok(await ContactService.AuthorizeAsync(request.Code));
1717
}
1818
}

src/Umbraco.Forms.Integrations.Crm.Hubspot/Client/public/vite.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Umbraco.Forms.Integrations.Crm.Hubspot/Client/src/lang/manifests.ts

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -10,76 +10,6 @@ const localizationManifests: Array<ManifestLocalization> = [
1010
culture: "en",
1111
},
1212
js: () => import("./en.js"),
13-
// },
14-
// {
15-
// type: "localization",
16-
// alias: "Forms.Localization.Cs_CZ",
17-
// weight: -100,
18-
// name: "Czech",
19-
// meta: {
20-
// culture: "cs-cz",
21-
// },
22-
// js: () => import("./cs-cz.js"),
23-
// },
24-
// {
25-
// type: "localization",
26-
// alias: "Forms.Localization.Da_DK",
27-
// weight: -100,
28-
// name: "Danish",
29-
// meta: {
30-
// culture: "da-dk",
31-
// },
32-
// js: () => import("./da-dk.js"),
33-
// },
34-
// {
35-
// type: "localization",
36-
// alias: "Forms.Localization.En_GB",
37-
// weight: -100,
38-
// name: "English (UK)",
39-
// meta: {
40-
// culture: "en-gb",
41-
// },
42-
// js: () => import("./en-gb.js"),
43-
// },
44-
// {
45-
// type: "localization",
46-
// alias: "Forms.Localization.Es_ES",
47-
// weight: -100,
48-
// name: "Spanish",
49-
// meta: {
50-
// culture: "es-es",
51-
// },
52-
// js: () => import("./es-es.js"),
53-
// },
54-
// {
55-
// type: "localization",
56-
// alias: "Forms.Localization.Fr_FR",
57-
// weight: -100,
58-
// name: "French",
59-
// meta: {
60-
// culture: "fr-fr",
61-
// },
62-
// js: () => import("./fr-fr.js"),
63-
// },
64-
// {
65-
// type: "localization",
66-
// alias: "Forms.Localization.It_IT",
67-
// weight: -100,
68-
// name: "French",
69-
// meta: {
70-
// culture: "it-it",
71-
// },
72-
// js: () => import("./it-it.js"),
73-
// },
74-
// {
75-
// type: "localization",
76-
// alias: "Forms.Localization.Pl_PL",
77-
// weight: -100,
78-
// name: "Polish",
79-
// meta: {
80-
// culture: "pl-pl",
81-
// },
82-
// js: () => import("./pl-pl.js"),
8313
},
8414
];
8515
export const manifests = [...localizationManifests];

src/Umbraco.Forms.Integrations.Crm.Hubspot/Configuration/AppSettings.cs

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

src/Umbraco.Forms.Integrations.Crm.Hubspot/Configuration/ServiceConfiguration.cs

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

src/Umbraco.Forms.Integrations.Crm.Hubspot/Constants.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
6-
7-
namespace Umbraco.Forms.Integrations.Crm.Hubspot
1+
namespace Umbraco.Forms.Integrations.Crm.Hubspot
82
{
93
public class Constants
104
{
@@ -17,6 +11,7 @@ public static class ManagementApi
1711
public const string ApiTitle = "Hubspot Management API";
1812

1913
public const string ContactGroupName = "Contacts";
14+
2015
public const string FormGroupName = "Forms";
2116
}
2217
}

src/Umbraco.Forms.Integrations.Crm.Hubspot/Extensions/ObjectExtensions.cs

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

src/Umbraco.Forms.Integrations.Crm.Hubspot/Filters/SignatureValidationAttribute.cs

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

src/Umbraco.Forms.Integrations.Crm.Hubspot/HubspotComposer.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using Swashbuckle.AspNetCore.SwaggerGen;
44
using Umbraco.Cms.Core.Composing;
55
using Umbraco.Cms.Core.DependencyInjection;
6-
using Umbraco.Cms.Core.Notifications;
76
using Umbraco.Forms.Core.Providers;
87
using Umbraco.Forms.Integrations.Crm.Hubspot.Configuration;
98
using Umbraco.Forms.Integrations.Crm.Hubspot.Services;
@@ -19,8 +18,6 @@ public void Compose(IUmbracoBuilder builder)
1918

2019
builder.Services.AddSingleton<IContactService, HubspotContactService>();
2120

22-
builder.AddNotificationHandler<ServerVariablesParsingNotification, HubspotServerVariablesParsingHandler>();
23-
2421
builder.WithCollectionBuilder<WorkflowCollectionBuilder>()
2522
.Add<HubspotWorkflow>();
2623

@@ -33,7 +30,7 @@ public void Compose(IUmbracoBuilder builder)
3330
{
3431
Title = Constants.ManagementApi.ApiTitle,
3532
Version = "Latest",
36-
Description = $"Describes the {Constants.ManagementApi.ApiTitle} available for handling Hubspot automation and configuration."
33+
Description = $"Describes the {Constants.ManagementApi.ApiTitle} available for handling Hubspot-CRM automation and configuration."
3734
});
3835

3936
options.CustomOperationIds(e => $"{e.ActionDescriptor.RouteValues["action"]}");

src/Umbraco.Forms.Integrations.Crm.Hubspot/HubspotServerVariablesParsingHandler.cs

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

0 commit comments

Comments
 (0)