Skip to content

Commit

Permalink
Merge branch 'master' into ON-44640
Browse files Browse the repository at this point in the history
  • Loading branch information
mymattcarroll authored Nov 6, 2024
2 parents 0b30b45 + d232ef9 commit 36bdeec
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Added

- `nylasGrantId` and `nylasConfigurationId` to `FormSubmissionEventConfiguration`

### Removed

- **[BREAKING]** `FormsAppsClient.updateStyles()` The `styles` property can be set using `FormsAppsClient.Create()` and updated using `FormsAppsClient.Update()`
Expand Down
20 changes: 20 additions & 0 deletions OneBlink.SDK/models/FormSubmissionEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,26 @@ public static FormSubmissionEvent CreateSchedulingSubmissionEvent(
return schedulingEvent;
}

public static FormSubmissionEvent CreateNylasSubmissionEvent(string nylasGrantId,
string nylasConfigurationId,
Guid? nameElementId = null,
Guid? emailElementId = null,
string emailDescription = null,
string label = null)
{
FormSubmissionEventConfiguration fseconfig = new FormSubmissionEventConfiguration();
fseconfig.nylasGrantId = nylasGrantId;
fseconfig.nylasConfigurationId = nylasConfigurationId;
fseconfig.nameElementId = nameElementId;
fseconfig.emailElementId = emailElementId;
fseconfig.emailDescription = emailDescription;
FormSubmissionEvent nylasEvent = new FormSubmissionEvent();
nylasEvent.type = "NYLAS";
nylasEvent.configuration = fseconfig;
nylasEvent.label = label;
return nylasEvent;
}

[Obsolete("Using CreatePDFSubmissionEvent() with the 'email' parameter is obsolete. Call CreatePDFSubmissionEvent() without the 'email' parameter instead.")]
public static FormSubmissionEvent CreatePDFSubmissionEvent(
string email,
Expand Down
8 changes: 8 additions & 0 deletions OneBlink.SDK/models/FormSubmissionEventConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,14 @@ public long? nylasSchedulingPageId
{
get; set;
}
public string nylasGrantId
{
get; set;
}
public string nylasConfigurationId
{
get; set;
}
public Guid? nameElementId
{
get; set;
Expand Down

0 comments on commit 36bdeec

Please sign in to comment.