Skip to content

Commit

Permalink
Mark refactored import paths for deprecation
Browse files Browse the repository at this point in the history
Deprecate `node_v1` schema that is moved to `neon-data-models`
  • Loading branch information
NeonDaniel committed Nov 6, 2024
1 parent a36c85d commit 37087b5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 36 deletions.
19 changes: 11 additions & 8 deletions neon_hana/app/routers/node_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

from asyncio import Event
from signal import signal, SIGINT
from time import sleep
from typing import Optional, Union

from fastapi import APIRouter, WebSocket, HTTPException
Expand All @@ -36,13 +35,17 @@
from neon_hana.app.dependencies import config, client_manager
from neon_hana.mq_websocket_api import MQWebsocketAPI, ClientNotKnown

from neon_hana.schema.node_v1 import (NodeAudioInput, NodeGetStt,
NodeGetTts, NodeKlatResponse,
NodeAudioInputResponse,
NodeGetSttResponse,
NodeGetTtsResponse, CoreWWDetected,
CoreIntentFailure, CoreErrorResponse,
CoreClearData, CoreAlertExpired)
from neon_data_models.models.api.node_v1 import (NodeAudioInput, NodeGetStt,
NodeGetTts, NodeKlatResponse,
NodeAudioInputResponse,
NodeGetSttResponse,
NodeGetTtsResponse,
CoreWWDetected,
CoreIntentFailure,
CoreErrorResponse,
CoreClearData,
CoreAlertExpired)

node_route = APIRouter(prefix="/node", tags=["node"])

socket_api = MQWebsocketAPI(config)
Expand Down
1 change: 1 addition & 0 deletions neon_hana/schema/auth_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def __getitem__(self, item):
return getattr(self, item)
raise KeyError(item)


class RefreshRequest(BaseModel):
access_token: str
refresh_token: str
Expand Down
3 changes: 2 additions & 1 deletion neon_hana/schema/node_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

from neon_data_models.models.client.node import *
from neon_data_models.models.client.node import NodeSoftware, NodeNetworking, NodeLocation, NodeData
# TODO: Mark for deprecation
27 changes: 0 additions & 27 deletions neon_hana/schema/node_v1.py

This file was deleted.

1 change: 1 addition & 0 deletions neon_hana/schema/user_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

from neon_data_models.models.user.neon_profile import *
# TODO: Mark for deprecation

0 comments on commit 37087b5

Please sign in to comment.