From 2293d01133bd282607bcd5d884eb2755056360e5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 2 Oct 2026 11:32:43 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...AppStoreConnect.JsonSerializerContext.g.cs | 100 ++--- ...artitionOrphan0.JsonSerializerContext.g.cs | 351 ++++++++++++++++++ ...artitionOrphan1.JsonSerializerContext.g.cs | 302 +++++++++++++++ ...artitionOrphan2.JsonSerializerContext.g.cs | 302 +++++++++++++++ ...artitionOrphan3.JsonSerializerContext.g.cs | 334 +++++++++++++++++ ...artitionOrphan4.JsonSerializerContext.g.cs | 351 ++++++++++++++++++ ...artitionOrphan5.JsonSerializerContext.g.cs | 351 ++++++++++++++++++ ...artitionOrphan6.JsonSerializerContext.g.cs | 262 +++++++++++++ ...artitionOrphan7.JsonSerializerContext.g.cs | 334 +++++++++++++++++ 9 files changed, 2645 insertions(+), 42 deletions(-) create mode 100644 src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan0.JsonSerializerContext.g.cs create mode 100644 src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan1.JsonSerializerContext.g.cs create mode 100644 src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan2.JsonSerializerContext.g.cs create mode 100644 src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan3.JsonSerializerContext.g.cs create mode 100644 src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan4.JsonSerializerContext.g.cs create mode 100644 src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan5.JsonSerializerContext.g.cs create mode 100644 src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan6.JsonSerializerContext.g.cs create mode 100644 src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan7.JsonSerializerContext.g.cs diff --git a/src/libs/AppStoreConnect/Generated/AppStoreConnect.JsonSerializerContext.g.cs b/src/libs/AppStoreConnect/Generated/AppStoreConnect.JsonSerializerContext.g.cs index 1eb4effb..d00d70aa 100644 --- a/src/libs/AppStoreConnect/Generated/AppStoreConnect.JsonSerializerContext.g.cs +++ b/src/libs/AppStoreConnect/Generated/AppStoreConnect.JsonSerializerContext.g.cs @@ -58516,7 +58516,7 @@ public override bool CanConvert(global::System.Type typeToConvert) private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver { private readonly object _gate = new(); - private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[189]; + private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[197]; public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( global::System.Type type, @@ -58848,87 +58848,103 @@ private sealed class LazyChunkResolver : global::System.Text.Json.Serialization. 147 => global::AppStoreConnect.NominationsSourceGenerationContext.TypeInfoResolver, - 148 => global::AppStoreConnect.PassTypeIdsSourceGenerationContext.TypeInfoResolver, + 148 => global::AppStoreConnect.PartitionOrphan0SourceGenerationContext.TypeInfoResolver, - 149 => global::AppStoreConnect.PreReleaseVersionsSourceGenerationContext.TypeInfoResolver, + 149 => global::AppStoreConnect.PartitionOrphan1SourceGenerationContext.TypeInfoResolver, - 150 => global::AppStoreConnect.ProfilesSourceGenerationContext.TypeInfoResolver, + 150 => global::AppStoreConnect.PartitionOrphan2SourceGenerationContext.TypeInfoResolver, - 151 => global::AppStoreConnect.PromotedPurchasesSourceGenerationContext.TypeInfoResolver, + 151 => global::AppStoreConnect.PartitionOrphan3SourceGenerationContext.TypeInfoResolver, - 152 => global::AppStoreConnect.ReviewSubmissionItemsSourceGenerationContext.TypeInfoResolver, + 152 => global::AppStoreConnect.PartitionOrphan4SourceGenerationContext.TypeInfoResolver, - 153 => global::AppStoreConnect.ReviewSubmissionsSourceGenerationContext.TypeInfoResolver, + 153 => global::AppStoreConnect.PartitionOrphan5SourceGenerationContext.TypeInfoResolver, - 154 => global::AppStoreConnect.RoutingAppCoveragesSourceGenerationContext.TypeInfoResolver, + 154 => global::AppStoreConnect.PartitionOrphan6SourceGenerationContext.TypeInfoResolver, - 155 => global::AppStoreConnect.SalesReportsSourceGenerationContext.TypeInfoResolver, + 155 => global::AppStoreConnect.PartitionOrphan7SourceGenerationContext.TypeInfoResolver, - 156 => global::AppStoreConnect.SandboxTestersSourceGenerationContext.TypeInfoResolver, + 156 => global::AppStoreConnect.PassTypeIdsSourceGenerationContext.TypeInfoResolver, - 157 => global::AppStoreConnect.SandboxTestersClearPurchaseHistoryRequestSourceGenerationContext.TypeInfoResolver, + 157 => global::AppStoreConnect.PreReleaseVersionsSourceGenerationContext.TypeInfoResolver, - 158 => global::AppStoreConnect.ScmGitReferencesSourceGenerationContext.TypeInfoResolver, + 158 => global::AppStoreConnect.ProfilesSourceGenerationContext.TypeInfoResolver, - 159 => global::AppStoreConnect.ScmProvidersSourceGenerationContext.TypeInfoResolver, + 159 => global::AppStoreConnect.PromotedPurchasesSourceGenerationContext.TypeInfoResolver, - 160 => global::AppStoreConnect.ScmPullRequestsSourceGenerationContext.TypeInfoResolver, + 160 => global::AppStoreConnect.ReviewSubmissionItemsSourceGenerationContext.TypeInfoResolver, - 161 => global::AppStoreConnect.ScmRepositoriesSourceGenerationContext.TypeInfoResolver, + 161 => global::AppStoreConnect.ReviewSubmissionsSourceGenerationContext.TypeInfoResolver, - 162 => global::AppStoreConnect.SubscriptionAppStoreReviewScreenshotsSourceGenerationContext.TypeInfoResolver, + 162 => global::AppStoreConnect.RoutingAppCoveragesSourceGenerationContext.TypeInfoResolver, - 163 => global::AppStoreConnect.SubscriptionGracePeriodsSourceGenerationContext.TypeInfoResolver, + 163 => global::AppStoreConnect.SalesReportsSourceGenerationContext.TypeInfoResolver, - 164 => global::AppStoreConnect.SubscriptionGroupLocalizationsSourceGenerationContext.TypeInfoResolver, + 164 => global::AppStoreConnect.SandboxTestersSourceGenerationContext.TypeInfoResolver, - 165 => global::AppStoreConnect.SubscriptionGroupSubmissionsSourceGenerationContext.TypeInfoResolver, + 165 => global::AppStoreConnect.SandboxTestersClearPurchaseHistoryRequestSourceGenerationContext.TypeInfoResolver, - 166 => global::AppStoreConnect.SubscriptionGroupVersionsSourceGenerationContext.TypeInfoResolver, + 166 => global::AppStoreConnect.ScmGitReferencesSourceGenerationContext.TypeInfoResolver, - 167 => global::AppStoreConnect.SubscriptionGroupsSourceGenerationContext.TypeInfoResolver, + 167 => global::AppStoreConnect.ScmProvidersSourceGenerationContext.TypeInfoResolver, - 168 => global::AppStoreConnect.SubscriptionImagesSourceGenerationContext.TypeInfoResolver, + 168 => global::AppStoreConnect.ScmPullRequestsSourceGenerationContext.TypeInfoResolver, - 169 => global::AppStoreConnect.SubscriptionIntroductoryOffersSourceGenerationContext.TypeInfoResolver, + 169 => global::AppStoreConnect.ScmRepositoriesSourceGenerationContext.TypeInfoResolver, - 170 => global::AppStoreConnect.SubscriptionLocalizationsSourceGenerationContext.TypeInfoResolver, + 170 => global::AppStoreConnect.SubscriptionAppStoreReviewScreenshotsSourceGenerationContext.TypeInfoResolver, - 171 => global::AppStoreConnect.SubscriptionOfferCodeCustomCodesSourceGenerationContext.TypeInfoResolver, + 171 => global::AppStoreConnect.SubscriptionGracePeriodsSourceGenerationContext.TypeInfoResolver, - 172 => global::AppStoreConnect.SubscriptionOfferCodeOneTimeUseCodesSourceGenerationContext.TypeInfoResolver, + 172 => global::AppStoreConnect.SubscriptionGroupLocalizationsSourceGenerationContext.TypeInfoResolver, - 173 => global::AppStoreConnect.SubscriptionOfferCodesSourceGenerationContext.TypeInfoResolver, + 173 => global::AppStoreConnect.SubscriptionGroupSubmissionsSourceGenerationContext.TypeInfoResolver, - 174 => global::AppStoreConnect.SubscriptionPlanAvailabilitiesSourceGenerationContext.TypeInfoResolver, + 174 => global::AppStoreConnect.SubscriptionGroupVersionsSourceGenerationContext.TypeInfoResolver, - 175 => global::AppStoreConnect.SubscriptionPricePointsSourceGenerationContext.TypeInfoResolver, + 175 => global::AppStoreConnect.SubscriptionGroupsSourceGenerationContext.TypeInfoResolver, - 176 => global::AppStoreConnect.SubscriptionPricesSourceGenerationContext.TypeInfoResolver, + 176 => global::AppStoreConnect.SubscriptionImagesSourceGenerationContext.TypeInfoResolver, - 177 => global::AppStoreConnect.SubscriptionPromotionalOffersSourceGenerationContext.TypeInfoResolver, + 177 => global::AppStoreConnect.SubscriptionIntroductoryOffersSourceGenerationContext.TypeInfoResolver, - 178 => global::AppStoreConnect.SubscriptionSubmissionsSourceGenerationContext.TypeInfoResolver, + 178 => global::AppStoreConnect.SubscriptionLocalizationsSourceGenerationContext.TypeInfoResolver, - 179 => global::AppStoreConnect.SubscriptionVersionsSourceGenerationContext.TypeInfoResolver, + 179 => global::AppStoreConnect.SubscriptionOfferCodeCustomCodesSourceGenerationContext.TypeInfoResolver, - 180 => global::AppStoreConnect.SubscriptionsSourceGenerationContext.TypeInfoResolver, + 180 => global::AppStoreConnect.SubscriptionOfferCodeOneTimeUseCodesSourceGenerationContext.TypeInfoResolver, - 181 => global::AppStoreConnect.TerritoriesSourceGenerationContext.TypeInfoResolver, + 181 => global::AppStoreConnect.SubscriptionOfferCodesSourceGenerationContext.TypeInfoResolver, - 182 => global::AppStoreConnect.TerritoryAvailabilitiesSourceGenerationContext.TypeInfoResolver, + 182 => global::AppStoreConnect.SubscriptionPlanAvailabilitiesSourceGenerationContext.TypeInfoResolver, - 183 => global::AppStoreConnect.UserInvitationsSourceGenerationContext.TypeInfoResolver, + 183 => global::AppStoreConnect.SubscriptionPricePointsSourceGenerationContext.TypeInfoResolver, - 184 => global::AppStoreConnect.UsersSourceGenerationContext.TypeInfoResolver, + 184 => global::AppStoreConnect.SubscriptionPricesSourceGenerationContext.TypeInfoResolver, - 185 => global::AppStoreConnect.WebhookDeliveriesSourceGenerationContext.TypeInfoResolver, + 185 => global::AppStoreConnect.SubscriptionPromotionalOffersSourceGenerationContext.TypeInfoResolver, - 186 => global::AppStoreConnect.WebhookPingsSourceGenerationContext.TypeInfoResolver, + 186 => global::AppStoreConnect.SubscriptionSubmissionsSourceGenerationContext.TypeInfoResolver, - 187 => global::AppStoreConnect.WebhooksSourceGenerationContext.TypeInfoResolver, + 187 => global::AppStoreConnect.SubscriptionVersionsSourceGenerationContext.TypeInfoResolver, - 188 => global::AppStoreConnect.WinBackOffersSourceGenerationContext.TypeInfoResolver, + 188 => global::AppStoreConnect.SubscriptionsSourceGenerationContext.TypeInfoResolver, + + 189 => global::AppStoreConnect.TerritoriesSourceGenerationContext.TypeInfoResolver, + + 190 => global::AppStoreConnect.TerritoryAvailabilitiesSourceGenerationContext.TypeInfoResolver, + + 191 => global::AppStoreConnect.UserInvitationsSourceGenerationContext.TypeInfoResolver, + + 192 => global::AppStoreConnect.UsersSourceGenerationContext.TypeInfoResolver, + + 193 => global::AppStoreConnect.WebhookDeliveriesSourceGenerationContext.TypeInfoResolver, + + 194 => global::AppStoreConnect.WebhookPingsSourceGenerationContext.TypeInfoResolver, + + 195 => global::AppStoreConnect.WebhooksSourceGenerationContext.TypeInfoResolver, + + 196 => global::AppStoreConnect.WinBackOffersSourceGenerationContext.TypeInfoResolver, _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), }; } diff --git a/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan0.JsonSerializerContext.g.cs b/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan0.JsonSerializerContext.g.cs new file mode 100644 index 00000000..f6eea8a9 --- /dev/null +++ b/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan0.JsonSerializerContext.g.cs @@ -0,0 +1,351 @@ + +#nullable enable + +namespace AppStoreConnect +{ + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleaseResponse))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleaseResponseIncludedItemDiscriminator))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleaseResponseIncludedItemDiscriminatorType), TypeInfoPropertyName = "GameCenterAchievementReleaseResponseIncludedItemDiscriminatorType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequest))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestData))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataType), TypeInfoPropertyName = "GameCenterAchievementReleaseCreateRequestDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataRelationships))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterDetail))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterDetailData))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterDetailDataType), TypeInfoPropertyName = "GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterDetailDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterAchievement))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterAchievementData))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterAchievementDataType), TypeInfoPropertyName = "GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterAchievementDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceFieldsGameCenterAchievementRelease), TypeInfoPropertyName = "GameCenterAchievementReleasesGetInstanceFieldsGameCenterAchievementRelease2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceFieldsGameCenterDetail), TypeInfoPropertyName = "GameCenterAchievementReleasesGetInstanceFieldsGameCenterDetail2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceFieldsGameCenterAchievement), TypeInfoPropertyName = "GameCenterAchievementReleasesGetInstanceFieldsGameCenterAchievement2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceIncludeItem), TypeInfoPropertyName = "GameCenterAchievementReleasesGetInstanceIncludeItem2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleaseResponseIncludedItemDiscriminatorType?), TypeInfoPropertyName = "NullableGameCenterAchievementReleaseResponseIncludedItemDiscriminatorType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataType?), TypeInfoPropertyName = "NullableGameCenterAchievementReleaseCreateRequestDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterDetailDataType?), TypeInfoPropertyName = "NullableGameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterDetailDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterAchievementDataType?), TypeInfoPropertyName = "NullableGameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterAchievementDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceFieldsGameCenterAchievementRelease?), TypeInfoPropertyName = "NullableGameCenterAchievementReleasesGetInstanceFieldsGameCenterAchievementRelease2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceFieldsGameCenterDetail?), TypeInfoPropertyName = "NullableGameCenterAchievementReleasesGetInstanceFieldsGameCenterDetail2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceFieldsGameCenterAchievement?), TypeInfoPropertyName = "NullableGameCenterAchievementReleasesGetInstanceFieldsGameCenterAchievement2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceIncludeItem?), TypeInfoPropertyName = "NullableGameCenterAchievementReleasesGetInstanceIncludeItem2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + internal sealed partial class PartitionOrphan0SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + /// + /// + /// + public sealed partial class PartitionOrphan0SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext + { + private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); + + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; + + + private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); + + /// + /// + /// + public static PartitionOrphan0SourceGenerationContext Default { get; } = new(DefaultOptions); + + private PartitionOrphan0SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) + : base(options) + { + } + + /// + protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; + + /// + public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) + { + return Resolver.GetTypeInfo(type, Options); + } + + /// + /// Adds this package's converters to . + /// + /// + /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, + /// and a context resolves types from every package below it. Each package contributes only + /// what it owns and calls down the chain for the rest, so the family's converter table is + /// written once rather than copied into all of them. + /// + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) + { + global::AppStoreConnect.PartitionCoreSourceGenerationContext.AddConverters(options); + options.Converters.Add(new LazyEnumJsonConverterFactory()); + } + + private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() + { + var options = new global::System.Text.Json.JsonSerializerOptions + { + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + TypeInfoResolver = Resolver, + }; + AddConverters(options); + + return options; + } + + + private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Serialization.JsonConverterFactory + { + public override bool CanConvert(global::System.Type typeToConvert) + { + return + typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleaseResponseIncludedItemDiscriminatorType) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleaseResponseIncludedItemDiscriminatorType?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataType) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataType?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterDetailDataType) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterDetailDataType?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterAchievementDataType) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterAchievementDataType?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceFieldsGameCenterAchievementRelease) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceFieldsGameCenterAchievementRelease?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceFieldsGameCenterDetail) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceFieldsGameCenterDetail?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceFieldsGameCenterAchievement) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceFieldsGameCenterAchievement?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceIncludeItem) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceIncludeItem?); + } + + public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleaseResponseIncludedItemDiscriminatorType)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterAchievementReleaseResponseIncludedItemDiscriminatorTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleaseResponseIncludedItemDiscriminatorType?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterAchievementReleaseResponseIncludedItemDiscriminatorTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataType)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterAchievementReleaseCreateRequestDataTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataType?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterAchievementReleaseCreateRequestDataTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterDetailDataType)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterDetailDataTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterDetailDataType?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterDetailDataTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterAchievementDataType)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterAchievementDataTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterAchievementDataType?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterAchievementDataTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceFieldsGameCenterAchievementRelease)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterAchievementReleasesGetInstanceFieldsGameCenterAchievementReleaseJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceFieldsGameCenterAchievementRelease?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterAchievementReleasesGetInstanceFieldsGameCenterAchievementReleaseNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceFieldsGameCenterDetail)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterAchievementReleasesGetInstanceFieldsGameCenterDetailJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceFieldsGameCenterDetail?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterAchievementReleasesGetInstanceFieldsGameCenterDetailNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceFieldsGameCenterAchievement)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterAchievementReleasesGetInstanceFieldsGameCenterAchievementJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceFieldsGameCenterAchievement?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterAchievementReleasesGetInstanceFieldsGameCenterAchievementNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceIncludeItem)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterAchievementReleasesGetInstanceIncludeItemJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterAchievementReleasesGetInstanceIncludeItem?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterAchievementReleasesGetInstanceIncludeItemNullableJsonConverter(); + } + throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); + } + } + + private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver + { + private readonly object _gate = new(); + private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[2]; + + public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( + global::System.Type type, + global::System.Text.Json.JsonSerializerOptions options) + { + for (var index = 0; index < _resolvers.Length; index++) + { + var typeInfo = GetResolver(index).GetTypeInfo(type, options); + if (typeInfo is not null) + { + return typeInfo; + } + } + + return null; + } + + private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) + { + var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); + if (resolver is not null) + { + return resolver; + } + + lock (_gate) + { + return _resolvers[index] ??= CreateResolver(index); + } + } + + private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) + { + return index switch + { + 0 => new PartitionOrphan0SourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), + + 1 => global::AppStoreConnect.PartitionCoreSourceGenerationContext.TypeInfoResolver, + _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), + }; + } + } + } +} \ No newline at end of file diff --git a/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan1.JsonSerializerContext.g.cs b/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan1.JsonSerializerContext.g.cs new file mode 100644 index 00000000..6f3d02d5 --- /dev/null +++ b/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan1.JsonSerializerContext.g.cs @@ -0,0 +1,302 @@ + +#nullable enable + +namespace AppStoreConnect +{ + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseResponse))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequest))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestData))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataType), TypeInfoPropertyName = "GameCenterActivityVersionReleaseCreateRequestDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataRelationships))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataRelationshipsGameCenterDetail))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataRelationshipsGameCenterDetailData))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataRelationshipsGameCenterDetailDataType), TypeInfoPropertyName = "GameCenterActivityVersionReleaseCreateRequestDataRelationshipsGameCenterDetailDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataRelationshipsVersion))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataRelationshipsVersionData))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataRelationshipsVersionDataType), TypeInfoPropertyName = "GameCenterActivityVersionReleaseCreateRequestDataRelationshipsVersionDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterActivityVersionReleasesGetInstanceFieldsGameCenterActivityVersionRelease), TypeInfoPropertyName = "GameCenterActivityVersionReleasesGetInstanceFieldsGameCenterActivityVersionRelease2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterActivityVersionReleasesGetInstanceFieldsGameCenterActivityVersion), TypeInfoPropertyName = "GameCenterActivityVersionReleasesGetInstanceFieldsGameCenterActivityVersion2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterActivityVersionReleasesGetInstanceIncludeItem), TypeInfoPropertyName = "GameCenterActivityVersionReleasesGetInstanceIncludeItem2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataType?), TypeInfoPropertyName = "NullableGameCenterActivityVersionReleaseCreateRequestDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataRelationshipsGameCenterDetailDataType?), TypeInfoPropertyName = "NullableGameCenterActivityVersionReleaseCreateRequestDataRelationshipsGameCenterDetailDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataRelationshipsVersionDataType?), TypeInfoPropertyName = "NullableGameCenterActivityVersionReleaseCreateRequestDataRelationshipsVersionDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterActivityVersionReleasesGetInstanceFieldsGameCenterActivityVersionRelease?), TypeInfoPropertyName = "NullableGameCenterActivityVersionReleasesGetInstanceFieldsGameCenterActivityVersionRelease2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterActivityVersionReleasesGetInstanceFieldsGameCenterActivityVersion?), TypeInfoPropertyName = "NullableGameCenterActivityVersionReleasesGetInstanceFieldsGameCenterActivityVersion2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterActivityVersionReleasesGetInstanceIncludeItem?), TypeInfoPropertyName = "NullableGameCenterActivityVersionReleasesGetInstanceIncludeItem2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + internal sealed partial class PartitionOrphan1SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + /// + /// + /// + public sealed partial class PartitionOrphan1SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext + { + private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); + + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; + + + private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); + + /// + /// + /// + public static PartitionOrphan1SourceGenerationContext Default { get; } = new(DefaultOptions); + + private PartitionOrphan1SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) + : base(options) + { + } + + /// + protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; + + /// + public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) + { + return Resolver.GetTypeInfo(type, Options); + } + + /// + /// Adds this package's converters to . + /// + /// + /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, + /// and a context resolves types from every package below it. Each package contributes only + /// what it owns and calls down the chain for the rest, so the family's converter table is + /// written once rather than copied into all of them. + /// + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) + { + global::AppStoreConnect.PartitionCoreSourceGenerationContext.AddConverters(options); + options.Converters.Add(new LazyEnumJsonConverterFactory()); + } + + private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() + { + var options = new global::System.Text.Json.JsonSerializerOptions + { + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + TypeInfoResolver = Resolver, + }; + AddConverters(options); + + return options; + } + + + private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Serialization.JsonConverterFactory + { + public override bool CanConvert(global::System.Type typeToConvert) + { + return + typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataType) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataType?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataRelationshipsGameCenterDetailDataType) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataRelationshipsGameCenterDetailDataType?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataRelationshipsVersionDataType) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataRelationshipsVersionDataType?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleasesGetInstanceFieldsGameCenterActivityVersionRelease) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleasesGetInstanceFieldsGameCenterActivityVersionRelease?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleasesGetInstanceFieldsGameCenterActivityVersion) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleasesGetInstanceFieldsGameCenterActivityVersion?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleasesGetInstanceIncludeItem) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleasesGetInstanceIncludeItem?); + } + + public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataType)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterActivityVersionReleaseCreateRequestDataTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataType?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterActivityVersionReleaseCreateRequestDataTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataRelationshipsGameCenterDetailDataType)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterActivityVersionReleaseCreateRequestDataRelationshipsGameCenterDetailDataTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataRelationshipsGameCenterDetailDataType?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterActivityVersionReleaseCreateRequestDataRelationshipsGameCenterDetailDataTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataRelationshipsVersionDataType)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterActivityVersionReleaseCreateRequestDataRelationshipsVersionDataTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleaseCreateRequestDataRelationshipsVersionDataType?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterActivityVersionReleaseCreateRequestDataRelationshipsVersionDataTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleasesGetInstanceFieldsGameCenterActivityVersionRelease)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterActivityVersionReleasesGetInstanceFieldsGameCenterActivityVersionReleaseJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleasesGetInstanceFieldsGameCenterActivityVersionRelease?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterActivityVersionReleasesGetInstanceFieldsGameCenterActivityVersionReleaseNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleasesGetInstanceFieldsGameCenterActivityVersion)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterActivityVersionReleasesGetInstanceFieldsGameCenterActivityVersionJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleasesGetInstanceFieldsGameCenterActivityVersion?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterActivityVersionReleasesGetInstanceFieldsGameCenterActivityVersionNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleasesGetInstanceIncludeItem)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterActivityVersionReleasesGetInstanceIncludeItemJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterActivityVersionReleasesGetInstanceIncludeItem?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterActivityVersionReleasesGetInstanceIncludeItemNullableJsonConverter(); + } + throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); + } + } + + private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver + { + private readonly object _gate = new(); + private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[2]; + + public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( + global::System.Type type, + global::System.Text.Json.JsonSerializerOptions options) + { + for (var index = 0; index < _resolvers.Length; index++) + { + var typeInfo = GetResolver(index).GetTypeInfo(type, options); + if (typeInfo is not null) + { + return typeInfo; + } + } + + return null; + } + + private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) + { + var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); + if (resolver is not null) + { + return resolver; + } + + lock (_gate) + { + return _resolvers[index] ??= CreateResolver(index); + } + } + + private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) + { + return index switch + { + 0 => new PartitionOrphan1SourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), + + 1 => global::AppStoreConnect.PartitionCoreSourceGenerationContext.TypeInfoResolver, + _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), + }; + } + } + } +} \ No newline at end of file diff --git a/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan2.JsonSerializerContext.g.cs b/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan2.JsonSerializerContext.g.cs new file mode 100644 index 00000000..9760e06d --- /dev/null +++ b/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan2.JsonSerializerContext.g.cs @@ -0,0 +1,302 @@ + +#nullable enable + +namespace AppStoreConnect +{ + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseResponse))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequest))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestData))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataType), TypeInfoPropertyName = "GameCenterChallengeVersionReleaseCreateRequestDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataRelationships))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsGameCenterDetail))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsGameCenterDetailData))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsGameCenterDetailDataType), TypeInfoPropertyName = "GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsGameCenterDetailDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsVersion))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsVersionData))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsVersionDataType), TypeInfoPropertyName = "GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsVersionDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterChallengeVersionReleasesGetInstanceFieldsGameCenterChallengeVersionRelease), TypeInfoPropertyName = "GameCenterChallengeVersionReleasesGetInstanceFieldsGameCenterChallengeVersionRelease2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterChallengeVersionReleasesGetInstanceFieldsGameCenterChallengeVersion), TypeInfoPropertyName = "GameCenterChallengeVersionReleasesGetInstanceFieldsGameCenterChallengeVersion2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterChallengeVersionReleasesGetInstanceIncludeItem), TypeInfoPropertyName = "GameCenterChallengeVersionReleasesGetInstanceIncludeItem2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataType?), TypeInfoPropertyName = "NullableGameCenterChallengeVersionReleaseCreateRequestDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsGameCenterDetailDataType?), TypeInfoPropertyName = "NullableGameCenterChallengeVersionReleaseCreateRequestDataRelationshipsGameCenterDetailDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsVersionDataType?), TypeInfoPropertyName = "NullableGameCenterChallengeVersionReleaseCreateRequestDataRelationshipsVersionDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterChallengeVersionReleasesGetInstanceFieldsGameCenterChallengeVersionRelease?), TypeInfoPropertyName = "NullableGameCenterChallengeVersionReleasesGetInstanceFieldsGameCenterChallengeVersionRelease2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterChallengeVersionReleasesGetInstanceFieldsGameCenterChallengeVersion?), TypeInfoPropertyName = "NullableGameCenterChallengeVersionReleasesGetInstanceFieldsGameCenterChallengeVersion2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterChallengeVersionReleasesGetInstanceIncludeItem?), TypeInfoPropertyName = "NullableGameCenterChallengeVersionReleasesGetInstanceIncludeItem2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + internal sealed partial class PartitionOrphan2SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + /// + /// + /// + public sealed partial class PartitionOrphan2SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext + { + private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); + + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; + + + private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); + + /// + /// + /// + public static PartitionOrphan2SourceGenerationContext Default { get; } = new(DefaultOptions); + + private PartitionOrphan2SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) + : base(options) + { + } + + /// + protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; + + /// + public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) + { + return Resolver.GetTypeInfo(type, Options); + } + + /// + /// Adds this package's converters to . + /// + /// + /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, + /// and a context resolves types from every package below it. Each package contributes only + /// what it owns and calls down the chain for the rest, so the family's converter table is + /// written once rather than copied into all of them. + /// + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) + { + global::AppStoreConnect.PartitionCoreSourceGenerationContext.AddConverters(options); + options.Converters.Add(new LazyEnumJsonConverterFactory()); + } + + private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() + { + var options = new global::System.Text.Json.JsonSerializerOptions + { + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + TypeInfoResolver = Resolver, + }; + AddConverters(options); + + return options; + } + + + private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Serialization.JsonConverterFactory + { + public override bool CanConvert(global::System.Type typeToConvert) + { + return + typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataType) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataType?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsGameCenterDetailDataType) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsGameCenterDetailDataType?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsVersionDataType) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsVersionDataType?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleasesGetInstanceFieldsGameCenterChallengeVersionRelease) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleasesGetInstanceFieldsGameCenterChallengeVersionRelease?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleasesGetInstanceFieldsGameCenterChallengeVersion) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleasesGetInstanceFieldsGameCenterChallengeVersion?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleasesGetInstanceIncludeItem) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleasesGetInstanceIncludeItem?); + } + + public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataType)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterChallengeVersionReleaseCreateRequestDataTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataType?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterChallengeVersionReleaseCreateRequestDataTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsGameCenterDetailDataType)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsGameCenterDetailDataTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsGameCenterDetailDataType?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsGameCenterDetailDataTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsVersionDataType)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsVersionDataTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsVersionDataType?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterChallengeVersionReleaseCreateRequestDataRelationshipsVersionDataTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleasesGetInstanceFieldsGameCenterChallengeVersionRelease)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterChallengeVersionReleasesGetInstanceFieldsGameCenterChallengeVersionReleaseJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleasesGetInstanceFieldsGameCenterChallengeVersionRelease?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterChallengeVersionReleasesGetInstanceFieldsGameCenterChallengeVersionReleaseNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleasesGetInstanceFieldsGameCenterChallengeVersion)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterChallengeVersionReleasesGetInstanceFieldsGameCenterChallengeVersionJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleasesGetInstanceFieldsGameCenterChallengeVersion?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterChallengeVersionReleasesGetInstanceFieldsGameCenterChallengeVersionNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleasesGetInstanceIncludeItem)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterChallengeVersionReleasesGetInstanceIncludeItemJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterChallengeVersionReleasesGetInstanceIncludeItem?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterChallengeVersionReleasesGetInstanceIncludeItemNullableJsonConverter(); + } + throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); + } + } + + private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver + { + private readonly object _gate = new(); + private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[2]; + + public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( + global::System.Type type, + global::System.Text.Json.JsonSerializerOptions options) + { + for (var index = 0; index < _resolvers.Length; index++) + { + var typeInfo = GetResolver(index).GetTypeInfo(type, options); + if (typeInfo is not null) + { + return typeInfo; + } + } + + return null; + } + + private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) + { + var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); + if (resolver is not null) + { + return resolver; + } + + lock (_gate) + { + return _resolvers[index] ??= CreateResolver(index); + } + } + + private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) + { + return index switch + { + 0 => new PartitionOrphan2SourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), + + 1 => global::AppStoreConnect.PartitionCoreSourceGenerationContext.TypeInfoResolver, + _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), + }; + } + } + } +} \ No newline at end of file diff --git a/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan3.JsonSerializerContext.g.cs b/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan3.JsonSerializerContext.g.cs new file mode 100644 index 00000000..6817f8c7 --- /dev/null +++ b/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan3.JsonSerializerContext.g.cs @@ -0,0 +1,334 @@ + +#nullable enable + +namespace AppStoreConnect +{ + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterEnabledVersionCompatibleVersionsLinkagesResponse))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterEnabledVersionCompatibleVersionsLinkagesResponseDataItem))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterEnabledVersionCompatibleVersionsLinkagesResponseDataItemType), TypeInfoPropertyName = "GameCenterEnabledVersionCompatibleVersionsLinkagesResponseDataItemType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterEnabledVersionCompatibleVersionsLinkagesRequest))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterEnabledVersionCompatibleVersionsLinkagesRequestDataItem))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterEnabledVersionCompatibleVersionsLinkagesRequestDataItemType), TypeInfoPropertyName = "GameCenterEnabledVersionCompatibleVersionsLinkagesRequestDataItemType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFilterPlatformItem), TypeInfoPropertyName = "GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFilterPlatformItem2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedSortItem), TypeInfoPropertyName = "GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedSortItem2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFieldsGameCenterEnabledVersion), TypeInfoPropertyName = "GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFieldsGameCenterEnabledVersion2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFieldsApp), TypeInfoPropertyName = "GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFieldsApp2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedIncludeItem), TypeInfoPropertyName = "GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedIncludeItem2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterEnabledVersionCompatibleVersionsLinkagesResponseDataItemType?), TypeInfoPropertyName = "NullableGameCenterEnabledVersionCompatibleVersionsLinkagesResponseDataItemType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterEnabledVersionCompatibleVersionsLinkagesRequestDataItemType?), TypeInfoPropertyName = "NullableGameCenterEnabledVersionCompatibleVersionsLinkagesRequestDataItemType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFilterPlatformItem?), TypeInfoPropertyName = "NullableGameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFilterPlatformItem2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedSortItem?), TypeInfoPropertyName = "NullableGameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedSortItem2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFieldsGameCenterEnabledVersion?), TypeInfoPropertyName = "NullableGameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFieldsGameCenterEnabledVersion2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFieldsApp?), TypeInfoPropertyName = "NullableGameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFieldsApp2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedIncludeItem?), TypeInfoPropertyName = "NullableGameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedIncludeItem2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + internal sealed partial class PartitionOrphan3SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + /// + /// + /// + public sealed partial class PartitionOrphan3SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext + { + private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); + + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; + + + private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); + + /// + /// + /// + public static PartitionOrphan3SourceGenerationContext Default { get; } = new(DefaultOptions); + + private PartitionOrphan3SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) + : base(options) + { + } + + /// + protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; + + /// + public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) + { + return Resolver.GetTypeInfo(type, Options); + } + + /// + /// Adds this package's converters to . + /// + /// + /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, + /// and a context resolves types from every package below it. Each package contributes only + /// what it owns and calls down the chain for the rest, so the family's converter table is + /// written once rather than copied into all of them. + /// + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) + { + global::AppStoreConnect.PartitionCoreSourceGenerationContext.AddConverters(options); + options.Converters.Add(new LazyEnumJsonConverterFactory()); + } + + private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() + { + var options = new global::System.Text.Json.JsonSerializerOptions + { + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + TypeInfoResolver = Resolver, + }; + AddConverters(options); + + return options; + } + + + private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Serialization.JsonConverterFactory + { + public override bool CanConvert(global::System.Type typeToConvert) + { + return + typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionCompatibleVersionsLinkagesResponseDataItemType) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionCompatibleVersionsLinkagesResponseDataItemType?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionCompatibleVersionsLinkagesRequestDataItemType) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionCompatibleVersionsLinkagesRequestDataItemType?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFilterPlatformItem) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFilterPlatformItem?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedSortItem) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedSortItem?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFieldsGameCenterEnabledVersion) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFieldsGameCenterEnabledVersion?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFieldsApp) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFieldsApp?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedIncludeItem) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedIncludeItem?); + } + + public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionCompatibleVersionsLinkagesResponseDataItemType)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterEnabledVersionCompatibleVersionsLinkagesResponseDataItemTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionCompatibleVersionsLinkagesResponseDataItemType?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterEnabledVersionCompatibleVersionsLinkagesResponseDataItemTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionCompatibleVersionsLinkagesRequestDataItemType)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterEnabledVersionCompatibleVersionsLinkagesRequestDataItemTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionCompatibleVersionsLinkagesRequestDataItemType?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterEnabledVersionCompatibleVersionsLinkagesRequestDataItemTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFilterPlatformItem)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFilterPlatformItemJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFilterPlatformItem?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFilterPlatformItemNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedSortItem)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedSortItemJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedSortItem?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedSortItemNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFieldsGameCenterEnabledVersion)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFieldsGameCenterEnabledVersionJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFieldsGameCenterEnabledVersion?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFieldsGameCenterEnabledVersionNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFieldsApp)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFieldsAppJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFieldsApp?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedFieldsAppNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedIncludeItem)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedIncludeItemJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedIncludeItem?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterEnabledVersionsCompatibleVersionsGetToManyRelatedIncludeItemNullableJsonConverter(); + } + throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); + } + } + + private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver + { + private readonly object _gate = new(); + private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[2]; + + public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( + global::System.Type type, + global::System.Text.Json.JsonSerializerOptions options) + { + for (var index = 0; index < _resolvers.Length; index++) + { + var typeInfo = GetResolver(index).GetTypeInfo(type, options); + if (typeInfo is not null) + { + return typeInfo; + } + } + + return null; + } + + private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) + { + var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); + if (resolver is not null) + { + return resolver; + } + + lock (_gate) + { + return _resolvers[index] ??= CreateResolver(index); + } + } + + private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) + { + return index switch + { + 0 => new PartitionOrphan3SourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), + + 1 => global::AppStoreConnect.PartitionCoreSourceGenerationContext.TypeInfoResolver, + _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), + }; + } + } + } +} \ No newline at end of file diff --git a/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan4.JsonSerializerContext.g.cs b/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan4.JsonSerializerContext.g.cs new file mode 100644 index 00000000..f220dcdc --- /dev/null +++ b/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan4.JsonSerializerContext.g.cs @@ -0,0 +1,351 @@ + +#nullable enable + +namespace AppStoreConnect +{ + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseResponse))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseResponseIncludedItemDiscriminator))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseResponseIncludedItemDiscriminatorType), TypeInfoPropertyName = "GameCenterLeaderboardReleaseResponseIncludedItemDiscriminatorType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequest))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestData))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataType), TypeInfoPropertyName = "GameCenterLeaderboardReleaseCreateRequestDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataRelationships))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterDetail))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterDetailData))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterDetailDataType), TypeInfoPropertyName = "GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterDetailDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterLeaderboard))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterLeaderboardData))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterLeaderboardDataType), TypeInfoPropertyName = "GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterLeaderboardDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterLeaderboardRelease), TypeInfoPropertyName = "GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterLeaderboardRelease2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterDetail), TypeInfoPropertyName = "GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterDetail2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterLeaderboard), TypeInfoPropertyName = "GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterLeaderboard2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceIncludeItem), TypeInfoPropertyName = "GameCenterLeaderboardReleasesGetInstanceIncludeItem2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseResponseIncludedItemDiscriminatorType?), TypeInfoPropertyName = "NullableGameCenterLeaderboardReleaseResponseIncludedItemDiscriminatorType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataType?), TypeInfoPropertyName = "NullableGameCenterLeaderboardReleaseCreateRequestDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterDetailDataType?), TypeInfoPropertyName = "NullableGameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterDetailDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterLeaderboardDataType?), TypeInfoPropertyName = "NullableGameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterLeaderboardDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterLeaderboardRelease?), TypeInfoPropertyName = "NullableGameCenterLeaderboardReleasesGetInstanceFieldsGameCenterLeaderboardRelease2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterDetail?), TypeInfoPropertyName = "NullableGameCenterLeaderboardReleasesGetInstanceFieldsGameCenterDetail2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterLeaderboard?), TypeInfoPropertyName = "NullableGameCenterLeaderboardReleasesGetInstanceFieldsGameCenterLeaderboard2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceIncludeItem?), TypeInfoPropertyName = "NullableGameCenterLeaderboardReleasesGetInstanceIncludeItem2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + internal sealed partial class PartitionOrphan4SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + /// + /// + /// + public sealed partial class PartitionOrphan4SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext + { + private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); + + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; + + + private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); + + /// + /// + /// + public static PartitionOrphan4SourceGenerationContext Default { get; } = new(DefaultOptions); + + private PartitionOrphan4SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) + : base(options) + { + } + + /// + protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; + + /// + public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) + { + return Resolver.GetTypeInfo(type, Options); + } + + /// + /// Adds this package's converters to . + /// + /// + /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, + /// and a context resolves types from every package below it. Each package contributes only + /// what it owns and calls down the chain for the rest, so the family's converter table is + /// written once rather than copied into all of them. + /// + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) + { + global::AppStoreConnect.PartitionCoreSourceGenerationContext.AddConverters(options); + options.Converters.Add(new LazyEnumJsonConverterFactory()); + } + + private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() + { + var options = new global::System.Text.Json.JsonSerializerOptions + { + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + TypeInfoResolver = Resolver, + }; + AddConverters(options); + + return options; + } + + + private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Serialization.JsonConverterFactory + { + public override bool CanConvert(global::System.Type typeToConvert) + { + return + typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseResponseIncludedItemDiscriminatorType) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseResponseIncludedItemDiscriminatorType?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataType) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataType?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterDetailDataType) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterDetailDataType?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterLeaderboardDataType) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterLeaderboardDataType?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterLeaderboardRelease) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterLeaderboardRelease?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterDetail) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterDetail?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterLeaderboard) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterLeaderboard?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceIncludeItem) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceIncludeItem?); + } + + public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseResponseIncludedItemDiscriminatorType)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardReleaseResponseIncludedItemDiscriminatorTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseResponseIncludedItemDiscriminatorType?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardReleaseResponseIncludedItemDiscriminatorTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataType)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardReleaseCreateRequestDataTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataType?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardReleaseCreateRequestDataTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterDetailDataType)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterDetailDataTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterDetailDataType?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterDetailDataTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterLeaderboardDataType)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterLeaderboardDataTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterLeaderboardDataType?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardReleaseCreateRequestDataRelationshipsGameCenterLeaderboardDataTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterLeaderboardRelease)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterLeaderboardReleaseJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterLeaderboardRelease?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterLeaderboardReleaseNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterDetail)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterDetailJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterDetail?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterDetailNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterLeaderboard)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterLeaderboardJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterLeaderboard?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardReleasesGetInstanceFieldsGameCenterLeaderboardNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceIncludeItem)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardReleasesGetInstanceIncludeItemJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardReleasesGetInstanceIncludeItem?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardReleasesGetInstanceIncludeItemNullableJsonConverter(); + } + throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); + } + } + + private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver + { + private readonly object _gate = new(); + private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[2]; + + public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( + global::System.Type type, + global::System.Text.Json.JsonSerializerOptions options) + { + for (var index = 0; index < _resolvers.Length; index++) + { + var typeInfo = GetResolver(index).GetTypeInfo(type, options); + if (typeInfo is not null) + { + return typeInfo; + } + } + + return null; + } + + private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) + { + var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); + if (resolver is not null) + { + return resolver; + } + + lock (_gate) + { + return _resolvers[index] ??= CreateResolver(index); + } + } + + private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) + { + return index switch + { + 0 => new PartitionOrphan4SourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), + + 1 => global::AppStoreConnect.PartitionCoreSourceGenerationContext.TypeInfoResolver, + _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), + }; + } + } + } +} \ No newline at end of file diff --git a/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan5.JsonSerializerContext.g.cs b/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan5.JsonSerializerContext.g.cs new file mode 100644 index 00000000..d6b9f6f8 --- /dev/null +++ b/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan5.JsonSerializerContext.g.cs @@ -0,0 +1,351 @@ + +#nullable enable + +namespace AppStoreConnect +{ + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseResponse))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseResponseIncludedItemDiscriminator))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseResponseIncludedItemDiscriminatorType), TypeInfoPropertyName = "GameCenterLeaderboardSetReleaseResponseIncludedItemDiscriminatorType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequest))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestData))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataType), TypeInfoPropertyName = "GameCenterLeaderboardSetReleaseCreateRequestDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataRelationships))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterDetail))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterDetailData))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterDetailDataType), TypeInfoPropertyName = "GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterDetailDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterLeaderboardSet))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterLeaderboardSetData))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterLeaderboardSetDataType), TypeInfoPropertyName = "GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterLeaderboardSetDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterLeaderboardSetRelease), TypeInfoPropertyName = "GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterLeaderboardSetRelease2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterDetail), TypeInfoPropertyName = "GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterDetail2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterLeaderboardSet), TypeInfoPropertyName = "GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterLeaderboardSet2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceIncludeItem), TypeInfoPropertyName = "GameCenterLeaderboardSetReleasesGetInstanceIncludeItem2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseResponseIncludedItemDiscriminatorType?), TypeInfoPropertyName = "NullableGameCenterLeaderboardSetReleaseResponseIncludedItemDiscriminatorType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataType?), TypeInfoPropertyName = "NullableGameCenterLeaderboardSetReleaseCreateRequestDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterDetailDataType?), TypeInfoPropertyName = "NullableGameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterDetailDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterLeaderboardSetDataType?), TypeInfoPropertyName = "NullableGameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterLeaderboardSetDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterLeaderboardSetRelease?), TypeInfoPropertyName = "NullableGameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterLeaderboardSetRelease2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterDetail?), TypeInfoPropertyName = "NullableGameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterDetail2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterLeaderboardSet?), TypeInfoPropertyName = "NullableGameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterLeaderboardSet2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceIncludeItem?), TypeInfoPropertyName = "NullableGameCenterLeaderboardSetReleasesGetInstanceIncludeItem2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + internal sealed partial class PartitionOrphan5SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + /// + /// + /// + public sealed partial class PartitionOrphan5SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext + { + private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); + + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; + + + private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); + + /// + /// + /// + public static PartitionOrphan5SourceGenerationContext Default { get; } = new(DefaultOptions); + + private PartitionOrphan5SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) + : base(options) + { + } + + /// + protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; + + /// + public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) + { + return Resolver.GetTypeInfo(type, Options); + } + + /// + /// Adds this package's converters to . + /// + /// + /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, + /// and a context resolves types from every package below it. Each package contributes only + /// what it owns and calls down the chain for the rest, so the family's converter table is + /// written once rather than copied into all of them. + /// + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) + { + global::AppStoreConnect.PartitionCoreSourceGenerationContext.AddConverters(options); + options.Converters.Add(new LazyEnumJsonConverterFactory()); + } + + private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() + { + var options = new global::System.Text.Json.JsonSerializerOptions + { + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + TypeInfoResolver = Resolver, + }; + AddConverters(options); + + return options; + } + + + private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Serialization.JsonConverterFactory + { + public override bool CanConvert(global::System.Type typeToConvert) + { + return + typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseResponseIncludedItemDiscriminatorType) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseResponseIncludedItemDiscriminatorType?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataType) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataType?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterDetailDataType) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterDetailDataType?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterLeaderboardSetDataType) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterLeaderboardSetDataType?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterLeaderboardSetRelease) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterLeaderboardSetRelease?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterDetail) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterDetail?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterLeaderboardSet) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterLeaderboardSet?) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceIncludeItem) + + || typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceIncludeItem?); + } + + public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseResponseIncludedItemDiscriminatorType)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardSetReleaseResponseIncludedItemDiscriminatorTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseResponseIncludedItemDiscriminatorType?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardSetReleaseResponseIncludedItemDiscriminatorTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataType)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardSetReleaseCreateRequestDataTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataType?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardSetReleaseCreateRequestDataTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterDetailDataType)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterDetailDataTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterDetailDataType?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterDetailDataTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterLeaderboardSetDataType)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterLeaderboardSetDataTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterLeaderboardSetDataType?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardSetReleaseCreateRequestDataRelationshipsGameCenterLeaderboardSetDataTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterLeaderboardSetRelease)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterLeaderboardSetReleaseJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterLeaderboardSetRelease?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterLeaderboardSetReleaseNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterDetail)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterDetailJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterDetail?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterDetailNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterLeaderboardSet)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterLeaderboardSetJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterLeaderboardSet?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardSetReleasesGetInstanceFieldsGameCenterLeaderboardSetNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceIncludeItem)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardSetReleasesGetInstanceIncludeItemJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.GameCenterLeaderboardSetReleasesGetInstanceIncludeItem?)) + { + return new global::AppStoreConnect.JsonConverters.GameCenterLeaderboardSetReleasesGetInstanceIncludeItemNullableJsonConverter(); + } + throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); + } + } + + private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver + { + private readonly object _gate = new(); + private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[2]; + + public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( + global::System.Type type, + global::System.Text.Json.JsonSerializerOptions options) + { + for (var index = 0; index < _resolvers.Length; index++) + { + var typeInfo = GetResolver(index).GetTypeInfo(type, options); + if (typeInfo is not null) + { + return typeInfo; + } + } + + return null; + } + + private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) + { + var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); + if (resolver is not null) + { + return resolver; + } + + lock (_gate) + { + return _resolvers[index] ??= CreateResolver(index); + } + } + + private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) + { + return index switch + { + 0 => new PartitionOrphan5SourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), + + 1 => global::AppStoreConnect.PartitionCoreSourceGenerationContext.TypeInfoResolver, + _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), + }; + } + } + } +} \ No newline at end of file diff --git a/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan6.JsonSerializerContext.g.cs b/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan6.JsonSerializerContext.g.cs new file mode 100644 index 00000000..accff7b1 --- /dev/null +++ b/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan6.JsonSerializerContext.g.cs @@ -0,0 +1,262 @@ + +#nullable enable + +namespace AppStoreConnect +{ + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.MarketplaceWebhook))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.MarketplaceWebhookType), TypeInfoPropertyName = "MarketplaceWebhookType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.MarketplaceWebhookAttributes))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.MarketplaceWebhooksResponse))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.MarketplaceWebhookResponse))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.MarketplaceWebhookCreateRequest))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.MarketplaceWebhookCreateRequestData))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.MarketplaceWebhookCreateRequestDataType), TypeInfoPropertyName = "MarketplaceWebhookCreateRequestDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.MarketplaceWebhookCreateRequestDataAttributes))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.MarketplaceWebhookUpdateRequest))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.MarketplaceWebhookUpdateRequestData))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.MarketplaceWebhookUpdateRequestDataType), TypeInfoPropertyName = "MarketplaceWebhookUpdateRequestDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.MarketplaceWebhookUpdateRequestDataAttributes))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.MarketplaceWebhooksGetCollectionFieldsMarketplaceWebhook), TypeInfoPropertyName = "MarketplaceWebhooksGetCollectionFieldsMarketplaceWebhook2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.MarketplaceWebhookType?), TypeInfoPropertyName = "NullableMarketplaceWebhookType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.MarketplaceWebhookCreateRequestDataType?), TypeInfoPropertyName = "NullableMarketplaceWebhookCreateRequestDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.MarketplaceWebhookUpdateRequestDataType?), TypeInfoPropertyName = "NullableMarketplaceWebhookUpdateRequestDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.MarketplaceWebhooksGetCollectionFieldsMarketplaceWebhook?), TypeInfoPropertyName = "NullableMarketplaceWebhooksGetCollectionFieldsMarketplaceWebhook2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + internal sealed partial class PartitionOrphan6SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + /// + /// + /// + public sealed partial class PartitionOrphan6SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext + { + private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); + + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; + + + private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); + + /// + /// + /// + public static PartitionOrphan6SourceGenerationContext Default { get; } = new(DefaultOptions); + + private PartitionOrphan6SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) + : base(options) + { + } + + /// + protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; + + /// + public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) + { + return Resolver.GetTypeInfo(type, Options); + } + + /// + /// Adds this package's converters to . + /// + /// + /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, + /// and a context resolves types from every package below it. Each package contributes only + /// what it owns and calls down the chain for the rest, so the family's converter table is + /// written once rather than copied into all of them. + /// + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) + { + global::AppStoreConnect.PartitionCoreSourceGenerationContext.AddConverters(options); + options.Converters.Add(new LazyEnumJsonConverterFactory()); + } + + private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() + { + var options = new global::System.Text.Json.JsonSerializerOptions + { + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + TypeInfoResolver = Resolver, + }; + AddConverters(options); + + return options; + } + + + private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Serialization.JsonConverterFactory + { + public override bool CanConvert(global::System.Type typeToConvert) + { + return + typeToConvert == typeof(global::AppStoreConnect.MarketplaceWebhookType) + + || typeToConvert == typeof(global::AppStoreConnect.MarketplaceWebhookType?) + + || typeToConvert == typeof(global::AppStoreConnect.MarketplaceWebhookCreateRequestDataType) + + || typeToConvert == typeof(global::AppStoreConnect.MarketplaceWebhookCreateRequestDataType?) + + || typeToConvert == typeof(global::AppStoreConnect.MarketplaceWebhookUpdateRequestDataType) + + || typeToConvert == typeof(global::AppStoreConnect.MarketplaceWebhookUpdateRequestDataType?) + + || typeToConvert == typeof(global::AppStoreConnect.MarketplaceWebhooksGetCollectionFieldsMarketplaceWebhook) + + || typeToConvert == typeof(global::AppStoreConnect.MarketplaceWebhooksGetCollectionFieldsMarketplaceWebhook?); + } + + public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + if (typeToConvert == typeof(global::AppStoreConnect.MarketplaceWebhookType)) + { + return new global::AppStoreConnect.JsonConverters.MarketplaceWebhookTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.MarketplaceWebhookType?)) + { + return new global::AppStoreConnect.JsonConverters.MarketplaceWebhookTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.MarketplaceWebhookCreateRequestDataType)) + { + return new global::AppStoreConnect.JsonConverters.MarketplaceWebhookCreateRequestDataTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.MarketplaceWebhookCreateRequestDataType?)) + { + return new global::AppStoreConnect.JsonConverters.MarketplaceWebhookCreateRequestDataTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.MarketplaceWebhookUpdateRequestDataType)) + { + return new global::AppStoreConnect.JsonConverters.MarketplaceWebhookUpdateRequestDataTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.MarketplaceWebhookUpdateRequestDataType?)) + { + return new global::AppStoreConnect.JsonConverters.MarketplaceWebhookUpdateRequestDataTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.MarketplaceWebhooksGetCollectionFieldsMarketplaceWebhook)) + { + return new global::AppStoreConnect.JsonConverters.MarketplaceWebhooksGetCollectionFieldsMarketplaceWebhookJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.MarketplaceWebhooksGetCollectionFieldsMarketplaceWebhook?)) + { + return new global::AppStoreConnect.JsonConverters.MarketplaceWebhooksGetCollectionFieldsMarketplaceWebhookNullableJsonConverter(); + } + throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); + } + } + + private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver + { + private readonly object _gate = new(); + private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[2]; + + public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( + global::System.Type type, + global::System.Text.Json.JsonSerializerOptions options) + { + for (var index = 0; index < _resolvers.Length; index++) + { + var typeInfo = GetResolver(index).GetTypeInfo(type, options); + if (typeInfo is not null) + { + return typeInfo; + } + } + + return null; + } + + private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) + { + var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); + if (resolver is not null) + { + return resolver; + } + + lock (_gate) + { + return _resolvers[index] ??= CreateResolver(index); + } + } + + private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) + { + return index switch + { + 0 => new PartitionOrphan6SourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), + + 1 => global::AppStoreConnect.PartitionCoreSourceGenerationContext.TypeInfoResolver, + _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), + }; + } + } + } +} \ No newline at end of file diff --git a/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan7.JsonSerializerContext.g.cs b/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan7.JsonSerializerContext.g.cs new file mode 100644 index 00000000..0d6a1467 --- /dev/null +++ b/src/libs/AppStoreConnect/Generated/AppStoreConnect.PartitionOrphan7.JsonSerializerContext.g.cs @@ -0,0 +1,334 @@ + +#nullable enable + +namespace AppStoreConnect +{ + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequest))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestData))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataType), TypeInfoPropertyName = "SubscriptionAvailabilityCreateRequestDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataAttributes))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataRelationships))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataRelationshipsSubscription))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataRelationshipsSubscriptionData))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataRelationshipsSubscriptionDataType), TypeInfoPropertyName = "SubscriptionAvailabilityCreateRequestDataRelationshipsSubscriptionDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataRelationshipsAvailableTerritories))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataRelationshipsAvailableTerritoriesDataItem))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataRelationshipsAvailableTerritoriesDataItemType), TypeInfoPropertyName = "SubscriptionAvailabilityCreateRequestDataRelationshipsAvailableTerritoriesDataItemType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilityAvailableTerritoriesLinkagesResponse))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilityAvailableTerritoriesLinkagesResponseDataItem))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilityAvailableTerritoriesLinkagesResponseDataItemType), TypeInfoPropertyName = "SubscriptionAvailabilityAvailableTerritoriesLinkagesResponseDataItemType2")] + #pragma warning restore CS0618 + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilitiesGetInstanceFieldsSubscriptionAvailabilitie), TypeInfoPropertyName = "SubscriptionAvailabilitiesGetInstanceFieldsSubscriptionAvailabilitie2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilitiesGetInstanceFieldsTerritorie), TypeInfoPropertyName = "SubscriptionAvailabilitiesGetInstanceFieldsTerritorie2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilitiesGetInstanceIncludeItem), TypeInfoPropertyName = "SubscriptionAvailabilitiesGetInstanceIncludeItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilitiesAvailableTerritoriesGetToManyRelatedFieldsTerritorie), TypeInfoPropertyName = "SubscriptionAvailabilitiesAvailableTerritoriesGetToManyRelatedFieldsTerritorie2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataType?), TypeInfoPropertyName = "NullableSubscriptionAvailabilityCreateRequestDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataRelationshipsSubscriptionDataType?), TypeInfoPropertyName = "NullableSubscriptionAvailabilityCreateRequestDataRelationshipsSubscriptionDataType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataRelationshipsAvailableTerritoriesDataItemType?), TypeInfoPropertyName = "NullableSubscriptionAvailabilityCreateRequestDataRelationshipsAvailableTerritoriesDataItemType2")] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilityAvailableTerritoriesLinkagesResponseDataItemType?), TypeInfoPropertyName = "NullableSubscriptionAvailabilityAvailableTerritoriesLinkagesResponseDataItemType2")] + #pragma warning restore CS0618 + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilitiesGetInstanceFieldsSubscriptionAvailabilitie?), TypeInfoPropertyName = "NullableSubscriptionAvailabilitiesGetInstanceFieldsSubscriptionAvailabilitie2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilitiesGetInstanceFieldsTerritorie?), TypeInfoPropertyName = "NullableSubscriptionAvailabilitiesGetInstanceFieldsTerritorie2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilitiesGetInstanceIncludeItem?), TypeInfoPropertyName = "NullableSubscriptionAvailabilitiesGetInstanceIncludeItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AppStoreConnect.SubscriptionAvailabilitiesAvailableTerritoriesGetToManyRelatedFieldsTerritorie?), TypeInfoPropertyName = "NullableSubscriptionAvailabilitiesAvailableTerritoriesGetToManyRelatedFieldsTerritorie2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + #pragma warning restore CS0618 + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + internal sealed partial class PartitionOrphan7SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + /// + /// + /// + public sealed partial class PartitionOrphan7SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext + { + private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); + + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; + + + private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); + + /// + /// + /// + public static PartitionOrphan7SourceGenerationContext Default { get; } = new(DefaultOptions); + + private PartitionOrphan7SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) + : base(options) + { + } + + /// + protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; + + /// + public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) + { + return Resolver.GetTypeInfo(type, Options); + } + + /// + /// Adds this package's converters to . + /// + /// + /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, + /// and a context resolves types from every package below it. Each package contributes only + /// what it owns and calls down the chain for the rest, so the family's converter table is + /// written once rather than copied into all of them. + /// + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) + { + global::AppStoreConnect.PartitionCoreSourceGenerationContext.AddConverters(options); + options.Converters.Add(new LazyEnumJsonConverterFactory()); + } + + private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() + { + var options = new global::System.Text.Json.JsonSerializerOptions + { + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + TypeInfoResolver = Resolver, + }; + AddConverters(options); + + return options; + } + + + private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Serialization.JsonConverterFactory + { + public override bool CanConvert(global::System.Type typeToConvert) + { + return + typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataType) + + || typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataType?) + + || typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataRelationshipsSubscriptionDataType) + + || typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataRelationshipsSubscriptionDataType?) + + || typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataRelationshipsAvailableTerritoriesDataItemType) + + || typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataRelationshipsAvailableTerritoriesDataItemType?) + + || typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilityAvailableTerritoriesLinkagesResponseDataItemType) + + || typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilityAvailableTerritoriesLinkagesResponseDataItemType?) + + || typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilitiesGetInstanceFieldsSubscriptionAvailabilitie) + + || typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilitiesGetInstanceFieldsSubscriptionAvailabilitie?) + + || typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilitiesGetInstanceFieldsTerritorie) + + || typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilitiesGetInstanceFieldsTerritorie?) + + || typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilitiesGetInstanceIncludeItem) + + || typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilitiesGetInstanceIncludeItem?) + + || typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilitiesAvailableTerritoriesGetToManyRelatedFieldsTerritorie) + + || typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilitiesAvailableTerritoriesGetToManyRelatedFieldsTerritorie?); + } + + public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + if (typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataType)) + { + return new global::AppStoreConnect.JsonConverters.SubscriptionAvailabilityCreateRequestDataTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataType?)) + { + return new global::AppStoreConnect.JsonConverters.SubscriptionAvailabilityCreateRequestDataTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataRelationshipsSubscriptionDataType)) + { + return new global::AppStoreConnect.JsonConverters.SubscriptionAvailabilityCreateRequestDataRelationshipsSubscriptionDataTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataRelationshipsSubscriptionDataType?)) + { + return new global::AppStoreConnect.JsonConverters.SubscriptionAvailabilityCreateRequestDataRelationshipsSubscriptionDataTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataRelationshipsAvailableTerritoriesDataItemType)) + { + return new global::AppStoreConnect.JsonConverters.SubscriptionAvailabilityCreateRequestDataRelationshipsAvailableTerritoriesDataItemTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilityCreateRequestDataRelationshipsAvailableTerritoriesDataItemType?)) + { + return new global::AppStoreConnect.JsonConverters.SubscriptionAvailabilityCreateRequestDataRelationshipsAvailableTerritoriesDataItemTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilityAvailableTerritoriesLinkagesResponseDataItemType)) + { + return new global::AppStoreConnect.JsonConverters.SubscriptionAvailabilityAvailableTerritoriesLinkagesResponseDataItemTypeJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilityAvailableTerritoriesLinkagesResponseDataItemType?)) + { + return new global::AppStoreConnect.JsonConverters.SubscriptionAvailabilityAvailableTerritoriesLinkagesResponseDataItemTypeNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilitiesGetInstanceFieldsSubscriptionAvailabilitie)) + { + return new global::AppStoreConnect.JsonConverters.SubscriptionAvailabilitiesGetInstanceFieldsSubscriptionAvailabilitieJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilitiesGetInstanceFieldsSubscriptionAvailabilitie?)) + { + return new global::AppStoreConnect.JsonConverters.SubscriptionAvailabilitiesGetInstanceFieldsSubscriptionAvailabilitieNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilitiesGetInstanceFieldsTerritorie)) + { + return new global::AppStoreConnect.JsonConverters.SubscriptionAvailabilitiesGetInstanceFieldsTerritorieJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilitiesGetInstanceFieldsTerritorie?)) + { + return new global::AppStoreConnect.JsonConverters.SubscriptionAvailabilitiesGetInstanceFieldsTerritorieNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilitiesGetInstanceIncludeItem)) + { + return new global::AppStoreConnect.JsonConverters.SubscriptionAvailabilitiesGetInstanceIncludeItemJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilitiesGetInstanceIncludeItem?)) + { + return new global::AppStoreConnect.JsonConverters.SubscriptionAvailabilitiesGetInstanceIncludeItemNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilitiesAvailableTerritoriesGetToManyRelatedFieldsTerritorie)) + { + return new global::AppStoreConnect.JsonConverters.SubscriptionAvailabilitiesAvailableTerritoriesGetToManyRelatedFieldsTerritorieJsonConverter(); + } + + if (typeToConvert == typeof(global::AppStoreConnect.SubscriptionAvailabilitiesAvailableTerritoriesGetToManyRelatedFieldsTerritorie?)) + { + return new global::AppStoreConnect.JsonConverters.SubscriptionAvailabilitiesAvailableTerritoriesGetToManyRelatedFieldsTerritorieNullableJsonConverter(); + } + throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); + } + } + + private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver + { + private readonly object _gate = new(); + private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[2]; + + public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( + global::System.Type type, + global::System.Text.Json.JsonSerializerOptions options) + { + for (var index = 0; index < _resolvers.Length; index++) + { + var typeInfo = GetResolver(index).GetTypeInfo(type, options); + if (typeInfo is not null) + { + return typeInfo; + } + } + + return null; + } + + private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) + { + var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); + if (resolver is not null) + { + return resolver; + } + + lock (_gate) + { + return _resolvers[index] ??= CreateResolver(index); + } + } + + private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) + { + return index switch + { + 0 => new PartitionOrphan7SourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), + + 1 => global::AppStoreConnect.PartitionCoreSourceGenerationContext.TypeInfoResolver, + _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), + }; + } + } + } +} \ No newline at end of file