/* Options:
Date: 2025-05-04 22:19:28
Version: 8.71
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://team.evovoice.io
//GlobalNamespace:
//MakePartial: True
//MakeVirtual: True
//MakeInternal: False
//MakeDataContractsExtensible: False
//AddNullableAnnotations: False
//AddReturnMarker: True
//AddDescriptionAsComments: True
//AddDataContractAttributes: False
//AddIndexesToDataMembers: False
//AddGeneratedCodeAttributes: False
//AddResponseStatus: False
//AddImplicitVersion:
//InitializeCollections: False
//ExportValueTypes: False
IncludeTypes: NewIntegration.*
//ExcludeTypes:
//AddNamespaces:
//AddDefaultXmlNamespace: http://schemas.servicestack.net/types
*/
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Voice.Api.Flows.Data;
using Voice.Api.Endpoints;
using Voice.Api.Integrations;
using Voice.Api;
using Voice.Api.Customers;
namespace Voice.Api
{
public partial class EntityInfo
{
///
///The ID of the object
///
[ApiMember(Description="The ID of the object")]
public virtual string Id { get; set; }
///
///The date the object was created
///
[ApiMember(Description="The date the object was created")]
public virtual string DateCreated { get; set; }
///
///The date the object was last modified
///
[ApiMember(Description="The date the object was last modified")]
public virtual string DateLastModified { get; set; }
///
///The user that created this object
///
[ApiMember(Description="The user that created this object")]
public virtual string CreatedBy { get; set; }
///
///The user that last modified this object
///
[ApiMember(Description="The user that last modified this object")]
public virtual string LastModifiedBy { get; set; }
}
}
namespace Voice.Api.Customers
{
public partial class CustomerBreadcrumb
{
public virtual string Id { get; set; }
public virtual string Name { get; set; }
}
}
namespace Voice.Api.Endpoints
{
public enum UserDataFieldModes
{
Hidden,
ReadOnly,
ReadWrite,
}
}
namespace Voice.Api.Flows.Data
{
public partial class DataField
{
public virtual string Id { get; set; }
public virtual string Name { get; set; }
public virtual ValueTypes Type { get; set; }
public virtual UIHints UIHint { get; set; }
public virtual string UITab { get; set; }
public virtual bool IsAsync { get; set; }
public virtual bool DisableBinding { get; set; }
public virtual DataType StructType { get; set; }
public virtual DataType ListType { get; set; }
public virtual string Description { get; set; }
public virtual List PossibleValues { get; set; }
public virtual bool IsOutput { get; set; }
public virtual string CustomFieldValuesUrl { get; set; }
public virtual Value DefaultValue { get; set; }
public virtual string TransitionNameFormat { get; set; }
public virtual DataFieldUniqueness Uniqueness { get; set; }
public virtual bool VoiceOnly { get; set; }
public virtual string ConditionalVisibilityField { get; set; }
public virtual string ConditionalVisibilityValue { get; set; }
public virtual bool NoEvalTemplate { get; set; }
public virtual UserDataFieldModes UserMode { get; set; }
public virtual bool AnyValueType { get; set; }
}
public enum DataFieldUniqueness
{
NotUnique,
Unique,
UniqueToCustomer,
}
public partial class DataType
{
public virtual string TypeName { get; set; }
public virtual List Fields { get; set; }
}
public partial class Struct
: Dictionary
{
}
public enum UIHints
{
None,
LargeText,
InlineForm,
Password,
InlineStruct,
}
public partial class Value
{
public virtual bool? BoolValue { get; set; }
public virtual string StringValue { get; set; }
public virtual double? NumberValue { get; set; }
public virtual List ListValue { get; set; }
public virtual Struct StructValue { get; set; }
}
public enum ValueTypes
{
NotSpecified,
String,
Boolean,
Number,
List,
Struct,
Transition,
Custom,
Date,
AudioFile,
TimeZoneId,
PhoneNumber,
User,
Endpoint,
Time,
File,
FaxNumber,
EmailAccount,
Customer,
Flow,
Team,
FlowReference,
Integration,
Assistant,
}
}
namespace Voice.Api.Integrations
{
public enum IntegrationFeatures
{
CrmSync,
OAuth2,
}
public partial class IntegrationInfo
: EntityInfo
{
///
///The ID of the account associated with this integration
///
[ApiMember(Description="The ID of the account associated with this integration")]
public virtual string AccountId { get; set; }
///
///The ID of the customer this integration is associated with
///
[ApiMember(Description="The ID of the customer this integration is associated with")]
public virtual string CustomerId { get; set; }
///
///The name of the customer this integration is associated with
///
[ApiMember(Description="The name of the customer this integration is associated with")]
public virtual string CustomerName { get; set; }
///
///The date the integration was sync'd last
///
[ApiMember(Description="The date the integration was sync'd last")]
public virtual string DateLastSync { get; set; }
///
///The breadcrumb to the customer for this integration
///
[ApiMember(Description="The breadcrumb to the customer for this integration")]
public virtual List CustomerBreadcrumb { get; set; }
///
///The name of the integration (e.g. HostedSuite Dallas)
///
[ApiMember(Description="The name of the integration (e.g. HostedSuite Dallas)")]
public virtual string Name { get; set; }
///
///Automatically create new customers / users when sync'ing with CRM?
///
[ApiMember(Description="Automatically create new customers / users when sync'ing with CRM?")]
public virtual bool AutomaticallyCreateCustomers { get; set; }
///
///The type of integration
///
[ApiMember(Description="The type of integration")]
public virtual IntegrationTypes Type { get; set; }
///
///The status of the integration
///
[ApiMember(Description="The status of the integration")]
public virtual IntegrationStatuses Status { get; set; }
///
///The status of the integration
///
[ApiMember(Description="The status of the integration")]
public virtual string StatusMessage { get; set; }
///
///The settings type for this integration
///
[ApiMember(Description="The settings type for this integration")]
public virtual DataType SettingsDataType { get; set; }
///
///The settings for this integration
///
[ApiMember(Description="The settings for this integration")]
public virtual Struct Settings { get; set; }
///
///The features supported by this integration
///
[ApiMember(Description="The features supported by this integration")]
public virtual List Features { get; set; }
///
///Is this integration authorized (OAuth)?
///
[ApiMember(Description="Is this integration authorized (OAuth)?")]
public virtual bool IsAuthorized { get; set; }
}
public enum IntegrationStatuses
{
NotConfigured,
Error,
OK,
}
public enum IntegrationTypes
{
HostedSuite,
OfficeRnd,
Zoho,
}
///
///Creates a new integration
///
[Route("/integrations", "POST")]
[Api(Description="Creates a new integration")]
public partial class NewIntegration
: IReturn, IPost
{
///
///The account ID to associate this integration with
///
[ApiMember(Description="The account ID to associate this integration with")]
public virtual string AccountId { get; set; }
///
///The type of integration
///
[ApiMember(Description="The type of integration")]
public virtual IntegrationTypes Type { get; set; }
///
///The name of the integration
///
[ApiMember(Description="The name of the integration")]
public virtual string Name { get; set; }
///
///The parent customer for this integration
///
[ApiMember(Description="The parent customer for this integration")]
public virtual string CustomerId { get; set; }
}
}