From 05938db4402c5cda6be24f3404a463e2eea74b66 Mon Sep 17 00:00:00 2001 From: acostapazo Date: Wed, 18 Oct 2023 15:45:24 +0200 Subject: [PATCH] feat(report): rename internal attributes --- .../report/compliance/{user_event_out.py => domain_event.py} | 4 ++-- .../models/report/compliance/domain_events_report.py | 4 ++-- alice/onboarding/models/report/report.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) rename alice/onboarding/models/report/compliance/{user_event_out.py => domain_event.py} (91%) diff --git a/alice/onboarding/models/report/compliance/user_event_out.py b/alice/onboarding/models/report/compliance/domain_event.py similarity index 91% rename from alice/onboarding/models/report/compliance/user_event_out.py rename to alice/onboarding/models/report/compliance/domain_event.py index 65a425e..30717d8 100644 --- a/alice/onboarding/models/report/compliance/user_event_out.py +++ b/alice/onboarding/models/report/compliance/domain_event.py @@ -7,9 +7,9 @@ from alice.onboarding.models.report.compliance.device_out import DeviceOut -class UserEventOut(BaseModel): +class DomainEvent(BaseModel): """ - It collects events info + Domain Event Information """ type: str = Field(description="Event type") diff --git a/alice/onboarding/models/report/compliance/domain_events_report.py b/alice/onboarding/models/report/compliance/domain_events_report.py index d353982..d01b9fd 100644 --- a/alice/onboarding/models/report/compliance/domain_events_report.py +++ b/alice/onboarding/models/report/compliance/domain_events_report.py @@ -3,11 +3,11 @@ from pydantic import BaseModel from alice.onboarding.models.report.compliance.device_out import DeviceOut -from alice.onboarding.models.report.compliance.user_event_out import UserEventOut +from alice.onboarding.models.report.compliance.domain_event import DomainEvent class DomainEventsReport(BaseModel): devices: List[DeviceOut] - events: List[UserEventOut] + events: List[DomainEvent] # num_devices: int # total_time: float # seconds diff --git a/alice/onboarding/models/report/report.py b/alice/onboarding/models/report/report.py index b593d2f..55e71ce 100644 --- a/alice/onboarding/models/report/report.py +++ b/alice/onboarding/models/report/report.py @@ -3,7 +3,7 @@ from pydantic import BaseModel, Field -from alice.onboarding.models.report.compliance.user_event_out import UserEventOut +from alice.onboarding.models.report.compliance.domain_event import DomainEvent from alice.onboarding.models.report.document.document_report import DocumentReport from alice.onboarding.models.report.other_trusted_document.other_trusted_document_report import ( OtherTrustedDocumentReport, @@ -38,4 +38,4 @@ class Report(BaseModel): description="It collects all user other trusted documents (bank receipts, proof of address...)", default=[], ) - events: List[UserEventOut] = Field(description="It collects all user events") + events: List[DomainEvent] = Field(description="It collects all user events")