Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ public enum ConditionOperator
/// <summary>
///
/// </summary>
NotEq,
/// <summary>
///
/// </summary>
Gt,
/// <summary>
///
Expand All @@ -27,27 +23,27 @@ public enum ConditionOperator
/// <summary>
///
/// </summary>
Lt,
In,
/// <summary>
///
/// </summary>
Lte,
Like,
/// <summary>
///
/// </summary>
In,
Lt,
/// <summary>
///
/// </summary>
NotIn,
Lte,
/// <summary>
///
/// </summary>
Like,
NotEq,
/// <summary>
///
/// </summary>
StartsWith,
NotIn,
/// <summary>
///
/// </summary>
Expand All @@ -56,6 +52,10 @@ public enum ConditionOperator
///
/// </summary>
Regex,
/// <summary>
///
/// </summary>
StartsWith,
}

/// <summary>
Expand All @@ -71,17 +71,17 @@ public static string ToValueString(this ConditionOperator value)
return value switch
{
ConditionOperator.Eq => "eq",
ConditionOperator.NotEq => "not_eq",
ConditionOperator.Gt => "gt",
ConditionOperator.Gte => "gte",
ConditionOperator.In => "in",
ConditionOperator.Like => "like",
ConditionOperator.Lt => "lt",
ConditionOperator.Lte => "lte",
ConditionOperator.In => "in",
ConditionOperator.NotEq => "not_eq",
ConditionOperator.NotIn => "not_in",
ConditionOperator.Like => "like",
ConditionOperator.StartsWith => "starts_with",
ConditionOperator.NotLike => "not_like",
ConditionOperator.Regex => "regex",
ConditionOperator.StartsWith => "starts_with",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -93,17 +93,17 @@ public static string ToValueString(this ConditionOperator value)
return value switch
{
"eq" => ConditionOperator.Eq,
"not_eq" => ConditionOperator.NotEq,
"gt" => ConditionOperator.Gt,
"gte" => ConditionOperator.Gte,
"in" => ConditionOperator.In,
"like" => ConditionOperator.Like,
"lt" => ConditionOperator.Lt,
"lte" => ConditionOperator.Lte,
"in" => ConditionOperator.In,
"not_eq" => ConditionOperator.NotEq,
"not_in" => ConditionOperator.NotIn,
"like" => ConditionOperator.Like,
"starts_with" => ConditionOperator.StartsWith,
"not_like" => ConditionOperator.NotLike,
"regex" => ConditionOperator.Regex,
"starts_with" => ConditionOperator.StartsWith,
_ => null,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ public enum DataSourceType
/// <summary>
///
/// </summary>
Notion,
Linear,
/// <summary>
///
/// </summary>
Linear,
Notion,
}

/// <summary>
Expand All @@ -30,8 +30,8 @@ public static string ToValueString(this DataSourceType value)
{
return value switch
{
DataSourceType.Notion => "notion",
DataSourceType.Linear => "linear",
DataSourceType.Notion => "notion",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -42,8 +42,8 @@ public static string ToValueString(this DataSourceType value)
{
return value switch
{
"notion" => DataSourceType.Notion,
"linear" => DataSourceType.Linear,
"notion" => DataSourceType.Notion,
_ => null,
};
}
Expand Down
44 changes: 22 additions & 22 deletions src/libs/Mixedbread/Generated/Mixedbread.Models.ElementType.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,47 +11,47 @@ public enum ElementType
/// <summary>
///
/// </summary>
Header,
Figure,
/// <summary>
///
/// </summary>
Footer,
/// <summary>
///
/// </summary>
Title,
Footnote,
/// <summary>
///
/// </summary>
SectionHeader,
Form,
/// <summary>
///
/// </summary>
PageNumber,
Header,
/// <summary>
///
/// </summary>
ListItem,
/// <summary>
///
/// </summary>
Figure,
PageNumber,
/// <summary>
///
/// </summary>
Table,
SectionHeader,
/// <summary>
///
/// </summary>
Form,
Table,
/// <summary>
///
/// </summary>
Text,
/// <summary>
///
/// </summary>
Footnote,
Title,
}

/// <summary>
Expand All @@ -66,17 +66,17 @@ public static string ToValueString(this ElementType value)
{
return value switch
{
ElementType.Header => "header",
ElementType.Figure => "figure",
ElementType.Footer => "footer",
ElementType.Title => "title",
ElementType.SectionHeader => "section-header",
ElementType.PageNumber => "page-number",
ElementType.Footnote => "footnote",
ElementType.Form => "form",
ElementType.Header => "header",
ElementType.ListItem => "list-item",
ElementType.Figure => "figure",
ElementType.PageNumber => "page-number",
ElementType.SectionHeader => "section-header",
ElementType.Table => "table",
ElementType.Form => "form",
ElementType.Text => "text",
ElementType.Footnote => "footnote",
ElementType.Title => "title",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -87,17 +87,17 @@ public static string ToValueString(this ElementType value)
{
return value switch
{
"header" => ElementType.Header,
"figure" => ElementType.Figure,
"footer" => ElementType.Footer,
"title" => ElementType.Title,
"section-header" => ElementType.SectionHeader,
"page-number" => ElementType.PageNumber,
"footnote" => ElementType.Footnote,
"form" => ElementType.Form,
"header" => ElementType.Header,
"list-item" => ElementType.ListItem,
"figure" => ElementType.Figure,
"page-number" => ElementType.PageNumber,
"section-header" => ElementType.SectionHeader,
"table" => ElementType.Table,
"form" => ElementType.Form,
"text" => ElementType.Text,
"footnote" => ElementType.Footnote,
"title" => ElementType.Title,
_ => null,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@ public enum EncodingFormat3
/// <summary>
///
/// </summary>
Float,
Base64,
/// <summary>
///
/// </summary>
Float16,
Binary,
/// <summary>
///
/// </summary>
Base64,
Float,
/// <summary>
///
/// </summary>
Binary,
Float16,
/// <summary>
///
/// </summary>
Ubinary,
Int8,
/// <summary>
///
/// </summary>
Int8,
Ubinary,
/// <summary>
///
/// </summary>
Expand All @@ -50,12 +50,12 @@ public static string ToValueString(this EncodingFormat3 value)
{
return value switch
{
EncodingFormat3.Float => "float",
EncodingFormat3.Float16 => "float16",
EncodingFormat3.Base64 => "base64",
EncodingFormat3.Binary => "binary",
EncodingFormat3.Ubinary => "ubinary",
EncodingFormat3.Float => "float",
EncodingFormat3.Float16 => "float16",
EncodingFormat3.Int8 => "int8",
EncodingFormat3.Ubinary => "ubinary",
EncodingFormat3.Uint8 => "uint8",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
Expand All @@ -67,12 +67,12 @@ public static string ToValueString(this EncodingFormat3 value)
{
return value switch
{
"float" => EncodingFormat3.Float,
"float16" => EncodingFormat3.Float16,
"base64" => EncodingFormat3.Base64,
"binary" => EncodingFormat3.Binary,
"ubinary" => EncodingFormat3.Ubinary,
"float" => EncodingFormat3.Float,
"float16" => EncodingFormat3.Float16,
"int8" => EncodingFormat3.Int8,
"ubinary" => EncodingFormat3.Ubinary,
"uint8" => EncodingFormat3.Uint8,
_ => null,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ public enum ParsingJobStatus
/// <summary>
///
/// </summary>
Pending,
Cancelled,
/// <summary>
///
/// </summary>
InProgress,
Completed,
/// <summary>
///
/// </summary>
Cancelled,
Failed,
/// <summary>
///
/// </summary>
Completed,
InProgress,
/// <summary>
///
/// </summary>
Failed,
Pending,
}

/// <summary>
Expand All @@ -42,11 +42,11 @@ public static string ToValueString(this ParsingJobStatus value)
{
return value switch
{
ParsingJobStatus.Pending => "pending",
ParsingJobStatus.InProgress => "in_progress",
ParsingJobStatus.Cancelled => "cancelled",
ParsingJobStatus.Completed => "completed",
ParsingJobStatus.Failed => "failed",
ParsingJobStatus.InProgress => "in_progress",
ParsingJobStatus.Pending => "pending",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -57,11 +57,11 @@ public static string ToValueString(this ParsingJobStatus value)
{
return value switch
{
"pending" => ParsingJobStatus.Pending,
"in_progress" => ParsingJobStatus.InProgress,
"cancelled" => ParsingJobStatus.Cancelled,
"completed" => ParsingJobStatus.Completed,
"failed" => ParsingJobStatus.Failed,
"in_progress" => ParsingJobStatus.InProgress,
"pending" => ParsingJobStatus.Pending,
_ => null,
};
}
Expand Down
Loading