From 0d143d949fce98ae849aa7a755ff638cc5952cb2 Mon Sep 17 00:00:00 2001
From: teplyakov <teolyakov@perx.ru>
Date: Thu, 21 Nov 2024 15:28:56 +0300
Subject: [PATCH] feat: AUTO-3479 Add State enum

---
 perxis/models.py | 9 +++++++++
 setup.py         | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/perxis/models.py b/perxis/models.py
index e3a1d57..0e50403 100644
--- a/perxis/models.py
+++ b/perxis/models.py
@@ -1,3 +1,5 @@
+import enum
+
 from dataclasses import dataclass
 
 
@@ -6,3 +8,10 @@ class Reference:
     id: str
     collection_id: str
     disabled: bool = False
+
+
+class State(str, enum.Enum):
+    DRAFT = "DRAFT"
+    PUBLISHED = "PUBLISHED"
+    CHANGED = "CHANGED"
+    ARCHIVED = "ARCHIVED"
diff --git a/setup.py b/setup.py
index e7e5226..210545e 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ def load_requirements():
 
 setup(
     name='perxis',
-    version='1.7.2',
+    version='1.7.3',
     description='Perxis python client',
     long_description=long_description,
     long_description_content_type='text/markdown',
-- 
GitLab