ShipStation tracking pull, status tracking, dashboard rework
This commit is contained in:
+28
-6
@@ -44,11 +44,6 @@ SETTINGS_SCHEMA: Dict[str, tuple[str, str, bool]] = {
|
||||
),
|
||||
|
||||
"SHIPSTATION_API_KEY": ("ShipStation API Key", "ShipStation", True),
|
||||
"SHIPSTATION_STORE_MAP": (
|
||||
"Store ID -> Company (e.g. 123456:Signify Health,789012:Oak Street Health)",
|
||||
"ShipStation",
|
||||
False,
|
||||
),
|
||||
|
||||
"COMPANY_SKU_MAP": (
|
||||
"SKU Prefix -> Company (e.g. SH:Signify Health,OK:Oak Street Health)",
|
||||
@@ -56,15 +51,42 @@ SETTINGS_SCHEMA: Dict[str, tuple[str, str, bool]] = {
|
||||
False,
|
||||
),
|
||||
"TICKET_NUMBER_REGEX": (
|
||||
"Ticket Number Pattern (regex, e.g. AR-######)",
|
||||
"Ticket Number Pattern (regex, e.g. AR-######) - fallback only",
|
||||
"Companies",
|
||||
False,
|
||||
),
|
||||
|
||||
"JIRA_TERMINAL_STATUSES": (
|
||||
"Statuses where we stop re-checking a ticket (comma-separated)",
|
||||
"Status Tracking",
|
||||
False,
|
||||
),
|
||||
"CANCELLED_STATUSES": (
|
||||
"Statuses treated as cancelled - highlighted + notified (comma-separated)",
|
||||
"Status Tracking",
|
||||
False,
|
||||
),
|
||||
"FULFILLED_STATUS_WITH_RETURN": (
|
||||
"JIRA status when a return label was also generated",
|
||||
"Status Tracking",
|
||||
False,
|
||||
),
|
||||
"FULFILLED_STATUS_WITHOUT_RETURN": (
|
||||
"JIRA status when only an outgoing label was generated",
|
||||
"Status Tracking",
|
||||
False,
|
||||
),
|
||||
}
|
||||
|
||||
DEFAULT_DB_URL = "sqlite:///orders.db"
|
||||
DEFAULT_COMPANY_SKU_MAP = "SH:Signify Health,OK:Oak Street Health"
|
||||
DEFAULT_TICKET_NUMBER_REGEX = r"\b[A-Z]{2,6}-\d{3,}\b"
|
||||
DEFAULT_FULFILLED_WITH_RETURN = "Waiting For Return"
|
||||
DEFAULT_FULFILLED_WITHOUT_RETURN = "Device Return Not Needed"
|
||||
DEFAULT_TERMINAL_STATUSES = (
|
||||
f"Cancelled,{DEFAULT_FULFILLED_WITH_RETURN},{DEFAULT_FULFILLED_WITHOUT_RETURN}"
|
||||
)
|
||||
DEFAULT_CANCELLED_STATUSES = "Cancelled"
|
||||
|
||||
|
||||
def ensure_env_file_exists() -> None:
|
||||
|
||||
Reference in New Issue
Block a user