Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions NuGet.config
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="Umbraco Prereleases" value="https://www.myget.org/F/umbracoprereleases/api/v3/index.json" />
</packageSources>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="Umbraco Prereleases" value="https://www.myget.org/F/umbracoprereleases/api/v3/index.json" />
</packageSources>
</configuration>
47 changes: 37 additions & 10 deletions azure-pipeline - Crm.ActiveCampaign.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
trigger:
branches:
include:
- main-v16
- v16/dev
- main-v17
- v17/dev
paths:
include:
- src/Umbraco.Cms.Integrations.Crm.ActiveCampaign/**
Expand All @@ -16,24 +16,28 @@ variables:
project: 'src/$(projectName)/$(projectName).csproj'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
productGroup: 'DXP'
productVersion: 'v17'
DT_API_KEY: $(dtApiKey)
DT_BASE_URL: $(dtBaseUrl)

steps:
- task: UseDotNet@2
displayName: 'Use SDK version 10.0.100'
inputs:
packageType: 'sdk'
version: '10.0.100'

- task: NuGetToolInstaller@1
displayName: 'Install NuGet'

- task: DotNetCoreCLI@2
displayName: 'NuGet Restore'
inputs:
command: 'restore'
feedsToUse: 'select'
feedsToUse: 'config'
projects: '$(project)'
includeNuGetOrg: true

- task: UseDotNet@2
displayName: 'Use SDK version 9.0.203'
inputs:
packageType: 'sdk'
version: '9.0.203'
nugetConfigPath: 'NuGet.config'

- task: VSBuild@1
displayName: 'Build Project'
Expand All @@ -57,3 +61,26 @@ steps:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'

# Generate/upload SBOM with cdxgen
- script: |
cd $(Build.SourcesDirectory)
npm install --global @cyclonedx/cdxgen
displayName: 'Install cdxgen'

- script: |
mkdir -p $(Build.ArtifactStagingDirectory)/bom
cd $(Build.SourcesDirectory)

cdxgen --recurse --output $(Build.ArtifactStagingDirectory)\bom\bom.json --json-pretty --project-group "$(productGroup)" --project-name "$(projectName)" --project-version "$(productVersion)" --server-url "$(DT_BASE_URL)" --api-key "$(DT_API_KEY)" --deep
displayName: 'Generate & Upload SBOM with cdxgen'
env:
DT_API_KEY: $(DT_API_KEY)
DT_BASE_URL: $(DT_BASE_URL)

# Publish SBOM artifact
- task: PublishPipelineArtifact@1
displayName: 'Publish SBOM Artifact'
inputs:
targetPath: $(Build.ArtifactStagingDirectory)/bom
artifactName: SBOM
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
Expand All @@ -8,6 +8,7 @@

<ItemGroup>
<PackageReference Include="Umbraco.Cms" Version="17.0.0" />
<ProjectReference Include="..\..\src\Umbraco.Cms.Integrations.Crm.ActiveCampaign\Umbraco.Cms.Integrations.Crm.ActiveCampaign.csproj" />
<ProjectReference Include="..\..\src\Umbraco.Cms.Integrations.Commerce.Shopify\Umbraco.Cms.Integrations.Commerce.Shopify.csproj" />
</ItemGroup>

Expand All @@ -21,6 +22,4 @@
<!-- Razor files are needed for the backoffice to work correctly -->
<CopyRazorGenerateFilesToPublishDirectory>true</CopyRazorGenerateFilesToPublishDirectory>
</PropertyGroup>


</Project>
8 changes: 0 additions & 8 deletions src/Umbraco.Cms.Integrations.Automation.Zapier/NuGet.config

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.OpenApi.Models;
using Microsoft.OpenApi;
using Swashbuckle.AspNetCore.SwaggerGen;
using Umbraco.Cms.Api.Common.OpenApi;
using Umbraco.Cms.Core.Composing;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@umbraco-cms:registry=https://www.myget.org/F/umbracoprereleases/npm/
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// This file is auto-generated by @hey-api/openapi-ts

import type { ClientOptions } from './types.gen';
import { type Config, type ClientOptions as DefaultClientOptions, createClient, createConfig } from '@hey-api/client-fetch';
import { type ClientOptions, type Config, createClient, createConfig } from '@hey-api/client-fetch';

import type { ClientOptions as ClientOptions2 } from './types.gen';

/**
* The `createClientConfig()` function will be called on client initialization
Expand All @@ -11,9 +12,9 @@ import { type Config, type ClientOptions as DefaultClientOptions, createClient,
* `setConfig()`. This is useful for example if you're using Next.js
* to ensure your client always has the correct values.
*/
export type CreateClientConfig<T extends DefaultClientOptions = ClientOptions> = (override?: Config<DefaultClientOptions & T>) => Config<Required<DefaultClientOptions> & T>;
export type CreateClientConfig<T extends ClientOptions = ClientOptions2> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;

export const client = createClient(createConfig<ClientOptions>({
baseUrl: 'http://localhost:30450',
export const client = createClient(createConfig<ClientOptions2>({
baseUrl: 'http://localhost:28157',
throwOnError: true
}));
}));
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// This file is auto-generated by @hey-api/openapi-ts
export * from './types.gen';

export type * from './types.gen';
export * from './client.gen';
export * from './sdk.gen';
export * from './sdk.gen';
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// This file is auto-generated by @hey-api/openapi-ts

import type { Options as ClientOptions, TDataShape, Client } from '@hey-api/client-fetch';
import type { GetApiAccessData, GetApiAccessResponse, GetFormsData, GetFormsResponse, GetFormsByIdData, GetFormsByIdResponse } from './types.gen';
import { client as _heyApiClient } from './client.gen';
import type { Client, Options as Options2, TDataShape } from '@hey-api/client-fetch';

export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
import { client } from './client.gen';
import type { GetApiAccessData, GetApiAccessErrors, GetApiAccessResponses, GetFormsByIdData, GetFormsByIdErrors, GetFormsByIdResponses, GetFormsData, GetFormsErrors, GetFormsResponses } from './types.gen';

export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
/**
* You can provide a client instance returned by `createClient()` instead of
* individual options. This might be also useful if you want to implement a
Expand All @@ -18,9 +19,9 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
meta?: Record<string, unknown>;
};

export class ActiveCampaignFormsService {
export class ActiveCampaignForms {
public static getApiAccess<ThrowOnError extends boolean = true>(options?: Options<GetApiAccessData, ThrowOnError>) {
return (options?.client ?? _heyApiClient).get<GetApiAccessResponse, unknown, ThrowOnError>({
return (options?.client ?? client).get<GetApiAccessResponses, GetApiAccessErrors, ThrowOnError>({
security: [
{
scheme: 'bearer',
Expand All @@ -33,7 +34,7 @@ export class ActiveCampaignFormsService {
}

public static getForms<ThrowOnError extends boolean = true>(options?: Options<GetFormsData, ThrowOnError>) {
return (options?.client ?? _heyApiClient).get<GetFormsResponse, unknown, ThrowOnError>({
return (options?.client ?? client).get<GetFormsResponses, GetFormsErrors, ThrowOnError>({
security: [
{
scheme: 'bearer',
Expand All @@ -46,7 +47,7 @@ export class ActiveCampaignFormsService {
}

public static getFormsById<ThrowOnError extends boolean = true>(options: Options<GetFormsByIdData, ThrowOnError>) {
return (options.client ?? _heyApiClient).get<GetFormsByIdResponse, unknown, ThrowOnError>({
return (options.client ?? client).get<GetFormsByIdResponses, GetFormsByIdErrors, ThrowOnError>({
security: [
{
scheme: 'bearer',
Expand All @@ -57,5 +58,4 @@ export class ActiveCampaignFormsService {
...options
});
}

}
}
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
// This file is auto-generated by @hey-api/openapi-ts

export type ClientOptions = {
baseUrl: 'http://localhost:28157' | (string & {});
};

export type ApiAccessDtoModel = {
readonly account: string;
readonly isApiConfigurationValid: boolean;
};

export type FormCollectionResponseDtoModelReadable = {
export type FormCollectionResponseDtoModel = {
message: string;
forms: Array<FormDtoModel>;
meta: MetaDtoModelReadable;
};

export type FormCollectionResponseDtoModelWritable = {
message: string;
forms: Array<FormDtoModel>;
meta: MetaDtoModelWritable;
meta: MetaDtoModel;
};

export type FormDtoModel = {
Expand All @@ -27,7 +25,7 @@ export type FormResponseDtoModel = {
form: FormDtoModel;
};

export type MetaDtoModelReadable = {
export type MetaDtoModel = {
total: string;
readonly totalPages: number;
};
Expand Down Expand Up @@ -73,10 +71,6 @@ export type GetFormsErrors = {
* The resource is protected and requires an authentication token
*/
401: unknown;
/**
* Payment Required
*/
402: unknown;
/**
* Forbidden
*/
Expand All @@ -95,7 +89,7 @@ export type GetFormsResponses = {
/**
* OK
*/
200: FormCollectionResponseDtoModelReadable;
200: FormCollectionResponseDtoModel;
};

export type GetFormsResponse = GetFormsResponses[keyof GetFormsResponses];
Expand Down Expand Up @@ -136,7 +130,3 @@ export type GetFormsByIdResponses = {
};

export type GetFormsByIdResponse = GetFormsByIdResponses[keyof GetFormsByIdResponses];

export type ClientOptions = {
baseUrl: 'http://localhost:30450' | (string & {});
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default defineConfig({
logs: {
level: 'debug',
},
input: 'http://localhost:30450/umbraco/swagger/activecampaign-forms-management/swagger.json',
input: 'http://localhost:28157/umbraco/swagger/activecampaign-forms-management/swagger.json',
output: {
path: 'generated',
},
Expand Down
Loading
Loading