From f42c49043aaa8875148a487c6632f62491019b6b Mon Sep 17 00:00:00 2001 From: Steven Noorbergen Date: Tue, 21 Nov 2023 16:08:02 +0100 Subject: [PATCH 1/2] Add: NotificationTypeEnumV11 to include new notification types --- eve_glue/notification_type.py | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/eve_glue/notification_type.py b/eve_glue/notification_type.py index ba992d7..9d4e4dc 100644 --- a/eve_glue/notification_type.py +++ b/eve_glue/notification_type.py @@ -196,7 +196,8 @@ class NotificationTypeEnumV2(enum.Enum): add={ "StructuresJobsPaused": 210, "StructuresJobsCancelled": 211, - }) + }, +) NotificationTypeEnumV4 = new_from_enum( # pylint: disable=invalid-name "NotificationTypeEnumV4", @@ -205,7 +206,8 @@ class NotificationTypeEnumV2(enum.Enum): "CombatOperationFinished": 1013, "IndustryOperationFinished": 1014, "ESSMainBankLink": 1015, - }) + }, +) NotificationTypeEnumV5 = new_from_enum( # pylint: disable=invalid-name "NotificationTypeEnumV5", @@ -216,7 +218,7 @@ class NotificationTypeEnumV2(enum.Enum): "WarHQRemovedFromSpace": 223, "CorpWarDeclaredV2": 224, "AllianceWarDeclaredV2": 225, - } + }, ) NotificationTypeEnumV6 = new_from_enum( # pylint: disable=invalid-name @@ -236,7 +238,7 @@ class NotificationTypeEnumV2(enum.Enum): "WarRetracted": 238, "WarRetractedByConcord": 239, "WarInvalid": 240, - } + }, ) NotificationTypeEnumV7 = new_from_enum( # pylint: disable=invalid-name @@ -245,7 +247,8 @@ class NotificationTypeEnumV2(enum.Enum): add={ "MercOfferRetractedMsg": 241, "OfferToAllyRetracted": 242, - }) + }, +) NotificationTypeEnumV8 = new_from_enum( # pylint: disable=invalid-name "NotificationTypeEnumV8", @@ -262,7 +265,7 @@ class NotificationTypeEnumV2(enum.Enum): "StructureImpendingAbandonmentAssetsAtRisk": 249, "OfficeLeaseCanceledInsufficientStandings": 250, "ContractRegionChangedToPochven": 251, - } + }, ) NotificationTypeEnumV9 = new_from_enum( # pylint: disable=invalid-name @@ -271,7 +274,7 @@ class NotificationTypeEnumV2(enum.Enum): add={ "ExpertSystemExpiryImminent": 252, "ExpertSystemExpired": 253, - } + }, ) NotificationTypeEnumV10 = new_from_enum( @@ -282,5 +285,14 @@ class NotificationTypeEnumV2(enum.Enum): "CorporationGoalCreated": 260, "CorporationGoalClosed": 261, "CorporationGoalCompleted": 262, - } + }, +) + +NotificationTypeEnumV10 = new_from_enum( + "NotificationTypeEnumV11", + NotificationTypeEnumV10, + add={ + "CorporationGoalNameChange": 263, + "CorporationLeft": 270, + }, ) From bbb49771cd6c6e6fc5f8c181914f938c33b9375b Mon Sep 17 00:00:00 2001 From: Steven Noorbergen Date: Wed, 22 Nov 2023 13:15:31 +0100 Subject: [PATCH 2/2] Fix: typo --- eve_glue/notification_type.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eve_glue/notification_type.py b/eve_glue/notification_type.py index 9d4e4dc..b6671ca 100644 --- a/eve_glue/notification_type.py +++ b/eve_glue/notification_type.py @@ -288,7 +288,7 @@ class NotificationTypeEnumV2(enum.Enum): }, ) -NotificationTypeEnumV10 = new_from_enum( +NotificationTypeEnumV11 = new_from_enum( "NotificationTypeEnumV11", NotificationTypeEnumV10, add={