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 @@ -33,6 +33,7 @@ partial void PrepareListFlagsV2Arguments(
ref string? cursor,
ref string? search,
global::System.Collections.Generic.IList<string>? tags,
ref bool? includeMarketplaceFlags,
ref string? teamId,
ref string? slug);
partial void PrepareListFlagsV2Request(
Expand All @@ -44,6 +45,7 @@ partial void PrepareListFlagsV2Request(
string? cursor,
string? search,
global::System.Collections.Generic.IList<string>? tags,
bool? includeMarketplaceFlags,
string? teamId,
string? slug);
partial void ProcessListFlagsV2Response(
Expand Down Expand Up @@ -78,6 +80,9 @@ partial void ProcessListFlagsV2ResponseContent(
/// <param name="tags">
/// Filter flags by tag. Repeat the parameter for multiple tags (all must match).
/// </param>
/// <param name="includeMarketplaceFlags">
/// Whether to include Marketplace experimentation items in the paginated response. Defaults to false.
/// </param>
/// <param name="teamId">
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
/// </param>
Expand All @@ -94,6 +99,7 @@ partial void ProcessListFlagsV2ResponseContent(
string? cursor = default,
string? search = default,
global::System.Collections.Generic.IList<string>? tags = default,
bool? includeMarketplaceFlags = default,
string? teamId = default,
string? slug = default,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
Expand All @@ -106,6 +112,7 @@ partial void ProcessListFlagsV2ResponseContent(
cursor: cursor,
search: search,
tags: tags,
includeMarketplaceFlags: includeMarketplaceFlags,
teamId: teamId,
slug: slug,
requestOptions: requestOptions,
Expand Down Expand Up @@ -137,6 +144,9 @@ partial void ProcessListFlagsV2ResponseContent(
/// <param name="tags">
/// Filter flags by tag. Repeat the parameter for multiple tags (all must match).
/// </param>
/// <param name="includeMarketplaceFlags">
/// Whether to include Marketplace experimentation items in the paginated response. Defaults to false.
/// </param>
/// <param name="teamId">
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
/// </param>
Expand All @@ -153,6 +163,7 @@ partial void ProcessListFlagsV2ResponseContent(
string? cursor = default,
string? search = default,
global::System.Collections.Generic.IList<string>? tags = default,
bool? includeMarketplaceFlags = default,
string? teamId = default,
string? slug = default,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
Expand All @@ -168,6 +179,7 @@ partial void ProcessListFlagsV2ResponseContent(
cursor: ref cursor,
search: ref search,
tags: tags,
includeMarketplaceFlags: ref includeMarketplaceFlags,
teamId: ref teamId,
slug: ref slug);

Expand Down Expand Up @@ -203,6 +215,7 @@ partial void ProcessListFlagsV2ResponseContent(
.AddOptionalParameter("cursor", cursor)
.AddOptionalParameter("search", search)
.AddOptionalParameter("tags", tags, delimiter: ",", explode: true)
.AddOptionalParameter("includeMarketplaceFlags", includeMarketplaceFlags?.ToString().ToLowerInvariant())
.AddOptionalParameter("teamId", teamId)
.AddOptionalParameter("slug", slug)
;
Expand Down Expand Up @@ -252,6 +265,7 @@ partial void ProcessListFlagsV2ResponseContent(
cursor: cursor,
search: search,
tags: tags,
includeMarketplaceFlags: includeMarketplaceFlags,
teamId: teamId,
slug: slug);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ partial void PrepareListTeamFlagsV2Arguments(
ref string? search,
ref global::Vercel.ListTeamFlagsV2Kind? kind,
global::System.Collections.Generic.IList<string>? tags,
ref bool? includeMarketplaceFlags,
ref string teamId,
ref string? slug);
partial void PrepareListTeamFlagsV2Request(
Expand All @@ -44,6 +45,7 @@ partial void PrepareListTeamFlagsV2Request(
string? search,
global::Vercel.ListTeamFlagsV2Kind? kind,
global::System.Collections.Generic.IList<string>? tags,
bool? includeMarketplaceFlags,
string teamId,
string? slug);
partial void ProcessListTeamFlagsV2Response(
Expand Down Expand Up @@ -78,6 +80,9 @@ partial void ProcessListTeamFlagsV2ResponseContent(
/// <param name="tags">
/// Filter flags by tag. Repeat the parameter for multiple tags (all must match).
/// </param>
/// <param name="includeMarketplaceFlags">
/// Whether to include Marketplace experimentation items in the paginated response. Defaults to false.
/// </param>
/// <param name="teamId">
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
/// </param>
Expand All @@ -95,6 +100,7 @@ partial void ProcessListTeamFlagsV2ResponseContent(
string? search = default,
global::Vercel.ListTeamFlagsV2Kind? kind = default,
global::System.Collections.Generic.IList<string>? tags = default,
bool? includeMarketplaceFlags = default,
string? slug = default,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand All @@ -107,6 +113,7 @@ partial void ProcessListTeamFlagsV2ResponseContent(
search: search,
kind: kind,
tags: tags,
includeMarketplaceFlags: includeMarketplaceFlags,
slug: slug,
requestOptions: requestOptions,
cancellationToken: cancellationToken
Expand Down Expand Up @@ -137,6 +144,9 @@ partial void ProcessListTeamFlagsV2ResponseContent(
/// <param name="tags">
/// Filter flags by tag. Repeat the parameter for multiple tags (all must match).
/// </param>
/// <param name="includeMarketplaceFlags">
/// Whether to include Marketplace experimentation items in the paginated response. Defaults to false.
/// </param>
/// <param name="teamId">
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
/// </param>
Expand All @@ -154,6 +164,7 @@ partial void ProcessListTeamFlagsV2ResponseContent(
string? search = default,
global::Vercel.ListTeamFlagsV2Kind? kind = default,
global::System.Collections.Generic.IList<string>? tags = default,
bool? includeMarketplaceFlags = default,
string? slug = default,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand All @@ -168,6 +179,7 @@ partial void ProcessListTeamFlagsV2ResponseContent(
search: ref search,
kind: ref kind,
tags: tags,
includeMarketplaceFlags: ref includeMarketplaceFlags,
teamId: ref teamId,
slug: ref slug);

Expand Down Expand Up @@ -204,6 +216,7 @@ partial void ProcessListTeamFlagsV2ResponseContent(
.AddOptionalParameter("search", search)
.AddOptionalParameter("kind", kind?.ToValueString())
.AddOptionalParameter("tags", tags, delimiter: ",", explode: true)
.AddOptionalParameter("includeMarketplaceFlags", includeMarketplaceFlags?.ToString().ToLowerInvariant())
.AddOptionalParameter("slug", slug)
;
var __path = __pathBuilder.ToString();
Expand Down Expand Up @@ -252,6 +265,7 @@ partial void ProcessListTeamFlagsV2ResponseContent(
search: search,
kind: kind,
tags: tags,
includeMarketplaceFlags: includeMarketplaceFlags,
teamId: teamId!,
slug: slug);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ public partial interface IFeatureFlagsClient
/// <param name="tags">
/// Filter flags by tag. Repeat the parameter for multiple tags (all must match).
/// </param>
/// <param name="includeMarketplaceFlags">
/// Whether to include Marketplace experimentation items in the paginated response. Defaults to false.
/// </param>
/// <param name="teamId">
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
/// </param>
Expand All @@ -43,6 +46,7 @@ public partial interface IFeatureFlagsClient
string? cursor = default,
string? search = default,
global::System.Collections.Generic.IList<string>? tags = default,
bool? includeMarketplaceFlags = default,
string? teamId = default,
string? slug = default,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
Expand Down Expand Up @@ -70,6 +74,9 @@ public partial interface IFeatureFlagsClient
/// <param name="tags">
/// Filter flags by tag. Repeat the parameter for multiple tags (all must match).
/// </param>
/// <param name="includeMarketplaceFlags">
/// Whether to include Marketplace experimentation items in the paginated response. Defaults to false.
/// </param>
/// <param name="teamId">
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
/// </param>
Expand All @@ -86,6 +93,7 @@ public partial interface IFeatureFlagsClient
string? cursor = default,
string? search = default,
global::System.Collections.Generic.IList<string>? tags = default,
bool? includeMarketplaceFlags = default,
string? teamId = default,
string? slug = default,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ public partial interface IFeatureFlagsClient
/// <param name="tags">
/// Filter flags by tag. Repeat the parameter for multiple tags (all must match).
/// </param>
/// <param name="includeMarketplaceFlags">
/// Whether to include Marketplace experimentation items in the paginated response. Defaults to false.
/// </param>
/// <param name="teamId">
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
/// </param>
Expand All @@ -44,6 +47,7 @@ public partial interface IFeatureFlagsClient
string? search = default,
global::Vercel.ListTeamFlagsV2Kind? kind = default,
global::System.Collections.Generic.IList<string>? tags = default,
bool? includeMarketplaceFlags = default,
string? slug = default,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand All @@ -70,6 +74,9 @@ public partial interface IFeatureFlagsClient
/// <param name="tags">
/// Filter flags by tag. Repeat the parameter for multiple tags (all must match).
/// </param>
/// <param name="includeMarketplaceFlags">
/// Whether to include Marketplace experimentation items in the paginated response. Defaults to false.
/// </param>
/// <param name="teamId">
/// Example: team_1a2b3c4d5e6f7g8h9i0j1k2l
/// </param>
Expand All @@ -87,6 +94,7 @@ public partial interface IFeatureFlagsClient
string? search = default,
global::Vercel.ListTeamFlagsV2Kind? kind = default,
global::System.Collections.Generic.IList<string>? tags = default,
bool? includeMarketplaceFlags = default,
string? slug = default,
global::Vercel.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

namespace Vercel.JsonConverters
{
/// <inheritdoc />
public sealed class MarketplaceFlagCategoryJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Vercel.MarketplaceFlagCategory>
{
/// <inheritdoc />
public override global::Vercel.MarketplaceFlagCategory Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Vercel.MarketplaceFlagCategoryExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Vercel.MarketplaceFlagCategory)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Vercel.MarketplaceFlagCategory);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Vercel.MarketplaceFlagCategory value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::Vercel.MarketplaceFlagCategoryExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#nullable enable

namespace Vercel.JsonConverters
{
/// <inheritdoc />
public sealed class MarketplaceFlagCategoryNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Vercel.MarketplaceFlagCategory?>
{
/// <inheritdoc />
public override global::Vercel.MarketplaceFlagCategory? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Vercel.MarketplaceFlagCategoryExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Vercel.MarketplaceFlagCategory)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Vercel.MarketplaceFlagCategory?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Vercel.MarketplaceFlagCategory? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

if (value == null)
{
writer.WriteNullValue();
}
else
{
writer.WriteStringValue(global::Vercel.MarketplaceFlagCategoryExtensions.ToValueString(value.Value));
}
}
}
}
Loading