-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from mindbox-cloud/toporov/fixed-dictionary-in…
…-issue Fixed custom fields in issue
- Loading branch information
Showing
63 changed files
with
901 additions
and
582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,29 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Mindbox.YandexTracker; | ||
|
||
/// <summary> | ||
/// Тип задачи | ||
/// </summary> | ||
[DataContract] | ||
public sealed record IssueType | ||
{ | ||
/// <summary> | ||
/// Идентификатор типа | ||
/// </summary> | ||
[DataMember(Name = "id")] | ||
public int Id { get; init; } | ||
|
||
public int Version { get; init; } | ||
|
||
/// <summary> | ||
/// Ключ | ||
/// </summary> | ||
[DataMember(Name = "key")] | ||
public required string Key { get; init; } | ||
|
||
/// <summary> | ||
/// Название | ||
/// </summary> | ||
[DataMember(Name = "name")] | ||
public required string Name { get; init; } | ||
|
||
/// <summary> | ||
/// Описание | ||
/// </summary> | ||
[DataMember(Name = "description")] | ||
public string Description { get; init; } = null!; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 12 additions & 25 deletions
37
Mindbox.YandexTracker.Abstractions/Entities/UserDetailedInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,121 +1,108 @@ | ||
using System; | ||
using System.Runtime.Serialization; | ||
|
||
namespace Mindbox.YandexTracker; | ||
|
||
/// <summary> | ||
/// Детальная информация о пользователе | ||
/// </summary> | ||
[DataContract] | ||
public sealed record UserDetailedInfo | ||
{ | ||
/// <summary> | ||
/// Уникальный идентификатор учетной записи пользователя в Tracker | ||
/// </summary> | ||
[DataMember(Name = "uid")] | ||
public required string Id { get; init; } | ||
public required long Id { get; init; } | ||
|
||
/// <summary> | ||
/// Логин пользователя | ||
/// </summary> | ||
[DataMember(Name = "login")] | ||
public required string Login { get; init; } | ||
|
||
/// <summary> | ||
/// Уникальный идентификатор аккаунта пользователя в Tracker | ||
/// </summary> | ||
[DataMember(Name = "trackerUid")] | ||
public required string TrackerUid { get; init; } | ||
public required long TrackerUid { get; init; } | ||
|
||
/// <summary> | ||
/// Уникальный идентификатор аккаунта пользователя в организации Яндекс 360 для бизнеса и Яндекс ID | ||
/// </summary> | ||
[DataMember(Name = "passportUid")] | ||
public required string PassportUid { get; init; } | ||
/// <remarks> | ||
/// Заполнен, если пользователь добавлен через Яндекс 360 для бизнеса или Яндекс ID. | ||
/// </remarks> | ||
public long? PassportUid { get; init; } | ||
|
||
/// <summary> | ||
/// Уникальный идентификатор пользователя в Yandex Cloud Organization | ||
/// </summary> | ||
[DataMember(Name = "cloudUid")] | ||
public required string CloudUid { get; init; } | ||
/// <remarks> | ||
/// Заполнен, если пользователь добавлен через Yandex Cloud Organization. | ||
/// </remarks> | ||
public string? CloudUid { get; init; } | ||
|
||
/// <summary> | ||
/// Имя пользователя | ||
/// </summary> | ||
[DataMember(Name = "firstName")] | ||
public required string FirstName { get; init; } | ||
|
||
/// <summary> | ||
/// Фамилия пользователя | ||
/// </summary> | ||
[DataMember(Name = "lastName")] | ||
public required string LastName { get; init; } | ||
|
||
/// <summary> | ||
/// Отображаемое имя пользователя | ||
/// </summary> | ||
[DataMember(Name = "display")] | ||
public required string Display { get; init; } | ||
|
||
/// <summary> | ||
/// Электронная почта пользователя | ||
/// </summary> | ||
[DataMember(Name = "email")] | ||
public required string Email { get; init; } | ||
|
||
/// <summary> | ||
/// Служебный параметр | ||
/// </summary> | ||
[DataMember(Name = "external")] | ||
public bool External { get; init; } | ||
|
||
/// <summary> | ||
/// Признак наличия у пользователя полного доступа к Tracker: | ||
/// true — полный доступ; | ||
/// false — только чтение | ||
/// </summary> | ||
[DataMember(Name = "hasLicense")] | ||
public bool HasLicense { get; init; } | ||
|
||
/// <summary> | ||
/// Статус пользователя в организации: | ||
/// true — пользователь удален из организации; | ||
/// false — действующий сотрудник организации | ||
/// </summary> | ||
[DataMember(Name = "dismissed")] | ||
public bool Dismissed { get; init; } | ||
|
||
/// <summary> | ||
/// Служебный параметр | ||
/// </summary> | ||
[DataMember(Name = "useNewFilters")] | ||
public bool UseNewFilters { get; init; } | ||
|
||
/// <summary> | ||
/// Признак принудительного отключения уведомлений для пользователя: | ||
/// true — уведомления отключены; | ||
/// false — уведомления включены | ||
/// </summary> | ||
[DataMember(Name = "disableNotifications")] | ||
public bool DisableNotifications { get; init; } | ||
|
||
/// <summary> | ||
/// Дата и время первой авторизации пользователя | ||
/// </summary> | ||
[DataMember(Name = "firstLoginDate")] | ||
public DateTime FirstLoginDateUtc { get; init; } | ||
public DateTime? FirstLoginDateUtc { get; init; } | ||
|
||
/// <summary> | ||
/// Дата и время последней авторизации пользователя | ||
/// </summary> | ||
[DataMember(Name = "lastLoginDate")] | ||
public DateTime LastLoginDateUtc { get; init; } | ||
public DateTime? LastLoginDateUtc { get; init; } | ||
|
||
/// <summary> | ||
/// Способ добавления пользователя: | ||
/// true — с помощью приглашения на почту; | ||
/// false — другим способом. | ||
/// </summary> | ||
[DataMember(Name = "welcomeMailSent")] | ||
public bool WelcomeMailSent { get; init; } | ||
} |
5 changes: 0 additions & 5 deletions
5
Mindbox.YandexTracker.Abstractions/Enums/CommentTransportType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,17 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Mindbox.YandexTracker; | ||
|
||
/// <summary> | ||
/// Способ добавления комментария | ||
/// </summary> | ||
[DataContract] | ||
public enum CommentTransportType | ||
{ | ||
/// <summary> | ||
/// Через интерфейс Tracker | ||
/// </summary> | ||
[EnumMember(Value = "internal")] | ||
Internal, | ||
|
||
/// <summary> | ||
/// Через письмо | ||
/// </summary> | ||
[EnumMember(Value = "email")] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,22 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Mindbox.YandexTracker; | ||
|
||
/// <summary> | ||
/// Тип комментария | ||
/// </summary> | ||
[DataContract] | ||
public enum CommentType | ||
{ | ||
/// <summary> | ||
/// Отправлен через интерфейс Tracker | ||
/// </summary> | ||
[EnumMember(Value = "standard")] | ||
Standard, | ||
|
||
/// <summary> | ||
/// Создан из входящего письма | ||
/// </summary> | ||
[EnumMember(Value = "incoming")] | ||
Incoming, | ||
|
||
/// <summary> | ||
/// Создан из исходящего письма | ||
/// </summary> | ||
[EnumMember(Value = "outcoming")] | ||
Outcoming | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,32 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Mindbox.YandexTracker; | ||
|
||
/// <summary> | ||
/// Тип статуса задачи | ||
/// </summary> | ||
[DataContract] | ||
public enum IssueStatusType | ||
{ | ||
/// <summary> | ||
/// Начальный | ||
/// </summary> | ||
[EnumMember(Value = "new")] | ||
New, | ||
|
||
/// <summary> | ||
/// На паузе | ||
/// </summary> | ||
[EnumMember(Value = "paused")] | ||
Paused, | ||
|
||
/// <summary> | ||
/// В процессе | ||
/// </summary> | ||
[EnumMember(Value = "inProgress")] | ||
InProgress, | ||
|
||
/// <summary> | ||
/// Завершен | ||
/// </summary> | ||
[EnumMember(Value = "done")] | ||
Done, | ||
|
||
/// <summary> | ||
/// Отменен | ||
/// </summary> | ||
[EnumMember(Value = "cancelled")] | ||
Cancelled | ||
} |
Oops, something went wrong.