Browse Source

Optional marks.

pull/439/head
Sebastian Stehle 7 years ago
parent
commit
205204b63a
  1. 2
      backend/src/Squidex.Domain.Apps.Entities/Apps/Commands/CreateApp.cs
  2. 2
      backend/src/Squidex.Domain.Apps.Entities/Apps/Commands/UpdateClient.cs
  3. 4
      backend/src/Squidex.Domain.Apps.Entities/Assets/Commands/AnnotateAsset.cs
  4. 4
      backend/src/Squidex/Areas/Api/Controllers/Apps/Models/AppDto.cs
  5. 2
      backend/src/Squidex/Areas/Api/Controllers/Apps/Models/ClientDto.cs
  6. 2
      backend/src/Squidex/Areas/Api/Controllers/Apps/Models/ContributorDto.cs
  7. 2
      backend/src/Squidex/Areas/Api/Controllers/Apps/Models/CreateAppDto.cs
  8. 2
      backend/src/Squidex/Areas/Api/Controllers/Apps/Models/PatternDto.cs
  9. 4
      backend/src/Squidex/Areas/Api/Controllers/Apps/Models/UpdateAppDto.cs
  10. 2
      backend/src/Squidex/Areas/Api/Controllers/Apps/Models/UpdateClientDto.cs
  11. 2
      backend/src/Squidex/Areas/Api/Controllers/Apps/Models/UpdatePatternDto.cs
  12. 2
      backend/src/Squidex/Areas/Api/Controllers/Apps/Models/UpdateWorkflowDto.cs
  13. 2
      backend/src/Squidex/Areas/Api/Controllers/Apps/Models/WorkflowDto.cs
  14. 2
      backend/src/Squidex/Areas/Api/Controllers/Apps/Models/WorkflowStepDto.cs
  15. 4
      backend/src/Squidex/Areas/Api/Controllers/Assets/Models/AnnotateAssetDto.cs
  16. 2
      backend/src/Squidex/Areas/Api/Controllers/Assets/Models/AssetDto.cs
  17. 2
      backend/src/Squidex/Areas/Api/Controllers/Rules/Models/RuleDto.cs
  18. 8
      backend/src/Squidex/Areas/Api/Controllers/Rules/Models/RuleElementDto.cs
  19. 2
      backend/src/Squidex/Areas/Api/Controllers/Rules/Models/RuleEventDto.cs
  20. 2
      backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/AddFieldDto.cs
  21. 2
      backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/ChangeCategoryDto.cs
  22. 2
      backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/FieldDto.cs
  23. 1
      backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/FieldPropertiesDto.cs
  24. 5
      backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/SchemaPropertiesDto.cs
  25. 10
      backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/SchemaScriptsDto.cs
  26. 4
      backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/UpdateSchemaDto.cs
  27. 2
      backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/UpsertSchemaDto.cs
  28. 4
      backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/UpsertSchemaFieldDto.cs

2
backend/src/Squidex.Domain.Apps.Entities/Apps/Commands/CreateApp.cs

@ -13,7 +13,7 @@ namespace Squidex.Domain.Apps.Entities.Apps.Commands
{
public string Name { get; set; }
public string Template { get; set; }
public string? Template { get; set; }
public CreateApp()
{

2
backend/src/Squidex.Domain.Apps.Entities/Apps/Commands/UpdateClient.cs

@ -13,6 +13,6 @@ namespace Squidex.Domain.Apps.Entities.Apps.Commands
public string Name { get; set; }
public string Role { get; set; }
public string? Role { get; set; }
}
}

4
backend/src/Squidex.Domain.Apps.Entities/Assets/Commands/AnnotateAsset.cs

@ -11,9 +11,9 @@ namespace Squidex.Domain.Apps.Entities.Assets.Commands
{
public sealed class AnnotateAsset : AssetCommand
{
public string FileName { get; set; }
public string? FileName { get; set; }
public string Slug { get; set; }
public string? Slug { get; set; }
public HashSet<string> Tags { get; set; }
}

4
backend/src/Squidex/Areas/Api/Controllers/Apps/Models/AppDto.cs

@ -39,12 +39,12 @@ namespace Squidex.Areas.Api.Controllers.Apps.Models
/// <summary>
/// The optional label of the app.
/// </summary>
public string Label { get; set; }
public string? Label { get; set; }
/// <summary>
/// The optional description of the app.
/// </summary>
public string Description { get; set; }
public string? Description { get; set; }
/// <summary>
/// The version of the app.

2
backend/src/Squidex/Areas/Api/Controllers/Apps/Models/ClientDto.cs

@ -36,7 +36,7 @@ namespace Squidex.Areas.Api.Controllers.Apps.Models
/// <summary>
/// The role of the client.
/// </summary>
public string Role { get; set; }
public string? Role { get; set; }
public static ClientDto FromClient(string id, AppClient client)
{

2
backend/src/Squidex/Areas/Api/Controllers/Apps/Models/ContributorDto.cs

@ -32,7 +32,7 @@ namespace Squidex.Areas.Api.Controllers.Apps.Models
/// <summary>
/// The role of the contributor.
/// </summary>
public string Role { get; set; }
public string? Role { get; set; }
public static ContributorDto FromIdAndRole(string id, string role)
{

2
backend/src/Squidex/Areas/Api/Controllers/Apps/Models/CreateAppDto.cs

@ -23,7 +23,7 @@ namespace Squidex.Areas.Api.Controllers.Apps.Models
/// <summary>
/// Initialize the app with the inbuilt template.
/// </summary>
public string Template { get; set; }
public string? Template { get; set; }
public CreateApp ToCommand()
{

2
backend/src/Squidex/Areas/Api/Controllers/Apps/Models/PatternDto.cs

@ -36,7 +36,7 @@ namespace Squidex.Areas.Api.Controllers.Apps.Models
/// <summary>
/// The regex message.
/// </summary>
public string Message { get; set; }
public string? Message { get; set; }
public static PatternDto FromPattern(Guid id, AppPattern pattern, ApiController controller, string app)
{

4
backend/src/Squidex/Areas/Api/Controllers/Apps/Models/UpdateAppDto.cs

@ -15,12 +15,12 @@ namespace Squidex.Areas.Api.Controllers.Apps.Models
/// <summary>
/// The optional label of your app.
/// </summary>
public string Label { get; set; }
public string? Label { get; set; }
/// <summary>
/// The optional description of your app.
/// </summary>
public string Description { get; set; }
public string? Description { get; set; }
public UpdateApp ToCommand()
{

2
backend/src/Squidex/Areas/Api/Controllers/Apps/Models/UpdateClientDto.cs

@ -22,7 +22,7 @@ namespace Squidex.Areas.Api.Controllers.Apps.Models
/// <summary>
/// The role of the client.
/// </summary>
public string Role { get; set; }
public string? Role { get; set; }
public UpdateClient ToCommand(string clientId)
{

2
backend/src/Squidex/Areas/Api/Controllers/Apps/Models/UpdatePatternDto.cs

@ -29,7 +29,7 @@ namespace Squidex.Areas.Api.Controllers.Apps.Models
/// <summary>
/// The regex message.
/// </summary>
public string Message { get; set; }
public string? Message { get; set; }
public AddPattern ToAddCommand()
{

2
backend/src/Squidex/Areas/Api/Controllers/Apps/Models/UpdateWorkflowDto.cs

@ -19,7 +19,7 @@ namespace Squidex.Areas.Api.Controllers.Apps.Models
/// <summary>
/// The name of the workflow.
/// </summary>
public string Name { get; set; }
public string? Name { get; set; }
/// <summary>
/// The workflow steps.

2
backend/src/Squidex/Areas/Api/Controllers/Apps/Models/WorkflowDto.cs

@ -26,7 +26,7 @@ namespace Squidex.Areas.Api.Controllers.Apps.Models
/// <summary>
/// The name of the workflow.
/// </summary>
public string Name { get; set; }
public string? Name { get; set; }
/// <summary>
/// The workflow steps.

2
backend/src/Squidex/Areas/Api/Controllers/Apps/Models/WorkflowStepDto.cs

@ -24,7 +24,7 @@ namespace Squidex.Areas.Api.Controllers.Apps.Models
/// <summary>
/// The optional color.
/// </summary>
public string Color { get; set; }
public string? Color { get; set; }
/// <summary>
/// Indicates if updates should not be allowed.

4
backend/src/Squidex/Areas/Api/Controllers/Assets/Models/AnnotateAssetDto.cs

@ -17,12 +17,12 @@ namespace Squidex.Areas.Api.Controllers.Assets.Models
/// <summary>
/// The new name of the asset.
/// </summary>
public string FileName { get; set; }
public string? FileName { get; set; }
/// <summary>
/// The new slug of the asset.
/// </summary>
public string Slug { get; set; }
public string? Slug { get; set; }
/// <summary>
/// The new asset tags.

2
backend/src/Squidex/Areas/Api/Controllers/Assets/Models/AssetDto.cs

@ -34,7 +34,7 @@ namespace Squidex.Areas.Api.Controllers.Assets.Models
/// <summary>
/// The file hash.
/// </summary>
public string FileHash { get; set; }
public string? FileHash { get; set; }
/// <summary>
/// The slug.

2
backend/src/Squidex/Areas/Api/Controllers/Rules/Models/RuleDto.cs

@ -61,7 +61,7 @@ namespace Squidex.Areas.Api.Controllers.Rules.Models
/// <summary>
/// Optional rule name.
/// </summary>
public string Name { get; set; }
public string? Name { get; set; }
/// <summary>
/// The trigger properties.

8
backend/src/Squidex/Areas/Api/Controllers/Rules/Models/RuleElementDto.cs

@ -29,22 +29,22 @@ namespace Squidex.Areas.Api.Controllers.Rules.Models
/// <summary>
/// Optional title.
/// </summary>
public string Title { get; set; }
public string? Title { get; set; }
/// <summary>
/// The color for the icon.
/// </summary>
public string IconColor { get; set; }
public string? IconColor { get; set; }
/// <summary>
/// The image for the icon.
/// </summary>
public string IconImage { get; set; }
public string? IconImage { get; set; }
/// <summary>
/// The optional link to the product that is integrated.
/// </summary>
public string ReadMore { get; set; }
public string? ReadMore { get; set; }
/// <summary>
/// The properties.

2
backend/src/Squidex/Areas/Api/Controllers/Rules/Models/RuleEventDto.cs

@ -42,7 +42,7 @@ namespace Squidex.Areas.Api.Controllers.Rules.Models
/// <summary>
/// The last dump.
/// </summary>
public string LastDump { get; set; }
public string? LastDump { get; set; }
/// <summary>
/// The number of calls.

2
backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/AddFieldDto.cs

@ -23,7 +23,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas.Models
/// <summary>
/// Determines the optional partitioning of the field.
/// </summary>
public string Partitioning { get; set; }
public string? Partitioning { get; set; }
/// <summary>
/// The field properties.

2
backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/ChangeCategoryDto.cs

@ -15,7 +15,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas.Models
/// <summary>
/// The name of the category.
/// </summary>
public string Name { get; set; }
public string? Name { get; set; }
public ChangeCategory ToCommand()
{

2
backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/FieldDto.cs

@ -59,7 +59,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas.Models
/// <summary>
/// The nested fields.
/// </summary>
public List<NestedFieldDto> Nested { get; set; }
public List<NestedFieldDto>? Nested { get; set; }
public static NestedFieldDto FromField(NestedField field)
{

1
backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/FieldPropertiesDto.cs

@ -61,6 +61,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas.Models
/// <summary>
/// Tags for automation processes.
/// </summary>
[Required]
public ReadOnlyCollection<string> Tags { get; set; }
public abstract FieldProperties ToProperties();

5
backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/SchemaPropertiesDto.cs

@ -16,17 +16,18 @@ namespace Squidex.Areas.Api.Controllers.Schemas.Models
/// Optional label for the editor.
/// </summary>
[StringLength(100)]
public string Label { get; set; }
public string? Label { get; set; }
/// <summary>
/// Hints to describe the schema.
/// </summary>
[StringLength(1000)]
public string Hints { get; set; }
public string? Hints { get; set; }
/// <summary>
/// Tags for automation processes.
/// </summary>
[Required]
public ReadOnlyCollection<string> Tags { get; set; }
}
}

10
backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/SchemaScriptsDto.cs

@ -16,27 +16,27 @@ namespace Squidex.Areas.Api.Controllers.Schemas.Models
/// <summary>
/// The script that is executed for each query when querying contents.
/// </summary>
public string Query { get; set; }
public string? Query { get; set; }
/// <summary>
/// The script that is executed when creating a content.
/// </summary>
public string Create { get; set; }
public string? Create { get; set; }
/// <summary>
/// The script that is executed when updating a content.
/// </summary>
public string Update { get; set; }
public string? Update { get; set; }
/// <summary>
/// The script that is executed when deleting a content.
/// </summary>
public string Delete { get; set; }
public string? Delete { get; set; }
/// <summary>
/// The script that is executed when change a content status.
/// </summary>
public string Change { get; set; }
public string? Change { get; set; }
public ConfigureScripts ToCommand()
{

4
backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/UpdateSchemaDto.cs

@ -19,13 +19,13 @@ namespace Squidex.Areas.Api.Controllers.Schemas.Models
/// Optional label for the editor.
/// </summary>
[StringLength(100)]
public string Label { get; set; }
public string? Label { get; set; }
/// <summary>
/// Hints to describe the schema.
/// </summary>
[StringLength(1000)]
public string Hints { get; set; }
public string? Hints { get; set; }
/// <summary>
/// Tags for automation processes.

2
backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/UpsertSchemaDto.cs

@ -37,7 +37,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas.Models
/// <summary>
/// The category.
/// </summary>
public string Category { get; set; }
public string? Category { get; set; }
/// <summary>
/// Set it to true to autopublish the schema.

4
backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/UpsertSchemaFieldDto.cs

@ -37,7 +37,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas.Models
/// <summary>
/// Determines the optional partitioning of the field.
/// </summary>
public string Partitioning { get; set; }
public string? Partitioning { get; set; }
/// <summary>
/// The field properties.
@ -48,6 +48,6 @@ namespace Squidex.Areas.Api.Controllers.Schemas.Models
/// <summary>
/// The nested fields.
/// </summary>
public List<UpsertSchemaNestedFieldDto> Nested { get; set; }
public List<UpsertSchemaNestedFieldDto>? Nested { get; set; }
}
}
Loading…
Cancel
Save