Enums.cs•5.43 kB
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
namespace Api.DigitalPages.Interfaces.Models
{
public enum DirectoryType
{
Organization,
EducationInstitution
}
[Flags]
public enum ServiceType
{
Undefined = 1,
Authorization = 2,
Storage = 4,
Store = 8,
Audit = 16,
ContentManager = 32,
Insights = 64,
Communication = 128
}
public enum ConnectorType
{
Custom = -100,
Composer_1 = 100,
Cms_1 = 200,
Dam_1 = 300,
Guide_1 = 400,
Lms_1 = 500,
Vindi_1 = 600,
Microsoft_1 = 700,
Manager_1 = 800,
News_1 = 900,
Library_1 = 1000,
DirectRegister_1 = 1100,
Apple_1 = 1200,
Google_1 = 1300,
Shark_1 = 1400,
Insights_1 = 1500,
Voucher_1 = 1600,
Campaign_1 = 1700,
Taxonomics_1 = 1800,
AzureMedia_1 = 1900,
Sr3_1 = 2000,
Customization_1 = 2100,
Learning_1 = 2200,
Review_1 = 2300,
Iot_1 = 2400,
ServerProxy_1 = 2500,
UserCommunication_1 = 2600,
Payment_1 = 2700,
UserData_1 = 2800,
SocialMedia_1 = 2900,
Bundle_1 = 5800,
Bridge_1 = 6000,
ReCaptcha_1 = 6200,
Policies_1 = 6400,
ProjectTemplate_1 = 6600,
DpPlatform_1 = 6800,
Webhook_1 = 7000
}
[Flags]
[JsonConverter(typeof(StringEnumConverter))]
public enum RoleType : long
{
Inherited = 1,
Anonymous = 1L << 1,
Viewer = 1L << 2,
PlatformSuper = 1L << 3,
System = 1L << 4,
AdministratorGlobal = 1L << 5,
ContributorGlobal = 1L << 6,
ViewerGlobal = 1L << 7,
ProjectAdmin = 1L << 8,
GuideAdmin = 1L << 9,
GuideContributor = 1L << 10,
GuideViewer = 1L << 11,
TemplateAdmin = 1L << 12,
TemplateContributor = 1L << 13,
TemplateViewer = 1L << 14,
LearningAdmin = 1L << 15,
LearningContributor = 1L << 16,
LearningViewer = 1L << 17,
ReviewAdmin = 1L << 18,
ReviewContributor = 1L << 19,
ReviewViewer = 1L << 20,
UserAdmin = 1L << 21,
UserContributor = 1L << 22,
UserViewer = 1L << 23,
SchemaAdmin = 1L << 24,
SchemaContributor = 1L << 25,
SchemaViewer = 1L << 26,
EntityAdmin = 1L << 27,
EntityContributor = 1L << 28,
EntityViewer = 1L << 29,
ManagedContentAdmin = 1L << 30,
ManagedContentContributor = 1L << 31,
ManagedContentViewer = 1L << 32,
ProductAdmin = 1L << 33,
ProductContributor = 1L << 34,
ProductViewer = 1L << 35,
TransactionAdmin = 1L << 36,
TransactionContributor = 1L << 37,
TransactionViewer = 1L << 38,
WorkflowAdmin = 1L << 39,
WorkflowContributor = 1L << 40,
WorkflowViewer = 1L << 41,
WorkflowGroupAdmin = 1L << 42,
WorkflowGroupContributor = 1L << 43,
WorkflowGroupViewer = 1L << 44,
WorkflowGroupPresetsAdmin = 1L << 45,
WorkflowGroupPresetsContributor = 1L << 46,
WorkflowGroupPresetsViewer = 1L << 47,
WorkflowItemAdmin = 1L << 48,
WorkflowItemContributor = 1L << 49,
WorkflowItemViewer = 1L << 50,
ProvisioningAdmin = 1L << 51,
ProvisioningContributor = 1L << 52,
ProvisioningViewer = 1L << 53,
FileProviderViewer = 1L << 54,
FileProviderContributor = 1L << 55,
FileProviderAdmin = 1L << 56,
NotificationAdmin = 1L << 57,
TeamAdmin = 1L << 58,
TeamContributor = 1L << 59,
TeamViewer = 1L << 60,
AnalyticAdmin = 1L << 61,
AnalyticContributor = 1L << 62,
AnalyticViewer = 1L << 63
}
[Flags]
public enum ScopeType
{
Directory = 1,
Project = 2,
User = 4,
Public = 8,
System = 16,
Contributor = 32,
Entity = 64,
}
public enum FileProcessingStatus
{
NotApplicable,
Pending,
Processing,
Processed,
Error
}
public enum ContentStatus
{
Undefined,
PendingPayment,
PaymentFailed,
Active,
Blocked,
Inactive
}
public enum ObjectType
{
Undefined,
Directory,
Project,
Course,
CourseRegister,
Node,
Activity,
File,
Product,
Transaction,
Interaction,
User,
Entity,
Content, //Conteúdo do Dam
ManagedContent, //Conteúdo gerenciado por um conector
ManagedContentReference,
ExternalReference,
Team
}
public enum SortType
{
Ascending,
Descending
}
public enum FormulaType
{
Average,
Sum
}
/// <summary>
/// Contextos para serem usado na exibição de termos
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum EContextType
{
All,
Signup,
Course
}
/// <summary>
/// Opções de filtro para busca de termos
/// </summary>
public enum ScopeQuery
{
OnlyActive,
OnlyDisabled,
All
}
}