Skip to content

Commit a52b360

Browse files
committed
V14: Integrations (Zapier)
- Add front end to Zapier project - Some updates for Zapier project
1 parent aa11ff2 commit a52b360

File tree

95 files changed

+8020
-74494
lines changed

Some content is hidden

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

95 files changed

+8020
-74494
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ src/Testsite/App_Plugins/Our.Umbraco.DashIt
66
src/Testsite/umbraco
77
src/Testsite/Views
88
src/Testsite/wwwroot
9+
src/Umbraco.Cms.Integrations.Automation.Zapier/wwwroot
910

1011

1112

src/Umbraco.Cms.Integrations.Automation.Zapier/Api/Management/Controllers/AuthController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using Asp.Versioning;
77
using Microsoft.Extensions.Options;
88
using Umbraco.Cms.Integrations.Automation.Zapier.Configuration;
9+
using Microsoft.AspNetCore.Http;
910

1011
namespace Umbraco.Cms.Integrations.Automation.Zapier.Api.Management.Controllers
1112
{

src/Umbraco.Cms.Integrations.Automation.Zapier/Api/Management/Controllers/ConfigController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using Microsoft.Extensions.Options;
88
using Umbraco.Cms.Integrations.Automation.Zapier.Configuration;
99
using Asp.Versioning;
10+
using Microsoft.AspNetCore.Http;
1011

1112
namespace Umbraco.Cms.Integrations.Automation.Zapier.Api.Management.Controllers
1213
{

src/Umbraco.Cms.Integrations.Automation.Zapier/Api/Management/Controllers/ContentController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using Asp.Versioning;
99
using Microsoft.AspNetCore.Mvc;
1010
using Microsoft.AspNetCore.Mvc.Formatters.Xml;
11+
using Microsoft.AspNetCore.Http;
1112

1213
namespace Umbraco.Cms.Integrations.Automation.Zapier.Api.Management.Controllers
1314
{

src/Umbraco.Cms.Integrations.Automation.Zapier/Api/Management/Controllers/PollingController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using Asp.Versioning;
1010
using Microsoft.AspNetCore.Mvc;
1111
using Umbraco.Extensions;
12+
using Microsoft.AspNetCore.Http;
1213

1314
namespace Umbraco.Cms.Integrations.Automation.Zapier.Api.Management.Controllers
1415
{

src/Umbraco.Cms.Integrations.Automation.Zapier/Api/Management/Controllers/SubscriptionController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using Microsoft.Extensions.Options;
66
using Umbraco.Cms.Integrations.Automation.Zapier.Configuration;
77
using Asp.Versioning;
8+
using Microsoft.AspNetCore.Http;
89

910
namespace Umbraco.Cms.Integrations.Automation.Zapier.Api.Management.Controllers
1011
{
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const outputPath = 'Debug' !== 'Release' ? '../wwwroot' : '../obj/Debug/net8.0/clientassets'
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import type { ApiRequestOptions } from './ApiRequestOptions';
2+
import type { ApiResult } from './ApiResult';
3+
4+
export class ApiError extends Error {
5+
public readonly url: string;
6+
public readonly status: number;
7+
public readonly statusText: string;
8+
public readonly body: unknown;
9+
public readonly request: ApiRequestOptions;
10+
11+
constructor(request: ApiRequestOptions, response: ApiResult, message: string) {
12+
super(message);
13+
14+
this.name = 'ApiError';
15+
this.url = response.url;
16+
this.status = response.status;
17+
this.statusText = response.statusText;
18+
this.body = response.body;
19+
this.request = request;
20+
}
21+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
export type ApiRequestOptions = {
2+
readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
3+
readonly url: string;
4+
readonly path?: Record<string, unknown>;
5+
readonly cookies?: Record<string, unknown>;
6+
readonly headers?: Record<string, unknown>;
7+
readonly query?: Record<string, unknown>;
8+
readonly formData?: Record<string, unknown>;
9+
readonly body?: any;
10+
readonly mediaType?: string;
11+
readonly responseHeader?: string;
12+
readonly errors?: Record<number | string, string>;
13+
};

0 commit comments

Comments
 (0)