Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/zap cli app publish #18

Merged
merged 5 commits into from
May 2, 2024
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
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ This version supports content workflows added in version 28.3.0. Please ensure t

| Xperience Version | Library Version |
| ----------------- | --------------- |
| >= 28.3.* | 0.1.0 PREVIEW |
| >= 29.0.* | 1.0 |
| >= 29.0.* | 1.0.0 |

## Zapier cli application
The Zapier cli app version 1.0.0 will initially be beta flagged, but this is the full version. The beta flag is just a zapier flag for new app integrations. This Flag will disappear after 90 days.

### Dependencies

Expand All @@ -33,7 +35,7 @@ This version supports content workflows added in version 28.3.0. Please ensure t
Add the package to your application using the .NET CLI

```powershell
dotnet add package Kentico.Xperience.Zapier --prerelease
dotnet add package Kentico.Xperience.Zapier
```

## Quick Start (with trigger example)
Expand All @@ -57,13 +59,13 @@ dotnet add package Kentico.Xperience.Zapier --prerelease
app.UseAuthorization() //place under app.UseKentico()
```

2. Configure Zapier using ZapierConfiguration in appsettings.json of your application.
2. Configure Zapier using CMSZapierConfiguration in appsettings.json of your application.

- Specify allowed objects that can interact with your Zapier triggers and handlers.

```csharp
// appsettings.json
"ZapierConfiguration": {
"CMSZapierConfiguration": {
"AllowedObjects": [
"cms.user",
"CMS.EventLog",
Expand Down
4 changes: 2 additions & 2 deletions docs/Configuration-example.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Configuration of Zapier

This is example of ZapierConfiguration in appsettings.json.
This is example of CMSZapierConfiguration in appsettings.json.
The appropriate name of the allowed object corresponds to the ClassName in the CMS Class table.

```json
{
"ZapierConfiguration": {
"CMSZapierConfiguration": {
"AllowedObjects": [
"cms.Role",
"cms.user",
Expand Down
2 changes: 1 addition & 1 deletion examples/DancingGoat/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"CMSConnectionString": "Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=DancingGoatZapier;Integrated Security=True;Persist Security Info=False;Connect Timeout=60;Encrypt=False;Current Language=English;"
},
"CMSHashStringSalt": "40974ad7-76dd-4d5d-a70e-4539d5410492",
"ZapierConfiguration": {
"CMSZapierConfiguration": {
"AllowedObjects": [
"cms.Role",
"cms.user",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static class ZapierServiceCollectionExtensions
{
public static IServiceCollection AddKenticoZapier(this IServiceCollection services)
{
services.AddOptions<ZapierConfiguration>().BindConfiguration("ZapierConfiguration");
services.AddOptions<ZapierConfiguration>().BindConfiguration("CMSZapierConfiguration");
services.AddSingleton<IZapierModuleInstaller, ZapierModuleInstaller>();
services.AddSingleton<IZapierRegistrationService, ZapierRegistrationService>();
services.AddSingleton<IApiKeyCachedService, ApiKeyCachedService>();
Expand Down
Loading