2023-12-13 01:25:00 +05:30
|
|
|
from pydantic import BaseModel
|
2023-11-17 11:35:09 +05:30
|
|
|
from ..config import conf, Map, Measures, Geo
|
|
|
|
from .authentication import UserRead
|
|
|
|
|
2023-12-13 01:25:00 +05:30
|
|
|
class Proj(BaseModel):
|
2023-11-17 11:35:09 +05:30
|
|
|
srid: str
|
|
|
|
srid_for_proj: str
|
|
|
|
|
2023-12-13 01:25:00 +05:30
|
|
|
|
|
|
|
class BootstrapData(BaseModel):
|
2023-11-17 11:35:09 +05:30
|
|
|
version: str = conf.version
|
|
|
|
title: str = conf.gisaf.title
|
|
|
|
windowTitle: str = conf.gisaf.windowTitle
|
|
|
|
map: Map = conf.map
|
|
|
|
geo: Geo = conf.geo
|
|
|
|
measures: Measures = conf.measures
|
|
|
|
redirect: str = conf.gisaf.redirect
|
|
|
|
user: UserRead | None = None
|